diff --git a/.husky/pre-commit b/.husky/pre-commit
index 99fea8d..fafabe8 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -8,5 +8,5 @@ if git diff --cached --name-only | grep -q "^package.json$"; then
pnpm build
# Add the built files and lockfile to the commit
- git add entry mcp-server pnpm-lock.yaml
+ git add entry pnpm-lock.yaml
fi
diff --git a/CLAUDE-ACTION.md b/CLAUDE-ACTION.md
deleted file mode 100644
index 6fdb04a..0000000
--- a/CLAUDE-ACTION.md
+++ /dev/null
@@ -1,299 +0,0 @@
-# Claude Code Action Architecture & Flow
-
-This document provides a comprehensive overview of how the official (Anthropic) Claude Code Action works, from token exchange through post-run cleanup.
-
-## Overview
-
-The Claude Code Action is a sophisticated GitHub automation platform that enables Claude to interact with GitHub repositories through secure token exchange, intelligent mode detection, and comprehensive GitHub API integration.
-
-## High-Level Architecture
-
-```mermaid
-graph TD
- Start([GitHub Action Triggered]) --> Setup[Setup Environment
- Install Bun
- Install Dependencies]
-
- Setup --> ParseContext[Parse GitHub Context
- Extract event data
- Parse inputs]
-
- ParseContext --> ModeDetection{Mode Detection}
-
- ModeDetection -->|Has explicit prompt| AgentMode[AGENT MODE
Direct automation]
- ModeDetection -->|@claude mention/assignment/label| TagMode[TAG MODE
Interactive response]
- ModeDetection -->|No trigger| DefaultAgent[Default to Agent
(won't trigger)]
-
- %% Token Exchange Branch
- AgentMode --> TokenExchange[Token Exchange Process]
- TagMode --> TokenExchange
- TokenExchange --> TokenMethod{Token Method}
-
- TokenMethod -->|Custom token provided| UseCustom[Use Custom GitHub Token]
- TokenMethod -->|No custom token| OIDC[Generate OIDC Token
core.getIDToken()]
-
- OIDC --> Exchange[Exchange OIDC for App Token
api.anthropic.com/api/github/github-app-token-exchange]
- Exchange --> CreateOctokit[Create Authenticated Octokit Client
REST + GraphQL]
- UseCustom --> CreateOctokit
-
- %% Permission Checks
- CreateOctokit --> PermCheck[Check Write Permissions
Only for entity contexts]
- PermCheck -->|No permissions| PermFail[❌ Exit: No write access]
- PermCheck -->|Has permissions| TriggerCheck{Check Trigger Conditions}
-
- %% Trigger Validation
- TriggerCheck -->|Agent Mode| AgentTrigger{Has explicit prompt?}
- TriggerCheck -->|Tag Mode| TagTrigger{Contains @claude mention
or assignment/label?}
-
- AgentTrigger -->|No prompt| NoTrigger[❌ Skip: No trigger found]
- AgentTrigger -->|Has prompt| PrepareAgent[Prepare Agent Mode]
- TagTrigger -->|No mention| NoTrigger
- TagTrigger -->|Has mention| PrepareTag[Prepare Tag Mode]
-
- %% Mode-Specific Preparation
- PrepareAgent --> AgentPrep[Agent Mode Preparation
- Create prompt file
- Setup MCP servers
- No tracking comment]
- PrepareTag --> TagPrep[Tag Mode Preparation
- Create tracking comment
- Setup branches
- Fetch GitHub data
- Setup MCP servers]
-
- %% Data Fetching (Tag Mode)
- TagPrep --> DataFetch[Fetch GitHub Data
GraphQL + REST API]
- DataFetch --> FetchWhat{What to fetch?}
-
- FetchWhat -->|Pull Request| PRData[PR Data:
- Comments & reviews
- Changed files + SHAs
- Commit history
- Author info]
- FetchWhat -->|Issue| IssueData[Issue Data:
- Comments
- Issue details
- Author info]
-
- PRData --> ProcessImages[Process Images
Download & convert to base64]
- IssueData --> ProcessImages
- ProcessImages --> SetupBranch[Setup Branch
- Create Claude branch
- Configure git auth]
-
- %% MCP Server Setup
- AgentPrep --> MCPSetup[Setup MCP Servers]
- SetupBranch --> MCPSetup
-
- MCPSetup --> MCPServers{MCP Servers}
- MCPServers --> GitHubActions[GitHub Actions Server
- Workflow data
- CI results]
- MCPServers --> GitHubComments[GitHub Comment Server
- Comment operations]
- MCPServers --> GitHubFiles[GitHub File Ops Server
- File operations
- Branch management]
- MCPServers --> GitHubInline[GitHub Inline Comment Server
- PR review comments]
-
- GitHubActions --> PromptGen[Generate Prompt]
- GitHubComments --> PromptGen
- GitHubFiles --> PromptGen
- GitHubInline --> PromptGen
-
- %% Prompt Generation
- PromptGen --> PromptType{Prompt Type}
- PromptType -->|Agent Mode| AgentPrompt[Agent Prompt:
- Direct user prompt
- Minimal context]
- PromptType -->|Tag Mode| TagPrompt[Tag Prompt:
- Rich GitHub context
- PR/Issue details
- Changed files
- Comments & reviews
- Commit instructions]
-
- AgentPrompt --> ClaudeRun[Run Claude Code]
- TagPrompt --> ClaudeRun
-
- %% Claude Execution
- ClaudeRun --> ClaudeExec[Claude Code Execution
base-action/src/index.ts]
- ClaudeExec --> ClaudeArgs[Prepare Claude Args
- Prompt file path
- Custom claude_args
- Output format: stream-json]
-
- ClaudeArgs --> ClaudeProvider{Provider}
- ClaudeProvider -->|Default| AnthropicAPI[Anthropic API
ANTHROPIC_API_KEY]
- ClaudeProvider -->|Bedrock| AWSBedrock[AWS Bedrock
OIDC + AWS credentials]
- ClaudeProvider -->|Vertex| GCPVertex[GCP Vertex AI
OIDC + GCP credentials]
-
- AnthropicAPI --> ClaudeProcess[Spawn Claude Process
- Named pipe for input
- Stream JSON output]
- AWSBedrock --> ClaudeProcess
- GCPVertex --> ClaudeProcess
-
- ClaudeProcess --> ClaudeTools[Claude Tool Usage
- MCP tools
- File operations
- GitHub API calls
- Bash commands]
-
- ClaudeTools --> ClaudeOutput[Claude Output Processing
- Capture execution log
- Parse JSON stream
- Extract metrics]
-
- %% Post-Run Actions
- ClaudeOutput --> PostRun{Post-Run Actions}
-
- PostRun -->|Success| Success[✅ Success Path]
- PostRun -->|Failure| Failure[❌ Failure Path]
-
- Success --> UpdateComment[Update Tracking Comment
- Job run link
- Branch link
- PR link (if created)
- Execution metrics]
- Failure --> UpdateComment
-
- UpdateComment --> BranchCleanup[Branch Cleanup
- Check for changes
- Delete empty branches
- Keep branches with commits]
-
- BranchCleanup --> FormatReport[Format Execution Report
- Parse conversation turns
- Format tool usage
- Add to GitHub step summary]
-
- FormatReport --> RevokeToken[Revoke App Token
DELETE /installation/token]
-
- RevokeToken --> End([Action Complete])
-```
-
-## Key Components
-
-### 1. Token Exchange Process
-
-The action uses a secure OIDC token exchange system:
-
-1. **OIDC Token Generation**: `core.getIDToken("claude-code-github-action")`
-2. **Token Exchange**: POST to `https://api.anthropic.com/api/github/github-app-token-exchange`
-3. **Authentication**: Creates authenticated Octokit clients for GitHub API access
-
-**Security Benefits:**
-- Repository-scoped access
-- Time-limited tokens
-- Permission-limited (only configured GitHub App permissions)
-- Automatic token masking in logs
-
-### 2. Mode Detection
-
-The action automatically detects the appropriate execution mode:
-
-#### **Agent Mode**
-- **Trigger**: Explicit `prompt` input provided
-- **Use Case**: Direct automation, custom workflows
-- **Behavior**: Minimal context, direct execution
-- **Tracking**: No tracking comments
-
-#### **Tag Mode**
-- **Trigger**: @claude mentions, issue assignments, or labels
-- **Use Case**: Interactive GitHub responses
-- **Behavior**: Rich context, comprehensive GitHub data
-- **Tracking**: Creates and updates tracking comments
-
-### 3. Data Fetching (Tag Mode)
-
-When in Tag Mode, the action fetches comprehensive GitHub context:
-
-#### **Pull Request Data:**
-- Comments and reviews (including inline comments)
-- Changed files with SHAs
-- Commit history and metadata
-- Author information
-- File diff data
-
-#### **Issue Data:**
-- Issue details and metadata
-- All comments
-- Author information
-- Labels and assignments
-
-#### **Image Processing:**
-- Downloads images from GitHub
-- Converts to base64 for Claude
-- Maps original URLs to processed content
-
-### 4. MCP Server Integration
-
-The action sets up multiple MCP (Model Context Protocol) servers to provide Claude with GitHub capabilities:
-
-#### **GitHub Actions Server**
-- Access to workflow runs and CI data
-- Build status and test results
-- Artifact information
-
-#### **GitHub Comment Server**
-- Comment creation and updates
-- Issue and PR comment management
-
-#### **GitHub File Operations Server**
-- File reading and writing
-- Branch creation and management
-- Commit operations
-
-#### **GitHub Inline Comment Server**
-- PR review comment operations
-- Line-specific feedback
-
-### 5. Prompt Generation
-
-The action generates context-rich prompts based on the detected mode:
-
-#### **Agent Mode Prompts:**
-- Direct user prompt
-- Minimal GitHub context
-- Focused on specific task
-
-#### **Tag Mode Prompts:**
-- Comprehensive GitHub context
-- PR/Issue details and history
-- Changed files and diffs
-- Comment threads and reviews
-- Commit instructions and guidelines
-
-### 6. Claude Execution
-
-The action runs Claude Code through multiple provider options:
-
-#### **Provider Support:**
-- **Anthropic API** (default): Direct API access with API key
-- **AWS Bedrock**: OIDC authentication with AWS credentials
-- **GCP Vertex AI**: OIDC authentication with GCP credentials
-
-#### **Execution Process:**
-1. **Named Pipe Setup**: Creates pipe for prompt input
-2. **Process Spawning**: Spawns Claude Code process
-3. **Stream Processing**: Captures JSON stream output
-4. **Tool Integration**: Enables MCP tools and GitHub operations
-
-### 7. Post-Run Actions
-
-After Claude execution, the action performs comprehensive cleanup and reporting:
-
-#### **Comment Updates:**
-- Updates tracking comments with results
-- Adds job run links and execution metrics
-- Includes branch and PR links when created
-
-#### **Branch Management:**
-- Checks for actual changes in Claude branches
-- Deletes empty branches to avoid clutter
-- Preserves branches with meaningful commits
-
-#### **Report Generation:**
-- Parses execution logs and conversation turns
-- Formats tool usage and results
-- Adds formatted report to GitHub step summary
-
-#### **Security Cleanup:**
-- Revokes GitHub App installation token
-- Cleans up temporary files and processes
-
-## Security Considerations
-
-### **Access Control:**
-- Repository-scoped permissions only
-- Write access validation for actors
-- Bot user controls and allowlists
-
-### **Token Management:**
-- Short-lived installation tokens
-- Automatic token revocation after use
-- Secure OIDC-based exchange
-
-### **Permission Boundaries:**
-- Limited to configured GitHub App permissions
-- No cross-repository access
-- Scoped to specific repository operations
-
-## Integration Points
-
-### **With Pullfrog:**
-The Claude Code Action can be integrated with Pullfrog's workflow system, providing:
-- Standardized agent interaction patterns
-- Consistent GitHub integration
-- Reusable authentication flows
-- Common MCP server infrastructure
-
-### **With GitHub:**
-- Native GitHub Actions integration
-- Comprehensive API coverage (REST + GraphQL)
-- Proper webhook handling
-- Standard GitHub UI integration
-
-## Development Notes
-
-### **Key Files:**
-- `src/entrypoints/prepare.ts`: Main preparation logic
-- `src/modes/`: Mode detection and handling
-- `src/github/token.ts`: OIDC token exchange
-- `src/mcp/`: MCP server implementations
-- `base-action/`: Core Claude Code execution
-
-### **Testing:**
-- Unit tests for individual components
-- Integration tests for full workflows
-- Local testing with `act` tool
-- Comprehensive fixture support
-
-This architecture provides a robust, secure, and extensible foundation for Claude-GitHub integration while maintaining clear separation of concerns and comprehensive error handling.
diff --git a/README.md b/README.md
index d215ea3..bced1cc 100644
--- a/README.md
+++ b/README.md
@@ -1,21 +1,135 @@
-# Pullfrog Action
+
+
+
+
+
+
Pullfrog
+
+ GitHub Action for running AI agents via Pullfrog to automate development workflows
+
+ by Pullfrog
+
+
-GitHub Action for running Claude Code and other agents via Pullfrog.
+
-> **📖 Claude Code Action Architecture**: For a detailed technical overview of how the Claude Code Action works (token exchange, modes, data fetching, execution flow), see [CLAUDE-ACTION.md](./CLAUDE-ACTION.md).
+## What is Pullfrog?
-## Quick Start
+Pullfrog is a GitHub bot that brings the full power of your favorite coding agents into GitHub. It's open source and powered by GitHub Actions.
-```bash
-# Install dependencies
-pnpm install
+Once configured, you can start triggering agent runs.
+
+- **Tag `@pullfrog`** — Tag `@pullfrog` in a comment anywhere in your repo. It will pull in any relevant context using the action's internal MCP server and perform the appropriate task.
+- **Prompt from the web** — Trigger arbitrary tasks from the Pullfrog dashboard
+- **Automated triggers** — Configure Pullfrog to trigger agent runs in response to specific events. Each of these triggers can be associated with custom prompt instructions.
+ - issue created
+ - issue labeled
+ - PR created
+ - PR review created
+ - PR review requested
+ - and more...
+
+Pullfrog is the bridge between GitHub and your preferred coding agents and GitHub. Use it for:
+
+- **🤖 Coding tasks** — Tell `@pullfrog` to implement something and it'll spin up a PR. If CI fails, it'll read the logs and attempt a fix automatically. It'll automatically address any PR reviews too.
+- **🔍 PR review** — Coding agents are great at reviewing PRs. Using the "PR created" trigger, you can configure Pullfrog to auto-review new PRs.
+- **🤙 Auto-respond to issues** — Via the "issue created" trigger, Pullfrog can automatically respond to common questions, create implementation plans, and link to related issues/PRs. Or (if you're feeling lucky) you can prompt it to immediately attempt a PR addressing new issues.
+- **Literally whatever** — Want to have the agent automatically add docs to all new PRs? Cut a new release with agent-written notes on every commit to `main`? Pullfrog lets you do it.
+
+
+
+## Get started
+
+Install the Pullfrog GitHub App on your personal or organization account. During installation you can choose to limit access to a specific repo or repos. After installation, you'll be redirected to the Pullfrog dashboard where you'll see an onboarding flow. This flow will create your `pullfrog.yml` workflow and prompt you to set up API keys. Once you finish those steps (2 minutes) you're ready to rock 🐸
+
+[Add to GitHub ➜](https://github.com/apps/pullfrog/installations/new)
+
+
+
+Manual setup instructions
+
+You can also use the `pullfrog/action` Action without a GitHub App installation. This is more time-consuming to set up, and it places limitations on the actions your Agent will be capable of performing.
+
+To manually set up the Pullfrog action, you need to set up two workflow files in your repository: `pullfrog.yml` (the execution logic) and `triggers.yml` (the event triggers).
+
+#### 1. Create `pullfrog.yml`
+
+Create a file at `.github/workflows/pullfrog.yml`. This is a reusable workflow that runs the Pullfrog action.
+
+```yaml
+name: Pullfrog
+on:
+ workflow_dispatch:
+ inputs:
+ prompt:
+ type: string
+ description: "Agent prompt"
+ workflow_call:
+ inputs:
+ prompt:
+ description: "Agent prompt"
+ type: string
+
+permissions:
+ id-token: write
+ contents: read
+
+jobs:
+ pullfrog:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+ - name: Run agent
+ uses: pullfrog/action@main # Use a specific version tag in production
+ with:
+ prompt: ${{ inputs.prompt }}
+ anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
+ # Add other keys as needed:
+ # openai_api_key: ${{ secrets.OPENAI_API_KEY }}
```
-## Testing with `play.ts`
+#### 2. Create `triggers.yml`
-```bash
-pnpm play # Uses fixtures/play.txt
+Create a file at `.github/workflows/triggers.yml`. This workflow listens for GitHub events and calls the `pullfrog.yml` workflow with the event data.
+
+```yaml
+name: Agent Triggers
+
+on:
+ issue_comment:
+ types: [created]
+ pull_request_review_comment:
+ types: [created]
+ issues:
+ types: [opened, assigned]
+ pull_request_review:
+ types: [submitted]
+ # add other triggers as needed
+
+
+jobs:
+ pullfrog:
+
+ # trigger conditions (e.g. only run if @pullfrog is mentioned)
+ if: contains(github.event.comment.body, '@pullfrog') || contains(github.event.issue.body, '@pullfrog')
+
+ permissions:
+ id-token: write
+ contents: write
+ issues: write
+ pull-requests: write
+ actions: read
+ checks: read
+ uses: ./.github/workflows/pullfrog.yml
+ with:
+ # pass the full event payload as the prompt
+ prompt: ${{ toJSON(github.event) }}
+ secrets: inherit
```
-- Clones the scratch repository to `.temp`
-- Runs Claude Code directly on your machine
-- Fast iteration for development
+
+
diff --git a/agents/codex.ts b/agents/codex.ts
index 287d4f4..cadd537 100644
--- a/agents/codex.ts
+++ b/agents/codex.ts
@@ -177,34 +177,30 @@ const messageHandlers: {
/**
* Configure MCP servers for Codex using the CLI.
- * Codex CLI syntax: codex mcp add --env KEY=value -- [args...]
+ * For HTTP-based servers, use: codex mcp add --url
*/
function configureCodexMcpServers({ mcpServers, cliPath }: ConfigureMcpServersParams): void {
for (const [serverName, serverConfig] of Object.entries(mcpServers)) {
- const command = serverConfig.command;
- const args = serverConfig.args || [];
- const envVars = serverConfig.env || {};
+ if (serverConfig.type === "http") {
+ // HTTP-based MCP server - use --url flag
+ const addArgs = ["mcp", "add", serverName, "--url", serverConfig.url];
- const addArgs = ["mcp", "add", serverName];
+ log.info(`Adding MCP server '${serverName}' at ${serverConfig.url}...`);
+ const addResult = spawnSync("node", [cliPath, ...addArgs], {
+ stdio: "pipe",
+ encoding: "utf-8",
+ });
- // Add environment variables as --env flags first
- for (const [key, value] of Object.entries(envVars)) {
- addArgs.push("--env", `${key}=${value}`);
- }
-
- addArgs.push("--", command, ...args);
-
- log.info(`Adding MCP server '${serverName}'...`);
- const addResult = spawnSync("node", [cliPath, ...addArgs], {
- stdio: "pipe",
- encoding: "utf-8",
- });
-
- if (addResult.status !== 0) {
+ if (addResult.status !== 0) {
+ throw new Error(
+ `codex mcp add failed: ${addResult.stderr || addResult.stdout || "Unknown error"}`
+ );
+ }
+ log.info(`✓ MCP server '${serverName}' configured`);
+ } else {
throw new Error(
- `codex mcp add failed: ${addResult.stderr || addResult.stdout || "Unknown error"}`
+ `Unsupported MCP server type for Codex: ${(serverConfig as any).type || "unknown"}`
);
}
- log.info(`✓ MCP server '${serverName}' configured`);
}
}
diff --git a/agents/cursor.ts b/agents/cursor.ts
index 0f26913..df5213c 100644
--- a/agents/cursor.ts
+++ b/agents/cursor.ts
@@ -269,6 +269,22 @@ function configureCursorMcpServers({ mcpServers }: ConfigureMcpServersParams) {
const cursorConfigDir = join(realHome, ".cursor");
const mcpConfigPath = join(cursorConfigDir, "mcp.json");
mkdirSync(cursorConfigDir, { recursive: true });
- writeFileSync(mcpConfigPath, JSON.stringify({ mcpServers }, null, 2), "utf-8");
+
+ // Convert to Cursor's expected format (HTTP config)
+ const cursorMcpServers: Record = {};
+ for (const [serverName, serverConfig] of Object.entries(mcpServers)) {
+ if (serverConfig.type !== "http") {
+ throw new Error(
+ `Unsupported MCP server type for Cursor: ${(serverConfig as any).type || "unknown"}`
+ );
+ }
+
+ cursorMcpServers[serverName] = {
+ type: "http",
+ url: serverConfig.url,
+ };
+ }
+
+ writeFileSync(mcpConfigPath, JSON.stringify({ mcpServers: cursorMcpServers }, null, 2), "utf-8");
log.info(`MCP config written to ${mcpConfigPath}`);
}
diff --git a/agents/gemini.ts b/agents/gemini.ts
index 4ca7f10..5b386be 100644
--- a/agents/gemini.ts
+++ b/agents/gemini.ts
@@ -249,31 +249,31 @@ export const gemini = agent({
/**
* Configure MCP servers for Gemini using the CLI.
- * Gemini CLI syntax: gemini mcp add [args...] --env KEY=value
+ * Gemini CLI syntax: gemini mcp add [args...] --transport
+ * For HTTP-based servers, use: gemini mcp add --transport http
*/
function configureGeminiMcpServers({ mcpServers, cliPath }: ConfigureMcpServersParams): void {
for (const [serverName, serverConfig] of Object.entries(mcpServers)) {
- const command = serverConfig.command;
- const args = serverConfig.args || [];
- const envVars = serverConfig.env || {};
+ if (serverConfig.type === "http") {
+ // HTTP-based MCP server - use URL with --transport http flag
+ const addArgs = ["mcp", "add", serverName, serverConfig.url, "--transport", "http"];
- const addArgs = ["mcp", "add", serverName, command, ...args];
+ log.info(`Adding MCP server '${serverName}' at ${serverConfig.url}...`);
+ const addResult = spawnSync("node", [cliPath, ...addArgs], {
+ stdio: "pipe",
+ encoding: "utf-8",
+ });
- for (const [key, value] of Object.entries(envVars)) {
- addArgs.push("--env", `${key}=${value}`);
- }
-
- log.info(`Adding MCP server '${serverName}'...`);
- const addResult = spawnSync("node", [cliPath, ...addArgs], {
- stdio: "pipe",
- encoding: "utf-8",
- });
-
- if (addResult.status !== 0) {
+ if (addResult.status !== 0) {
+ throw new Error(
+ `gemini mcp add failed: ${addResult.stderr || addResult.stdout || "Unknown error"}`
+ );
+ }
+ log.info(`✓ MCP server '${serverName}' configured`);
+ } else {
throw new Error(
- `gemini mcp add failed: ${addResult.stderr || addResult.stdout || "Unknown error"}`
+ `Unsupported MCP server type for Gemini: ${(serverConfig as any).type || "unknown"}`
);
}
- log.info(`✓ MCP server '${serverName}' configured`);
}
}
diff --git a/agents/shared.ts b/agents/shared.ts
index 1020fc4..e5d84f5 100644
--- a/agents/shared.ts
+++ b/agents/shared.ts
@@ -4,7 +4,7 @@ import { mkdtemp } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { pipeline } from "node:stream/promises";
-import type { McpStdioServerConfig } from "@anthropic-ai/claude-agent-sdk";
+import type { McpHttpServerConfig } from "@anthropic-ai/claude-agent-sdk";
import type { show } from "@ark/util";
import { type AgentManifest, type AgentName, agentsManifest, type Payload } from "../external.ts";
import { log } from "../utils/cli.ts";
@@ -26,7 +26,7 @@ export interface AgentConfig {
apiKey: string;
githubInstallationToken: string;
payload: Payload;
- mcpServers: Record;
+ mcpServers: Record;
cliPath: string;
}
@@ -34,7 +34,7 @@ export interface AgentConfig {
* Parameters for configuring MCP servers
*/
export interface ConfigureMcpServersParams {
- mcpServers: Record;
+ mcpServers: Record;
cliPath: string;
}
diff --git a/entry b/entry
index 5b1aaf7..5dc8835 100755
--- a/entry
+++ b/entry
@@ -11,9 +11,16 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
if (typeof require !== "undefined") return require.apply(this, arguments);
throw Error('Dynamic require of "' + x + '" is not supported');
});
-var __commonJS = (cb, mod) => function __require2() {
+var __esm = (fn2, res) => function __init() {
+ return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
+};
+var __commonJS = (cb, mod) => function __require3() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, { get: all[name], enumerable: true });
+};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
@@ -31,9 +38,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
mod
));
-// node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/utils.js
+// ../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/utils.js
var require_utils = __commonJS({
- "node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/utils.js"(exports) {
+ "../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/utils.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toCommandProperties = exports.toCommandValue = void 0;
@@ -63,9 +70,9 @@ var require_utils = __commonJS({
}
});
-// node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/command.js
+// ../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/command.js
var require_command = __commonJS({
- "node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/command.js"(exports) {
+ "../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/command.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
@@ -103,10 +110,10 @@ var require_command = __commonJS({
process.stdout.write(cmd.toString() + os2.EOL);
}
exports.issueCommand = issueCommand;
- function issue(name, message = "") {
+ function issue2(name, message = "") {
issueCommand(name, {}, message);
}
- exports.issue = issue;
+ exports.issue = issue2;
var CMD_STRING = "::";
var Command = class {
constructor(command, properties, message) {
@@ -149,9 +156,9 @@ var require_command = __commonJS({
}
});
-// node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/file-command.js
+// ../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/file-command.js
var require_file_command = __commonJS({
- "node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/file-command.js"(exports) {
+ "../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/file-command.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
@@ -182,25 +189,25 @@ var require_file_command = __commonJS({
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
- var crypto = __importStar(__require("crypto"));
+ var crypto2 = __importStar(__require("crypto"));
var fs3 = __importStar(__require("fs"));
var os2 = __importStar(__require("os"));
var utils_1 = require_utils();
function issueFileCommand(command, message) {
- const filePath2 = process.env[`GITHUB_${command}`];
- if (!filePath2) {
+ const filePath = process.env[`GITHUB_${command}`];
+ if (!filePath) {
throw new Error(`Unable to find environment variable for file command ${command}`);
}
- if (!fs3.existsSync(filePath2)) {
- throw new Error(`Missing file at path: ${filePath2}`);
+ if (!fs3.existsSync(filePath)) {
+ throw new Error(`Missing file at path: ${filePath}`);
}
- fs3.appendFileSync(filePath2, `${(0, utils_1.toCommandValue)(message)}${os2.EOL}`, {
+ fs3.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os2.EOL}`, {
encoding: "utf8"
});
}
exports.issueFileCommand = issueFileCommand;
function prepareKeyValueMessage(key, value2) {
- const delimiter = `ghadelimiter_${crypto.randomUUID()}`;
+ const delimiter = `ghadelimiter_${crypto2.randomUUID()}`;
const convertedValue = (0, utils_1.toCommandValue)(value2);
if (key.includes(delimiter)) {
throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`);
@@ -214,9 +221,9 @@ var require_file_command = __commonJS({
}
});
-// node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/proxy.js
+// ../node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/proxy.js
var require_proxy = __commonJS({
- "node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/proxy.js"(exports) {
+ "../node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/proxy.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkBypass = exports.getProxyUrl = void 0;
@@ -296,29 +303,29 @@ var require_proxy = __commonJS({
}
});
-// node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js
+// ../node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js
var require_tunnel = __commonJS({
- "node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js"(exports) {
+ "../node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js"(exports) {
"use strict";
var net = __require("net");
var tls = __require("tls");
- var http = __require("http");
+ var http2 = __require("http");
var https = __require("https");
var events = __require("events");
- var assert = __require("assert");
- var util2 = __require("util");
+ var assert2 = __require("assert");
+ var util3 = __require("util");
exports.httpOverHttp = httpOverHttp;
exports.httpsOverHttp = httpsOverHttp;
exports.httpOverHttps = httpOverHttps;
exports.httpsOverHttps = httpsOverHttps;
function httpOverHttp(options) {
var agent2 = new TunnelingAgent(options);
- agent2.request = http.request;
+ agent2.request = http2.request;
return agent2;
}
function httpsOverHttp(options) {
var agent2 = new TunnelingAgent(options);
- agent2.request = http.request;
+ agent2.request = http2.request;
agent2.createSocket = createSecureSocket;
agent2.defaultPort = 443;
return agent2;
@@ -339,7 +346,7 @@ var require_tunnel = __commonJS({
var self2 = this;
self2.options = options || {};
self2.proxyOptions = self2.options.proxy || {};
- self2.maxSockets = self2.options.maxSockets || http.Agent.defaultMaxSockets;
+ self2.maxSockets = self2.options.maxSockets || http2.Agent.defaultMaxSockets;
self2.requests = [];
self2.sockets = [];
self2.on("free", function onFree(socket, host, port, localAddress) {
@@ -356,7 +363,7 @@ var require_tunnel = __commonJS({
self2.removeSocket(socket);
});
}
- util2.inherits(TunnelingAgent, events.EventEmitter);
+ util3.inherits(TunnelingAgent, events.EventEmitter);
TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
var self2 = this;
var options = mergeOptions({ request: req }, self2.options, toOptions(host, port, localAddress));
@@ -372,7 +379,7 @@ var require_tunnel = __commonJS({
function onFree() {
self2.emit("free", socket, options);
}
- function onCloseOrRemove(err2) {
+ function onCloseOrRemove(err) {
self2.removeSocket(socket);
socket.removeListener("free", onFree);
socket.removeListener("close", onCloseOrRemove);
@@ -424,18 +431,18 @@ var require_tunnel = __commonJS({
res.statusCode
);
socket.destroy();
- var error2 = new Error("tunneling socket could not be established, statusCode=" + res.statusCode);
- error2.code = "ECONNRESET";
- options.request.emit("error", error2);
+ var error41 = new Error("tunneling socket could not be established, statusCode=" + res.statusCode);
+ error41.code = "ECONNRESET";
+ options.request.emit("error", error41);
self2.removeSocket(placeholder);
return;
}
if (head.length > 0) {
debug2("got illegal response body from proxy");
socket.destroy();
- var error2 = new Error("got illegal response body from proxy");
- error2.code = "ECONNRESET";
- options.request.emit("error", error2);
+ var error41 = new Error("got illegal response body from proxy");
+ error41.code = "ECONNRESET";
+ options.request.emit("error", error41);
self2.removeSocket(placeholder);
return;
}
@@ -450,9 +457,9 @@ var require_tunnel = __commonJS({
cause.message,
cause.stack
);
- var error2 = new Error("tunneling socket could not be established, cause=" + cause.message);
- error2.code = "ECONNRESET";
- options.request.emit("error", error2);
+ var error41 = new Error("tunneling socket could not be established, cause=" + cause.message);
+ error41.code = "ECONNRESET";
+ options.request.emit("error", error41);
self2.removeSocket(placeholder);
}
};
@@ -526,16 +533,16 @@ var require_tunnel = __commonJS({
}
});
-// node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js
+// ../node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js
var require_tunnel2 = __commonJS({
- "node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js"(exports, module) {
+ "../node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js"(exports, module) {
module.exports = require_tunnel();
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/symbols.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/symbols.js
var require_symbols = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/symbols.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/symbols.js"(exports, module) {
module.exports = {
kClose: Symbol("close"),
kDestroy: Symbol("destroy"),
@@ -602,9 +609,9 @@ var require_symbols = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/errors.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/errors.js
var require_errors = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/errors.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/errors.js"(exports, module) {
"use strict";
var UndiciError = class extends Error {
constructor(message) {
@@ -817,9 +824,9 @@ var require_errors = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/constants.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/constants.js
var require_constants = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/constants.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/constants.js"(exports, module) {
"use strict";
var headerNameLowerCasedRecord = {};
var wellknownHeaderNames = [
@@ -932,11 +939,11 @@ var require_constants = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/util.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/util.js
var require_util = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/util.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/util.js"(exports, module) {
"use strict";
- var assert = __require("assert");
+ var assert2 = __require("assert");
var { kDestroyed, kBodyUsed } = require_symbols();
var { IncomingMessage } = __require("http");
var stream = __require("stream");
@@ -997,14 +1004,14 @@ var require_util = __commonJS({
}
const port = url2.port != null ? url2.port : url2.protocol === "https:" ? 443 : 80;
let origin = url2.origin != null ? url2.origin : `${url2.protocol}//${url2.hostname}:${port}`;
- let path4 = url2.path != null ? url2.path : `${url2.pathname || ""}${url2.search || ""}`;
+ let path3 = url2.path != null ? url2.path : `${url2.pathname || ""}${url2.search || ""}`;
if (origin.endsWith("/")) {
origin = origin.substring(0, origin.length - 1);
}
- if (path4 && !path4.startsWith("/")) {
- path4 = `/${path4}`;
+ if (path3 && !path3.startsWith("/")) {
+ path3 = `/${path3}`;
}
- url2 = new URL(origin + path4);
+ url2 = new URL(origin + path3);
}
return url2;
}
@@ -1018,7 +1025,7 @@ var require_util = __commonJS({
function getHostname(host) {
if (host[0] === "[") {
const idx2 = host.indexOf("]");
- assert(idx2 !== -1);
+ assert2(idx2 !== -1);
return host.substring(1, idx2);
}
const idx = host.indexOf(":");
@@ -1029,7 +1036,7 @@ var require_util = __commonJS({
if (!host) {
return null;
}
- assert.strictEqual(typeof host, "string");
+ assert2.strictEqual(typeof host, "string");
const servername = getHostname(host);
if (net.isIP(servername)) {
return "";
@@ -1065,7 +1072,7 @@ var require_util = __commonJS({
const state = stream2 && stream2._readableState;
return isDestroyed(stream2) && state && !state.endEmitted;
}
- function destroy(stream2, err2) {
+ function destroy(stream2, err) {
if (stream2 == null || !isStream(stream2) || isDestroyed(stream2)) {
return;
}
@@ -1073,11 +1080,11 @@ var require_util = __commonJS({
if (Object.getPrototypeOf(stream2).constructor === IncomingMessage) {
stream2.socket = null;
}
- stream2.destroy(err2);
- } else if (err2) {
- process.nextTick((stream3, err3) => {
- stream3.emit("error", err3);
- }, stream2, err2);
+ stream2.destroy(err);
+ } else if (err) {
+ process.nextTick((stream3, err2) => {
+ stream3.emit("error", err2);
+ }, stream2, err);
}
if (stream2.destroyed !== true) {
stream2[kDestroyed] = true;
@@ -1139,31 +1146,31 @@ var require_util = __commonJS({
function isBuffer(buffer) {
return buffer instanceof Uint8Array || Buffer.isBuffer(buffer);
}
- function validateHandler(handler, method, upgrade) {
- if (!handler || typeof handler !== "object") {
+ function validateHandler(handler2, method, upgrade) {
+ if (!handler2 || typeof handler2 !== "object") {
throw new InvalidArgumentError("handler must be an object");
}
- if (typeof handler.onConnect !== "function") {
+ if (typeof handler2.onConnect !== "function") {
throw new InvalidArgumentError("invalid onConnect method");
}
- if (typeof handler.onError !== "function") {
+ if (typeof handler2.onError !== "function") {
throw new InvalidArgumentError("invalid onError method");
}
- if (typeof handler.onBodySent !== "function" && handler.onBodySent !== void 0) {
+ if (typeof handler2.onBodySent !== "function" && handler2.onBodySent !== void 0) {
throw new InvalidArgumentError("invalid onBodySent method");
}
if (upgrade || method === "CONNECT") {
- if (typeof handler.onUpgrade !== "function") {
+ if (typeof handler2.onUpgrade !== "function") {
throw new InvalidArgumentError("invalid onUpgrade method");
}
} else {
- if (typeof handler.onHeaders !== "function") {
+ if (typeof handler2.onHeaders !== "function") {
throw new InvalidArgumentError("invalid onHeaders method");
}
- if (typeof handler.onData !== "function") {
+ if (typeof handler2.onData !== "function") {
throw new InvalidArgumentError("invalid onData method");
}
- if (typeof handler.onComplete !== "function") {
+ if (typeof handler2.onComplete !== "function") {
throw new InvalidArgumentError("invalid onComplete method");
}
}
@@ -1198,22 +1205,22 @@ var require_util = __commonJS({
yield Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
}
}
- var ReadableStream;
+ var ReadableStream2;
function ReadableStreamFrom(iterable) {
- if (!ReadableStream) {
- ReadableStream = __require("stream/web").ReadableStream;
+ if (!ReadableStream2) {
+ ReadableStream2 = __require("stream/web").ReadableStream;
}
- if (ReadableStream.from) {
- return ReadableStream.from(convertIterableToBuffer(iterable));
+ if (ReadableStream2.from) {
+ return ReadableStream2.from(convertIterableToBuffer(iterable));
}
- let iterator;
- return new ReadableStream(
+ let iterator2;
+ return new ReadableStream2(
{
async start() {
- iterator = iterable[Symbol.asyncIterator]();
+ iterator2 = iterable[Symbol.asyncIterator]();
},
async pull(controller) {
- const { done, value: value2 } = await iterator.next();
+ const { done, value: value2 } = await iterator2.next();
if (done) {
queueMicrotask(() => {
controller.close();
@@ -1225,7 +1232,7 @@ var require_util = __commonJS({
return controller.desiredSize > 0;
},
async cancel(reason) {
- await iterator.return();
+ await iterator2.return();
}
},
0
@@ -1242,9 +1249,9 @@ var require_util = __commonJS({
signal.throwIfAborted();
} else {
if (signal.aborted) {
- const err2 = new Error("The operation was aborted");
- err2.name = "AbortError";
- throw err2;
+ const err = new Error("The operation was aborted");
+ err.name = "AbortError";
+ throw err;
}
}
}
@@ -1316,9 +1323,9 @@ var require_util = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/timers.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/timers.js
var require_timers = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/timers.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/timers.js"(exports, module) {
"use strict";
var fastNow = Date.now();
var fastNowTimeout;
@@ -1363,9 +1370,9 @@ var require_timers = __commonJS({
}
}
var Timeout = class {
- constructor(callback, delay, opaque) {
+ constructor(callback, delay2, opaque) {
this.callback = callback;
- this.delay = delay;
+ this.delay = delay2;
this.opaque = opaque;
this.state = -2;
this.refresh();
@@ -1384,8 +1391,8 @@ var require_timers = __commonJS({
}
};
module.exports = {
- setTimeout(callback, delay, opaque) {
- return delay < 1e3 ? setTimeout(callback, delay, opaque) : new Timeout(callback, delay, opaque);
+ setTimeout(callback, delay2, opaque) {
+ return delay2 < 1e3 ? setTimeout(callback, delay2, opaque) : new Timeout(callback, delay2, opaque);
},
clearTimeout(timeout) {
if (timeout instanceof Timeout) {
@@ -1398,11 +1405,11 @@ var require_timers = __commonJS({
}
});
-// node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/streamsearch/sbmh.js
+// ../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/streamsearch/sbmh.js
var require_sbmh = __commonJS({
- "node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/streamsearch/sbmh.js"(exports, module) {
+ "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/streamsearch/sbmh.js"(exports, module) {
"use strict";
- var EventEmitter = __require("node:events").EventEmitter;
+ var EventEmitter2 = __require("node:events").EventEmitter;
var inherits = __require("node:util").inherits;
function SBMH(needle) {
if (typeof needle === "string") {
@@ -1429,7 +1436,7 @@ var require_sbmh = __commonJS({
this._occ[needle[i]] = needleLength - 1 - i;
}
}
- inherits(SBMH, EventEmitter);
+ inherits(SBMH, EventEmitter2);
SBMH.prototype.reset = function() {
this._lookbehind_size = 0;
this.matches = 0;
@@ -1535,25 +1542,25 @@ var require_sbmh = __commonJS({
}
});
-// node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js
+// ../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js
var require_PartStream = __commonJS({
- "node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js"(exports, module) {
+ "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js"(exports, module) {
"use strict";
var inherits = __require("node:util").inherits;
- var ReadableStream = __require("node:stream").Readable;
+ var ReadableStream2 = __require("node:stream").Readable;
function PartStream(opts) {
- ReadableStream.call(this, opts);
+ ReadableStream2.call(this, opts);
}
- inherits(PartStream, ReadableStream);
+ inherits(PartStream, ReadableStream2);
PartStream.prototype._read = function(n) {
};
module.exports = PartStream;
}
});
-// node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/getLimit.js
+// ../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/getLimit.js
var require_getLimit = __commonJS({
- "node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/getLimit.js"(exports, module) {
+ "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/getLimit.js"(exports, module) {
"use strict";
module.exports = function getLimit(limits, name, defaultLimit) {
if (!limits || limits[name] === void 0 || limits[name] === null) {
@@ -1567,11 +1574,11 @@ var require_getLimit = __commonJS({
}
});
-// node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js
+// ../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js
var require_HeaderParser = __commonJS({
- "node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js"(exports, module) {
+ "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js"(exports, module) {
"use strict";
- var EventEmitter = __require("node:events").EventEmitter;
+ var EventEmitter2 = __require("node:events").EventEmitter;
var inherits = __require("node:util").inherits;
var getLimit = require_getLimit();
var StreamSearch = require_sbmh();
@@ -1579,7 +1586,7 @@ var require_HeaderParser = __commonJS({
var RE_CRLF = /\r\n/g;
var RE_HDR = /^([^:]+):[ \t]?([\x00-\xFF]+)?$/;
function HeaderParser(cfg) {
- EventEmitter.call(this);
+ EventEmitter2.call(this);
cfg = cfg || {};
const self2 = this;
this.nread = 0;
@@ -1607,7 +1614,7 @@ var require_HeaderParser = __commonJS({
}
});
}
- inherits(HeaderParser, EventEmitter);
+ inherits(HeaderParser, EventEmitter2);
HeaderParser.prototype.push = function(data) {
const r = this.ss.push(data);
if (this.finished) {
@@ -1667,11 +1674,11 @@ var require_HeaderParser = __commonJS({
}
});
-// node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js
+// ../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js
var require_Dicer = __commonJS({
- "node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js"(exports, module) {
+ "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js"(exports, module) {
"use strict";
- var WritableStream = __require("node:stream").Writable;
+ var WritableStream2 = __require("node:stream").Writable;
var inherits = __require("node:util").inherits;
var StreamSearch = require_sbmh();
var PartStream = require_PartStream();
@@ -1685,7 +1692,7 @@ var require_Dicer = __commonJS({
if (!(this instanceof Dicer)) {
return new Dicer(cfg);
}
- WritableStream.call(this, cfg);
+ WritableStream2.call(this, cfg);
if (!cfg || !cfg.headerFirst && typeof cfg.boundary !== "string") {
throw new TypeError("Boundary required");
}
@@ -1715,7 +1722,7 @@ var require_Dicer = __commonJS({
self2._part.emit("header", header);
});
}
- inherits(Dicer, WritableStream);
+ inherits(Dicer, WritableStream2);
Dicer.prototype.emit = function(ev) {
if (ev === "finish" && !this._realFinish) {
if (!this._finished) {
@@ -1739,7 +1746,7 @@ var require_Dicer = __commonJS({
});
}
} else {
- WritableStream.prototype.emit.apply(this, arguments);
+ WritableStream2.prototype.emit.apply(this, arguments);
}
};
Dicer.prototype._write = function(data, encoding, cb) {
@@ -1907,9 +1914,9 @@ var require_Dicer = __commonJS({
}
});
-// node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/decodeText.js
+// ../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/decodeText.js
var require_decodeText = __commonJS({
- "node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/decodeText.js"(exports, module) {
+ "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/decodeText.js"(exports, module) {
"use strict";
var utf8Decoder = new TextDecoder("utf-8");
var textDecoders = /* @__PURE__ */ new Map([
@@ -2016,9 +2023,9 @@ var require_decodeText = __commonJS({
}
});
-// node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/parseParams.js
+// ../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/parseParams.js
var require_parseParams = __commonJS({
- "node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/parseParams.js"(exports, module) {
+ "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/parseParams.js"(exports, module) {
"use strict";
var decodeText = require_decodeText();
var RE_ENCODED = /%[a-fA-F0-9][a-fA-F0-9]/g;
@@ -2614,31 +2621,31 @@ var require_parseParams = __commonJS({
}
});
-// node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/basename.js
+// ../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/basename.js
var require_basename = __commonJS({
- "node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/basename.js"(exports, module) {
+ "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/basename.js"(exports, module) {
"use strict";
- module.exports = function basename(path4) {
- if (typeof path4 !== "string") {
+ module.exports = function basename(path3) {
+ if (typeof path3 !== "string") {
return "";
}
- for (var i = path4.length - 1; i >= 0; --i) {
- switch (path4.charCodeAt(i)) {
+ for (var i = path3.length - 1; i >= 0; --i) {
+ switch (path3.charCodeAt(i)) {
case 47:
// '/'
case 92:
- path4 = path4.slice(i + 1);
- return path4 === ".." || path4 === "." ? "" : path4;
+ path3 = path3.slice(i + 1);
+ return path3 === ".." || path3 === "." ? "" : path3;
}
}
- return path4 === ".." || path4 === "." ? "" : path4;
+ return path3 === ".." || path3 === "." ? "" : path3;
};
}
});
-// node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/types/multipart.js
+// ../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/types/multipart.js
var require_multipart = __commonJS({
- "node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/types/multipart.js"(exports, module) {
+ "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/types/multipart.js"(exports, module) {
"use strict";
var { Readable } = __require("node:stream");
var { inherits } = __require("node:util");
@@ -2869,13 +2876,13 @@ var require_multipart = __commonJS({
part._readableState.sync = false;
part.on("data", onData);
part.on("end", onEnd);
- }).on("error", function(err2) {
+ }).on("error", function(err) {
if (curFile) {
- curFile.emit("error", err2);
+ curFile.emit("error", err);
}
});
- }).on("error", function(err2) {
- boy.emit("error", err2);
+ }).on("error", function(err) {
+ boy.emit("error", err);
}).on("finish", function() {
finished = true;
checkFinished();
@@ -2916,9 +2923,9 @@ var require_multipart = __commonJS({
}
});
-// node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/Decoder.js
+// ../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/Decoder.js
var require_Decoder = __commonJS({
- "node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/Decoder.js"(exports, module) {
+ "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/Decoder.js"(exports, module) {
"use strict";
var RE_PLUS = /\+/g;
var HEX = [
@@ -3095,9 +3102,9 @@ var require_Decoder = __commonJS({
}
});
-// node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/types/urlencoded.js
+// ../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/types/urlencoded.js
var require_urlencoded = __commonJS({
- "node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/types/urlencoded.js"(exports, module) {
+ "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/types/urlencoded.js"(exports, module) {
"use strict";
var Decoder = require_Decoder();
var decodeText = require_decodeText();
@@ -3310,11 +3317,11 @@ var require_urlencoded = __commonJS({
}
});
-// node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js
+// ../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js
var require_main = __commonJS({
- "node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js"(exports, module) {
+ "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js"(exports, module) {
"use strict";
- var WritableStream = __require("node:stream").Writable;
+ var WritableStream2 = __require("node:stream").Writable;
var { inherits } = __require("node:util");
var Dicer = require_Dicer();
var MultipartParser = require_multipart();
@@ -3341,12 +3348,12 @@ var require_main = __commonJS({
autoDestroy: false,
...streamOptions
};
- WritableStream.call(this, this.opts);
+ WritableStream2.call(this, this.opts);
this._done = false;
this._parser = this.getParserByHeaders(headers);
this._finished = false;
}
- inherits(Busboy, WritableStream);
+ inherits(Busboy, WritableStream2);
Busboy.prototype.emit = function(ev) {
if (ev === "finish") {
if (!this._done) {
@@ -3357,7 +3364,7 @@ var require_main = __commonJS({
}
this._finished = true;
}
- WritableStream.prototype.emit.apply(this, arguments);
+ WritableStream2.prototype.emit.apply(this, arguments);
};
Busboy.prototype.getParserByHeaders = function(headers) {
const parsed2 = parseParams(headers["content-type"]);
@@ -3389,9 +3396,9 @@ var require_main = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/constants.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/constants.js
var require_constants2 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/constants.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/constants.js"(exports, module) {
"use strict";
var { MessageChannel, receiveMessageOnPort } = __require("worker_threads");
var corsSafeListedMethods = ["GET", "HEAD", "POST"];
@@ -3541,8 +3548,8 @@ var require_constants2 = __commonJS({
var DOMException2 = globalThis.DOMException ?? (() => {
try {
atob("~");
- } catch (err2) {
- return Object.getPrototypeOf(err2).constructor;
+ } catch (err) {
+ return Object.getPrototypeOf(err).constructor;
}
})();
var channel;
@@ -3588,9 +3595,9 @@ var require_constants2 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/global.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/global.js
var require_global = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/global.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/global.js"(exports, module) {
"use strict";
var globalOrigin = Symbol.for("undici.globalOrigin.1");
function getGlobalOrigin() {
@@ -3624,22 +3631,22 @@ var require_global = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/util.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/util.js
var require_util2 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/util.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/util.js"(exports, module) {
"use strict";
var { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = require_constants2();
var { getGlobalOrigin } = require_global();
var { performance: performance2 } = __require("perf_hooks");
var { isBlobLike, toUSVString, ReadableStreamFrom } = require_util();
- var assert = __require("assert");
+ var assert2 = __require("assert");
var { isUint8Array } = __require("util/types");
var supportedHashes = [];
- var crypto;
+ var crypto2;
try {
- crypto = __require("crypto");
+ crypto2 = __require("crypto");
const possibleRelevantHashes = ["sha256", "sha384", "sha512"];
- supportedHashes = crypto.getHashes().filter((hash) => possibleRelevantHashes.includes(hash));
+ supportedHashes = crypto2.getHashes().filter((hash) => possibleRelevantHashes.includes(hash));
} catch {
}
function responseURL(response) {
@@ -3660,11 +3667,11 @@ var require_util2 = __commonJS({
}
return location;
}
- function requestCurrentURL(request) {
- return request.urlList[request.urlList.length - 1];
+ function requestCurrentURL(request2) {
+ return request2.urlList[request2.urlList.length - 1];
}
- function requestBadPort(request) {
- const url2 = requestCurrentURL(request);
+ function requestBadPort(request2) {
+ const url2 = requestCurrentURL(request2);
if (urlIsHttpHttpsScheme(url2) && badPortsSet.has(url2.port)) {
return "blocked";
}
@@ -3731,7 +3738,7 @@ var require_util2 = __commonJS({
}
return true;
}
- function setRequestReferrerPolicyOnRedirect(request, actualResponse) {
+ function setRequestReferrerPolicyOnRedirect(request2, actualResponse) {
const { headersList } = actualResponse;
const policyHeader = (headersList.get("referrer-policy") ?? "").split(",");
let policy = "";
@@ -3745,7 +3752,7 @@ var require_util2 = __commonJS({
}
}
if (policy !== "") {
- request.referrerPolicy = policy;
+ request2.referrerPolicy = policy;
}
}
function crossOriginResourcePolicyCheck() {
@@ -3762,33 +3769,33 @@ var require_util2 = __commonJS({
header = httpRequest.mode;
httpRequest.headersList.set("sec-fetch-mode", header);
}
- function appendRequestOriginHeader(request) {
- let serializedOrigin = request.origin;
- if (request.responseTainting === "cors" || request.mode === "websocket") {
+ function appendRequestOriginHeader(request2) {
+ let serializedOrigin = request2.origin;
+ if (request2.responseTainting === "cors" || request2.mode === "websocket") {
if (serializedOrigin) {
- request.headersList.append("origin", serializedOrigin);
+ request2.headersList.append("origin", serializedOrigin);
}
- } else if (request.method !== "GET" && request.method !== "HEAD") {
- switch (request.referrerPolicy) {
+ } else if (request2.method !== "GET" && request2.method !== "HEAD") {
+ switch (request2.referrerPolicy) {
case "no-referrer":
serializedOrigin = null;
break;
case "no-referrer-when-downgrade":
case "strict-origin":
case "strict-origin-when-cross-origin":
- if (request.origin && urlHasHttpsScheme(request.origin) && !urlHasHttpsScheme(requestCurrentURL(request))) {
+ if (request2.origin && urlHasHttpsScheme(request2.origin) && !urlHasHttpsScheme(requestCurrentURL(request2))) {
serializedOrigin = null;
}
break;
case "same-origin":
- if (!sameOrigin(request, requestCurrentURL(request))) {
+ if (!sameOrigin(request2, requestCurrentURL(request2))) {
serializedOrigin = null;
}
break;
default:
}
if (serializedOrigin) {
- request.headersList.append("origin", serializedOrigin);
+ request2.headersList.append("origin", serializedOrigin);
}
}
}
@@ -3820,26 +3827,26 @@ var require_util2 = __commonJS({
referrerPolicy: policyContainer.referrerPolicy
};
}
- function determineRequestsReferrer(request) {
- const policy = request.referrerPolicy;
- assert(policy);
+ function determineRequestsReferrer(request2) {
+ const policy = request2.referrerPolicy;
+ assert2(policy);
let referrerSource = null;
- if (request.referrer === "client") {
+ if (request2.referrer === "client") {
const globalOrigin = getGlobalOrigin();
if (!globalOrigin || globalOrigin.origin === "null") {
return "no-referrer";
}
referrerSource = new URL(globalOrigin);
- } else if (request.referrer instanceof URL) {
- referrerSource = request.referrer;
+ } else if (request2.referrer instanceof URL) {
+ referrerSource = request2.referrer;
}
let referrerURL = stripURLForReferrer(referrerSource);
const referrerOrigin = stripURLForReferrer(referrerSource, true);
if (referrerURL.toString().length > 4096) {
referrerURL = referrerOrigin;
}
- const areSameOrigin = sameOrigin(request, referrerURL);
- const isNonPotentiallyTrustWorthy = isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(request.url);
+ const areSameOrigin = sameOrigin(request2, referrerURL);
+ const isNonPotentiallyTrustWorthy = isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(request2.url);
switch (policy) {
case "origin":
return referrerOrigin != null ? referrerOrigin : stripURLForReferrer(referrerSource, true);
@@ -3850,7 +3857,7 @@ var require_util2 = __commonJS({
case "origin-when-cross-origin":
return areSameOrigin ? referrerURL : referrerOrigin;
case "strict-origin-when-cross-origin": {
- const currentURL = requestCurrentURL(request);
+ const currentURL = requestCurrentURL(request2);
if (sameOrigin(referrerURL, currentURL)) {
return referrerURL;
}
@@ -3880,7 +3887,7 @@ var require_util2 = __commonJS({
}
}
function stripURLForReferrer(url2, originOnly) {
- assert(url2 instanceof URL);
+ assert2(url2 instanceof URL);
if (url2.protocol === "file:" || url2.protocol === "about:" || url2.protocol === "blank:") {
return "no-referrer";
}
@@ -3916,7 +3923,7 @@ var require_util2 = __commonJS({
}
}
function bytesMatch(bytes, metadataList) {
- if (crypto === void 0) {
+ if (crypto2 === void 0) {
return true;
}
const parsedMetadata = parseMetadata(metadataList);
@@ -3931,7 +3938,7 @@ var require_util2 = __commonJS({
for (const item of metadata) {
const algorithm = item.algo;
const expectedValue = item.hash;
- let actualValue = crypto.createHash(algorithm).update(bytes).digest("base64");
+ let actualValue = crypto2.createHash(algorithm).update(bytes).digest("base64");
if (actualValue[actualValue.length - 1] === "=") {
if (actualValue[actualValue.length - 2] === "=") {
actualValue = actualValue.slice(0, -2);
@@ -4010,7 +4017,7 @@ var require_util2 = __commonJS({
}
return true;
}
- function tryUpgradeRequestToAPotentiallyTrustworthyURL(request) {
+ function tryUpgradeRequestToAPotentiallyTrustworthyURL(request2) {
}
function sameOrigin(A, B) {
if (A.origin === B.origin && A.origin === "null") {
@@ -4030,7 +4037,7 @@ var require_util2 = __commonJS({
});
return { promise, resolve: res, reject: rej };
}
- function isAborted2(fetchParams) {
+ function isAborted4(fetchParams) {
return fetchParams.controller.state === "aborted";
}
function isCancelled(fetchParams) {
@@ -4059,15 +4066,15 @@ var require_util2 = __commonJS({
if (result === void 0) {
throw new TypeError("Value is not JSON serializable");
}
- assert(typeof result === "string");
+ assert2(typeof result === "string");
return result;
}
var esIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));
- function makeIterator(iterator, name, kind) {
+ function makeIterator(iterator2, name, kind) {
const object2 = {
index: 0,
kind,
- target: iterator
+ target: iterator2
};
const i = {
next() {
@@ -4128,12 +4135,12 @@ var require_util2 = __commonJS({
errorSteps(e);
}
}
- var ReadableStream = globalThis.ReadableStream;
+ var ReadableStream2 = globalThis.ReadableStream;
function isReadableStreamLike(stream) {
- if (!ReadableStream) {
- ReadableStream = __require("stream/web").ReadableStream;
+ if (!ReadableStream2) {
+ ReadableStream2 = __require("stream/web").ReadableStream;
}
- return stream instanceof ReadableStream || stream[Symbol.toStringTag] === "ReadableStream" && typeof stream.tee === "function";
+ return stream instanceof ReadableStream2 || stream[Symbol.toStringTag] === "ReadableStream" && typeof stream.tee === "function";
}
var MAXIMUM_ARGUMENT_LENGTH = 65535;
function isomorphicDecode(input) {
@@ -4145,15 +4152,15 @@ var require_util2 = __commonJS({
function readableStreamClose(controller) {
try {
controller.close();
- } catch (err2) {
- if (!err2.message.includes("Controller is already closed")) {
- throw err2;
+ } catch (err) {
+ if (!err.message.includes("Controller is already closed")) {
+ throw err;
}
}
}
function isomorphicEncode(input) {
for (let i = 0; i < input.length; i++) {
- assert(input.charCodeAt(i) <= 255);
+ assert2(input.charCodeAt(i) <= 255);
}
return input;
}
@@ -4173,7 +4180,7 @@ var require_util2 = __commonJS({
}
}
function urlIsLocal(url2) {
- assert("protocol" in url2);
+ assert2("protocol" in url2);
const protocol = url2.protocol;
return protocol === "about:" || protocol === "blob:" || protocol === "data:";
}
@@ -4184,13 +4191,13 @@ var require_util2 = __commonJS({
return url2.protocol === "https:";
}
function urlIsHttpHttpsScheme(url2) {
- assert("protocol" in url2);
+ assert2("protocol" in url2);
const protocol = url2.protocol;
return protocol === "http:" || protocol === "https:";
}
- var hasOwn = Object.hasOwn || ((dict, key) => Object.prototype.hasOwnProperty.call(dict, key));
+ var hasOwn2 = Object.hasOwn || ((dict, key) => Object.prototype.hasOwnProperty.call(dict, key));
module.exports = {
- isAborted: isAborted2,
+ isAborted: isAborted4,
isCancelled,
createDeferredPromise,
ReadableStreamFrom,
@@ -4221,7 +4228,7 @@ var require_util2 = __commonJS({
makeIterator,
isValidHeaderName,
isValidHeaderValue,
- hasOwn,
+ hasOwn: hasOwn2,
isErrorLike,
fullyReadBody,
bytesMatch,
@@ -4239,9 +4246,9 @@ var require_util2 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/symbols.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/symbols.js
var require_symbols2 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/symbols.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/symbols.js"(exports, module) {
"use strict";
module.exports = {
kUrl: Symbol("url"),
@@ -4254,12 +4261,12 @@ var require_symbols2 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/webidl.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/webidl.js
var require_webidl = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/webidl.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/webidl.js"(exports, module) {
"use strict";
var { types } = __require("util");
- var { hasOwn, toUSVString } = require_util2();
+ var { hasOwn: hasOwn2, toUSVString } = require_util2();
var webidl = {};
webidl.converters = {};
webidl.util = {};
@@ -4468,9 +4475,9 @@ var require_webidl = __commonJS({
});
}
for (const options of converters) {
- const { key, defaultValue, required, converter } = options;
- if (required === true) {
- if (!hasOwn(dictionary, key)) {
+ const { key, defaultValue, required: required2, converter } = options;
+ if (required2 === true) {
+ if (!hasOwn2(dictionary, key)) {
throw webidl.errors.exception({
header: "Dictionary",
message: `Missing required key "${key}".`
@@ -4478,11 +4485,11 @@ var require_webidl = __commonJS({
}
}
let value2 = dictionary[key];
- const hasDefault = hasOwn(options, "defaultValue");
+ const hasDefault = hasOwn2(options, "defaultValue");
if (hasDefault && value2 !== null) {
value2 = value2 ?? defaultValue;
}
- if (required || hasDefault || value2 !== void 0) {
+ if (required2 || hasDefault || value2 !== void 0) {
value2 = converter(value2);
if (options.allowedValues && !options.allowedValues.includes(value2)) {
throw webidl.errors.exception({
@@ -4623,10 +4630,10 @@ var require_webidl = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/dataURL.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/dataURL.js
var require_dataURL = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/dataURL.js"(exports, module) {
- var assert = __require("assert");
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/dataURL.js"(exports, module) {
+ var assert2 = __require("assert");
var { atob: atob2 } = __require("buffer");
var { isomorphicDecode } = require_util2();
var encoder = new TextEncoder();
@@ -4634,7 +4641,7 @@ var require_dataURL = __commonJS({
var HTTP_WHITESPACE_REGEX = /(\u000A|\u000D|\u0009|\u0020)/;
var HTTP_QUOTED_STRING_TOKENS = /[\u0009|\u0020-\u007E|\u0080-\u00FF]/;
function dataURLProcessor(dataURL) {
- assert(dataURL.protocol === "data:");
+ assert2(dataURL.protocol === "data:");
let input = URLSerializer(dataURL, true);
input = input.slice(5);
const position = { position: 0 };
@@ -4820,7 +4827,7 @@ var require_dataURL = __commonJS({
function collectAnHTTPQuotedString(input, position, extractValue) {
const positionStart = position.position;
let value2 = "";
- assert(input[position.position] === '"');
+ assert2(input[position.position] === '"');
position.position++;
while (true) {
value2 += collectASequenceOfCodePoints(
@@ -4841,7 +4848,7 @@ var require_dataURL = __commonJS({
value2 += input[position.position];
position.position++;
} else {
- assert(quoteOrBackslash === '"');
+ assert2(quoteOrBackslash === '"');
break;
}
}
@@ -4851,7 +4858,7 @@ var require_dataURL = __commonJS({
return input.slice(positionStart, position.position);
}
function serializeAMimeType(mimeType) {
- assert(mimeType !== "failure");
+ assert2(mimeType !== "failure");
const { parameters, essence } = mimeType;
let serialization = essence;
for (let [name, value2] of parameters.entries()) {
@@ -4908,9 +4915,9 @@ var require_dataURL = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/file.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/file.js
var require_file = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/file.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/file.js"(exports, module) {
"use strict";
var { Blob: Blob2, File: NativeFile } = __require("buffer");
var { types } = __require("util");
@@ -4920,7 +4927,7 @@ var require_file = __commonJS({
var { parseMIMEType, serializeAMimeType } = require_dataURL();
var { kEnumerableProperty } = require_util();
var encoder = new TextEncoder();
- var File = class _File extends Blob2 {
+ var File2 = class _File extends Blob2 {
constructor(fileBits, fileName2, options = {}) {
webidl.argumentLengthCheck(arguments, 2, { header: "File constructor" });
fileBits = webidl.converters["sequence"](fileBits);
@@ -5008,7 +5015,7 @@ var require_file = __commonJS({
return "File";
}
};
- Object.defineProperties(File.prototype, {
+ Object.defineProperties(File2.prototype, {
[Symbol.toStringTag]: {
value: "File",
configurable: true
@@ -5088,22 +5095,22 @@ var require_file = __commonJS({
return s.replace(/\r?\n/g, nativeLineEnding);
}
function isFileLike(object2) {
- return NativeFile && object2 instanceof NativeFile || object2 instanceof File || object2 && (typeof object2.stream === "function" || typeof object2.arrayBuffer === "function") && object2[Symbol.toStringTag] === "File";
+ return NativeFile && object2 instanceof NativeFile || object2 instanceof File2 || object2 && (typeof object2.stream === "function" || typeof object2.arrayBuffer === "function") && object2[Symbol.toStringTag] === "File";
}
- module.exports = { File, FileLike, isFileLike };
+ module.exports = { File: File2, FileLike, isFileLike };
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/formdata.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/formdata.js
var require_formdata = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/formdata.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/formdata.js"(exports, module) {
"use strict";
var { isBlobLike, toUSVString, makeIterator } = require_util2();
var { kState } = require_symbols2();
var { File: UndiciFile, FileLike, isFileLike } = require_file();
var { webidl } = require_webidl();
var { Blob: Blob2, File: NativeFile } = __require("buffer");
- var File = NativeFile ?? UndiciFile;
+ var File2 = NativeFile ?? UndiciFile;
var FormData2 = class _FormData {
constructor(form) {
if (form !== void 0) {
@@ -5234,14 +5241,14 @@ var require_formdata = __commonJS({
value2 = Buffer.from(value2).toString("utf8");
} else {
if (!isFileLike(value2)) {
- value2 = value2 instanceof Blob2 ? new File([value2], "blob", { type: value2.type }) : new FileLike(value2, "blob", { type: value2.type });
+ value2 = value2 instanceof Blob2 ? new File2([value2], "blob", { type: value2.type }) : new FileLike(value2, "blob", { type: value2.type });
}
if (filename !== void 0) {
const options = {
type: value2.type,
lastModified: value2.lastModified
};
- value2 = NativeFile && value2 instanceof NativeFile || value2 instanceof UndiciFile ? new File([value2], filename, options) : new FileLike(value2, filename, options);
+ value2 = NativeFile && value2 instanceof NativeFile || value2 instanceof UndiciFile ? new File2([value2], filename, options) : new FileLike(value2, filename, options);
}
}
return { name, value: value2 };
@@ -5250,12 +5257,12 @@ var require_formdata = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/body.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/body.js
var require_body = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/body.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/body.js"(exports, module) {
"use strict";
var Busboy = require_main();
- var util2 = require_util();
+ var util3 = require_util();
var {
ReadableStreamFrom,
isBlobLike,
@@ -5270,33 +5277,33 @@ var require_body = __commonJS({
var { DOMException: DOMException2, structuredClone } = require_constants2();
var { Blob: Blob2, File: NativeFile } = __require("buffer");
var { kBodyUsed } = require_symbols();
- var assert = __require("assert");
+ var assert2 = __require("assert");
var { isErrored } = require_util();
var { isUint8Array, isArrayBuffer } = __require("util/types");
var { File: UndiciFile } = require_file();
var { parseMIMEType, serializeAMimeType } = require_dataURL();
var random;
try {
- const crypto = __require("node:crypto");
- random = (max) => crypto.randomInt(0, max);
+ const crypto2 = __require("node:crypto");
+ random = (max) => crypto2.randomInt(0, max);
} catch {
random = (max) => Math.floor(Math.random(max));
}
- var ReadableStream = globalThis.ReadableStream;
- var File = NativeFile ?? UndiciFile;
+ var ReadableStream2 = globalThis.ReadableStream;
+ var File2 = NativeFile ?? UndiciFile;
var textEncoder = new TextEncoder();
var textDecoder = new TextDecoder();
function extractBody(object2, keepalive = false) {
- if (!ReadableStream) {
- ReadableStream = __require("stream/web").ReadableStream;
+ if (!ReadableStream2) {
+ ReadableStream2 = __require("stream/web").ReadableStream;
}
let stream = null;
- if (object2 instanceof ReadableStream) {
+ if (object2 instanceof ReadableStream2) {
stream = object2;
} else if (isBlobLike(object2)) {
stream = object2.stream();
} else {
- stream = new ReadableStream({
+ stream = new ReadableStream2({
async pull(controller) {
controller.enqueue(
typeof source === "string" ? textEncoder.encode(source) : source
@@ -5308,7 +5315,7 @@ var require_body = __commonJS({
type: void 0
});
}
- assert(isReadableStreamLike(stream));
+ assert2(isReadableStreamLike(stream));
let action = null;
let source = null;
let length = null;
@@ -5323,7 +5330,7 @@ var require_body = __commonJS({
source = new Uint8Array(object2.slice());
} else if (ArrayBuffer.isView(object2)) {
source = new Uint8Array(object2.buffer.slice(object2.byteOffset, object2.byteOffset + object2.byteLength));
- } else if (util2.isFormDataLike(object2)) {
+ } else if (util3.isFormDataLike(object2)) {
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, "0")}`;
const prefix = `--${boundary}\r
Content-Disposition: form-data`;
@@ -5381,24 +5388,24 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
if (keepalive) {
throw new TypeError("keepalive");
}
- if (util2.isDisturbed(object2) || object2.locked) {
+ if (util3.isDisturbed(object2) || object2.locked) {
throw new TypeError(
"Response body object should not be disturbed or locked"
);
}
- stream = object2 instanceof ReadableStream ? object2 : ReadableStreamFrom(object2);
+ stream = object2 instanceof ReadableStream2 ? object2 : ReadableStreamFrom(object2);
}
- if (typeof source === "string" || util2.isBuffer(source)) {
+ if (typeof source === "string" || util3.isBuffer(source)) {
length = Buffer.byteLength(source);
}
if (action != null) {
- let iterator;
- stream = new ReadableStream({
+ let iterator2;
+ stream = new ReadableStream2({
async start() {
- iterator = action(object2)[Symbol.asyncIterator]();
+ iterator2 = action(object2)[Symbol.asyncIterator]();
},
async pull(controller) {
- const { value: value2, done } = await iterator.next();
+ const { value: value2, done } = await iterator2.next();
if (done) {
queueMicrotask(() => {
controller.close();
@@ -5411,7 +5418,7 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
return controller.desiredSize > 0;
},
async cancel(reason) {
- await iterator.return();
+ await iterator2.return();
},
type: void 0
});
@@ -5420,12 +5427,12 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
return [body, type2];
}
function safelyExtractBody(object2, keepalive = false) {
- if (!ReadableStream) {
- ReadableStream = __require("stream/web").ReadableStream;
+ if (!ReadableStream2) {
+ ReadableStream2 = __require("stream/web").ReadableStream;
}
- if (object2 instanceof ReadableStream) {
- assert(!util2.isDisturbed(object2), "The body has already been consumed.");
- assert(!object2.locked, "The stream is locked.");
+ if (object2 instanceof ReadableStream2) {
+ assert2(!util3.isDisturbed(object2), "The body has already been consumed.");
+ assert2(!object2.locked, "The stream is locked.");
}
return extractBody(object2, keepalive);
}
@@ -5446,7 +5453,7 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
yield body;
} else {
const stream = body.stream;
- if (util2.isDisturbed(stream)) {
+ if (util3.isDisturbed(stream)) {
throw new TypeError("The body has already been consumed.");
}
if (stream.locked) {
@@ -5500,8 +5507,8 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
headers,
preservePath: true
});
- } catch (err2) {
- throw new DOMException2(`${err2}`, "AbortError");
+ } catch (err) {
+ throw new DOMException2(`${err}`, "AbortError");
}
busboy.on("field", (name, value2) => {
responseFormData.append(name, value2);
@@ -5518,20 +5525,20 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
});
value2.on("end", () => {
chunks.push(Buffer.from(base64chunk, "base64"));
- responseFormData.append(name, new File(chunks, filename, { type: mimeType }));
+ responseFormData.append(name, new File2(chunks, filename, { type: mimeType }));
});
} else {
value2.on("data", (chunk) => {
chunks.push(chunk);
});
value2.on("end", () => {
- responseFormData.append(name, new File(chunks, filename, { type: mimeType }));
+ responseFormData.append(name, new File2(chunks, filename, { type: mimeType }));
});
}
});
const busboyResolve = new Promise((resolve, reject) => {
busboy.on("finish", resolve);
- busboy.on("error", (err2) => reject(new TypeError(err2)));
+ busboy.on("error", (err) => reject(new TypeError(err)));
});
if (this.body !== null) for await (const chunk of consumeBody(this[kState].body)) busboy.write(chunk);
busboy.end();
@@ -5550,8 +5557,8 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
}
text += streamingDecoder.decode();
entries = new URLSearchParams(text);
- } catch (err2) {
- throw Object.assign(new TypeError(), { cause: err2 });
+ } catch (err) {
+ throw Object.assign(new TypeError(), { cause: err });
}
const formData = new FormData2();
for (const [name, value2] of entries) {
@@ -5580,7 +5587,7 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
throw new TypeError("Body is unusable");
}
const promise = createDeferredPromise();
- const errorSteps = (error2) => promise.reject(error2);
+ const errorSteps = (error41) => promise.reject(error41);
const successSteps = (data) => {
try {
promise.resolve(convertBytesToJSValue(data));
@@ -5596,7 +5603,7 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
return promise.promise;
}
function bodyUnusable(body) {
- return body != null && (body.stream.locked || util2.isDisturbed(body.stream));
+ return body != null && (body.stream.locked || util3.isDisturbed(body.stream));
}
function utf8DecodeBytes(buffer) {
if (buffer.length === 0) {
@@ -5628,17 +5635,17 @@ Content-Type: ${value2.type || "application/octet-stream"}\r
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/request.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/request.js
var require_request = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/request.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/request.js"(exports, module) {
"use strict";
var {
InvalidArgumentError,
NotSupportedError
} = require_errors();
- var assert = __require("assert");
+ var assert2 = __require("assert");
var { kHTTP2BuildRequest, kHTTP2CopyHeaders, kHTTP1BuildRequest } = require_symbols();
- var util2 = require_util();
+ var util3 = require_util();
var tokenRegExp = /^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;
var headerCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
var invalidPathRegex = /[^\u0021-\u00ff]/;
@@ -5661,7 +5668,7 @@ var require_request = __commonJS({
}
var Request2 = class _Request {
constructor(origin, {
- path: path4,
+ path: path3,
method,
body,
headers,
@@ -5674,12 +5681,12 @@ var require_request = __commonJS({
reset,
throwOnError,
expectContinue
- }, handler) {
- if (typeof path4 !== "string") {
+ }, handler2) {
+ if (typeof path3 !== "string") {
throw new InvalidArgumentError("path must be a string");
- } else if (path4[0] !== "/" && !(path4.startsWith("http://") || path4.startsWith("https://")) && method !== "CONNECT") {
+ } else if (path3[0] !== "/" && !(path3.startsWith("http://") || path3.startsWith("https://")) && method !== "CONNECT") {
throw new InvalidArgumentError("path must be an absolute URL or start with a slash");
- } else if (invalidPathRegex.exec(path4) !== null) {
+ } else if (invalidPathRegex.exec(path3) !== null) {
throw new InvalidArgumentError("invalid request path");
}
if (typeof method !== "string") {
@@ -5709,24 +5716,24 @@ var require_request = __commonJS({
this.abort = null;
if (body == null) {
this.body = null;
- } else if (util2.isStream(body)) {
+ } else if (util3.isStream(body)) {
this.body = body;
const rState = this.body._readableState;
if (!rState || !rState.autoDestroy) {
this.endHandler = function autoDestroy() {
- util2.destroy(this);
+ util3.destroy(this);
};
this.body.on("end", this.endHandler);
}
- this.errorHandler = (err2) => {
+ this.errorHandler = (err) => {
if (this.abort) {
- this.abort(err2);
+ this.abort(err);
} else {
- this.error = err2;
+ this.error = err;
}
};
this.body.on("error", this.errorHandler);
- } else if (util2.isBuffer(body)) {
+ } else if (util3.isBuffer(body)) {
this.body = body.byteLength ? body : null;
} else if (ArrayBuffer.isView(body)) {
this.body = body.buffer.byteLength ? Buffer.from(body.buffer, body.byteOffset, body.byteLength) : null;
@@ -5734,7 +5741,7 @@ var require_request = __commonJS({
this.body = body.byteLength ? Buffer.from(body) : null;
} else if (typeof body === "string") {
this.body = body.length ? Buffer.from(body) : null;
- } else if (util2.isFormDataLike(body) || util2.isIterable(body) || util2.isBlobLike(body)) {
+ } else if (util3.isFormDataLike(body) || util3.isIterable(body) || util3.isBlobLike(body)) {
this.body = body;
} else {
throw new InvalidArgumentError("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");
@@ -5742,7 +5749,7 @@ var require_request = __commonJS({
this.completed = false;
this.aborted = false;
this.upgrade = upgrade || null;
- this.path = query2 ? util2.buildURL(path4, query2) : path4;
+ this.path = query2 ? util3.buildURL(path3, query2) : path3;
this.origin = origin;
this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent;
this.blocking = blocking == null ? false : blocking;
@@ -5768,8 +5775,8 @@ var require_request = __commonJS({
} else if (headers != null) {
throw new InvalidArgumentError("headers must be an object or an array");
}
- if (util2.isFormDataLike(this.body)) {
- if (util2.nodeMajor < 16 || util2.nodeMajor === 16 && util2.nodeMinor < 8) {
+ if (util3.isFormDataLike(this.body)) {
+ if (util3.nodeMajor < 16 || util3.nodeMajor === 16 && util3.nodeMinor < 8) {
throw new InvalidArgumentError("Form-Data bodies are only supported in node v16.8 and newer.");
}
if (!extractBody) {
@@ -5783,14 +5790,14 @@ var require_request = __commonJS({
}
this.body = bodyStream.stream;
this.contentLength = bodyStream.length;
- } else if (util2.isBlobLike(body) && this.contentType == null && body.type) {
+ } else if (util3.isBlobLike(body) && this.contentType == null && body.type) {
this.contentType = body.type;
this.headers += `content-type: ${body.type}\r
`;
}
- util2.validateHandler(handler, method, upgrade);
- this.servername = util2.getServerName(this.host);
- this[kHandler] = handler;
+ util3.validateHandler(handler2, method, upgrade);
+ this.servername = util3.getServerName(this.host);
+ this[kHandler] = handler2;
if (channels.create.hasSubscribers) {
channels.create.publish({ request: this });
}
@@ -5799,8 +5806,8 @@ var require_request = __commonJS({
if (this[kHandler].onBodySent) {
try {
return this[kHandler].onBodySent(chunk);
- } catch (err2) {
- this.abort(err2);
+ } catch (err) {
+ this.abort(err);
}
}
}
@@ -5811,14 +5818,14 @@ var require_request = __commonJS({
if (this[kHandler].onRequestSent) {
try {
return this[kHandler].onRequestSent();
- } catch (err2) {
- this.abort(err2);
+ } catch (err) {
+ this.abort(err);
}
}
}
onConnect(abort) {
- assert(!this.aborted);
- assert(!this.completed);
+ assert2(!this.aborted);
+ assert2(!this.completed);
if (this.error) {
abort(this.error);
} else {
@@ -5827,55 +5834,55 @@ var require_request = __commonJS({
}
}
onHeaders(statusCode, headers, resume, statusText) {
- assert(!this.aborted);
- assert(!this.completed);
+ assert2(!this.aborted);
+ assert2(!this.completed);
if (channels.headers.hasSubscribers) {
channels.headers.publish({ request: this, response: { statusCode, headers, statusText } });
}
try {
return this[kHandler].onHeaders(statusCode, headers, resume, statusText);
- } catch (err2) {
- this.abort(err2);
+ } catch (err) {
+ this.abort(err);
}
}
onData(chunk) {
- assert(!this.aborted);
- assert(!this.completed);
+ assert2(!this.aborted);
+ assert2(!this.completed);
try {
return this[kHandler].onData(chunk);
- } catch (err2) {
- this.abort(err2);
+ } catch (err) {
+ this.abort(err);
return false;
}
}
onUpgrade(statusCode, headers, socket) {
- assert(!this.aborted);
- assert(!this.completed);
+ assert2(!this.aborted);
+ assert2(!this.completed);
return this[kHandler].onUpgrade(statusCode, headers, socket);
}
onComplete(trailers) {
this.onFinally();
- assert(!this.aborted);
+ assert2(!this.aborted);
this.completed = true;
if (channels.trailers.hasSubscribers) {
channels.trailers.publish({ request: this, trailers });
}
try {
return this[kHandler].onComplete(trailers);
- } catch (err2) {
- this.onError(err2);
+ } catch (err) {
+ this.onError(err);
}
}
- onError(error2) {
+ onError(error41) {
this.onFinally();
if (channels.error.hasSubscribers) {
- channels.error.publish({ request: this, error: error2 });
+ channels.error.publish({ request: this, error: error41 });
}
if (this.aborted) {
return;
}
this.aborted = true;
- return this[kHandler].onError(error2);
+ return this[kHandler].onError(error41);
}
onFinally() {
if (this.errorHandler) {
@@ -5892,31 +5899,31 @@ var require_request = __commonJS({
processHeader(this, key, value2);
return this;
}
- static [kHTTP1BuildRequest](origin, opts, handler) {
- return new _Request(origin, opts, handler);
+ static [kHTTP1BuildRequest](origin, opts, handler2) {
+ return new _Request(origin, opts, handler2);
}
- static [kHTTP2BuildRequest](origin, opts, handler) {
+ static [kHTTP2BuildRequest](origin, opts, handler2) {
const headers = opts.headers;
opts = { ...opts, headers: null };
- const request = new _Request(origin, opts, handler);
- request.headers = {};
+ const request2 = new _Request(origin, opts, handler2);
+ request2.headers = {};
if (Array.isArray(headers)) {
if (headers.length % 2 !== 0) {
throw new InvalidArgumentError("headers array must be even");
}
for (let i = 0; i < headers.length; i += 2) {
- processHeader(request, headers[i], headers[i + 1], true);
+ processHeader(request2, headers[i], headers[i + 1], true);
}
} else if (headers && typeof headers === "object") {
const keys = Object.keys(headers);
for (let i = 0; i < keys.length; i++) {
const key = keys[i];
- processHeader(request, key, headers[key], true);
+ processHeader(request2, key, headers[key], true);
}
} else if (headers != null) {
throw new InvalidArgumentError("headers must be an object or an array");
}
- return request;
+ return request2;
}
static [kHTTP2CopyHeaders](raw) {
const rawHeaders = raw.split("\r\n");
@@ -5941,26 +5948,26 @@ var require_request = __commonJS({
return skipAppend ? val : `${key}: ${val}\r
`;
}
- function processHeader(request, key, val, skipAppend = false) {
+ function processHeader(request2, key, val, skipAppend = false) {
if (val && (typeof val === "object" && !Array.isArray(val))) {
throw new InvalidArgumentError(`invalid ${key} header`);
} else if (val === void 0) {
return;
}
- if (request.host === null && key.length === 4 && key.toLowerCase() === "host") {
+ if (request2.host === null && key.length === 4 && key.toLowerCase() === "host") {
if (headerCharRegex.exec(val) !== null) {
throw new InvalidArgumentError(`invalid ${key} header`);
}
- request.host = val;
- } else if (request.contentLength === null && key.length === 14 && key.toLowerCase() === "content-length") {
- request.contentLength = parseInt(val, 10);
- if (!Number.isFinite(request.contentLength)) {
+ request2.host = val;
+ } else if (request2.contentLength === null && key.length === 14 && key.toLowerCase() === "content-length") {
+ request2.contentLength = parseInt(val, 10);
+ if (!Number.isFinite(request2.contentLength)) {
throw new InvalidArgumentError("invalid content-length header");
}
- } else if (request.contentType === null && key.length === 12 && key.toLowerCase() === "content-type") {
- request.contentType = val;
- if (skipAppend) request.headers[key] = processHeaderValue(key, val, skipAppend);
- else request.headers += processHeaderValue(key, val);
+ } else if (request2.contentType === null && key.length === 12 && key.toLowerCase() === "content-type") {
+ request2.contentType = val;
+ if (skipAppend) request2.headers[key] = processHeaderValue(key, val, skipAppend);
+ else request2.headers += processHeaderValue(key, val);
} else if (key.length === 17 && key.toLowerCase() === "transfer-encoding") {
throw new InvalidArgumentError("invalid transfer-encoding header");
} else if (key.length === 10 && key.toLowerCase() === "connection") {
@@ -5968,7 +5975,7 @@ var require_request = __commonJS({
if (value2 !== "close" && value2 !== "keep-alive") {
throw new InvalidArgumentError("invalid connection header");
} else if (value2 === "close") {
- request.reset = true;
+ request2.reset = true;
}
} else if (key.length === 10 && key.toLowerCase() === "keep-alive") {
throw new InvalidArgumentError("invalid keep-alive header");
@@ -5982,15 +5989,15 @@ var require_request = __commonJS({
if (Array.isArray(val)) {
for (let i = 0; i < val.length; i++) {
if (skipAppend) {
- if (request.headers[key]) request.headers[key] += `,${processHeaderValue(key, val[i], skipAppend)}`;
- else request.headers[key] = processHeaderValue(key, val[i], skipAppend);
+ if (request2.headers[key]) request2.headers[key] += `,${processHeaderValue(key, val[i], skipAppend)}`;
+ else request2.headers[key] = processHeaderValue(key, val[i], skipAppend);
} else {
- request.headers += processHeaderValue(key, val[i]);
+ request2.headers += processHeaderValue(key, val[i]);
}
}
} else {
- if (skipAppend) request.headers[key] = processHeaderValue(key, val, skipAppend);
- else request.headers += processHeaderValue(key, val);
+ if (skipAppend) request2.headers[key] = processHeaderValue(key, val, skipAppend);
+ else request2.headers += processHeaderValue(key, val);
}
}
}
@@ -5998,12 +6005,12 @@ var require_request = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/dispatcher.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/dispatcher.js
var require_dispatcher = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/dispatcher.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/dispatcher.js"(exports, module) {
"use strict";
- var EventEmitter = __require("events");
- var Dispatcher = class extends EventEmitter {
+ var EventEmitter2 = __require("events");
+ var Dispatcher = class extends EventEmitter2 {
dispatch() {
throw new Error("not implemented");
}
@@ -6018,9 +6025,9 @@ var require_dispatcher = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/dispatcher-base.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/dispatcher-base.js
var require_dispatcher_base = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/dispatcher-base.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/dispatcher-base.js"(exports, module) {
"use strict";
var Dispatcher = require_dispatcher();
var {
@@ -6065,8 +6072,8 @@ var require_dispatcher_base = __commonJS({
close(callback) {
if (callback === void 0) {
return new Promise((resolve, reject) => {
- this.close((err2, data) => {
- return err2 ? reject(err2) : resolve(data);
+ this.close((err, data) => {
+ return err ? reject(err) : resolve(data);
});
});
}
@@ -6098,17 +6105,17 @@ var require_dispatcher_base = __commonJS({
queueMicrotask(onClosed);
});
}
- destroy(err2, callback) {
- if (typeof err2 === "function") {
- callback = err2;
- err2 = null;
+ destroy(err, callback) {
+ if (typeof err === "function") {
+ callback = err;
+ err = null;
}
if (callback === void 0) {
return new Promise((resolve, reject) => {
- this.destroy(err2, (err3, data) => {
- return err3 ? (
+ this.destroy(err, (err2, data) => {
+ return err2 ? (
/* istanbul ignore next: should never error */
- reject(err3)
+ reject(err2)
) : resolve(data);
});
});
@@ -6124,8 +6131,8 @@ var require_dispatcher_base = __commonJS({
}
return;
}
- if (!err2) {
- err2 = new ClientDestroyedError();
+ if (!err) {
+ err = new ClientDestroyedError();
}
this[kDestroyed] = true;
this[kOnDestroyed] = this[kOnDestroyed] || [];
@@ -6137,24 +6144,24 @@ var require_dispatcher_base = __commonJS({
callbacks[i](null, null);
}
};
- this[kDestroy](err2).then(() => {
+ this[kDestroy](err).then(() => {
queueMicrotask(onDestroyed);
});
}
- [kInterceptedDispatch](opts, handler) {
+ [kInterceptedDispatch](opts, handler2) {
if (!this[kInterceptors] || this[kInterceptors].length === 0) {
this[kInterceptedDispatch] = this[kDispatch];
- return this[kDispatch](opts, handler);
+ return this[kDispatch](opts, handler2);
}
let dispatch = this[kDispatch].bind(this);
for (let i = this[kInterceptors].length - 1; i >= 0; i--) {
dispatch = this[kInterceptors][i](dispatch);
}
this[kInterceptedDispatch] = dispatch;
- return dispatch(opts, handler);
+ return dispatch(opts, handler2);
}
- dispatch(opts, handler) {
- if (!handler || typeof handler !== "object") {
+ dispatch(opts, handler2) {
+ if (!handler2 || typeof handler2 !== "object") {
throw new InvalidArgumentError("handler must be an object");
}
try {
@@ -6167,12 +6174,12 @@ var require_dispatcher_base = __commonJS({
if (this[kClosed]) {
throw new ClientClosedError();
}
- return this[kInterceptedDispatch](opts, handler);
- } catch (err2) {
- if (typeof handler.onError !== "function") {
+ return this[kInterceptedDispatch](opts, handler2);
+ } catch (err) {
+ if (typeof handler2.onError !== "function") {
throw new InvalidArgumentError("invalid onError method");
}
- handler.onError(err2);
+ handler2.onError(err);
return false;
}
}
@@ -6181,13 +6188,13 @@ var require_dispatcher_base = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/connect.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/connect.js
var require_connect = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/connect.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/connect.js"(exports, module) {
"use strict";
var net = __require("net");
- var assert = __require("assert");
- var util2 = require_util();
+ var assert2 = __require("assert");
+ var util3 = require_util();
var { InvalidArgumentError, ConnectTimeoutError } = require_errors();
var tls;
var SessionCache;
@@ -6247,16 +6254,16 @@ var require_connect = __commonJS({
const sessionCache = new SessionCache(maxCachedSessions == null ? 100 : maxCachedSessions);
timeout = timeout == null ? 1e4 : timeout;
allowH2 = allowH2 != null ? allowH2 : false;
- return function connect({ hostname, host, protocol, port, servername, localAddress, httpSocket }, callback) {
+ return function connect({ hostname: hostname2, host, protocol, port, servername, localAddress, httpSocket }, callback) {
let socket;
if (protocol === "https:") {
if (!tls) {
tls = __require("tls");
}
- servername = servername || options.servername || util2.getServerName(host) || null;
- const sessionKey = servername || hostname;
+ servername = servername || options.servername || util3.getServerName(host) || null;
+ const sessionKey = servername || hostname2;
const session = sessionCache.get(sessionKey) || null;
- assert(sessionKey);
+ assert2(sessionKey);
socket = tls.connect({
highWaterMark: 16384,
// TLS in node can't have bigger HWM anyway...
@@ -6269,20 +6276,20 @@ var require_connect = __commonJS({
socket: httpSocket,
// upgrade socket connection
port: port || 443,
- host: hostname
+ host: hostname2
});
socket.on("session", function(session2) {
sessionCache.set(sessionKey, session2);
});
} else {
- assert(!httpSocket, "httpSocket can only be sent on TLS update");
+ assert2(!httpSocket, "httpSocket can only be sent on TLS update");
socket = net.connect({
highWaterMark: 64 * 1024,
// Same as nodejs fs streams.
...options,
localAddress,
port: port || 80,
- host: hostname
+ host: hostname2
});
}
if (options.keepAlive == null || options.keepAlive) {
@@ -6297,12 +6304,12 @@ var require_connect = __commonJS({
callback = null;
cb(null, this);
}
- }).on("error", function(err2) {
+ }).on("error", function(err) {
cancelTimeout();
if (callback) {
const cb = callback;
callback = null;
- cb(err2);
+ cb(err);
}
});
return socket;
@@ -6331,15 +6338,15 @@ var require_connect = __commonJS({
};
}
function onConnectTimeout(socket) {
- util2.destroy(socket, new ConnectTimeoutError());
+ util3.destroy(socket, new ConnectTimeoutError());
}
module.exports = buildConnector;
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/utils.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/utils.js
var require_utils2 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/utils.js"(exports) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/utils.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.enumToMap = void 0;
@@ -6357,9 +6364,9 @@ var require_utils2 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/constants.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/constants.js
var require_constants3 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/constants.js"(exports) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/constants.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0;
@@ -6678,13 +6685,13 @@ var require_constants3 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/RedirectHandler.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/RedirectHandler.js
var require_RedirectHandler = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/RedirectHandler.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/RedirectHandler.js"(exports, module) {
"use strict";
- var util2 = require_util();
+ var util3 = require_util();
var { kBodyUsed } = require_symbols();
- var assert = __require("assert");
+ var assert2 = __require("assert");
var { InvalidArgumentError } = require_errors();
var EE = __require("events");
var redirectableStatusCodes = [300, 301, 302, 303, 307, 308];
@@ -6695,28 +6702,28 @@ var require_RedirectHandler = __commonJS({
this[kBodyUsed] = false;
}
async *[Symbol.asyncIterator]() {
- assert(!this[kBodyUsed], "disturbed");
+ assert2(!this[kBodyUsed], "disturbed");
this[kBodyUsed] = true;
yield* this[kBody];
}
};
var RedirectHandler = class {
- constructor(dispatch, maxRedirections, opts, handler) {
+ constructor(dispatch, maxRedirections, opts, handler2) {
if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {
throw new InvalidArgumentError("maxRedirections must be a positive number");
}
- util2.validateHandler(handler, opts.method, opts.upgrade);
+ util3.validateHandler(handler2, opts.method, opts.upgrade);
this.dispatch = dispatch;
this.location = null;
this.abort = null;
this.opts = { ...opts, maxRedirections: 0 };
this.maxRedirections = maxRedirections;
- this.handler = handler;
+ this.handler = handler2;
this.history = [];
- if (util2.isStream(this.opts.body)) {
- if (util2.bodyLength(this.opts.body) === 0) {
+ if (util3.isStream(this.opts.body)) {
+ if (util3.bodyLength(this.opts.body) === 0) {
this.opts.body.on("data", function() {
- assert(false);
+ assert2(false);
});
}
if (typeof this.opts.body.readableDidRead !== "boolean") {
@@ -6727,7 +6734,7 @@ var require_RedirectHandler = __commonJS({
}
} else if (this.opts.body && typeof this.opts.body.pipeTo === "function") {
this.opts.body = new BodyAsyncIterable(this.opts.body);
- } else if (this.opts.body && typeof this.opts.body !== "string" && !ArrayBuffer.isView(this.opts.body) && util2.isIterable(this.opts.body)) {
+ } else if (this.opts.body && typeof this.opts.body !== "string" && !ArrayBuffer.isView(this.opts.body) && util3.isIterable(this.opts.body)) {
this.opts.body = new BodyAsyncIterable(this.opts.body);
}
}
@@ -6738,21 +6745,21 @@ var require_RedirectHandler = __commonJS({
onUpgrade(statusCode, headers, socket) {
this.handler.onUpgrade(statusCode, headers, socket);
}
- onError(error2) {
- this.handler.onError(error2);
+ onError(error41) {
+ this.handler.onError(error41);
}
onHeaders(statusCode, headers, resume, statusText) {
- this.location = this.history.length >= this.maxRedirections || util2.isDisturbed(this.opts.body) ? null : parseLocation(statusCode, headers);
+ this.location = this.history.length >= this.maxRedirections || util3.isDisturbed(this.opts.body) ? null : parseLocation(statusCode, headers);
if (this.opts.origin) {
this.history.push(new URL(this.opts.path, this.opts.origin));
}
if (!this.location) {
return this.handler.onHeaders(statusCode, headers, resume, statusText);
}
- const { origin, pathname, search } = util2.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
- const path4 = search ? `${pathname}${search}` : pathname;
+ const { origin, pathname, search: search2 } = util3.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
+ const path3 = search2 ? `${pathname}${search2}` : pathname;
this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin);
- this.opts.path = path4;
+ this.opts.path = path3;
this.opts.origin = origin;
this.opts.maxRedirections = 0;
this.opts.query = null;
@@ -6794,13 +6801,13 @@ var require_RedirectHandler = __commonJS({
}
function shouldRemoveHeader(header, removeContent, unknownOrigin) {
if (header.length === 4) {
- return util2.headerNameToString(header) === "host";
+ return util3.headerNameToString(header) === "host";
}
- if (removeContent && util2.headerNameToString(header).startsWith("content-")) {
+ if (removeContent && util3.headerNameToString(header).startsWith("content-")) {
return true;
}
if (unknownOrigin && (header.length === 13 || header.length === 6 || header.length === 19)) {
- const name = util2.headerNameToString(header);
+ const name = util3.headerNameToString(header);
return name === "authorization" || name === "cookie" || name === "proxy-authorization";
}
return false;
@@ -6820,7 +6827,7 @@ var require_RedirectHandler = __commonJS({
}
}
} else {
- assert(headers == null, "headers must be an object or an array");
+ assert2(headers == null, "headers must be an object or an array");
}
return ret;
}
@@ -6828,19 +6835,19 @@ var require_RedirectHandler = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/interceptor/redirectInterceptor.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/interceptor/redirectInterceptor.js
var require_redirectInterceptor = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/interceptor/redirectInterceptor.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/interceptor/redirectInterceptor.js"(exports, module) {
"use strict";
var RedirectHandler = require_RedirectHandler();
function createRedirectInterceptor({ maxRedirections: defaultMaxRedirections }) {
return (dispatch) => {
- return function Intercept(opts, handler) {
+ return function Intercept(opts, handler2) {
const { maxRedirections = defaultMaxRedirections } = opts;
if (!maxRedirections) {
- return dispatch(opts, handler);
+ return dispatch(opts, handler2);
}
- const redirectHandler = new RedirectHandler(dispatch, maxRedirections, opts, handler);
+ const redirectHandler = new RedirectHandler(dispatch, maxRedirections, opts, handler2);
opts = { ...opts, maxRedirections: 0 };
return dispatch(opts, redirectHandler);
};
@@ -6850,29 +6857,29 @@ var require_redirectInterceptor = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/llhttp-wasm.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/llhttp-wasm.js
var require_llhttp_wasm = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/llhttp-wasm.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/llhttp-wasm.js"(exports, module) {
module.exports = "AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9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E4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RAdABLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVG2wFHSElKzwHOAUvNAUzMAU1OT1BRUlNUVVZXWFlaW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BIRAMFwtBrgEhEAwWC0EBIRAMFQtBrwEhEAwUC0GwASEQDBMLQbEBIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ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MTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsgAEEANgIcIAAgATYCFCAAQY6bgIAANgIQIABBBjYCDEEAIRAMnAELIBBBFUYNVyAAQQA2AhwgACABNgIUIABBzI6AgAA2AhAgAEEgNgIMQQAhEAybAQsgAEEANgIAIBBBAW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5.29.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js
var require_llhttp_simd_wasm = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js"(exports, module) {
module.exports = "AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dHBfZ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0G9ASEQDAULQb4BIRAMBAtBvwEhEAwDC0HAASEQDAILQcIBIRAMAQtBwQEhEAsDQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAA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IANwMgQRIhEAzVAwsgASIQIAJHDStBHSEQDO0DCwJAIAEiASACRg0AIAFBAWohAUEQIRAM1AMLQQchEAzsAwsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgACABIAIQuICAgAAiEA3qASABIQFBICEQDMYDCwJAIAEiASACRg0AA0ACQCABLQAAQfC3gIAAai0AACIQQQJGDQACQCAQQX9qDgTlAewBAOsB7AELIAFBAWohAUEIIRAMyAMLIAFBAWoiASACRw0AC0EVIRAM3wMLQRUhEAzeAwsDQAJAIAEtAABB8LmAgABqLQAAIhBBAkYNACAQQX9qDgTeAewB4AHrAewBCyABQQFqIgEgAkcNAAtBGCEQDN0DCwJAIAEiASACRg0AIABBi4CAgAA2AgggACABNgIEIAEhAUEHIRAMxAMLQRkhEAzcAwsgAUEBaiEBDAILAkAgASIUIAJHDQBBGiEQDNsDCyAUIQECQ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AMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQA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AgAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==";
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/client.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/client.js
var require_client = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/client.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/client.js"(exports, module) {
"use strict";
- var assert = __require("assert");
+ var assert2 = __require("assert");
var net = __require("net");
- var http = __require("http");
+ var http2 = __require("http");
var { pipeline: pipeline2 } = __require("stream");
- var util2 = require_util();
+ var util3 = require_util();
var timers = require_timers();
var Request2 = require_request();
var DispatcherBase = require_dispatcher_base();
@@ -6943,11 +6950,11 @@ var require_client = __commonJS({
kHTTP2CopyHeaders,
kHTTP1BuildRequest
} = require_symbols();
- var http2;
+ var http22;
try {
- http2 = __require("http2");
+ http22 = __require("http2");
} catch {
- http2 = { constants: {} };
+ http22 = { constants: {} };
}
var {
constants: {
@@ -6959,7 +6966,7 @@ var require_client = __commonJS({
HTTP2_HEADER_EXPECT,
HTTP2_HEADER_STATUS
}
- } = http2;
+ } = http22;
var h2ExperimentalWarned = false;
var FastBuffer = Buffer[Symbol.species];
var kClosedResolve = Symbol("kClosedResolve");
@@ -6976,7 +6983,7 @@ var require_client = __commonJS({
channels.connectError = { hasSubscribers: false };
channels.connected = { hasSubscribers: false };
}
- var Client = class extends DispatcherBase {
+ var Client2 = class extends DispatcherBase {
/**
*
* @param {string|URL} url
@@ -7083,16 +7090,16 @@ var require_client = __commonJS({
allowH2,
socketPath,
timeout: connectTimeout,
- ...util2.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
+ ...util3.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
...connect2
});
}
this[kInterceptors] = interceptors && interceptors.Client && Array.isArray(interceptors.Client) ? interceptors.Client : [createRedirectInterceptor({ maxRedirections })];
- this[kUrl] = util2.parseOrigin(url2);
+ this[kUrl] = util3.parseOrigin(url2);
this[kConnector] = connect2;
this[kSocket] = null;
this[kPipelining] = pipelining != null ? pipelining : 1;
- this[kMaxHeadersSize] = maxHeaderSize || http.maxHeaderSize;
+ this[kMaxHeadersSize] = maxHeaderSize || http2.maxHeaderSize;
this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout;
this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 6e5 : keepAliveMaxTimeout;
this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 1e3 : keepAliveTimeoutThreshold;
@@ -7152,12 +7159,12 @@ var require_client = __commonJS({
connect(this);
this.once("connect", cb);
}
- [kDispatch](opts, handler) {
+ [kDispatch](opts, handler2) {
const origin = opts.origin || this[kUrl].origin;
- const request = this[kHTTPConnVersion] === "h2" ? Request2[kHTTP2BuildRequest](origin, opts, handler) : Request2[kHTTP1BuildRequest](origin, opts, handler);
- this[kQueue].push(request);
+ const request2 = this[kHTTPConnVersion] === "h2" ? Request2[kHTTP2BuildRequest](origin, opts, handler2) : Request2[kHTTP1BuildRequest](origin, opts, handler2);
+ this[kQueue].push(request2);
if (this[kResuming]) {
- } else if (util2.bodyLength(request.body) == null && util2.isIterable(request.body)) {
+ } else if (util3.bodyLength(request2.body) == null && util3.isIterable(request2.body)) {
this[kResuming] = 1;
process.nextTick(resume, this);
} else {
@@ -7177,12 +7184,12 @@ var require_client = __commonJS({
}
});
}
- async [kDestroy](err2) {
+ async [kDestroy](err) {
return new Promise((resolve) => {
const requests = this[kQueue].splice(this[kPendingIdx]);
for (let i = 0; i < requests.length; i++) {
- const request = requests[i];
- errorRequest(this, request, err2);
+ const request2 = requests[i];
+ errorRequest(this, request2, err);
}
const callback = () => {
if (this[kClosedResolve]) {
@@ -7192,59 +7199,59 @@ var require_client = __commonJS({
resolve();
};
if (this[kHTTP2Session] != null) {
- util2.destroy(this[kHTTP2Session], err2);
+ util3.destroy(this[kHTTP2Session], err);
this[kHTTP2Session] = null;
this[kHTTP2SessionState] = null;
}
if (!this[kSocket]) {
queueMicrotask(callback);
} else {
- util2.destroy(this[kSocket].on("close", callback), err2);
+ util3.destroy(this[kSocket].on("close", callback), err);
}
resume(this);
});
}
};
- function onHttp2SessionError(err2) {
- assert(err2.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
- this[kSocket][kError] = err2;
- onError(this[kClient], err2);
+ function onHttp2SessionError(err) {
+ assert2(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
+ this[kSocket][kError] = err;
+ onError(this[kClient], err);
}
function onHttp2FrameError(type2, code, id) {
- const err2 = new InformationalError(`HTTP/2: "frameError" received - type ${type2}, code ${code}`);
+ const err = new InformationalError(`HTTP/2: "frameError" received - type ${type2}, code ${code}`);
if (id === 0) {
- this[kSocket][kError] = err2;
- onError(this[kClient], err2);
+ this[kSocket][kError] = err;
+ onError(this[kClient], err);
}
}
function onHttp2SessionEnd() {
- util2.destroy(this, new SocketError("other side closed"));
- util2.destroy(this[kSocket], new SocketError("other side closed"));
+ util3.destroy(this, new SocketError("other side closed"));
+ util3.destroy(this[kSocket], new SocketError("other side closed"));
}
function onHTTP2GoAway(code) {
const client = this[kClient];
- const err2 = new InformationalError(`HTTP/2: "GOAWAY" frame received with code ${code}`);
+ const err = new InformationalError(`HTTP/2: "GOAWAY" frame received with code ${code}`);
client[kSocket] = null;
client[kHTTP2Session] = null;
if (client.destroyed) {
- assert(this[kPending] === 0);
+ assert2(this[kPending] === 0);
const requests = client[kQueue].splice(client[kRunningIdx]);
for (let i = 0; i < requests.length; i++) {
- const request = requests[i];
- errorRequest(this, request, err2);
+ const request2 = requests[i];
+ errorRequest(this, request2, err);
}
} else if (client[kRunning] > 0) {
- const request = client[kQueue][client[kRunningIdx]];
+ const request2 = client[kQueue][client[kRunningIdx]];
client[kQueue][client[kRunningIdx]++] = null;
- errorRequest(client, request, err2);
+ errorRequest(client, request2, err);
}
client[kPendingIdx] = client[kRunningIdx];
- assert(client[kRunning] === 0);
+ assert2(client[kRunning] === 0);
client.emit(
"disconnect",
client[kUrl],
[client],
- err2
+ err
);
resume(client);
}
@@ -7266,35 +7273,35 @@ var require_client = __commonJS({
return 0;
},
wasm_on_status: (p, at, len) => {
- assert.strictEqual(currentParser.ptr, p);
+ assert2.strictEqual(currentParser.ptr, p);
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
},
wasm_on_message_begin: (p) => {
- assert.strictEqual(currentParser.ptr, p);
+ assert2.strictEqual(currentParser.ptr, p);
return currentParser.onMessageBegin() || 0;
},
wasm_on_header_field: (p, at, len) => {
- assert.strictEqual(currentParser.ptr, p);
+ assert2.strictEqual(currentParser.ptr, p);
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
},
wasm_on_header_value: (p, at, len) => {
- assert.strictEqual(currentParser.ptr, p);
+ assert2.strictEqual(currentParser.ptr, p);
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
},
wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => {
- assert.strictEqual(currentParser.ptr, p);
+ assert2.strictEqual(currentParser.ptr, p);
return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0;
},
wasm_on_body: (p, at, len) => {
- assert.strictEqual(currentParser.ptr, p);
+ assert2.strictEqual(currentParser.ptr, p);
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
},
wasm_on_message_complete: (p) => {
- assert.strictEqual(currentParser.ptr, p);
+ assert2.strictEqual(currentParser.ptr, p);
return currentParser.onMessageComplete() || 0;
}
/* eslint-enable camelcase */
@@ -7313,7 +7320,7 @@ var require_client = __commonJS({
var TIMEOUT_IDLE = 3;
var Parser = class {
constructor(client, socket, { exports: exports2 }) {
- assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0);
+ assert2(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0);
this.llhttp = exports2;
this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE);
this.client = client;
@@ -7359,10 +7366,10 @@ var require_client = __commonJS({
if (this.socket.destroyed || !this.paused) {
return;
}
- assert(this.ptr != null);
- assert(currentParser == null);
+ assert2(this.ptr != null);
+ assert2(currentParser == null);
this.llhttp.llhttp_resume(this.ptr);
- assert(this.timeoutType === TIMEOUT_BODY);
+ assert2(this.timeoutType === TIMEOUT_BODY);
if (this.timeout) {
if (this.timeout.refresh) {
this.timeout.refresh();
@@ -7382,9 +7389,9 @@ var require_client = __commonJS({
}
}
execute(data) {
- assert(this.ptr != null);
- assert(currentParser == null);
- assert(!this.paused);
+ assert2(this.ptr != null);
+ assert2(currentParser == null);
+ assert2(!this.paused);
const { socket, llhttp } = this;
if (data.length > currentBufferSize) {
if (currentBufferPtr) {
@@ -7400,8 +7407,8 @@ var require_client = __commonJS({
currentBufferRef = data;
currentParser = this;
ret = llhttp.llhttp_execute(this.ptr, currentBufferPtr, data.length);
- } catch (err2) {
- throw err2;
+ } catch (err) {
+ throw err;
} finally {
currentParser = null;
currentBufferRef = null;
@@ -7421,13 +7428,13 @@ var require_client = __commonJS({
}
throw new HTTPParserError(message, constants.ERROR[ret], data.slice(offset));
}
- } catch (err2) {
- util2.destroy(socket, err2);
+ } catch (err) {
+ util3.destroy(socket, err);
}
}
destroy() {
- assert(this.ptr != null);
- assert(currentParser == null);
+ assert2(this.ptr != null);
+ assert2(currentParser == null);
this.llhttp.llhttp_free(this.ptr);
this.ptr = null;
timers.clearTimeout(this.timeout);
@@ -7444,8 +7451,8 @@ var require_client = __commonJS({
if (socket.destroyed) {
return -1;
}
- const request = client[kQueue][client[kRunningIdx]];
- if (!request) {
+ const request2 = client[kQueue][client[kRunningIdx]];
+ if (!request2) {
return -1;
}
}
@@ -7479,22 +7486,22 @@ var require_client = __commonJS({
trackHeader(len) {
this.headersSize += len;
if (this.headersSize >= this.headersMaxSize) {
- util2.destroy(this.socket, new HeadersOverflowError());
+ util3.destroy(this.socket, new HeadersOverflowError());
}
}
onUpgrade(head) {
const { upgrade, client, socket, headers, statusCode } = this;
- assert(upgrade);
- const request = client[kQueue][client[kRunningIdx]];
- assert(request);
- assert(!socket.destroyed);
- assert(socket === client[kSocket]);
- assert(!this.paused);
- assert(request.upgrade || request.method === "CONNECT");
+ assert2(upgrade);
+ const request2 = client[kQueue][client[kRunningIdx]];
+ assert2(request2);
+ assert2(!socket.destroyed);
+ assert2(socket === client[kSocket]);
+ assert2(!this.paused);
+ assert2(request2.upgrade || request2.method === "CONNECT");
this.statusCode = null;
this.statusText = "";
this.shouldKeepAlive = null;
- assert(this.headers.length % 2 === 0);
+ assert2(this.headers.length % 2 === 0);
this.headers = [];
this.headersSize = 0;
socket.unshift(head);
@@ -7507,9 +7514,9 @@ var require_client = __commonJS({
client[kQueue][client[kRunningIdx]++] = null;
client.emit("disconnect", client[kUrl], [client], new InformationalError("upgrade"));
try {
- request.onUpgrade(statusCode, headers, socket);
- } catch (err2) {
- util2.destroy(socket, err2);
+ request2.onUpgrade(statusCode, headers, socket);
+ } catch (err) {
+ util3.destroy(socket, err);
}
resume(client);
}
@@ -7518,47 +7525,47 @@ var require_client = __commonJS({
if (socket.destroyed) {
return -1;
}
- const request = client[kQueue][client[kRunningIdx]];
- if (!request) {
+ const request2 = client[kQueue][client[kRunningIdx]];
+ if (!request2) {
return -1;
}
- assert(!this.upgrade);
- assert(this.statusCode < 200);
+ assert2(!this.upgrade);
+ assert2(this.statusCode < 200);
if (statusCode === 100) {
- util2.destroy(socket, new SocketError("bad response", util2.getSocketInfo(socket)));
+ util3.destroy(socket, new SocketError("bad response", util3.getSocketInfo(socket)));
return -1;
}
- if (upgrade && !request.upgrade) {
- util2.destroy(socket, new SocketError("bad upgrade", util2.getSocketInfo(socket)));
+ if (upgrade && !request2.upgrade) {
+ util3.destroy(socket, new SocketError("bad upgrade", util3.getSocketInfo(socket)));
return -1;
}
- assert.strictEqual(this.timeoutType, TIMEOUT_HEADERS);
+ assert2.strictEqual(this.timeoutType, TIMEOUT_HEADERS);
this.statusCode = statusCode;
this.shouldKeepAlive = shouldKeepAlive || // Override llhttp value which does not allow keepAlive for HEAD.
- request.method === "HEAD" && !socket[kReset] && this.connection.toLowerCase() === "keep-alive";
+ request2.method === "HEAD" && !socket[kReset] && this.connection.toLowerCase() === "keep-alive";
if (this.statusCode >= 200) {
- const bodyTimeout = request.bodyTimeout != null ? request.bodyTimeout : client[kBodyTimeout];
+ const bodyTimeout = request2.bodyTimeout != null ? request2.bodyTimeout : client[kBodyTimeout];
this.setTimeout(bodyTimeout, TIMEOUT_BODY);
} else if (this.timeout) {
if (this.timeout.refresh) {
this.timeout.refresh();
}
}
- if (request.method === "CONNECT") {
- assert(client[kRunning] === 1);
+ if (request2.method === "CONNECT") {
+ assert2(client[kRunning] === 1);
this.upgrade = true;
return 2;
}
if (upgrade) {
- assert(client[kRunning] === 1);
+ assert2(client[kRunning] === 1);
this.upgrade = true;
return 2;
}
- assert(this.headers.length % 2 === 0);
+ assert2(this.headers.length % 2 === 0);
this.headers = [];
this.headersSize = 0;
if (this.shouldKeepAlive && client[kPipelining]) {
- const keepAliveTimeout = this.keepAlive ? util2.parseKeepAliveTimeout(this.keepAlive) : null;
+ const keepAliveTimeout = this.keepAlive ? util3.parseKeepAliveTimeout(this.keepAlive) : null;
if (keepAliveTimeout != null) {
const timeout = Math.min(
keepAliveTimeout - client[kKeepAliveTimeoutThreshold],
@@ -7575,11 +7582,11 @@ var require_client = __commonJS({
} else {
socket[kReset] = true;
}
- const pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false;
- if (request.aborted) {
+ const pause = request2.onHeaders(statusCode, headers, this.resume, statusText) === false;
+ if (request2.aborted) {
return -1;
}
- if (request.method === "HEAD") {
+ if (request2.method === "HEAD") {
return 1;
}
if (statusCode < 200) {
@@ -7596,21 +7603,21 @@ var require_client = __commonJS({
if (socket.destroyed) {
return -1;
}
- const request = client[kQueue][client[kRunningIdx]];
- assert(request);
- assert.strictEqual(this.timeoutType, TIMEOUT_BODY);
+ const request2 = client[kQueue][client[kRunningIdx]];
+ assert2(request2);
+ assert2.strictEqual(this.timeoutType, TIMEOUT_BODY);
if (this.timeout) {
if (this.timeout.refresh) {
this.timeout.refresh();
}
}
- assert(statusCode >= 200);
+ assert2(statusCode >= 200);
if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {
- util2.destroy(socket, new ResponseExceededMaxSizeError());
+ util3.destroy(socket, new ResponseExceededMaxSizeError());
return -1;
}
this.bytesRead += buf.length;
- if (request.onData(buf) === false) {
+ if (request2.onData(buf) === false) {
return constants.ERROR.PAUSED;
}
}
@@ -7622,36 +7629,36 @@ var require_client = __commonJS({
if (upgrade) {
return;
}
- const request = client[kQueue][client[kRunningIdx]];
- assert(request);
- assert(statusCode >= 100);
+ const request2 = client[kQueue][client[kRunningIdx]];
+ assert2(request2);
+ assert2(statusCode >= 100);
this.statusCode = null;
this.statusText = "";
this.bytesRead = 0;
this.contentLength = "";
this.keepAlive = "";
this.connection = "";
- assert(this.headers.length % 2 === 0);
+ assert2(this.headers.length % 2 === 0);
this.headers = [];
this.headersSize = 0;
if (statusCode < 200) {
return;
}
- if (request.method !== "HEAD" && contentLength && bytesRead !== parseInt(contentLength, 10)) {
- util2.destroy(socket, new ResponseContentLengthMismatchError());
+ if (request2.method !== "HEAD" && contentLength && bytesRead !== parseInt(contentLength, 10)) {
+ util3.destroy(socket, new ResponseContentLengthMismatchError());
return -1;
}
- request.onComplete(headers);
+ request2.onComplete(headers);
client[kQueue][client[kRunningIdx]++] = null;
if (socket[kWriting]) {
- assert.strictEqual(client[kRunning], 0);
- util2.destroy(socket, new InformationalError("reset"));
+ assert2.strictEqual(client[kRunning], 0);
+ util3.destroy(socket, new InformationalError("reset"));
return constants.ERROR.PAUSED;
} else if (!shouldKeepAlive) {
- util2.destroy(socket, new InformationalError("reset"));
+ util3.destroy(socket, new InformationalError("reset"));
return constants.ERROR.PAUSED;
} else if (socket[kReset] && client[kRunning] === 0) {
- util2.destroy(socket, new InformationalError("reset"));
+ util3.destroy(socket, new InformationalError("reset"));
return constants.ERROR.PAUSED;
} else if (client[kPipelining] === 1) {
setImmediate(resume, client);
@@ -7664,16 +7671,16 @@ var require_client = __commonJS({
const { socket, timeoutType, client } = parser;
if (timeoutType === TIMEOUT_HEADERS) {
if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) {
- assert(!parser.paused, "cannot be paused while waiting for headers");
- util2.destroy(socket, new HeadersTimeoutError());
+ assert2(!parser.paused, "cannot be paused while waiting for headers");
+ util3.destroy(socket, new HeadersTimeoutError());
}
} else if (timeoutType === TIMEOUT_BODY) {
if (!parser.paused) {
- util2.destroy(socket, new BodyTimeoutError());
+ util3.destroy(socket, new BodyTimeoutError());
}
} else if (timeoutType === TIMEOUT_IDLE) {
- assert(client[kRunning] === 0 && client[kKeepAliveTimeoutValue]);
- util2.destroy(socket, new InformationalError("socket idle timeout"));
+ assert2(client[kRunning] === 0 && client[kKeepAliveTimeoutValue]);
+ util3.destroy(socket, new InformationalError("socket idle timeout"));
}
}
function onSocketReadable() {
@@ -7682,27 +7689,27 @@ var require_client = __commonJS({
parser.readMore();
}
}
- function onSocketError(err2) {
+ function onSocketError(err) {
const { [kClient]: client, [kParser]: parser } = this;
- assert(err2.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
+ assert2(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
if (client[kHTTPConnVersion] !== "h2") {
- if (err2.code === "ECONNRESET" && parser.statusCode && !parser.shouldKeepAlive) {
+ if (err.code === "ECONNRESET" && parser.statusCode && !parser.shouldKeepAlive) {
parser.onMessageComplete();
return;
}
}
- this[kError] = err2;
- onError(this[kClient], err2);
+ this[kError] = err;
+ onError(this[kClient], err);
}
- function onError(client, err2) {
- if (client[kRunning] === 0 && err2.code !== "UND_ERR_INFO" && err2.code !== "UND_ERR_SOCKET") {
- assert(client[kPendingIdx] === client[kRunningIdx]);
+ function onError(client, err) {
+ if (client[kRunning] === 0 && err.code !== "UND_ERR_INFO" && err.code !== "UND_ERR_SOCKET") {
+ assert2(client[kPendingIdx] === client[kRunningIdx]);
const requests = client[kQueue].splice(client[kRunningIdx]);
for (let i = 0; i < requests.length; i++) {
- const request = requests[i];
- errorRequest(client, request, err2);
+ const request2 = requests[i];
+ errorRequest(client, request2, err);
}
- assert(client[kSize] === 0);
+ assert2(client[kSize] === 0);
}
}
function onSocketEnd() {
@@ -7713,7 +7720,7 @@ var require_client = __commonJS({
return;
}
}
- util2.destroy(this, new SocketError("other side closed", util2.getSocketInfo(this)));
+ util3.destroy(this, new SocketError("other side closed", util3.getSocketInfo(this)));
}
function onSocketClose() {
const { [kClient]: client, [kParser]: parser } = this;
@@ -7724,42 +7731,42 @@ var require_client = __commonJS({
this[kParser].destroy();
this[kParser] = null;
}
- const err2 = this[kError] || new SocketError("closed", util2.getSocketInfo(this));
+ const err = this[kError] || new SocketError("closed", util3.getSocketInfo(this));
client[kSocket] = null;
if (client.destroyed) {
- assert(client[kPending] === 0);
+ assert2(client[kPending] === 0);
const requests = client[kQueue].splice(client[kRunningIdx]);
for (let i = 0; i < requests.length; i++) {
- const request = requests[i];
- errorRequest(client, request, err2);
+ const request2 = requests[i];
+ errorRequest(client, request2, err);
}
- } else if (client[kRunning] > 0 && err2.code !== "UND_ERR_INFO") {
- const request = client[kQueue][client[kRunningIdx]];
+ } else if (client[kRunning] > 0 && err.code !== "UND_ERR_INFO") {
+ const request2 = client[kQueue][client[kRunningIdx]];
client[kQueue][client[kRunningIdx]++] = null;
- errorRequest(client, request, err2);
+ errorRequest(client, request2, err);
}
client[kPendingIdx] = client[kRunningIdx];
- assert(client[kRunning] === 0);
- client.emit("disconnect", client[kUrl], [client], err2);
+ assert2(client[kRunning] === 0);
+ client.emit("disconnect", client[kUrl], [client], err);
resume(client);
}
async function connect(client) {
- assert(!client[kConnecting]);
- assert(!client[kSocket]);
- let { host, hostname, protocol, port } = client[kUrl];
- if (hostname[0] === "[") {
- const idx = hostname.indexOf("]");
- assert(idx !== -1);
- const ip2 = hostname.substring(1, idx);
- assert(net.isIP(ip2));
- hostname = ip2;
+ assert2(!client[kConnecting]);
+ assert2(!client[kSocket]);
+ let { host, hostname: hostname2, protocol, port } = client[kUrl];
+ if (hostname2[0] === "[") {
+ const idx = hostname2.indexOf("]");
+ assert2(idx !== -1);
+ const ip2 = hostname2.substring(1, idx);
+ assert2(net.isIP(ip2));
+ hostname2 = ip2;
}
client[kConnecting] = true;
if (channels.beforeConnect.hasSubscribers) {
channels.beforeConnect.publish({
connectParams: {
host,
- hostname,
+ hostname: hostname2,
protocol,
port,
servername: client[kServerName],
@@ -7772,26 +7779,26 @@ var require_client = __commonJS({
const socket = await new Promise((resolve, reject) => {
client[kConnector]({
host,
- hostname,
+ hostname: hostname2,
protocol,
port,
servername: client[kServerName],
localAddress: client[kLocalAddress]
- }, (err2, socket2) => {
- if (err2) {
- reject(err2);
+ }, (err, socket2) => {
+ if (err) {
+ reject(err);
} else {
resolve(socket2);
}
});
});
if (client.destroyed) {
- util2.destroy(socket.on("error", () => {
+ util3.destroy(socket.on("error", () => {
}), new ClientDestroyedError());
return;
}
client[kConnecting] = false;
- assert(socket);
+ assert2(socket);
const isH2 = socket.alpnProtocol === "h2";
if (isH2) {
if (!h2ExperimentalWarned) {
@@ -7800,7 +7807,7 @@ var require_client = __commonJS({
code: "UNDICI-H2"
});
}
- const session = http2.connect(client[kUrl], {
+ const session = http22.connect(client[kUrl], {
createConnection: () => socket,
peerMaxConcurrentStreams: client[kHTTP2SessionState].maxConcurrentStreams
});
@@ -7836,7 +7843,7 @@ var require_client = __commonJS({
channels.connected.publish({
connectParams: {
host,
- hostname,
+ hostname: hostname2,
protocol,
port,
servername: client[kServerName],
@@ -7847,7 +7854,7 @@ var require_client = __commonJS({
});
}
client.emit("connect", client[kUrl], [client]);
- } catch (err2) {
+ } catch (err) {
if (client.destroyed) {
return;
}
@@ -7856,26 +7863,26 @@ var require_client = __commonJS({
channels.connectError.publish({
connectParams: {
host,
- hostname,
+ hostname: hostname2,
protocol,
port,
servername: client[kServerName],
localAddress: client[kLocalAddress]
},
connector: client[kConnector],
- error: err2
+ error: err
});
}
- if (err2.code === "ERR_TLS_CERT_ALTNAME_INVALID") {
- assert(client[kRunning] === 0);
+ if (err.code === "ERR_TLS_CERT_ALTNAME_INVALID") {
+ assert2(client[kRunning] === 0);
while (client[kPending] > 0 && client[kQueue][client[kPendingIdx]].servername === client[kServerName]) {
- const request = client[kQueue][client[kPendingIdx]++];
- errorRequest(client, request, err2);
+ const request2 = client[kQueue][client[kPendingIdx]++];
+ errorRequest(client, request2, err);
}
} else {
- onError(client, err2);
+ onError(client, err);
}
- client.emit("connectionError", client[kUrl], [client], err2);
+ client.emit("connectionError", client[kUrl], [client], err);
}
resume(client);
}
@@ -7899,7 +7906,7 @@ var require_client = __commonJS({
function _resume(client, sync) {
while (true) {
if (client.destroyed) {
- assert(client[kPending] === 0);
+ assert2(client[kPending] === 0);
return;
}
if (client[kClosedResolve] && !client[kSize]) {
@@ -7924,8 +7931,8 @@ var require_client = __commonJS({
}
} else if (client[kRunning] > 0 && socket[kParser].statusCode < 200) {
if (socket[kParser].timeoutType !== TIMEOUT_HEADERS) {
- const request2 = client[kQueue][client[kRunningIdx]];
- const headersTimeout = request2.headersTimeout != null ? request2.headersTimeout : client[kHeadersTimeout];
+ const request3 = client[kQueue][client[kRunningIdx]];
+ const headersTimeout = request3.headersTimeout != null ? request3.headersTimeout : client[kHeadersTimeout];
socket[kParser].setTimeout(headersTimeout, TIMEOUT_HEADERS);
}
}
@@ -7947,14 +7954,14 @@ var require_client = __commonJS({
if (client[kRunning] >= (client[kPipelining] || 1)) {
return;
}
- const request = client[kQueue][client[kPendingIdx]];
- if (client[kUrl].protocol === "https:" && client[kServerName] !== request.servername) {
+ const request2 = client[kQueue][client[kPendingIdx]];
+ if (client[kUrl].protocol === "https:" && client[kServerName] !== request2.servername) {
if (client[kRunning] > 0) {
return;
}
- client[kServerName] = request.servername;
- if (socket && socket.servername !== request.servername) {
- util2.destroy(socket, new InformationalError("servername changed"));
+ client[kServerName] = request2.servername;
+ if (socket && socket.servername !== request2.servername) {
+ util3.destroy(socket, new InformationalError("servername changed"));
return;
}
}
@@ -7968,16 +7975,16 @@ var require_client = __commonJS({
if (socket.destroyed || socket[kWriting] || socket[kReset] || socket[kBlocking]) {
return;
}
- if (client[kRunning] > 0 && !request.idempotent) {
+ if (client[kRunning] > 0 && !request2.idempotent) {
return;
}
- if (client[kRunning] > 0 && (request.upgrade || request.method === "CONNECT")) {
+ if (client[kRunning] > 0 && (request2.upgrade || request2.method === "CONNECT")) {
return;
}
- if (client[kRunning] > 0 && util2.bodyLength(request.body) !== 0 && (util2.isStream(request.body) || util2.isAsyncIterable(request.body))) {
+ if (client[kRunning] > 0 && util3.bodyLength(request2.body) !== 0 && (util3.isStream(request2.body) || util3.isAsyncIterable(request2.body))) {
return;
}
- if (!request.aborted && write(client, request)) {
+ if (!request2.aborted && write(client, request2)) {
client[kPendingIdx]++;
} else {
client[kQueue].splice(client[kPendingIdx], 1);
@@ -7987,44 +7994,44 @@ var require_client = __commonJS({
function shouldSendContentLength(method) {
return method !== "GET" && method !== "HEAD" && method !== "OPTIONS" && method !== "TRACE" && method !== "CONNECT";
}
- function write(client, request) {
+ function write(client, request2) {
if (client[kHTTPConnVersion] === "h2") {
- writeH2(client, client[kHTTP2Session], request);
+ writeH2(client, client[kHTTP2Session], request2);
return;
}
- const { body, method, path: path4, host, upgrade, headers, blocking, reset } = request;
+ const { body, method, path: path3, host, upgrade, headers, blocking, reset } = request2;
const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
if (body && typeof body.read === "function") {
body.read(0);
}
- const bodyLength = util2.bodyLength(body);
+ const bodyLength = util3.bodyLength(body);
let contentLength = bodyLength;
if (contentLength === null) {
- contentLength = request.contentLength;
+ contentLength = request2.contentLength;
}
if (contentLength === 0 && !expectsPayload) {
contentLength = null;
}
- if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength !== null && request.contentLength !== contentLength) {
+ if (shouldSendContentLength(method) && contentLength > 0 && request2.contentLength !== null && request2.contentLength !== contentLength) {
if (client[kStrictContentLength]) {
- errorRequest(client, request, new RequestContentLengthMismatchError());
+ errorRequest(client, request2, new RequestContentLengthMismatchError());
return false;
}
process.emitWarning(new RequestContentLengthMismatchError());
}
const socket = client[kSocket];
try {
- request.onConnect((err2) => {
- if (request.aborted || request.completed) {
+ request2.onConnect((err) => {
+ if (request2.aborted || request2.completed) {
return;
}
- errorRequest(client, request, err2 || new RequestAbortedError());
- util2.destroy(socket, new InformationalError("aborted"));
+ errorRequest(client, request2, err || new RequestAbortedError());
+ util3.destroy(socket, new InformationalError("aborted"));
});
- } catch (err2) {
- errorRequest(client, request, err2);
+ } catch (err) {
+ errorRequest(client, request2, err);
}
- if (request.aborted) {
+ if (request2.aborted) {
return false;
}
if (method === "HEAD") {
@@ -8042,7 +8049,7 @@ var require_client = __commonJS({
if (blocking) {
socket[kBlocking] = true;
}
- let header = `${method} ${path4} HTTP/1.1\r
+ let header = `${method} ${path3} HTTP/1.1\r
`;
if (typeof host === "string") {
header += `host: ${host}\r
@@ -8063,7 +8070,7 @@ upgrade: ${upgrade}\r
header += headers;
}
if (channels.sendHeaders.hasSubscribers) {
- channels.sendHeaders.publish({ request, headers: header, socket });
+ channels.sendHeaders.publish({ request: request2, headers: header, socket });
}
if (!body || bodyLength === 0) {
if (contentLength === 0) {
@@ -8071,59 +8078,59 @@ upgrade: ${upgrade}\r
\r
`, "latin1");
} else {
- assert(contentLength === null, "no body must not have content length");
+ assert2(contentLength === null, "no body must not have content length");
socket.write(`${header}\r
`, "latin1");
}
- request.onRequestSent();
- } else if (util2.isBuffer(body)) {
- assert(contentLength === body.byteLength, "buffer body must have content length");
+ request2.onRequestSent();
+ } else if (util3.isBuffer(body)) {
+ assert2(contentLength === body.byteLength, "buffer body must have content length");
socket.cork();
socket.write(`${header}content-length: ${contentLength}\r
\r
`, "latin1");
socket.write(body);
socket.uncork();
- request.onBodySent(body);
- request.onRequestSent();
+ request2.onBodySent(body);
+ request2.onRequestSent();
if (!expectsPayload) {
socket[kReset] = true;
}
- } else if (util2.isBlobLike(body)) {
+ } else if (util3.isBlobLike(body)) {
if (typeof body.stream === "function") {
- writeIterable({ body: body.stream(), client, request, socket, contentLength, header, expectsPayload });
+ writeIterable({ body: body.stream(), client, request: request2, socket, contentLength, header, expectsPayload });
} else {
- writeBlob({ body, client, request, socket, contentLength, header, expectsPayload });
+ writeBlob({ body, client, request: request2, socket, contentLength, header, expectsPayload });
}
- } else if (util2.isStream(body)) {
- writeStream({ body, client, request, socket, contentLength, header, expectsPayload });
- } else if (util2.isIterable(body)) {
- writeIterable({ body, client, request, socket, contentLength, header, expectsPayload });
+ } else if (util3.isStream(body)) {
+ writeStream({ body, client, request: request2, socket, contentLength, header, expectsPayload });
+ } else if (util3.isIterable(body)) {
+ writeIterable({ body, client, request: request2, socket, contentLength, header, expectsPayload });
} else {
- assert(false);
+ assert2(false);
}
return true;
}
- function writeH2(client, session, request) {
- const { body, method, path: path4, host, upgrade, expectContinue, signal, headers: reqHeaders } = request;
+ function writeH2(client, session, request2) {
+ const { body, method, path: path3, host, upgrade, expectContinue, signal, headers: reqHeaders } = request2;
let headers;
if (typeof reqHeaders === "string") headers = Request2[kHTTP2CopyHeaders](reqHeaders.trim());
else headers = reqHeaders;
if (upgrade) {
- errorRequest(client, request, new Error("Upgrade not supported for H2"));
+ errorRequest(client, request2, new Error("Upgrade not supported for H2"));
return false;
}
try {
- request.onConnect((err2) => {
- if (request.aborted || request.completed) {
+ request2.onConnect((err) => {
+ if (request2.aborted || request2.completed) {
return;
}
- errorRequest(client, request, err2 || new RequestAbortedError());
+ errorRequest(client, request2, err || new RequestAbortedError());
});
- } catch (err2) {
- errorRequest(client, request, err2);
+ } catch (err) {
+ errorRequest(client, request2, err);
}
- if (request.aborted) {
+ if (request2.aborted) {
return false;
}
let stream;
@@ -8134,11 +8141,11 @@ upgrade: ${upgrade}\r
session.ref();
stream = session.request(headers, { endStream: false, signal });
if (stream.id && !stream.pending) {
- request.onUpgrade(null, null, stream);
+ request2.onUpgrade(null, null, stream);
++h2State.openStreams;
} else {
stream.once("ready", () => {
- request.onUpgrade(null, null, stream);
+ request2.onUpgrade(null, null, stream);
++h2State.openStreams;
});
}
@@ -8148,28 +8155,28 @@ upgrade: ${upgrade}\r
});
return true;
}
- headers[HTTP2_HEADER_PATH] = path4;
+ headers[HTTP2_HEADER_PATH] = path3;
headers[HTTP2_HEADER_SCHEME] = "https";
const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
if (body && typeof body.read === "function") {
body.read(0);
}
- let contentLength = util2.bodyLength(body);
+ let contentLength = util3.bodyLength(body);
if (contentLength == null) {
- contentLength = request.contentLength;
+ contentLength = request2.contentLength;
}
if (contentLength === 0 || !expectsPayload) {
contentLength = null;
}
- if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength != null && request.contentLength !== contentLength) {
+ if (shouldSendContentLength(method) && contentLength > 0 && request2.contentLength != null && request2.contentLength !== contentLength) {
if (client[kStrictContentLength]) {
- errorRequest(client, request, new RequestContentLengthMismatchError());
+ errorRequest(client, request2, new RequestContentLengthMismatchError());
return false;
}
process.emitWarning(new RequestContentLengthMismatchError());
}
if (contentLength != null) {
- assert(body, "no body must not have content length");
+ assert2(body, "no body must not have content length");
headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`;
}
session.ref();
@@ -8188,15 +8195,15 @@ upgrade: ${upgrade}\r
++h2State.openStreams;
stream.once("response", (headers2) => {
const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers2;
- if (request.onHeaders(Number(statusCode), realHeaders, stream.resume.bind(stream), "") === false) {
+ if (request2.onHeaders(Number(statusCode), realHeaders, stream.resume.bind(stream), "") === false) {
stream.pause();
}
});
stream.once("end", () => {
- request.onComplete([]);
+ request2.onComplete([]);
});
stream.on("data", (chunk) => {
- if (request.onData(chunk) === false) {
+ if (request2.onData(chunk) === false) {
stream.pause();
}
});
@@ -8206,37 +8213,37 @@ upgrade: ${upgrade}\r
session.unref();
}
});
- stream.once("error", function(err2) {
+ stream.once("error", function(err) {
if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) {
h2State.streams -= 1;
- util2.destroy(stream, err2);
+ util3.destroy(stream, err);
}
});
stream.once("frameError", (type2, code) => {
- const err2 = new InformationalError(`HTTP/2: "frameError" received - type ${type2}, code ${code}`);
- errorRequest(client, request, err2);
+ const err = new InformationalError(`HTTP/2: "frameError" received - type ${type2}, code ${code}`);
+ errorRequest(client, request2, err);
if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) {
h2State.streams -= 1;
- util2.destroy(stream, err2);
+ util3.destroy(stream, err);
}
});
return true;
function writeBodyH2() {
if (!body) {
- request.onRequestSent();
- } else if (util2.isBuffer(body)) {
- assert(contentLength === body.byteLength, "buffer body must have content length");
+ request2.onRequestSent();
+ } else if (util3.isBuffer(body)) {
+ assert2(contentLength === body.byteLength, "buffer body must have content length");
stream.cork();
stream.write(body);
stream.uncork();
stream.end();
- request.onBodySent(body);
- request.onRequestSent();
- } else if (util2.isBlobLike(body)) {
+ request2.onBodySent(body);
+ request2.onRequestSent();
+ } else if (util3.isBlobLike(body)) {
if (typeof body.stream === "function") {
writeIterable({
client,
- request,
+ request: request2,
contentLength,
h2stream: stream,
expectsPayload,
@@ -8248,7 +8255,7 @@ upgrade: ${upgrade}\r
writeBlob({
body,
client,
- request,
+ request: request2,
contentLength,
expectsPayload,
h2stream: stream,
@@ -8256,22 +8263,22 @@ upgrade: ${upgrade}\r
socket: client[kSocket]
});
}
- } else if (util2.isStream(body)) {
+ } else if (util3.isStream(body)) {
writeStream({
body,
client,
- request,
+ request: request2,
contentLength,
expectsPayload,
socket: client[kSocket],
h2stream: stream,
header: ""
});
- } else if (util2.isIterable(body)) {
+ } else if (util3.isIterable(body)) {
writeIterable({
body,
client,
- request,
+ request: request2,
contentLength,
expectsPayload,
header: "",
@@ -8279,37 +8286,37 @@ upgrade: ${upgrade}\r
socket: client[kSocket]
});
} else {
- assert(false);
+ assert2(false);
}
}
}
- function writeStream({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
- assert(contentLength !== 0 || client[kRunning] === 0, "stream body cannot be pipelined");
+ function writeStream({ h2stream, body, client, request: request2, socket, contentLength, header, expectsPayload }) {
+ assert2(contentLength !== 0 || client[kRunning] === 0, "stream body cannot be pipelined");
if (client[kHTTPConnVersion] === "h2") {
let onPipeData = function(chunk) {
- request.onBodySent(chunk);
+ request2.onBodySent(chunk);
};
const pipe = pipeline2(
body,
h2stream,
- (err2) => {
- if (err2) {
- util2.destroy(body, err2);
- util2.destroy(h2stream, err2);
+ (err) => {
+ if (err) {
+ util3.destroy(body, err);
+ util3.destroy(h2stream, err);
} else {
- request.onRequestSent();
+ request2.onRequestSent();
}
}
);
pipe.on("data", onPipeData);
pipe.once("end", () => {
pipe.removeListener("data", onPipeData);
- util2.destroy(pipe);
+ util3.destroy(pipe);
});
return;
}
let finished = false;
- const writer = new AsyncWriter({ socket, request, contentLength, client, expectsPayload, header });
+ const writer = new AsyncWriter({ socket, request: request2, contentLength, client, expectsPayload, header });
const onData = function(chunk) {
if (finished) {
return;
@@ -8318,8 +8325,8 @@ upgrade: ${upgrade}\r
if (!writer.write(chunk) && this.pause) {
this.pause();
}
- } catch (err2) {
- util2.destroy(this, err2);
+ } catch (err) {
+ util3.destroy(this, err);
}
};
const onDrain = function() {
@@ -8334,29 +8341,29 @@ upgrade: ${upgrade}\r
if (finished) {
return;
}
- const err2 = new RequestAbortedError();
- queueMicrotask(() => onFinished(err2));
+ const err = new RequestAbortedError();
+ queueMicrotask(() => onFinished(err));
};
- const onFinished = function(err2) {
+ const onFinished = function(err) {
if (finished) {
return;
}
finished = true;
- assert(socket.destroyed || socket[kWriting] && client[kRunning] <= 1);
+ assert2(socket.destroyed || socket[kWriting] && client[kRunning] <= 1);
socket.off("drain", onDrain).off("error", onFinished);
body.removeListener("data", onData).removeListener("end", onFinished).removeListener("error", onFinished).removeListener("close", onAbort);
- if (!err2) {
+ if (!err) {
try {
writer.end();
} catch (er) {
- err2 = er;
+ err = er;
}
}
- writer.destroy(err2);
- if (err2 && (err2.code !== "UND_ERR_INFO" || err2.message !== "reset")) {
- util2.destroy(body, err2);
+ writer.destroy(err);
+ if (err && (err.code !== "UND_ERR_INFO" || err.message !== "reset")) {
+ util3.destroy(body, err);
} else {
- util2.destroy(body);
+ util3.destroy(body);
}
};
body.on("data", onData).on("end", onFinished).on("error", onFinished).on("close", onAbort);
@@ -8365,8 +8372,8 @@ upgrade: ${upgrade}\r
}
socket.on("drain", onDrain).on("error", onFinished);
}
- async function writeBlob({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
- assert(contentLength === body.size, "blob body must have content length");
+ async function writeBlob({ h2stream, body, client, request: request2, socket, contentLength, header, expectsPayload }) {
+ assert2(contentLength === body.size, "blob body must have content length");
const isH2 = client[kHTTPConnVersion] === "h2";
try {
if (contentLength != null && contentLength !== body.size) {
@@ -8385,18 +8392,18 @@ upgrade: ${upgrade}\r
socket.write(buffer);
socket.uncork();
}
- request.onBodySent(buffer);
- request.onRequestSent();
+ request2.onBodySent(buffer);
+ request2.onRequestSent();
if (!expectsPayload) {
socket[kReset] = true;
}
resume(client);
- } catch (err2) {
- util2.destroy(isH2 ? h2stream : socket, err2);
+ } catch (err) {
+ util3.destroy(isH2 ? h2stream : socket, err);
}
}
- async function writeIterable({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
- assert(contentLength !== 0 || client[kRunning] === 0, "iterator body cannot be pipelined");
+ async function writeIterable({ h2stream, body, client, request: request2, socket, contentLength, header, expectsPayload }) {
+ assert2(contentLength !== 0 || client[kRunning] === 0, "iterator body cannot be pipelined");
let callback = null;
function onDrain() {
if (callback) {
@@ -8406,7 +8413,7 @@ upgrade: ${upgrade}\r
}
}
const waitForDrain = () => new Promise((resolve, reject) => {
- assert(callback === null);
+ assert2(callback === null);
if (socket[kError]) {
reject(socket[kError]);
} else {
@@ -8421,22 +8428,22 @@ upgrade: ${upgrade}\r
throw socket[kError];
}
const res = h2stream.write(chunk);
- request.onBodySent(chunk);
+ request2.onBodySent(chunk);
if (!res) {
await waitForDrain();
}
}
- } catch (err2) {
- h2stream.destroy(err2);
+ } catch (err) {
+ h2stream.destroy(err);
} finally {
- request.onRequestSent();
+ request2.onRequestSent();
h2stream.end();
h2stream.off("close", onDrain).off("drain", onDrain);
}
return;
}
socket.on("close", onDrain).on("drain", onDrain);
- const writer = new AsyncWriter({ socket, request, contentLength, client, expectsPayload, header });
+ const writer = new AsyncWriter({ socket, request: request2, contentLength, client, expectsPayload, header });
try {
for await (const chunk of body) {
if (socket[kError]) {
@@ -8447,16 +8454,16 @@ upgrade: ${upgrade}\r
}
}
writer.end();
- } catch (err2) {
- writer.destroy(err2);
+ } catch (err) {
+ writer.destroy(err);
} finally {
socket.off("close", onDrain).off("drain", onDrain);
}
}
var AsyncWriter = class {
- constructor({ socket, request, contentLength, client, expectsPayload, header }) {
+ constructor({ socket, request: request2, contentLength, client, expectsPayload, header }) {
this.socket = socket;
- this.request = request;
+ this.request = request2;
this.contentLength = contentLength;
this.client = client;
this.bytesWritten = 0;
@@ -8465,7 +8472,7 @@ upgrade: ${upgrade}\r
socket[kWriting] = true;
}
write(chunk) {
- const { socket, request, contentLength, client, bytesWritten, expectsPayload, header } = this;
+ const { socket, request: request2, contentLength, client, bytesWritten, expectsPayload, header } = this;
if (socket[kError]) {
throw socket[kError];
}
@@ -8504,7 +8511,7 @@ ${len.toString(16)}\r
this.bytesWritten += len;
const ret = socket.write(chunk);
socket.uncork();
- request.onBodySent(chunk);
+ request2.onBodySent(chunk);
if (!ret) {
if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
if (socket[kParser].timeout.refresh) {
@@ -8515,8 +8522,8 @@ ${len.toString(16)}\r
return ret;
}
end() {
- const { socket, contentLength, client, bytesWritten, expectsPayload, header, request } = this;
- request.onRequestSent();
+ const { socket, contentLength, client, bytesWritten, expectsPayload, header, request: request2 } = this;
+ request2.onRequestSent();
socket[kWriting] = false;
if (socket[kError]) {
throw socket[kError];
@@ -8550,30 +8557,30 @@ ${len.toString(16)}\r
}
resume(client);
}
- destroy(err2) {
+ destroy(err) {
const { socket, client } = this;
socket[kWriting] = false;
- if (err2) {
- assert(client[kRunning] <= 1, "pipeline should only contain this request");
- util2.destroy(socket, err2);
+ if (err) {
+ assert2(client[kRunning] <= 1, "pipeline should only contain this request");
+ util3.destroy(socket, err);
}
}
};
- function errorRequest(client, request, err2) {
+ function errorRequest(client, request2, err) {
try {
- request.onError(err2);
- assert(request.aborted);
- } catch (err3) {
- client.emit("error", err3);
+ request2.onError(err);
+ assert2(request2.aborted);
+ } catch (err2) {
+ client.emit("error", err2);
}
}
- module.exports = Client;
+ module.exports = Client2;
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/node/fixed-queue.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/node/fixed-queue.js
var require_fixed_queue = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/node/fixed-queue.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/node/fixed-queue.js"(exports, module) {
"use strict";
var kSize = 2048;
var kMask = kSize - 1;
@@ -8628,9 +8635,9 @@ var require_fixed_queue = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool-stats.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool-stats.js
var require_pool_stats = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool-stats.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool-stats.js"(exports, module) {
var { kFree, kConnected, kPending, kQueued, kRunning, kSize } = require_symbols();
var kPool = Symbol("pool");
var PoolStats = class {
@@ -8660,9 +8667,9 @@ var require_pool_stats = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool-base.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool-base.js
var require_pool_base = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool-base.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool-base.js"(exports, module) {
"use strict";
var DispatcherBase = require_dispatcher_base();
var FixedQueue = require_fixed_queue();
@@ -8710,11 +8717,11 @@ var require_pool_base = __commonJS({
this[kOnConnect] = (origin, targets) => {
pool.emit("connect", origin, [pool, ...targets]);
};
- this[kOnDisconnect] = (origin, targets, err2) => {
- pool.emit("disconnect", origin, [pool, ...targets], err2);
+ this[kOnDisconnect] = (origin, targets, err) => {
+ pool.emit("disconnect", origin, [pool, ...targets], err);
};
- this[kOnConnectionError] = (origin, targets, err2) => {
- pool.emit("connectionError", origin, [pool, ...targets], err2);
+ this[kOnConnectionError] = (origin, targets, err) => {
+ pool.emit("connectionError", origin, [pool, ...targets], err);
};
this[kStats] = new PoolStats(this);
}
@@ -8760,23 +8767,23 @@ var require_pool_base = __commonJS({
});
}
}
- async [kDestroy](err2) {
+ async [kDestroy](err) {
while (true) {
const item = this[kQueue].shift();
if (!item) {
break;
}
- item.handler.onError(err2);
+ item.handler.onError(err);
}
- return Promise.all(this[kClients].map((c) => c.destroy(err2)));
+ return Promise.all(this[kClients].map((c) => c.destroy(err)));
}
- [kDispatch](opts, handler) {
+ [kDispatch](opts, handler2) {
const dispatcher = this[kGetDispatcher]();
if (!dispatcher) {
this[kNeedDrain] = true;
- this[kQueue].push({ opts, handler });
+ this[kQueue].push({ opts, handler: handler2 });
this[kQueued]++;
- } else if (!dispatcher.dispatch(opts, handler)) {
+ } else if (!dispatcher.dispatch(opts, handler2)) {
dispatcher[kNeedDrain] = true;
this[kNeedDrain] = !this[kGetDispatcher]();
}
@@ -8815,9 +8822,9 @@ var require_pool_base = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool.js
var require_pool = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool.js"(exports, module) {
"use strict";
var {
PoolBase,
@@ -8826,18 +8833,18 @@ var require_pool = __commonJS({
kAddClient,
kGetDispatcher
} = require_pool_base();
- var Client = require_client();
+ var Client2 = require_client();
var {
InvalidArgumentError
} = require_errors();
- var util2 = require_util();
+ var util3 = require_util();
var { kUrl, kInterceptors } = require_symbols();
var buildConnector = require_connect();
var kOptions = Symbol("options");
var kConnections = Symbol("connections");
var kFactory = Symbol("factory");
function defaultFactory(origin, opts) {
- return new Client(origin, opts);
+ return new Client2(origin, opts);
}
var Pool = class extends PoolBase {
constructor(origin, {
@@ -8870,17 +8877,17 @@ var require_pool = __commonJS({
allowH2,
socketPath,
timeout: connectTimeout,
- ...util2.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
+ ...util3.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
...connect
});
}
this[kInterceptors] = options.interceptors && options.interceptors.Pool && Array.isArray(options.interceptors.Pool) ? options.interceptors.Pool : [];
this[kConnections] = connections || null;
- this[kUrl] = util2.parseOrigin(origin);
- this[kOptions] = { ...util2.deepClone(options), connect, allowH2 };
+ this[kUrl] = util3.parseOrigin(origin);
+ this[kOptions] = { ...util3.deepClone(options), connect, allowH2 };
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0;
this[kFactory] = factory;
- this.on("connectionError", (origin2, targets, error2) => {
+ this.on("connectionError", (origin2, targets, error41) => {
for (const target of targets) {
const idx = this[kClients].indexOf(target);
if (idx !== -1) {
@@ -8905,9 +8912,9 @@ var require_pool = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/balanced-pool.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/balanced-pool.js
var require_balanced_pool = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/balanced-pool.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/balanced-pool.js"(exports, module) {
"use strict";
var {
BalancedPoolMissingUpstreamError,
@@ -8975,8 +8982,8 @@ var require_balanced_pool = __commonJS({
this._updateBalancedPoolStats();
});
pool.on("disconnect", (...args2) => {
- const err2 = args2[2];
- if (err2 && err2.code === "UND_ERR_SOCKET") {
+ const err = args2[2];
+ if (err && err.code === "UND_ERR_SOCKET") {
pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty]);
this._updateBalancedPoolStats();
}
@@ -9040,9 +9047,9 @@ var require_balanced_pool = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/compat/dispatcher-weakref.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/compat/dispatcher-weakref.js
var require_dispatcher_weakref = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/compat/dispatcher-weakref.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/compat/dispatcher-weakref.js"(exports, module) {
"use strict";
var { kConnected, kSize } = require_symbols();
var CompatWeakRef = class {
@@ -9082,18 +9089,18 @@ var require_dispatcher_weakref = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/agent.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/agent.js
var require_agent = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/agent.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/agent.js"(exports, module) {
"use strict";
var { InvalidArgumentError } = require_errors();
var { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = require_symbols();
var DispatcherBase = require_dispatcher_base();
var Pool = require_pool();
- var Client = require_client();
- var util2 = require_util();
+ var Client2 = require_client();
+ var util3 = require_util();
var createRedirectInterceptor = require_redirectInterceptor();
- var { WeakRef: WeakRef2, FinalizationRegistry } = require_dispatcher_weakref()();
+ var { WeakRef: WeakRef2, FinalizationRegistry: FinalizationRegistry2 } = require_dispatcher_weakref()();
var kOnConnect = Symbol("onConnect");
var kOnDisconnect = Symbol("onDisconnect");
var kOnConnectionError = Symbol("onConnectionError");
@@ -9103,7 +9110,7 @@ var require_agent = __commonJS({
var kFinalizer = Symbol("finalizer");
var kOptions = Symbol("options");
function defaultFactory(origin, opts) {
- return opts && opts.connections === 1 ? new Client(origin, opts) : new Pool(origin, opts);
+ return opts && opts.connections === 1 ? new Client2(origin, opts) : new Pool(origin, opts);
}
var Agent = class extends DispatcherBase {
constructor({ factory = defaultFactory, maxRedirections = 0, connect, ...options } = {}) {
@@ -9121,12 +9128,12 @@ var require_agent = __commonJS({
connect = { ...connect };
}
this[kInterceptors] = options.interceptors && options.interceptors.Agent && Array.isArray(options.interceptors.Agent) ? options.interceptors.Agent : [createRedirectInterceptor({ maxRedirections })];
- this[kOptions] = { ...util2.deepClone(options), connect };
+ this[kOptions] = { ...util3.deepClone(options), connect };
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0;
this[kMaxRedirections] = maxRedirections;
this[kFactory] = factory;
this[kClients] = /* @__PURE__ */ new Map();
- this[kFinalizer] = new FinalizationRegistry(
+ this[kFinalizer] = new FinalizationRegistry2(
/* istanbul ignore next: gc is undeterministic */
(key) => {
const ref = this[kClients].get(key);
@@ -9142,11 +9149,11 @@ var require_agent = __commonJS({
this[kOnConnect] = (origin, targets) => {
agent2.emit("connect", origin, [agent2, ...targets]);
};
- this[kOnDisconnect] = (origin, targets, err2) => {
- agent2.emit("disconnect", origin, [agent2, ...targets], err2);
+ this[kOnDisconnect] = (origin, targets, err) => {
+ agent2.emit("disconnect", origin, [agent2, ...targets], err);
};
- this[kOnConnectionError] = (origin, targets, err2) => {
- agent2.emit("connectionError", origin, [agent2, ...targets], err2);
+ this[kOnConnectionError] = (origin, targets, err) => {
+ agent2.emit("connectionError", origin, [agent2, ...targets], err);
};
}
get [kRunning]() {
@@ -9159,7 +9166,7 @@ var require_agent = __commonJS({
}
return ret;
}
- [kDispatch](opts, handler) {
+ [kDispatch](opts, handler2) {
let key;
if (opts.origin && (typeof opts.origin === "string" || opts.origin instanceof URL)) {
key = String(opts.origin);
@@ -9173,7 +9180,7 @@ var require_agent = __commonJS({
this[kClients].set(key, new WeakRef2(dispatcher));
this[kFinalizer].register(dispatcher, key);
}
- return dispatcher.dispatch(opts, handler);
+ return dispatcher.dispatch(opts, handler2);
}
async [kClose]() {
const closePromises = [];
@@ -9185,12 +9192,12 @@ var require_agent = __commonJS({
}
await Promise.all(closePromises);
}
- async [kDestroy](err2) {
+ async [kDestroy](err) {
const destroyPromises = [];
for (const ref of this[kClients].values()) {
const client = ref.deref();
if (client) {
- destroyPromises.push(client.destroy(err2));
+ destroyPromises.push(client.destroy(err));
}
}
await Promise.all(destroyPromises);
@@ -9200,14 +9207,14 @@ var require_agent = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/readable.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/readable.js
var require_readable = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/readable.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/readable.js"(exports, module) {
"use strict";
- var assert = __require("assert");
+ var assert2 = __require("assert");
var { Readable } = __require("stream");
var { RequestAbortedError, NotSupportedError, InvalidArgumentError } = require_errors();
- var util2 = require_util();
+ var util3 = require_util();
var { ReadableStreamFrom, toUSVString } = require_util();
var Blob2;
var kConsume = Symbol("kConsume");
@@ -9215,7 +9222,7 @@ var require_readable = __commonJS({
var kBody = Symbol("kBody");
var kAbort = Symbol("abort");
var kContentType = Symbol("kContentType");
- var noop = () => {
+ var noop3 = () => {
};
module.exports = class BodyReadable extends Readable {
constructor({
@@ -9237,17 +9244,17 @@ var require_readable = __commonJS({
this[kContentType] = contentType;
this[kReading] = false;
}
- destroy(err2) {
+ destroy(err) {
if (this.destroyed) {
return this;
}
- if (!err2 && !this._readableState.endEmitted) {
- err2 = new RequestAbortedError();
+ if (!err && !this._readableState.endEmitted) {
+ err = new RequestAbortedError();
}
- if (err2) {
+ if (err) {
this[kAbort]();
}
- return super.destroy(err2);
+ return super.destroy(err);
}
emit(ev, ...args2) {
if (ev === "data") {
@@ -9305,7 +9312,7 @@ var require_readable = __commonJS({
}
// https://fetch.spec.whatwg.org/#dom-body-bodyused
get bodyUsed() {
- return util2.isDisturbed(this);
+ return util3.isDisturbed(this);
}
// https://fetch.spec.whatwg.org/#dom-body-body
get body() {
@@ -9313,7 +9320,7 @@ var require_readable = __commonJS({
this[kBody] = ReadableStreamFrom(this);
if (this[kConsume]) {
this[kBody].getReader();
- assert(this[kBody].locked);
+ assert2(this[kBody].locked);
}
}
return this[kBody];
@@ -9326,18 +9333,18 @@ var require_readable = __commonJS({
if (typeof signal !== "object" || !("aborted" in signal)) {
throw new InvalidArgumentError("signal must be an AbortSignal");
}
- util2.throwIfAborted(signal);
- } catch (err2) {
- return Promise.reject(err2);
+ util3.throwIfAborted(signal);
+ } catch (err) {
+ return Promise.reject(err);
}
}
if (this.closed) {
return Promise.resolve(null);
}
return new Promise((resolve, reject) => {
- const signalListenerCleanup = signal ? util2.addAbortListener(signal, () => {
+ const signalListenerCleanup = signal ? util3.addAbortListener(signal, () => {
this.destroy();
- }) : noop;
+ }) : noop3;
this.on("close", function() {
signalListenerCleanup();
if (signal && signal.aborted) {
@@ -9345,7 +9352,7 @@ var require_readable = __commonJS({
} else {
resolve(null);
}
- }).on("error", noop).on("data", function(chunk) {
+ }).on("error", noop3).on("data", function(chunk) {
limit -= chunk.length;
if (limit <= 0) {
this.destroy();
@@ -9358,13 +9365,13 @@ var require_readable = __commonJS({
return self2[kBody] && self2[kBody].locked === true || self2[kConsume];
}
function isUnusable(self2) {
- return util2.isDisturbed(self2) || isLocked(self2);
+ return util3.isDisturbed(self2) || isLocked(self2);
}
async function consume(stream, type2) {
if (isUnusable(stream)) {
throw new TypeError("unusable");
}
- assert(!stream[kConsume]);
+ assert2(!stream[kConsume]);
return new Promise((resolve, reject) => {
stream[kConsume] = {
type: type2,
@@ -9374,8 +9381,8 @@ var require_readable = __commonJS({
length: 0,
body: []
};
- stream.on("error", function(err2) {
- consumeFinish(this[kConsume], err2);
+ stream.on("error", function(err) {
+ consumeFinish(this[kConsume], err);
}).on("close", function() {
if (this[kConsume].body !== null) {
consumeFinish(this[kConsume], new RequestAbortedError());
@@ -9425,20 +9432,20 @@ var require_readable = __commonJS({
resolve(new Blob2(body, { type: stream[kContentType] }));
}
consumeFinish(consume2);
- } catch (err2) {
- stream.destroy(err2);
+ } catch (err) {
+ stream.destroy(err);
}
}
function consumePush(consume2, chunk) {
consume2.length += chunk.length;
consume2.body.push(chunk);
}
- function consumeFinish(consume2, err2) {
+ function consumeFinish(consume2, err) {
if (consume2.body === null) {
return;
}
- if (err2) {
- consume2.reject(err2);
+ if (err) {
+ consume2.reject(err);
} else {
consume2.resolve();
}
@@ -9452,16 +9459,16 @@ var require_readable = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/util.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/util.js
var require_util3 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/util.js"(exports, module) {
- var assert = __require("assert");
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/util.js"(exports, module) {
+ var assert2 = __require("assert");
var {
ResponseStatusCodeError
} = require_errors();
var { toUSVString } = require_util();
async function getResolveErrorBodyCallback({ callback, body, contentType, statusCode, statusMessage, headers }) {
- assert(body);
+ assert2(body);
let chunks = [];
let limit = 0;
for await (const chunk of body) {
@@ -9487,7 +9494,7 @@ var require_util3 = __commonJS({
process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ""}`, statusCode, headers, payload));
return;
}
- } catch (err2) {
+ } catch (err) {
}
process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ""}`, statusCode, headers));
}
@@ -9495,9 +9502,9 @@ var require_util3 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/abort-signal.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/abort-signal.js
var require_abort_signal = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/abort-signal.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/abort-signal.js"(exports, module) {
var { addAbortListener } = require_util();
var { RequestAbortedError } = require_errors();
var kListener = Symbol("kListener");
@@ -9544,16 +9551,16 @@ var require_abort_signal = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-request.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-request.js
var require_api_request = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-request.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-request.js"(exports, module) {
"use strict";
var Readable = require_readable();
var {
InvalidArgumentError,
RequestAbortedError
} = require_errors();
- var util2 = require_util();
+ var util3 = require_util();
var { getResolveErrorBodyCallback } = require_util3();
var { AsyncResource } = __require("async_hooks");
var { addSignal, removeSignal } = require_abort_signal();
@@ -9580,11 +9587,11 @@ var require_api_request = __commonJS({
throw new InvalidArgumentError("invalid onInfo callback");
}
super("UNDICI_REQUEST");
- } catch (err2) {
- if (util2.isStream(body)) {
- util2.destroy(body.on("error", util2.nop), err2);
+ } catch (err) {
+ if (util3.isStream(body)) {
+ util3.destroy(body.on("error", util3.nop), err);
}
- throw err2;
+ throw err;
}
this.responseHeaders = responseHeaders || null;
this.opaque = opaque || null;
@@ -9597,9 +9604,9 @@ var require_api_request = __commonJS({
this.onInfo = onInfo || null;
this.throwOnError = throwOnError;
this.highWaterMark = highWaterMark;
- if (util2.isStream(body)) {
- body.on("error", (err2) => {
- this.onError(err2);
+ if (util3.isStream(body)) {
+ body.on("error", (err) => {
+ this.onError(err);
});
}
addSignal(this, signal);
@@ -9613,14 +9620,14 @@ var require_api_request = __commonJS({
}
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
const { callback, opaque, abort, context, responseHeaders, highWaterMark } = this;
- const headers = responseHeaders === "raw" ? util2.parseRawHeaders(rawHeaders) : util2.parseHeaders(rawHeaders);
+ const headers = responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
if (statusCode < 200) {
if (this.onInfo) {
this.onInfo({ statusCode, headers });
}
return;
}
- const parsedHeaders = responseHeaders === "raw" ? util2.parseHeaders(rawHeaders) : headers;
+ const parsedHeaders = responseHeaders === "raw" ? util3.parseHeaders(rawHeaders) : headers;
const contentType = parsedHeaders["content-type"];
const body = new Readable({ resume, abort, contentType, highWaterMark });
this.callback = null;
@@ -9651,56 +9658,56 @@ var require_api_request = __commonJS({
onComplete(trailers) {
const { res } = this;
removeSignal(this);
- util2.parseHeaders(trailers, this.trailers);
+ util3.parseHeaders(trailers, this.trailers);
res.push(null);
}
- onError(err2) {
+ onError(err) {
const { res, callback, body, opaque } = this;
removeSignal(this);
if (callback) {
this.callback = null;
queueMicrotask(() => {
- this.runInAsyncScope(callback, null, err2, { opaque });
+ this.runInAsyncScope(callback, null, err, { opaque });
});
}
if (res) {
this.res = null;
queueMicrotask(() => {
- util2.destroy(res, err2);
+ util3.destroy(res, err);
});
}
if (body) {
this.body = null;
- util2.destroy(body, err2);
+ util3.destroy(body, err);
}
}
};
- function request(opts, callback) {
+ function request2(opts, callback) {
if (callback === void 0) {
return new Promise((resolve, reject) => {
- request.call(this, opts, (err2, data) => {
- return err2 ? reject(err2) : resolve(data);
+ request2.call(this, opts, (err, data) => {
+ return err ? reject(err) : resolve(data);
});
});
}
try {
this.dispatch(opts, new RequestHandler(opts, callback));
- } catch (err2) {
+ } catch (err) {
if (typeof callback !== "function") {
- throw err2;
+ throw err;
}
const opaque = opts && opts.opaque;
- queueMicrotask(() => callback(err2, { opaque }));
+ queueMicrotask(() => callback(err, { opaque }));
}
}
- module.exports = request;
+ module.exports = request2;
module.exports.RequestHandler = RequestHandler;
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-stream.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-stream.js
var require_api_stream = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-stream.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-stream.js"(exports, module) {
"use strict";
var { finished, PassThrough } = __require("stream");
var {
@@ -9708,7 +9715,7 @@ var require_api_stream = __commonJS({
InvalidReturnValueError,
RequestAbortedError
} = require_errors();
- var util2 = require_util();
+ var util3 = require_util();
var { getResolveErrorBodyCallback } = require_util3();
var { AsyncResource } = __require("async_hooks");
var { addSignal, removeSignal } = require_abort_signal();
@@ -9735,11 +9742,11 @@ var require_api_stream = __commonJS({
throw new InvalidArgumentError("invalid onInfo callback");
}
super("UNDICI_STREAM");
- } catch (err2) {
- if (util2.isStream(body)) {
- util2.destroy(body.on("error", util2.nop), err2);
+ } catch (err) {
+ if (util3.isStream(body)) {
+ util3.destroy(body.on("error", util3.nop), err);
}
- throw err2;
+ throw err;
}
this.responseHeaders = responseHeaders || null;
this.opaque = opaque || null;
@@ -9752,9 +9759,9 @@ var require_api_stream = __commonJS({
this.body = body;
this.onInfo = onInfo || null;
this.throwOnError = throwOnError || false;
- if (util2.isStream(body)) {
- body.on("error", (err2) => {
- this.onError(err2);
+ if (util3.isStream(body)) {
+ body.on("error", (err) => {
+ this.onError(err);
});
}
addSignal(this, signal);
@@ -9768,7 +9775,7 @@ var require_api_stream = __commonJS({
}
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
const { factory, opaque, context, callback, responseHeaders } = this;
- const headers = responseHeaders === "raw" ? util2.parseRawHeaders(rawHeaders) : util2.parseHeaders(rawHeaders);
+ const headers = responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
if (statusCode < 200) {
if (this.onInfo) {
this.onInfo({ statusCode, headers });
@@ -9778,7 +9785,7 @@ var require_api_stream = __commonJS({
this.factory = null;
let res;
if (this.throwOnError && statusCode >= 400) {
- const parsedHeaders = responseHeaders === "raw" ? util2.parseHeaders(rawHeaders) : headers;
+ const parsedHeaders = responseHeaders === "raw" ? util3.parseHeaders(rawHeaders) : headers;
const contentType = parsedHeaders["content-type"];
res = new PassThrough();
this.callback = null;
@@ -9800,15 +9807,15 @@ var require_api_stream = __commonJS({
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
throw new InvalidReturnValueError("expected Writable");
}
- finished(res, { readable: false }, (err2) => {
+ finished(res, { readable: false }, (err) => {
const { callback: callback2, res: res2, opaque: opaque2, trailers, abort } = this;
this.res = null;
- if (err2 || !res2.readable) {
- util2.destroy(res2, err2);
+ if (err || !res2.readable) {
+ util3.destroy(res2, err);
}
this.callback = null;
- this.runInAsyncScope(callback2, null, err2 || null, { opaque: opaque2, trailers });
- if (err2) {
+ this.runInAsyncScope(callback2, null, err || null, { opaque: opaque2, trailers });
+ if (err) {
abort();
}
});
@@ -9828,53 +9835,53 @@ var require_api_stream = __commonJS({
if (!res) {
return;
}
- this.trailers = util2.parseHeaders(trailers);
+ this.trailers = util3.parseHeaders(trailers);
res.end();
}
- onError(err2) {
+ onError(err) {
const { res, callback, opaque, body } = this;
removeSignal(this);
this.factory = null;
if (res) {
this.res = null;
- util2.destroy(res, err2);
+ util3.destroy(res, err);
} else if (callback) {
this.callback = null;
queueMicrotask(() => {
- this.runInAsyncScope(callback, null, err2, { opaque });
+ this.runInAsyncScope(callback, null, err, { opaque });
});
}
if (body) {
this.body = null;
- util2.destroy(body, err2);
+ util3.destroy(body, err);
}
}
};
function stream(opts, factory, callback) {
if (callback === void 0) {
return new Promise((resolve, reject) => {
- stream.call(this, opts, factory, (err2, data) => {
- return err2 ? reject(err2) : resolve(data);
+ stream.call(this, opts, factory, (err, data) => {
+ return err ? reject(err) : resolve(data);
});
});
}
try {
this.dispatch(opts, new StreamHandler(opts, factory, callback));
- } catch (err2) {
+ } catch (err) {
if (typeof callback !== "function") {
- throw err2;
+ throw err;
}
const opaque = opts && opts.opaque;
- queueMicrotask(() => callback(err2, { opaque }));
+ queueMicrotask(() => callback(err, { opaque }));
}
}
module.exports = stream;
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-pipeline.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-pipeline.js
var require_api_pipeline = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-pipeline.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-pipeline.js"(exports, module) {
"use strict";
var {
Readable,
@@ -9886,10 +9893,10 @@ var require_api_pipeline = __commonJS({
InvalidReturnValueError,
RequestAbortedError
} = require_errors();
- var util2 = require_util();
+ var util3 = require_util();
var { AsyncResource } = __require("async_hooks");
var { addSignal, removeSignal } = require_abort_signal();
- var assert = __require("assert");
+ var assert2 = __require("assert");
var kResume = Symbol("resume");
var PipelineRequest = class extends Readable {
constructor() {
@@ -9903,9 +9910,9 @@ var require_api_pipeline = __commonJS({
resume();
}
}
- _destroy(err2, callback) {
+ _destroy(err, callback) {
this._read();
- callback(err2);
+ callback(err);
}
};
var PipelineResponse = class extends Readable {
@@ -9916,19 +9923,19 @@ var require_api_pipeline = __commonJS({
_read() {
this[kResume]();
}
- _destroy(err2, callback) {
- if (!err2 && !this._readableState.endEmitted) {
- err2 = new RequestAbortedError();
+ _destroy(err, callback) {
+ if (!err && !this._readableState.endEmitted) {
+ err = new RequestAbortedError();
}
- callback(err2);
+ callback(err);
}
};
var PipelineHandler = class extends AsyncResource {
- constructor(opts, handler) {
+ constructor(opts, handler2) {
if (!opts || typeof opts !== "object") {
throw new InvalidArgumentError("invalid opts");
}
- if (typeof handler !== "function") {
+ if (typeof handler2 !== "function") {
throw new InvalidArgumentError("invalid handler");
}
const { signal, method, opaque, onInfo, responseHeaders } = opts;
@@ -9944,11 +9951,11 @@ var require_api_pipeline = __commonJS({
super("UNDICI_PIPELINE");
this.opaque = opaque || null;
this.responseHeaders = responseHeaders || null;
- this.handler = handler;
+ this.handler = handler2;
this.abort = null;
this.context = null;
this.onInfo = onInfo || null;
- this.req = new PipelineRequest().on("error", util2.nop);
+ this.req = new PipelineRequest().on("error", util3.nop);
this.ret = new Duplex({
readableObjectMode: opts.objectMode,
autoDestroy: true,
@@ -9966,19 +9973,19 @@ var require_api_pipeline = __commonJS({
req[kResume] = callback;
}
},
- destroy: (err2, callback) => {
+ destroy: (err, callback) => {
const { body, req, res, ret, abort } = this;
- if (!err2 && !ret._readableState.endEmitted) {
- err2 = new RequestAbortedError();
+ if (!err && !ret._readableState.endEmitted) {
+ err = new RequestAbortedError();
}
- if (abort && err2) {
+ if (abort && err) {
abort();
}
- util2.destroy(body, err2);
- util2.destroy(req, err2);
- util2.destroy(res, err2);
+ util3.destroy(body, err);
+ util3.destroy(req, err);
+ util3.destroy(res, err);
removeSignal(this);
- callback(err2);
+ callback(err);
}
}).on("prefinish", () => {
const { req } = this;
@@ -9989,7 +9996,7 @@ var require_api_pipeline = __commonJS({
}
onConnect(abort, context) {
const { ret, res } = this;
- assert(!res, "pipeline cannot be retried");
+ assert2(!res, "pipeline cannot be retried");
if (ret.destroyed) {
throw new RequestAbortedError();
}
@@ -9997,10 +10004,10 @@ var require_api_pipeline = __commonJS({
this.context = context;
}
onHeaders(statusCode, rawHeaders, resume) {
- const { opaque, handler, context } = this;
+ const { opaque, handler: handler2, context } = this;
if (statusCode < 200) {
if (this.onInfo) {
- const headers = this.responseHeaders === "raw" ? util2.parseRawHeaders(rawHeaders) : util2.parseHeaders(rawHeaders);
+ const headers = this.responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
this.onInfo({ statusCode, headers });
}
return;
@@ -10009,17 +10016,17 @@ var require_api_pipeline = __commonJS({
let body;
try {
this.handler = null;
- const headers = this.responseHeaders === "raw" ? util2.parseRawHeaders(rawHeaders) : util2.parseHeaders(rawHeaders);
- body = this.runInAsyncScope(handler, null, {
+ const headers = this.responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
+ body = this.runInAsyncScope(handler2, null, {
statusCode,
headers,
opaque,
body: this.res,
context
});
- } catch (err2) {
- this.res.on("error", util2.nop);
- throw err2;
+ } catch (err) {
+ this.res.on("error", util3.nop);
+ throw err;
}
if (!body || typeof body.on !== "function") {
throw new InvalidReturnValueError("expected Readable");
@@ -10029,16 +10036,16 @@ var require_api_pipeline = __commonJS({
if (!ret.push(chunk) && body2.pause) {
body2.pause();
}
- }).on("error", (err2) => {
+ }).on("error", (err) => {
const { ret } = this;
- util2.destroy(ret, err2);
+ util3.destroy(ret, err);
}).on("end", () => {
const { ret } = this;
ret.push(null);
}).on("close", () => {
const { ret } = this;
if (!ret._readableState.ended) {
- util2.destroy(ret, new RequestAbortedError());
+ util3.destroy(ret, new RequestAbortedError());
}
});
this.body = body;
@@ -10051,34 +10058,34 @@ var require_api_pipeline = __commonJS({
const { res } = this;
res.push(null);
}
- onError(err2) {
+ onError(err) {
const { ret } = this;
this.handler = null;
- util2.destroy(ret, err2);
+ util3.destroy(ret, err);
}
};
- function pipeline2(opts, handler) {
+ function pipeline2(opts, handler2) {
try {
- const pipelineHandler = new PipelineHandler(opts, handler);
+ const pipelineHandler = new PipelineHandler(opts, handler2);
this.dispatch({ ...opts, body: pipelineHandler.req }, pipelineHandler);
return pipelineHandler.ret;
- } catch (err2) {
- return new PassThrough().destroy(err2);
+ } catch (err) {
+ return new PassThrough().destroy(err);
}
}
module.exports = pipeline2;
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-upgrade.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-upgrade.js
var require_api_upgrade = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-upgrade.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-upgrade.js"(exports, module) {
"use strict";
var { InvalidArgumentError, RequestAbortedError, SocketError } = require_errors();
var { AsyncResource } = __require("async_hooks");
- var util2 = require_util();
+ var util3 = require_util();
var { addSignal, removeSignal } = require_abort_signal();
- var assert = __require("assert");
+ var assert2 = __require("assert");
var UpgradeHandler = class extends AsyncResource {
constructor(opts, callback) {
if (!opts || typeof opts !== "object") {
@@ -10111,10 +10118,10 @@ var require_api_upgrade = __commonJS({
}
onUpgrade(statusCode, rawHeaders, socket) {
const { callback, opaque, context } = this;
- assert.strictEqual(statusCode, 101);
+ assert2.strictEqual(statusCode, 101);
removeSignal(this);
this.callback = null;
- const headers = this.responseHeaders === "raw" ? util2.parseRawHeaders(rawHeaders) : util2.parseHeaders(rawHeaders);
+ const headers = this.responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
this.runInAsyncScope(callback, null, null, {
headers,
socket,
@@ -10122,13 +10129,13 @@ var require_api_upgrade = __commonJS({
context
});
}
- onError(err2) {
+ onError(err) {
const { callback, opaque } = this;
removeSignal(this);
if (callback) {
this.callback = null;
queueMicrotask(() => {
- this.runInAsyncScope(callback, null, err2, { opaque });
+ this.runInAsyncScope(callback, null, err, { opaque });
});
}
}
@@ -10136,8 +10143,8 @@ var require_api_upgrade = __commonJS({
function upgrade(opts, callback) {
if (callback === void 0) {
return new Promise((resolve, reject) => {
- upgrade.call(this, opts, (err2, data) => {
- return err2 ? reject(err2) : resolve(data);
+ upgrade.call(this, opts, (err, data) => {
+ return err ? reject(err) : resolve(data);
});
});
}
@@ -10148,25 +10155,25 @@ var require_api_upgrade = __commonJS({
method: opts.method || "GET",
upgrade: opts.protocol || "Websocket"
}, upgradeHandler);
- } catch (err2) {
+ } catch (err) {
if (typeof callback !== "function") {
- throw err2;
+ throw err;
}
const opaque = opts && opts.opaque;
- queueMicrotask(() => callback(err2, { opaque }));
+ queueMicrotask(() => callback(err, { opaque }));
}
}
module.exports = upgrade;
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-connect.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-connect.js
var require_api_connect = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-connect.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-connect.js"(exports, module) {
"use strict";
var { AsyncResource } = __require("async_hooks");
var { InvalidArgumentError, RequestAbortedError, SocketError } = require_errors();
- var util2 = require_util();
+ var util3 = require_util();
var { addSignal, removeSignal } = require_abort_signal();
var ConnectHandler = class extends AsyncResource {
constructor(opts, callback) {
@@ -10203,7 +10210,7 @@ var require_api_connect = __commonJS({
this.callback = null;
let headers = rawHeaders;
if (headers != null) {
- headers = this.responseHeaders === "raw" ? util2.parseRawHeaders(rawHeaders) : util2.parseHeaders(rawHeaders);
+ headers = this.responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
}
this.runInAsyncScope(callback, null, null, {
statusCode,
@@ -10213,13 +10220,13 @@ var require_api_connect = __commonJS({
context
});
}
- onError(err2) {
+ onError(err) {
const { callback, opaque } = this;
removeSignal(this);
if (callback) {
this.callback = null;
queueMicrotask(() => {
- this.runInAsyncScope(callback, null, err2, { opaque });
+ this.runInAsyncScope(callback, null, err, { opaque });
});
}
}
@@ -10227,29 +10234,29 @@ var require_api_connect = __commonJS({
function connect(opts, callback) {
if (callback === void 0) {
return new Promise((resolve, reject) => {
- connect.call(this, opts, (err2, data) => {
- return err2 ? reject(err2) : resolve(data);
+ connect.call(this, opts, (err, data) => {
+ return err ? reject(err) : resolve(data);
});
});
}
try {
const connectHandler = new ConnectHandler(opts, callback);
this.dispatch({ ...opts, method: "CONNECT" }, connectHandler);
- } catch (err2) {
+ } catch (err) {
if (typeof callback !== "function") {
- throw err2;
+ throw err;
}
const opaque = opts && opts.opaque;
- queueMicrotask(() => callback(err2, { opaque }));
+ queueMicrotask(() => callback(err, { opaque }));
}
}
module.exports = connect;
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/index.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/index.js
var require_api = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/index.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/index.js"(exports, module) {
"use strict";
module.exports.request = require_api_request();
module.exports.stream = require_api_stream();
@@ -10259,9 +10266,9 @@ var require_api = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-errors.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-errors.js
var require_mock_errors = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-errors.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-errors.js"(exports, module) {
"use strict";
var { UndiciError } = require_errors();
var MockNotMatchedError = class _MockNotMatchedError extends UndiciError {
@@ -10279,9 +10286,9 @@ var require_mock_errors = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-symbols.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-symbols.js
var require_mock_symbols = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-symbols.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-symbols.js"(exports, module) {
"use strict";
module.exports = {
kAgent: Symbol("agent"),
@@ -10307,9 +10314,9 @@ var require_mock_symbols = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-utils.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-utils.js
var require_mock_utils = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-utils.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-utils.js"(exports, module) {
"use strict";
var { MockNotMatchedError } = require_mock_errors();
var {
@@ -10360,10 +10367,10 @@ var require_mock_utils = __commonJS({
}
}
function buildHeadersFromArray(headers) {
- const clone = headers.slice();
+ const clone2 = headers.slice();
const entries = [];
- for (let index = 0; index < clone.length; index += 2) {
- entries.push([clone[index], clone[index + 1]]);
+ for (let index = 0; index < clone2.length; index += 2) {
+ entries.push([clone2[index], clone2[index + 1]]);
}
return Object.fromEntries(entries);
}
@@ -10388,26 +10395,26 @@ var require_mock_utils = __commonJS({
}
return true;
}
- function safeUrl(path4) {
- if (typeof path4 !== "string") {
- return path4;
+ function safeUrl(path3) {
+ if (typeof path3 !== "string") {
+ return path3;
}
- const pathSegments = path4.split("?");
+ const pathSegments = path3.split("?");
if (pathSegments.length !== 2) {
- return path4;
+ return path3;
}
const qp = new URLSearchParams(pathSegments.pop());
qp.sort();
return [...pathSegments, qp.toString()].join("?");
}
- function matchKey(mockDispatch2, { path: path4, method, body, headers }) {
- const pathMatch = matchValue(mockDispatch2.path, path4);
+ function matchKey(mockDispatch2, { path: path3, method, body, headers }) {
+ const pathMatch = matchValue(mockDispatch2.path, path3);
const methodMatch = matchValue(mockDispatch2.method, method);
const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true;
const headersMatch = matchHeaders(mockDispatch2, headers);
return pathMatch && methodMatch && bodyMatch && headersMatch;
}
- function getResponseData(data) {
+ function getResponseData2(data) {
if (Buffer.isBuffer(data)) {
return data;
} else if (typeof data === "object") {
@@ -10419,7 +10426,7 @@ var require_mock_utils = __commonJS({
function getMockDispatch(mockDispatches, key) {
const basePath = key.query ? buildURL(key.path, key.query) : key.path;
const resolvedPath = typeof basePath === "string" ? safeUrl(basePath) : basePath;
- let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path4 }) => matchValue(safeUrl(path4), resolvedPath));
+ let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path3 }) => matchValue(safeUrl(path3), resolvedPath));
if (matchedMockDispatches.length === 0) {
throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`);
}
@@ -10456,9 +10463,9 @@ var require_mock_utils = __commonJS({
}
}
function buildKey(opts) {
- const { path: path4, method, body, headers, query: query2 } = opts;
+ const { path: path3, method, body, headers, query: query2 } = opts;
return {
- path: path4,
+ path: path3,
method,
body,
headers,
@@ -10482,26 +10489,26 @@ var require_mock_utils = __commonJS({
}
return Buffer.concat(buffers).toString("utf8");
}
- function mockDispatch(opts, handler) {
+ function mockDispatch(opts, handler2) {
const key = buildKey(opts);
const mockDispatch2 = getMockDispatch(this[kDispatches], key);
mockDispatch2.timesInvoked++;
if (mockDispatch2.data.callback) {
mockDispatch2.data = { ...mockDispatch2.data, ...mockDispatch2.data.callback(opts) };
}
- const { data: { statusCode, data, headers, trailers, error: error2 }, delay, persist } = mockDispatch2;
+ const { data: { statusCode, data, headers, trailers, error: error41 }, delay: delay2, persist } = mockDispatch2;
const { timesInvoked, times } = mockDispatch2;
mockDispatch2.consumed = !persist && timesInvoked >= times;
mockDispatch2.pending = timesInvoked < times;
- if (error2 !== null) {
+ if (error41 !== null) {
deleteMockDispatch(this[kDispatches], key);
- handler.onError(error2);
+ handler2.onError(error41);
return true;
}
- if (typeof delay === "number" && delay > 0) {
+ if (typeof delay2 === "number" && delay2 > 0) {
setTimeout(() => {
handleReply(this[kDispatches]);
- }, delay);
+ }, delay2);
} else {
handleReply(this[kDispatches]);
}
@@ -10512,13 +10519,13 @@ var require_mock_utils = __commonJS({
body.then((newData) => handleReply(mockDispatches, newData));
return;
}
- const responseData = getResponseData(body);
+ const responseData = getResponseData2(body);
const responseHeaders = generateKeyValues(headers);
const responseTrailers = generateKeyValues(trailers);
- handler.abort = nop;
- handler.onHeaders(statusCode, responseHeaders, resume, getStatusText(statusCode));
- handler.onData(Buffer.from(responseData));
- handler.onComplete(responseTrailers);
+ handler2.abort = nop;
+ handler2.onHeaders(statusCode, responseHeaders, resume, getStatusText(statusCode));
+ handler2.onData(Buffer.from(responseData));
+ handler2.onComplete(responseTrailers);
deleteMockDispatch(mockDispatches, key);
}
function resume() {
@@ -10529,27 +10536,27 @@ var require_mock_utils = __commonJS({
const agent2 = this[kMockAgent];
const origin = this[kOrigin];
const originalDispatch = this[kOriginalDispatch];
- return function dispatch(opts, handler) {
+ return function dispatch(opts, handler2) {
if (agent2.isMockActive) {
try {
- mockDispatch.call(this, opts, handler);
- } catch (error2) {
- if (error2 instanceof MockNotMatchedError) {
+ mockDispatch.call(this, opts, handler2);
+ } catch (error41) {
+ if (error41 instanceof MockNotMatchedError) {
const netConnect = agent2[kGetNetConnect]();
if (netConnect === false) {
- throw new MockNotMatchedError(`${error2.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`);
+ throw new MockNotMatchedError(`${error41.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`);
}
if (checkNetConnect(netConnect, origin)) {
- originalDispatch.call(this, opts, handler);
+ originalDispatch.call(this, opts, handler2);
} else {
- throw new MockNotMatchedError(`${error2.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`);
+ throw new MockNotMatchedError(`${error41.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`);
}
} else {
- throw error2;
+ throw error41;
}
}
} else {
- originalDispatch.call(this, opts, handler);
+ originalDispatch.call(this, opts, handler2);
}
};
}
@@ -10569,7 +10576,7 @@ var require_mock_utils = __commonJS({
}
}
module.exports = {
- getResponseData,
+ getResponseData: getResponseData2,
getMockDispatch,
addMockDispatch,
deleteMockDispatch,
@@ -10587,11 +10594,11 @@ var require_mock_utils = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-interceptor.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-interceptor.js
var require_mock_interceptor = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-interceptor.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-interceptor.js"(exports, module) {
"use strict";
- var { getResponseData, buildKey, addMockDispatch } = require_mock_utils();
+ var { getResponseData: getResponseData2, buildKey, addMockDispatch } = require_mock_utils();
var {
kDispatches,
kDispatchKey,
@@ -10663,7 +10670,7 @@ var require_mock_interceptor = __commonJS({
this[kContentLength] = false;
}
createMockScopeDispatchData(statusCode, data, responseOptions = {}) {
- const responseData = getResponseData(data);
+ const responseData = getResponseData2(data);
const contentLength = this[kContentLength] ? { "content-length": responseData.length } : {};
const headers = { ...this[kDefaultHeaders], ...contentLength, ...responseOptions.headers };
const trailers = { ...this[kDefaultTrailers], ...responseOptions.trailers };
@@ -10708,11 +10715,11 @@ var require_mock_interceptor = __commonJS({
/**
* Mock an undici request with a defined error.
*/
- replyWithError(error2) {
- if (typeof error2 === "undefined") {
+ replyWithError(error41) {
+ if (typeof error41 === "undefined") {
throw new InvalidArgumentError("error must be defined");
}
- const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], { error: error2 });
+ const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], { error: error41 });
return new MockScope(newMockDispatch);
}
/**
@@ -10748,12 +10755,12 @@ var require_mock_interceptor = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-client.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-client.js
var require_mock_client = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-client.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-client.js"(exports, module) {
"use strict";
var { promisify } = __require("util");
- var Client = require_client();
+ var Client2 = require_client();
var { buildMockDispatch } = require_mock_utils();
var {
kDispatches,
@@ -10767,7 +10774,7 @@ var require_mock_client = __commonJS({
var { MockInterceptor } = require_mock_interceptor();
var Symbols = require_symbols();
var { InvalidArgumentError } = require_errors();
- var MockClient = class extends Client {
+ var MockClient = class extends Client2 {
constructor(origin, opts) {
super(origin, opts);
if (!opts || !opts.agent || typeof opts.agent.dispatch !== "function") {
@@ -10801,9 +10808,9 @@ var require_mock_client = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-pool.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-pool.js
var require_mock_pool = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-pool.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-pool.js"(exports, module) {
"use strict";
var { promisify } = __require("util");
var Pool = require_pool();
@@ -10854,9 +10861,9 @@ var require_mock_pool = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/pluralizer.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/pluralizer.js
var require_pluralizer = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/pluralizer.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/pluralizer.js"(exports, module) {
"use strict";
var singulars = {
pronoun: "it",
@@ -10885,9 +10892,9 @@ var require_pluralizer = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/pending-interceptors-formatter.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/pending-interceptors-formatter.js
var require_pending_interceptors_formatter = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/pending-interceptors-formatter.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/pending-interceptors-formatter.js"(exports, module) {
"use strict";
var { Transform } = __require("stream");
var { Console } = __require("console");
@@ -10907,10 +10914,10 @@ var require_pending_interceptors_formatter = __commonJS({
}
format(pendingInterceptors) {
const withPrettyHeaders = pendingInterceptors.map(
- ({ method, path: path4, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
+ ({ method, path: path3, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
Method: method,
Origin: origin,
- Path: path4,
+ Path: path3,
"Status code": statusCode,
Persistent: persist ? "\u2705" : "\u274C",
Invocations: timesInvoked,
@@ -10924,9 +10931,9 @@ var require_pending_interceptors_formatter = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-agent.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-agent.js
var require_mock_agent = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-agent.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-agent.js"(exports, module) {
"use strict";
var { kClients } = require_symbols();
var Agent = require_agent();
@@ -10977,9 +10984,9 @@ var require_mock_agent = __commonJS({
}
return dispatcher;
}
- dispatch(opts, handler) {
+ dispatch(opts, handler2) {
this.get(opts.origin);
- return this[kAgent].dispatch(opts, handler);
+ return this[kAgent].dispatch(opts, handler2);
}
async close() {
await this[kAgent].close();
@@ -11063,12 +11070,12 @@ ${pendingInterceptorsFormatter.format(pending)}
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/proxy-agent.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/proxy-agent.js
var require_proxy_agent = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/proxy-agent.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/proxy-agent.js"(exports, module) {
"use strict";
var { kProxy, kClose, kDestroy, kInterceptors } = require_symbols();
- var { URL: URL3 } = __require("url");
+ var { URL: URL2 } = __require("url");
var Agent = require_agent();
var Pool = require_pool();
var DispatcherBase = require_dispatcher_base();
@@ -11117,7 +11124,7 @@ var require_proxy_agent = __commonJS({
this[kRequestTls] = opts.requestTls;
this[kProxyTls] = opts.proxyTls;
this[kProxyHeaders] = opts.headers || {};
- const resolvedUrl = new URL3(opts.uri);
+ const resolvedUrl = new URL2(opts.uri);
const { origin, port, host, username, password } = resolvedUrl;
if (opts.auth && opts.token) {
throw new InvalidArgumentError("opts.auth cannot be used in combination with opts.token");
@@ -11165,14 +11172,14 @@ var require_proxy_agent = __commonJS({
servername = opts2.servername;
}
this[kConnectEndpoint]({ ...opts2, servername, httpSocket: socket }, callback);
- } catch (err2) {
- callback(err2);
+ } catch (err) {
+ callback(err);
}
}
});
}
- dispatch(opts, handler) {
- const { host } = new URL3(opts.origin);
+ dispatch(opts, handler2) {
+ const { host } = new URL2(opts.origin);
const headers = buildHeaders(opts.headers);
throwIfProxyAuthIsSent(headers);
return this[kAgent].dispatch(
@@ -11183,7 +11190,7 @@ var require_proxy_agent = __commonJS({
host
}
},
- handler
+ handler2
);
}
async [kClose]() {
@@ -11215,10 +11222,10 @@ var require_proxy_agent = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/RetryHandler.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/RetryHandler.js
var require_RetryHandler = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/RetryHandler.js"(exports, module) {
- var assert = __require("assert");
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/RetryHandler.js"(exports, module) {
+ var assert2 = __require("assert");
var { kRetryHandlerDefaultRetry } = require_symbols();
var { RequestRetryError } = require_errors();
var { isDisturbed, parseHeaders, parseRangeHeader } = require_util();
@@ -11307,8 +11314,8 @@ var require_RetryHandler = __commonJS({
onBodySent(chunk) {
if (this.handler.onBodySent) return this.handler.onBodySent(chunk);
}
- static [kRetryHandlerDefaultRetry](err2, { state, opts }, cb) {
- const { statusCode, code, headers } = err2;
+ static [kRetryHandlerDefaultRetry](err, { state, opts }, cb) {
+ const { statusCode, code, headers } = err;
const { method, retryOptions } = opts;
const {
maxRetries,
@@ -11322,19 +11329,19 @@ var require_RetryHandler = __commonJS({
let { counter, currentTimeout } = state;
currentTimeout = currentTimeout != null && currentTimeout > 0 ? currentTimeout : timeout;
if (code && code !== "UND_ERR_REQ_RETRY" && code !== "UND_ERR_SOCKET" && !errorCodes.includes(code)) {
- cb(err2);
+ cb(err);
return;
}
if (Array.isArray(methods) && !methods.includes(method)) {
- cb(err2);
+ cb(err);
return;
}
if (statusCode != null && Array.isArray(statusCodes) && !statusCodes.includes(statusCode)) {
- cb(err2);
+ cb(err);
return;
}
if (counter > maxRetries) {
- cb(err2);
+ cb(err);
return;
}
let retryAfterHeader = headers != null && headers["retry-after"];
@@ -11383,8 +11390,8 @@ var require_RetryHandler = __commonJS({
return false;
}
const { start, size, end = size } = contentRange;
- assert(this.start === start, "content-range mismatch");
- assert(this.end == null || this.end === end, "content-range mismatch");
+ assert2(this.start === start, "content-range mismatch");
+ assert2(this.end == null || this.end === end, "content-range mismatch");
this.resume = resume;
return true;
}
@@ -11400,12 +11407,12 @@ var require_RetryHandler = __commonJS({
);
}
const { start, size, end = size } = range2;
- assert(
+ assert2(
start != null && Number.isFinite(start) && this.start !== start,
"content-range mismatch"
);
- assert(Number.isFinite(start));
- assert(
+ assert2(Number.isFinite(start));
+ assert2(
end != null && Number.isFinite(end) && this.end !== end,
"invalid content-length"
);
@@ -11416,8 +11423,8 @@ var require_RetryHandler = __commonJS({
const contentLength = headers["content-length"];
this.end = contentLength != null ? Number(contentLength) : null;
}
- assert(Number.isFinite(this.start));
- assert(
+ assert2(Number.isFinite(this.start));
+ assert2(
this.end == null || Number.isFinite(this.end),
"invalid content-length"
);
@@ -11430,11 +11437,11 @@ var require_RetryHandler = __commonJS({
statusMessage
);
}
- const err2 = new RequestRetryError("Request failed", statusCode, {
+ const err = new RequestRetryError("Request failed", statusCode, {
headers,
count: this.retryCount
});
- this.abort(err2);
+ this.abort(err);
return false;
}
onData(chunk) {
@@ -11445,21 +11452,21 @@ var require_RetryHandler = __commonJS({
this.retryCount = 0;
return this.handler.onComplete(rawTrailers);
}
- onError(err2) {
+ onError(err) {
if (this.aborted || isDisturbed(this.opts.body)) {
- return this.handler.onError(err2);
+ return this.handler.onError(err);
}
this.retryOpts.retry(
- err2,
+ err,
{
state: { counter: this.retryCount++, currentTimeout: this.retryAfter },
opts: { retryOptions: this.retryOpts, ...this.opts }
},
onRetry.bind(this)
);
- function onRetry(err3) {
- if (err3 != null || this.aborted || isDisturbed(this.opts.body)) {
- return this.handler.onError(err3);
+ function onRetry(err2) {
+ if (err2 != null || this.aborted || isDisturbed(this.opts.body)) {
+ return this.handler.onError(err2);
}
if (this.start !== 0) {
this.opts = {
@@ -11472,8 +11479,8 @@ var require_RetryHandler = __commonJS({
}
try {
this.dispatch(this.opts, this);
- } catch (err4) {
- this.handler.onError(err4);
+ } catch (err3) {
+ this.handler.onError(err3);
}
}
}
@@ -11482,9 +11489,9 @@ var require_RetryHandler = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/global.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/global.js
var require_global2 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/global.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/global.js"(exports, module) {
"use strict";
var globalDispatcher = Symbol.for("undici.globalDispatcher.1");
var { InvalidArgumentError } = require_errors();
@@ -11513,13 +11520,13 @@ var require_global2 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/DecoratorHandler.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/DecoratorHandler.js
var require_DecoratorHandler = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/DecoratorHandler.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/DecoratorHandler.js"(exports, module) {
"use strict";
module.exports = class DecoratorHandler {
- constructor(handler) {
- this.handler = handler;
+ constructor(handler2) {
+ this.handler = handler2;
}
onConnect(...args2) {
return this.handler.onConnect(...args2);
@@ -11546,9 +11553,9 @@ var require_DecoratorHandler = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js
var require_headers = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js"(exports, module) {
"use strict";
var { kHeadersList, kConstruct } = require_symbols();
var { kGuard } = require_symbols2();
@@ -11558,9 +11565,9 @@ var require_headers = __commonJS({
isValidHeaderName,
isValidHeaderValue
} = require_util2();
- var util2 = __require("util");
+ var util3 = __require("util");
var { webidl } = require_webidl();
- var assert = __require("assert");
+ var assert2 = __require("assert");
var kHeadersMap = Symbol("headers map");
var kHeadersSortedMap = Symbol("headers map sorted");
function isHTTPWhiteSpaceCharCode(code) {
@@ -11818,7 +11825,7 @@ var require_headers = __commonJS({
headers.push([name, cookies[j]]);
}
} else {
- assert(value2 !== null);
+ assert2(value2 !== null);
headers.push([name, value2]);
}
}
@@ -11911,7 +11918,7 @@ var require_headers = __commonJS({
value: "Headers",
configurable: true
},
- [util2.inspect.custom]: {
+ [util3.inspect.custom]: {
enumerable: false
}
});
@@ -11936,18 +11943,18 @@ var require_headers = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/response.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/response.js
var require_response = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/response.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/response.js"(exports, module) {
"use strict";
var { Headers: Headers2, HeadersList, fill } = require_headers();
var { extractBody, cloneBody, mixinBody } = require_body();
- var util2 = require_util();
- var { kEnumerableProperty } = util2;
+ var util3 = require_util();
+ var { kEnumerableProperty } = util3;
var {
isValidReasonPhrase,
isCancelled,
- isAborted: isAborted2,
+ isAborted: isAborted4,
isBlobLike,
serializeJavascriptValueToJSONString,
isErrorLike,
@@ -11964,9 +11971,9 @@ var require_response = __commonJS({
var { getGlobalOrigin } = require_global();
var { URLSerializer } = require_dataURL();
var { kHeadersList, kConstruct } = require_symbols();
- var assert = __require("assert");
+ var assert2 = __require("assert");
var { types } = __require("util");
- var ReadableStream = globalThis.ReadableStream || __require("stream/web").ReadableStream;
+ var ReadableStream2 = globalThis.ReadableStream || __require("stream/web").ReadableStream;
var textEncoder = new TextEncoder("utf-8");
var Response2 = class _Response {
// Creates network error Response.
@@ -12007,9 +12014,9 @@ var require_response = __commonJS({
let parsedURL;
try {
parsedURL = new URL(url2, getGlobalOrigin());
- } catch (err2) {
+ } catch (err) {
throw Object.assign(new TypeError("Failed to parse URL from " + url2), {
- cause: err2
+ cause: err
});
}
if (!redirectStatusSet.has(status)) {
@@ -12089,7 +12096,7 @@ var require_response = __commonJS({
}
get bodyUsed() {
webidl.brandCheck(this, _Response);
- return !!this[kState].body && util2.isDisturbed(this[kState].body.stream);
+ return !!this[kState].body && util3.isDisturbed(this[kState].body.stream);
}
// Returns a clone of response.
clone() {
@@ -12180,7 +12187,7 @@ var require_response = __commonJS({
return p in state ? state[p] : target[p];
},
set(target, p, value2) {
- assert(!(p in state));
+ assert2(!(p in state));
target[p] = value2;
return true;
}
@@ -12214,12 +12221,12 @@ var require_response = __commonJS({
body: null
});
} else {
- assert(false);
+ assert2(false);
}
}
- function makeAppropriateNetworkError(fetchParams, err2 = null) {
- assert(isCancelled(fetchParams));
- return isAborted2(fetchParams) ? makeNetworkError(Object.assign(new DOMException2("The operation was aborted.", "AbortError"), { cause: err2 })) : makeNetworkError(Object.assign(new DOMException2("Request was cancelled."), { cause: err2 }));
+ function makeAppropriateNetworkError(fetchParams, err = null) {
+ assert2(isCancelled(fetchParams));
+ return isAborted4(fetchParams) ? makeNetworkError(Object.assign(new DOMException2("The operation was aborted.", "AbortError"), { cause: err })) : makeNetworkError(Object.assign(new DOMException2("Request was cancelled."), { cause: err }));
}
function initializeResponse(response, init, body) {
if (init.status !== null && (init.status < 200 || init.status > 599)) {
@@ -12253,7 +12260,7 @@ var require_response = __commonJS({
}
}
webidl.converters.ReadableStream = webidl.interfaceConverter(
- ReadableStream
+ ReadableStream2
);
webidl.converters.FormData = webidl.interfaceConverter(
FormData2
@@ -12271,7 +12278,7 @@ var require_response = __commonJS({
if (types.isArrayBuffer(V) || types.isTypedArray(V) || types.isDataView(V)) {
return webidl.converters.BufferSource(V);
}
- if (util2.isFormDataLike(V)) {
+ if (util3.isFormDataLike(V)) {
return webidl.converters.FormData(V, { strict: false });
}
if (V instanceof URLSearchParams) {
@@ -12280,7 +12287,7 @@ var require_response = __commonJS({
return webidl.converters.DOMString(V);
};
webidl.converters.BodyInit = function(V) {
- if (V instanceof ReadableStream) {
+ if (V instanceof ReadableStream2) {
return webidl.converters.ReadableStream(V);
}
if (V?.[Symbol.asyncIterator]) {
@@ -12315,14 +12322,14 @@ var require_response = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/request.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/request.js
var require_request2 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/request.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/request.js"(exports, module) {
"use strict";
var { extractBody, mixinBody, cloneBody } = require_body();
var { Headers: Headers2, fill: fillHeaders, HeadersList } = require_headers();
- var { FinalizationRegistry } = require_dispatcher_weakref()();
- var util2 = require_util();
+ var { FinalizationRegistry: FinalizationRegistry2 } = require_dispatcher_weakref()();
+ var util3 = require_util();
var {
isValidHTTPToken,
sameOrigin,
@@ -12340,17 +12347,17 @@ var require_request2 = __commonJS({
requestCache,
requestDuplex
} = require_constants2();
- var { kEnumerableProperty } = util2;
+ var { kEnumerableProperty } = util3;
var { kHeaders, kSignal, kState, kGuard, kRealm } = require_symbols2();
var { webidl } = require_webidl();
var { getGlobalOrigin } = require_global();
var { URLSerializer } = require_dataURL();
var { kHeadersList, kConstruct } = require_symbols();
- var assert = __require("assert");
+ var assert2 = __require("assert");
var { getMaxListeners, setMaxListeners: setMaxListeners2, getEventListeners, defaultMaxListeners } = __require("events");
- var TransformStream = globalThis.TransformStream;
+ var TransformStream2 = globalThis.TransformStream;
var kAbortController = Symbol("abortController");
- var requestFinalizer = new FinalizationRegistry(({ signal, abort }) => {
+ var requestFinalizer = new FinalizationRegistry2(({ signal, abort }) => {
signal.removeEventListener("abort", abort);
});
var Request2 = class _Request {
@@ -12371,7 +12378,7 @@ var require_request2 = __commonJS({
policyContainer: makePolicyContainer()
}
};
- let request = null;
+ let request2 = null;
let fallbackMode = null;
const baseUrl = this[kRealm].settingsObject.baseUrl;
let signal = null;
@@ -12379,25 +12386,25 @@ var require_request2 = __commonJS({
let parsedURL;
try {
parsedURL = new URL(input, baseUrl);
- } catch (err2) {
- throw new TypeError("Failed to parse URL from " + input, { cause: err2 });
+ } catch (err) {
+ throw new TypeError("Failed to parse URL from " + input, { cause: err });
}
if (parsedURL.username || parsedURL.password) {
throw new TypeError(
"Request cannot be constructed from a URL that includes credentials: " + input
);
}
- request = makeRequest({ urlList: [parsedURL] });
+ request2 = makeRequest({ urlList: [parsedURL] });
fallbackMode = "cors";
} else {
- assert(input instanceof _Request);
- request = input[kState];
+ assert2(input instanceof _Request);
+ request2 = input[kState];
signal = input[kSignal];
}
const origin = this[kRealm].settingsObject.origin;
let window = "client";
- if (request.window?.constructor?.name === "EnvironmentSettingsObject" && sameOrigin(request.window, origin)) {
- window = request.window;
+ if (request2.window?.constructor?.name === "EnvironmentSettingsObject" && sameOrigin(request2.window, origin)) {
+ window = request2.window;
}
if (init.window != null) {
throw new TypeError(`'window' option '${window}' must be null`);
@@ -12405,82 +12412,82 @@ var require_request2 = __commonJS({
if ("window" in init) {
window = "no-window";
}
- request = makeRequest({
+ request2 = makeRequest({
// URL request’s URL.
// undici implementation note: this is set as the first item in request's urlList in makeRequest
// method request’s method.
- method: request.method,
+ method: request2.method,
// header list A copy of request’s header list.
// undici implementation note: headersList is cloned in makeRequest
- headersList: request.headersList,
+ headersList: request2.headersList,
// unsafe-request flag Set.
- unsafeRequest: request.unsafeRequest,
+ unsafeRequest: request2.unsafeRequest,
// client This’s relevant settings object.
client: this[kRealm].settingsObject,
// window window.
window,
// priority request’s priority.
- priority: request.priority,
+ priority: request2.priority,
// origin request’s origin. The propagation of the origin is only significant for navigation requests
// being handled by a service worker. In this scenario a request can have an origin that is different
// from the current client.
- origin: request.origin,
+ origin: request2.origin,
// referrer request’s referrer.
- referrer: request.referrer,
+ referrer: request2.referrer,
// referrer policy request’s referrer policy.
- referrerPolicy: request.referrerPolicy,
+ referrerPolicy: request2.referrerPolicy,
// mode request’s mode.
- mode: request.mode,
+ mode: request2.mode,
// credentials mode request’s credentials mode.
- credentials: request.credentials,
+ credentials: request2.credentials,
// cache mode request’s cache mode.
- cache: request.cache,
+ cache: request2.cache,
// redirect mode request’s redirect mode.
- redirect: request.redirect,
+ redirect: request2.redirect,
// integrity metadata request’s integrity metadata.
- integrity: request.integrity,
+ integrity: request2.integrity,
// keepalive request’s keepalive.
- keepalive: request.keepalive,
+ keepalive: request2.keepalive,
// reload-navigation flag request’s reload-navigation flag.
- reloadNavigation: request.reloadNavigation,
+ reloadNavigation: request2.reloadNavigation,
// history-navigation flag request’s history-navigation flag.
- historyNavigation: request.historyNavigation,
+ historyNavigation: request2.historyNavigation,
// URL list A clone of request’s URL list.
- urlList: [...request.urlList]
+ urlList: [...request2.urlList]
});
const initHasKey = Object.keys(init).length !== 0;
if (initHasKey) {
- if (request.mode === "navigate") {
- request.mode = "same-origin";
+ if (request2.mode === "navigate") {
+ request2.mode = "same-origin";
}
- request.reloadNavigation = false;
- request.historyNavigation = false;
- request.origin = "client";
- request.referrer = "client";
- request.referrerPolicy = "";
- request.url = request.urlList[request.urlList.length - 1];
- request.urlList = [request.url];
+ request2.reloadNavigation = false;
+ request2.historyNavigation = false;
+ request2.origin = "client";
+ request2.referrer = "client";
+ request2.referrerPolicy = "";
+ request2.url = request2.urlList[request2.urlList.length - 1];
+ request2.urlList = [request2.url];
}
if (init.referrer !== void 0) {
const referrer = init.referrer;
if (referrer === "") {
- request.referrer = "no-referrer";
+ request2.referrer = "no-referrer";
} else {
let parsedReferrer;
try {
parsedReferrer = new URL(referrer, baseUrl);
- } catch (err2) {
- throw new TypeError(`Referrer "${referrer}" is not a valid URL.`, { cause: err2 });
+ } catch (err) {
+ throw new TypeError(`Referrer "${referrer}" is not a valid URL.`, { cause: err });
}
if (parsedReferrer.protocol === "about:" && parsedReferrer.hostname === "client" || origin && !sameOrigin(parsedReferrer, this[kRealm].settingsObject.baseUrl)) {
- request.referrer = "client";
+ request2.referrer = "client";
} else {
- request.referrer = parsedReferrer;
+ request2.referrer = parsedReferrer;
}
}
}
if (init.referrerPolicy !== void 0) {
- request.referrerPolicy = init.referrerPolicy;
+ request2.referrerPolicy = init.referrerPolicy;
}
let mode;
if (init.mode !== void 0) {
@@ -12495,27 +12502,27 @@ var require_request2 = __commonJS({
});
}
if (mode != null) {
- request.mode = mode;
+ request2.mode = mode;
}
if (init.credentials !== void 0) {
- request.credentials = init.credentials;
+ request2.credentials = init.credentials;
}
if (init.cache !== void 0) {
- request.cache = init.cache;
+ request2.cache = init.cache;
}
- if (request.cache === "only-if-cached" && request.mode !== "same-origin") {
+ if (request2.cache === "only-if-cached" && request2.mode !== "same-origin") {
throw new TypeError(
"'only-if-cached' can be set only with 'same-origin' mode"
);
}
if (init.redirect !== void 0) {
- request.redirect = init.redirect;
+ request2.redirect = init.redirect;
}
if (init.integrity != null) {
- request.integrity = String(init.integrity);
+ request2.integrity = String(init.integrity);
}
if (init.keepalive !== void 0) {
- request.keepalive = Boolean(init.keepalive);
+ request2.keepalive = Boolean(init.keepalive);
}
if (init.method !== void 0) {
let method = init.method;
@@ -12526,12 +12533,12 @@ var require_request2 = __commonJS({
throw new TypeError(`'${method}' HTTP method is unsupported.`);
}
method = normalizeMethodRecord[method] ?? normalizeMethod(method);
- request.method = method;
+ request2.method = method;
}
if (init.signal !== void 0) {
signal = init.signal;
}
- this[kState] = request;
+ this[kState] = request2;
const ac = new AbortController();
this[kSignal] = ac.signal;
this[kSignal][kRealm] = this[kRealm];
@@ -12560,18 +12567,18 @@ var require_request2 = __commonJS({
}
} catch {
}
- util2.addAbortListener(signal, abort);
+ util3.addAbortListener(signal, abort);
requestFinalizer.register(ac, { signal, abort });
}
}
this[kHeaders] = new Headers2(kConstruct);
- this[kHeaders][kHeadersList] = request.headersList;
+ this[kHeaders][kHeadersList] = request2.headersList;
this[kHeaders][kGuard] = "request";
this[kHeaders][kRealm] = this[kRealm];
if (mode === "no-cors") {
- if (!corsSafeListedMethodsSet.has(request.method)) {
+ if (!corsSafeListedMethodsSet.has(request2.method)) {
throw new TypeError(
- `'${request.method} is unsupported in no-cors mode.`
+ `'${request2.method} is unsupported in no-cors mode.`
);
}
this[kHeaders][kGuard] = "request-no-cors";
@@ -12590,14 +12597,14 @@ var require_request2 = __commonJS({
}
}
const inputBody = input instanceof _Request ? input[kState].body : null;
- if ((init.body != null || inputBody != null) && (request.method === "GET" || request.method === "HEAD")) {
+ if ((init.body != null || inputBody != null) && (request2.method === "GET" || request2.method === "HEAD")) {
throw new TypeError("Request with GET/HEAD method cannot have body.");
}
let initBody = null;
if (init.body != null) {
const [extractedBody, contentType] = extractBody(
init.body,
- request.keepalive
+ request2.keepalive
);
initBody = extractedBody;
if (contentType && !this[kHeaders][kHeadersList].contains("content-type")) {
@@ -12609,24 +12616,24 @@ var require_request2 = __commonJS({
if (initBody != null && init.duplex == null) {
throw new TypeError("RequestInit: duplex option is required when sending a body.");
}
- if (request.mode !== "same-origin" && request.mode !== "cors") {
+ if (request2.mode !== "same-origin" && request2.mode !== "cors") {
throw new TypeError(
'If request is made from ReadableStream, mode should be "same-origin" or "cors"'
);
}
- request.useCORSPreflightFlag = true;
+ request2.useCORSPreflightFlag = true;
}
let finalBody = inputOrInitBody;
if (initBody == null && inputBody != null) {
- if (util2.isDisturbed(inputBody.stream) || inputBody.stream.locked) {
+ if (util3.isDisturbed(inputBody.stream) || inputBody.stream.locked) {
throw new TypeError(
"Cannot construct a Request with a Request object that has already been used."
);
}
- if (!TransformStream) {
- TransformStream = __require("stream/web").TransformStream;
+ if (!TransformStream2) {
+ TransformStream2 = __require("stream/web").TransformStream;
}
- const identityTransform = new TransformStream();
+ const identityTransform = new TransformStream2();
inputBody.stream.pipeThrough(identityTransform);
finalBody = {
source: inputBody.source,
@@ -12747,7 +12754,7 @@ var require_request2 = __commonJS({
}
get bodyUsed() {
webidl.brandCheck(this, _Request);
- return !!this[kState].body && util2.isDisturbed(this[kState].body.stream);
+ return !!this[kState].body && util3.isDisturbed(this[kState].body.stream);
}
get duplex() {
webidl.brandCheck(this, _Request);
@@ -12771,7 +12778,7 @@ var require_request2 = __commonJS({
if (this.signal.aborted) {
ac.abort(this.signal.reason);
} else {
- util2.addAbortListener(
+ util3.addAbortListener(
this.signal,
() => {
ac.abort(this.signal.reason);
@@ -12784,7 +12791,7 @@ var require_request2 = __commonJS({
};
mixinBody(Request2);
function makeRequest(init) {
- const request = {
+ const request2 = {
method: "GET",
localURLsOnly: false,
unsafeRequest: false,
@@ -12823,13 +12830,13 @@ var require_request2 = __commonJS({
...init,
headersList: init.headersList ? new HeadersList(init.headersList) : new HeadersList()
};
- request.url = request.urlList[0];
- return request;
+ request2.url = request2.urlList[0];
+ return request2;
}
- function cloneRequest(request) {
- const newRequest = makeRequest({ ...request, body: null });
- if (request.body != null) {
- newRequest.body = cloneBody(request.body);
+ function cloneRequest(request2) {
+ const newRequest = makeRequest({ ...request2, body: null });
+ if (request2.body != null) {
+ newRequest.body = cloneBody(request2.body);
}
return newRequest;
}
@@ -12954,9 +12961,9 @@ var require_request2 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/index.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/index.js
var require_fetch = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/index.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/index.js"(exports, module) {
"use strict";
var {
Response: Response2,
@@ -12989,7 +12996,7 @@ var require_fetch = __commonJS({
isBlobLike,
sameOrigin,
isCancelled,
- isAborted: isAborted2,
+ isAborted: isAborted4,
isErrorLike,
fullyReadBody,
readableStreamClose,
@@ -12999,7 +13006,7 @@ var require_fetch = __commonJS({
urlHasHttpsScheme
} = require_util2();
var { kState, kHeaders, kGuard, kRealm } = require_symbols2();
- var assert = __require("assert");
+ var assert2 = __require("assert");
var { safelyExtractBody } = require_body();
var {
redirectStatusSet,
@@ -13014,13 +13021,13 @@ var require_fetch = __commonJS({
var { Readable, pipeline: pipeline2 } = __require("stream");
var { addAbortListener, isErrored, isReadable, nodeMajor, nodeMinor } = require_util();
var { dataURLProcessor, serializeAMimeType } = require_dataURL();
- var { TransformStream } = __require("stream/web");
+ var { TransformStream: TransformStream2 } = __require("stream/web");
var { getGlobalDispatcher } = require_global2();
var { webidl } = require_webidl();
var { STATUS_CODES } = __require("http");
var GET_OR_HEAD = ["GET", "HEAD"];
var resolveObjectURL;
- var ReadableStream = globalThis.ReadableStream;
+ var ReadableStream2 = globalThis.ReadableStream;
var Fetch = class extends EE {
constructor(dispatcher) {
super();
@@ -13039,20 +13046,20 @@ var require_fetch = __commonJS({
this.emit("terminated", reason);
}
// https://fetch.spec.whatwg.org/#fetch-controller-abort
- abort(error2) {
+ abort(error41) {
if (this.state !== "ongoing") {
return;
}
this.state = "aborted";
- if (!error2) {
- error2 = new DOMException2("The operation was aborted.", "AbortError");
+ if (!error41) {
+ error41 = new DOMException2("The operation was aborted.", "AbortError");
}
- this.serializedAbortReason = error2;
- this.connection?.destroy(error2);
- this.emit("terminated", error2);
+ this.serializedAbortReason = error41;
+ this.connection?.destroy(error41);
+ this.emit("terminated", error41);
}
};
- function fetch2(input, init = {}) {
+ function fetch3(input, init = {}) {
webidl.argumentLengthCheck(arguments, 1, { header: "globalThis.fetch" });
const p = createDeferredPromise();
let requestObject;
@@ -13062,14 +13069,14 @@ var require_fetch = __commonJS({
p.reject(e);
return p.promise;
}
- const request = requestObject[kState];
+ const request2 = requestObject[kState];
if (requestObject.signal.aborted) {
- abortFetch(p, request, null, requestObject.signal.reason);
+ abortFetch(p, request2, null, requestObject.signal.reason);
return p.promise;
}
- const globalObject = request.client.globalObject;
+ const globalObject = request2.client.globalObject;
if (globalObject?.constructor?.name === "ServiceWorkerGlobalScope") {
- request.serviceWorkers = "none";
+ request2.serviceWorkers = "none";
}
let responseObject = null;
const relevantRealm = null;
@@ -13079,9 +13086,9 @@ var require_fetch = __commonJS({
requestObject.signal,
() => {
locallyAborted = true;
- assert(controller != null);
+ assert2(controller != null);
controller.abort(requestObject.signal.reason);
- abortFetch(p, request, responseObject, requestObject.signal.reason);
+ abortFetch(p, request2, responseObject, requestObject.signal.reason);
}
);
const handleFetchDone = (response) => finalizeAndReportTiming(response, "fetch");
@@ -13090,7 +13097,7 @@ var require_fetch = __commonJS({
return Promise.resolve();
}
if (response.aborted) {
- abortFetch(p, request, responseObject, controller.serializedAbortReason);
+ abortFetch(p, request2, responseObject, controller.serializedAbortReason);
return Promise.resolve();
}
if (response.type === "error") {
@@ -13108,7 +13115,7 @@ var require_fetch = __commonJS({
p.resolve(responseObject);
};
controller = fetching({
- request,
+ request: request2,
processResponseEndOfBody: handleFetchDone,
processResponse,
dispatcher: init.dispatcher ?? getGlobalDispatcher()
@@ -13153,17 +13160,17 @@ var require_fetch = __commonJS({
performance.markResourceTiming(timingInfo, originalURL.href, initiatorType, globalThis2, cacheState);
}
}
- function abortFetch(p, request, responseObject, error2) {
- if (!error2) {
- error2 = new DOMException2("The operation was aborted.", "AbortError");
+ function abortFetch(p, request2, responseObject, error41) {
+ if (!error41) {
+ error41 = new DOMException2("The operation was aborted.", "AbortError");
}
- p.reject(error2);
- if (request.body != null && isReadable(request.body?.stream)) {
- request.body.stream.cancel(error2).catch((err2) => {
- if (err2.code === "ERR_INVALID_STATE") {
+ p.reject(error41);
+ if (request2.body != null && isReadable(request2.body?.stream)) {
+ request2.body.stream.cancel(error41).catch((err) => {
+ if (err.code === "ERR_INVALID_STATE") {
return;
}
- throw err2;
+ throw err;
});
}
if (responseObject == null) {
@@ -13171,16 +13178,16 @@ var require_fetch = __commonJS({
}
const response = responseObject[kState];
if (response.body != null && isReadable(response.body?.stream)) {
- response.body.stream.cancel(error2).catch((err2) => {
- if (err2.code === "ERR_INVALID_STATE") {
+ response.body.stream.cancel(error41).catch((err) => {
+ if (err.code === "ERR_INVALID_STATE") {
return;
}
- throw err2;
+ throw err;
});
}
}
function fetching({
- request,
+ request: request2,
processRequestBodyChunkLength,
processRequestEndOfBody,
processResponse,
@@ -13192,9 +13199,9 @@ var require_fetch = __commonJS({
}) {
let taskDestination = null;
let crossOriginIsolatedCapability = false;
- if (request.client != null) {
- taskDestination = request.client.globalObject;
- crossOriginIsolatedCapability = request.client.crossOriginIsolatedCapability;
+ if (request2.client != null) {
+ taskDestination = request2.client.globalObject;
+ crossOriginIsolatedCapability = request2.client.crossOriginIsolatedCapability;
}
const currenTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability);
const timingInfo = createOpaqueTimingInfo({
@@ -13202,7 +13209,7 @@ var require_fetch = __commonJS({
});
const fetchParams = {
controller: new Fetch(dispatcher),
- request,
+ request: request2,
timingInfo,
processRequestBodyChunkLength,
processRequestEndOfBody,
@@ -13212,83 +13219,83 @@ var require_fetch = __commonJS({
taskDestination,
crossOriginIsolatedCapability
};
- assert(!request.body || request.body.stream);
- if (request.window === "client") {
- request.window = request.client?.globalObject?.constructor?.name === "Window" ? request.client : "no-window";
+ assert2(!request2.body || request2.body.stream);
+ if (request2.window === "client") {
+ request2.window = request2.client?.globalObject?.constructor?.name === "Window" ? request2.client : "no-window";
}
- if (request.origin === "client") {
- request.origin = request.client?.origin;
+ if (request2.origin === "client") {
+ request2.origin = request2.client?.origin;
}
- if (request.policyContainer === "client") {
- if (request.client != null) {
- request.policyContainer = clonePolicyContainer(
- request.client.policyContainer
+ if (request2.policyContainer === "client") {
+ if (request2.client != null) {
+ request2.policyContainer = clonePolicyContainer(
+ request2.client.policyContainer
);
} else {
- request.policyContainer = makePolicyContainer();
+ request2.policyContainer = makePolicyContainer();
}
}
- if (!request.headersList.contains("accept")) {
+ if (!request2.headersList.contains("accept")) {
const value2 = "*/*";
- request.headersList.append("accept", value2);
+ request2.headersList.append("accept", value2);
}
- if (!request.headersList.contains("accept-language")) {
- request.headersList.append("accept-language", "*");
+ if (!request2.headersList.contains("accept-language")) {
+ request2.headersList.append("accept-language", "*");
}
- if (request.priority === null) {
+ if (request2.priority === null) {
}
- if (subresourceSet.has(request.destination)) {
+ if (subresourceSet.has(request2.destination)) {
}
- mainFetch(fetchParams).catch((err2) => {
- fetchParams.controller.terminate(err2);
+ mainFetch(fetchParams).catch((err) => {
+ fetchParams.controller.terminate(err);
});
return fetchParams.controller;
}
async function mainFetch(fetchParams, recursive = false) {
- const request = fetchParams.request;
+ const request2 = fetchParams.request;
let response = null;
- if (request.localURLsOnly && !urlIsLocal(requestCurrentURL(request))) {
+ if (request2.localURLsOnly && !urlIsLocal(requestCurrentURL(request2))) {
response = makeNetworkError("local URLs only");
}
- tryUpgradeRequestToAPotentiallyTrustworthyURL(request);
- if (requestBadPort(request) === "blocked") {
+ tryUpgradeRequestToAPotentiallyTrustworthyURL(request2);
+ if (requestBadPort(request2) === "blocked") {
response = makeNetworkError("bad port");
}
- if (request.referrerPolicy === "") {
- request.referrerPolicy = request.policyContainer.referrerPolicy;
+ if (request2.referrerPolicy === "") {
+ request2.referrerPolicy = request2.policyContainer.referrerPolicy;
}
- if (request.referrer !== "no-referrer") {
- request.referrer = determineRequestsReferrer(request);
+ if (request2.referrer !== "no-referrer") {
+ request2.referrer = determineRequestsReferrer(request2);
}
if (response === null) {
response = await (async () => {
- const currentURL = requestCurrentURL(request);
+ const currentURL = requestCurrentURL(request2);
if (
// - request’s current URL’s origin is same origin with request’s origin,
// and request’s response tainting is "basic"
- sameOrigin(currentURL, request.url) && request.responseTainting === "basic" || // request’s current URL’s scheme is "data"
+ sameOrigin(currentURL, request2.url) && request2.responseTainting === "basic" || // request’s current URL’s scheme is "data"
currentURL.protocol === "data:" || // - request’s mode is "navigate" or "websocket"
- (request.mode === "navigate" || request.mode === "websocket")
+ (request2.mode === "navigate" || request2.mode === "websocket")
) {
- request.responseTainting = "basic";
+ request2.responseTainting = "basic";
return await schemeFetch(fetchParams);
}
- if (request.mode === "same-origin") {
+ if (request2.mode === "same-origin") {
return makeNetworkError('request mode cannot be "same-origin"');
}
- if (request.mode === "no-cors") {
- if (request.redirect !== "follow") {
+ if (request2.mode === "no-cors") {
+ if (request2.redirect !== "follow") {
return makeNetworkError(
'redirect mode cannot be "follow" for "no-cors" request'
);
}
- request.responseTainting = "opaque";
+ request2.responseTainting = "opaque";
return await schemeFetch(fetchParams);
}
- if (!urlIsHttpHttpsScheme(requestCurrentURL(request))) {
+ if (!urlIsHttpHttpsScheme(requestCurrentURL(request2))) {
return makeNetworkError("URL scheme must be a HTTP(S) scheme");
}
- request.responseTainting = "cors";
+ request2.responseTainting = "cors";
return await httpFetch(fetchParams);
})();
}
@@ -13296,40 +13303,40 @@ var require_fetch = __commonJS({
return response;
}
if (response.status !== 0 && !response.internalResponse) {
- if (request.responseTainting === "cors") {
+ if (request2.responseTainting === "cors") {
}
- if (request.responseTainting === "basic") {
+ if (request2.responseTainting === "basic") {
response = filterResponse(response, "basic");
- } else if (request.responseTainting === "cors") {
+ } else if (request2.responseTainting === "cors") {
response = filterResponse(response, "cors");
- } else if (request.responseTainting === "opaque") {
+ } else if (request2.responseTainting === "opaque") {
response = filterResponse(response, "opaque");
} else {
- assert(false);
+ assert2(false);
}
}
let internalResponse = response.status === 0 ? response : response.internalResponse;
if (internalResponse.urlList.length === 0) {
- internalResponse.urlList.push(...request.urlList);
+ internalResponse.urlList.push(...request2.urlList);
}
- if (!request.timingAllowFailed) {
+ if (!request2.timingAllowFailed) {
response.timingAllowPassed = true;
}
- if (response.type === "opaque" && internalResponse.status === 206 && internalResponse.rangeRequested && !request.headers.contains("range")) {
+ if (response.type === "opaque" && internalResponse.status === 206 && internalResponse.rangeRequested && !request2.headers.contains("range")) {
response = internalResponse = makeNetworkError();
}
- if (response.status !== 0 && (request.method === "HEAD" || request.method === "CONNECT" || nullBodyStatus.includes(internalResponse.status))) {
+ if (response.status !== 0 && (request2.method === "HEAD" || request2.method === "CONNECT" || nullBodyStatus.includes(internalResponse.status))) {
internalResponse.body = null;
fetchParams.controller.dump = true;
}
- if (request.integrity) {
+ if (request2.integrity) {
const processBodyError = (reason) => fetchFinale(fetchParams, makeNetworkError(reason));
- if (request.responseTainting === "opaque" || response.body == null) {
+ if (request2.responseTainting === "opaque" || response.body == null) {
processBodyError(response.error);
return;
}
const processBody = (bytes) => {
- if (!bytesMatch(bytes, request.integrity)) {
+ if (!bytesMatch(bytes, request2.integrity)) {
processBodyError("integrity mismatch");
return;
}
@@ -13345,8 +13352,8 @@ var require_fetch = __commonJS({
if (isCancelled(fetchParams) && fetchParams.request.redirectCount === 0) {
return Promise.resolve(makeAppropriateNetworkError(fetchParams));
}
- const { request } = fetchParams;
- const { protocol: scheme } = requestCurrentURL(request);
+ const { request: request2 } = fetchParams;
+ const { protocol: scheme } = requestCurrentURL(request2);
switch (scheme) {
case "about:": {
return Promise.resolve(makeNetworkError("about scheme is not supported"));
@@ -13355,12 +13362,12 @@ var require_fetch = __commonJS({
if (!resolveObjectURL) {
resolveObjectURL = __require("buffer").resolveObjectURL;
}
- const blobURLEntry = requestCurrentURL(request);
+ const blobURLEntry = requestCurrentURL(request2);
if (blobURLEntry.search.length !== 0) {
return Promise.resolve(makeNetworkError("NetworkError when attempting to fetch resource."));
}
const blobURLEntryObject = resolveObjectURL(blobURLEntry.toString());
- if (request.method !== "GET" || !isBlobLike(blobURLEntryObject)) {
+ if (request2.method !== "GET" || !isBlobLike(blobURLEntryObject)) {
return Promise.resolve(makeNetworkError("invalid method"));
}
const bodyWithType = safelyExtractBody(blobURLEntryObject);
@@ -13378,7 +13385,7 @@ var require_fetch = __commonJS({
return Promise.resolve(response);
}
case "data:": {
- const currentURL = requestCurrentURL(request);
+ const currentURL = requestCurrentURL(request2);
const dataURLStruct = dataURLProcessor(currentURL);
if (dataURLStruct === "failure") {
return Promise.resolve(makeNetworkError("failed to fetch the data URL"));
@@ -13397,7 +13404,7 @@ var require_fetch = __commonJS({
}
case "http:":
case "https:": {
- return httpFetch(fetchParams).catch((err2) => makeNetworkError(err2));
+ return httpFetch(fetchParams).catch((err) => makeNetworkError(err));
}
default: {
return Promise.resolve(makeNetworkError("unknown scheme"));
@@ -13432,7 +13439,7 @@ var require_fetch = __commonJS({
const identityTransformAlgorithm = (chunk, controller) => {
controller.enqueue(chunk);
};
- const transformStream = new TransformStream({
+ const transformStream = new TransformStream2({
start() {
},
transform: identityTransformAlgorithm,
@@ -13460,124 +13467,124 @@ var require_fetch = __commonJS({
}
}
async function httpFetch(fetchParams) {
- const request = fetchParams.request;
+ const request2 = fetchParams.request;
let response = null;
let actualResponse = null;
const timingInfo = fetchParams.timingInfo;
- if (request.serviceWorkers === "all") {
+ if (request2.serviceWorkers === "all") {
}
if (response === null) {
- if (request.redirect === "follow") {
- request.serviceWorkers = "none";
+ if (request2.redirect === "follow") {
+ request2.serviceWorkers = "none";
}
actualResponse = response = await httpNetworkOrCacheFetch(fetchParams);
- if (request.responseTainting === "cors" && corsCheck(request, response) === "failure") {
+ if (request2.responseTainting === "cors" && corsCheck(request2, response) === "failure") {
return makeNetworkError("cors failure");
}
- if (TAOCheck(request, response) === "failure") {
- request.timingAllowFailed = true;
+ if (TAOCheck(request2, response) === "failure") {
+ request2.timingAllowFailed = true;
}
}
- if ((request.responseTainting === "opaque" || response.type === "opaque") && crossOriginResourcePolicyCheck(
- request.origin,
- request.client,
- request.destination,
+ if ((request2.responseTainting === "opaque" || response.type === "opaque") && crossOriginResourcePolicyCheck(
+ request2.origin,
+ request2.client,
+ request2.destination,
actualResponse
) === "blocked") {
return makeNetworkError("blocked");
}
if (redirectStatusSet.has(actualResponse.status)) {
- if (request.redirect !== "manual") {
+ if (request2.redirect !== "manual") {
fetchParams.controller.connection.destroy();
}
- if (request.redirect === "error") {
+ if (request2.redirect === "error") {
response = makeNetworkError("unexpected redirect");
- } else if (request.redirect === "manual") {
+ } else if (request2.redirect === "manual") {
response = actualResponse;
- } else if (request.redirect === "follow") {
+ } else if (request2.redirect === "follow") {
response = await httpRedirectFetch(fetchParams, response);
} else {
- assert(false);
+ assert2(false);
}
}
response.timingInfo = timingInfo;
return response;
}
function httpRedirectFetch(fetchParams, response) {
- const request = fetchParams.request;
+ const request2 = fetchParams.request;
const actualResponse = response.internalResponse ? response.internalResponse : response;
let locationURL;
try {
locationURL = responseLocationURL(
actualResponse,
- requestCurrentURL(request).hash
+ requestCurrentURL(request2).hash
);
if (locationURL == null) {
return response;
}
- } catch (err2) {
- return Promise.resolve(makeNetworkError(err2));
+ } catch (err) {
+ return Promise.resolve(makeNetworkError(err));
}
if (!urlIsHttpHttpsScheme(locationURL)) {
return Promise.resolve(makeNetworkError("URL scheme must be a HTTP(S) scheme"));
}
- if (request.redirectCount === 20) {
+ if (request2.redirectCount === 20) {
return Promise.resolve(makeNetworkError("redirect count exceeded"));
}
- request.redirectCount += 1;
- if (request.mode === "cors" && (locationURL.username || locationURL.password) && !sameOrigin(request, locationURL)) {
+ request2.redirectCount += 1;
+ if (request2.mode === "cors" && (locationURL.username || locationURL.password) && !sameOrigin(request2, locationURL)) {
return Promise.resolve(makeNetworkError('cross origin not allowed for request mode "cors"'));
}
- if (request.responseTainting === "cors" && (locationURL.username || locationURL.password)) {
+ if (request2.responseTainting === "cors" && (locationURL.username || locationURL.password)) {
return Promise.resolve(makeNetworkError(
'URL cannot contain credentials for request mode "cors"'
));
}
- if (actualResponse.status !== 303 && request.body != null && request.body.source == null) {
+ if (actualResponse.status !== 303 && request2.body != null && request2.body.source == null) {
return Promise.resolve(makeNetworkError());
}
- if ([301, 302].includes(actualResponse.status) && request.method === "POST" || actualResponse.status === 303 && !GET_OR_HEAD.includes(request.method)) {
- request.method = "GET";
- request.body = null;
+ if ([301, 302].includes(actualResponse.status) && request2.method === "POST" || actualResponse.status === 303 && !GET_OR_HEAD.includes(request2.method)) {
+ request2.method = "GET";
+ request2.body = null;
for (const headerName of requestBodyHeader) {
- request.headersList.delete(headerName);
+ request2.headersList.delete(headerName);
}
}
- if (!sameOrigin(requestCurrentURL(request), locationURL)) {
- request.headersList.delete("authorization");
- request.headersList.delete("proxy-authorization", true);
- request.headersList.delete("cookie");
- request.headersList.delete("host");
+ if (!sameOrigin(requestCurrentURL(request2), locationURL)) {
+ request2.headersList.delete("authorization");
+ request2.headersList.delete("proxy-authorization", true);
+ request2.headersList.delete("cookie");
+ request2.headersList.delete("host");
}
- if (request.body != null) {
- assert(request.body.source != null);
- request.body = safelyExtractBody(request.body.source)[0];
+ if (request2.body != null) {
+ assert2(request2.body.source != null);
+ request2.body = safelyExtractBody(request2.body.source)[0];
}
const timingInfo = fetchParams.timingInfo;
timingInfo.redirectEndTime = timingInfo.postRedirectStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability);
if (timingInfo.redirectStartTime === 0) {
timingInfo.redirectStartTime = timingInfo.startTime;
}
- request.urlList.push(locationURL);
- setRequestReferrerPolicyOnRedirect(request, actualResponse);
+ request2.urlList.push(locationURL);
+ setRequestReferrerPolicyOnRedirect(request2, actualResponse);
return mainFetch(fetchParams, true);
}
async function httpNetworkOrCacheFetch(fetchParams, isAuthenticationFetch = false, isNewConnectionFetch = false) {
- const request = fetchParams.request;
+ const request2 = fetchParams.request;
let httpFetchParams = null;
let httpRequest = null;
let response = null;
const httpCache = null;
const revalidatingFlag = false;
- if (request.window === "no-window" && request.redirect === "error") {
+ if (request2.window === "no-window" && request2.redirect === "error") {
httpFetchParams = fetchParams;
- httpRequest = request;
+ httpRequest = request2;
} else {
- httpRequest = makeRequest(request);
+ httpRequest = makeRequest(request2);
httpFetchParams = { ...fetchParams };
httpFetchParams.request = httpRequest;
}
- const includeCredentials = request.credentials === "include" || request.credentials === "same-origin" && request.responseTainting === "basic";
+ const includeCredentials = request2.credentials === "include" || request2.credentials === "same-origin" && request2.responseTainting === "basic";
const contentLength = httpRequest.body ? httpRequest.body.length : null;
let contentLengthHeaderValue = null;
if (httpRequest.body == null && ["POST", "PUT"].includes(httpRequest.method)) {
@@ -13654,7 +13661,7 @@ var require_fetch = __commonJS({
}
response.requestIncludesCredentials = includeCredentials;
if (response.status === 407) {
- if (request.window === "no-window") {
+ if (request2.window === "no-window") {
return makeNetworkError();
}
if (isCancelled(fetchParams)) {
@@ -13666,7 +13673,7 @@ var require_fetch = __commonJS({
// response’s status is 421
response.status === 421 && // isNewConnectionFetch is false
!isNewConnectionFetch && // request’s body is null, or request’s body is non-null and request’s body’s source is non-null
- (request.body == null || request.body.source != null)
+ (request2.body == null || request2.body.source != null)
) {
if (isCancelled(fetchParams)) {
return makeAppropriateNetworkError(fetchParams);
@@ -13683,32 +13690,32 @@ var require_fetch = __commonJS({
return response;
}
async function httpNetworkFetch(fetchParams, includeCredentials = false, forceNewConnection = false) {
- assert(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed);
+ assert2(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed);
fetchParams.controller.connection = {
abort: null,
destroyed: false,
- destroy(err2) {
+ destroy(err) {
if (!this.destroyed) {
this.destroyed = true;
- this.abort?.(err2 ?? new DOMException2("The operation was aborted.", "AbortError"));
+ this.abort?.(err ?? new DOMException2("The operation was aborted.", "AbortError"));
}
}
};
- const request = fetchParams.request;
+ const request2 = fetchParams.request;
let response = null;
const timingInfo = fetchParams.timingInfo;
const httpCache = null;
if (httpCache == null) {
- request.cache = "no-store";
+ request2.cache = "no-store";
}
const newConnection = forceNewConnection ? "yes" : "no";
- if (request.mode === "websocket") {
+ if (request2.mode === "websocket") {
} else {
}
let requestBody = null;
- if (request.body == null && fetchParams.processRequestEndOfBody) {
+ if (request2.body == null && fetchParams.processRequestEndOfBody) {
queueMicrotask(() => fetchParams.processRequestEndOfBody());
- } else if (request.body != null) {
+ } else if (request2.body != null) {
const processBodyChunk = async function* (bytes) {
if (isCancelled(fetchParams)) {
return;
@@ -13736,12 +13743,12 @@ var require_fetch = __commonJS({
};
requestBody = (async function* () {
try {
- for await (const bytes of request.body.stream) {
+ for await (const bytes of request2.body.stream) {
yield* processBodyChunk(bytes);
}
processEndOfBody();
- } catch (err2) {
- processBodyError(err2);
+ } catch (err) {
+ processBodyError(err);
}
})();
}
@@ -13750,16 +13757,16 @@ var require_fetch = __commonJS({
if (socket) {
response = makeResponse({ status, statusText, headersList, socket });
} else {
- const iterator = body[Symbol.asyncIterator]();
- fetchParams.controller.next = () => iterator.next();
+ const iterator2 = body[Symbol.asyncIterator]();
+ fetchParams.controller.next = () => iterator2.next();
response = makeResponse({ status, statusText, headersList });
}
- } catch (err2) {
- if (err2.name === "AbortError") {
+ } catch (err) {
+ if (err.name === "AbortError") {
fetchParams.controller.connection.destroy();
- return makeAppropriateNetworkError(fetchParams, err2);
+ return makeAppropriateNetworkError(fetchParams, err);
}
- return makeNetworkError(err2);
+ return makeNetworkError(err);
}
const pullAlgorithm = () => {
fetchParams.controller.resume();
@@ -13767,10 +13774,10 @@ var require_fetch = __commonJS({
const cancelAlgorithm = (reason) => {
fetchParams.controller.abort(reason);
};
- if (!ReadableStream) {
- ReadableStream = __require("stream/web").ReadableStream;
+ if (!ReadableStream2) {
+ ReadableStream2 = __require("stream/web").ReadableStream;
}
- const stream = new ReadableStream(
+ const stream = new ReadableStream2(
{
async start(controller) {
fetchParams.controller.controller = controller;
@@ -13797,15 +13804,15 @@ var require_fetch = __commonJS({
let isFailure;
try {
const { done, value: value2 } = await fetchParams.controller.next();
- if (isAborted2(fetchParams)) {
+ if (isAborted4(fetchParams)) {
break;
}
bytes = done ? void 0 : value2;
- } catch (err2) {
+ } catch (err) {
if (fetchParams.controller.ended && !timingInfo.encodedBodySize) {
bytes = void 0;
} else {
- bytes = err2;
+ bytes = err;
isFailure = true;
}
}
@@ -13830,7 +13837,7 @@ var require_fetch = __commonJS({
}
};
function onAborted(reason) {
- if (isAborted2(fetchParams)) {
+ if (isAborted4(fetchParams)) {
response.aborted = true;
if (isReadable(stream)) {
fetchParams.controller.controller.error(
@@ -13848,17 +13855,17 @@ var require_fetch = __commonJS({
}
return response;
async function dispatch({ body }) {
- const url2 = requestCurrentURL(request);
+ const url2 = requestCurrentURL(request2);
const agent2 = fetchParams.controller.dispatcher;
return new Promise((resolve, reject) => agent2.dispatch(
{
path: url2.pathname + url2.search,
origin: url2.origin,
- method: request.method,
- body: fetchParams.controller.dispatcher.isMockActive ? request.body && (request.body.source || request.body.stream) : body,
- headers: request.headersList.entries,
+ method: request2.method,
+ body: fetchParams.controller.dispatcher.isMockActive ? request2.body && (request2.body.source || request2.body.stream) : body,
+ headers: request2.headersList.entries,
maxRedirections: 0,
- upgrade: request.mode === "websocket" ? "websocket" : void 0
+ upgrade: request2.mode === "websocket" ? "websocket" : void 0
},
{
body: null,
@@ -13904,8 +13911,8 @@ var require_fetch = __commonJS({
}
this.body = new Readable({ read: resume });
const decoders = [];
- const willFollow = request.redirect === "follow" && location && redirectStatusSet.has(status);
- if (request.method !== "HEAD" && request.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) {
+ const willFollow = request2.redirect === "follow" && location && redirectStatusSet.has(status);
+ if (request2.method !== "HEAD" && request2.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) {
for (const coding of codings) {
if (coding === "x-gzip" || coding === "gzip") {
decoders.push(zlib.createGunzip({
@@ -13951,13 +13958,13 @@ var require_fetch = __commonJS({
fetchParams.controller.ended = true;
this.body.push(null);
},
- onError(error2) {
+ onError(error41) {
if (this.abort) {
fetchParams.controller.off("terminated", this.abort);
}
- this.body?.destroy(error2);
- fetchParams.controller.terminate(error2);
- reject(error2);
+ this.body?.destroy(error41);
+ fetchParams.controller.terminate(error41);
+ reject(error41);
},
onUpgrade(status, headersList, socket) {
if (status !== 101) {
@@ -13982,7 +13989,7 @@ var require_fetch = __commonJS({
}
}
module.exports = {
- fetch: fetch2,
+ fetch: fetch3,
Fetch,
fetching,
finalizeAndReportTiming
@@ -13990,9 +13997,9 @@ var require_fetch = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/symbols.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/symbols.js
var require_symbols3 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/symbols.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/symbols.js"(exports, module) {
"use strict";
module.exports = {
kState: Symbol("FileReader state"),
@@ -14005,9 +14012,9 @@ var require_symbols3 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/progressevent.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/progressevent.js
var require_progressevent = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/progressevent.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/progressevent.js"(exports, module) {
"use strict";
var { webidl } = require_webidl();
var kState = Symbol("ProgressEvent state");
@@ -14073,9 +14080,9 @@ var require_progressevent = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/encoding.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/encoding.js
var require_encoding = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/encoding.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/encoding.js"(exports, module) {
"use strict";
function getEncoding(label) {
if (!label) {
@@ -14359,9 +14366,9 @@ var require_encoding = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/util.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/util.js
var require_util4 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/util.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/util.js"(exports, module) {
"use strict";
var {
kState,
@@ -14376,7 +14383,7 @@ var require_util4 = __commonJS({
var { serializeAMimeType, parseMIMEType } = require_dataURL();
var { types } = __require("util");
var { StringDecoder } = __require("string_decoder");
- var { btoa } = __require("buffer");
+ var { btoa: btoa2 } = __require("buffer");
var staticPropertyDescriptors = {
enumerable: true,
writable: false,
@@ -14423,8 +14430,8 @@ var require_util4 = __commonJS({
}
fr[kResult] = result;
fireAProgressEvent("load", fr);
- } catch (error2) {
- fr[kError] = error2;
+ } catch (error41) {
+ fr[kError] = error41;
fireAProgressEvent("error", fr);
}
if (fr[kState] !== "loading") {
@@ -14433,13 +14440,13 @@ var require_util4 = __commonJS({
});
break;
}
- } catch (error2) {
+ } catch (error41) {
if (fr[kAborted]) {
return;
}
queueMicrotask(() => {
fr[kState] = "done";
- fr[kError] = error2;
+ fr[kError] = error41;
fireAProgressEvent("error", fr);
if (fr[kState] !== "loading") {
fireAProgressEvent("loadend", fr);
@@ -14468,9 +14475,9 @@ var require_util4 = __commonJS({
dataURL += ";base64,";
const decoder = new StringDecoder("latin1");
for (const chunk of bytes) {
- dataURL += btoa(decoder.write(chunk));
+ dataURL += btoa2(decoder.write(chunk));
}
- dataURL += btoa(decoder.end());
+ dataURL += btoa2(decoder.end());
return dataURL;
}
case "Text": {
@@ -14545,9 +14552,9 @@ var require_util4 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/filereader.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/filereader.js
var require_filereader = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/filereader.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/filereader.js"(exports, module) {
"use strict";
var {
staticPropertyDescriptors,
@@ -14804,9 +14811,9 @@ var require_filereader = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/symbols.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/symbols.js
var require_symbols4 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/symbols.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/symbols.js"(exports, module) {
"use strict";
module.exports = {
kConstruct: require_symbols().kConstruct
@@ -14814,11 +14821,11 @@ var require_symbols4 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/util.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/util.js
var require_util5 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/util.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/util.js"(exports, module) {
"use strict";
- var assert = __require("assert");
+ var assert2 = __require("assert");
var { URLSerializer } = require_dataURL();
var { isValidHeaderName } = require_util2();
function urlEquals(A, B, excludeFragment = false) {
@@ -14827,7 +14834,7 @@ var require_util5 = __commonJS({
return serializedA === serializedB;
}
function fieldValues(header) {
- assert(header !== null);
+ assert2(header !== null);
const values = [];
for (let value2 of header.split(",")) {
value2 = value2.trim();
@@ -14847,9 +14854,9 @@ var require_util5 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cache.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cache.js
var require_cache = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cache.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cache.js"(exports, module) {
"use strict";
var { kConstruct } = require_symbols4();
var { urlEquals, fieldValues: getFieldValues } = require_util5();
@@ -14861,7 +14868,7 @@ var require_cache = __commonJS({
var { kState, kHeaders, kGuard, kRealm } = require_symbols2();
var { fetching } = require_fetch();
var { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = require_util2();
- var assert = __require("assert");
+ var assert2 = __require("assert");
var { getGlobalDispatcher } = require_global2();
var Cache = class _Cache {
/**
@@ -14875,34 +14882,34 @@ var require_cache = __commonJS({
}
this.#relevantRequestResponseList = arguments[1];
}
- async match(request, options = {}) {
+ async match(request2, options = {}) {
webidl.brandCheck(this, _Cache);
webidl.argumentLengthCheck(arguments, 1, { header: "Cache.match" });
- request = webidl.converters.RequestInfo(request);
+ request2 = webidl.converters.RequestInfo(request2);
options = webidl.converters.CacheQueryOptions(options);
- const p = await this.matchAll(request, options);
+ const p = await this.matchAll(request2, options);
if (p.length === 0) {
return;
}
return p[0];
}
- async matchAll(request = void 0, options = {}) {
+ async matchAll(request2 = void 0, options = {}) {
webidl.brandCheck(this, _Cache);
- if (request !== void 0) request = webidl.converters.RequestInfo(request);
+ if (request2 !== void 0) request2 = webidl.converters.RequestInfo(request2);
options = webidl.converters.CacheQueryOptions(options);
let r = null;
- if (request !== void 0) {
- if (request instanceof Request2) {
- r = request[kState];
+ if (request2 !== void 0) {
+ if (request2 instanceof Request2) {
+ r = request2[kState];
if (r.method !== "GET" && !options.ignoreMethod) {
return [];
}
- } else if (typeof request === "string") {
- r = new Request2(request)[kState];
+ } else if (typeof request2 === "string") {
+ r = new Request2(request2)[kState];
}
}
const responses = [];
- if (request === void 0) {
+ if (request2 === void 0) {
for (const requestResponse of this.#relevantRequestResponseList) {
responses.push(requestResponse[1]);
}
@@ -14924,11 +14931,11 @@ var require_cache = __commonJS({
}
return Object.freeze(responseList);
}
- async add(request) {
+ async add(request2) {
webidl.brandCheck(this, _Cache);
webidl.argumentLengthCheck(arguments, 1, { header: "Cache.add" });
- request = webidl.converters.RequestInfo(request);
- const requests = [request];
+ request2 = webidl.converters.RequestInfo(request2);
+ const requests = [request2];
const responseArrayPromise = this.addAll(requests);
return await responseArrayPromise;
}
@@ -14938,11 +14945,11 @@ var require_cache = __commonJS({
requests = webidl.converters["sequence"](requests);
const responsePromises = [];
const requestList = [];
- for (const request of requests) {
- if (typeof request === "string") {
+ for (const request2 of requests) {
+ if (typeof request2 === "string") {
continue;
}
- const r = request[kState];
+ const r = request2[kState];
if (!urlIsHttpHttpsScheme(r.url) || r.method !== "GET") {
throw webidl.errors.exception({
header: "Cache.addAll",
@@ -14951,8 +14958,8 @@ var require_cache = __commonJS({
}
}
const fetchControllers = [];
- for (const request of requests) {
- const r = new Request2(request)[kState];
+ for (const request2 of requests) {
+ const r = new Request2(request2)[kState];
if (!urlIsHttpHttpsScheme(r.url)) {
throw webidl.errors.exception({
header: "Cache.addAll",
@@ -15030,16 +15037,16 @@ var require_cache = __commonJS({
});
return cacheJobPromise.promise;
}
- async put(request, response) {
+ async put(request2, response) {
webidl.brandCheck(this, _Cache);
webidl.argumentLengthCheck(arguments, 2, { header: "Cache.put" });
- request = webidl.converters.RequestInfo(request);
+ request2 = webidl.converters.RequestInfo(request2);
response = webidl.converters.Response(response);
let innerRequest = null;
- if (request instanceof Request2) {
- innerRequest = request[kState];
+ if (request2 instanceof Request2) {
+ innerRequest = request2[kState];
} else {
- innerRequest = new Request2(request)[kState];
+ innerRequest = new Request2(request2)[kState];
}
if (!urlIsHttpHttpsScheme(innerRequest.url) || innerRequest.method !== "GET") {
throw webidl.errors.exception({
@@ -15110,20 +15117,20 @@ var require_cache = __commonJS({
});
return cacheJobPromise.promise;
}
- async delete(request, options = {}) {
+ async delete(request2, options = {}) {
webidl.brandCheck(this, _Cache);
webidl.argumentLengthCheck(arguments, 1, { header: "Cache.delete" });
- request = webidl.converters.RequestInfo(request);
+ request2 = webidl.converters.RequestInfo(request2);
options = webidl.converters.CacheQueryOptions(options);
let r = null;
- if (request instanceof Request2) {
- r = request[kState];
+ if (request2 instanceof Request2) {
+ r = request2[kState];
if (r.method !== "GET" && !options.ignoreMethod) {
return false;
}
} else {
- assert(typeof request === "string");
- r = new Request2(request)[kState];
+ assert2(typeof request2 === "string");
+ r = new Request2(request2)[kState];
}
const operations = [];
const operation = {
@@ -15155,24 +15162,24 @@ var require_cache = __commonJS({
* @param {import('../../types/cache').CacheQueryOptions} options
* @returns {readonly Request[]}
*/
- async keys(request = void 0, options = {}) {
+ async keys(request2 = void 0, options = {}) {
webidl.brandCheck(this, _Cache);
- if (request !== void 0) request = webidl.converters.RequestInfo(request);
+ if (request2 !== void 0) request2 = webidl.converters.RequestInfo(request2);
options = webidl.converters.CacheQueryOptions(options);
let r = null;
- if (request !== void 0) {
- if (request instanceof Request2) {
- r = request[kState];
+ if (request2 !== void 0) {
+ if (request2 instanceof Request2) {
+ r = request2[kState];
if (r.method !== "GET" && !options.ignoreMethod) {
return [];
}
- } else if (typeof request === "string") {
- r = new Request2(request)[kState];
+ } else if (typeof request2 === "string") {
+ r = new Request2(request2)[kState];
}
}
const promise = createDeferredPromise();
const requests = [];
- if (request === void 0) {
+ if (request2 === void 0) {
for (const requestResponse of this.#relevantRequestResponseList) {
requests.push(requestResponse[0]);
}
@@ -15184,12 +15191,12 @@ var require_cache = __commonJS({
}
queueMicrotask(() => {
const requestList = [];
- for (const request2 of requests) {
+ for (const request3 of requests) {
const requestObject = new Request2("https://a");
- requestObject[kState] = request2;
- requestObject[kHeaders][kHeadersList] = request2.headersList;
+ requestObject[kState] = request3;
+ requestObject[kHeaders][kHeadersList] = request3.headersList;
requestObject[kHeaders][kGuard] = "immutable";
- requestObject[kRealm] = request2.client;
+ requestObject[kRealm] = request3.client;
requestList.push(requestObject);
}
promise.resolve(Object.freeze(requestList));
@@ -15231,7 +15238,7 @@ var require_cache = __commonJS({
}
for (const requestResponse of requestResponses) {
const idx = cache.indexOf(requestResponse);
- assert(idx !== -1);
+ assert2(idx !== -1);
cache.splice(idx, 1);
}
} else if (operation.type === "put") {
@@ -15263,7 +15270,7 @@ var require_cache = __commonJS({
requestResponses = this.#queryCache(operation.request);
for (const requestResponse of requestResponses) {
const idx = cache.indexOf(requestResponse);
- assert(idx !== -1);
+ assert2(idx !== -1);
cache.splice(idx, 1);
}
cache.push([operation.request, operation.response]);
@@ -15304,9 +15311,9 @@ var require_cache = __commonJS({
* @param {import('../../types/cache').CacheQueryOptions | undefined} options
* @returns {boolean}
*/
- #requestMatchesCachedItem(requestQuery, request, response = null, options) {
+ #requestMatchesCachedItem(requestQuery, request2, response = null, options) {
const queryURL = new URL(requestQuery.url);
- const cachedURL = new URL(request.url);
+ const cachedURL = new URL(request2.url);
if (options?.ignoreSearch) {
cachedURL.search = "";
queryURL.search = "";
@@ -15322,7 +15329,7 @@ var require_cache = __commonJS({
if (fieldValue === "*") {
return false;
}
- const requestValue = request.headersList.get(fieldValue);
+ const requestValue = request2.headersList.get(fieldValue);
const queryValue = requestQuery.headersList.get(fieldValue);
if (requestValue !== queryValue) {
return false;
@@ -15379,9 +15386,9 @@ var require_cache = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cachestorage.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cachestorage.js
var require_cachestorage = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cachestorage.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cachestorage.js"(exports, module) {
"use strict";
var { kConstruct } = require_symbols4();
var { Cache } = require_cache();
@@ -15398,21 +15405,21 @@ var require_cachestorage = __commonJS({
webidl.illegalConstructor();
}
}
- async match(request, options = {}) {
+ async match(request2, options = {}) {
webidl.brandCheck(this, _CacheStorage);
webidl.argumentLengthCheck(arguments, 1, { header: "CacheStorage.match" });
- request = webidl.converters.RequestInfo(request);
+ request2 = webidl.converters.RequestInfo(request2);
options = webidl.converters.MultiCacheQueryOptions(options);
if (options.cacheName != null) {
if (this.#caches.has(options.cacheName)) {
const cacheList = this.#caches.get(options.cacheName);
const cache = new Cache(kConstruct, cacheList);
- return await cache.match(request, options);
+ return await cache.match(request2, options);
}
} else {
for (const cacheList of this.#caches.values()) {
const cache = new Cache(kConstruct, cacheList);
- const response = await cache.match(request, options);
+ const response = await cache.match(request2, options);
if (response !== void 0) {
return response;
}
@@ -15485,9 +15492,9 @@ var require_cachestorage = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/constants.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/constants.js
var require_constants4 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/constants.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/constants.js"(exports, module) {
"use strict";
var maxAttributeValueSize = 1024;
var maxNameValuePairSize = 4096;
@@ -15498,9 +15505,9 @@ var require_constants4 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/util.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/util.js
var require_util6 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/util.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/util.js"(exports, module) {
"use strict";
function isCTLExcludingHtab(value2) {
if (value2.length === 0) {
@@ -15530,22 +15537,22 @@ var require_util6 = __commonJS({
}
}
}
- function validateCookiePath(path4) {
- for (const char of path4) {
+ function validateCookiePath(path3) {
+ for (const char of path3) {
const code = char.charCodeAt(0);
if (code < 33 || char === ";") {
throw new Error("Invalid cookie path");
}
}
}
- function validateCookieDomain(domain) {
- if (domain.startsWith("-") || domain.endsWith(".") || domain.endsWith("-")) {
+ function validateCookieDomain(domain2) {
+ if (domain2.startsWith("-") || domain2.endsWith(".") || domain2.endsWith("-")) {
throw new Error("Invalid cookie domain");
}
}
- function toIMFDate(date) {
- if (typeof date === "number") {
- date = new Date(date);
+ function toIMFDate(date2) {
+ if (typeof date2 === "number") {
+ date2 = new Date(date2);
}
const days = [
"Sun",
@@ -15570,13 +15577,13 @@ var require_util6 = __commonJS({
"Nov",
"Dec"
];
- const dayName = days[date.getUTCDay()];
- const day = date.getUTCDate().toString().padStart(2, "0");
- const month = months2[date.getUTCMonth()];
- const year = date.getUTCFullYear();
- const hour = date.getUTCHours().toString().padStart(2, "0");
- const minute = date.getUTCMinutes().toString().padStart(2, "0");
- const second = date.getUTCSeconds().toString().padStart(2, "0");
+ const dayName = days[date2.getUTCDay()];
+ const day = date2.getUTCDate().toString().padStart(2, "0");
+ const month = months2[date2.getUTCMonth()];
+ const year = date2.getUTCFullYear();
+ const hour = date2.getUTCHours().toString().padStart(2, "0");
+ const minute = date2.getUTCMinutes().toString().padStart(2, "0");
+ const second = date2.getUTCSeconds().toString().padStart(2, "0");
return `${dayName}, ${day} ${month} ${year} ${hour}:${minute}:${second} GMT`;
}
function validateCookieMaxAge(maxAge) {
@@ -15643,14 +15650,14 @@ var require_util6 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/parse.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/parse.js
var require_parse = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/parse.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/parse.js"(exports, module) {
"use strict";
var { maxNameValuePairSize, maxAttributeValueSize } = require_constants4();
var { isCTLExcludingHtab } = require_util6();
var { collectASequenceOfCodePointsFast } = require_dataURL();
- var assert = __require("assert");
+ var assert2 = __require("assert");
function parseSetCookie(header) {
if (isCTLExcludingHtab(header)) {
return null;
@@ -15692,7 +15699,7 @@ var require_parse = __commonJS({
if (unparsedAttributes.length === 0) {
return cookieAttributeList;
}
- assert(unparsedAttributes[0] === ";");
+ assert2(unparsedAttributes[0] === ";");
unparsedAttributes = unparsedAttributes.slice(1);
let cookieAv = "";
if (unparsedAttributes.includes(";")) {
@@ -15783,9 +15790,9 @@ var require_parse = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/index.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/index.js
var require_cookies = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/index.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/index.js"(exports, module) {
"use strict";
var { parseSetCookie } = require_parse();
var { stringify } = require_util6();
@@ -15911,9 +15918,9 @@ var require_cookies = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/constants.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/constants.js
var require_constants5 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/constants.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/constants.js"(exports, module) {
"use strict";
var uid = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
var staticPropertyDescriptors = {
@@ -15955,9 +15962,9 @@ var require_constants5 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/symbols.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/symbols.js
var require_symbols5 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/symbols.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/symbols.js"(exports, module) {
"use strict";
module.exports = {
kWebSocketURL: Symbol("url"),
@@ -15972,14 +15979,14 @@ var require_symbols5 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/events.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/events.js
var require_events = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/events.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/events.js"(exports, module) {
"use strict";
var { webidl } = require_webidl();
var { kEnumerableProperty } = require_util();
- var { MessagePort } = __require("worker_threads");
- var MessageEvent = class _MessageEvent extends Event {
+ var { MessagePort: MessagePort2 } = __require("worker_threads");
+ var MessageEvent2 = class _MessageEvent extends Event {
#eventInit;
constructor(type2, eventInitDict = {}) {
webidl.argumentLengthCheck(arguments, 1, { header: "MessageEvent constructor" });
@@ -16047,7 +16054,7 @@ var require_events = __commonJS({
return this.#eventInit.reason;
}
};
- var ErrorEvent = class _ErrorEvent extends Event {
+ var ErrorEvent2 = class _ErrorEvent extends Event {
#eventInit;
constructor(type2, eventInitDict) {
webidl.argumentLengthCheck(arguments, 1, { header: "ErrorEvent constructor" });
@@ -16077,7 +16084,7 @@ var require_events = __commonJS({
return this.#eventInit.error;
}
};
- Object.defineProperties(MessageEvent.prototype, {
+ Object.defineProperties(MessageEvent2.prototype, {
[Symbol.toStringTag]: {
value: "MessageEvent",
configurable: true
@@ -16098,7 +16105,7 @@ var require_events = __commonJS({
code: kEnumerableProperty,
wasClean: kEnumerableProperty
});
- Object.defineProperties(ErrorEvent.prototype, {
+ Object.defineProperties(ErrorEvent2.prototype, {
[Symbol.toStringTag]: {
value: "ErrorEvent",
configurable: true
@@ -16109,7 +16116,7 @@ var require_events = __commonJS({
colno: kEnumerableProperty,
error: kEnumerableProperty
});
- webidl.converters.MessagePort = webidl.interfaceConverter(MessagePort);
+ webidl.converters.MessagePort = webidl.interfaceConverter(MessagePort2);
webidl.converters["sequence"] = webidl.sequenceConverter(
webidl.converters.MessagePort
);
@@ -16208,20 +16215,20 @@ var require_events = __commonJS({
}
]);
module.exports = {
- MessageEvent,
+ MessageEvent: MessageEvent2,
CloseEvent,
- ErrorEvent
+ ErrorEvent: ErrorEvent2
};
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/util.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/util.js
var require_util7 = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/util.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/util.js"(exports, module) {
"use strict";
var { kReadyState, kController, kResponse, kBinaryType, kWebSocketURL } = require_symbols5();
var { states, opcodes } = require_constants5();
- var { MessageEvent, ErrorEvent } = require_events();
+ var { MessageEvent: MessageEvent2, ErrorEvent: ErrorEvent2 } = require_events();
function isEstablished(ws) {
return ws[kReadyState] === states.OPEN;
}
@@ -16254,7 +16261,7 @@ var require_util7 = __commonJS({
dataForEvent = new Uint8Array(data).buffer;
}
}
- fireEvent("message", ws, MessageEvent, {
+ fireEvent("message", ws, MessageEvent2, {
origin: ws[kWebSocketURL].origin,
data: dataForEvent
});
@@ -16287,7 +16294,7 @@ var require_util7 = __commonJS({
response.socket.destroy();
}
if (reason) {
- fireEvent("error", ws, ErrorEvent, {
+ fireEvent("error", ws, ErrorEvent2, {
error: new Error(reason)
});
}
@@ -16305,9 +16312,9 @@ var require_util7 = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/connection.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/connection.js
var require_connection = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/connection.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/connection.js"(exports, module) {
"use strict";
var diagnosticsChannel = __require("diagnostics_channel");
var { uid, states } = require_constants5();
@@ -16328,15 +16335,15 @@ var require_connection = __commonJS({
channels.open = diagnosticsChannel.channel("undici:websocket:open");
channels.close = diagnosticsChannel.channel("undici:websocket:close");
channels.socketError = diagnosticsChannel.channel("undici:websocket:socket_error");
- var crypto;
+ var crypto2;
try {
- crypto = __require("crypto");
+ crypto2 = __require("crypto");
} catch {
}
function establishWebSocketConnection(url2, protocols, ws, onEstablish, options) {
const requestURL = url2;
requestURL.protocol = url2.protocol === "ws:" ? "http:" : "https:";
- const request = makeRequest({
+ const request2 = makeRequest({
urlList: [requestURL],
serviceWorkers: "none",
referrer: "no-referrer",
@@ -16347,17 +16354,17 @@ var require_connection = __commonJS({
});
if (options.headers) {
const headersList = new Headers2(options.headers)[kHeadersList];
- request.headersList = headersList;
+ request2.headersList = headersList;
}
- const keyValue = crypto.randomBytes(16).toString("base64");
- request.headersList.append("sec-websocket-key", keyValue);
- request.headersList.append("sec-websocket-version", "13");
+ const keyValue = crypto2.randomBytes(16).toString("base64");
+ request2.headersList.append("sec-websocket-key", keyValue);
+ request2.headersList.append("sec-websocket-version", "13");
for (const protocol of protocols) {
- request.headersList.append("sec-websocket-protocol", protocol);
+ request2.headersList.append("sec-websocket-protocol", protocol);
}
const permessageDeflate = "";
const controller = fetching({
- request,
+ request: request2,
useParallelQueue: true,
dispatcher: options.dispatcher ?? getGlobalDispatcher(),
processResponse(response) {
@@ -16378,7 +16385,7 @@ var require_connection = __commonJS({
return;
}
const secWSAccept = response.headersList.get("Sec-WebSocket-Accept");
- const digest = crypto.createHash("sha1").update(keyValue + uid).digest("base64");
+ const digest = crypto2.createHash("sha1").update(keyValue + uid).digest("base64");
if (secWSAccept !== digest) {
failWebsocketConnection(ws, "Incorrect hash received in Sec-WebSocket-Accept header.");
return;
@@ -16389,7 +16396,7 @@ var require_connection = __commonJS({
return;
}
const secProtocol = response.headersList.get("Sec-WebSocket-Protocol");
- if (secProtocol !== null && secProtocol !== request.headersList.get("Sec-WebSocket-Protocol")) {
+ if (secProtocol !== null && secProtocol !== request2.headersList.get("Sec-WebSocket-Protocol")) {
failWebsocketConnection(ws, "Protocol was not set in the opening handshake.");
return;
}
@@ -16439,11 +16446,11 @@ var require_connection = __commonJS({
});
}
}
- function onSocketError(error2) {
+ function onSocketError(error41) {
const { ws } = this;
ws[kReadyState] = states.CLOSING;
if (channels.socketError.hasSubscribers) {
- channels.socketError.publish(error2);
+ channels.socketError.publish(error41);
}
this.destroy();
}
@@ -16453,14 +16460,14 @@ var require_connection = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/frame.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/frame.js
var require_frame = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/frame.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/frame.js"(exports, module) {
"use strict";
var { maxUnsigned16Bit } = require_constants5();
- var crypto;
+ var crypto2;
try {
- crypto = __require("crypto");
+ crypto2 = __require("crypto");
} catch {
}
var WebsocketFrameSend = class {
@@ -16469,7 +16476,7 @@ var require_frame = __commonJS({
*/
constructor(data) {
this.frameData = data;
- this.maskKey = crypto.randomBytes(4);
+ this.maskKey = crypto2.randomBytes(4);
}
createFrame(opcode) {
const bodyLength = this.frameData?.byteLength ?? 0;
@@ -16510,9 +16517,9 @@ var require_frame = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/receiver.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/receiver.js
var require_receiver = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/receiver.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/receiver.js"(exports, module) {
"use strict";
var { Writable } = __require("stream");
var diagnosticsChannel = __require("diagnostics_channel");
@@ -16590,8 +16597,8 @@ var require_receiver = __commonJS({
const closeFrame = new WebsocketFrameSend(body2);
this.ws[kResponse].socket.write(
closeFrame.createFrame(opcodes.CLOSE),
- (err2) => {
- if (!err2) {
+ (err) => {
+ if (!err) {
this.ws[kSentClose] = true;
}
}
@@ -16746,9 +16753,9 @@ var require_receiver = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/websocket.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/websocket.js
var require_websocket = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/websocket.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/websocket.js"(exports, module) {
"use strict";
var { webidl } = require_webidl();
var { DOMException: DOMException2 } = require_constants2();
@@ -16884,8 +16891,8 @@ var require_websocket = __commonJS({
frame.frameData = emptyBuffer;
}
const socket = this[kResponse].socket;
- socket.write(frame.createFrame(opcodes.CLOSE), (err2) => {
- if (!err2) {
+ socket.write(frame.createFrame(opcodes.CLOSE), (err) => {
+ if (!err) {
this[kSentClose] = true;
}
});
@@ -17151,17 +17158,17 @@ var require_websocket = __commonJS({
}
});
-// node_modules/.pnpm/undici@5.29.0/node_modules/undici/index.js
+// ../node_modules/.pnpm/undici@5.29.0/node_modules/undici/index.js
var require_undici = __commonJS({
- "node_modules/.pnpm/undici@5.29.0/node_modules/undici/index.js"(exports, module) {
+ "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/index.js"(exports, module) {
"use strict";
- var Client = require_client();
+ var Client2 = require_client();
var Dispatcher = require_dispatcher();
var errors = require_errors();
var Pool = require_pool();
var BalancedPool = require_balanced_pool();
var Agent = require_agent();
- var util2 = require_util();
+ var util3 = require_util();
var { InvalidArgumentError } = errors;
var api = require_api();
var buildConnector = require_connect();
@@ -17184,7 +17191,7 @@ var require_undici = __commonJS({
}
Object.assign(Dispatcher.prototype, api);
module.exports.Dispatcher = Dispatcher;
- module.exports.Client = Client;
+ module.exports.Client = Client2;
module.exports.Pool = Pool;
module.exports.BalancedPool = BalancedPool;
module.exports.Agent = Agent;
@@ -17196,9 +17203,9 @@ var require_undici = __commonJS({
module.exports.buildConnector = buildConnector;
module.exports.errors = errors;
function makeDispatcher(fn2) {
- return (url2, opts, handler) => {
+ return (url2, opts, handler2) => {
if (typeof opts === "function") {
- handler = opts;
+ handler2 = opts;
opts = null;
}
if (!url2 || typeof url2 !== "string" && typeof url2 !== "object" && !(url2 instanceof URL)) {
@@ -17211,16 +17218,16 @@ var require_undici = __commonJS({
if (typeof opts.path !== "string") {
throw new InvalidArgumentError("invalid opts.path");
}
- let path4 = opts.path;
+ let path3 = opts.path;
if (!opts.path.startsWith("/")) {
- path4 = `/${path4}`;
+ path3 = `/${path3}`;
}
- url2 = new URL(util2.parseOrigin(url2).origin + path4);
+ url2 = new URL(util3.parseOrigin(url2).origin + path3);
} else {
if (!opts) {
opts = typeof url2 === "object" ? url2 : {};
}
- url2 = util2.parseURL(url2);
+ url2 = util3.parseURL(url2);
}
const { agent: agent2, dispatcher = getGlobalDispatcher() } = opts;
if (agent2) {
@@ -17231,24 +17238,24 @@ var require_undici = __commonJS({
origin: url2.origin,
path: url2.search ? `${url2.pathname}${url2.search}` : url2.pathname,
method: opts.method || (opts.body ? "PUT" : "GET")
- }, handler);
+ }, handler2);
};
}
module.exports.setGlobalDispatcher = setGlobalDispatcher;
module.exports.getGlobalDispatcher = getGlobalDispatcher;
- if (util2.nodeMajor > 16 || util2.nodeMajor === 16 && util2.nodeMinor >= 8) {
+ if (util3.nodeMajor > 16 || util3.nodeMajor === 16 && util3.nodeMinor >= 8) {
let fetchImpl = null;
- module.exports.fetch = async function fetch2(resource) {
+ module.exports.fetch = async function fetch3(resource) {
if (!fetchImpl) {
fetchImpl = require_fetch().fetch;
}
try {
return await fetchImpl(...arguments);
- } catch (err2) {
- if (typeof err2 === "object") {
- Error.captureStackTrace(err2, this);
+ } catch (err) {
+ if (typeof err === "object") {
+ Error.captureStackTrace(err, this);
}
- throw err2;
+ throw err;
}
};
module.exports.Headers = require_headers().Headers;
@@ -17264,7 +17271,7 @@ var require_undici = __commonJS({
const { kConstruct } = require_symbols4();
module.exports.caches = new CacheStorage(kConstruct);
}
- if (util2.nodeMajor >= 16) {
+ if (util3.nodeMajor >= 16) {
const { deleteCookie, getCookies, getSetCookies, setCookie } = require_cookies();
module.exports.deleteCookie = deleteCookie;
module.exports.getCookies = getCookies;
@@ -17274,7 +17281,7 @@ var require_undici = __commonJS({
module.exports.parseMIMEType = parseMIMEType;
module.exports.serializeAMimeType = serializeAMimeType;
}
- if (util2.nodeMajor >= 18 && hasCrypto) {
+ if (util3.nodeMajor >= 18 && hasCrypto) {
const { WebSocket } = require_websocket();
module.exports.WebSocket = WebSocket;
}
@@ -17290,9 +17297,9 @@ var require_undici = __commonJS({
}
});
-// node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/index.js
+// ../node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/index.js
var require_lib = __commonJS({
- "node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/index.js"(exports) {
+ "../node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/index.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
@@ -17350,7 +17357,7 @@ var require_lib = __commonJS({
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
- var http = __importStar(__require("http"));
+ var http2 = __importStar(__require("http"));
var https = __importStar(__require("https"));
var pm = __importStar(require_proxy());
var tunnel = __importStar(require_tunnel2());
@@ -17461,7 +17468,7 @@ var require_lib = __commonJS({
}
exports.isHttps = isHttps;
var HttpClient = class {
- constructor(userAgent, handlers, requestOptions) {
+ constructor(userAgent2, handlers, requestOptions) {
this._ignoreSslError = false;
this._allowRedirects = true;
this._allowRedirectDowngrade = false;
@@ -17470,7 +17477,7 @@ var require_lib = __commonJS({
this._maxRetries = 1;
this._keepAlive = false;
this._disposed = false;
- this.userAgent = userAgent;
+ this.userAgent = userAgent2;
this.handlers = handlers || [];
this.requestOptions = requestOptions;
if (requestOptions) {
@@ -17595,9 +17602,9 @@ var require_lib = __commonJS({
response = yield this.requestRaw(info2, data);
if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) {
let authenticationHandler;
- for (const handler of this.handlers) {
- if (handler.canHandleAuthentication(response)) {
- authenticationHandler = handler;
+ for (const handler2 of this.handlers) {
+ if (handler2.canHandleAuthentication(response)) {
+ authenticationHandler = handler2;
break;
}
}
@@ -17658,9 +17665,9 @@ var require_lib = __commonJS({
requestRaw(info2, data) {
return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve, reject) => {
- function callbackForResult(err2, res) {
- if (err2) {
- reject(err2);
+ function callbackForResult(err, res) {
+ if (err) {
+ reject(err);
} else if (!res) {
reject(new Error("Unknown error"));
} else {
@@ -17685,15 +17692,15 @@ var require_lib = __commonJS({
info2.options.headers["Content-Length"] = Buffer.byteLength(data, "utf8");
}
let callbackCalled = false;
- function handleResult2(err2, res) {
+ function handleResult4(err, res) {
if (!callbackCalled) {
callbackCalled = true;
- onResult(err2, res);
+ onResult(err, res);
}
}
const req = info2.httpModule.request(info2.options, (msg) => {
const res = new HttpClientResponse(msg);
- handleResult2(void 0, res);
+ handleResult4(void 0, res);
});
let socket;
req.on("socket", (sock) => {
@@ -17703,10 +17710,10 @@ var require_lib = __commonJS({
if (socket) {
socket.end();
}
- handleResult2(new Error(`Request timeout: ${info2.options.path}`));
+ handleResult4(new Error(`Request timeout: ${info2.options.path}`));
});
- req.on("error", function(err2) {
- handleResult2(err2);
+ req.on("error", function(err) {
+ handleResult4(err);
});
if (data && typeof data === "string") {
req.write(data, "utf8");
@@ -17742,7 +17749,7 @@ var require_lib = __commonJS({
const info2 = {};
info2.parsedUrl = requestUrl;
const usingSsl = info2.parsedUrl.protocol === "https:";
- info2.httpModule = usingSsl ? https : http;
+ info2.httpModule = usingSsl ? https : http2;
const defaultPort = usingSsl ? 443 : 80;
info2.options = {};
info2.options.host = info2.parsedUrl.hostname;
@@ -17755,24 +17762,24 @@ var require_lib = __commonJS({
}
info2.options.agent = this._getAgent(info2.parsedUrl);
if (this.handlers) {
- for (const handler of this.handlers) {
- handler.prepareRequest(info2.options);
+ for (const handler2 of this.handlers) {
+ handler2.prepareRequest(info2.options);
}
}
return info2;
}
_mergeHeaders(headers) {
if (this.requestOptions && this.requestOptions.headers) {
- return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {}));
+ return Object.assign({}, lowercaseKeys2(this.requestOptions.headers), lowercaseKeys2(headers || {}));
}
- return lowercaseKeys(headers || {});
+ return lowercaseKeys2(headers || {});
}
- _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
+ _getExistingOrDefaultHeader(additionalHeaders, header, _default2) {
let clientHeader;
if (this.requestOptions && this.requestOptions.headers) {
- clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
+ clientHeader = lowercaseKeys2(this.requestOptions.headers)[header];
}
- return additionalHeaders[header] || clientHeader || _default;
+ return additionalHeaders[header] || clientHeader || _default2;
}
_getAgent(parsedUrl) {
let agent2;
@@ -17790,7 +17797,7 @@ var require_lib = __commonJS({
const usingSsl = parsedUrl.protocol === "https:";
let maxSockets = 100;
if (this.requestOptions) {
- maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
+ maxSockets = this.requestOptions.maxSockets || http2.globalAgent.maxSockets;
}
if (proxyUrl && proxyUrl.hostname) {
const agentOptions = {
@@ -17812,7 +17819,7 @@ var require_lib = __commonJS({
}
if (!agent2) {
const options = { keepAlive: this._keepAlive, maxSockets };
- agent2 = usingSsl ? new https.Agent(options) : new http.Agent(options);
+ agent2 = usingSsl ? new https.Agent(options) : new http2.Agent(options);
this._agent = agent2;
}
if (usingSsl && this._ignoreSslError) {
@@ -17883,7 +17890,7 @@ var require_lib = __commonJS({
response.result = obj;
}
response.headers = res.message.headers;
- } catch (err2) {
+ } catch (err) {
}
if (statusCode > 299) {
let msg;
@@ -17894,9 +17901,9 @@ var require_lib = __commonJS({
} else {
msg = `Failed request: (${statusCode})`;
}
- const err2 = new HttpClientError(msg, statusCode);
- err2.result = response.result;
- reject(err2);
+ const err = new HttpClientError(msg, statusCode);
+ err.result = response.result;
+ reject(err);
} else {
resolve(response);
}
@@ -17905,13 +17912,13 @@ var require_lib = __commonJS({
}
};
exports.HttpClient = HttpClient;
- var lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
+ var lowercaseKeys2 = (obj) => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
}
});
-// node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/auth.js
+// ../node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/auth.js
var require_auth = __commonJS({
- "node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/auth.js"(exports) {
+ "../node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/auth.js"(exports) {
"use strict";
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
function adopt(value2) {
@@ -18013,9 +18020,9 @@ var require_auth = __commonJS({
}
});
-// node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/oidc-utils.js
+// ../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/oidc-utils.js
var require_oidc_utils = __commonJS({
- "node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/oidc-utils.js"(exports) {
+ "../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/oidc-utils.js"(exports) {
"use strict";
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
function adopt(value2) {
@@ -18075,12 +18082,12 @@ var require_oidc_utils = __commonJS({
var _a;
return __awaiter(this, void 0, void 0, function* () {
const httpclient = _OidcClient.createHttpClient();
- const res = yield httpclient.getJson(id_token_url).catch((error2) => {
+ const res = yield httpclient.getJson(id_token_url).catch((error41) => {
throw new Error(`Failed to get ID Token.
- Error Code : ${error2.statusCode}
+ Error Code : ${error41.statusCode}
- Error Message: ${error2.message}`);
+ Error Message: ${error41.message}`);
});
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
if (!id_token) {
@@ -18101,8 +18108,8 @@ var require_oidc_utils = __commonJS({
const id_token = yield _OidcClient.getCall(id_token_url);
(0, core_1.setSecret)(id_token);
return id_token;
- } catch (error2) {
- throw new Error(`Error message: ${error2.message}`);
+ } catch (error41) {
+ throw new Error(`Error message: ${error41.message}`);
}
});
}
@@ -18111,9 +18118,9 @@ var require_oidc_utils = __commonJS({
}
});
-// node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/summary.js
+// ../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/summary.js
var require_summary = __commonJS({
- "node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/summary.js"(exports) {
+ "../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/summary.js"(exports) {
"use strict";
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
function adopt(value2) {
@@ -18203,9 +18210,9 @@ var require_summary = __commonJS({
write(options) {
return __awaiter(this, void 0, void 0, function* () {
const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
- const filePath2 = yield this.filePath();
+ const filePath = yield this.filePath();
const writeFunc = overwrite ? writeFile2 : appendFile;
- yield writeFunc(filePath2, this._buffer, { encoding: "utf8" });
+ yield writeFunc(filePath, this._buffer, { encoding: "utf8" });
return this.emptyBuffer();
});
}
@@ -18405,9 +18412,9 @@ var require_summary = __commonJS({
}
});
-// node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/path-utils.js
+// ../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/path-utils.js
var require_path_utils = __commonJS({
- "node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/path-utils.js"(exports) {
+ "../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/path-utils.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
@@ -18438,7 +18445,7 @@ var require_path_utils = __commonJS({
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0;
- var path4 = __importStar(__require("path"));
+ var path3 = __importStar(__require("path"));
function toPosixPath(pth) {
return pth.replace(/[\\]/g, "/");
}
@@ -18448,15 +18455,15 @@ var require_path_utils = __commonJS({
}
exports.toWin32Path = toWin32Path;
function toPlatformPath(pth) {
- return pth.replace(/[/\\]/g, path4.sep);
+ return pth.replace(/[/\\]/g, path3.sep);
}
exports.toPlatformPath = toPlatformPath;
}
});
-// node_modules/.pnpm/@actions+io@1.1.3/node_modules/@actions/io/lib/io-util.js
+// ../node_modules/.pnpm/@actions+io@1.1.3/node_modules/@actions/io/lib/io-util.js
var require_io_util = __commonJS({
- "node_modules/.pnpm/@actions+io@1.1.3/node_modules/@actions/io/lib/io-util.js"(exports) {
+ "../node_modules/.pnpm/@actions+io@1.1.3/node_modules/@actions/io/lib/io-util.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
@@ -18512,7 +18519,7 @@ var require_io_util = __commonJS({
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
var fs3 = __importStar(__require("fs"));
- var path4 = __importStar(__require("path"));
+ var path3 = __importStar(__require("path"));
_a = fs3.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
exports.IS_WINDOWS = process.platform === "win32";
exports.UV_FS_O_EXLOCK = 268435456;
@@ -18521,11 +18528,11 @@ var require_io_util = __commonJS({
return __awaiter(this, void 0, void 0, function* () {
try {
yield exports.stat(fsPath);
- } catch (err2) {
- if (err2.code === "ENOENT") {
+ } catch (err) {
+ if (err.code === "ENOENT") {
return false;
}
- throw err2;
+ throw err;
}
return true;
});
@@ -18549,57 +18556,57 @@ var require_io_util = __commonJS({
return p.startsWith("/");
}
exports.isRooted = isRooted;
- function tryGetExecutablePath(filePath2, extensions) {
+ function tryGetExecutablePath(filePath, extensions) {
return __awaiter(this, void 0, void 0, function* () {
let stats = void 0;
try {
- stats = yield exports.stat(filePath2);
- } catch (err2) {
- if (err2.code !== "ENOENT") {
- console.log(`Unexpected error attempting to determine if executable file exists '${filePath2}': ${err2}`);
+ stats = yield exports.stat(filePath);
+ } catch (err) {
+ if (err.code !== "ENOENT") {
+ console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
}
}
if (stats && stats.isFile()) {
if (exports.IS_WINDOWS) {
- const upperExt = path4.extname(filePath2).toUpperCase();
+ const upperExt = path3.extname(filePath).toUpperCase();
if (extensions.some((validExt) => validExt.toUpperCase() === upperExt)) {
- return filePath2;
+ return filePath;
}
} else {
if (isUnixExecutable(stats)) {
- return filePath2;
+ return filePath;
}
}
}
- const originalFilePath = filePath2;
+ const originalFilePath = filePath;
for (const extension of extensions) {
- filePath2 = originalFilePath + extension;
+ filePath = originalFilePath + extension;
stats = void 0;
try {
- stats = yield exports.stat(filePath2);
- } catch (err2) {
- if (err2.code !== "ENOENT") {
- console.log(`Unexpected error attempting to determine if executable file exists '${filePath2}': ${err2}`);
+ stats = yield exports.stat(filePath);
+ } catch (err) {
+ if (err.code !== "ENOENT") {
+ console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
}
}
if (stats && stats.isFile()) {
if (exports.IS_WINDOWS) {
try {
- const directory = path4.dirname(filePath2);
- const upperName = path4.basename(filePath2).toUpperCase();
+ const directory = path3.dirname(filePath);
+ const upperName = path3.basename(filePath).toUpperCase();
for (const actualName of yield exports.readdir(directory)) {
if (upperName === actualName.toUpperCase()) {
- filePath2 = path4.join(directory, actualName);
+ filePath = path3.join(directory, actualName);
break;
}
}
- } catch (err2) {
- console.log(`Unexpected error attempting to determine the actual case of the file '${filePath2}': ${err2}`);
+ } catch (err) {
+ console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);
}
- return filePath2;
+ return filePath;
} else {
if (isUnixExecutable(stats)) {
- return filePath2;
+ return filePath;
}
}
}
@@ -18627,9 +18634,9 @@ var require_io_util = __commonJS({
}
});
-// node_modules/.pnpm/@actions+io@1.1.3/node_modules/@actions/io/lib/io.js
+// ../node_modules/.pnpm/@actions+io@1.1.3/node_modules/@actions/io/lib/io.js
var require_io = __commonJS({
- "node_modules/.pnpm/@actions+io@1.1.3/node_modules/@actions/io/lib/io.js"(exports) {
+ "../node_modules/.pnpm/@actions+io@1.1.3/node_modules/@actions/io/lib/io.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
@@ -18684,7 +18691,7 @@ var require_io = __commonJS({
Object.defineProperty(exports, "__esModule", { value: true });
exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0;
var assert_1 = __require("assert");
- var path4 = __importStar(__require("path"));
+ var path3 = __importStar(__require("path"));
var ioUtil = __importStar(require_io_util());
function cp(source, dest, options = {}) {
return __awaiter(this, void 0, void 0, function* () {
@@ -18693,7 +18700,7 @@ var require_io = __commonJS({
if (destStat && destStat.isFile() && !force) {
return;
}
- const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? path4.join(dest, path4.basename(source)) : dest;
+ const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? path3.join(dest, path3.basename(source)) : dest;
if (!(yield ioUtil.exists(source))) {
throw new Error(`no such file or directory: ${source}`);
}
@@ -18705,7 +18712,7 @@ var require_io = __commonJS({
yield cpDirRecursive(source, newDest, 0, force);
}
} else {
- if (path4.relative(source, newDest) === "") {
+ if (path3.relative(source, newDest) === "") {
throw new Error(`'${newDest}' and '${source}' are the same file`);
}
yield copyFile(source, newDest, force);
@@ -18718,7 +18725,7 @@ var require_io = __commonJS({
if (yield ioUtil.exists(dest)) {
let destExists = true;
if (yield ioUtil.isDirectory(dest)) {
- dest = path4.join(dest, path4.basename(source));
+ dest = path3.join(dest, path3.basename(source));
destExists = yield ioUtil.exists(dest);
}
if (destExists) {
@@ -18729,7 +18736,7 @@ var require_io = __commonJS({
}
}
}
- yield mkdirP(path4.dirname(dest));
+ yield mkdirP(path3.dirname(dest));
yield ioUtil.rename(source, dest);
});
}
@@ -18748,8 +18755,8 @@ var require_io = __commonJS({
recursive: true,
retryDelay: 300
});
- } catch (err2) {
- throw new Error(`File was unable to be removed ${err2}`);
+ } catch (err) {
+ throw new Error(`File was unable to be removed ${err}`);
}
});
}
@@ -18761,23 +18768,23 @@ var require_io = __commonJS({
});
}
exports.mkdirP = mkdirP;
- function which(tool, check) {
+ function which(tool2, check) {
return __awaiter(this, void 0, void 0, function* () {
- if (!tool) {
+ if (!tool2) {
throw new Error("parameter 'tool' is required");
}
if (check) {
- const result = yield which(tool, false);
+ const result = yield which(tool2, false);
if (!result) {
if (ioUtil.IS_WINDOWS) {
- throw new Error(`Unable to locate executable file: ${tool}. 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.`);
+ throw new Error(`Unable to locate executable file: ${tool2}. 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.`);
} else {
- throw new Error(`Unable to locate executable file: ${tool}. 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.`);
+ throw new Error(`Unable to locate executable file: ${tool2}. 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 result;
}
- const matches = yield findInPath(tool);
+ const matches = yield findInPath(tool2);
if (matches && matches.length > 0) {
return matches[0];
}
@@ -18785,32 +18792,32 @@ var require_io = __commonJS({
});
}
exports.which = which;
- function findInPath(tool) {
+ function findInPath(tool2) {
return __awaiter(this, void 0, void 0, function* () {
- if (!tool) {
+ if (!tool2) {
throw new Error("parameter 'tool' is required");
}
const extensions = [];
if (ioUtil.IS_WINDOWS && process.env["PATHEXT"]) {
- for (const extension of process.env["PATHEXT"].split(path4.delimiter)) {
+ for (const extension of process.env["PATHEXT"].split(path3.delimiter)) {
if (extension) {
extensions.push(extension);
}
}
}
- if (ioUtil.isRooted(tool)) {
- const filePath2 = yield ioUtil.tryGetExecutablePath(tool, extensions);
- if (filePath2) {
- return [filePath2];
+ if (ioUtil.isRooted(tool2)) {
+ const filePath = yield ioUtil.tryGetExecutablePath(tool2, extensions);
+ if (filePath) {
+ return [filePath];
}
return [];
}
- if (tool.includes(path4.sep)) {
+ if (tool2.includes(path3.sep)) {
return [];
}
const directories = [];
if (process.env.PATH) {
- for (const p of process.env.PATH.split(path4.delimiter)) {
+ for (const p of process.env.PATH.split(path3.delimiter)) {
if (p) {
directories.push(p);
}
@@ -18818,9 +18825,9 @@ var require_io = __commonJS({
}
const matches = [];
for (const directory of directories) {
- const filePath2 = yield ioUtil.tryGetExecutablePath(path4.join(directory, tool), extensions);
- if (filePath2) {
- matches.push(filePath2);
+ const filePath = yield ioUtil.tryGetExecutablePath(path3.join(directory, tool2), extensions);
+ if (filePath) {
+ matches.push(filePath);
}
}
return matches;
@@ -18875,9 +18882,9 @@ var require_io = __commonJS({
}
});
-// node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/toolrunner.js
+// ../node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/toolrunner.js
var require_toolrunner = __commonJS({
- "node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/toolrunner.js"(exports) {
+ "../node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/toolrunner.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
@@ -18934,7 +18941,7 @@ var require_toolrunner = __commonJS({
var os2 = __importStar(__require("os"));
var events = __importStar(__require("events"));
var child = __importStar(__require("child_process"));
- var path4 = __importStar(__require("path"));
+ var path3 = __importStar(__require("path"));
var io = __importStar(require_io());
var ioUtil = __importStar(require_io_util());
var timers_1 = __require("timers");
@@ -18994,8 +19001,8 @@ var require_toolrunner = __commonJS({
n = s.indexOf(os2.EOL);
}
return s;
- } catch (err2) {
- this._debug(`error processing line. Failed with error ${err2}`);
+ } catch (err) {
+ this._debug(`error processing line. Failed with error ${err}`);
return "";
}
}
@@ -19149,7 +19156,7 @@ var require_toolrunner = __commonJS({
exec() {
return __awaiter(this, void 0, void 0, function* () {
if (!ioUtil.isRooted(this.toolPath) && (this.toolPath.includes("/") || IS_WINDOWS && this.toolPath.includes("\\"))) {
- this.toolPath = path4.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath);
+ this.toolPath = path3.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath);
}
this.toolPath = yield io.which(this.toolPath, true);
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
@@ -19205,8 +19212,8 @@ var require_toolrunner = __commonJS({
});
});
}
- cp.on("error", (err2) => {
- state.processError = err2.message;
+ cp.on("error", (err) => {
+ state.processError = err.message;
state.processExited = true;
state.processClosed = true;
state.CheckComplete();
@@ -19224,7 +19231,7 @@ var require_toolrunner = __commonJS({
this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);
state.CheckComplete();
});
- state.on("done", (error2, exitCode) => {
+ state.on("done", (error41, exitCode) => {
if (stdbuffer.length > 0) {
this.emit("stdline", stdbuffer);
}
@@ -19232,8 +19239,8 @@ var require_toolrunner = __commonJS({
this.emit("errline", errbuffer);
}
cp.removeAllListeners();
- if (error2) {
- reject(error2);
+ if (error41) {
+ reject(error41);
} else {
resolve(exitCode);
}
@@ -19328,14 +19335,14 @@ var require_toolrunner = __commonJS({
this.emit("debug", message);
}
_setResult() {
- let error2;
+ let error41;
if (this.processExited) {
if (this.processError) {
- error2 = new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`);
+ error41 = new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`);
} else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) {
- error2 = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
+ error41 = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
} else if (this.processStderr && this.options.failOnStdErr) {
- error2 = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);
+ error41 = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);
}
}
if (this.timeout) {
@@ -19343,7 +19350,7 @@ var require_toolrunner = __commonJS({
this.timeout = null;
}
this.done = true;
- this.emit("done", error2, this.processExitCode);
+ this.emit("done", error41, this.processExitCode);
}
static HandleTimeout(state) {
if (state.done) {
@@ -19359,9 +19366,9 @@ var require_toolrunner = __commonJS({
}
});
-// node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/exec.js
+// ../node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/exec.js
var require_exec = __commonJS({
- "node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/exec.js"(exports) {
+ "../node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/exec.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
@@ -19466,9 +19473,9 @@ var require_exec = __commonJS({
}
});
-// node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/platform.js
+// ../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/platform.js
var require_platform = __commonJS({
- "node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/platform.js"(exports) {
+ "../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/platform.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
@@ -19532,7 +19539,7 @@ var require_platform = __commonJS({
var os_1 = __importDefault(__require("os"));
var exec = __importStar(require_exec());
var getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
- const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', void 0, {
+ const { stdout: version2 } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', void 0, {
silent: true
});
const { stdout: name } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', void 0, {
@@ -19540,7 +19547,7 @@ var require_platform = __commonJS({
});
return {
name: name.trim(),
- version: version.trim()
+ version: version2.trim()
};
});
var getMacOsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
@@ -19548,21 +19555,21 @@ var require_platform = __commonJS({
const { stdout } = yield exec.getExecOutput("sw_vers", void 0, {
silent: true
});
- const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : "";
+ const version2 = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : "";
const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : "";
return {
name,
- version
+ version: version2
};
});
var getLinuxInfo = () => __awaiter(void 0, void 0, void 0, function* () {
const { stdout } = yield exec.getExecOutput("lsb_release", ["-i", "-r", "-s"], {
silent: true
});
- const [name, version] = stdout.trim().split("\n");
+ const [name, version2] = stdout.trim().split("\n");
return {
name,
- version
+ version: version2
};
});
exports.platform = os_1.default.platform();
@@ -19585,9 +19592,9 @@ var require_platform = __commonJS({
}
});
-// node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/core.js
+// ../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/core.js
var require_core = __commonJS({
- "node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/core.js"(exports) {
+ "../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/core.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
@@ -19649,7 +19656,7 @@ var require_core = __commonJS({
var file_command_1 = require_file_command();
var utils_1 = require_utils();
var os2 = __importStar(__require("os"));
- var path4 = __importStar(__require("path"));
+ var path3 = __importStar(__require("path"));
var oidc_utils_1 = require_oidc_utils();
var ExitCode;
(function(ExitCode2) {
@@ -19659,8 +19666,8 @@ var require_core = __commonJS({
function exportVariable(name, val) {
const convertedVal = (0, utils_1.toCommandValue)(val);
process.env[name] = convertedVal;
- const filePath2 = process.env["GITHUB_ENV"] || "";
- if (filePath2) {
+ const filePath = process.env["GITHUB_ENV"] || "";
+ if (filePath) {
return (0, file_command_1.issueFileCommand)("ENV", (0, file_command_1.prepareKeyValueMessage)(name, val));
}
(0, command_1.issueCommand)("set-env", { name }, convertedVal);
@@ -19671,13 +19678,13 @@ var require_core = __commonJS({
}
exports.setSecret = setSecret2;
function addPath(inputPath) {
- const filePath2 = process.env["GITHUB_PATH"] || "";
- if (filePath2) {
+ const filePath = process.env["GITHUB_PATH"] || "";
+ if (filePath) {
(0, file_command_1.issueFileCommand)("PATH", inputPath);
} else {
(0, command_1.issueCommand)("add-path", {}, inputPath);
}
- process.env["PATH"] = `${inputPath}${path4.delimiter}${process.env["PATH"]}`;
+ process.env["PATH"] = `${inputPath}${path3.delimiter}${process.env["PATH"]}`;
}
exports.addPath = addPath;
function getInput2(name, options) {
@@ -19712,8 +19719,8 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
}
exports.getBooleanInput = getBooleanInput;
function setOutput(name, value2) {
- const filePath2 = process.env["GITHUB_OUTPUT"] || "";
- if (filePath2) {
+ const filePath = process.env["GITHUB_OUTPUT"] || "";
+ if (filePath) {
return (0, file_command_1.issueFileCommand)("OUTPUT", (0, file_command_1.prepareKeyValueMessage)(name, value2));
}
process.stdout.write(os2.EOL);
@@ -19726,7 +19733,7 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
exports.setCommandEcho = setCommandEcho;
function setFailed2(message) {
process.exitCode = ExitCode.Failure;
- error2(message);
+ error41(message);
}
exports.setFailed = setFailed2;
function isDebug() {
@@ -19737,10 +19744,10 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
(0, command_1.issueCommand)("debug", {}, message);
}
exports.debug = debug2;
- function error2(message, properties = {}) {
+ function error41(message, properties = {}) {
(0, command_1.issueCommand)("error", (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
}
- exports.error = error2;
+ exports.error = error41;
function warning2(message, properties = {}) {
(0, command_1.issueCommand)("warning", (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
}
@@ -19775,8 +19782,8 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
}
exports.group = group;
function saveState(name, value2) {
- const filePath2 = process.env["GITHUB_STATE"] || "";
- if (filePath2) {
+ const filePath = process.env["GITHUB_STATE"] || "";
+ if (filePath) {
return (0, file_command_1.issueFileCommand)("STATE", (0, file_command_1.prepareKeyValueMessage)(name, value2));
}
(0, command_1.issueCommand)("save-state", { name }, (0, utils_1.toCommandValue)(value2));
@@ -19814,9 +19821,9 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
}
});
-// node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
+// ../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
var require_ansi_regex = __commonJS({
- "node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports, module) {
+ "../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports, module) {
"use strict";
module.exports = ({ onlyFirst = false } = {}) => {
const pattern = [
@@ -19828,18 +19835,18 @@ var require_ansi_regex = __commonJS({
}
});
-// node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
+// ../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
var require_strip_ansi = __commonJS({
- "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module) {
+ "../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module) {
"use strict";
var ansiRegex = require_ansi_regex();
- module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;
+ module.exports = (string3) => typeof string3 === "string" ? string3.replace(ansiRegex(), "") : string3;
}
});
-// node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
+// ../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
var require_is_fullwidth_code_point = __commonJS({
- "node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports, module) {
+ "../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports, module) {
"use strict";
var isFullwidthCodePoint = (codePoint) => {
if (Number.isNaN(codePoint)) {
@@ -19870,9 +19877,9 @@ var require_is_fullwidth_code_point = __commonJS({
}
});
-// node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
+// ../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
var require_emoji_regex = __commonJS({
- "node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports, module) {
+ "../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports, module) {
"use strict";
module.exports = function() {
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83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DC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
@@ -19880,25 +19887,25 @@ var require_emoji_regex = __commonJS({
}
});
-// node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
+// ../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
var require_string_width = __commonJS({
- "node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports, module) {
+ "../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports, module) {
"use strict";
var stripAnsi = require_strip_ansi();
var isFullwidthCodePoint = require_is_fullwidth_code_point();
- var emojiRegex2 = require_emoji_regex();
- var stringWidth = (string2) => {
- if (typeof string2 !== "string" || string2.length === 0) {
+ var emojiRegex5 = require_emoji_regex();
+ var stringWidth = (string3) => {
+ if (typeof string3 !== "string" || string3.length === 0) {
return 0;
}
- string2 = stripAnsi(string2);
- if (string2.length === 0) {
+ string3 = stripAnsi(string3);
+ if (string3.length === 0) {
return 0;
}
- string2 = string2.replace(emojiRegex2(), " ");
+ string3 = string3.replace(emojiRegex5(), " ");
let width = 0;
- for (let i = 0; i < string2.length; i++) {
- const code = string2.codePointAt(i);
+ for (let i = 0; i < string3.length; i++) {
+ const code = string3.codePointAt(i);
if (code <= 31 || code >= 127 && code <= 159) {
continue;
}
@@ -19917,9 +19924,9 @@ var require_string_width = __commonJS({
}
});
-// node_modules/.pnpm/astral-regex@2.0.0/node_modules/astral-regex/index.js
+// ../node_modules/.pnpm/astral-regex@2.0.0/node_modules/astral-regex/index.js
var require_astral_regex = __commonJS({
- "node_modules/.pnpm/astral-regex@2.0.0/node_modules/astral-regex/index.js"(exports, module) {
+ "../node_modules/.pnpm/astral-regex@2.0.0/node_modules/astral-regex/index.js"(exports, module) {
"use strict";
var regex3 = "[\uD800-\uDBFF][\uDC00-\uDFFF]";
var astralRegex = (options) => options && options.exact ? new RegExp(`^${regex3}$`) : new RegExp(regex3, "g");
@@ -19927,9 +19934,9 @@ var require_astral_regex = __commonJS({
}
});
-// node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
+// ../node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
var require_color_name = __commonJS({
- "node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js"(exports, module) {
+ "../node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js"(exports, module) {
"use strict";
module.exports = {
"aliceblue": [240, 248, 255],
@@ -20084,9 +20091,9 @@ var require_color_name = __commonJS({
}
});
-// node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js
+// ../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js
var require_conversions = __commonJS({
- "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js"(exports, module) {
+ "../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js"(exports, module) {
var cssKeywords = require_color_name();
var reverseKeywords = {};
for (const key of Object.keys(cssKeywords)) {
@@ -20563,9 +20570,9 @@ var require_conversions = __commonJS({
return [r, g, b];
};
convert.rgb.hex = function(args2) {
- const integer2 = ((Math.round(args2[0]) & 255) << 16) + ((Math.round(args2[1]) & 255) << 8) + (Math.round(args2[2]) & 255);
- const string2 = integer2.toString(16).toUpperCase();
- return "000000".substring(string2.length) + string2;
+ const integer3 = ((Math.round(args2[0]) & 255) << 16) + ((Math.round(args2[1]) & 255) << 8) + (Math.round(args2[2]) & 255);
+ const string3 = integer3.toString(16).toUpperCase();
+ return "000000".substring(string3.length) + string3;
};
convert.hex.rgb = function(args2) {
const match2 = args2.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
@@ -20578,10 +20585,10 @@ var require_conversions = __commonJS({
return char + char;
}).join("");
}
- const integer2 = parseInt(colorString, 16);
- const r = integer2 >> 16 & 255;
- const g = integer2 >> 8 & 255;
- const b = integer2 & 255;
+ const integer3 = parseInt(colorString, 16);
+ const r = integer3 >> 16 & 255;
+ const g = integer3 >> 8 & 255;
+ const b = integer3 & 255;
return [r, g, b];
};
convert.rgb.hcg = function(rgb) {
@@ -20744,9 +20751,9 @@ var require_conversions = __commonJS({
};
convert.gray.hex = function(gray) {
const val = Math.round(gray[0] / 100 * 255) & 255;
- const integer2 = (val << 16) + (val << 8) + val;
- const string2 = integer2.toString(16).toUpperCase();
- return "000000".substring(string2.length) + string2;
+ const integer3 = (val << 16) + (val << 8) + val;
+ const string3 = integer3.toString(16).toUpperCase();
+ return "000000".substring(string3.length) + string3;
};
convert.rgb.gray = function(rgb) {
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
@@ -20755,9 +20762,9 @@ var require_conversions = __commonJS({
}
});
-// node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js
+// ../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js
var require_route = __commonJS({
- "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js"(exports, module) {
+ "../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js"(exports, module) {
var conversions = require_conversions();
function buildGraph() {
const graph = {};
@@ -20797,15 +20804,15 @@ var require_route = __commonJS({
};
}
function wrapConversion(toModel, graph) {
- const path4 = [graph[toModel].parent, toModel];
+ const path3 = [graph[toModel].parent, toModel];
let fn2 = conversions[graph[toModel].parent][toModel];
let cur = graph[toModel].parent;
while (graph[cur].parent) {
- path4.unshift(graph[cur].parent);
+ path3.unshift(graph[cur].parent);
fn2 = link(conversions[graph[cur].parent][cur], fn2);
cur = graph[cur].parent;
}
- fn2.conversion = path4;
+ fn2.conversion = path3;
return fn2;
}
module.exports = function(fromModel) {
@@ -20825,9 +20832,9 @@ var require_route = __commonJS({
}
});
-// node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js
+// ../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js
var require_color_convert = __commonJS({
- "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"(exports, module) {
+ "../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"(exports, module) {
var conversions = require_conversions();
var route = require_route();
var convert = {};
@@ -20886,9 +20893,9 @@ var require_color_convert = __commonJS({
}
});
-// node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js
+// ../node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js
var require_ansi_styles = __commonJS({
- "node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js"(exports, module) {
+ "../node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js"(exports, module) {
"use strict";
var wrapAnsi16 = (fn2, offset) => (...args2) => {
const code = fn2(...args2);
@@ -20904,10 +20911,10 @@ var require_ansi_styles = __commonJS({
};
var ansi2ansi = (n) => n;
var rgb2rgb = (r, g, b) => [r, g, b];
- var setLazyProperty = (object2, property, get) => {
+ var setLazyProperty = (object2, property, get2) => {
Object.defineProperty(object2, property, {
get: () => {
- const value2 = get();
+ const value2 = get2();
Object.defineProperty(object2, property, {
value: value2,
enumerable: true,
@@ -21028,9 +21035,9 @@ var require_ansi_styles = __commonJS({
}
});
-// node_modules/.pnpm/slice-ansi@4.0.0/node_modules/slice-ansi/index.js
+// ../node_modules/.pnpm/slice-ansi@4.0.0/node_modules/slice-ansi/index.js
var require_slice_ansi = __commonJS({
- "node_modules/.pnpm/slice-ansi@4.0.0/node_modules/slice-ansi/index.js"(exports, module) {
+ "../node_modules/.pnpm/slice-ansi@4.0.0/node_modules/slice-ansi/index.js"(exports, module) {
"use strict";
var isFullwidthCodePoint = require_is_fullwidth_code_point();
var astralRegex = require_astral_regex();
@@ -21072,8 +21079,8 @@ var require_slice_ansi = __commonJS({
}
return output.join("");
};
- module.exports = (string2, begin, end) => {
- const characters = [...string2];
+ module.exports = (string3, begin, end) => {
+ const characters = [...string3];
const ansiCodes = [];
let stringEnd = typeof end === "number" ? end : characters.length;
let isInsideEscape = false;
@@ -21083,7 +21090,7 @@ var require_slice_ansi = __commonJS({
for (const [index, character] of characters.entries()) {
let leftEscape = false;
if (ESCAPES.includes(character)) {
- const code = /\d[^m]*/.exec(string2.slice(index, index + 18));
+ const code = /\d[^m]*/.exec(string3.slice(index, index + 18));
ansiCode = code && code.length > 0 ? code[0] : void 0;
if (visible < stringEnd) {
isInsideEscape = true;
@@ -21118,9 +21125,9 @@ var require_slice_ansi = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/getBorderCharacters.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/getBorderCharacters.js
var require_getBorderCharacters = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/getBorderCharacters.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/getBorderCharacters.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBorderCharacters = void 0;
@@ -21227,9 +21234,9 @@ var require_getBorderCharacters = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/utils.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/utils.js
var require_utils3 = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/utils.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/utils.js"(exports) {
"use strict";
var __importDefault = exports && exports.__importDefault || function(mod) {
return mod && mod.__esModule ? mod : { "default": mod };
@@ -21295,8 +21302,8 @@ var require_utils3 = __commonJS({
}, 0);
};
exports.sumArray = sumArray;
- var extractTruncates = (config) => {
- return config.columns.map(({ truncate }) => {
+ var extractTruncates = (config2) => {
+ return config2.columns.map(({ truncate }) => {
return truncate;
});
};
@@ -21330,9 +21337,9 @@ var require_utils3 = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/alignString.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/alignString.js
var require_alignString = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/alignString.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/alignString.js"(exports) {
"use strict";
var __importDefault = exports && exports.__importDefault || function(mod) {
return mod && mod.__esModule ? mod : { "default": mod };
@@ -21391,19 +21398,19 @@ var require_alignString = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/alignTableData.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/alignTableData.js
var require_alignTableData = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/alignTableData.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/alignTableData.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.alignTableData = void 0;
var alignString_1 = require_alignString();
- var alignTableData = (rows, config) => {
+ var alignTableData = (rows, config2) => {
return rows.map((row, rowIndex) => {
return row.map((cell, cellIndex) => {
var _a;
- const { width, alignment } = config.columns[cellIndex];
- const containingRange = (_a = config.spanningCellManager) === null || _a === void 0 ? void 0 : _a.getContainingRange({
+ const { width, alignment } = config2.columns[cellIndex];
+ const containingRange = (_a = config2.spanningCellManager) === null || _a === void 0 ? void 0 : _a.getContainingRange({
col: cellIndex,
row: rowIndex
}, { mapped: true });
@@ -21418,9 +21425,9 @@ var require_alignTableData = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/wrapString.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/wrapString.js
var require_wrapString = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/wrapString.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/wrapString.js"(exports) {
"use strict";
var __importDefault = exports && exports.__importDefault || function(mod) {
return mod && mod.__esModule ? mod : { "default": mod };
@@ -21442,9 +21449,9 @@ var require_wrapString = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/wrapWord.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/wrapWord.js
var require_wrapWord = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/wrapWord.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/wrapWord.js"(exports) {
"use strict";
var __importDefault = exports && exports.__importDefault || function(mod) {
return mod && mod.__esModule ? mod : { "default": mod };
@@ -21487,9 +21494,9 @@ var require_wrapWord = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/wrapCell.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/wrapCell.js
var require_wrapCell = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/wrapCell.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/wrapCell.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapCell = void 0;
@@ -21514,9 +21521,9 @@ var require_wrapCell = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateCellHeight.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateCellHeight.js
var require_calculateCellHeight = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateCellHeight.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateCellHeight.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.calculateCellHeight = void 0;
@@ -21528,26 +21535,26 @@ var require_calculateCellHeight = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateRowHeights.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateRowHeights.js
var require_calculateRowHeights = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateRowHeights.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateRowHeights.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.calculateRowHeights = void 0;
var calculateCellHeight_1 = require_calculateCellHeight();
var utils_1 = require_utils3();
- var calculateRowHeights = (rows, config) => {
+ var calculateRowHeights = (rows, config2) => {
const rowHeights = [];
for (const [rowIndex, row] of rows.entries()) {
let rowHeight = 1;
row.forEach((cell, cellIndex) => {
var _a;
- const containingRange = (_a = config.spanningCellManager) === null || _a === void 0 ? void 0 : _a.getContainingRange({
+ const containingRange = (_a = config2.spanningCellManager) === null || _a === void 0 ? void 0 : _a.getContainingRange({
col: cellIndex,
row: rowIndex
});
if (!containingRange) {
- const cellHeight = (0, calculateCellHeight_1.calculateCellHeight)(cell, config.columns[cellIndex].width, config.columns[cellIndex].wrapWord);
+ const cellHeight = (0, calculateCellHeight_1.calculateCellHeight)(cell, config2.columns[cellIndex].width, config2.columns[cellIndex].wrapWord);
rowHeight = Math.max(rowHeight, cellHeight);
return;
}
@@ -21557,7 +21564,7 @@ var require_calculateRowHeights = __commonJS({
const totalHorizontalBorderHeight = bottomRight.row - topLeft.row;
const totalHiddenHorizontalBorderHeight = (0, utils_1.sequence)(topLeft.row + 1, bottomRight.row).filter((horizontalBorderIndex) => {
var _a2;
- return !((_a2 = config.drawHorizontalLine) === null || _a2 === void 0 ? void 0 : _a2.call(config, horizontalBorderIndex, rows.length));
+ return !((_a2 = config2.drawHorizontalLine) === null || _a2 === void 0 ? void 0 : _a2.call(config2, horizontalBorderIndex, rows.length));
}).length;
const cellHeight = height - totalOccupiedSpanningCellHeight - totalHorizontalBorderHeight + totalHiddenHorizontalBorderHeight;
rowHeight = Math.max(rowHeight, cellHeight);
@@ -21571,9 +21578,9 @@ var require_calculateRowHeights = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawContent.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawContent.js
var require_drawContent = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawContent.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawContent.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.drawContent = void 0;
@@ -21625,9 +21632,9 @@ var require_drawContent = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawBorder.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawBorder.js
var require_drawBorder = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawBorder.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawBorder.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createTableBorderGetter = exports.drawBorderBottom = exports.drawBorderJoin = exports.drawBorderTop = exports.drawBorder = exports.createSeparatorGetter = exports.drawBorderSegments = void 0;
@@ -21830,15 +21837,15 @@ var require_drawBorder = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawRow.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawRow.js
var require_drawRow = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawRow.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawRow.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.drawRow = void 0;
var drawContent_1 = require_drawContent();
- var drawRow = (row, config) => {
- const { border, drawVerticalLine, rowIndex, spanningCellManager } = config;
+ var drawRow = (row, config2) => {
+ const { border, drawVerticalLine, rowIndex, spanningCellManager } = config2;
return (0, drawContent_1.drawContent)({
contents: row,
drawSeparator: drawVerticalLine,
@@ -21860,9 +21867,9 @@ var require_drawRow = __commonJS({
}
});
-// node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
+// ../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
var require_fast_deep_equal2 = __commonJS({
- "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
+ "../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
"use strict";
module.exports = function equal(a, b) {
if (a === b) return true;
@@ -21895,9 +21902,9 @@ var require_fast_deep_equal2 = __commonJS({
}
});
-// node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js
+// ../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js
var require_equal = __commonJS({
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js"(exports) {
+ "../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var equal = require_fast_deep_equal2();
@@ -21906,9 +21913,9 @@ var require_equal = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/generated/validators.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/generated/validators.js
var require_validators = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/generated/validators.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/generated/validators.js"(exports) {
"use strict";
exports["config.json"] = validate43;
var schema13 = {
@@ -24431,9 +24438,9 @@ var require_validators = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/validateConfig.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/validateConfig.js
var require_validateConfig = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/validateConfig.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/validateConfig.js"(exports) {
"use strict";
var __importDefault = exports && exports.__importDefault || function(mod) {
return mod && mod.__esModule ? mod : { "default": mod };
@@ -24441,17 +24448,17 @@ var require_validateConfig = __commonJS({
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateConfig = void 0;
var validators_1 = __importDefault(require_validators());
- var validateConfig = (schemaId, config) => {
- const validate = validators_1.default[schemaId];
- if (!validate(config) && validate.errors) {
- const errors = validate.errors.map((error2) => {
+ var validateConfig = (schemaId, config2) => {
+ const validate2 = validators_1.default[schemaId];
+ if (!validate2(config2) && validate2.errors) {
+ const errors = validate2.errors.map((error41) => {
return {
- message: error2.message,
- params: error2.params,
- schemaPath: error2.schemaPath
+ message: error41.message,
+ params: error41.params,
+ schemaPath: error41.schemaPath
};
});
- console.log("config", config);
+ console.log("config", config2);
console.log("errors", errors);
throw new Error("Invalid config.");
}
@@ -24460,9 +24467,9 @@ var require_validateConfig = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/makeStreamConfig.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/makeStreamConfig.js
var require_makeStreamConfig = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/makeStreamConfig.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/makeStreamConfig.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeStreamConfig = void 0;
@@ -24482,27 +24489,27 @@ var require_makeStreamConfig = __commonJS({
};
});
};
- var makeStreamConfig = (config) => {
- (0, validateConfig_1.validateConfig)("streamConfig.json", config);
- if (config.columnDefault.width === void 0) {
+ var makeStreamConfig = (config2) => {
+ (0, validateConfig_1.validateConfig)("streamConfig.json", config2);
+ if (config2.columnDefault.width === void 0) {
throw new Error("Must provide config.columnDefault.width when creating a stream.");
}
return {
drawVerticalLine: () => {
return true;
},
- ...config,
- border: (0, utils_1.makeBorderConfig)(config.border),
- columns: makeColumnsConfig(config.columnCount, config.columns, config.columnDefault)
+ ...config2,
+ border: (0, utils_1.makeBorderConfig)(config2.border),
+ columns: makeColumnsConfig(config2.columnCount, config2.columns, config2.columnDefault)
};
};
exports.makeStreamConfig = makeStreamConfig;
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/mapDataUsingRowHeights.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/mapDataUsingRowHeights.js
var require_mapDataUsingRowHeights = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/mapDataUsingRowHeights.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/mapDataUsingRowHeights.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapDataUsingRowHeights = exports.padCellVertically = void 0;
@@ -24526,7 +24533,7 @@ var require_mapDataUsingRowHeights = __commonJS({
];
};
exports.padCellVertically = padCellVertically;
- var mapDataUsingRowHeights = (unmappedRows, rowHeights, config) => {
+ var mapDataUsingRowHeights = (unmappedRows, rowHeights, config2) => {
const nColumns = unmappedRows[0].length;
const mappedRows = unmappedRows.map((unmappedRow, unmappedRowIndex) => {
const outputRowHeight = rowHeights[unmappedRowIndex];
@@ -24535,7 +24542,7 @@ var require_mapDataUsingRowHeights = __commonJS({
});
unmappedRow.forEach((cell, cellIndex) => {
var _a;
- const containingRange = (_a = config.spanningCellManager) === null || _a === void 0 ? void 0 : _a.getContainingRange({
+ const containingRange = (_a = config2.spanningCellManager) === null || _a === void 0 ? void 0 : _a.getContainingRange({
col: cellIndex,
row: unmappedRowIndex
});
@@ -24545,8 +24552,8 @@ var require_mapDataUsingRowHeights = __commonJS({
});
return;
}
- const cellLines = (0, wrapCell_1.wrapCell)(cell, config.columns[cellIndex].width, config.columns[cellIndex].wrapWord);
- const paddedCellLines = (0, exports.padCellVertically)(cellLines, outputRowHeight, config.columns[cellIndex].verticalAlignment);
+ const cellLines = (0, wrapCell_1.wrapCell)(cell, config2.columns[cellIndex].width, config2.columns[cellIndex].wrapWord);
+ const paddedCellLines = (0, exports.padCellVertically)(cellLines, outputRowHeight, config2.columns[cellIndex].verticalAlignment);
paddedCellLines.forEach((cellLine, cellLineIndex) => {
outputRow[cellLineIndex][cellIndex] = cellLine;
});
@@ -24559,9 +24566,9 @@ var require_mapDataUsingRowHeights = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/padTableData.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/padTableData.js
var require_padTableData = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/padTableData.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/padTableData.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.padTableData = exports.padString = void 0;
@@ -24569,18 +24576,18 @@ var require_padTableData = __commonJS({
return " ".repeat(paddingLeft) + input + " ".repeat(paddingRight);
};
exports.padString = padString;
- var padTableData = (rows, config) => {
+ var padTableData = (rows, config2) => {
return rows.map((cells, rowIndex) => {
return cells.map((cell, cellIndex) => {
var _a;
- const containingRange = (_a = config.spanningCellManager) === null || _a === void 0 ? void 0 : _a.getContainingRange({
+ const containingRange = (_a = config2.spanningCellManager) === null || _a === void 0 ? void 0 : _a.getContainingRange({
col: cellIndex,
row: rowIndex
}, { mapped: true });
if (containingRange) {
return cell;
}
- const { paddingLeft, paddingRight } = config.columns[cellIndex];
+ const { paddingLeft, paddingRight } = config2.columns[cellIndex];
return (0, exports.padString)(cell, paddingLeft, paddingRight);
});
});
@@ -24589,9 +24596,9 @@ var require_padTableData = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/stringifyTableData.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/stringifyTableData.js
var require_stringifyTableData = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/stringifyTableData.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/stringifyTableData.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stringifyTableData = void 0;
@@ -24607,12 +24614,12 @@ var require_stringifyTableData = __commonJS({
}
});
-// node_modules/.pnpm/lodash.truncate@4.4.2/node_modules/lodash.truncate/index.js
+// ../node_modules/.pnpm/lodash.truncate@4.4.2/node_modules/lodash.truncate/index.js
var require_lodash = __commonJS({
- "node_modules/.pnpm/lodash.truncate@4.4.2/node_modules/lodash.truncate/index.js"(exports, module) {
+ "../node_modules/.pnpm/lodash.truncate@4.4.2/node_modules/lodash.truncate/index.js"(exports, module) {
var DEFAULT_TRUNC_LENGTH = 30;
var DEFAULT_TRUNC_OMISSION = "...";
- var INFINITY = 1 / 0;
+ var INFINITY2 = 1 / 0;
var MAX_INTEGER = 17976931348623157e292;
var NAN = 0 / 0;
var regexpTag = "[object RegExp]";
@@ -24657,8 +24664,8 @@ var require_lodash = __commonJS({
})();
var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
var asciiSize = baseProperty("length");
- function asciiToArray(string2) {
- return string2.split("");
+ function asciiToArray(string3) {
+ return string3.split("");
}
function baseProperty(key) {
return function(object2) {
@@ -24670,24 +24677,24 @@ var require_lodash = __commonJS({
return func(value2);
};
}
- function hasUnicode(string2) {
- return reHasUnicode.test(string2);
+ function hasUnicode(string3) {
+ return reHasUnicode.test(string3);
}
- function stringSize(string2) {
- return hasUnicode(string2) ? unicodeSize(string2) : asciiSize(string2);
+ function stringSize(string3) {
+ return hasUnicode(string3) ? unicodeSize(string3) : asciiSize(string3);
}
- function stringToArray(string2) {
- return hasUnicode(string2) ? unicodeToArray(string2) : asciiToArray(string2);
+ function stringToArray(string3) {
+ return hasUnicode(string3) ? unicodeToArray(string3) : asciiToArray(string3);
}
- function unicodeSize(string2) {
+ function unicodeSize(string3) {
var result = reUnicode.lastIndex = 0;
- while (reUnicode.test(string2)) {
+ while (reUnicode.test(string3)) {
result++;
}
return result;
}
- function unicodeToArray(string2) {
- return string2.match(reUnicode) || [];
+ function unicodeToArray(string3) {
+ return string3.match(reUnicode) || [];
}
var objectProto6 = Object.prototype;
var objectToString2 = objectProto6.toString;
@@ -24695,7 +24702,7 @@ var require_lodash = __commonJS({
var symbolProto = Symbol3 ? Symbol3.prototype : void 0;
var symbolToString = symbolProto ? symbolProto.toString : void 0;
function baseIsRegExp(value2) {
- return isObject2(value2) && objectToString2.call(value2) == regexpTag;
+ return isObject4(value2) && objectToString2.call(value2) == regexpTag;
}
function baseSlice(array, start, end) {
var index = -1, length = array.length;
@@ -24714,7 +24721,7 @@ var require_lodash = __commonJS({
}
return result;
}
- function baseToString(value2) {
+ function baseToString2(value2) {
if (typeof value2 == "string") {
return value2;
}
@@ -24722,30 +24729,30 @@ var require_lodash = __commonJS({
return symbolToString ? symbolToString.call(value2) : "";
}
var result = value2 + "";
- return result == "0" && 1 / value2 == -INFINITY ? "-0" : result;
+ return result == "0" && 1 / value2 == -INFINITY2 ? "-0" : result;
}
function castSlice(array, start, end) {
var length = array.length;
end = end === void 0 ? length : end;
return !start && end >= length ? array : baseSlice(array, start, end);
}
- function isObject2(value2) {
+ function isObject4(value2) {
var type2 = typeof value2;
return !!value2 && (type2 == "object" || type2 == "function");
}
- function isObjectLike(value2) {
+ function isObjectLike2(value2) {
return !!value2 && typeof value2 == "object";
}
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
function isSymbol(value2) {
- return typeof value2 == "symbol" || isObjectLike(value2) && objectToString2.call(value2) == symbolTag;
+ return typeof value2 == "symbol" || isObjectLike2(value2) && objectToString2.call(value2) == symbolTag;
}
function toFinite(value2) {
if (!value2) {
return value2 === 0 ? value2 : 0;
}
value2 = toNumber(value2);
- if (value2 === INFINITY || value2 === -INFINITY) {
+ if (value2 === INFINITY2 || value2 === -INFINITY2) {
var sign = value2 < 0 ? -1 : 1;
return sign * MAX_INTEGER;
}
@@ -24762,9 +24769,9 @@ var require_lodash = __commonJS({
if (isSymbol(value2)) {
return NAN;
}
- if (isObject2(value2)) {
+ if (isObject4(value2)) {
var other = typeof value2.valueOf == "function" ? value2.valueOf() : value2;
- value2 = isObject2(other) ? other + "" : other;
+ value2 = isObject4(other) ? other + "" : other;
}
if (typeof value2 != "string") {
return value2 === 0 ? value2 : +value2;
@@ -24773,30 +24780,30 @@ var require_lodash = __commonJS({
var isBinary = reIsBinary.test(value2);
return isBinary || reIsOctal.test(value2) ? freeParseInt(value2.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value2) ? NAN : +value2;
}
- function toString(value2) {
- return value2 == null ? "" : baseToString(value2);
+ function toString2(value2) {
+ return value2 == null ? "" : baseToString2(value2);
}
- function truncate(string2, options) {
+ function truncate(string3, options) {
var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
- if (isObject2(options)) {
+ if (isObject4(options)) {
var separator2 = "separator" in options ? options.separator : separator2;
length = "length" in options ? toInteger(options.length) : length;
- omission = "omission" in options ? baseToString(options.omission) : omission;
+ omission = "omission" in options ? baseToString2(options.omission) : omission;
}
- string2 = toString(string2);
- var strLength = string2.length;
- if (hasUnicode(string2)) {
- var strSymbols = stringToArray(string2);
+ string3 = toString2(string3);
+ var strLength = string3.length;
+ if (hasUnicode(string3)) {
+ var strSymbols = stringToArray(string3);
strLength = strSymbols.length;
}
if (length >= strLength) {
- return string2;
+ return string3;
}
var end = length - stringSize(omission);
if (end < 1) {
return omission;
}
- var result = strSymbols ? castSlice(strSymbols, 0, end).join("") : string2.slice(0, end);
+ var result = strSymbols ? castSlice(strSymbols, 0, end).join("") : string3.slice(0, end);
if (separator2 === void 0) {
return result + omission;
}
@@ -24804,10 +24811,10 @@ var require_lodash = __commonJS({
end += result.length - end;
}
if (isRegExp(separator2)) {
- if (string2.slice(end).search(separator2)) {
+ if (string3.slice(end).search(separator2)) {
var match2, substring = result;
if (!separator2.global) {
- separator2 = RegExp(separator2.source, toString(reFlags.exec(separator2)) + "g");
+ separator2 = RegExp(separator2.source, toString2(reFlags.exec(separator2)) + "g");
}
separator2.lastIndex = 0;
while (match2 = separator2.exec(substring)) {
@@ -24815,7 +24822,7 @@ var require_lodash = __commonJS({
}
result = result.slice(0, newEnd === void 0 ? end : newEnd);
}
- } else if (string2.indexOf(baseToString(separator2), end) != end) {
+ } else if (string3.indexOf(baseToString2(separator2), end) != end) {
var index = result.lastIndexOf(separator2);
if (index > -1) {
result = result.slice(0, index);
@@ -24827,9 +24834,9 @@ var require_lodash = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/truncateTableData.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/truncateTableData.js
var require_truncateTableData = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/truncateTableData.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/truncateTableData.js"(exports) {
"use strict";
var __importDefault = exports && exports.__importDefault || function(mod) {
return mod && mod.__esModule ? mod : { "default": mod };
@@ -24855,9 +24862,9 @@ var require_truncateTableData = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/createStream.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/createStream.js
var require_createStream = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/createStream.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/createStream.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createStream = void 0;
@@ -24871,60 +24878,60 @@ var require_createStream = __commonJS({
var stringifyTableData_1 = require_stringifyTableData();
var truncateTableData_1 = require_truncateTableData();
var utils_1 = require_utils3();
- var prepareData = (data, config) => {
+ var prepareData = (data, config2) => {
let rows = (0, stringifyTableData_1.stringifyTableData)(data);
- rows = (0, truncateTableData_1.truncateTableData)(rows, (0, utils_1.extractTruncates)(config));
- const rowHeights = (0, calculateRowHeights_1.calculateRowHeights)(rows, config);
- rows = (0, mapDataUsingRowHeights_1.mapDataUsingRowHeights)(rows, rowHeights, config);
- rows = (0, alignTableData_1.alignTableData)(rows, config);
- rows = (0, padTableData_1.padTableData)(rows, config);
+ rows = (0, truncateTableData_1.truncateTableData)(rows, (0, utils_1.extractTruncates)(config2));
+ const rowHeights = (0, calculateRowHeights_1.calculateRowHeights)(rows, config2);
+ rows = (0, mapDataUsingRowHeights_1.mapDataUsingRowHeights)(rows, rowHeights, config2);
+ rows = (0, alignTableData_1.alignTableData)(rows, config2);
+ rows = (0, padTableData_1.padTableData)(rows, config2);
return rows;
};
- var create = (row, columnWidths, config) => {
- const rows = prepareData([row], config);
+ var create = (row, columnWidths, config2) => {
+ const rows = prepareData([row], config2);
const body = rows.map((literalRow) => {
- return (0, drawRow_1.drawRow)(literalRow, config);
+ return (0, drawRow_1.drawRow)(literalRow, config2);
}).join("");
let output;
output = "";
- output += (0, drawBorder_1.drawBorderTop)(columnWidths, config);
+ output += (0, drawBorder_1.drawBorderTop)(columnWidths, config2);
output += body;
- output += (0, drawBorder_1.drawBorderBottom)(columnWidths, config);
+ output += (0, drawBorder_1.drawBorderBottom)(columnWidths, config2);
output = output.trimEnd();
process.stdout.write(output);
};
- var append2 = (row, columnWidths, config) => {
- const rows = prepareData([row], config);
+ var append2 = (row, columnWidths, config2) => {
+ const rows = prepareData([row], config2);
const body = rows.map((literalRow) => {
- return (0, drawRow_1.drawRow)(literalRow, config);
+ return (0, drawRow_1.drawRow)(literalRow, config2);
}).join("");
let output = "";
- const bottom = (0, drawBorder_1.drawBorderBottom)(columnWidths, config);
+ const bottom = (0, drawBorder_1.drawBorderBottom)(columnWidths, config2);
if (bottom !== "\n") {
output = "\r\x1B[K";
}
- output += (0, drawBorder_1.drawBorderJoin)(columnWidths, config);
+ output += (0, drawBorder_1.drawBorderJoin)(columnWidths, config2);
output += body;
output += bottom;
output = output.trimEnd();
process.stdout.write(output);
};
var createStream = (userConfig) => {
- const config = (0, makeStreamConfig_1.makeStreamConfig)(userConfig);
- const columnWidths = Object.values(config.columns).map((column) => {
+ const config2 = (0, makeStreamConfig_1.makeStreamConfig)(userConfig);
+ const columnWidths = Object.values(config2.columns).map((column) => {
return column.width + column.paddingLeft + column.paddingRight;
});
let empty = true;
return {
write: (row) => {
- if (row.length !== config.columnCount) {
+ if (row.length !== config2.columnCount) {
throw new Error("Row cell count does not match the config.columnCount.");
}
if (empty) {
empty = false;
- create(row, columnWidths, config);
+ create(row, columnWidths, config2);
} else {
- append2(row, columnWidths, config);
+ append2(row, columnWidths, config2);
}
}
};
@@ -24933,14 +24940,14 @@ var require_createStream = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateOutputColumnWidths.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateOutputColumnWidths.js
var require_calculateOutputColumnWidths = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateOutputColumnWidths.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateOutputColumnWidths.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.calculateOutputColumnWidths = void 0;
- var calculateOutputColumnWidths = (config) => {
- return config.columns.map((col) => {
+ var calculateOutputColumnWidths = (config2) => {
+ return config2.columns.map((col) => {
return col.paddingLeft + col.width + col.paddingRight;
});
};
@@ -24948,9 +24955,9 @@ var require_calculateOutputColumnWidths = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawTable.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawTable.js
var require_drawTable = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawTable.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/drawTable.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.drawTable = void 0;
@@ -24958,12 +24965,12 @@ var require_drawTable = __commonJS({
var drawContent_1 = require_drawContent();
var drawRow_1 = require_drawRow();
var utils_1 = require_utils3();
- var drawTable = (rows, outputColumnWidths, rowHeights, config) => {
- const { drawHorizontalLine, singleLine } = config;
+ var drawTable = (rows, outputColumnWidths, rowHeights, config2) => {
+ const { drawHorizontalLine, singleLine } = config2;
const contents = (0, utils_1.groupBySizes)(rows, rowHeights).map((group, groupIndex) => {
return group.map((row) => {
return (0, drawRow_1.drawRow)(row, {
- ...config,
+ ...config2,
rowIndex: groupIndex
});
}).join("");
@@ -24979,26 +24986,26 @@ var require_drawTable = __commonJS({
elementType: "row",
rowIndex: -1,
separatorGetter: (0, drawBorder_1.createTableBorderGetter)(outputColumnWidths, {
- ...config,
+ ...config2,
rowCount: contents.length
}),
- spanningCellManager: config.spanningCellManager
+ spanningCellManager: config2.spanningCellManager
});
};
exports.drawTable = drawTable;
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/injectHeaderConfig.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/injectHeaderConfig.js
var require_injectHeaderConfig = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/injectHeaderConfig.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/injectHeaderConfig.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.injectHeaderConfig = void 0;
- var injectHeaderConfig = (rows, config) => {
+ var injectHeaderConfig = (rows, config2) => {
var _a;
- let spanningCellConfig = (_a = config.spanningCells) !== null && _a !== void 0 ? _a : [];
- const headerConfig = config.header;
+ let spanningCellConfig = (_a = config2.spanningCells) !== null && _a !== void 0 ? _a : [];
+ const headerConfig = config2.header;
const adjustedRows = [...rows];
if (headerConfig) {
spanningCellConfig = spanningCellConfig.map(({ row, ...rest }) => {
@@ -25029,9 +25036,9 @@ var require_injectHeaderConfig = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateMaximumColumnWidths.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateMaximumColumnWidths.js
var require_calculateMaximumColumnWidths = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateMaximumColumnWidths.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateMaximumColumnWidths.js"(exports) {
"use strict";
var __importDefault = exports && exports.__importDefault || function(mod) {
return mod && mod.__esModule ? mod : { "default": mod };
@@ -25069,9 +25076,9 @@ var require_calculateMaximumColumnWidths = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/alignSpanningCell.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/alignSpanningCell.js
var require_alignSpanningCell = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/alignSpanningCell.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/alignSpanningCell.js"(exports) {
"use strict";
var __importDefault = exports && exports.__importDefault || function(mod) {
return mod && mod.__esModule ? mod : { "default": mod };
@@ -25118,9 +25125,9 @@ var require_alignSpanningCell = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateSpanningCellWidth.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateSpanningCellWidth.js
var require_calculateSpanningCellWidth = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateSpanningCellWidth.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/calculateSpanningCellWidth.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.calculateSpanningCellWidth = void 0;
@@ -25144,9 +25151,9 @@ var require_calculateSpanningCellWidth = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/makeRangeConfig.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/makeRangeConfig.js
var require_makeRangeConfig = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/makeRangeConfig.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/makeRangeConfig.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeRangeConfig = void 0;
@@ -25169,9 +25176,9 @@ var require_makeRangeConfig = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/spanningCellManager.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/spanningCellManager.js
var require_spanningCellManager = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/spanningCellManager.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/spanningCellManager.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSpanningCellManager = void 0;
@@ -25225,8 +25232,8 @@ var require_spanningCellManager = __commonJS({
};
var createSpanningCellManager = (parameters) => {
const { spanningCellConfigs, columnsConfig } = parameters;
- const ranges = spanningCellConfigs.map((config) => {
- return (0, makeRangeConfig_1.makeRangeConfig)(config, columnsConfig);
+ const ranges = spanningCellConfigs.map((config2) => {
+ return (0, makeRangeConfig_1.makeRangeConfig)(config2, columnsConfig);
});
const rangeCache = {};
let rowHeights = [];
@@ -25276,9 +25283,9 @@ var require_spanningCellManager = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/validateSpanningCellConfig.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/validateSpanningCellConfig.js
var require_validateSpanningCellConfig = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/validateSpanningCellConfig.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/validateSpanningCellConfig.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateSpanningCellConfig = void 0;
@@ -25288,8 +25295,8 @@ var require_validateSpanningCellConfig = __commonJS({
};
var validateSpanningCellConfig = (rows, configs) => {
const [nRow, nCol] = [rows.length, rows[0].length];
- configs.forEach((config, configIndex) => {
- const { colSpan, rowSpan } = config;
+ configs.forEach((config2, configIndex) => {
+ const { colSpan, rowSpan } = config2;
if (colSpan === void 0 && rowSpan === void 0) {
throw new Error(`Expect at least colSpan or rowSpan is provided in config.spanningCells[${configIndex}]`);
}
@@ -25324,9 +25331,9 @@ var require_validateSpanningCellConfig = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/makeTableConfig.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/makeTableConfig.js
var require_makeTableConfig = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/makeTableConfig.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/makeTableConfig.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeTableConfig = void 0;
@@ -25351,25 +25358,25 @@ var require_makeTableConfig = __commonJS({
};
});
};
- var makeTableConfig = (rows, config = {}, injectedSpanningCellConfig) => {
+ var makeTableConfig = (rows, config2 = {}, injectedSpanningCellConfig) => {
var _a, _b, _c, _d, _e;
- (0, validateConfig_1.validateConfig)("config.json", config);
- (0, validateSpanningCellConfig_1.validateSpanningCellConfig)(rows, (_a = config.spanningCells) !== null && _a !== void 0 ? _a : []);
- const spanningCellConfigs = (_b = injectedSpanningCellConfig !== null && injectedSpanningCellConfig !== void 0 ? injectedSpanningCellConfig : config.spanningCells) !== null && _b !== void 0 ? _b : [];
- const columnsConfig = makeColumnsConfig(rows, config.columns, config.columnDefault, spanningCellConfigs);
- const drawVerticalLine = (_c = config.drawVerticalLine) !== null && _c !== void 0 ? _c : (() => {
+ (0, validateConfig_1.validateConfig)("config.json", config2);
+ (0, validateSpanningCellConfig_1.validateSpanningCellConfig)(rows, (_a = config2.spanningCells) !== null && _a !== void 0 ? _a : []);
+ const spanningCellConfigs = (_b = injectedSpanningCellConfig !== null && injectedSpanningCellConfig !== void 0 ? injectedSpanningCellConfig : config2.spanningCells) !== null && _b !== void 0 ? _b : [];
+ const columnsConfig = makeColumnsConfig(rows, config2.columns, config2.columnDefault, spanningCellConfigs);
+ const drawVerticalLine = (_c = config2.drawVerticalLine) !== null && _c !== void 0 ? _c : (() => {
return true;
});
- const drawHorizontalLine = (_d = config.drawHorizontalLine) !== null && _d !== void 0 ? _d : (() => {
+ const drawHorizontalLine = (_d = config2.drawHorizontalLine) !== null && _d !== void 0 ? _d : (() => {
return true;
});
return {
- ...config,
- border: (0, utils_1.makeBorderConfig)(config.border),
+ ...config2,
+ border: (0, utils_1.makeBorderConfig)(config2.border),
columns: columnsConfig,
drawHorizontalLine,
drawVerticalLine,
- singleLine: (_e = config.singleLine) !== null && _e !== void 0 ? _e : false,
+ singleLine: (_e = config2.singleLine) !== null && _e !== void 0 ? _e : false,
spanningCellManager: (0, spanningCellManager_1.createSpanningCellManager)({
columnsConfig,
drawHorizontalLine,
@@ -25383,9 +25390,9 @@ var require_makeTableConfig = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/validateTableData.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/validateTableData.js
var require_validateTableData = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/validateTableData.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/validateTableData.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateTableData = void 0;
@@ -25419,9 +25426,9 @@ var require_validateTableData = __commonJS({
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/table.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/table.js
var require_table = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/table.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/table.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.table = void 0;
@@ -25441,32 +25448,32 @@ var require_table = __commonJS({
(0, validateTableData_1.validateTableData)(data);
let rows = (0, stringifyTableData_1.stringifyTableData)(data);
const [injectedRows, injectedSpanningCellConfig] = (0, injectHeaderConfig_1.injectHeaderConfig)(rows, userConfig);
- const config = (0, makeTableConfig_1.makeTableConfig)(injectedRows, userConfig, injectedSpanningCellConfig);
- rows = (0, truncateTableData_1.truncateTableData)(injectedRows, (0, utils_1.extractTruncates)(config));
- const rowHeights = (0, calculateRowHeights_1.calculateRowHeights)(rows, config);
- config.spanningCellManager.setRowHeights(rowHeights);
- config.spanningCellManager.setRowIndexMapping(rowHeights);
- rows = (0, mapDataUsingRowHeights_1.mapDataUsingRowHeights)(rows, rowHeights, config);
- rows = (0, alignTableData_1.alignTableData)(rows, config);
- rows = (0, padTableData_1.padTableData)(rows, config);
- const outputColumnWidths = (0, calculateOutputColumnWidths_1.calculateOutputColumnWidths)(config);
- return (0, drawTable_1.drawTable)(rows, outputColumnWidths, rowHeights, config);
+ const config2 = (0, makeTableConfig_1.makeTableConfig)(injectedRows, userConfig, injectedSpanningCellConfig);
+ rows = (0, truncateTableData_1.truncateTableData)(injectedRows, (0, utils_1.extractTruncates)(config2));
+ const rowHeights = (0, calculateRowHeights_1.calculateRowHeights)(rows, config2);
+ config2.spanningCellManager.setRowHeights(rowHeights);
+ config2.spanningCellManager.setRowIndexMapping(rowHeights);
+ rows = (0, mapDataUsingRowHeights_1.mapDataUsingRowHeights)(rows, rowHeights, config2);
+ rows = (0, alignTableData_1.alignTableData)(rows, config2);
+ rows = (0, padTableData_1.padTableData)(rows, config2);
+ const outputColumnWidths = (0, calculateOutputColumnWidths_1.calculateOutputColumnWidths)(config2);
+ return (0, drawTable_1.drawTable)(rows, outputColumnWidths, rowHeights, config2);
};
exports.table = table2;
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/types/api.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/types/api.js
var require_api2 = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/types/api.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/types/api.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
}
});
-// node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/index.js
+// ../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/index.js
var require_src = __commonJS({
- "node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/index.js"(exports) {
+ "../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/index.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
if (k2 === void 0) k2 = k;
@@ -25498,10 +25505,45290 @@ var require_src = __commonJS({
}
});
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js
+var util2, objectUtil2, ZodParsedType2, getParsedType2;
+var init_util = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js"() {
+ (function(util3) {
+ util3.assertEqual = (_) => {
+ };
+ function assertIs2(_arg) {
+ }
+ util3.assertIs = assertIs2;
+ function assertNever2(_x) {
+ throw new Error();
+ }
+ util3.assertNever = assertNever2;
+ util3.arrayToEnum = (items) => {
+ const obj = {};
+ for (const item of items) {
+ obj[item] = item;
+ }
+ return obj;
+ };
+ util3.getValidEnumValues = (obj) => {
+ const validKeys = util3.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
+ const filtered = {};
+ for (const k of validKeys) {
+ filtered[k] = obj[k];
+ }
+ return util3.objectValues(filtered);
+ };
+ util3.objectValues = (obj) => {
+ return util3.objectKeys(obj).map(function(e) {
+ return obj[e];
+ });
+ };
+ util3.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object2) => {
+ const keys = [];
+ for (const key in object2) {
+ if (Object.prototype.hasOwnProperty.call(object2, key)) {
+ keys.push(key);
+ }
+ }
+ return keys;
+ };
+ util3.find = (arr, checker) => {
+ for (const item of arr) {
+ if (checker(item))
+ return item;
+ }
+ return void 0;
+ };
+ util3.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
+ function joinValues2(array, separator2 = " | ") {
+ return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator2);
+ }
+ util3.joinValues = joinValues2;
+ util3.jsonStringifyReplacer = (_, value2) => {
+ if (typeof value2 === "bigint") {
+ return value2.toString();
+ }
+ return value2;
+ };
+ })(util2 || (util2 = {}));
+ (function(objectUtil4) {
+ objectUtil4.mergeShapes = (first, second) => {
+ return {
+ ...first,
+ ...second
+ // second overwrites first
+ };
+ };
+ })(objectUtil2 || (objectUtil2 = {}));
+ ZodParsedType2 = util2.arrayToEnum([
+ "string",
+ "nan",
+ "number",
+ "integer",
+ "float",
+ "boolean",
+ "date",
+ "bigint",
+ "symbol",
+ "function",
+ "undefined",
+ "null",
+ "array",
+ "object",
+ "unknown",
+ "promise",
+ "void",
+ "never",
+ "map",
+ "set"
+ ]);
+ getParsedType2 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "undefined":
+ return ZodParsedType2.undefined;
+ case "string":
+ return ZodParsedType2.string;
+ case "number":
+ return Number.isNaN(data) ? ZodParsedType2.nan : ZodParsedType2.number;
+ case "boolean":
+ return ZodParsedType2.boolean;
+ case "function":
+ return ZodParsedType2.function;
+ case "bigint":
+ return ZodParsedType2.bigint;
+ case "symbol":
+ return ZodParsedType2.symbol;
+ case "object":
+ if (Array.isArray(data)) {
+ return ZodParsedType2.array;
+ }
+ if (data === null) {
+ return ZodParsedType2.null;
+ }
+ if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
+ return ZodParsedType2.promise;
+ }
+ if (typeof Map !== "undefined" && data instanceof Map) {
+ return ZodParsedType2.map;
+ }
+ if (typeof Set !== "undefined" && data instanceof Set) {
+ return ZodParsedType2.set;
+ }
+ if (typeof Date !== "undefined" && data instanceof Date) {
+ return ZodParsedType2.date;
+ }
+ return ZodParsedType2.object;
+ default:
+ return ZodParsedType2.unknown;
+ }
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js
+var ZodIssueCode2, quotelessJson2, ZodError2;
+var init_ZodError = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js"() {
+ init_util();
+ ZodIssueCode2 = util2.arrayToEnum([
+ "invalid_type",
+ "invalid_literal",
+ "custom",
+ "invalid_union",
+ "invalid_union_discriminator",
+ "invalid_enum_value",
+ "unrecognized_keys",
+ "invalid_arguments",
+ "invalid_return_type",
+ "invalid_date",
+ "invalid_string",
+ "too_small",
+ "too_big",
+ "invalid_intersection_types",
+ "not_multiple_of",
+ "not_finite"
+ ]);
+ quotelessJson2 = (obj) => {
+ const json3 = JSON.stringify(obj, null, 2);
+ return json3.replace(/"([^"]+)":/g, "$1:");
+ };
+ ZodError2 = class _ZodError extends Error {
+ get errors() {
+ return this.issues;
+ }
+ constructor(issues) {
+ super();
+ this.issues = [];
+ this.addIssue = (sub) => {
+ this.issues = [...this.issues, sub];
+ };
+ this.addIssues = (subs = []) => {
+ this.issues = [...this.issues, ...subs];
+ };
+ const actualProto = new.target.prototype;
+ if (Object.setPrototypeOf) {
+ Object.setPrototypeOf(this, actualProto);
+ } else {
+ this.__proto__ = actualProto;
+ }
+ this.name = "ZodError";
+ this.issues = issues;
+ }
+ format(_mapper) {
+ const mapper = _mapper || function(issue2) {
+ return issue2.message;
+ };
+ const fieldErrors = { _errors: [] };
+ const processError = (error41) => {
+ for (const issue2 of error41.issues) {
+ if (issue2.code === "invalid_union") {
+ issue2.unionErrors.map(processError);
+ } else if (issue2.code === "invalid_return_type") {
+ processError(issue2.returnTypeError);
+ } else if (issue2.code === "invalid_arguments") {
+ processError(issue2.argumentsError);
+ } else if (issue2.path.length === 0) {
+ fieldErrors._errors.push(mapper(issue2));
+ } else {
+ let curr = fieldErrors;
+ let i = 0;
+ while (i < issue2.path.length) {
+ const el = issue2.path[i];
+ const terminal = i === issue2.path.length - 1;
+ if (!terminal) {
+ curr[el] = curr[el] || { _errors: [] };
+ } else {
+ curr[el] = curr[el] || { _errors: [] };
+ curr[el]._errors.push(mapper(issue2));
+ }
+ curr = curr[el];
+ i++;
+ }
+ }
+ }
+ };
+ processError(this);
+ return fieldErrors;
+ }
+ static assert(value2) {
+ if (!(value2 instanceof _ZodError)) {
+ throw new Error(`Not a ZodError: ${value2}`);
+ }
+ }
+ toString() {
+ return this.message;
+ }
+ get message() {
+ return JSON.stringify(this.issues, util2.jsonStringifyReplacer, 2);
+ }
+ get isEmpty() {
+ return this.issues.length === 0;
+ }
+ flatten(mapper = (issue2) => issue2.message) {
+ const fieldErrors = {};
+ const formErrors = [];
+ for (const sub of this.issues) {
+ if (sub.path.length > 0) {
+ const firstEl = sub.path[0];
+ fieldErrors[firstEl] = fieldErrors[firstEl] || [];
+ fieldErrors[firstEl].push(mapper(sub));
+ } else {
+ formErrors.push(mapper(sub));
+ }
+ }
+ return { formErrors, fieldErrors };
+ }
+ get formErrors() {
+ return this.flatten();
+ }
+ };
+ ZodError2.create = (issues) => {
+ const error41 = new ZodError2(issues);
+ return error41;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js
+var errorMap2, en_default2;
+var init_en = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js"() {
+ init_ZodError();
+ init_util();
+ errorMap2 = (issue2, _ctx) => {
+ let message;
+ switch (issue2.code) {
+ case ZodIssueCode2.invalid_type:
+ if (issue2.received === ZodParsedType2.undefined) {
+ message = "Required";
+ } else {
+ message = `Expected ${issue2.expected}, received ${issue2.received}`;
+ }
+ break;
+ case ZodIssueCode2.invalid_literal:
+ message = `Invalid literal value, expected ${JSON.stringify(issue2.expected, util2.jsonStringifyReplacer)}`;
+ break;
+ case ZodIssueCode2.unrecognized_keys:
+ message = `Unrecognized key(s) in object: ${util2.joinValues(issue2.keys, ", ")}`;
+ break;
+ case ZodIssueCode2.invalid_union:
+ message = `Invalid input`;
+ break;
+ case ZodIssueCode2.invalid_union_discriminator:
+ message = `Invalid discriminator value. Expected ${util2.joinValues(issue2.options)}`;
+ break;
+ case ZodIssueCode2.invalid_enum_value:
+ message = `Invalid enum value. Expected ${util2.joinValues(issue2.options)}, received '${issue2.received}'`;
+ break;
+ case ZodIssueCode2.invalid_arguments:
+ message = `Invalid function arguments`;
+ break;
+ case ZodIssueCode2.invalid_return_type:
+ message = `Invalid function return type`;
+ break;
+ case ZodIssueCode2.invalid_date:
+ message = `Invalid date`;
+ break;
+ case ZodIssueCode2.invalid_string:
+ if (typeof issue2.validation === "object") {
+ if ("includes" in issue2.validation) {
+ message = `Invalid input: must include "${issue2.validation.includes}"`;
+ if (typeof issue2.validation.position === "number") {
+ message = `${message} at one or more positions greater than or equal to ${issue2.validation.position}`;
+ }
+ } else if ("startsWith" in issue2.validation) {
+ message = `Invalid input: must start with "${issue2.validation.startsWith}"`;
+ } else if ("endsWith" in issue2.validation) {
+ message = `Invalid input: must end with "${issue2.validation.endsWith}"`;
+ } else {
+ util2.assertNever(issue2.validation);
+ }
+ } else if (issue2.validation !== "regex") {
+ message = `Invalid ${issue2.validation}`;
+ } else {
+ message = "Invalid";
+ }
+ break;
+ case ZodIssueCode2.too_small:
+ if (issue2.type === "array")
+ message = `Array must contain ${issue2.exact ? "exactly" : issue2.inclusive ? `at least` : `more than`} ${issue2.minimum} element(s)`;
+ else if (issue2.type === "string")
+ message = `String must contain ${issue2.exact ? "exactly" : issue2.inclusive ? `at least` : `over`} ${issue2.minimum} character(s)`;
+ else if (issue2.type === "number")
+ message = `Number must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${issue2.minimum}`;
+ else if (issue2.type === "bigint")
+ message = `Number must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${issue2.minimum}`;
+ else if (issue2.type === "date")
+ message = `Date must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue2.minimum))}`;
+ else
+ message = "Invalid input";
+ break;
+ case ZodIssueCode2.too_big:
+ if (issue2.type === "array")
+ message = `Array must contain ${issue2.exact ? `exactly` : issue2.inclusive ? `at most` : `less than`} ${issue2.maximum} element(s)`;
+ else if (issue2.type === "string")
+ message = `String must contain ${issue2.exact ? `exactly` : issue2.inclusive ? `at most` : `under`} ${issue2.maximum} character(s)`;
+ else if (issue2.type === "number")
+ message = `Number must be ${issue2.exact ? `exactly` : issue2.inclusive ? `less than or equal to` : `less than`} ${issue2.maximum}`;
+ else if (issue2.type === "bigint")
+ message = `BigInt must be ${issue2.exact ? `exactly` : issue2.inclusive ? `less than or equal to` : `less than`} ${issue2.maximum}`;
+ else if (issue2.type === "date")
+ message = `Date must be ${issue2.exact ? `exactly` : issue2.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue2.maximum))}`;
+ else
+ message = "Invalid input";
+ break;
+ case ZodIssueCode2.custom:
+ message = `Invalid input`;
+ break;
+ case ZodIssueCode2.invalid_intersection_types:
+ message = `Intersection results could not be merged`;
+ break;
+ case ZodIssueCode2.not_multiple_of:
+ message = `Number must be a multiple of ${issue2.multipleOf}`;
+ break;
+ case ZodIssueCode2.not_finite:
+ message = "Number must be finite";
+ break;
+ default:
+ message = _ctx.defaultError;
+ util2.assertNever(issue2);
+ }
+ return { message };
+ };
+ en_default2 = errorMap2;
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js
+function setErrorMap2(map) {
+ overrideErrorMap2 = map;
+}
+function getErrorMap2() {
+ return overrideErrorMap2;
+}
+var overrideErrorMap2;
+var init_errors = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js"() {
+ init_en();
+ overrideErrorMap2 = en_default2;
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
+function addIssueToContext2(ctx, issueData) {
+ const overrideMap = getErrorMap2();
+ const issue2 = makeIssue2({
+ issueData,
+ data: ctx.data,
+ path: ctx.path,
+ errorMaps: [
+ ctx.common.contextualErrorMap,
+ // contextual error map is first priority
+ ctx.schemaErrorMap,
+ // then schema-bound map if available
+ overrideMap,
+ // then global override map
+ overrideMap === en_default2 ? void 0 : en_default2
+ // then global default map
+ ].filter((x) => !!x)
+ });
+ ctx.common.issues.push(issue2);
+}
+var makeIssue2, EMPTY_PATH2, ParseStatus2, INVALID2, DIRTY2, OK2, isAborted2, isDirty2, isValid2, isAsync2;
+var init_parseUtil = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js"() {
+ init_errors();
+ init_en();
+ makeIssue2 = (params) => {
+ const { data, path: path3, errorMaps, issueData } = params;
+ const fullPath = [...path3, ...issueData.path || []];
+ const fullIssue = {
+ ...issueData,
+ path: fullPath
+ };
+ if (issueData.message !== void 0) {
+ return {
+ ...issueData,
+ path: fullPath,
+ message: issueData.message
+ };
+ }
+ let errorMessage = "";
+ const maps = errorMaps.filter((m) => !!m).slice().reverse();
+ for (const map of maps) {
+ errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
+ }
+ return {
+ ...issueData,
+ path: fullPath,
+ message: errorMessage
+ };
+ };
+ EMPTY_PATH2 = [];
+ ParseStatus2 = class _ParseStatus {
+ constructor() {
+ this.value = "valid";
+ }
+ dirty() {
+ if (this.value === "valid")
+ this.value = "dirty";
+ }
+ abort() {
+ if (this.value !== "aborted")
+ this.value = "aborted";
+ }
+ static mergeArray(status, results) {
+ const arrayValue = [];
+ for (const s of results) {
+ if (s.status === "aborted")
+ return INVALID2;
+ if (s.status === "dirty")
+ status.dirty();
+ arrayValue.push(s.value);
+ }
+ return { status: status.value, value: arrayValue };
+ }
+ static async mergeObjectAsync(status, pairs) {
+ const syncPairs = [];
+ for (const pair of pairs) {
+ const key = await pair.key;
+ const value2 = await pair.value;
+ syncPairs.push({
+ key,
+ value: value2
+ });
+ }
+ return _ParseStatus.mergeObjectSync(status, syncPairs);
+ }
+ static mergeObjectSync(status, pairs) {
+ const finalObject = {};
+ for (const pair of pairs) {
+ const { key, value: value2 } = pair;
+ if (key.status === "aborted")
+ return INVALID2;
+ if (value2.status === "aborted")
+ return INVALID2;
+ if (key.status === "dirty")
+ status.dirty();
+ if (value2.status === "dirty")
+ status.dirty();
+ if (key.value !== "__proto__" && (typeof value2.value !== "undefined" || pair.alwaysSet)) {
+ finalObject[key.value] = value2.value;
+ }
+ }
+ return { status: status.value, value: finalObject };
+ }
+ };
+ INVALID2 = Object.freeze({
+ status: "aborted"
+ });
+ DIRTY2 = (value2) => ({ status: "dirty", value: value2 });
+ OK2 = (value2) => ({ status: "valid", value: value2 });
+ isAborted2 = (x) => x.status === "aborted";
+ isDirty2 = (x) => x.status === "dirty";
+ isValid2 = (x) => x.status === "valid";
+ isAsync2 = (x) => typeof Promise !== "undefined" && x instanceof Promise;
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js
+var init_typeAliases = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js"() {
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
+var errorUtil2;
+var init_errorUtil = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js"() {
+ (function(errorUtil4) {
+ errorUtil4.errToObj = (message) => typeof message === "string" ? { message } : message || {};
+ errorUtil4.toString = (message) => typeof message === "string" ? message : message?.message;
+ })(errorUtil2 || (errorUtil2 = {}));
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
+function processCreateParams3(params) {
+ if (!params)
+ return {};
+ const { errorMap: errorMap4, invalid_type_error, required_error, description } = params;
+ if (errorMap4 && (invalid_type_error || required_error)) {
+ throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
+ }
+ if (errorMap4)
+ return { errorMap: errorMap4, description };
+ const customMap = (iss, ctx) => {
+ const { message } = params;
+ if (iss.code === "invalid_enum_value") {
+ return { message: message ?? ctx.defaultError };
+ }
+ if (typeof ctx.data === "undefined") {
+ return { message: message ?? required_error ?? ctx.defaultError };
+ }
+ if (iss.code !== "invalid_type")
+ return { message: ctx.defaultError };
+ return { message: message ?? invalid_type_error ?? ctx.defaultError };
+ };
+ return { errorMap: customMap, description };
+}
+function timeRegexSource2(args2) {
+ let secondsRegexSource = `[0-5]\\d`;
+ if (args2.precision) {
+ secondsRegexSource = `${secondsRegexSource}\\.\\d{${args2.precision}}`;
+ } else if (args2.precision == null) {
+ secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
+ }
+ const secondsQuantifier = args2.precision ? "+" : "?";
+ return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
+}
+function timeRegex2(args2) {
+ return new RegExp(`^${timeRegexSource2(args2)}$`);
+}
+function datetimeRegex2(args2) {
+ let regex3 = `${dateRegexSource2}T${timeRegexSource2(args2)}`;
+ const opts = [];
+ opts.push(args2.local ? `Z?` : `Z`);
+ if (args2.offset)
+ opts.push(`([+-]\\d{2}:?\\d{2})`);
+ regex3 = `${regex3}(${opts.join("|")})`;
+ return new RegExp(`^${regex3}$`);
+}
+function isValidIP2(ip2, version2) {
+ if ((version2 === "v4" || !version2) && ipv4Regex2.test(ip2)) {
+ return true;
+ }
+ if ((version2 === "v6" || !version2) && ipv6Regex2.test(ip2)) {
+ return true;
+ }
+ return false;
+}
+function isValidJWT2(jwt, alg) {
+ if (!jwtRegex2.test(jwt))
+ return false;
+ try {
+ const [header] = jwt.split(".");
+ if (!header)
+ return false;
+ const base643 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
+ const decoded = JSON.parse(atob(base643));
+ if (typeof decoded !== "object" || decoded === null)
+ return false;
+ if ("typ" in decoded && decoded?.typ !== "JWT")
+ return false;
+ if (!decoded.alg)
+ return false;
+ if (alg && decoded.alg !== alg)
+ return false;
+ return true;
+ } catch {
+ return false;
+ }
+}
+function isValidCidr2(ip2, version2) {
+ if ((version2 === "v4" || !version2) && ipv4CidrRegex2.test(ip2)) {
+ return true;
+ }
+ if ((version2 === "v6" || !version2) && ipv6CidrRegex2.test(ip2)) {
+ return true;
+ }
+ return false;
+}
+function floatSafeRemainder2(val, step) {
+ const valDecCount = (val.toString().split(".")[1] || "").length;
+ const stepDecCount = (step.toString().split(".")[1] || "").length;
+ const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
+ const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
+ const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
+ return valInt % stepInt / 10 ** decCount;
+}
+function deepPartialify2(schema2) {
+ if (schema2 instanceof ZodObject2) {
+ const newShape = {};
+ for (const key in schema2.shape) {
+ const fieldSchema = schema2.shape[key];
+ newShape[key] = ZodOptional2.create(deepPartialify2(fieldSchema));
+ }
+ return new ZodObject2({
+ ...schema2._def,
+ shape: () => newShape
+ });
+ } else if (schema2 instanceof ZodArray2) {
+ return new ZodArray2({
+ ...schema2._def,
+ type: deepPartialify2(schema2.element)
+ });
+ } else if (schema2 instanceof ZodOptional2) {
+ return ZodOptional2.create(deepPartialify2(schema2.unwrap()));
+ } else if (schema2 instanceof ZodNullable2) {
+ return ZodNullable2.create(deepPartialify2(schema2.unwrap()));
+ } else if (schema2 instanceof ZodTuple2) {
+ return ZodTuple2.create(schema2.items.map((item) => deepPartialify2(item)));
+ } else {
+ return schema2;
+ }
+}
+function mergeValues2(a, b) {
+ const aType = getParsedType2(a);
+ const bType = getParsedType2(b);
+ if (a === b) {
+ return { valid: true, data: a };
+ } else if (aType === ZodParsedType2.object && bType === ZodParsedType2.object) {
+ const bKeys = util2.objectKeys(b);
+ const sharedKeys = util2.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
+ const newObj = { ...a, ...b };
+ for (const key of sharedKeys) {
+ const sharedValue = mergeValues2(a[key], b[key]);
+ if (!sharedValue.valid) {
+ return { valid: false };
+ }
+ newObj[key] = sharedValue.data;
+ }
+ return { valid: true, data: newObj };
+ } else if (aType === ZodParsedType2.array && bType === ZodParsedType2.array) {
+ if (a.length !== b.length) {
+ return { valid: false };
+ }
+ const newArray = [];
+ for (let index = 0; index < a.length; index++) {
+ const itemA = a[index];
+ const itemB = b[index];
+ const sharedValue = mergeValues2(itemA, itemB);
+ if (!sharedValue.valid) {
+ return { valid: false };
+ }
+ newArray.push(sharedValue.data);
+ }
+ return { valid: true, data: newArray };
+ } else if (aType === ZodParsedType2.date && bType === ZodParsedType2.date && +a === +b) {
+ return { valid: true, data: a };
+ } else {
+ return { valid: false };
+ }
+}
+function createZodEnum2(values, params) {
+ return new ZodEnum2({
+ values,
+ typeName: ZodFirstPartyTypeKind2.ZodEnum,
+ ...processCreateParams3(params)
+ });
+}
+function cleanParams2(params, data) {
+ const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
+ const p2 = typeof p === "string" ? { message: p } : p;
+ return p2;
+}
+function custom2(check, _params = {}, fatal) {
+ if (check)
+ return ZodAny2.create().superRefine((data, ctx) => {
+ const r = check(data);
+ if (r instanceof Promise) {
+ return r.then((r2) => {
+ if (!r2) {
+ const params = cleanParams2(_params, data);
+ const _fatal = params.fatal ?? fatal ?? true;
+ ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
+ }
+ });
+ }
+ if (!r) {
+ const params = cleanParams2(_params, data);
+ const _fatal = params.fatal ?? fatal ?? true;
+ ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
+ }
+ return;
+ });
+ return ZodAny2.create();
+}
+var ParseInputLazyPath2, handleResult2, ZodType2, cuidRegex2, cuid2Regex2, ulidRegex2, uuidRegex2, nanoidRegex2, jwtRegex2, durationRegex2, emailRegex2, _emojiRegex2, emojiRegex2, ipv4Regex2, ipv4CidrRegex2, ipv6Regex2, ipv6CidrRegex2, base64Regex2, base64urlRegex2, dateRegexSource2, dateRegex2, ZodString2, ZodNumber2, ZodBigInt2, ZodBoolean2, ZodDate2, ZodSymbol2, ZodUndefined2, ZodNull2, ZodAny2, ZodUnknown2, ZodNever2, ZodVoid2, ZodArray2, ZodObject2, ZodUnion2, getDiscriminator2, ZodDiscriminatedUnion2, ZodIntersection2, ZodTuple2, ZodRecord2, ZodMap2, ZodSet2, ZodFunction2, ZodLazy2, ZodLiteral2, ZodEnum2, ZodNativeEnum2, ZodPromise2, ZodEffects2, ZodOptional2, ZodNullable2, ZodDefault2, ZodCatch2, ZodNaN2, BRAND2, ZodBranded2, ZodPipeline2, ZodReadonly2, late2, ZodFirstPartyTypeKind2, instanceOfType2, stringType2, numberType2, nanType2, bigIntType2, booleanType2, dateType2, symbolType2, undefinedType2, nullType2, anyType2, unknownType2, neverType2, voidType2, arrayType2, objectType2, strictObjectType2, unionType2, discriminatedUnionType2, intersectionType2, tupleType2, recordType2, mapType2, setType2, functionType2, lazyType2, literalType2, enumType2, nativeEnumType2, promiseType2, effectsType2, optionalType2, nullableType2, preprocessType2, pipelineType2, ostring2, onumber2, oboolean2, coerce2, NEVER2;
+var init_types = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js"() {
+ init_ZodError();
+ init_errors();
+ init_errorUtil();
+ init_parseUtil();
+ init_util();
+ ParseInputLazyPath2 = class {
+ constructor(parent, value2, path3, key) {
+ this._cachedPath = [];
+ this.parent = parent;
+ this.data = value2;
+ this._path = path3;
+ this._key = key;
+ }
+ get path() {
+ if (!this._cachedPath.length) {
+ if (Array.isArray(this._key)) {
+ this._cachedPath.push(...this._path, ...this._key);
+ } else {
+ this._cachedPath.push(...this._path, this._key);
+ }
+ }
+ return this._cachedPath;
+ }
+ };
+ handleResult2 = (ctx, result) => {
+ if (isValid2(result)) {
+ return { success: true, data: result.value };
+ } else {
+ if (!ctx.common.issues.length) {
+ throw new Error("Validation failed but no issues detected.");
+ }
+ return {
+ success: false,
+ get error() {
+ if (this._error)
+ return this._error;
+ const error41 = new ZodError2(ctx.common.issues);
+ this._error = error41;
+ return this._error;
+ }
+ };
+ }
+ };
+ ZodType2 = class {
+ get description() {
+ return this._def.description;
+ }
+ _getType(input) {
+ return getParsedType2(input.data);
+ }
+ _getOrReturnCtx(input, ctx) {
+ return ctx || {
+ common: input.parent.common,
+ data: input.data,
+ parsedType: getParsedType2(input.data),
+ schemaErrorMap: this._def.errorMap,
+ path: input.path,
+ parent: input.parent
+ };
+ }
+ _processInputParams(input) {
+ return {
+ status: new ParseStatus2(),
+ ctx: {
+ common: input.parent.common,
+ data: input.data,
+ parsedType: getParsedType2(input.data),
+ schemaErrorMap: this._def.errorMap,
+ path: input.path,
+ parent: input.parent
+ }
+ };
+ }
+ _parseSync(input) {
+ const result = this._parse(input);
+ if (isAsync2(result)) {
+ throw new Error("Synchronous parse encountered promise.");
+ }
+ return result;
+ }
+ _parseAsync(input) {
+ const result = this._parse(input);
+ return Promise.resolve(result);
+ }
+ parse(data, params) {
+ const result = this.safeParse(data, params);
+ if (result.success)
+ return result.data;
+ throw result.error;
+ }
+ safeParse(data, params) {
+ const ctx = {
+ common: {
+ issues: [],
+ async: params?.async ?? false,
+ contextualErrorMap: params?.errorMap
+ },
+ path: params?.path || [],
+ schemaErrorMap: this._def.errorMap,
+ parent: null,
+ data,
+ parsedType: getParsedType2(data)
+ };
+ const result = this._parseSync({ data, path: ctx.path, parent: ctx });
+ return handleResult2(ctx, result);
+ }
+ "~validate"(data) {
+ const ctx = {
+ common: {
+ issues: [],
+ async: !!this["~standard"].async
+ },
+ path: [],
+ schemaErrorMap: this._def.errorMap,
+ parent: null,
+ data,
+ parsedType: getParsedType2(data)
+ };
+ if (!this["~standard"].async) {
+ try {
+ const result = this._parseSync({ data, path: [], parent: ctx });
+ return isValid2(result) ? {
+ value: result.value
+ } : {
+ issues: ctx.common.issues
+ };
+ } catch (err) {
+ if (err?.message?.toLowerCase()?.includes("encountered")) {
+ this["~standard"].async = true;
+ }
+ ctx.common = {
+ issues: [],
+ async: true
+ };
+ }
+ }
+ return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid2(result) ? {
+ value: result.value
+ } : {
+ issues: ctx.common.issues
+ });
+ }
+ async parseAsync(data, params) {
+ const result = await this.safeParseAsync(data, params);
+ if (result.success)
+ return result.data;
+ throw result.error;
+ }
+ async safeParseAsync(data, params) {
+ const ctx = {
+ common: {
+ issues: [],
+ contextualErrorMap: params?.errorMap,
+ async: true
+ },
+ path: params?.path || [],
+ schemaErrorMap: this._def.errorMap,
+ parent: null,
+ data,
+ parsedType: getParsedType2(data)
+ };
+ const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
+ const result = await (isAsync2(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));
+ return handleResult2(ctx, result);
+ }
+ refine(check, message) {
+ const getIssueProperties = (val) => {
+ if (typeof message === "string" || typeof message === "undefined") {
+ return { message };
+ } else if (typeof message === "function") {
+ return message(val);
+ } else {
+ return message;
+ }
+ };
+ return this._refinement((val, ctx) => {
+ const result = check(val);
+ const setError = () => ctx.addIssue({
+ code: ZodIssueCode2.custom,
+ ...getIssueProperties(val)
+ });
+ if (typeof Promise !== "undefined" && result instanceof Promise) {
+ return result.then((data) => {
+ if (!data) {
+ setError();
+ return false;
+ } else {
+ return true;
+ }
+ });
+ }
+ if (!result) {
+ setError();
+ return false;
+ } else {
+ return true;
+ }
+ });
+ }
+ refinement(check, refinementData) {
+ return this._refinement((val, ctx) => {
+ if (!check(val)) {
+ ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData);
+ return false;
+ } else {
+ return true;
+ }
+ });
+ }
+ _refinement(refinement) {
+ return new ZodEffects2({
+ schema: this,
+ typeName: ZodFirstPartyTypeKind2.ZodEffects,
+ effect: { type: "refinement", refinement }
+ });
+ }
+ superRefine(refinement) {
+ return this._refinement(refinement);
+ }
+ constructor(def) {
+ this.spa = this.safeParseAsync;
+ this._def = def;
+ this.parse = this.parse.bind(this);
+ this.safeParse = this.safeParse.bind(this);
+ this.parseAsync = this.parseAsync.bind(this);
+ this.safeParseAsync = this.safeParseAsync.bind(this);
+ this.spa = this.spa.bind(this);
+ this.refine = this.refine.bind(this);
+ this.refinement = this.refinement.bind(this);
+ this.superRefine = this.superRefine.bind(this);
+ this.optional = this.optional.bind(this);
+ this.nullable = this.nullable.bind(this);
+ this.nullish = this.nullish.bind(this);
+ this.array = this.array.bind(this);
+ this.promise = this.promise.bind(this);
+ this.or = this.or.bind(this);
+ this.and = this.and.bind(this);
+ this.transform = this.transform.bind(this);
+ this.brand = this.brand.bind(this);
+ this.default = this.default.bind(this);
+ this.catch = this.catch.bind(this);
+ this.describe = this.describe.bind(this);
+ this.pipe = this.pipe.bind(this);
+ this.readonly = this.readonly.bind(this);
+ this.isNullable = this.isNullable.bind(this);
+ this.isOptional = this.isOptional.bind(this);
+ this["~standard"] = {
+ version: 1,
+ vendor: "zod",
+ validate: (data) => this["~validate"](data)
+ };
+ }
+ optional() {
+ return ZodOptional2.create(this, this._def);
+ }
+ nullable() {
+ return ZodNullable2.create(this, this._def);
+ }
+ nullish() {
+ return this.nullable().optional();
+ }
+ array() {
+ return ZodArray2.create(this);
+ }
+ promise() {
+ return ZodPromise2.create(this, this._def);
+ }
+ or(option) {
+ return ZodUnion2.create([this, option], this._def);
+ }
+ and(incoming) {
+ return ZodIntersection2.create(this, incoming, this._def);
+ }
+ transform(transform) {
+ return new ZodEffects2({
+ ...processCreateParams3(this._def),
+ schema: this,
+ typeName: ZodFirstPartyTypeKind2.ZodEffects,
+ effect: { type: "transform", transform }
+ });
+ }
+ default(def) {
+ const defaultValueFunc = typeof def === "function" ? def : () => def;
+ return new ZodDefault2({
+ ...processCreateParams3(this._def),
+ innerType: this,
+ defaultValue: defaultValueFunc,
+ typeName: ZodFirstPartyTypeKind2.ZodDefault
+ });
+ }
+ brand() {
+ return new ZodBranded2({
+ typeName: ZodFirstPartyTypeKind2.ZodBranded,
+ type: this,
+ ...processCreateParams3(this._def)
+ });
+ }
+ catch(def) {
+ const catchValueFunc = typeof def === "function" ? def : () => def;
+ return new ZodCatch2({
+ ...processCreateParams3(this._def),
+ innerType: this,
+ catchValue: catchValueFunc,
+ typeName: ZodFirstPartyTypeKind2.ZodCatch
+ });
+ }
+ describe(description) {
+ const This = this.constructor;
+ return new This({
+ ...this._def,
+ description
+ });
+ }
+ pipe(target) {
+ return ZodPipeline2.create(this, target);
+ }
+ readonly() {
+ return ZodReadonly2.create(this);
+ }
+ isOptional() {
+ return this.safeParse(void 0).success;
+ }
+ isNullable() {
+ return this.safeParse(null).success;
+ }
+ };
+ cuidRegex2 = /^c[^\s-]{8,}$/i;
+ cuid2Regex2 = /^[0-9a-z]+$/;
+ ulidRegex2 = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
+ uuidRegex2 = /^[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-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]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
+ base64Regex2 = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
+ base64urlRegex2 = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;
+ dateRegexSource2 = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
+ dateRegex2 = new RegExp(`^${dateRegexSource2}$`);
+ ZodString2 = class _ZodString extends ZodType2 {
+ _parse(input) {
+ if (this._def.coerce) {
+ input.data = String(input.data);
+ }
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType2.string) {
+ const ctx2 = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx2, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.string,
+ received: ctx2.parsedType
+ });
+ return INVALID2;
+ }
+ const status = new ParseStatus2();
+ let ctx = void 0;
+ for (const check of this._def.checks) {
+ if (check.kind === "min") {
+ if (input.data.length < check.value) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_small,
+ minimum: check.value,
+ type: "string",
+ inclusive: true,
+ exact: false,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "max") {
+ if (input.data.length > check.value) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_big,
+ maximum: check.value,
+ type: "string",
+ inclusive: true,
+ exact: false,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "length") {
+ const tooBig = input.data.length > check.value;
+ const tooSmall = input.data.length < check.value;
+ if (tooBig || tooSmall) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ if (tooBig) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_big,
+ maximum: check.value,
+ type: "string",
+ inclusive: true,
+ exact: true,
+ message: check.message
+ });
+ } else if (tooSmall) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_small,
+ minimum: check.value,
+ type: "string",
+ inclusive: true,
+ exact: true,
+ message: check.message
+ });
+ }
+ status.dirty();
+ }
+ } else if (check.kind === "email") {
+ if (!emailRegex2.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "email",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "emoji") {
+ if (!emojiRegex2) {
+ emojiRegex2 = new RegExp(_emojiRegex2, "u");
+ }
+ if (!emojiRegex2.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "emoji",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "uuid") {
+ if (!uuidRegex2.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "uuid",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "nanoid") {
+ if (!nanoidRegex2.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "nanoid",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "cuid") {
+ if (!cuidRegex2.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "cuid",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "cuid2") {
+ if (!cuid2Regex2.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "cuid2",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "ulid") {
+ if (!ulidRegex2.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "ulid",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "url") {
+ try {
+ new URL(input.data);
+ } catch {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "url",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "regex") {
+ check.regex.lastIndex = 0;
+ const testResult = check.regex.test(input.data);
+ if (!testResult) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "regex",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "trim") {
+ input.data = input.data.trim();
+ } else if (check.kind === "includes") {
+ if (!input.data.includes(check.value, check.position)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_string,
+ validation: { includes: check.value, position: check.position },
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "toLowerCase") {
+ input.data = input.data.toLowerCase();
+ } else if (check.kind === "toUpperCase") {
+ input.data = input.data.toUpperCase();
+ } else if (check.kind === "startsWith") {
+ if (!input.data.startsWith(check.value)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_string,
+ validation: { startsWith: check.value },
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "endsWith") {
+ if (!input.data.endsWith(check.value)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_string,
+ validation: { endsWith: check.value },
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "datetime") {
+ const regex3 = datetimeRegex2(check);
+ if (!regex3.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_string,
+ validation: "datetime",
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "date") {
+ const regex3 = dateRegex2;
+ if (!regex3.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_string,
+ validation: "date",
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "time") {
+ const regex3 = timeRegex2(check);
+ if (!regex3.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_string,
+ validation: "time",
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "duration") {
+ if (!durationRegex2.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "duration",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "ip") {
+ if (!isValidIP2(input.data, check.version)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "ip",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "jwt") {
+ if (!isValidJWT2(input.data, check.alg)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "jwt",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "cidr") {
+ if (!isValidCidr2(input.data, check.version)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "cidr",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "base64") {
+ if (!base64Regex2.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "base64",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "base64url") {
+ if (!base64urlRegex2.test(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ validation: "base64url",
+ code: ZodIssueCode2.invalid_string,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else {
+ util2.assertNever(check);
+ }
+ }
+ return { status: status.value, value: input.data };
+ }
+ _regex(regex3, validation, message) {
+ return this.refinement((data) => regex3.test(data), {
+ validation,
+ code: ZodIssueCode2.invalid_string,
+ ...errorUtil2.errToObj(message)
+ });
+ }
+ _addCheck(check) {
+ return new _ZodString({
+ ...this._def,
+ checks: [...this._def.checks, check]
+ });
+ }
+ email(message) {
+ return this._addCheck({ kind: "email", ...errorUtil2.errToObj(message) });
+ }
+ url(message) {
+ return this._addCheck({ kind: "url", ...errorUtil2.errToObj(message) });
+ }
+ emoji(message) {
+ return this._addCheck({ kind: "emoji", ...errorUtil2.errToObj(message) });
+ }
+ uuid(message) {
+ return this._addCheck({ kind: "uuid", ...errorUtil2.errToObj(message) });
+ }
+ nanoid(message) {
+ return this._addCheck({ kind: "nanoid", ...errorUtil2.errToObj(message) });
+ }
+ cuid(message) {
+ return this._addCheck({ kind: "cuid", ...errorUtil2.errToObj(message) });
+ }
+ cuid2(message) {
+ return this._addCheck({ kind: "cuid2", ...errorUtil2.errToObj(message) });
+ }
+ ulid(message) {
+ return this._addCheck({ kind: "ulid", ...errorUtil2.errToObj(message) });
+ }
+ base64(message) {
+ return this._addCheck({ kind: "base64", ...errorUtil2.errToObj(message) });
+ }
+ base64url(message) {
+ return this._addCheck({
+ kind: "base64url",
+ ...errorUtil2.errToObj(message)
+ });
+ }
+ jwt(options) {
+ return this._addCheck({ kind: "jwt", ...errorUtil2.errToObj(options) });
+ }
+ ip(options) {
+ return this._addCheck({ kind: "ip", ...errorUtil2.errToObj(options) });
+ }
+ cidr(options) {
+ return this._addCheck({ kind: "cidr", ...errorUtil2.errToObj(options) });
+ }
+ datetime(options) {
+ if (typeof options === "string") {
+ return this._addCheck({
+ kind: "datetime",
+ precision: null,
+ offset: false,
+ local: false,
+ message: options
+ });
+ }
+ return this._addCheck({
+ kind: "datetime",
+ precision: typeof options?.precision === "undefined" ? null : options?.precision,
+ offset: options?.offset ?? false,
+ local: options?.local ?? false,
+ ...errorUtil2.errToObj(options?.message)
+ });
+ }
+ date(message) {
+ return this._addCheck({ kind: "date", message });
+ }
+ time(options) {
+ if (typeof options === "string") {
+ return this._addCheck({
+ kind: "time",
+ precision: null,
+ message: options
+ });
+ }
+ return this._addCheck({
+ kind: "time",
+ precision: typeof options?.precision === "undefined" ? null : options?.precision,
+ ...errorUtil2.errToObj(options?.message)
+ });
+ }
+ duration(message) {
+ return this._addCheck({ kind: "duration", ...errorUtil2.errToObj(message) });
+ }
+ regex(regex3, message) {
+ return this._addCheck({
+ kind: "regex",
+ regex: regex3,
+ ...errorUtil2.errToObj(message)
+ });
+ }
+ includes(value2, options) {
+ return this._addCheck({
+ kind: "includes",
+ value: value2,
+ position: options?.position,
+ ...errorUtil2.errToObj(options?.message)
+ });
+ }
+ startsWith(value2, message) {
+ return this._addCheck({
+ kind: "startsWith",
+ value: value2,
+ ...errorUtil2.errToObj(message)
+ });
+ }
+ endsWith(value2, message) {
+ return this._addCheck({
+ kind: "endsWith",
+ value: value2,
+ ...errorUtil2.errToObj(message)
+ });
+ }
+ min(minLength, message) {
+ return this._addCheck({
+ kind: "min",
+ value: minLength,
+ ...errorUtil2.errToObj(message)
+ });
+ }
+ max(maxLength, message) {
+ return this._addCheck({
+ kind: "max",
+ value: maxLength,
+ ...errorUtil2.errToObj(message)
+ });
+ }
+ length(len, message) {
+ return this._addCheck({
+ kind: "length",
+ value: len,
+ ...errorUtil2.errToObj(message)
+ });
+ }
+ /**
+ * Equivalent to `.min(1)`
+ */
+ nonempty(message) {
+ return this.min(1, errorUtil2.errToObj(message));
+ }
+ trim() {
+ return new _ZodString({
+ ...this._def,
+ checks: [...this._def.checks, { kind: "trim" }]
+ });
+ }
+ toLowerCase() {
+ return new _ZodString({
+ ...this._def,
+ checks: [...this._def.checks, { kind: "toLowerCase" }]
+ });
+ }
+ toUpperCase() {
+ return new _ZodString({
+ ...this._def,
+ checks: [...this._def.checks, { kind: "toUpperCase" }]
+ });
+ }
+ get isDatetime() {
+ return !!this._def.checks.find((ch) => ch.kind === "datetime");
+ }
+ get isDate() {
+ return !!this._def.checks.find((ch) => ch.kind === "date");
+ }
+ get isTime() {
+ return !!this._def.checks.find((ch) => ch.kind === "time");
+ }
+ get isDuration() {
+ return !!this._def.checks.find((ch) => ch.kind === "duration");
+ }
+ get isEmail() {
+ return !!this._def.checks.find((ch) => ch.kind === "email");
+ }
+ get isURL() {
+ return !!this._def.checks.find((ch) => ch.kind === "url");
+ }
+ get isEmoji() {
+ return !!this._def.checks.find((ch) => ch.kind === "emoji");
+ }
+ get isUUID() {
+ return !!this._def.checks.find((ch) => ch.kind === "uuid");
+ }
+ get isNANOID() {
+ return !!this._def.checks.find((ch) => ch.kind === "nanoid");
+ }
+ get isCUID() {
+ return !!this._def.checks.find((ch) => ch.kind === "cuid");
+ }
+ get isCUID2() {
+ return !!this._def.checks.find((ch) => ch.kind === "cuid2");
+ }
+ get isULID() {
+ return !!this._def.checks.find((ch) => ch.kind === "ulid");
+ }
+ get isIP() {
+ return !!this._def.checks.find((ch) => ch.kind === "ip");
+ }
+ get isCIDR() {
+ return !!this._def.checks.find((ch) => ch.kind === "cidr");
+ }
+ get isBase64() {
+ return !!this._def.checks.find((ch) => ch.kind === "base64");
+ }
+ get isBase64url() {
+ return !!this._def.checks.find((ch) => ch.kind === "base64url");
+ }
+ get minLength() {
+ let min = null;
+ for (const ch of this._def.checks) {
+ if (ch.kind === "min") {
+ if (min === null || ch.value > min)
+ min = ch.value;
+ }
+ }
+ return min;
+ }
+ get maxLength() {
+ let max = null;
+ for (const ch of this._def.checks) {
+ if (ch.kind === "max") {
+ if (max === null || ch.value < max)
+ max = ch.value;
+ }
+ }
+ return max;
+ }
+ };
+ ZodString2.create = (params) => {
+ return new ZodString2({
+ checks: [],
+ typeName: ZodFirstPartyTypeKind2.ZodString,
+ coerce: params?.coerce ?? false,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodNumber2 = class _ZodNumber extends ZodType2 {
+ constructor() {
+ super(...arguments);
+ this.min = this.gte;
+ this.max = this.lte;
+ this.step = this.multipleOf;
+ }
+ _parse(input) {
+ if (this._def.coerce) {
+ input.data = Number(input.data);
+ }
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType2.number) {
+ const ctx2 = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx2, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.number,
+ received: ctx2.parsedType
+ });
+ return INVALID2;
+ }
+ let ctx = void 0;
+ const status = new ParseStatus2();
+ for (const check of this._def.checks) {
+ if (check.kind === "int") {
+ if (!util2.isInteger(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: "integer",
+ received: "float",
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "min") {
+ const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
+ if (tooSmall) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_small,
+ minimum: check.value,
+ type: "number",
+ inclusive: check.inclusive,
+ exact: false,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "max") {
+ const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
+ if (tooBig) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_big,
+ maximum: check.value,
+ type: "number",
+ inclusive: check.inclusive,
+ exact: false,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "multipleOf") {
+ if (floatSafeRemainder2(input.data, check.value) !== 0) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.not_multiple_of,
+ multipleOf: check.value,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "finite") {
+ if (!Number.isFinite(input.data)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.not_finite,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else {
+ util2.assertNever(check);
+ }
+ }
+ return { status: status.value, value: input.data };
+ }
+ gte(value2, message) {
+ return this.setLimit("min", value2, true, errorUtil2.toString(message));
+ }
+ gt(value2, message) {
+ return this.setLimit("min", value2, false, errorUtil2.toString(message));
+ }
+ lte(value2, message) {
+ return this.setLimit("max", value2, true, errorUtil2.toString(message));
+ }
+ lt(value2, message) {
+ return this.setLimit("max", value2, false, errorUtil2.toString(message));
+ }
+ setLimit(kind, value2, inclusive, message) {
+ return new _ZodNumber({
+ ...this._def,
+ checks: [
+ ...this._def.checks,
+ {
+ kind,
+ value: value2,
+ inclusive,
+ message: errorUtil2.toString(message)
+ }
+ ]
+ });
+ }
+ _addCheck(check) {
+ return new _ZodNumber({
+ ...this._def,
+ checks: [...this._def.checks, check]
+ });
+ }
+ int(message) {
+ return this._addCheck({
+ kind: "int",
+ message: errorUtil2.toString(message)
+ });
+ }
+ positive(message) {
+ return this._addCheck({
+ kind: "min",
+ value: 0,
+ inclusive: false,
+ message: errorUtil2.toString(message)
+ });
+ }
+ negative(message) {
+ return this._addCheck({
+ kind: "max",
+ value: 0,
+ inclusive: false,
+ message: errorUtil2.toString(message)
+ });
+ }
+ nonpositive(message) {
+ return this._addCheck({
+ kind: "max",
+ value: 0,
+ inclusive: true,
+ message: errorUtil2.toString(message)
+ });
+ }
+ nonnegative(message) {
+ return this._addCheck({
+ kind: "min",
+ value: 0,
+ inclusive: true,
+ message: errorUtil2.toString(message)
+ });
+ }
+ multipleOf(value2, message) {
+ return this._addCheck({
+ kind: "multipleOf",
+ value: value2,
+ message: errorUtil2.toString(message)
+ });
+ }
+ finite(message) {
+ return this._addCheck({
+ kind: "finite",
+ message: errorUtil2.toString(message)
+ });
+ }
+ safe(message) {
+ return this._addCheck({
+ kind: "min",
+ inclusive: true,
+ value: Number.MIN_SAFE_INTEGER,
+ message: errorUtil2.toString(message)
+ })._addCheck({
+ kind: "max",
+ inclusive: true,
+ value: Number.MAX_SAFE_INTEGER,
+ message: errorUtil2.toString(message)
+ });
+ }
+ get minValue() {
+ let min = null;
+ for (const ch of this._def.checks) {
+ if (ch.kind === "min") {
+ if (min === null || ch.value > min)
+ min = ch.value;
+ }
+ }
+ return min;
+ }
+ get maxValue() {
+ let max = null;
+ for (const ch of this._def.checks) {
+ if (ch.kind === "max") {
+ if (max === null || ch.value < max)
+ max = ch.value;
+ }
+ }
+ return max;
+ }
+ get isInt() {
+ return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util2.isInteger(ch.value));
+ }
+ get isFinite() {
+ let max = null;
+ let min = null;
+ for (const ch of this._def.checks) {
+ if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
+ return true;
+ } else if (ch.kind === "min") {
+ if (min === null || ch.value > min)
+ min = ch.value;
+ } else if (ch.kind === "max") {
+ if (max === null || ch.value < max)
+ max = ch.value;
+ }
+ }
+ return Number.isFinite(min) && Number.isFinite(max);
+ }
+ };
+ ZodNumber2.create = (params) => {
+ return new ZodNumber2({
+ checks: [],
+ typeName: ZodFirstPartyTypeKind2.ZodNumber,
+ coerce: params?.coerce || false,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodBigInt2 = class _ZodBigInt extends ZodType2 {
+ constructor() {
+ super(...arguments);
+ this.min = this.gte;
+ this.max = this.lte;
+ }
+ _parse(input) {
+ if (this._def.coerce) {
+ try {
+ input.data = BigInt(input.data);
+ } catch {
+ return this._getInvalidInput(input);
+ }
+ }
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType2.bigint) {
+ return this._getInvalidInput(input);
+ }
+ let ctx = void 0;
+ const status = new ParseStatus2();
+ for (const check of this._def.checks) {
+ if (check.kind === "min") {
+ const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
+ if (tooSmall) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_small,
+ type: "bigint",
+ minimum: check.value,
+ inclusive: check.inclusive,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "max") {
+ const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
+ if (tooBig) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_big,
+ type: "bigint",
+ maximum: check.value,
+ inclusive: check.inclusive,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "multipleOf") {
+ if (input.data % check.value !== BigInt(0)) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.not_multiple_of,
+ multipleOf: check.value,
+ message: check.message
+ });
+ status.dirty();
+ }
+ } else {
+ util2.assertNever(check);
+ }
+ }
+ return { status: status.value, value: input.data };
+ }
+ _getInvalidInput(input) {
+ const ctx = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.bigint,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ gte(value2, message) {
+ return this.setLimit("min", value2, true, errorUtil2.toString(message));
+ }
+ gt(value2, message) {
+ return this.setLimit("min", value2, false, errorUtil2.toString(message));
+ }
+ lte(value2, message) {
+ return this.setLimit("max", value2, true, errorUtil2.toString(message));
+ }
+ lt(value2, message) {
+ return this.setLimit("max", value2, false, errorUtil2.toString(message));
+ }
+ setLimit(kind, value2, inclusive, message) {
+ return new _ZodBigInt({
+ ...this._def,
+ checks: [
+ ...this._def.checks,
+ {
+ kind,
+ value: value2,
+ inclusive,
+ message: errorUtil2.toString(message)
+ }
+ ]
+ });
+ }
+ _addCheck(check) {
+ return new _ZodBigInt({
+ ...this._def,
+ checks: [...this._def.checks, check]
+ });
+ }
+ positive(message) {
+ return this._addCheck({
+ kind: "min",
+ value: BigInt(0),
+ inclusive: false,
+ message: errorUtil2.toString(message)
+ });
+ }
+ negative(message) {
+ return this._addCheck({
+ kind: "max",
+ value: BigInt(0),
+ inclusive: false,
+ message: errorUtil2.toString(message)
+ });
+ }
+ nonpositive(message) {
+ return this._addCheck({
+ kind: "max",
+ value: BigInt(0),
+ inclusive: true,
+ message: errorUtil2.toString(message)
+ });
+ }
+ nonnegative(message) {
+ return this._addCheck({
+ kind: "min",
+ value: BigInt(0),
+ inclusive: true,
+ message: errorUtil2.toString(message)
+ });
+ }
+ multipleOf(value2, message) {
+ return this._addCheck({
+ kind: "multipleOf",
+ value: value2,
+ message: errorUtil2.toString(message)
+ });
+ }
+ get minValue() {
+ let min = null;
+ for (const ch of this._def.checks) {
+ if (ch.kind === "min") {
+ if (min === null || ch.value > min)
+ min = ch.value;
+ }
+ }
+ return min;
+ }
+ get maxValue() {
+ let max = null;
+ for (const ch of this._def.checks) {
+ if (ch.kind === "max") {
+ if (max === null || ch.value < max)
+ max = ch.value;
+ }
+ }
+ return max;
+ }
+ };
+ ZodBigInt2.create = (params) => {
+ return new ZodBigInt2({
+ checks: [],
+ typeName: ZodFirstPartyTypeKind2.ZodBigInt,
+ coerce: params?.coerce ?? false,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodBoolean2 = class extends ZodType2 {
+ _parse(input) {
+ if (this._def.coerce) {
+ input.data = Boolean(input.data);
+ }
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType2.boolean) {
+ const ctx = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.boolean,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ return OK2(input.data);
+ }
+ };
+ ZodBoolean2.create = (params) => {
+ return new ZodBoolean2({
+ typeName: ZodFirstPartyTypeKind2.ZodBoolean,
+ coerce: params?.coerce || false,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodDate2 = class _ZodDate extends ZodType2 {
+ _parse(input) {
+ if (this._def.coerce) {
+ input.data = new Date(input.data);
+ }
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType2.date) {
+ const ctx2 = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx2, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.date,
+ received: ctx2.parsedType
+ });
+ return INVALID2;
+ }
+ if (Number.isNaN(input.data.getTime())) {
+ const ctx2 = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx2, {
+ code: ZodIssueCode2.invalid_date
+ });
+ return INVALID2;
+ }
+ const status = new ParseStatus2();
+ let ctx = void 0;
+ for (const check of this._def.checks) {
+ if (check.kind === "min") {
+ if (input.data.getTime() < check.value) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_small,
+ message: check.message,
+ inclusive: true,
+ exact: false,
+ minimum: check.value,
+ type: "date"
+ });
+ status.dirty();
+ }
+ } else if (check.kind === "max") {
+ if (input.data.getTime() > check.value) {
+ ctx = this._getOrReturnCtx(input, ctx);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_big,
+ message: check.message,
+ inclusive: true,
+ exact: false,
+ maximum: check.value,
+ type: "date"
+ });
+ status.dirty();
+ }
+ } else {
+ util2.assertNever(check);
+ }
+ }
+ return {
+ status: status.value,
+ value: new Date(input.data.getTime())
+ };
+ }
+ _addCheck(check) {
+ return new _ZodDate({
+ ...this._def,
+ checks: [...this._def.checks, check]
+ });
+ }
+ min(minDate, message) {
+ return this._addCheck({
+ kind: "min",
+ value: minDate.getTime(),
+ message: errorUtil2.toString(message)
+ });
+ }
+ max(maxDate, message) {
+ return this._addCheck({
+ kind: "max",
+ value: maxDate.getTime(),
+ message: errorUtil2.toString(message)
+ });
+ }
+ get minDate() {
+ let min = null;
+ for (const ch of this._def.checks) {
+ if (ch.kind === "min") {
+ if (min === null || ch.value > min)
+ min = ch.value;
+ }
+ }
+ return min != null ? new Date(min) : null;
+ }
+ get maxDate() {
+ let max = null;
+ for (const ch of this._def.checks) {
+ if (ch.kind === "max") {
+ if (max === null || ch.value < max)
+ max = ch.value;
+ }
+ }
+ return max != null ? new Date(max) : null;
+ }
+ };
+ ZodDate2.create = (params) => {
+ return new ZodDate2({
+ checks: [],
+ coerce: params?.coerce || false,
+ typeName: ZodFirstPartyTypeKind2.ZodDate,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodSymbol2 = class extends ZodType2 {
+ _parse(input) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType2.symbol) {
+ const ctx = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.symbol,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ return OK2(input.data);
+ }
+ };
+ ZodSymbol2.create = (params) => {
+ return new ZodSymbol2({
+ typeName: ZodFirstPartyTypeKind2.ZodSymbol,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodUndefined2 = class extends ZodType2 {
+ _parse(input) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType2.undefined) {
+ const ctx = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.undefined,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ return OK2(input.data);
+ }
+ };
+ ZodUndefined2.create = (params) => {
+ return new ZodUndefined2({
+ typeName: ZodFirstPartyTypeKind2.ZodUndefined,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodNull2 = class extends ZodType2 {
+ _parse(input) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType2.null) {
+ const ctx = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.null,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ return OK2(input.data);
+ }
+ };
+ ZodNull2.create = (params) => {
+ return new ZodNull2({
+ typeName: ZodFirstPartyTypeKind2.ZodNull,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodAny2 = class extends ZodType2 {
+ constructor() {
+ super(...arguments);
+ this._any = true;
+ }
+ _parse(input) {
+ return OK2(input.data);
+ }
+ };
+ ZodAny2.create = (params) => {
+ return new ZodAny2({
+ typeName: ZodFirstPartyTypeKind2.ZodAny,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodUnknown2 = class extends ZodType2 {
+ constructor() {
+ super(...arguments);
+ this._unknown = true;
+ }
+ _parse(input) {
+ return OK2(input.data);
+ }
+ };
+ ZodUnknown2.create = (params) => {
+ return new ZodUnknown2({
+ typeName: ZodFirstPartyTypeKind2.ZodUnknown,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodNever2 = class extends ZodType2 {
+ _parse(input) {
+ const ctx = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.never,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ };
+ ZodNever2.create = (params) => {
+ return new ZodNever2({
+ typeName: ZodFirstPartyTypeKind2.ZodNever,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodVoid2 = class extends ZodType2 {
+ _parse(input) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType2.undefined) {
+ const ctx = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.void,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ return OK2(input.data);
+ }
+ };
+ ZodVoid2.create = (params) => {
+ return new ZodVoid2({
+ typeName: ZodFirstPartyTypeKind2.ZodVoid,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodArray2 = class _ZodArray extends ZodType2 {
+ _parse(input) {
+ const { ctx, status } = this._processInputParams(input);
+ const def = this._def;
+ if (ctx.parsedType !== ZodParsedType2.array) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.array,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ if (def.exactLength !== null) {
+ const tooBig = ctx.data.length > def.exactLength.value;
+ const tooSmall = ctx.data.length < def.exactLength.value;
+ if (tooBig || tooSmall) {
+ addIssueToContext2(ctx, {
+ code: tooBig ? ZodIssueCode2.too_big : ZodIssueCode2.too_small,
+ minimum: tooSmall ? def.exactLength.value : void 0,
+ maximum: tooBig ? def.exactLength.value : void 0,
+ type: "array",
+ inclusive: true,
+ exact: true,
+ message: def.exactLength.message
+ });
+ status.dirty();
+ }
+ }
+ if (def.minLength !== null) {
+ if (ctx.data.length < def.minLength.value) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_small,
+ minimum: def.minLength.value,
+ type: "array",
+ inclusive: true,
+ exact: false,
+ message: def.minLength.message
+ });
+ status.dirty();
+ }
+ }
+ if (def.maxLength !== null) {
+ if (ctx.data.length > def.maxLength.value) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_big,
+ maximum: def.maxLength.value,
+ type: "array",
+ inclusive: true,
+ exact: false,
+ message: def.maxLength.message
+ });
+ status.dirty();
+ }
+ }
+ if (ctx.common.async) {
+ return Promise.all([...ctx.data].map((item, i) => {
+ return def.type._parseAsync(new ParseInputLazyPath2(ctx, item, ctx.path, i));
+ })).then((result2) => {
+ return ParseStatus2.mergeArray(status, result2);
+ });
+ }
+ const result = [...ctx.data].map((item, i) => {
+ return def.type._parseSync(new ParseInputLazyPath2(ctx, item, ctx.path, i));
+ });
+ return ParseStatus2.mergeArray(status, result);
+ }
+ get element() {
+ return this._def.type;
+ }
+ min(minLength, message) {
+ return new _ZodArray({
+ ...this._def,
+ minLength: { value: minLength, message: errorUtil2.toString(message) }
+ });
+ }
+ max(maxLength, message) {
+ return new _ZodArray({
+ ...this._def,
+ maxLength: { value: maxLength, message: errorUtil2.toString(message) }
+ });
+ }
+ length(len, message) {
+ return new _ZodArray({
+ ...this._def,
+ exactLength: { value: len, message: errorUtil2.toString(message) }
+ });
+ }
+ nonempty(message) {
+ return this.min(1, message);
+ }
+ };
+ ZodArray2.create = (schema2, params) => {
+ return new ZodArray2({
+ type: schema2,
+ minLength: null,
+ maxLength: null,
+ exactLength: null,
+ typeName: ZodFirstPartyTypeKind2.ZodArray,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodObject2 = class _ZodObject extends ZodType2 {
+ constructor() {
+ super(...arguments);
+ this._cached = null;
+ this.nonstrict = this.passthrough;
+ this.augment = this.extend;
+ }
+ _getCached() {
+ if (this._cached !== null)
+ return this._cached;
+ const shape = this._def.shape();
+ const keys = util2.objectKeys(shape);
+ this._cached = { shape, keys };
+ return this._cached;
+ }
+ _parse(input) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType2.object) {
+ const ctx2 = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx2, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.object,
+ received: ctx2.parsedType
+ });
+ return INVALID2;
+ }
+ const { status, ctx } = this._processInputParams(input);
+ const { shape, keys: shapeKeys } = this._getCached();
+ const extraKeys = [];
+ if (!(this._def.catchall instanceof ZodNever2 && this._def.unknownKeys === "strip")) {
+ for (const key in ctx.data) {
+ if (!shapeKeys.includes(key)) {
+ extraKeys.push(key);
+ }
+ }
+ }
+ const pairs = [];
+ for (const key of shapeKeys) {
+ const keyValidator = shape[key];
+ const value2 = ctx.data[key];
+ pairs.push({
+ key: { status: "valid", value: key },
+ value: keyValidator._parse(new ParseInputLazyPath2(ctx, value2, ctx.path, key)),
+ alwaysSet: key in ctx.data
+ });
+ }
+ if (this._def.catchall instanceof ZodNever2) {
+ const unknownKeys = this._def.unknownKeys;
+ if (unknownKeys === "passthrough") {
+ for (const key of extraKeys) {
+ pairs.push({
+ key: { status: "valid", value: key },
+ value: { status: "valid", value: ctx.data[key] }
+ });
+ }
+ } else if (unknownKeys === "strict") {
+ if (extraKeys.length > 0) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.unrecognized_keys,
+ keys: extraKeys
+ });
+ status.dirty();
+ }
+ } else if (unknownKeys === "strip") {
+ } else {
+ throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
+ }
+ } else {
+ const catchall = this._def.catchall;
+ for (const key of extraKeys) {
+ const value2 = ctx.data[key];
+ pairs.push({
+ key: { status: "valid", value: key },
+ value: catchall._parse(
+ new ParseInputLazyPath2(ctx, value2, ctx.path, key)
+ //, ctx.child(key), value, getParsedType(value)
+ ),
+ alwaysSet: key in ctx.data
+ });
+ }
+ }
+ if (ctx.common.async) {
+ return Promise.resolve().then(async () => {
+ const syncPairs = [];
+ for (const pair of pairs) {
+ const key = await pair.key;
+ const value2 = await pair.value;
+ syncPairs.push({
+ key,
+ value: value2,
+ alwaysSet: pair.alwaysSet
+ });
+ }
+ return syncPairs;
+ }).then((syncPairs) => {
+ return ParseStatus2.mergeObjectSync(status, syncPairs);
+ });
+ } else {
+ return ParseStatus2.mergeObjectSync(status, pairs);
+ }
+ }
+ get shape() {
+ return this._def.shape();
+ }
+ strict(message) {
+ errorUtil2.errToObj;
+ return new _ZodObject({
+ ...this._def,
+ unknownKeys: "strict",
+ ...message !== void 0 ? {
+ errorMap: (issue2, ctx) => {
+ const defaultError = this._def.errorMap?.(issue2, ctx).message ?? ctx.defaultError;
+ if (issue2.code === "unrecognized_keys")
+ return {
+ message: errorUtil2.errToObj(message).message ?? defaultError
+ };
+ return {
+ message: defaultError
+ };
+ }
+ } : {}
+ });
+ }
+ strip() {
+ return new _ZodObject({
+ ...this._def,
+ unknownKeys: "strip"
+ });
+ }
+ passthrough() {
+ return new _ZodObject({
+ ...this._def,
+ unknownKeys: "passthrough"
+ });
+ }
+ // const AugmentFactory =
+ // (def: Def) =>
+ // (
+ // augmentation: Augmentation
+ // ): ZodObject<
+ // extendShape, Augmentation>,
+ // Def["unknownKeys"],
+ // Def["catchall"]
+ // > => {
+ // return new ZodObject({
+ // ...def,
+ // shape: () => ({
+ // ...def.shape(),
+ // ...augmentation,
+ // }),
+ // }) as any;
+ // };
+ extend(augmentation) {
+ return new _ZodObject({
+ ...this._def,
+ shape: () => ({
+ ...this._def.shape(),
+ ...augmentation
+ })
+ });
+ }
+ /**
+ * Prior to zod@1.0.12 there was a bug in the
+ * inferred type of merged objects. Please
+ * upgrade if you are experiencing issues.
+ */
+ merge(merging) {
+ const merged = new _ZodObject({
+ unknownKeys: merging._def.unknownKeys,
+ catchall: merging._def.catchall,
+ shape: () => ({
+ ...this._def.shape(),
+ ...merging._def.shape()
+ }),
+ typeName: ZodFirstPartyTypeKind2.ZodObject
+ });
+ return merged;
+ }
+ // merge<
+ // Incoming extends AnyZodObject,
+ // Augmentation extends Incoming["shape"],
+ // NewOutput extends {
+ // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
+ // ? Augmentation[k]["_output"]
+ // : k extends keyof Output
+ // ? Output[k]
+ // : never;
+ // },
+ // NewInput extends {
+ // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
+ // ? Augmentation[k]["_input"]
+ // : k extends keyof Input
+ // ? Input[k]
+ // : never;
+ // }
+ // >(
+ // merging: Incoming
+ // ): ZodObject<
+ // extendShape>,
+ // Incoming["_def"]["unknownKeys"],
+ // Incoming["_def"]["catchall"],
+ // NewOutput,
+ // NewInput
+ // > {
+ // const merged: any = new ZodObject({
+ // unknownKeys: merging._def.unknownKeys,
+ // catchall: merging._def.catchall,
+ // shape: () =>
+ // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
+ // typeName: ZodFirstPartyTypeKind.ZodObject,
+ // }) as any;
+ // return merged;
+ // }
+ setKey(key, schema2) {
+ return this.augment({ [key]: schema2 });
+ }
+ // merge(
+ // merging: Incoming
+ // ): //ZodObject = (merging) => {
+ // ZodObject<
+ // extendShape>,
+ // Incoming["_def"]["unknownKeys"],
+ // Incoming["_def"]["catchall"]
+ // > {
+ // // const mergedShape = objectUtil.mergeShapes(
+ // // this._def.shape(),
+ // // merging._def.shape()
+ // // );
+ // const merged: any = new ZodObject({
+ // unknownKeys: merging._def.unknownKeys,
+ // catchall: merging._def.catchall,
+ // shape: () =>
+ // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
+ // typeName: ZodFirstPartyTypeKind.ZodObject,
+ // }) as any;
+ // return merged;
+ // }
+ catchall(index) {
+ return new _ZodObject({
+ ...this._def,
+ catchall: index
+ });
+ }
+ pick(mask) {
+ const shape = {};
+ for (const key of util2.objectKeys(mask)) {
+ if (mask[key] && this.shape[key]) {
+ shape[key] = this.shape[key];
+ }
+ }
+ return new _ZodObject({
+ ...this._def,
+ shape: () => shape
+ });
+ }
+ omit(mask) {
+ const shape = {};
+ for (const key of util2.objectKeys(this.shape)) {
+ if (!mask[key]) {
+ shape[key] = this.shape[key];
+ }
+ }
+ return new _ZodObject({
+ ...this._def,
+ shape: () => shape
+ });
+ }
+ /**
+ * @deprecated
+ */
+ deepPartial() {
+ return deepPartialify2(this);
+ }
+ partial(mask) {
+ const newShape = {};
+ for (const key of util2.objectKeys(this.shape)) {
+ const fieldSchema = this.shape[key];
+ if (mask && !mask[key]) {
+ newShape[key] = fieldSchema;
+ } else {
+ newShape[key] = fieldSchema.optional();
+ }
+ }
+ return new _ZodObject({
+ ...this._def,
+ shape: () => newShape
+ });
+ }
+ required(mask) {
+ const newShape = {};
+ for (const key of util2.objectKeys(this.shape)) {
+ if (mask && !mask[key]) {
+ newShape[key] = this.shape[key];
+ } else {
+ const fieldSchema = this.shape[key];
+ let newField = fieldSchema;
+ while (newField instanceof ZodOptional2) {
+ newField = newField._def.innerType;
+ }
+ newShape[key] = newField;
+ }
+ }
+ return new _ZodObject({
+ ...this._def,
+ shape: () => newShape
+ });
+ }
+ keyof() {
+ return createZodEnum2(util2.objectKeys(this.shape));
+ }
+ };
+ ZodObject2.create = (shape, params) => {
+ return new ZodObject2({
+ shape: () => shape,
+ unknownKeys: "strip",
+ catchall: ZodNever2.create(),
+ typeName: ZodFirstPartyTypeKind2.ZodObject,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodObject2.strictCreate = (shape, params) => {
+ return new ZodObject2({
+ shape: () => shape,
+ unknownKeys: "strict",
+ catchall: ZodNever2.create(),
+ typeName: ZodFirstPartyTypeKind2.ZodObject,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodObject2.lazycreate = (shape, params) => {
+ return new ZodObject2({
+ shape,
+ unknownKeys: "strip",
+ catchall: ZodNever2.create(),
+ typeName: ZodFirstPartyTypeKind2.ZodObject,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodUnion2 = class extends ZodType2 {
+ _parse(input) {
+ const { ctx } = this._processInputParams(input);
+ const options = this._def.options;
+ function handleResults(results) {
+ for (const result of results) {
+ if (result.result.status === "valid") {
+ return result.result;
+ }
+ }
+ for (const result of results) {
+ if (result.result.status === "dirty") {
+ ctx.common.issues.push(...result.ctx.common.issues);
+ return result.result;
+ }
+ }
+ const unionErrors = results.map((result) => new ZodError2(result.ctx.common.issues));
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_union,
+ unionErrors
+ });
+ return INVALID2;
+ }
+ if (ctx.common.async) {
+ return Promise.all(options.map(async (option) => {
+ const childCtx = {
+ ...ctx,
+ common: {
+ ...ctx.common,
+ issues: []
+ },
+ parent: null
+ };
+ return {
+ result: await option._parseAsync({
+ data: ctx.data,
+ path: ctx.path,
+ parent: childCtx
+ }),
+ ctx: childCtx
+ };
+ })).then(handleResults);
+ } else {
+ let dirty = void 0;
+ const issues = [];
+ for (const option of options) {
+ const childCtx = {
+ ...ctx,
+ common: {
+ ...ctx.common,
+ issues: []
+ },
+ parent: null
+ };
+ const result = option._parseSync({
+ data: ctx.data,
+ path: ctx.path,
+ parent: childCtx
+ });
+ if (result.status === "valid") {
+ return result;
+ } else if (result.status === "dirty" && !dirty) {
+ dirty = { result, ctx: childCtx };
+ }
+ if (childCtx.common.issues.length) {
+ issues.push(childCtx.common.issues);
+ }
+ }
+ if (dirty) {
+ ctx.common.issues.push(...dirty.ctx.common.issues);
+ return dirty.result;
+ }
+ const unionErrors = issues.map((issues2) => new ZodError2(issues2));
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_union,
+ unionErrors
+ });
+ return INVALID2;
+ }
+ }
+ get options() {
+ return this._def.options;
+ }
+ };
+ ZodUnion2.create = (types, params) => {
+ return new ZodUnion2({
+ options: types,
+ typeName: ZodFirstPartyTypeKind2.ZodUnion,
+ ...processCreateParams3(params)
+ });
+ };
+ getDiscriminator2 = (type2) => {
+ if (type2 instanceof ZodLazy2) {
+ return getDiscriminator2(type2.schema);
+ } else if (type2 instanceof ZodEffects2) {
+ return getDiscriminator2(type2.innerType());
+ } else if (type2 instanceof ZodLiteral2) {
+ return [type2.value];
+ } else if (type2 instanceof ZodEnum2) {
+ return type2.options;
+ } else if (type2 instanceof ZodNativeEnum2) {
+ return util2.objectValues(type2.enum);
+ } else if (type2 instanceof ZodDefault2) {
+ return getDiscriminator2(type2._def.innerType);
+ } else if (type2 instanceof ZodUndefined2) {
+ return [void 0];
+ } else if (type2 instanceof ZodNull2) {
+ return [null];
+ } else if (type2 instanceof ZodOptional2) {
+ return [void 0, ...getDiscriminator2(type2.unwrap())];
+ } else if (type2 instanceof ZodNullable2) {
+ return [null, ...getDiscriminator2(type2.unwrap())];
+ } else if (type2 instanceof ZodBranded2) {
+ return getDiscriminator2(type2.unwrap());
+ } else if (type2 instanceof ZodReadonly2) {
+ return getDiscriminator2(type2.unwrap());
+ } else if (type2 instanceof ZodCatch2) {
+ return getDiscriminator2(type2._def.innerType);
+ } else {
+ return [];
+ }
+ };
+ ZodDiscriminatedUnion2 = class _ZodDiscriminatedUnion extends ZodType2 {
+ _parse(input) {
+ const { ctx } = this._processInputParams(input);
+ if (ctx.parsedType !== ZodParsedType2.object) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.object,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ const discriminator = this.discriminator;
+ const discriminatorValue = ctx.data[discriminator];
+ const option = this.optionsMap.get(discriminatorValue);
+ if (!option) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_union_discriminator,
+ options: Array.from(this.optionsMap.keys()),
+ path: [discriminator]
+ });
+ return INVALID2;
+ }
+ if (ctx.common.async) {
+ return option._parseAsync({
+ data: ctx.data,
+ path: ctx.path,
+ parent: ctx
+ });
+ } else {
+ return option._parseSync({
+ data: ctx.data,
+ path: ctx.path,
+ parent: ctx
+ });
+ }
+ }
+ get discriminator() {
+ return this._def.discriminator;
+ }
+ get options() {
+ return this._def.options;
+ }
+ get optionsMap() {
+ return this._def.optionsMap;
+ }
+ /**
+ * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
+ * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
+ * have a different value for each object in the union.
+ * @param discriminator the name of the discriminator property
+ * @param types an array of object schemas
+ * @param params
+ */
+ static create(discriminator, options, params) {
+ const optionsMap = /* @__PURE__ */ new Map();
+ for (const type2 of options) {
+ const discriminatorValues = getDiscriminator2(type2.shape[discriminator]);
+ if (!discriminatorValues.length) {
+ throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
+ }
+ for (const value2 of discriminatorValues) {
+ if (optionsMap.has(value2)) {
+ throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value2)}`);
+ }
+ optionsMap.set(value2, type2);
+ }
+ }
+ return new _ZodDiscriminatedUnion({
+ typeName: ZodFirstPartyTypeKind2.ZodDiscriminatedUnion,
+ discriminator,
+ options,
+ optionsMap,
+ ...processCreateParams3(params)
+ });
+ }
+ };
+ ZodIntersection2 = class extends ZodType2 {
+ _parse(input) {
+ const { status, ctx } = this._processInputParams(input);
+ const handleParsed = (parsedLeft, parsedRight) => {
+ if (isAborted2(parsedLeft) || isAborted2(parsedRight)) {
+ return INVALID2;
+ }
+ const merged = mergeValues2(parsedLeft.value, parsedRight.value);
+ if (!merged.valid) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_intersection_types
+ });
+ return INVALID2;
+ }
+ if (isDirty2(parsedLeft) || isDirty2(parsedRight)) {
+ status.dirty();
+ }
+ return { status: status.value, value: merged.data };
+ };
+ if (ctx.common.async) {
+ return Promise.all([
+ this._def.left._parseAsync({
+ data: ctx.data,
+ path: ctx.path,
+ parent: ctx
+ }),
+ this._def.right._parseAsync({
+ data: ctx.data,
+ path: ctx.path,
+ parent: ctx
+ })
+ ]).then(([left, right]) => handleParsed(left, right));
+ } else {
+ return handleParsed(this._def.left._parseSync({
+ data: ctx.data,
+ path: ctx.path,
+ parent: ctx
+ }), this._def.right._parseSync({
+ data: ctx.data,
+ path: ctx.path,
+ parent: ctx
+ }));
+ }
+ }
+ };
+ ZodIntersection2.create = (left, right, params) => {
+ return new ZodIntersection2({
+ left,
+ right,
+ typeName: ZodFirstPartyTypeKind2.ZodIntersection,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodTuple2 = class _ZodTuple extends ZodType2 {
+ _parse(input) {
+ const { status, ctx } = this._processInputParams(input);
+ if (ctx.parsedType !== ZodParsedType2.array) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.array,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ if (ctx.data.length < this._def.items.length) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_small,
+ minimum: this._def.items.length,
+ inclusive: true,
+ exact: false,
+ type: "array"
+ });
+ return INVALID2;
+ }
+ const rest = this._def.rest;
+ if (!rest && ctx.data.length > this._def.items.length) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_big,
+ maximum: this._def.items.length,
+ inclusive: true,
+ exact: false,
+ type: "array"
+ });
+ status.dirty();
+ }
+ const items = [...ctx.data].map((item, itemIndex) => {
+ const schema2 = this._def.items[itemIndex] || this._def.rest;
+ if (!schema2)
+ return null;
+ return schema2._parse(new ParseInputLazyPath2(ctx, item, ctx.path, itemIndex));
+ }).filter((x) => !!x);
+ if (ctx.common.async) {
+ return Promise.all(items).then((results) => {
+ return ParseStatus2.mergeArray(status, results);
+ });
+ } else {
+ return ParseStatus2.mergeArray(status, items);
+ }
+ }
+ get items() {
+ return this._def.items;
+ }
+ rest(rest) {
+ return new _ZodTuple({
+ ...this._def,
+ rest
+ });
+ }
+ };
+ ZodTuple2.create = (schemas, params) => {
+ if (!Array.isArray(schemas)) {
+ throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
+ }
+ return new ZodTuple2({
+ items: schemas,
+ typeName: ZodFirstPartyTypeKind2.ZodTuple,
+ rest: null,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodRecord2 = class _ZodRecord extends ZodType2 {
+ get keySchema() {
+ return this._def.keyType;
+ }
+ get valueSchema() {
+ return this._def.valueType;
+ }
+ _parse(input) {
+ const { status, ctx } = this._processInputParams(input);
+ if (ctx.parsedType !== ZodParsedType2.object) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.object,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ const pairs = [];
+ const keyType = this._def.keyType;
+ const valueType = this._def.valueType;
+ for (const key in ctx.data) {
+ pairs.push({
+ key: keyType._parse(new ParseInputLazyPath2(ctx, key, ctx.path, key)),
+ value: valueType._parse(new ParseInputLazyPath2(ctx, ctx.data[key], ctx.path, key)),
+ alwaysSet: key in ctx.data
+ });
+ }
+ if (ctx.common.async) {
+ return ParseStatus2.mergeObjectAsync(status, pairs);
+ } else {
+ return ParseStatus2.mergeObjectSync(status, pairs);
+ }
+ }
+ get element() {
+ return this._def.valueType;
+ }
+ static create(first, second, third) {
+ if (second instanceof ZodType2) {
+ return new _ZodRecord({
+ keyType: first,
+ valueType: second,
+ typeName: ZodFirstPartyTypeKind2.ZodRecord,
+ ...processCreateParams3(third)
+ });
+ }
+ return new _ZodRecord({
+ keyType: ZodString2.create(),
+ valueType: first,
+ typeName: ZodFirstPartyTypeKind2.ZodRecord,
+ ...processCreateParams3(second)
+ });
+ }
+ };
+ ZodMap2 = class extends ZodType2 {
+ get keySchema() {
+ return this._def.keyType;
+ }
+ get valueSchema() {
+ return this._def.valueType;
+ }
+ _parse(input) {
+ const { status, ctx } = this._processInputParams(input);
+ if (ctx.parsedType !== ZodParsedType2.map) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.map,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ const keyType = this._def.keyType;
+ const valueType = this._def.valueType;
+ const pairs = [...ctx.data.entries()].map(([key, value2], index) => {
+ return {
+ key: keyType._parse(new ParseInputLazyPath2(ctx, key, ctx.path, [index, "key"])),
+ value: valueType._parse(new ParseInputLazyPath2(ctx, value2, ctx.path, [index, "value"]))
+ };
+ });
+ if (ctx.common.async) {
+ const finalMap = /* @__PURE__ */ new Map();
+ return Promise.resolve().then(async () => {
+ for (const pair of pairs) {
+ const key = await pair.key;
+ const value2 = await pair.value;
+ if (key.status === "aborted" || value2.status === "aborted") {
+ return INVALID2;
+ }
+ if (key.status === "dirty" || value2.status === "dirty") {
+ status.dirty();
+ }
+ finalMap.set(key.value, value2.value);
+ }
+ return { status: status.value, value: finalMap };
+ });
+ } else {
+ const finalMap = /* @__PURE__ */ new Map();
+ for (const pair of pairs) {
+ const key = pair.key;
+ const value2 = pair.value;
+ if (key.status === "aborted" || value2.status === "aborted") {
+ return INVALID2;
+ }
+ if (key.status === "dirty" || value2.status === "dirty") {
+ status.dirty();
+ }
+ finalMap.set(key.value, value2.value);
+ }
+ return { status: status.value, value: finalMap };
+ }
+ }
+ };
+ ZodMap2.create = (keyType, valueType, params) => {
+ return new ZodMap2({
+ valueType,
+ keyType,
+ typeName: ZodFirstPartyTypeKind2.ZodMap,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodSet2 = class _ZodSet extends ZodType2 {
+ _parse(input) {
+ const { status, ctx } = this._processInputParams(input);
+ if (ctx.parsedType !== ZodParsedType2.set) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.set,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ const def = this._def;
+ if (def.minSize !== null) {
+ if (ctx.data.size < def.minSize.value) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_small,
+ minimum: def.minSize.value,
+ type: "set",
+ inclusive: true,
+ exact: false,
+ message: def.minSize.message
+ });
+ status.dirty();
+ }
+ }
+ if (def.maxSize !== null) {
+ if (ctx.data.size > def.maxSize.value) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.too_big,
+ maximum: def.maxSize.value,
+ type: "set",
+ inclusive: true,
+ exact: false,
+ message: def.maxSize.message
+ });
+ status.dirty();
+ }
+ }
+ const valueType = this._def.valueType;
+ function finalizeSet(elements2) {
+ const parsedSet = /* @__PURE__ */ new Set();
+ for (const element of elements2) {
+ if (element.status === "aborted")
+ return INVALID2;
+ if (element.status === "dirty")
+ status.dirty();
+ parsedSet.add(element.value);
+ }
+ return { status: status.value, value: parsedSet };
+ }
+ const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath2(ctx, item, ctx.path, i)));
+ if (ctx.common.async) {
+ return Promise.all(elements).then((elements2) => finalizeSet(elements2));
+ } else {
+ return finalizeSet(elements);
+ }
+ }
+ min(minSize, message) {
+ return new _ZodSet({
+ ...this._def,
+ minSize: { value: minSize, message: errorUtil2.toString(message) }
+ });
+ }
+ max(maxSize, message) {
+ return new _ZodSet({
+ ...this._def,
+ maxSize: { value: maxSize, message: errorUtil2.toString(message) }
+ });
+ }
+ size(size, message) {
+ return this.min(size, message).max(size, message);
+ }
+ nonempty(message) {
+ return this.min(1, message);
+ }
+ };
+ ZodSet2.create = (valueType, params) => {
+ return new ZodSet2({
+ valueType,
+ minSize: null,
+ maxSize: null,
+ typeName: ZodFirstPartyTypeKind2.ZodSet,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodFunction2 = class _ZodFunction extends ZodType2 {
+ constructor() {
+ super(...arguments);
+ this.validate = this.implement;
+ }
+ _parse(input) {
+ const { ctx } = this._processInputParams(input);
+ if (ctx.parsedType !== ZodParsedType2.function) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.function,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ function makeArgsIssue(args2, error41) {
+ return makeIssue2({
+ data: args2,
+ path: ctx.path,
+ errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap2(), en_default2].filter((x) => !!x),
+ issueData: {
+ code: ZodIssueCode2.invalid_arguments,
+ argumentsError: error41
+ }
+ });
+ }
+ function makeReturnsIssue(returns, error41) {
+ return makeIssue2({
+ data: returns,
+ path: ctx.path,
+ errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap2(), en_default2].filter((x) => !!x),
+ issueData: {
+ code: ZodIssueCode2.invalid_return_type,
+ returnTypeError: error41
+ }
+ });
+ }
+ const params = { errorMap: ctx.common.contextualErrorMap };
+ const fn2 = ctx.data;
+ if (this._def.returns instanceof ZodPromise2) {
+ const me = this;
+ return OK2(async function(...args2) {
+ const error41 = new ZodError2([]);
+ const parsedArgs = await me._def.args.parseAsync(args2, params).catch((e) => {
+ error41.addIssue(makeArgsIssue(args2, e));
+ throw error41;
+ });
+ const result = await Reflect.apply(fn2, this, parsedArgs);
+ const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => {
+ error41.addIssue(makeReturnsIssue(result, e));
+ throw error41;
+ });
+ return parsedReturns;
+ });
+ } else {
+ const me = this;
+ return OK2(function(...args2) {
+ const parsedArgs = me._def.args.safeParse(args2, params);
+ if (!parsedArgs.success) {
+ throw new ZodError2([makeArgsIssue(args2, parsedArgs.error)]);
+ }
+ const result = Reflect.apply(fn2, this, parsedArgs.data);
+ const parsedReturns = me._def.returns.safeParse(result, params);
+ if (!parsedReturns.success) {
+ throw new ZodError2([makeReturnsIssue(result, parsedReturns.error)]);
+ }
+ return parsedReturns.data;
+ });
+ }
+ }
+ parameters() {
+ return this._def.args;
+ }
+ returnType() {
+ return this._def.returns;
+ }
+ args(...items) {
+ return new _ZodFunction({
+ ...this._def,
+ args: ZodTuple2.create(items).rest(ZodUnknown2.create())
+ });
+ }
+ returns(returnType) {
+ return new _ZodFunction({
+ ...this._def,
+ returns: returnType
+ });
+ }
+ implement(func) {
+ const validatedFunc = this.parse(func);
+ return validatedFunc;
+ }
+ strictImplement(func) {
+ const validatedFunc = this.parse(func);
+ return validatedFunc;
+ }
+ static create(args2, returns, params) {
+ return new _ZodFunction({
+ args: args2 ? args2 : ZodTuple2.create([]).rest(ZodUnknown2.create()),
+ returns: returns || ZodUnknown2.create(),
+ typeName: ZodFirstPartyTypeKind2.ZodFunction,
+ ...processCreateParams3(params)
+ });
+ }
+ };
+ ZodLazy2 = class extends ZodType2 {
+ get schema() {
+ return this._def.getter();
+ }
+ _parse(input) {
+ const { ctx } = this._processInputParams(input);
+ const lazySchema = this._def.getter();
+ return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });
+ }
+ };
+ ZodLazy2.create = (getter, params) => {
+ return new ZodLazy2({
+ getter,
+ typeName: ZodFirstPartyTypeKind2.ZodLazy,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodLiteral2 = class extends ZodType2 {
+ _parse(input) {
+ if (input.data !== this._def.value) {
+ const ctx = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx, {
+ received: ctx.data,
+ code: ZodIssueCode2.invalid_literal,
+ expected: this._def.value
+ });
+ return INVALID2;
+ }
+ return { status: "valid", value: input.data };
+ }
+ get value() {
+ return this._def.value;
+ }
+ };
+ ZodLiteral2.create = (value2, params) => {
+ return new ZodLiteral2({
+ value: value2,
+ typeName: ZodFirstPartyTypeKind2.ZodLiteral,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodEnum2 = class _ZodEnum extends ZodType2 {
+ _parse(input) {
+ if (typeof input.data !== "string") {
+ const ctx = this._getOrReturnCtx(input);
+ const expectedValues = this._def.values;
+ addIssueToContext2(ctx, {
+ expected: util2.joinValues(expectedValues),
+ received: ctx.parsedType,
+ code: ZodIssueCode2.invalid_type
+ });
+ return INVALID2;
+ }
+ if (!this._cache) {
+ this._cache = new Set(this._def.values);
+ }
+ if (!this._cache.has(input.data)) {
+ const ctx = this._getOrReturnCtx(input);
+ const expectedValues = this._def.values;
+ addIssueToContext2(ctx, {
+ received: ctx.data,
+ code: ZodIssueCode2.invalid_enum_value,
+ options: expectedValues
+ });
+ return INVALID2;
+ }
+ return OK2(input.data);
+ }
+ get options() {
+ return this._def.values;
+ }
+ get enum() {
+ const enumValues2 = {};
+ for (const val of this._def.values) {
+ enumValues2[val] = val;
+ }
+ return enumValues2;
+ }
+ get Values() {
+ const enumValues2 = {};
+ for (const val of this._def.values) {
+ enumValues2[val] = val;
+ }
+ return enumValues2;
+ }
+ get Enum() {
+ const enumValues2 = {};
+ for (const val of this._def.values) {
+ enumValues2[val] = val;
+ }
+ return enumValues2;
+ }
+ extract(values, newDef = this._def) {
+ return _ZodEnum.create(values, {
+ ...this._def,
+ ...newDef
+ });
+ }
+ exclude(values, newDef = this._def) {
+ return _ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {
+ ...this._def,
+ ...newDef
+ });
+ }
+ };
+ ZodEnum2.create = createZodEnum2;
+ ZodNativeEnum2 = class extends ZodType2 {
+ _parse(input) {
+ const nativeEnumValues = util2.getValidEnumValues(this._def.values);
+ const ctx = this._getOrReturnCtx(input);
+ if (ctx.parsedType !== ZodParsedType2.string && ctx.parsedType !== ZodParsedType2.number) {
+ const expectedValues = util2.objectValues(nativeEnumValues);
+ addIssueToContext2(ctx, {
+ expected: util2.joinValues(expectedValues),
+ received: ctx.parsedType,
+ code: ZodIssueCode2.invalid_type
+ });
+ return INVALID2;
+ }
+ if (!this._cache) {
+ this._cache = new Set(util2.getValidEnumValues(this._def.values));
+ }
+ if (!this._cache.has(input.data)) {
+ const expectedValues = util2.objectValues(nativeEnumValues);
+ addIssueToContext2(ctx, {
+ received: ctx.data,
+ code: ZodIssueCode2.invalid_enum_value,
+ options: expectedValues
+ });
+ return INVALID2;
+ }
+ return OK2(input.data);
+ }
+ get enum() {
+ return this._def.values;
+ }
+ };
+ ZodNativeEnum2.create = (values, params) => {
+ return new ZodNativeEnum2({
+ values,
+ typeName: ZodFirstPartyTypeKind2.ZodNativeEnum,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodPromise2 = class extends ZodType2 {
+ unwrap() {
+ return this._def.type;
+ }
+ _parse(input) {
+ const { ctx } = this._processInputParams(input);
+ if (ctx.parsedType !== ZodParsedType2.promise && ctx.common.async === false) {
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.promise,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ const promisified = ctx.parsedType === ZodParsedType2.promise ? ctx.data : Promise.resolve(ctx.data);
+ return OK2(promisified.then((data) => {
+ return this._def.type.parseAsync(data, {
+ path: ctx.path,
+ errorMap: ctx.common.contextualErrorMap
+ });
+ }));
+ }
+ };
+ ZodPromise2.create = (schema2, params) => {
+ return new ZodPromise2({
+ type: schema2,
+ typeName: ZodFirstPartyTypeKind2.ZodPromise,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodEffects2 = class extends ZodType2 {
+ innerType() {
+ return this._def.schema;
+ }
+ sourceType() {
+ return this._def.schema._def.typeName === ZodFirstPartyTypeKind2.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
+ }
+ _parse(input) {
+ const { status, ctx } = this._processInputParams(input);
+ const effect = this._def.effect || null;
+ const checkCtx = {
+ addIssue: (arg) => {
+ addIssueToContext2(ctx, arg);
+ if (arg.fatal) {
+ status.abort();
+ } else {
+ status.dirty();
+ }
+ },
+ get path() {
+ return ctx.path;
+ }
+ };
+ checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
+ if (effect.type === "preprocess") {
+ const processed = effect.transform(ctx.data, checkCtx);
+ if (ctx.common.async) {
+ return Promise.resolve(processed).then(async (processed2) => {
+ if (status.value === "aborted")
+ return INVALID2;
+ const result = await this._def.schema._parseAsync({
+ data: processed2,
+ path: ctx.path,
+ parent: ctx
+ });
+ if (result.status === "aborted")
+ return INVALID2;
+ if (result.status === "dirty")
+ return DIRTY2(result.value);
+ if (status.value === "dirty")
+ return DIRTY2(result.value);
+ return result;
+ });
+ } else {
+ if (status.value === "aborted")
+ return INVALID2;
+ const result = this._def.schema._parseSync({
+ data: processed,
+ path: ctx.path,
+ parent: ctx
+ });
+ if (result.status === "aborted")
+ return INVALID2;
+ if (result.status === "dirty")
+ return DIRTY2(result.value);
+ if (status.value === "dirty")
+ return DIRTY2(result.value);
+ return result;
+ }
+ }
+ if (effect.type === "refinement") {
+ const executeRefinement = (acc) => {
+ const result = effect.refinement(acc, checkCtx);
+ if (ctx.common.async) {
+ return Promise.resolve(result);
+ }
+ if (result instanceof Promise) {
+ throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
+ }
+ return acc;
+ };
+ if (ctx.common.async === false) {
+ const inner = this._def.schema._parseSync({
+ data: ctx.data,
+ path: ctx.path,
+ parent: ctx
+ });
+ if (inner.status === "aborted")
+ return INVALID2;
+ if (inner.status === "dirty")
+ status.dirty();
+ executeRefinement(inner.value);
+ return { status: status.value, value: inner.value };
+ } else {
+ return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {
+ if (inner.status === "aborted")
+ return INVALID2;
+ if (inner.status === "dirty")
+ status.dirty();
+ return executeRefinement(inner.value).then(() => {
+ return { status: status.value, value: inner.value };
+ });
+ });
+ }
+ }
+ if (effect.type === "transform") {
+ if (ctx.common.async === false) {
+ const base = this._def.schema._parseSync({
+ data: ctx.data,
+ path: ctx.path,
+ parent: ctx
+ });
+ if (!isValid2(base))
+ return INVALID2;
+ const result = effect.transform(base.value, checkCtx);
+ if (result instanceof Promise) {
+ throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
+ }
+ return { status: status.value, value: result };
+ } else {
+ return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
+ if (!isValid2(base))
+ return INVALID2;
+ return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
+ status: status.value,
+ value: result
+ }));
+ });
+ }
+ }
+ util2.assertNever(effect);
+ }
+ };
+ ZodEffects2.create = (schema2, effect, params) => {
+ return new ZodEffects2({
+ schema: schema2,
+ typeName: ZodFirstPartyTypeKind2.ZodEffects,
+ effect,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodEffects2.createWithPreprocess = (preprocess, schema2, params) => {
+ return new ZodEffects2({
+ schema: schema2,
+ effect: { type: "preprocess", transform: preprocess },
+ typeName: ZodFirstPartyTypeKind2.ZodEffects,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodOptional2 = class extends ZodType2 {
+ _parse(input) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 === ZodParsedType2.undefined) {
+ return OK2(void 0);
+ }
+ return this._def.innerType._parse(input);
+ }
+ unwrap() {
+ return this._def.innerType;
+ }
+ };
+ ZodOptional2.create = (type2, params) => {
+ return new ZodOptional2({
+ innerType: type2,
+ typeName: ZodFirstPartyTypeKind2.ZodOptional,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodNullable2 = class extends ZodType2 {
+ _parse(input) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 === ZodParsedType2.null) {
+ return OK2(null);
+ }
+ return this._def.innerType._parse(input);
+ }
+ unwrap() {
+ return this._def.innerType;
+ }
+ };
+ ZodNullable2.create = (type2, params) => {
+ return new ZodNullable2({
+ innerType: type2,
+ typeName: ZodFirstPartyTypeKind2.ZodNullable,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodDefault2 = class extends ZodType2 {
+ _parse(input) {
+ const { ctx } = this._processInputParams(input);
+ let data = ctx.data;
+ if (ctx.parsedType === ZodParsedType2.undefined) {
+ data = this._def.defaultValue();
+ }
+ return this._def.innerType._parse({
+ data,
+ path: ctx.path,
+ parent: ctx
+ });
+ }
+ removeDefault() {
+ return this._def.innerType;
+ }
+ };
+ ZodDefault2.create = (type2, params) => {
+ return new ZodDefault2({
+ innerType: type2,
+ typeName: ZodFirstPartyTypeKind2.ZodDefault,
+ defaultValue: typeof params.default === "function" ? params.default : () => params.default,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodCatch2 = class extends ZodType2 {
+ _parse(input) {
+ const { ctx } = this._processInputParams(input);
+ const newCtx = {
+ ...ctx,
+ common: {
+ ...ctx.common,
+ issues: []
+ }
+ };
+ const result = this._def.innerType._parse({
+ data: newCtx.data,
+ path: newCtx.path,
+ parent: {
+ ...newCtx
+ }
+ });
+ if (isAsync2(result)) {
+ return result.then((result2) => {
+ return {
+ status: "valid",
+ value: result2.status === "valid" ? result2.value : this._def.catchValue({
+ get error() {
+ return new ZodError2(newCtx.common.issues);
+ },
+ input: newCtx.data
+ })
+ };
+ });
+ } else {
+ return {
+ status: "valid",
+ value: result.status === "valid" ? result.value : this._def.catchValue({
+ get error() {
+ return new ZodError2(newCtx.common.issues);
+ },
+ input: newCtx.data
+ })
+ };
+ }
+ }
+ removeCatch() {
+ return this._def.innerType;
+ }
+ };
+ ZodCatch2.create = (type2, params) => {
+ return new ZodCatch2({
+ innerType: type2,
+ typeName: ZodFirstPartyTypeKind2.ZodCatch,
+ catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,
+ ...processCreateParams3(params)
+ });
+ };
+ ZodNaN2 = class extends ZodType2 {
+ _parse(input) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType2.nan) {
+ const ctx = this._getOrReturnCtx(input);
+ addIssueToContext2(ctx, {
+ code: ZodIssueCode2.invalid_type,
+ expected: ZodParsedType2.nan,
+ received: ctx.parsedType
+ });
+ return INVALID2;
+ }
+ return { status: "valid", value: input.data };
+ }
+ };
+ ZodNaN2.create = (params) => {
+ return new ZodNaN2({
+ typeName: ZodFirstPartyTypeKind2.ZodNaN,
+ ...processCreateParams3(params)
+ });
+ };
+ BRAND2 = Symbol("zod_brand");
+ ZodBranded2 = class extends ZodType2 {
+ _parse(input) {
+ const { ctx } = this._processInputParams(input);
+ const data = ctx.data;
+ return this._def.type._parse({
+ data,
+ path: ctx.path,
+ parent: ctx
+ });
+ }
+ unwrap() {
+ return this._def.type;
+ }
+ };
+ ZodPipeline2 = class _ZodPipeline extends ZodType2 {
+ _parse(input) {
+ const { status, ctx } = this._processInputParams(input);
+ if (ctx.common.async) {
+ const handleAsync = async () => {
+ const inResult = await this._def.in._parseAsync({
+ data: ctx.data,
+ path: ctx.path,
+ parent: ctx
+ });
+ if (inResult.status === "aborted")
+ return INVALID2;
+ if (inResult.status === "dirty") {
+ status.dirty();
+ return DIRTY2(inResult.value);
+ } else {
+ return this._def.out._parseAsync({
+ data: inResult.value,
+ path: ctx.path,
+ parent: ctx
+ });
+ }
+ };
+ return handleAsync();
+ } else {
+ const inResult = this._def.in._parseSync({
+ data: ctx.data,
+ path: ctx.path,
+ parent: ctx
+ });
+ if (inResult.status === "aborted")
+ return INVALID2;
+ if (inResult.status === "dirty") {
+ status.dirty();
+ return {
+ status: "dirty",
+ value: inResult.value
+ };
+ } else {
+ return this._def.out._parseSync({
+ data: inResult.value,
+ path: ctx.path,
+ parent: ctx
+ });
+ }
+ }
+ }
+ static create(a, b) {
+ return new _ZodPipeline({
+ in: a,
+ out: b,
+ typeName: ZodFirstPartyTypeKind2.ZodPipeline
+ });
+ }
+ };
+ ZodReadonly2 = class extends ZodType2 {
+ _parse(input) {
+ const result = this._def.innerType._parse(input);
+ const freeze = (data) => {
+ if (isValid2(data)) {
+ data.value = Object.freeze(data.value);
+ }
+ return data;
+ };
+ return isAsync2(result) ? result.then((data) => freeze(data)) : freeze(result);
+ }
+ unwrap() {
+ return this._def.innerType;
+ }
+ };
+ ZodReadonly2.create = (type2, params) => {
+ return new ZodReadonly2({
+ innerType: type2,
+ typeName: ZodFirstPartyTypeKind2.ZodReadonly,
+ ...processCreateParams3(params)
+ });
+ };
+ late2 = {
+ object: ZodObject2.lazycreate
+ };
+ (function(ZodFirstPartyTypeKind4) {
+ ZodFirstPartyTypeKind4["ZodString"] = "ZodString";
+ ZodFirstPartyTypeKind4["ZodNumber"] = "ZodNumber";
+ ZodFirstPartyTypeKind4["ZodNaN"] = "ZodNaN";
+ ZodFirstPartyTypeKind4["ZodBigInt"] = "ZodBigInt";
+ ZodFirstPartyTypeKind4["ZodBoolean"] = "ZodBoolean";
+ ZodFirstPartyTypeKind4["ZodDate"] = "ZodDate";
+ ZodFirstPartyTypeKind4["ZodSymbol"] = "ZodSymbol";
+ ZodFirstPartyTypeKind4["ZodUndefined"] = "ZodUndefined";
+ ZodFirstPartyTypeKind4["ZodNull"] = "ZodNull";
+ ZodFirstPartyTypeKind4["ZodAny"] = "ZodAny";
+ ZodFirstPartyTypeKind4["ZodUnknown"] = "ZodUnknown";
+ ZodFirstPartyTypeKind4["ZodNever"] = "ZodNever";
+ ZodFirstPartyTypeKind4["ZodVoid"] = "ZodVoid";
+ ZodFirstPartyTypeKind4["ZodArray"] = "ZodArray";
+ ZodFirstPartyTypeKind4["ZodObject"] = "ZodObject";
+ ZodFirstPartyTypeKind4["ZodUnion"] = "ZodUnion";
+ ZodFirstPartyTypeKind4["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
+ ZodFirstPartyTypeKind4["ZodIntersection"] = "ZodIntersection";
+ ZodFirstPartyTypeKind4["ZodTuple"] = "ZodTuple";
+ ZodFirstPartyTypeKind4["ZodRecord"] = "ZodRecord";
+ ZodFirstPartyTypeKind4["ZodMap"] = "ZodMap";
+ ZodFirstPartyTypeKind4["ZodSet"] = "ZodSet";
+ ZodFirstPartyTypeKind4["ZodFunction"] = "ZodFunction";
+ ZodFirstPartyTypeKind4["ZodLazy"] = "ZodLazy";
+ ZodFirstPartyTypeKind4["ZodLiteral"] = "ZodLiteral";
+ ZodFirstPartyTypeKind4["ZodEnum"] = "ZodEnum";
+ ZodFirstPartyTypeKind4["ZodEffects"] = "ZodEffects";
+ ZodFirstPartyTypeKind4["ZodNativeEnum"] = "ZodNativeEnum";
+ ZodFirstPartyTypeKind4["ZodOptional"] = "ZodOptional";
+ ZodFirstPartyTypeKind4["ZodNullable"] = "ZodNullable";
+ ZodFirstPartyTypeKind4["ZodDefault"] = "ZodDefault";
+ ZodFirstPartyTypeKind4["ZodCatch"] = "ZodCatch";
+ ZodFirstPartyTypeKind4["ZodPromise"] = "ZodPromise";
+ ZodFirstPartyTypeKind4["ZodBranded"] = "ZodBranded";
+ ZodFirstPartyTypeKind4["ZodPipeline"] = "ZodPipeline";
+ ZodFirstPartyTypeKind4["ZodReadonly"] = "ZodReadonly";
+ })(ZodFirstPartyTypeKind2 || (ZodFirstPartyTypeKind2 = {}));
+ instanceOfType2 = (cls, params = {
+ message: `Input not instance of ${cls.name}`
+ }) => custom2((data) => data instanceof cls, params);
+ stringType2 = ZodString2.create;
+ numberType2 = ZodNumber2.create;
+ nanType2 = ZodNaN2.create;
+ bigIntType2 = ZodBigInt2.create;
+ booleanType2 = ZodBoolean2.create;
+ dateType2 = ZodDate2.create;
+ symbolType2 = ZodSymbol2.create;
+ undefinedType2 = ZodUndefined2.create;
+ nullType2 = ZodNull2.create;
+ anyType2 = ZodAny2.create;
+ unknownType2 = ZodUnknown2.create;
+ neverType2 = ZodNever2.create;
+ voidType2 = ZodVoid2.create;
+ arrayType2 = ZodArray2.create;
+ objectType2 = ZodObject2.create;
+ strictObjectType2 = ZodObject2.strictCreate;
+ unionType2 = ZodUnion2.create;
+ discriminatedUnionType2 = ZodDiscriminatedUnion2.create;
+ intersectionType2 = ZodIntersection2.create;
+ tupleType2 = ZodTuple2.create;
+ recordType2 = ZodRecord2.create;
+ mapType2 = ZodMap2.create;
+ setType2 = ZodSet2.create;
+ functionType2 = ZodFunction2.create;
+ lazyType2 = ZodLazy2.create;
+ literalType2 = ZodLiteral2.create;
+ enumType2 = ZodEnum2.create;
+ nativeEnumType2 = ZodNativeEnum2.create;
+ promiseType2 = ZodPromise2.create;
+ effectsType2 = ZodEffects2.create;
+ optionalType2 = ZodOptional2.create;
+ nullableType2 = ZodNullable2.create;
+ preprocessType2 = ZodEffects2.createWithPreprocess;
+ pipelineType2 = ZodPipeline2.create;
+ ostring2 = () => stringType2().optional();
+ onumber2 = () => numberType2().optional();
+ oboolean2 = () => booleanType2().optional();
+ coerce2 = {
+ string: ((arg) => ZodString2.create({ ...arg, coerce: true })),
+ number: ((arg) => ZodNumber2.create({ ...arg, coerce: true })),
+ boolean: ((arg) => ZodBoolean2.create({
+ ...arg,
+ coerce: true
+ })),
+ bigint: ((arg) => ZodBigInt2.create({ ...arg, coerce: true })),
+ date: ((arg) => ZodDate2.create({ ...arg, coerce: true }))
+ };
+ NEVER2 = INVALID2;
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
+var external_exports = {};
+__export(external_exports, {
+ BRAND: () => BRAND2,
+ DIRTY: () => DIRTY2,
+ EMPTY_PATH: () => EMPTY_PATH2,
+ INVALID: () => INVALID2,
+ NEVER: () => NEVER2,
+ OK: () => OK2,
+ ParseStatus: () => ParseStatus2,
+ Schema: () => ZodType2,
+ ZodAny: () => ZodAny2,
+ ZodArray: () => ZodArray2,
+ ZodBigInt: () => ZodBigInt2,
+ ZodBoolean: () => ZodBoolean2,
+ ZodBranded: () => ZodBranded2,
+ ZodCatch: () => ZodCatch2,
+ ZodDate: () => ZodDate2,
+ ZodDefault: () => ZodDefault2,
+ ZodDiscriminatedUnion: () => ZodDiscriminatedUnion2,
+ ZodEffects: () => ZodEffects2,
+ ZodEnum: () => ZodEnum2,
+ ZodError: () => ZodError2,
+ ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind2,
+ ZodFunction: () => ZodFunction2,
+ ZodIntersection: () => ZodIntersection2,
+ ZodIssueCode: () => ZodIssueCode2,
+ ZodLazy: () => ZodLazy2,
+ ZodLiteral: () => ZodLiteral2,
+ ZodMap: () => ZodMap2,
+ ZodNaN: () => ZodNaN2,
+ ZodNativeEnum: () => ZodNativeEnum2,
+ ZodNever: () => ZodNever2,
+ ZodNull: () => ZodNull2,
+ ZodNullable: () => ZodNullable2,
+ ZodNumber: () => ZodNumber2,
+ ZodObject: () => ZodObject2,
+ ZodOptional: () => ZodOptional2,
+ ZodParsedType: () => ZodParsedType2,
+ ZodPipeline: () => ZodPipeline2,
+ ZodPromise: () => ZodPromise2,
+ ZodReadonly: () => ZodReadonly2,
+ ZodRecord: () => ZodRecord2,
+ ZodSchema: () => ZodType2,
+ ZodSet: () => ZodSet2,
+ ZodString: () => ZodString2,
+ ZodSymbol: () => ZodSymbol2,
+ ZodTransformer: () => ZodEffects2,
+ ZodTuple: () => ZodTuple2,
+ ZodType: () => ZodType2,
+ ZodUndefined: () => ZodUndefined2,
+ ZodUnion: () => ZodUnion2,
+ ZodUnknown: () => ZodUnknown2,
+ ZodVoid: () => ZodVoid2,
+ addIssueToContext: () => addIssueToContext2,
+ any: () => anyType2,
+ array: () => arrayType2,
+ bigint: () => bigIntType2,
+ boolean: () => booleanType2,
+ coerce: () => coerce2,
+ custom: () => custom2,
+ date: () => dateType2,
+ datetimeRegex: () => datetimeRegex2,
+ defaultErrorMap: () => en_default2,
+ discriminatedUnion: () => discriminatedUnionType2,
+ effect: () => effectsType2,
+ enum: () => enumType2,
+ function: () => functionType2,
+ getErrorMap: () => getErrorMap2,
+ getParsedType: () => getParsedType2,
+ instanceof: () => instanceOfType2,
+ intersection: () => intersectionType2,
+ isAborted: () => isAborted2,
+ isAsync: () => isAsync2,
+ isDirty: () => isDirty2,
+ isValid: () => isValid2,
+ late: () => late2,
+ lazy: () => lazyType2,
+ literal: () => literalType2,
+ makeIssue: () => makeIssue2,
+ map: () => mapType2,
+ nan: () => nanType2,
+ nativeEnum: () => nativeEnumType2,
+ never: () => neverType2,
+ null: () => nullType2,
+ nullable: () => nullableType2,
+ number: () => numberType2,
+ object: () => objectType2,
+ objectUtil: () => objectUtil2,
+ oboolean: () => oboolean2,
+ onumber: () => onumber2,
+ optional: () => optionalType2,
+ ostring: () => ostring2,
+ pipeline: () => pipelineType2,
+ preprocess: () => preprocessType2,
+ promise: () => promiseType2,
+ quotelessJson: () => quotelessJson2,
+ record: () => recordType2,
+ set: () => setType2,
+ setErrorMap: () => setErrorMap2,
+ strictObject: () => strictObjectType2,
+ string: () => stringType2,
+ symbol: () => symbolType2,
+ transformer: () => effectsType2,
+ tuple: () => tupleType2,
+ undefined: () => undefinedType2,
+ union: () => unionType2,
+ unknown: () => unknownType2,
+ util: () => util2,
+ void: () => voidType2
+});
+var init_external = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js"() {
+ init_errors();
+ init_parseUtil();
+ init_typeAliases();
+ init_util();
+ init_types();
+ init_ZodError();
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js
+var init_zod = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js"() {
+ init_external();
+ init_external();
+ }
+});
+
+// ../node_modules/.pnpm/uri-js@4.4.1/node_modules/uri-js/dist/es5/uri.all.js
+var require_uri_all2 = __commonJS({
+ "../node_modules/.pnpm/uri-js@4.4.1/node_modules/uri-js/dist/es5/uri.all.js"(exports, module) {
+ (function(global2, factory) {
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : factory(global2.URI = global2.URI || {});
+ })(exports, (function(exports2) {
+ "use strict";
+ function merge3() {
+ for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
+ sets[_key] = arguments[_key];
+ }
+ if (sets.length > 1) {
+ sets[0] = sets[0].slice(0, -1);
+ var xl = sets.length - 1;
+ for (var x = 1; x < xl; ++x) {
+ sets[x] = sets[x].slice(1, -1);
+ }
+ sets[xl] = sets[xl].slice(1);
+ return sets.join("");
+ } else {
+ return sets[0];
+ }
+ }
+ function subexp(str) {
+ return "(?:" + str + ")";
+ }
+ function typeOf(o) {
+ return o === void 0 ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase();
+ }
+ function toUpperCase(str) {
+ return str.toUpperCase();
+ }
+ function toArray(obj) {
+ return obj !== void 0 && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];
+ }
+ function assign(target, source) {
+ var obj = target;
+ if (source) {
+ for (var key in source) {
+ obj[key] = source[key];
+ }
+ }
+ return obj;
+ }
+ function buildExps(isIRI2) {
+ var ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$2 = merge3(DIGIT$$, "[A-Fa-f]"), LF$$ = "[\\x0A]", SP$$ = "[\\x20]", PCT_ENCODED$2 = subexp(subexp("%[EFef]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%" + HEXDIG$$2 + HEXDIG$$2)), GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge3(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI2 ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", IPRIVATE$$ = isIRI2 ? "[\\uE000-\\uF8FF]" : "[]", UNRESERVED$$2 = merge3(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), SCHEME$ = subexp(ALPHA$$ + merge3(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), USERINFO$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge3(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]")) + "*"), DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), H16$ = subexp(HEXDIG$$2 + "{1,4}"), LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), ZONEID$ = subexp(subexp(UNRESERVED$$2 + "|" + PCT_ENCODED$2) + "+"), IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$2 + "{2})") + ZONEID$), IPVFUTURE$ = subexp("[vV]" + HEXDIG$$2 + "+\\." + merge3(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]") + "+"), IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), REG_NAME$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge3(UNRESERVED$$2, SUB_DELIMS$$)) + "*"), HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")|" + REG_NAME$), PORT$ = subexp(DIGIT$$ + "*"), AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), PCHAR$ = subexp(PCT_ENCODED$2 + "|" + merge3(UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@]")), SEGMENT$ = subexp(PCHAR$ + "*"), SEGMENT_NZ$ = subexp(PCHAR$ + "+"), SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge3(UNRESERVED$$2, SUB_DELIMS$$, "[\\@]")) + "+"), PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), PATH_EMPTY$ = "(?!" + PCHAR$ + ")", PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), QUERY$ = subexp(subexp(PCHAR$ + "|" + merge3("[\\/\\?]", IPRIVATE$$)) + "*"), FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
+ return {
+ NOT_SCHEME: new RegExp(merge3("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
+ NOT_USERINFO: new RegExp(merge3("[^\\%\\:]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
+ NOT_HOST: new RegExp(merge3("[^\\%\\[\\]\\:]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
+ NOT_PATH: new RegExp(merge3("[^\\%\\/\\:\\@]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
+ NOT_PATH_NOSCHEME: new RegExp(merge3("[^\\%\\/\\@]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
+ NOT_QUERY: new RegExp(merge3("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
+ NOT_FRAGMENT: new RegExp(merge3("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
+ ESCAPE: new RegExp(merge3("[^]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
+ UNRESERVED: new RegExp(UNRESERVED$$2, "g"),
+ OTHER_CHARS: new RegExp(merge3("[^\\%]", UNRESERVED$$2, RESERVED$$), "g"),
+ PCT_ENCODED: new RegExp(PCT_ENCODED$2, "g"),
+ IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
+ IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$2 + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$")
+ //RFC 6874, with relaxed parsing rules
+ };
+ }
+ var URI_PROTOCOL = buildExps(false);
+ var IRI_PROTOCOL = buildExps(true);
+ var slicedToArray = /* @__PURE__ */ (function() {
+ function sliceIterator(arr, i) {
+ var _arr = [];
+ var _n = true;
+ var _d = false;
+ var _e = void 0;
+ try {
+ for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
+ _arr.push(_s.value);
+ if (i && _arr.length === i) break;
+ }
+ } catch (err) {
+ _d = true;
+ _e = err;
+ } finally {
+ try {
+ if (!_n && _i["return"]) _i["return"]();
+ } finally {
+ if (_d) throw _e;
+ }
+ }
+ return _arr;
+ }
+ return function(arr, i) {
+ if (Array.isArray(arr)) {
+ return arr;
+ } else if (Symbol.iterator in Object(arr)) {
+ return sliceIterator(arr, i);
+ } else {
+ throw new TypeError("Invalid attempt to destructure non-iterable instance");
+ }
+ };
+ })();
+ var toConsumableArray = function(arr) {
+ if (Array.isArray(arr)) {
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
+ return arr2;
+ } else {
+ return Array.from(arr);
+ }
+ };
+ var maxInt = 2147483647;
+ var base = 36;
+ var tMin = 1;
+ var tMax = 26;
+ var skew = 38;
+ var damp = 700;
+ var initialBias = 72;
+ var initialN = 128;
+ var delimiter = "-";
+ var regexPunycode = /^xn--/;
+ var regexNonASCII = /[^\0-\x7E]/;
+ var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g;
+ var errors = {
+ "overflow": "Overflow: input needs wider integers to process",
+ "not-basic": "Illegal input >= 0x80 (not a basic code point)",
+ "invalid-input": "Invalid input"
+ };
+ var baseMinusTMin = base - tMin;
+ var floor = Math.floor;
+ var stringFromCharCode = String.fromCharCode;
+ function error$1(type2) {
+ throw new RangeError(errors[type2]);
+ }
+ function map(array, fn2) {
+ var result = [];
+ var length = array.length;
+ while (length--) {
+ result[length] = fn2(array[length]);
+ }
+ return result;
+ }
+ function mapDomain(string3, fn2) {
+ var parts = string3.split("@");
+ var result = "";
+ if (parts.length > 1) {
+ result = parts[0] + "@";
+ string3 = parts[1];
+ }
+ string3 = string3.replace(regexSeparators, ".");
+ var labels = string3.split(".");
+ var encoded = map(labels, fn2).join(".");
+ return result + encoded;
+ }
+ function ucs2decode(string3) {
+ var output = [];
+ var counter = 0;
+ var length = string3.length;
+ while (counter < length) {
+ var value2 = string3.charCodeAt(counter++);
+ if (value2 >= 55296 && value2 <= 56319 && counter < length) {
+ var extra = string3.charCodeAt(counter++);
+ if ((extra & 64512) == 56320) {
+ output.push(((value2 & 1023) << 10) + (extra & 1023) + 65536);
+ } else {
+ output.push(value2);
+ counter--;
+ }
+ } else {
+ output.push(value2);
+ }
+ }
+ return output;
+ }
+ var ucs2encode = function ucs2encode2(array) {
+ return String.fromCodePoint.apply(String, toConsumableArray(array));
+ };
+ var basicToDigit = function basicToDigit2(codePoint) {
+ if (codePoint - 48 < 10) {
+ return codePoint - 22;
+ }
+ if (codePoint - 65 < 26) {
+ return codePoint - 65;
+ }
+ if (codePoint - 97 < 26) {
+ return codePoint - 97;
+ }
+ return base;
+ };
+ var digitToBasic = function digitToBasic2(digit, flag) {
+ return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
+ };
+ var adapt = function adapt2(delta, numPoints, firstTime) {
+ var k = 0;
+ delta = firstTime ? floor(delta / damp) : delta >> 1;
+ delta += floor(delta / numPoints);
+ for (
+ ;
+ /* no initialization */
+ delta > baseMinusTMin * tMax >> 1;
+ k += base
+ ) {
+ delta = floor(delta / baseMinusTMin);
+ }
+ return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
+ };
+ var decode = function decode2(input) {
+ var output = [];
+ var inputLength = input.length;
+ var i = 0;
+ var n = initialN;
+ var bias = initialBias;
+ var basic = input.lastIndexOf(delimiter);
+ if (basic < 0) {
+ basic = 0;
+ }
+ for (var j = 0; j < basic; ++j) {
+ if (input.charCodeAt(j) >= 128) {
+ error$1("not-basic");
+ }
+ output.push(input.charCodeAt(j));
+ }
+ for (var index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {
+ var oldi = i;
+ for (
+ var w = 1, k = base;
+ ;
+ /* no condition */
+ k += base
+ ) {
+ if (index >= inputLength) {
+ error$1("invalid-input");
+ }
+ var digit = basicToDigit(input.charCodeAt(index++));
+ if (digit >= base || digit > floor((maxInt - i) / w)) {
+ error$1("overflow");
+ }
+ i += digit * w;
+ var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
+ if (digit < t) {
+ break;
+ }
+ var baseMinusT = base - t;
+ if (w > floor(maxInt / baseMinusT)) {
+ error$1("overflow");
+ }
+ w *= baseMinusT;
+ }
+ var out = output.length + 1;
+ bias = adapt(i - oldi, out, oldi == 0);
+ if (floor(i / out) > maxInt - n) {
+ error$1("overflow");
+ }
+ n += floor(i / out);
+ i %= out;
+ output.splice(i++, 0, n);
+ }
+ return String.fromCodePoint.apply(String, output);
+ };
+ var encode2 = function encode3(input) {
+ var output = [];
+ input = ucs2decode(input);
+ var inputLength = input.length;
+ var n = initialN;
+ var delta = 0;
+ var bias = initialBias;
+ var _iteratorNormalCompletion = true;
+ var _didIteratorError = false;
+ var _iteratorError = void 0;
+ try {
+ for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
+ var _currentValue2 = _step.value;
+ if (_currentValue2 < 128) {
+ output.push(stringFromCharCode(_currentValue2));
+ }
+ }
+ } catch (err) {
+ _didIteratorError = true;
+ _iteratorError = err;
+ } finally {
+ try {
+ if (!_iteratorNormalCompletion && _iterator.return) {
+ _iterator.return();
+ }
+ } finally {
+ if (_didIteratorError) {
+ throw _iteratorError;
+ }
+ }
+ }
+ var basicLength = output.length;
+ var handledCPCount = basicLength;
+ if (basicLength) {
+ output.push(delimiter);
+ }
+ while (handledCPCount < inputLength) {
+ var m = maxInt;
+ var _iteratorNormalCompletion2 = true;
+ var _didIteratorError2 = false;
+ var _iteratorError2 = void 0;
+ try {
+ for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
+ var currentValue = _step2.value;
+ if (currentValue >= n && currentValue < m) {
+ m = currentValue;
+ }
+ }
+ } catch (err) {
+ _didIteratorError2 = true;
+ _iteratorError2 = err;
+ } finally {
+ try {
+ if (!_iteratorNormalCompletion2 && _iterator2.return) {
+ _iterator2.return();
+ }
+ } finally {
+ if (_didIteratorError2) {
+ throw _iteratorError2;
+ }
+ }
+ }
+ var handledCPCountPlusOne = handledCPCount + 1;
+ if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
+ error$1("overflow");
+ }
+ delta += (m - n) * handledCPCountPlusOne;
+ n = m;
+ var _iteratorNormalCompletion3 = true;
+ var _didIteratorError3 = false;
+ var _iteratorError3 = void 0;
+ try {
+ for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
+ var _currentValue = _step3.value;
+ if (_currentValue < n && ++delta > maxInt) {
+ error$1("overflow");
+ }
+ if (_currentValue == n) {
+ var q = delta;
+ for (
+ var k = base;
+ ;
+ /* no condition */
+ k += base
+ ) {
+ var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
+ if (q < t) {
+ break;
+ }
+ var qMinusT = q - t;
+ var baseMinusT = base - t;
+ output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
+ q = floor(qMinusT / baseMinusT);
+ }
+ output.push(stringFromCharCode(digitToBasic(q, 0)));
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
+ delta = 0;
+ ++handledCPCount;
+ }
+ }
+ } catch (err) {
+ _didIteratorError3 = true;
+ _iteratorError3 = err;
+ } finally {
+ try {
+ if (!_iteratorNormalCompletion3 && _iterator3.return) {
+ _iterator3.return();
+ }
+ } finally {
+ if (_didIteratorError3) {
+ throw _iteratorError3;
+ }
+ }
+ }
+ ++delta;
+ ++n;
+ }
+ return output.join("");
+ };
+ var toUnicode = function toUnicode2(input) {
+ return mapDomain(input, function(string3) {
+ return regexPunycode.test(string3) ? decode(string3.slice(4).toLowerCase()) : string3;
+ });
+ };
+ var toASCII = function toASCII2(input) {
+ return mapDomain(input, function(string3) {
+ return regexNonASCII.test(string3) ? "xn--" + encode2(string3) : string3;
+ });
+ };
+ var punycode = {
+ /**
+ * A string representing the current Punycode.js version number.
+ * @memberOf punycode
+ * @type String
+ */
+ "version": "2.1.0",
+ /**
+ * An object of methods to convert from JavaScript's internal character
+ * representation (UCS-2) to Unicode code points, and back.
+ * @see
+ * @memberOf punycode
+ * @type Object
+ */
+ "ucs2": {
+ "decode": ucs2decode,
+ "encode": ucs2encode
+ },
+ "decode": decode,
+ "encode": encode2,
+ "toASCII": toASCII,
+ "toUnicode": toUnicode
+ };
+ var SCHEMES = {};
+ function pctEncChar(chr) {
+ var c = chr.charCodeAt(0);
+ var e = void 0;
+ if (c < 16) e = "%0" + c.toString(16).toUpperCase();
+ else if (c < 128) e = "%" + c.toString(16).toUpperCase();
+ else if (c < 2048) e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
+ else e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
+ return e;
+ }
+ function pctDecChars(str) {
+ var newStr = "";
+ var i = 0;
+ var il = str.length;
+ while (i < il) {
+ var c = parseInt(str.substr(i + 1, 2), 16);
+ if (c < 128) {
+ newStr += String.fromCharCode(c);
+ i += 3;
+ } else if (c >= 194 && c < 224) {
+ if (il - i >= 6) {
+ var c2 = parseInt(str.substr(i + 4, 2), 16);
+ newStr += String.fromCharCode((c & 31) << 6 | c2 & 63);
+ } else {
+ newStr += str.substr(i, 6);
+ }
+ i += 6;
+ } else if (c >= 224) {
+ if (il - i >= 9) {
+ var _c = parseInt(str.substr(i + 4, 2), 16);
+ var c3 = parseInt(str.substr(i + 7, 2), 16);
+ newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63);
+ } else {
+ newStr += str.substr(i, 9);
+ }
+ i += 9;
+ } else {
+ newStr += str.substr(i, 3);
+ i += 3;
+ }
+ }
+ return newStr;
+ }
+ function _normalizeComponentEncoding(components, protocol) {
+ function decodeUnreserved2(str) {
+ var decStr = pctDecChars(str);
+ return !decStr.match(protocol.UNRESERVED) ? str : decStr;
+ }
+ if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved2).toLowerCase().replace(protocol.NOT_SCHEME, "");
+ if (components.userinfo !== void 0) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
+ if (components.host !== void 0) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved2).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
+ if (components.path !== void 0) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
+ if (components.query !== void 0) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
+ if (components.fragment !== void 0) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
+ return components;
+ }
+ function _stripLeadingZeros(str) {
+ return str.replace(/^0*(.*)/, "$1") || "0";
+ }
+ function _normalizeIPv4(host, protocol) {
+ var matches = host.match(protocol.IPV4ADDRESS) || [];
+ var _matches = slicedToArray(matches, 2), address = _matches[1];
+ if (address) {
+ return address.split(".").map(_stripLeadingZeros).join(".");
+ } else {
+ return host;
+ }
+ }
+ function _normalizeIPv6(host, protocol) {
+ var matches = host.match(protocol.IPV6ADDRESS) || [];
+ var _matches2 = slicedToArray(matches, 3), address = _matches2[1], zone = _matches2[2];
+ if (address) {
+ var _address$toLowerCase$ = address.toLowerCase().split("::").reverse(), _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2), last = _address$toLowerCase$2[0], first = _address$toLowerCase$2[1];
+ var firstFields = first ? first.split(":").map(_stripLeadingZeros) : [];
+ var lastFields = last.split(":").map(_stripLeadingZeros);
+ var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
+ var fieldCount = isLastFieldIPv4Address ? 7 : 8;
+ var lastFieldsStart = lastFields.length - fieldCount;
+ var fields = Array(fieldCount);
+ for (var x = 0; x < fieldCount; ++x) {
+ fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || "";
+ }
+ if (isLastFieldIPv4Address) {
+ fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
+ }
+ var allZeroFields = fields.reduce(function(acc, field, index) {
+ if (!field || field === "0") {
+ var lastLongest = acc[acc.length - 1];
+ if (lastLongest && lastLongest.index + lastLongest.length === index) {
+ lastLongest.length++;
+ } else {
+ acc.push({ index, length: 1 });
+ }
+ }
+ return acc;
+ }, []);
+ var longestZeroFields = allZeroFields.sort(function(a, b) {
+ return b.length - a.length;
+ })[0];
+ var newHost = void 0;
+ if (longestZeroFields && longestZeroFields.length > 1) {
+ var newFirst = fields.slice(0, longestZeroFields.index);
+ var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
+ newHost = newFirst.join(":") + "::" + newLast.join(":");
+ } else {
+ newHost = fields.join(":");
+ }
+ if (zone) {
+ newHost += "%" + zone;
+ }
+ return newHost;
+ } else {
+ return host;
+ }
+ }
+ var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;
+ var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === void 0;
+ function parse4(uriString) {
+ var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
+ var components = {};
+ var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
+ if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
+ var matches = uriString.match(URI_PARSE);
+ if (matches) {
+ if (NO_MATCH_IS_UNDEFINED) {
+ components.scheme = matches[1];
+ components.userinfo = matches[3];
+ components.host = matches[4];
+ components.port = parseInt(matches[5], 10);
+ components.path = matches[6] || "";
+ components.query = matches[7];
+ components.fragment = matches[8];
+ if (isNaN(components.port)) {
+ components.port = matches[5];
+ }
+ } else {
+ components.scheme = matches[1] || void 0;
+ components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : void 0;
+ components.host = uriString.indexOf("//") !== -1 ? matches[4] : void 0;
+ components.port = parseInt(matches[5], 10);
+ components.path = matches[6] || "";
+ components.query = uriString.indexOf("?") !== -1 ? matches[7] : void 0;
+ components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : void 0;
+ if (isNaN(components.port)) {
+ components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : void 0;
+ }
+ }
+ if (components.host) {
+ components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);
+ }
+ if (components.scheme === void 0 && components.userinfo === void 0 && components.host === void 0 && components.port === void 0 && !components.path && components.query === void 0) {
+ components.reference = "same-document";
+ } else if (components.scheme === void 0) {
+ components.reference = "relative";
+ } else if (components.fragment === void 0) {
+ components.reference = "absolute";
+ } else {
+ components.reference = "uri";
+ }
+ if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) {
+ components.error = components.error || "URI is not a " + options.reference + " reference.";
+ }
+ var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
+ if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
+ if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) {
+ try {
+ components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
+ } catch (e) {
+ components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
+ }
+ }
+ _normalizeComponentEncoding(components, URI_PROTOCOL);
+ } else {
+ _normalizeComponentEncoding(components, protocol);
+ }
+ if (schemeHandler && schemeHandler.parse) {
+ schemeHandler.parse(components, options);
+ }
+ } else {
+ components.error = components.error || "URI can not be parsed.";
+ }
+ return components;
+ }
+ function _recomposeAuthority(components, options) {
+ var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
+ var uriTokens = [];
+ if (components.userinfo !== void 0) {
+ uriTokens.push(components.userinfo);
+ uriTokens.push("@");
+ }
+ if (components.host !== void 0) {
+ uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function(_, $1, $2) {
+ return "[" + $1 + ($2 ? "%25" + $2 : "") + "]";
+ }));
+ }
+ if (typeof components.port === "number" || typeof components.port === "string") {
+ uriTokens.push(":");
+ uriTokens.push(String(components.port));
+ }
+ return uriTokens.length ? uriTokens.join("") : void 0;
+ }
+ var RDS1 = /^\.\.?\//;
+ var RDS2 = /^\/\.(\/|$)/;
+ var RDS3 = /^\/\.\.(\/|$)/;
+ var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/;
+ function removeDotSegments(input) {
+ var output = [];
+ while (input.length) {
+ if (input.match(RDS1)) {
+ input = input.replace(RDS1, "");
+ } else if (input.match(RDS2)) {
+ input = input.replace(RDS2, "/");
+ } else if (input.match(RDS3)) {
+ input = input.replace(RDS3, "/");
+ output.pop();
+ } else if (input === "." || input === "..") {
+ input = "";
+ } else {
+ var im = input.match(RDS5);
+ if (im) {
+ var s = im[0];
+ input = input.slice(s.length);
+ output.push(s);
+ } else {
+ throw new Error("Unexpected dot segment condition");
+ }
+ }
+ }
+ return output.join("");
+ }
+ function serialize(components) {
+ var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
+ var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;
+ var uriTokens = [];
+ var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
+ if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
+ if (components.host) {
+ if (protocol.IPV6ADDRESS.test(components.host)) {
+ } else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {
+ try {
+ components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host);
+ } catch (e) {
+ components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
+ }
+ }
+ }
+ _normalizeComponentEncoding(components, protocol);
+ if (options.reference !== "suffix" && components.scheme) {
+ uriTokens.push(components.scheme);
+ uriTokens.push(":");
+ }
+ var authority = _recomposeAuthority(components, options);
+ if (authority !== void 0) {
+ if (options.reference !== "suffix") {
+ uriTokens.push("//");
+ }
+ uriTokens.push(authority);
+ if (components.path && components.path.charAt(0) !== "/") {
+ uriTokens.push("/");
+ }
+ }
+ if (components.path !== void 0) {
+ var s = components.path;
+ if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
+ s = removeDotSegments(s);
+ }
+ if (authority === void 0) {
+ s = s.replace(/^\/\//, "/%2F");
+ }
+ uriTokens.push(s);
+ }
+ if (components.query !== void 0) {
+ uriTokens.push("?");
+ uriTokens.push(components.query);
+ }
+ if (components.fragment !== void 0) {
+ uriTokens.push("#");
+ uriTokens.push(components.fragment);
+ }
+ return uriTokens.join("");
+ }
+ function resolveComponents(base2, relative) {
+ var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
+ var skipNormalization = arguments[3];
+ var target = {};
+ if (!skipNormalization) {
+ base2 = parse4(serialize(base2, options), options);
+ relative = parse4(serialize(relative, options), options);
+ }
+ options = options || {};
+ if (!options.tolerant && relative.scheme) {
+ target.scheme = relative.scheme;
+ target.userinfo = relative.userinfo;
+ target.host = relative.host;
+ target.port = relative.port;
+ target.path = removeDotSegments(relative.path || "");
+ target.query = relative.query;
+ } else {
+ if (relative.userinfo !== void 0 || relative.host !== void 0 || relative.port !== void 0) {
+ target.userinfo = relative.userinfo;
+ target.host = relative.host;
+ target.port = relative.port;
+ target.path = removeDotSegments(relative.path || "");
+ target.query = relative.query;
+ } else {
+ if (!relative.path) {
+ target.path = base2.path;
+ if (relative.query !== void 0) {
+ target.query = relative.query;
+ } else {
+ target.query = base2.query;
+ }
+ } else {
+ if (relative.path.charAt(0) === "/") {
+ target.path = removeDotSegments(relative.path);
+ } else {
+ if ((base2.userinfo !== void 0 || base2.host !== void 0 || base2.port !== void 0) && !base2.path) {
+ target.path = "/" + relative.path;
+ } else if (!base2.path) {
+ target.path = relative.path;
+ } else {
+ target.path = base2.path.slice(0, base2.path.lastIndexOf("/") + 1) + relative.path;
+ }
+ target.path = removeDotSegments(target.path);
+ }
+ target.query = relative.query;
+ }
+ target.userinfo = base2.userinfo;
+ target.host = base2.host;
+ target.port = base2.port;
+ }
+ target.scheme = base2.scheme;
+ }
+ target.fragment = relative.fragment;
+ return target;
+ }
+ function resolve(baseURI, relativeURI, options) {
+ var schemelessOptions = assign({ scheme: "null" }, options);
+ return serialize(resolveComponents(parse4(baseURI, schemelessOptions), parse4(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
+ }
+ function normalize2(uri, options) {
+ if (typeof uri === "string") {
+ uri = serialize(parse4(uri, options), options);
+ } else if (typeOf(uri) === "object") {
+ uri = parse4(serialize(uri, options), options);
+ }
+ return uri;
+ }
+ function equal(uriA, uriB, options) {
+ if (typeof uriA === "string") {
+ uriA = serialize(parse4(uriA, options), options);
+ } else if (typeOf(uriA) === "object") {
+ uriA = serialize(uriA, options);
+ }
+ if (typeof uriB === "string") {
+ uriB = serialize(parse4(uriB, options), options);
+ } else if (typeOf(uriB) === "object") {
+ uriB = serialize(uriB, options);
+ }
+ return uriA === uriB;
+ }
+ function escapeComponent(str, options) {
+ return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar);
+ }
+ function unescapeComponent(str, options) {
+ return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars);
+ }
+ var handler2 = {
+ scheme: "http",
+ domainHost: true,
+ parse: function parse5(components, options) {
+ if (!components.host) {
+ components.error = components.error || "HTTP URIs must have a host.";
+ }
+ return components;
+ },
+ serialize: function serialize2(components, options) {
+ var secure = String(components.scheme).toLowerCase() === "https";
+ if (components.port === (secure ? 443 : 80) || components.port === "") {
+ components.port = void 0;
+ }
+ if (!components.path) {
+ components.path = "/";
+ }
+ return components;
+ }
+ };
+ var handler$1 = {
+ scheme: "https",
+ domainHost: handler2.domainHost,
+ parse: handler2.parse,
+ serialize: handler2.serialize
+ };
+ function isSecure(wsComponents) {
+ return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
+ }
+ var handler$2 = {
+ scheme: "ws",
+ domainHost: true,
+ parse: function parse5(components, options) {
+ var wsComponents = components;
+ wsComponents.secure = isSecure(wsComponents);
+ wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
+ wsComponents.path = void 0;
+ wsComponents.query = void 0;
+ return wsComponents;
+ },
+ serialize: function serialize2(wsComponents, options) {
+ if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
+ wsComponents.port = void 0;
+ }
+ if (typeof wsComponents.secure === "boolean") {
+ wsComponents.scheme = wsComponents.secure ? "wss" : "ws";
+ wsComponents.secure = void 0;
+ }
+ if (wsComponents.resourceName) {
+ var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path3 = _wsComponents$resourc2[0], query2 = _wsComponents$resourc2[1];
+ wsComponents.path = path3 && path3 !== "/" ? path3 : void 0;
+ wsComponents.query = query2;
+ wsComponents.resourceName = void 0;
+ }
+ wsComponents.fragment = void 0;
+ return wsComponents;
+ }
+ };
+ var handler$3 = {
+ scheme: "wss",
+ domainHost: handler$2.domainHost,
+ parse: handler$2.parse,
+ serialize: handler$2.serialize
+ };
+ var O = {};
+ var isIRI = true;
+ var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]";
+ var HEXDIG$$ = "[0-9A-Fa-f]";
+ var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$));
+ var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
+ var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";
+ var VCHAR$$ = merge3(QTEXT$$, '[\\"\\\\]');
+ var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
+ var UNRESERVED = new RegExp(UNRESERVED$$, "g");
+ var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
+ var NOT_LOCAL_PART = new RegExp(merge3("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
+ var NOT_HFNAME = new RegExp(merge3("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
+ var NOT_HFVALUE = NOT_HFNAME;
+ function decodeUnreserved(str) {
+ var decStr = pctDecChars(str);
+ return !decStr.match(UNRESERVED) ? str : decStr;
+ }
+ var handler$4 = {
+ scheme: "mailto",
+ parse: function parse$$1(components, options) {
+ var mailtoComponents = components;
+ var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : [];
+ mailtoComponents.path = void 0;
+ if (mailtoComponents.query) {
+ var unknownHeaders = false;
+ var headers = {};
+ var hfields = mailtoComponents.query.split("&");
+ for (var x = 0, xl = hfields.length; x < xl; ++x) {
+ var hfield = hfields[x].split("=");
+ switch (hfield[0]) {
+ case "to":
+ var toAddrs = hfield[1].split(",");
+ for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) {
+ to.push(toAddrs[_x]);
+ }
+ break;
+ case "subject":
+ mailtoComponents.subject = unescapeComponent(hfield[1], options);
+ break;
+ case "body":
+ mailtoComponents.body = unescapeComponent(hfield[1], options);
+ break;
+ default:
+ unknownHeaders = true;
+ headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);
+ break;
+ }
+ }
+ if (unknownHeaders) mailtoComponents.headers = headers;
+ }
+ mailtoComponents.query = void 0;
+ for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {
+ var addr = to[_x2].split("@");
+ addr[0] = unescapeComponent(addr[0]);
+ if (!options.unicodeSupport) {
+ try {
+ addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());
+ } catch (e) {
+ mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
+ }
+ } else {
+ addr[1] = unescapeComponent(addr[1], options).toLowerCase();
+ }
+ to[_x2] = addr.join("@");
+ }
+ return mailtoComponents;
+ },
+ serialize: function serialize$$1(mailtoComponents, options) {
+ var components = mailtoComponents;
+ var to = toArray(mailtoComponents.to);
+ if (to) {
+ for (var x = 0, xl = to.length; x < xl; ++x) {
+ var toAddr = String(to[x]);
+ var atIdx = toAddr.lastIndexOf("@");
+ var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
+ var domain2 = toAddr.slice(atIdx + 1);
+ try {
+ domain2 = !options.iri ? punycode.toASCII(unescapeComponent(domain2, options).toLowerCase()) : punycode.toUnicode(domain2);
+ } catch (e) {
+ components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
+ }
+ to[x] = localPart + "@" + domain2;
+ }
+ components.path = to.join(",");
+ }
+ var headers = mailtoComponents.headers = mailtoComponents.headers || {};
+ if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject;
+ if (mailtoComponents.body) headers["body"] = mailtoComponents.body;
+ var fields = [];
+ for (var name in headers) {
+ if (headers[name] !== O[name]) {
+ fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));
+ }
+ }
+ if (fields.length) {
+ components.query = fields.join("&");
+ }
+ return components;
+ }
+ };
+ var URN_PARSE = /^([^\:]+)\:(.*)/;
+ var handler$5 = {
+ scheme: "urn",
+ parse: function parse$$1(components, options) {
+ var matches = components.path && components.path.match(URN_PARSE);
+ var urnComponents = components;
+ if (matches) {
+ var scheme = options.scheme || urnComponents.scheme || "urn";
+ var nid = matches[1].toLowerCase();
+ var nss = matches[2];
+ var urnScheme = scheme + ":" + (options.nid || nid);
+ var schemeHandler = SCHEMES[urnScheme];
+ urnComponents.nid = nid;
+ urnComponents.nss = nss;
+ urnComponents.path = void 0;
+ if (schemeHandler) {
+ urnComponents = schemeHandler.parse(urnComponents, options);
+ }
+ } else {
+ urnComponents.error = urnComponents.error || "URN can not be parsed.";
+ }
+ return urnComponents;
+ },
+ serialize: function serialize$$1(urnComponents, options) {
+ var scheme = options.scheme || urnComponents.scheme || "urn";
+ var nid = urnComponents.nid;
+ var urnScheme = scheme + ":" + (options.nid || nid);
+ var schemeHandler = SCHEMES[urnScheme];
+ if (schemeHandler) {
+ urnComponents = schemeHandler.serialize(urnComponents, options);
+ }
+ var uriComponents = urnComponents;
+ var nss = urnComponents.nss;
+ uriComponents.path = (nid || options.nid) + ":" + nss;
+ return uriComponents;
+ }
+ };
+ var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
+ var handler$6 = {
+ scheme: "urn:uuid",
+ parse: function parse5(urnComponents, options) {
+ var uuidComponents = urnComponents;
+ uuidComponents.uuid = uuidComponents.nss;
+ uuidComponents.nss = void 0;
+ if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {
+ uuidComponents.error = uuidComponents.error || "UUID is not valid.";
+ }
+ return uuidComponents;
+ },
+ serialize: function serialize2(uuidComponents, options) {
+ var urnComponents = uuidComponents;
+ urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
+ return urnComponents;
+ }
+ };
+ SCHEMES[handler2.scheme] = handler2;
+ SCHEMES[handler$1.scheme] = handler$1;
+ SCHEMES[handler$2.scheme] = handler$2;
+ SCHEMES[handler$3.scheme] = handler$3;
+ SCHEMES[handler$4.scheme] = handler$4;
+ SCHEMES[handler$5.scheme] = handler$5;
+ SCHEMES[handler$6.scheme] = handler$6;
+ exports2.SCHEMES = SCHEMES;
+ exports2.pctEncChar = pctEncChar;
+ exports2.pctDecChars = pctDecChars;
+ exports2.parse = parse4;
+ exports2.removeDotSegments = removeDotSegments;
+ exports2.serialize = serialize;
+ exports2.resolveComponents = resolveComponents;
+ exports2.resolve = resolve;
+ exports2.normalize = normalize2;
+ exports2.equal = equal;
+ exports2.escapeComponent = escapeComponent;
+ exports2.unescapeComponent = unescapeComponent;
+ Object.defineProperty(exports2, "__esModule", { value: true });
+ }));
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/ucs2length.js
+var require_ucs2length2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/ucs2length.js"(exports, module) {
+ "use strict";
+ module.exports = function ucs2length(str) {
+ var length = 0, len = str.length, pos = 0, value2;
+ while (pos < len) {
+ length++;
+ value2 = str.charCodeAt(pos++);
+ if (value2 >= 55296 && value2 <= 56319 && pos < len) {
+ value2 = str.charCodeAt(pos);
+ if ((value2 & 64512) == 56320) pos++;
+ }
+ }
+ return length;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/util.js
+var require_util9 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/util.js"(exports, module) {
+ "use strict";
+ module.exports = {
+ copy,
+ checkDataType,
+ checkDataTypes,
+ coerceToTypes,
+ toHash,
+ getProperty,
+ escapeQuotes,
+ equal: require_fast_deep_equal2(),
+ ucs2length: require_ucs2length2(),
+ varOccurences,
+ varReplace,
+ schemaHasRules,
+ schemaHasRulesExcept,
+ schemaUnknownRules,
+ toQuotedString,
+ getPathExpr,
+ getPath,
+ getData,
+ unescapeFragment,
+ unescapeJsonPointer,
+ escapeFragment,
+ escapeJsonPointer
+ };
+ function copy(o, to) {
+ to = to || {};
+ for (var key in o) to[key] = o[key];
+ return to;
+ }
+ function checkDataType(dataType, data, strictNumbers, negate) {
+ var EQUAL = negate ? " !== " : " === ", AND = negate ? " || " : " && ", OK4 = negate ? "!" : "", NOT = negate ? "" : "!";
+ switch (dataType) {
+ case "null":
+ return data + EQUAL + "null";
+ case "array":
+ return OK4 + "Array.isArray(" + data + ")";
+ case "object":
+ return "(" + OK4 + data + AND + "typeof " + data + EQUAL + '"object"' + AND + NOT + "Array.isArray(" + data + "))";
+ case "integer":
+ return "(typeof " + data + EQUAL + '"number"' + AND + NOT + "(" + data + " % 1)" + AND + data + EQUAL + data + (strictNumbers ? AND + OK4 + "isFinite(" + data + ")" : "") + ")";
+ case "number":
+ return "(typeof " + data + EQUAL + '"' + dataType + '"' + (strictNumbers ? AND + OK4 + "isFinite(" + data + ")" : "") + ")";
+ default:
+ return "typeof " + data + EQUAL + '"' + dataType + '"';
+ }
+ }
+ function checkDataTypes(dataTypes, data, strictNumbers) {
+ switch (dataTypes.length) {
+ case 1:
+ return checkDataType(dataTypes[0], data, strictNumbers, true);
+ default:
+ var code = "";
+ var types = toHash(dataTypes);
+ if (types.array && types.object) {
+ code = types.null ? "(" : "(!" + data + " || ";
+ code += "typeof " + data + ' !== "object")';
+ delete types.null;
+ delete types.array;
+ delete types.object;
+ }
+ if (types.number) delete types.integer;
+ for (var t in types)
+ code += (code ? " && " : "") + checkDataType(t, data, strictNumbers, true);
+ return code;
+ }
+ }
+ var COERCE_TO_TYPES = toHash(["string", "number", "integer", "boolean", "null"]);
+ function coerceToTypes(optionCoerceTypes, dataTypes) {
+ if (Array.isArray(dataTypes)) {
+ var types = [];
+ for (var i = 0; i < dataTypes.length; i++) {
+ var t = dataTypes[i];
+ if (COERCE_TO_TYPES[t]) types[types.length] = t;
+ else if (optionCoerceTypes === "array" && t === "array") types[types.length] = t;
+ }
+ if (types.length) return types;
+ } else if (COERCE_TO_TYPES[dataTypes]) {
+ return [dataTypes];
+ } else if (optionCoerceTypes === "array" && dataTypes === "array") {
+ return ["array"];
+ }
+ }
+ function toHash(arr) {
+ var hash = {};
+ for (var i = 0; i < arr.length; i++) hash[arr[i]] = true;
+ return hash;
+ }
+ var IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
+ var SINGLE_QUOTE = /'|\\/g;
+ function getProperty(key) {
+ return typeof key == "number" ? "[" + key + "]" : IDENTIFIER.test(key) ? "." + key : "['" + escapeQuotes(key) + "']";
+ }
+ function escapeQuotes(str) {
+ return str.replace(SINGLE_QUOTE, "\\$&").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\f/g, "\\f").replace(/\t/g, "\\t");
+ }
+ function varOccurences(str, dataVar) {
+ dataVar += "[^0-9]";
+ var matches = str.match(new RegExp(dataVar, "g"));
+ return matches ? matches.length : 0;
+ }
+ function varReplace(str, dataVar, expr) {
+ dataVar += "([^0-9])";
+ expr = expr.replace(/\$/g, "$$$$");
+ return str.replace(new RegExp(dataVar, "g"), expr + "$1");
+ }
+ function schemaHasRules(schema2, rules) {
+ if (typeof schema2 == "boolean") return !schema2;
+ for (var key in schema2) if (rules[key]) return true;
+ }
+ function schemaHasRulesExcept(schema2, rules, exceptKeyword) {
+ if (typeof schema2 == "boolean") return !schema2 && exceptKeyword != "not";
+ for (var key in schema2) if (key != exceptKeyword && rules[key]) return true;
+ }
+ function schemaUnknownRules(schema2, rules) {
+ if (typeof schema2 == "boolean") return;
+ for (var key in schema2) if (!rules[key]) return key;
+ }
+ function toQuotedString(str) {
+ return "'" + escapeQuotes(str) + "'";
+ }
+ function getPathExpr(currentPath, expr, jsonPointers, isNumber2) {
+ var path3 = jsonPointers ? "'/' + " + expr + (isNumber2 ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber2 ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
+ return joinPaths(currentPath, path3);
+ }
+ function getPath(currentPath, prop, jsonPointers) {
+ var path3 = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
+ return joinPaths(currentPath, path3);
+ }
+ var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
+ var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
+ function getData($data, lvl, paths) {
+ var up, jsonPointer, data, matches;
+ if ($data === "") return "rootData";
+ if ($data[0] == "/") {
+ if (!JSON_POINTER.test($data)) throw new Error("Invalid JSON-pointer: " + $data);
+ jsonPointer = $data;
+ data = "rootData";
+ } else {
+ matches = $data.match(RELATIVE_JSON_POINTER);
+ if (!matches) throw new Error("Invalid JSON-pointer: " + $data);
+ up = +matches[1];
+ jsonPointer = matches[2];
+ if (jsonPointer == "#") {
+ if (up >= lvl) throw new Error("Cannot access property/index " + up + " levels up, current level is " + lvl);
+ return paths[lvl - up];
+ }
+ if (up > lvl) throw new Error("Cannot access data " + up + " levels up, current level is " + lvl);
+ data = "data" + (lvl - up || "");
+ if (!jsonPointer) return data;
+ }
+ var expr = data;
+ var segments = jsonPointer.split("/");
+ for (var i = 0; i < segments.length; i++) {
+ var segment = segments[i];
+ if (segment) {
+ data += getProperty(unescapeJsonPointer(segment));
+ expr += " && " + data;
+ }
+ }
+ return expr;
+ }
+ function joinPaths(a, b) {
+ if (a == '""') return b;
+ return (a + " + " + b).replace(/([^\\])' \+ '/g, "$1");
+ }
+ function unescapeFragment(str) {
+ return unescapeJsonPointer(decodeURIComponent(str));
+ }
+ function escapeFragment(str) {
+ return encodeURIComponent(escapeJsonPointer(str));
+ }
+ function escapeJsonPointer(str) {
+ return str.replace(/~/g, "~0").replace(/\//g, "~1");
+ }
+ function unescapeJsonPointer(str) {
+ return str.replace(/~1/g, "/").replace(/~0/g, "~");
+ }
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/schema_obj.js
+var require_schema_obj2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/schema_obj.js"(exports, module) {
+ "use strict";
+ var util3 = require_util9();
+ module.exports = SchemaObject;
+ function SchemaObject(obj) {
+ util3.copy(obj, this);
+ }
+ }
+});
+
+// ../node_modules/.pnpm/json-schema-traverse@0.4.1/node_modules/json-schema-traverse/index.js
+var require_json_schema_traverse2 = __commonJS({
+ "../node_modules/.pnpm/json-schema-traverse@0.4.1/node_modules/json-schema-traverse/index.js"(exports, module) {
+ "use strict";
+ var traverse = module.exports = function(schema2, opts, cb) {
+ if (typeof opts == "function") {
+ cb = opts;
+ opts = {};
+ }
+ cb = opts.cb || cb;
+ var pre = typeof cb == "function" ? cb : cb.pre || function() {
+ };
+ var post = cb.post || function() {
+ };
+ _traverse(opts, pre, post, schema2, "", schema2);
+ };
+ traverse.keywords = {
+ additionalItems: true,
+ items: true,
+ contains: true,
+ additionalProperties: true,
+ propertyNames: true,
+ not: true
+ };
+ traverse.arrayKeywords = {
+ items: true,
+ allOf: true,
+ anyOf: true,
+ oneOf: true
+ };
+ traverse.propsKeywords = {
+ definitions: true,
+ properties: true,
+ patternProperties: true,
+ dependencies: true
+ };
+ traverse.skipKeywords = {
+ default: true,
+ enum: true,
+ const: true,
+ required: true,
+ maximum: true,
+ minimum: true,
+ exclusiveMaximum: true,
+ exclusiveMinimum: true,
+ multipleOf: true,
+ maxLength: true,
+ minLength: true,
+ pattern: true,
+ format: true,
+ maxItems: true,
+ minItems: true,
+ uniqueItems: true,
+ maxProperties: true,
+ minProperties: true
+ };
+ function _traverse(opts, pre, post, schema2, jsonPtr, rootSchema2, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
+ if (schema2 && typeof schema2 == "object" && !Array.isArray(schema2)) {
+ pre(schema2, jsonPtr, rootSchema2, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
+ for (var key in schema2) {
+ var sch = schema2[key];
+ if (Array.isArray(sch)) {
+ if (key in traverse.arrayKeywords) {
+ for (var i = 0; i < sch.length; i++)
+ _traverse(opts, pre, post, sch[i], jsonPtr + "/" + key + "/" + i, rootSchema2, jsonPtr, key, schema2, i);
+ }
+ } else if (key in traverse.propsKeywords) {
+ if (sch && typeof sch == "object") {
+ for (var prop in sch)
+ _traverse(opts, pre, post, sch[prop], jsonPtr + "/" + key + "/" + escapeJsonPtr(prop), rootSchema2, jsonPtr, key, schema2, prop);
+ }
+ } else if (key in traverse.keywords || opts.allKeys && !(key in traverse.skipKeywords)) {
+ _traverse(opts, pre, post, sch, jsonPtr + "/" + key, rootSchema2, jsonPtr, key, schema2);
+ }
+ }
+ post(schema2, jsonPtr, rootSchema2, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
+ }
+ }
+ function escapeJsonPtr(str) {
+ return str.replace(/~/g, "~0").replace(/\//g, "~1");
+ }
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/resolve.js
+var require_resolve2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/resolve.js"(exports, module) {
+ "use strict";
+ var URI = require_uri_all2();
+ var equal = require_fast_deep_equal2();
+ var util3 = require_util9();
+ var SchemaObject = require_schema_obj2();
+ var traverse = require_json_schema_traverse2();
+ module.exports = resolve;
+ resolve.normalizeId = normalizeId;
+ resolve.fullPath = getFullPath;
+ resolve.url = resolveUrl;
+ resolve.ids = resolveIds;
+ resolve.inlineRef = inlineRef;
+ resolve.schema = resolveSchema;
+ function resolve(compile, root2, ref) {
+ var refVal = this._refs[ref];
+ if (typeof refVal == "string") {
+ if (this._refs[refVal]) refVal = this._refs[refVal];
+ else return resolve.call(this, compile, root2, refVal);
+ }
+ refVal = refVal || this._schemas[ref];
+ if (refVal instanceof SchemaObject) {
+ return inlineRef(refVal.schema, this._opts.inlineRefs) ? refVal.schema : refVal.validate || this._compile(refVal);
+ }
+ var res = resolveSchema.call(this, root2, ref);
+ var schema2, v, baseId;
+ if (res) {
+ schema2 = res.schema;
+ root2 = res.root;
+ baseId = res.baseId;
+ }
+ if (schema2 instanceof SchemaObject) {
+ v = schema2.validate || compile.call(this, schema2.schema, root2, void 0, baseId);
+ } else if (schema2 !== void 0) {
+ v = inlineRef(schema2, this._opts.inlineRefs) ? schema2 : compile.call(this, schema2, root2, void 0, baseId);
+ }
+ return v;
+ }
+ function resolveSchema(root2, ref) {
+ var p = URI.parse(ref), refPath = _getFullPath(p), baseId = getFullPath(this._getId(root2.schema));
+ if (Object.keys(root2.schema).length === 0 || refPath !== baseId) {
+ var id = normalizeId(refPath);
+ var refVal = this._refs[id];
+ if (typeof refVal == "string") {
+ return resolveRecursive.call(this, root2, refVal, p);
+ } else if (refVal instanceof SchemaObject) {
+ if (!refVal.validate) this._compile(refVal);
+ root2 = refVal;
+ } else {
+ refVal = this._schemas[id];
+ if (refVal instanceof SchemaObject) {
+ if (!refVal.validate) this._compile(refVal);
+ if (id == normalizeId(ref))
+ return { schema: refVal, root: root2, baseId };
+ root2 = refVal;
+ } else {
+ return;
+ }
+ }
+ if (!root2.schema) return;
+ baseId = getFullPath(this._getId(root2.schema));
+ }
+ return getJsonPointer.call(this, p, baseId, root2.schema, root2);
+ }
+ function resolveRecursive(root2, ref, parsedRef) {
+ var res = resolveSchema.call(this, root2, ref);
+ if (res) {
+ var schema2 = res.schema;
+ var baseId = res.baseId;
+ root2 = res.root;
+ var id = this._getId(schema2);
+ if (id) baseId = resolveUrl(baseId, id);
+ return getJsonPointer.call(this, parsedRef, baseId, schema2, root2);
+ }
+ }
+ var PREVENT_SCOPE_CHANGE = util3.toHash(["properties", "patternProperties", "enum", "dependencies", "definitions"]);
+ function getJsonPointer(parsedRef, baseId, schema2, root2) {
+ parsedRef.fragment = parsedRef.fragment || "";
+ if (parsedRef.fragment.slice(0, 1) != "/") return;
+ var parts = parsedRef.fragment.split("/");
+ for (var i = 1; i < parts.length; i++) {
+ var part = parts[i];
+ if (part) {
+ part = util3.unescapeFragment(part);
+ schema2 = schema2[part];
+ if (schema2 === void 0) break;
+ var id;
+ if (!PREVENT_SCOPE_CHANGE[part]) {
+ id = this._getId(schema2);
+ if (id) baseId = resolveUrl(baseId, id);
+ if (schema2.$ref) {
+ var $ref = resolveUrl(baseId, schema2.$ref);
+ var res = resolveSchema.call(this, root2, $ref);
+ if (res) {
+ schema2 = res.schema;
+ root2 = res.root;
+ baseId = res.baseId;
+ }
+ }
+ }
+ }
+ }
+ if (schema2 !== void 0 && schema2 !== root2.schema)
+ return { schema: schema2, root: root2, baseId };
+ }
+ var SIMPLE_INLINED = util3.toHash([
+ "type",
+ "format",
+ "pattern",
+ "maxLength",
+ "minLength",
+ "maxProperties",
+ "minProperties",
+ "maxItems",
+ "minItems",
+ "maximum",
+ "minimum",
+ "uniqueItems",
+ "multipleOf",
+ "required",
+ "enum"
+ ]);
+ function inlineRef(schema2, limit) {
+ if (limit === false) return false;
+ if (limit === void 0 || limit === true) return checkNoRef(schema2);
+ else if (limit) return countKeys(schema2) <= limit;
+ }
+ function checkNoRef(schema2) {
+ var item;
+ if (Array.isArray(schema2)) {
+ for (var i = 0; i < schema2.length; i++) {
+ item = schema2[i];
+ if (typeof item == "object" && !checkNoRef(item)) return false;
+ }
+ } else {
+ for (var key in schema2) {
+ if (key == "$ref") return false;
+ item = schema2[key];
+ if (typeof item == "object" && !checkNoRef(item)) return false;
+ }
+ }
+ return true;
+ }
+ function countKeys(schema2) {
+ var count = 0, item;
+ if (Array.isArray(schema2)) {
+ for (var i = 0; i < schema2.length; i++) {
+ item = schema2[i];
+ if (typeof item == "object") count += countKeys(item);
+ if (count == Infinity) return Infinity;
+ }
+ } else {
+ for (var key in schema2) {
+ if (key == "$ref") return Infinity;
+ if (SIMPLE_INLINED[key]) {
+ count++;
+ } else {
+ item = schema2[key];
+ if (typeof item == "object") count += countKeys(item) + 1;
+ if (count == Infinity) return Infinity;
+ }
+ }
+ }
+ return count;
+ }
+ function getFullPath(id, normalize2) {
+ if (normalize2 !== false) id = normalizeId(id);
+ var p = URI.parse(id);
+ return _getFullPath(p);
+ }
+ function _getFullPath(p) {
+ return URI.serialize(p).split("#")[0] + "#";
+ }
+ var TRAILING_SLASH_HASH = /#\/?$/;
+ function normalizeId(id) {
+ return id ? id.replace(TRAILING_SLASH_HASH, "") : "";
+ }
+ function resolveUrl(baseId, id) {
+ id = normalizeId(id);
+ return URI.resolve(baseId, id);
+ }
+ function resolveIds(schema2) {
+ var schemaId = normalizeId(this._getId(schema2));
+ var baseIds = { "": schemaId };
+ var fullPaths = { "": getFullPath(schemaId, false) };
+ var localRefs = {};
+ var self2 = this;
+ traverse(schema2, { allKeys: true }, function(sch, jsonPtr, rootSchema2, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
+ if (jsonPtr === "") return;
+ var id = self2._getId(sch);
+ var baseId = baseIds[parentJsonPtr];
+ var fullPath = fullPaths[parentJsonPtr] + "/" + parentKeyword;
+ if (keyIndex !== void 0)
+ fullPath += "/" + (typeof keyIndex == "number" ? keyIndex : util3.escapeFragment(keyIndex));
+ if (typeof id == "string") {
+ id = baseId = normalizeId(baseId ? URI.resolve(baseId, id) : id);
+ var refVal = self2._refs[id];
+ if (typeof refVal == "string") refVal = self2._refs[refVal];
+ if (refVal && refVal.schema) {
+ if (!equal(sch, refVal.schema))
+ throw new Error('id "' + id + '" resolves to more than one schema');
+ } else if (id != normalizeId(fullPath)) {
+ if (id[0] == "#") {
+ if (localRefs[id] && !equal(sch, localRefs[id]))
+ throw new Error('id "' + id + '" resolves to more than one schema');
+ localRefs[id] = sch;
+ } else {
+ self2._refs[id] = fullPath;
+ }
+ }
+ }
+ baseIds[jsonPtr] = baseId;
+ fullPaths[jsonPtr] = fullPath;
+ });
+ return localRefs;
+ }
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/error_classes.js
+var require_error_classes2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/error_classes.js"(exports, module) {
+ "use strict";
+ var resolve = require_resolve2();
+ module.exports = {
+ Validation: errorSubclass(ValidationError),
+ MissingRef: errorSubclass(MissingRefError)
+ };
+ function ValidationError(errors) {
+ this.message = "validation failed";
+ this.errors = errors;
+ this.ajv = this.validation = true;
+ }
+ MissingRefError.message = function(baseId, ref) {
+ return "can't resolve reference " + ref + " from id " + baseId;
+ };
+ function MissingRefError(baseId, ref, message) {
+ this.message = message || MissingRefError.message(baseId, ref);
+ this.missingRef = resolve.url(baseId, ref);
+ this.missingSchema = resolve.normalizeId(resolve.fullPath(this.missingRef));
+ }
+ function errorSubclass(Subclass) {
+ Subclass.prototype = Object.create(Error.prototype);
+ Subclass.prototype.constructor = Subclass;
+ return Subclass;
+ }
+ }
+});
+
+// ../node_modules/.pnpm/fast-json-stable-stringify@2.1.0/node_modules/fast-json-stable-stringify/index.js
+var require_fast_json_stable_stringify2 = __commonJS({
+ "../node_modules/.pnpm/fast-json-stable-stringify@2.1.0/node_modules/fast-json-stable-stringify/index.js"(exports, module) {
+ "use strict";
+ module.exports = function(data, opts) {
+ if (!opts) opts = {};
+ if (typeof opts === "function") opts = { cmp: opts };
+ var cycles = typeof opts.cycles === "boolean" ? opts.cycles : false;
+ var cmp = opts.cmp && /* @__PURE__ */ (function(f) {
+ return function(node2) {
+ return function(a, b) {
+ var aobj = { key: a, value: node2[a] };
+ var bobj = { key: b, value: node2[b] };
+ return f(aobj, bobj);
+ };
+ };
+ })(opts.cmp);
+ var seen = [];
+ return (function stringify(node2) {
+ if (node2 && node2.toJSON && typeof node2.toJSON === "function") {
+ node2 = node2.toJSON();
+ }
+ if (node2 === void 0) return;
+ if (typeof node2 == "number") return isFinite(node2) ? "" + node2 : "null";
+ if (typeof node2 !== "object") return JSON.stringify(node2);
+ var i, out;
+ if (Array.isArray(node2)) {
+ out = "[";
+ for (i = 0; i < node2.length; i++) {
+ if (i) out += ",";
+ out += stringify(node2[i]) || "null";
+ }
+ return out + "]";
+ }
+ if (node2 === null) return "null";
+ if (seen.indexOf(node2) !== -1) {
+ if (cycles) return JSON.stringify("__cycle__");
+ throw new TypeError("Converting circular structure to JSON");
+ }
+ var seenIndex = seen.push(node2) - 1;
+ var keys = Object.keys(node2).sort(cmp && cmp(node2));
+ out = "";
+ for (i = 0; i < keys.length; i++) {
+ var key = keys[i];
+ var value2 = stringify(node2[key]);
+ if (!value2) continue;
+ if (out) out += ",";
+ out += JSON.stringify(key) + ":" + value2;
+ }
+ seen.splice(seenIndex, 1);
+ return "{" + out + "}";
+ })(data);
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/validate.js
+var require_validate2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/validate.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_validate(it, $keyword, $ruleType) {
+ var out = "";
+ var $async = it.schema.$async === true, $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, "$ref"), $id = it.self._getId(it.schema);
+ if (it.opts.strictKeywords) {
+ var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords);
+ if ($unknownKwd) {
+ var $keywordsMsg = "unknown keyword: " + $unknownKwd;
+ if (it.opts.strictKeywords === "log") it.logger.warn($keywordsMsg);
+ else throw new Error($keywordsMsg);
+ }
+ }
+ if (it.isTop) {
+ out += " var validate = ";
+ if ($async) {
+ it.async = true;
+ out += "async ";
+ }
+ out += "function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";
+ if ($id && (it.opts.sourceCode || it.opts.processCode)) {
+ out += " " + ("/*# sourceURL=" + $id + " */") + " ";
+ }
+ }
+ if (typeof it.schema == "boolean" || !($refKeywords || it.schema.$ref)) {
+ var $keyword = "false schema";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $errorKeyword;
+ var $data = "data" + ($dataLvl || "");
+ var $valid = "valid" + $lvl;
+ if (it.schema === false) {
+ if (it.isTop) {
+ $breakOnError = true;
+ } else {
+ out += " var " + $valid + " = false; ";
+ }
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: '" + ($errorKeyword || "false schema") + "' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: {} ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'boolean schema is false' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: false , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ } else {
+ if (it.isTop) {
+ if ($async) {
+ out += " return data; ";
+ } else {
+ out += " validate.errors = null; return true; ";
+ }
+ } else {
+ out += " var " + $valid + " = true; ";
+ }
+ }
+ if (it.isTop) {
+ out += " }; return validate; ";
+ }
+ return out;
+ }
+ if (it.isTop) {
+ var $top = it.isTop, $lvl = it.level = 0, $dataLvl = it.dataLevel = 0, $data = "data";
+ it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema));
+ it.baseId = it.baseId || it.rootId;
+ delete it.isTop;
+ it.dataPathArr = [""];
+ if (it.schema.default !== void 0 && it.opts.useDefaults && it.opts.strictDefaults) {
+ var $defaultMsg = "default is ignored in the schema root";
+ if (it.opts.strictDefaults === "log") it.logger.warn($defaultMsg);
+ else throw new Error($defaultMsg);
+ }
+ out += " var vErrors = null; ";
+ out += " var errors = 0; ";
+ out += " if (rootData === undefined) rootData = data; ";
+ } else {
+ var $lvl = it.level, $dataLvl = it.dataLevel, $data = "data" + ($dataLvl || "");
+ if ($id) it.baseId = it.resolve.url(it.baseId, $id);
+ if ($async && !it.async) throw new Error("async schema in sync schema");
+ out += " var errs_" + $lvl + " = errors;";
+ }
+ var $valid = "valid" + $lvl, $breakOnError = !it.opts.allErrors, $closingBraces1 = "", $closingBraces2 = "";
+ var $errorKeyword;
+ var $typeSchema = it.schema.type, $typeIsArray = Array.isArray($typeSchema);
+ if ($typeSchema && it.opts.nullable && it.schema.nullable === true) {
+ if ($typeIsArray) {
+ if ($typeSchema.indexOf("null") == -1) $typeSchema = $typeSchema.concat("null");
+ } else if ($typeSchema != "null") {
+ $typeSchema = [$typeSchema, "null"];
+ $typeIsArray = true;
+ }
+ }
+ if ($typeIsArray && $typeSchema.length == 1) {
+ $typeSchema = $typeSchema[0];
+ $typeIsArray = false;
+ }
+ if (it.schema.$ref && $refKeywords) {
+ if (it.opts.extendRefs == "fail") {
+ throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)');
+ } else if (it.opts.extendRefs !== true) {
+ $refKeywords = false;
+ it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"');
+ }
+ }
+ if (it.schema.$comment && it.opts.$comment) {
+ out += " " + it.RULES.all.$comment.code(it, "$comment");
+ }
+ if ($typeSchema) {
+ if (it.opts.coerceTypes) {
+ var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema);
+ }
+ var $rulesGroup = it.RULES.types[$typeSchema];
+ if ($coerceToTypes || $typeIsArray || $rulesGroup === true || $rulesGroup && !$shouldUseGroup($rulesGroup)) {
+ var $schemaPath = it.schemaPath + ".type", $errSchemaPath = it.errSchemaPath + "/type";
+ var $schemaPath = it.schemaPath + ".type", $errSchemaPath = it.errSchemaPath + "/type", $method = $typeIsArray ? "checkDataTypes" : "checkDataType";
+ out += " if (" + it.util[$method]($typeSchema, $data, it.opts.strictNumbers, true) + ") { ";
+ if ($coerceToTypes) {
+ var $dataType = "dataType" + $lvl, $coerced = "coerced" + $lvl;
+ out += " var " + $dataType + " = typeof " + $data + "; var " + $coerced + " = undefined; ";
+ if (it.opts.coerceTypes == "array") {
+ out += " if (" + $dataType + " == 'object' && Array.isArray(" + $data + ") && " + $data + ".length == 1) { " + $data + " = " + $data + "[0]; " + $dataType + " = typeof " + $data + "; if (" + it.util.checkDataType(it.schema.type, $data, it.opts.strictNumbers) + ") " + $coerced + " = " + $data + "; } ";
+ }
+ out += " if (" + $coerced + " !== undefined) ; ";
+ var arr1 = $coerceToTypes;
+ if (arr1) {
+ var $type, $i = -1, l1 = arr1.length - 1;
+ while ($i < l1) {
+ $type = arr1[$i += 1];
+ if ($type == "string") {
+ out += " else if (" + $dataType + " == 'number' || " + $dataType + " == 'boolean') " + $coerced + " = '' + " + $data + "; else if (" + $data + " === null) " + $coerced + " = ''; ";
+ } else if ($type == "number" || $type == "integer") {
+ out += " else if (" + $dataType + " == 'boolean' || " + $data + " === null || (" + $dataType + " == 'string' && " + $data + " && " + $data + " == +" + $data + " ";
+ if ($type == "integer") {
+ out += " && !(" + $data + " % 1)";
+ }
+ out += ")) " + $coerced + " = +" + $data + "; ";
+ } else if ($type == "boolean") {
+ out += " else if (" + $data + " === 'false' || " + $data + " === 0 || " + $data + " === null) " + $coerced + " = false; else if (" + $data + " === 'true' || " + $data + " === 1) " + $coerced + " = true; ";
+ } else if ($type == "null") {
+ out += " else if (" + $data + " === '' || " + $data + " === 0 || " + $data + " === false) " + $coerced + " = null; ";
+ } else if (it.opts.coerceTypes == "array" && $type == "array") {
+ out += " else if (" + $dataType + " == 'string' || " + $dataType + " == 'number' || " + $dataType + " == 'boolean' || " + $data + " == null) " + $coerced + " = [" + $data + "]; ";
+ }
+ }
+ }
+ out += " else { ";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: '" + ($errorKeyword || "type") + "' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { type: '";
+ if ($typeIsArray) {
+ out += "" + $typeSchema.join(",");
+ } else {
+ out += "" + $typeSchema;
+ }
+ out += "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should be ";
+ if ($typeIsArray) {
+ out += "" + $typeSchema.join(",");
+ } else {
+ out += "" + $typeSchema;
+ }
+ out += "' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " } if (" + $coerced + " !== undefined) { ";
+ var $parentData = $dataLvl ? "data" + ($dataLvl - 1 || "") : "parentData", $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : "parentDataProperty";
+ out += " " + $data + " = " + $coerced + "; ";
+ if (!$dataLvl) {
+ out += "if (" + $parentData + " !== undefined)";
+ }
+ out += " " + $parentData + "[" + $parentDataProperty + "] = " + $coerced + "; } ";
+ } else {
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: '" + ($errorKeyword || "type") + "' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { type: '";
+ if ($typeIsArray) {
+ out += "" + $typeSchema.join(",");
+ } else {
+ out += "" + $typeSchema;
+ }
+ out += "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should be ";
+ if ($typeIsArray) {
+ out += "" + $typeSchema.join(",");
+ } else {
+ out += "" + $typeSchema;
+ }
+ out += "' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ }
+ out += " } ";
+ }
+ }
+ if (it.schema.$ref && !$refKeywords) {
+ out += " " + it.RULES.all.$ref.code(it, "$ref") + " ";
+ if ($breakOnError) {
+ out += " } if (errors === ";
+ if ($top) {
+ out += "0";
+ } else {
+ out += "errs_" + $lvl;
+ }
+ out += ") { ";
+ $closingBraces2 += "}";
+ }
+ } else {
+ var arr2 = it.RULES;
+ if (arr2) {
+ var $rulesGroup, i2 = -1, l2 = arr2.length - 1;
+ while (i2 < l2) {
+ $rulesGroup = arr2[i2 += 1];
+ if ($shouldUseGroup($rulesGroup)) {
+ if ($rulesGroup.type) {
+ out += " if (" + it.util.checkDataType($rulesGroup.type, $data, it.opts.strictNumbers) + ") { ";
+ }
+ if (it.opts.useDefaults) {
+ if ($rulesGroup.type == "object" && it.schema.properties) {
+ var $schema = it.schema.properties, $schemaKeys = Object.keys($schema);
+ var arr3 = $schemaKeys;
+ if (arr3) {
+ var $propertyKey, i3 = -1, l3 = arr3.length - 1;
+ while (i3 < l3) {
+ $propertyKey = arr3[i3 += 1];
+ var $sch = $schema[$propertyKey];
+ if ($sch.default !== void 0) {
+ var $passData = $data + it.util.getProperty($propertyKey);
+ if (it.compositeRule) {
+ if (it.opts.strictDefaults) {
+ var $defaultMsg = "default is ignored for: " + $passData;
+ if (it.opts.strictDefaults === "log") it.logger.warn($defaultMsg);
+ else throw new Error($defaultMsg);
+ }
+ } else {
+ out += " if (" + $passData + " === undefined ";
+ if (it.opts.useDefaults == "empty") {
+ out += " || " + $passData + " === null || " + $passData + " === '' ";
+ }
+ out += " ) " + $passData + " = ";
+ if (it.opts.useDefaults == "shared") {
+ out += " " + it.useDefault($sch.default) + " ";
+ } else {
+ out += " " + JSON.stringify($sch.default) + " ";
+ }
+ out += "; ";
+ }
+ }
+ }
+ }
+ } else if ($rulesGroup.type == "array" && Array.isArray(it.schema.items)) {
+ var arr4 = it.schema.items;
+ if (arr4) {
+ var $sch, $i = -1, l4 = arr4.length - 1;
+ while ($i < l4) {
+ $sch = arr4[$i += 1];
+ if ($sch.default !== void 0) {
+ var $passData = $data + "[" + $i + "]";
+ if (it.compositeRule) {
+ if (it.opts.strictDefaults) {
+ var $defaultMsg = "default is ignored for: " + $passData;
+ if (it.opts.strictDefaults === "log") it.logger.warn($defaultMsg);
+ else throw new Error($defaultMsg);
+ }
+ } else {
+ out += " if (" + $passData + " === undefined ";
+ if (it.opts.useDefaults == "empty") {
+ out += " || " + $passData + " === null || " + $passData + " === '' ";
+ }
+ out += " ) " + $passData + " = ";
+ if (it.opts.useDefaults == "shared") {
+ out += " " + it.useDefault($sch.default) + " ";
+ } else {
+ out += " " + JSON.stringify($sch.default) + " ";
+ }
+ out += "; ";
+ }
+ }
+ }
+ }
+ }
+ }
+ var arr5 = $rulesGroup.rules;
+ if (arr5) {
+ var $rule, i5 = -1, l5 = arr5.length - 1;
+ while (i5 < l5) {
+ $rule = arr5[i5 += 1];
+ if ($shouldUseRule($rule)) {
+ var $code = $rule.code(it, $rule.keyword, $rulesGroup.type);
+ if ($code) {
+ out += " " + $code + " ";
+ if ($breakOnError) {
+ $closingBraces1 += "}";
+ }
+ }
+ }
+ }
+ }
+ if ($breakOnError) {
+ out += " " + $closingBraces1 + " ";
+ $closingBraces1 = "";
+ }
+ if ($rulesGroup.type) {
+ out += " } ";
+ if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) {
+ out += " else { ";
+ var $schemaPath = it.schemaPath + ".type", $errSchemaPath = it.errSchemaPath + "/type";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: '" + ($errorKeyword || "type") + "' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { type: '";
+ if ($typeIsArray) {
+ out += "" + $typeSchema.join(",");
+ } else {
+ out += "" + $typeSchema;
+ }
+ out += "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should be ";
+ if ($typeIsArray) {
+ out += "" + $typeSchema.join(",");
+ } else {
+ out += "" + $typeSchema;
+ }
+ out += "' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " } ";
+ }
+ }
+ if ($breakOnError) {
+ out += " if (errors === ";
+ if ($top) {
+ out += "0";
+ } else {
+ out += "errs_" + $lvl;
+ }
+ out += ") { ";
+ $closingBraces2 += "}";
+ }
+ }
+ }
+ }
+ }
+ if ($breakOnError) {
+ out += " " + $closingBraces2 + " ";
+ }
+ if ($top) {
+ if ($async) {
+ out += " if (errors === 0) return data; ";
+ out += " else throw new ValidationError(vErrors); ";
+ } else {
+ out += " validate.errors = vErrors; ";
+ out += " return errors === 0; ";
+ }
+ out += " }; return validate;";
+ } else {
+ out += " var " + $valid + " = errors === errs_" + $lvl + ";";
+ }
+ function $shouldUseGroup($rulesGroup2) {
+ var rules = $rulesGroup2.rules;
+ for (var i = 0; i < rules.length; i++)
+ if ($shouldUseRule(rules[i])) return true;
+ }
+ function $shouldUseRule($rule2) {
+ return it.schema[$rule2.keyword] !== void 0 || $rule2.implements && $ruleImplementsSomeKeyword($rule2);
+ }
+ function $ruleImplementsSomeKeyword($rule2) {
+ var impl = $rule2.implements;
+ for (var i = 0; i < impl.length; i++)
+ if (it.schema[impl[i]] !== void 0) return true;
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/index.js
+var require_compile2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/index.js"(exports, module) {
+ "use strict";
+ var resolve = require_resolve2();
+ var util3 = require_util9();
+ var errorClasses = require_error_classes2();
+ var stableStringify = require_fast_json_stable_stringify2();
+ var validateGenerator = require_validate2();
+ var ucs2length = util3.ucs2length;
+ var equal = require_fast_deep_equal2();
+ var ValidationError = errorClasses.Validation;
+ module.exports = compile;
+ function compile(schema2, root2, localRefs, baseId) {
+ var self2 = this, opts = this._opts, refVal = [void 0], refs = {}, patterns = [], patternsHash = {}, defaults = [], defaultsHash = {}, customRules = [];
+ root2 = root2 || { schema: schema2, refVal, refs };
+ var c = checkCompiling.call(this, schema2, root2, baseId);
+ var compilation = this._compilations[c.index];
+ if (c.compiling) return compilation.callValidate = callValidate;
+ var formats = this._formats;
+ var RULES = this.RULES;
+ try {
+ var v = localCompile(schema2, root2, localRefs, baseId);
+ compilation.validate = v;
+ var cv = compilation.callValidate;
+ if (cv) {
+ cv.schema = v.schema;
+ cv.errors = null;
+ cv.refs = v.refs;
+ cv.refVal = v.refVal;
+ cv.root = v.root;
+ cv.$async = v.$async;
+ if (opts.sourceCode) cv.source = v.source;
+ }
+ return v;
+ } finally {
+ endCompiling.call(this, schema2, root2, baseId);
+ }
+ function callValidate() {
+ var validate2 = compilation.validate;
+ var result = validate2.apply(this, arguments);
+ callValidate.errors = validate2.errors;
+ return result;
+ }
+ function localCompile(_schema, _root, localRefs2, baseId2) {
+ var isRoot = !_root || _root && _root.schema == _schema;
+ if (_root.schema != root2.schema)
+ return compile.call(self2, _schema, _root, localRefs2, baseId2);
+ var $async = _schema.$async === true;
+ var sourceCode = validateGenerator({
+ isTop: true,
+ schema: _schema,
+ isRoot,
+ baseId: baseId2,
+ root: _root,
+ schemaPath: "",
+ errSchemaPath: "#",
+ errorPath: '""',
+ MissingRefError: errorClasses.MissingRef,
+ RULES,
+ validate: validateGenerator,
+ util: util3,
+ resolve,
+ resolveRef,
+ usePattern,
+ useDefault,
+ useCustomRule,
+ opts,
+ formats,
+ logger: self2.logger,
+ self: self2
+ });
+ sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode) + vars(defaults, defaultCode) + vars(customRules, customRuleCode) + sourceCode;
+ if (opts.processCode) sourceCode = opts.processCode(sourceCode, _schema);
+ var validate2;
+ try {
+ var makeValidate = new Function(
+ "self",
+ "RULES",
+ "formats",
+ "root",
+ "refVal",
+ "defaults",
+ "customRules",
+ "equal",
+ "ucs2length",
+ "ValidationError",
+ sourceCode
+ );
+ validate2 = makeValidate(
+ self2,
+ RULES,
+ formats,
+ root2,
+ refVal,
+ defaults,
+ customRules,
+ equal,
+ ucs2length,
+ ValidationError
+ );
+ refVal[0] = validate2;
+ } catch (e) {
+ self2.logger.error("Error compiling schema, function code:", sourceCode);
+ throw e;
+ }
+ validate2.schema = _schema;
+ validate2.errors = null;
+ validate2.refs = refs;
+ validate2.refVal = refVal;
+ validate2.root = isRoot ? validate2 : _root;
+ if ($async) validate2.$async = true;
+ if (opts.sourceCode === true) {
+ validate2.source = {
+ code: sourceCode,
+ patterns,
+ defaults
+ };
+ }
+ return validate2;
+ }
+ function resolveRef(baseId2, ref, isRoot) {
+ ref = resolve.url(baseId2, ref);
+ var refIndex = refs[ref];
+ var _refVal, refCode;
+ if (refIndex !== void 0) {
+ _refVal = refVal[refIndex];
+ refCode = "refVal[" + refIndex + "]";
+ return resolvedRef(_refVal, refCode);
+ }
+ if (!isRoot && root2.refs) {
+ var rootRefId = root2.refs[ref];
+ if (rootRefId !== void 0) {
+ _refVal = root2.refVal[rootRefId];
+ refCode = addLocalRef(ref, _refVal);
+ return resolvedRef(_refVal, refCode);
+ }
+ }
+ refCode = addLocalRef(ref);
+ var v2 = resolve.call(self2, localCompile, root2, ref);
+ if (v2 === void 0) {
+ var localSchema = localRefs && localRefs[ref];
+ if (localSchema) {
+ v2 = resolve.inlineRef(localSchema, opts.inlineRefs) ? localSchema : compile.call(self2, localSchema, root2, localRefs, baseId2);
+ }
+ }
+ if (v2 === void 0) {
+ removeLocalRef(ref);
+ } else {
+ replaceLocalRef(ref, v2);
+ return resolvedRef(v2, refCode);
+ }
+ }
+ function addLocalRef(ref, v2) {
+ var refId = refVal.length;
+ refVal[refId] = v2;
+ refs[ref] = refId;
+ return "refVal" + refId;
+ }
+ function removeLocalRef(ref) {
+ delete refs[ref];
+ }
+ function replaceLocalRef(ref, v2) {
+ var refId = refs[ref];
+ refVal[refId] = v2;
+ }
+ function resolvedRef(refVal2, code) {
+ return typeof refVal2 == "object" || typeof refVal2 == "boolean" ? { code, schema: refVal2, inline: true } : { code, $async: refVal2 && !!refVal2.$async };
+ }
+ function usePattern(regexStr) {
+ var index = patternsHash[regexStr];
+ if (index === void 0) {
+ index = patternsHash[regexStr] = patterns.length;
+ patterns[index] = regexStr;
+ }
+ return "pattern" + index;
+ }
+ function useDefault(value2) {
+ switch (typeof value2) {
+ case "boolean":
+ case "number":
+ return "" + value2;
+ case "string":
+ return util3.toQuotedString(value2);
+ case "object":
+ if (value2 === null) return "null";
+ var valueStr = stableStringify(value2);
+ var index = defaultsHash[valueStr];
+ if (index === void 0) {
+ index = defaultsHash[valueStr] = defaults.length;
+ defaults[index] = value2;
+ }
+ return "default" + index;
+ }
+ }
+ function useCustomRule(rule, schema3, parentSchema, it) {
+ if (self2._opts.validateSchema !== false) {
+ var deps = rule.definition.dependencies;
+ if (deps && !deps.every(function(keyword) {
+ return Object.prototype.hasOwnProperty.call(parentSchema, keyword);
+ }))
+ throw new Error("parent schema must have all required keywords: " + deps.join(","));
+ var validateSchema = rule.definition.validateSchema;
+ if (validateSchema) {
+ var valid = validateSchema(schema3);
+ if (!valid) {
+ var message = "keyword schema is invalid: " + self2.errorsText(validateSchema.errors);
+ if (self2._opts.validateSchema == "log") self2.logger.error(message);
+ else throw new Error(message);
+ }
+ }
+ }
+ var compile2 = rule.definition.compile, inline = rule.definition.inline, macro = rule.definition.macro;
+ var validate2;
+ if (compile2) {
+ validate2 = compile2.call(self2, schema3, parentSchema, it);
+ } else if (macro) {
+ validate2 = macro.call(self2, schema3, parentSchema, it);
+ if (opts.validateSchema !== false) self2.validateSchema(validate2, true);
+ } else if (inline) {
+ validate2 = inline.call(self2, it, rule.keyword, schema3, parentSchema);
+ } else {
+ validate2 = rule.definition.validate;
+ if (!validate2) return;
+ }
+ if (validate2 === void 0)
+ throw new Error('custom keyword "' + rule.keyword + '"failed to compile');
+ var index = customRules.length;
+ customRules[index] = validate2;
+ return {
+ code: "customRule" + index,
+ validate: validate2
+ };
+ }
+ }
+ function checkCompiling(schema2, root2, baseId) {
+ var index = compIndex.call(this, schema2, root2, baseId);
+ if (index >= 0) return { index, compiling: true };
+ index = this._compilations.length;
+ this._compilations[index] = {
+ schema: schema2,
+ root: root2,
+ baseId
+ };
+ return { index, compiling: false };
+ }
+ function endCompiling(schema2, root2, baseId) {
+ var i = compIndex.call(this, schema2, root2, baseId);
+ if (i >= 0) this._compilations.splice(i, 1);
+ }
+ function compIndex(schema2, root2, baseId) {
+ for (var i = 0; i < this._compilations.length; i++) {
+ var c = this._compilations[i];
+ if (c.schema == schema2 && c.root == root2 && c.baseId == baseId) return i;
+ }
+ return -1;
+ }
+ function patternCode(i, patterns) {
+ return "var pattern" + i + " = new RegExp(" + util3.toQuotedString(patterns[i]) + ");";
+ }
+ function defaultCode(i) {
+ return "var default" + i + " = defaults[" + i + "];";
+ }
+ function refValCode(i, refVal) {
+ return refVal[i] === void 0 ? "" : "var refVal" + i + " = refVal[" + i + "];";
+ }
+ function customRuleCode(i) {
+ return "var customRule" + i + " = customRules[" + i + "];";
+ }
+ function vars(arr, statement) {
+ if (!arr.length) return "";
+ var code = "";
+ for (var i = 0; i < arr.length; i++)
+ code += statement(i, arr);
+ return code;
+ }
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/cache.js
+var require_cache3 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/cache.js"(exports, module) {
+ "use strict";
+ var Cache = module.exports = function Cache2() {
+ this._cache = {};
+ };
+ Cache.prototype.put = function Cache_put(key, value2) {
+ this._cache[key] = value2;
+ };
+ Cache.prototype.get = function Cache_get(key) {
+ return this._cache[key];
+ };
+ Cache.prototype.del = function Cache_del(key) {
+ delete this._cache[key];
+ };
+ Cache.prototype.clear = function Cache_clear() {
+ this._cache = {};
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/formats.js
+var require_formats2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/formats.js"(exports, module) {
+ "use strict";
+ var util3 = require_util9();
+ var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
+ var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31,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$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
+ var URITEMPLATE = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;
+ var URL2 = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;
+ var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
+ var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
+ var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
+ var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
+ module.exports = formats;
+ function formats(mode) {
+ mode = mode == "full" ? "full" : "fast";
+ return util3.copy(formats[mode]);
+ }
+ formats.fast = {
+ // date: http://tools.ietf.org/html/rfc3339#section-5.6
+ date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/,
+ // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
+ time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,
+ "date-time": /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,
+ // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
+ uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
+ "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
+ "uri-template": URITEMPLATE,
+ url: URL2,
+ // email (sources from jsen validator):
+ // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363
+ // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation')
+ email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,
+ hostname: HOSTNAME,
+ // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
+ ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
+ // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses
+ ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,
+ regex: regex3,
+ // uuid: http://tools.ietf.org/html/rfc4122
+ uuid: UUID,
+ // JSON-pointer: https://tools.ietf.org/html/rfc6901
+ // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
+ "json-pointer": JSON_POINTER,
+ "json-pointer-uri-fragment": JSON_POINTER_URI_FRAGMENT,
+ // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
+ "relative-json-pointer": RELATIVE_JSON_POINTER
+ };
+ formats.full = {
+ date: date2,
+ time: time2,
+ "date-time": date_time,
+ uri,
+ "uri-reference": URIREF,
+ "uri-template": URITEMPLATE,
+ url: URL2,
+ email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
+ hostname: HOSTNAME,
+ ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
+ ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,
+ regex: regex3,
+ uuid: UUID,
+ "json-pointer": JSON_POINTER,
+ "json-pointer-uri-fragment": JSON_POINTER_URI_FRAGMENT,
+ "relative-json-pointer": RELATIVE_JSON_POINTER
+ };
+ function isLeapYear(year) {
+ return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
+ }
+ function date2(str) {
+ var matches = str.match(DATE);
+ if (!matches) return false;
+ var year = +matches[1];
+ var month = +matches[2];
+ var day = +matches[3];
+ return month >= 1 && month <= 12 && day >= 1 && day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]);
+ }
+ function time2(str, full) {
+ var matches = str.match(TIME);
+ if (!matches) return false;
+ var hour = matches[1];
+ var minute = matches[2];
+ var second = matches[3];
+ var timeZone = matches[5];
+ return (hour <= 23 && minute <= 59 && second <= 59 || hour == 23 && minute == 59 && second == 60) && (!full || timeZone);
+ }
+ var DATE_TIME_SEPARATOR = /t|\s/i;
+ function date_time(str) {
+ var dateTime = str.split(DATE_TIME_SEPARATOR);
+ return dateTime.length == 2 && date2(dateTime[0]) && time2(dateTime[1], true);
+ }
+ var NOT_URI_FRAGMENT = /\/|:/;
+ function uri(str) {
+ return NOT_URI_FRAGMENT.test(str) && URI.test(str);
+ }
+ var Z_ANCHOR = /[^\\]\\Z/;
+ function regex3(str) {
+ if (Z_ANCHOR.test(str)) return false;
+ try {
+ new RegExp(str);
+ return true;
+ } catch (e) {
+ return false;
+ }
+ }
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/ref.js
+var require_ref2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/ref.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_ref(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $valid = "valid" + $lvl;
+ var $async, $refCode;
+ if ($schema == "#" || $schema == "#/") {
+ if (it.isRoot) {
+ $async = it.async;
+ $refCode = "validate";
+ } else {
+ $async = it.root.schema.$async === true;
+ $refCode = "root.refVal[0]";
+ }
+ } else {
+ var $refVal = it.resolveRef(it.baseId, $schema, it.isRoot);
+ if ($refVal === void 0) {
+ var $message = it.MissingRefError.message(it.baseId, $schema);
+ if (it.opts.missingRefs == "fail") {
+ it.logger.error($message);
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: '$ref' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { ref: '" + it.util.escapeQuotes($schema) + "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'can\\'t resolve reference " + it.util.escapeQuotes($schema) + "' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: " + it.util.toQuotedString($schema) + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ if ($breakOnError) {
+ out += " if (false) { ";
+ }
+ } else if (it.opts.missingRefs == "ignore") {
+ it.logger.warn($message);
+ if ($breakOnError) {
+ out += " if (true) { ";
+ }
+ } else {
+ throw new it.MissingRefError(it.baseId, $schema, $message);
+ }
+ } else if ($refVal.inline) {
+ var $it = it.util.copy(it);
+ $it.level++;
+ var $nextValid = "valid" + $it.level;
+ $it.schema = $refVal.schema;
+ $it.schemaPath = "";
+ $it.errSchemaPath = $schema;
+ var $code = it.validate($it).replace(/validate\.schema/g, $refVal.code);
+ out += " " + $code + " ";
+ if ($breakOnError) {
+ out += " if (" + $nextValid + ") { ";
+ }
+ } else {
+ $async = $refVal.$async === true || it.async && $refVal.$async !== false;
+ $refCode = $refVal.code;
+ }
+ }
+ if ($refCode) {
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.opts.passContext) {
+ out += " " + $refCode + ".call(this, ";
+ } else {
+ out += " " + $refCode + "( ";
+ }
+ out += " " + $data + ", (dataPath || '')";
+ if (it.errorPath != '""') {
+ out += " + " + it.errorPath;
+ }
+ var $parentData = $dataLvl ? "data" + ($dataLvl - 1 || "") : "parentData", $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : "parentDataProperty";
+ out += " , " + $parentData + " , " + $parentDataProperty + ", rootData) ";
+ var __callValidate = out;
+ out = $$outStack.pop();
+ if ($async) {
+ if (!it.async) throw new Error("async schema referenced by sync schema");
+ if ($breakOnError) {
+ out += " var " + $valid + "; ";
+ }
+ out += " try { await " + __callValidate + "; ";
+ if ($breakOnError) {
+ out += " " + $valid + " = true; ";
+ }
+ out += " } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";
+ if ($breakOnError) {
+ out += " " + $valid + " = false; ";
+ }
+ out += " } ";
+ if ($breakOnError) {
+ out += " if (" + $valid + ") { ";
+ }
+ } else {
+ out += " if (!" + __callValidate + ") { if (vErrors === null) vErrors = " + $refCode + ".errors; else vErrors = vErrors.concat(" + $refCode + ".errors); errors = vErrors.length; } ";
+ if ($breakOnError) {
+ out += " else { ";
+ }
+ }
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/allOf.js
+var require_allOf2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/allOf.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_allOf(it, $keyword, $ruleType) {
+ var out = " ";
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $it = it.util.copy(it);
+ var $closingBraces = "";
+ $it.level++;
+ var $nextValid = "valid" + $it.level;
+ var $currentBaseId = $it.baseId, $allSchemasEmpty = true;
+ var arr1 = $schema;
+ if (arr1) {
+ var $sch, $i = -1, l1 = arr1.length - 1;
+ while ($i < l1) {
+ $sch = arr1[$i += 1];
+ if (it.opts.strictKeywords ? typeof $sch == "object" && Object.keys($sch).length > 0 || $sch === false : it.util.schemaHasRules($sch, it.RULES.all)) {
+ $allSchemasEmpty = false;
+ $it.schema = $sch;
+ $it.schemaPath = $schemaPath + "[" + $i + "]";
+ $it.errSchemaPath = $errSchemaPath + "/" + $i;
+ out += " " + it.validate($it) + " ";
+ $it.baseId = $currentBaseId;
+ if ($breakOnError) {
+ out += " if (" + $nextValid + ") { ";
+ $closingBraces += "}";
+ }
+ }
+ }
+ }
+ if ($breakOnError) {
+ if ($allSchemasEmpty) {
+ out += " if (true) { ";
+ } else {
+ out += " " + $closingBraces.slice(0, -1) + " ";
+ }
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/anyOf.js
+var require_anyOf2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/anyOf.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_anyOf(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $valid = "valid" + $lvl;
+ var $errs = "errs__" + $lvl;
+ var $it = it.util.copy(it);
+ var $closingBraces = "";
+ $it.level++;
+ var $nextValid = "valid" + $it.level;
+ var $noEmptySchema = $schema.every(function($sch2) {
+ return it.opts.strictKeywords ? typeof $sch2 == "object" && Object.keys($sch2).length > 0 || $sch2 === false : it.util.schemaHasRules($sch2, it.RULES.all);
+ });
+ if ($noEmptySchema) {
+ var $currentBaseId = $it.baseId;
+ out += " var " + $errs + " = errors; var " + $valid + " = false; ";
+ var $wasComposite = it.compositeRule;
+ it.compositeRule = $it.compositeRule = true;
+ var arr1 = $schema;
+ if (arr1) {
+ var $sch, $i = -1, l1 = arr1.length - 1;
+ while ($i < l1) {
+ $sch = arr1[$i += 1];
+ $it.schema = $sch;
+ $it.schemaPath = $schemaPath + "[" + $i + "]";
+ $it.errSchemaPath = $errSchemaPath + "/" + $i;
+ out += " " + it.validate($it) + " ";
+ $it.baseId = $currentBaseId;
+ out += " " + $valid + " = " + $valid + " || " + $nextValid + "; if (!" + $valid + ") { ";
+ $closingBraces += "}";
+ }
+ }
+ it.compositeRule = $it.compositeRule = $wasComposite;
+ out += " " + $closingBraces + " if (!" + $valid + ") { var err = ";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'anyOf' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: {} ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should match some schema in anyOf' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ out += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError(vErrors); ";
+ } else {
+ out += " validate.errors = vErrors; return false; ";
+ }
+ }
+ out += " } else { errors = " + $errs + "; if (vErrors !== null) { if (" + $errs + ") vErrors.length = " + $errs + "; else vErrors = null; } ";
+ if (it.opts.allErrors) {
+ out += " } ";
+ }
+ } else {
+ if ($breakOnError) {
+ out += " if (true) { ";
+ }
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/comment.js
+var require_comment2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/comment.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_comment(it, $keyword, $ruleType) {
+ var out = " ";
+ var $schema = it.schema[$keyword];
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $comment = it.util.toQuotedString($schema);
+ if (it.opts.$comment === true) {
+ out += " console.log(" + $comment + ");";
+ } else if (typeof it.opts.$comment == "function") {
+ out += " self._opts.$comment(" + $comment + ", " + it.util.toQuotedString($errSchemaPath) + ", validate.root.schema);";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/const.js
+var require_const2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/const.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_const(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $valid = "valid" + $lvl;
+ var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
+ if ($isData) {
+ out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
+ $schemaValue = "schema" + $lvl;
+ } else {
+ $schemaValue = $schema;
+ }
+ if (!$isData) {
+ out += " var schema" + $lvl + " = validate.schema" + $schemaPath + ";";
+ }
+ out += "var " + $valid + " = equal(" + $data + ", schema" + $lvl + "); if (!" + $valid + ") { ";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'const' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { allowedValue: schema" + $lvl + " } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should be equal to constant' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " }";
+ if ($breakOnError) {
+ out += " else { ";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/contains.js
+var require_contains2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/contains.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_contains(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $valid = "valid" + $lvl;
+ var $errs = "errs__" + $lvl;
+ var $it = it.util.copy(it);
+ var $closingBraces = "";
+ $it.level++;
+ var $nextValid = "valid" + $it.level;
+ var $idx = "i" + $lvl, $dataNxt = $it.dataLevel = it.dataLevel + 1, $nextData = "data" + $dataNxt, $currentBaseId = it.baseId, $nonEmptySchema = it.opts.strictKeywords ? typeof $schema == "object" && Object.keys($schema).length > 0 || $schema === false : it.util.schemaHasRules($schema, it.RULES.all);
+ out += "var " + $errs + " = errors;var " + $valid + ";";
+ if ($nonEmptySchema) {
+ var $wasComposite = it.compositeRule;
+ it.compositeRule = $it.compositeRule = true;
+ $it.schema = $schema;
+ $it.schemaPath = $schemaPath;
+ $it.errSchemaPath = $errSchemaPath;
+ out += " var " + $nextValid + " = false; for (var " + $idx + " = 0; " + $idx + " < " + $data + ".length; " + $idx + "++) { ";
+ $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
+ var $passData = $data + "[" + $idx + "]";
+ $it.dataPathArr[$dataNxt] = $idx;
+ var $code = it.validate($it);
+ $it.baseId = $currentBaseId;
+ if (it.util.varOccurences($code, $nextData) < 2) {
+ out += " " + it.util.varReplace($code, $nextData, $passData) + " ";
+ } else {
+ out += " var " + $nextData + " = " + $passData + "; " + $code + " ";
+ }
+ out += " if (" + $nextValid + ") break; } ";
+ it.compositeRule = $it.compositeRule = $wasComposite;
+ out += " " + $closingBraces + " if (!" + $nextValid + ") {";
+ } else {
+ out += " if (" + $data + ".length == 0) {";
+ }
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'contains' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: {} ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should contain a valid item' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " } else { ";
+ if ($nonEmptySchema) {
+ out += " errors = " + $errs + "; if (vErrors !== null) { if (" + $errs + ") vErrors.length = " + $errs + "; else vErrors = null; } ";
+ }
+ if (it.opts.allErrors) {
+ out += " } ";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/dependencies.js
+var require_dependencies2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/dependencies.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_dependencies(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $errs = "errs__" + $lvl;
+ var $it = it.util.copy(it);
+ var $closingBraces = "";
+ $it.level++;
+ var $nextValid = "valid" + $it.level;
+ var $schemaDeps = {}, $propertyDeps = {}, $ownProperties = it.opts.ownProperties;
+ for ($property in $schema) {
+ if ($property == "__proto__") continue;
+ var $sch = $schema[$property];
+ var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps;
+ $deps[$property] = $sch;
+ }
+ out += "var " + $errs + " = errors;";
+ var $currentErrorPath = it.errorPath;
+ out += "var missing" + $lvl + ";";
+ for (var $property in $propertyDeps) {
+ $deps = $propertyDeps[$property];
+ if ($deps.length) {
+ out += " if ( " + $data + it.util.getProperty($property) + " !== undefined ";
+ if ($ownProperties) {
+ out += " && Object.prototype.hasOwnProperty.call(" + $data + ", '" + it.util.escapeQuotes($property) + "') ";
+ }
+ if ($breakOnError) {
+ out += " && ( ";
+ var arr1 = $deps;
+ if (arr1) {
+ var $propertyKey, $i = -1, l1 = arr1.length - 1;
+ while ($i < l1) {
+ $propertyKey = arr1[$i += 1];
+ if ($i) {
+ out += " || ";
+ }
+ var $prop = it.util.getProperty($propertyKey), $useData = $data + $prop;
+ out += " ( ( " + $useData + " === undefined ";
+ if ($ownProperties) {
+ out += " || ! Object.prototype.hasOwnProperty.call(" + $data + ", '" + it.util.escapeQuotes($propertyKey) + "') ";
+ }
+ out += ") && (missing" + $lvl + " = " + it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop) + ") ) ";
+ }
+ }
+ out += ")) { ";
+ var $propertyPath = "missing" + $lvl, $missingProperty = "' + " + $propertyPath + " + '";
+ if (it.opts._errorDataPathProperty) {
+ it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + " + " + $propertyPath;
+ }
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'dependencies' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { property: '" + it.util.escapeQuotes($property) + "', missingProperty: '" + $missingProperty + "', depsCount: " + $deps.length + ", deps: '" + it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(", ")) + "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should have ";
+ if ($deps.length == 1) {
+ out += "property " + it.util.escapeQuotes($deps[0]);
+ } else {
+ out += "properties " + it.util.escapeQuotes($deps.join(", "));
+ }
+ out += " when property " + it.util.escapeQuotes($property) + " is present' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ } else {
+ out += " ) { ";
+ var arr2 = $deps;
+ if (arr2) {
+ var $propertyKey, i2 = -1, l2 = arr2.length - 1;
+ while (i2 < l2) {
+ $propertyKey = arr2[i2 += 1];
+ var $prop = it.util.getProperty($propertyKey), $missingProperty = it.util.escapeQuotes($propertyKey), $useData = $data + $prop;
+ if (it.opts._errorDataPathProperty) {
+ it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
+ }
+ out += " if ( " + $useData + " === undefined ";
+ if ($ownProperties) {
+ out += " || ! Object.prototype.hasOwnProperty.call(" + $data + ", '" + it.util.escapeQuotes($propertyKey) + "') ";
+ }
+ out += ") { var err = ";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'dependencies' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { property: '" + it.util.escapeQuotes($property) + "', missingProperty: '" + $missingProperty + "', depsCount: " + $deps.length + ", deps: '" + it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(", ")) + "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should have ";
+ if ($deps.length == 1) {
+ out += "property " + it.util.escapeQuotes($deps[0]);
+ } else {
+ out += "properties " + it.util.escapeQuotes($deps.join(", "));
+ }
+ out += " when property " + it.util.escapeQuotes($property) + " is present' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ out += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ";
+ }
+ }
+ }
+ out += " } ";
+ if ($breakOnError) {
+ $closingBraces += "}";
+ out += " else { ";
+ }
+ }
+ }
+ it.errorPath = $currentErrorPath;
+ var $currentBaseId = $it.baseId;
+ for (var $property in $schemaDeps) {
+ var $sch = $schemaDeps[$property];
+ if (it.opts.strictKeywords ? typeof $sch == "object" && Object.keys($sch).length > 0 || $sch === false : it.util.schemaHasRules($sch, it.RULES.all)) {
+ out += " " + $nextValid + " = true; if ( " + $data + it.util.getProperty($property) + " !== undefined ";
+ if ($ownProperties) {
+ out += " && Object.prototype.hasOwnProperty.call(" + $data + ", '" + it.util.escapeQuotes($property) + "') ";
+ }
+ out += ") { ";
+ $it.schema = $sch;
+ $it.schemaPath = $schemaPath + it.util.getProperty($property);
+ $it.errSchemaPath = $errSchemaPath + "/" + it.util.escapeFragment($property);
+ out += " " + it.validate($it) + " ";
+ $it.baseId = $currentBaseId;
+ out += " } ";
+ if ($breakOnError) {
+ out += " if (" + $nextValid + ") { ";
+ $closingBraces += "}";
+ }
+ }
+ }
+ if ($breakOnError) {
+ out += " " + $closingBraces + " if (" + $errs + " == errors) {";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/enum.js
+var require_enum2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/enum.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_enum(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $valid = "valid" + $lvl;
+ var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
+ if ($isData) {
+ out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
+ $schemaValue = "schema" + $lvl;
+ } else {
+ $schemaValue = $schema;
+ }
+ var $i = "i" + $lvl, $vSchema = "schema" + $lvl;
+ if (!$isData) {
+ out += " var " + $vSchema + " = validate.schema" + $schemaPath + ";";
+ }
+ out += "var " + $valid + ";";
+ if ($isData) {
+ out += " if (schema" + $lvl + " === undefined) " + $valid + " = true; else if (!Array.isArray(schema" + $lvl + ")) " + $valid + " = false; else {";
+ }
+ out += "" + $valid + " = false;for (var " + $i + "=0; " + $i + "<" + $vSchema + ".length; " + $i + "++) if (equal(" + $data + ", " + $vSchema + "[" + $i + "])) { " + $valid + " = true; break; }";
+ if ($isData) {
+ out += " } ";
+ }
+ out += " if (!" + $valid + ") { ";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'enum' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { allowedValues: schema" + $lvl + " } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should be equal to one of the allowed values' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " }";
+ if ($breakOnError) {
+ out += " else { ";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/format.js
+var require_format2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/format.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_format(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ if (it.opts.format === false) {
+ if ($breakOnError) {
+ out += " if (true) { ";
+ }
+ return out;
+ }
+ var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
+ if ($isData) {
+ out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
+ $schemaValue = "schema" + $lvl;
+ } else {
+ $schemaValue = $schema;
+ }
+ var $unknownFormats = it.opts.unknownFormats, $allowUnknown = Array.isArray($unknownFormats);
+ if ($isData) {
+ var $format = "format" + $lvl, $isObject = "isObject" + $lvl, $formatType = "formatType" + $lvl;
+ out += " var " + $format + " = formats[" + $schemaValue + "]; var " + $isObject + " = typeof " + $format + " == 'object' && !(" + $format + " instanceof RegExp) && " + $format + ".validate; var " + $formatType + " = " + $isObject + " && " + $format + ".type || 'string'; if (" + $isObject + ") { ";
+ if (it.async) {
+ out += " var async" + $lvl + " = " + $format + ".async; ";
+ }
+ out += " " + $format + " = " + $format + ".validate; } if ( ";
+ if ($isData) {
+ out += " (" + $schemaValue + " !== undefined && typeof " + $schemaValue + " != 'string') || ";
+ }
+ out += " (";
+ if ($unknownFormats != "ignore") {
+ out += " (" + $schemaValue + " && !" + $format + " ";
+ if ($allowUnknown) {
+ out += " && self._opts.unknownFormats.indexOf(" + $schemaValue + ") == -1 ";
+ }
+ out += ") || ";
+ }
+ out += " (" + $format + " && " + $formatType + " == '" + $ruleType + "' && !(typeof " + $format + " == 'function' ? ";
+ if (it.async) {
+ out += " (async" + $lvl + " ? await " + $format + "(" + $data + ") : " + $format + "(" + $data + ")) ";
+ } else {
+ out += " " + $format + "(" + $data + ") ";
+ }
+ out += " : " + $format + ".test(" + $data + "))))) {";
+ } else {
+ var $format = it.formats[$schema];
+ if (!$format) {
+ if ($unknownFormats == "ignore") {
+ it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"');
+ if ($breakOnError) {
+ out += " if (true) { ";
+ }
+ return out;
+ } else if ($allowUnknown && $unknownFormats.indexOf($schema) >= 0) {
+ if ($breakOnError) {
+ out += " if (true) { ";
+ }
+ return out;
+ } else {
+ throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"');
+ }
+ }
+ var $isObject = typeof $format == "object" && !($format instanceof RegExp) && $format.validate;
+ var $formatType = $isObject && $format.type || "string";
+ if ($isObject) {
+ var $async = $format.async === true;
+ $format = $format.validate;
+ }
+ if ($formatType != $ruleType) {
+ if ($breakOnError) {
+ out += " if (true) { ";
+ }
+ return out;
+ }
+ if ($async) {
+ if (!it.async) throw new Error("async format in sync schema");
+ var $formatRef = "formats" + it.util.getProperty($schema) + ".validate";
+ out += " if (!(await " + $formatRef + "(" + $data + "))) { ";
+ } else {
+ out += " if (! ";
+ var $formatRef = "formats" + it.util.getProperty($schema);
+ if ($isObject) $formatRef += ".validate";
+ if (typeof $format == "function") {
+ out += " " + $formatRef + "(" + $data + ") ";
+ } else {
+ out += " " + $formatRef + ".test(" + $data + ") ";
+ }
+ out += ") { ";
+ }
+ }
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'format' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { format: ";
+ if ($isData) {
+ out += "" + $schemaValue;
+ } else {
+ out += "" + it.util.toQuotedString($schema);
+ }
+ out += " } ";
+ if (it.opts.messages !== false) {
+ out += ` , message: 'should match format "`;
+ if ($isData) {
+ out += "' + " + $schemaValue + " + '";
+ } else {
+ out += "" + it.util.escapeQuotes($schema);
+ }
+ out += `"' `;
+ }
+ if (it.opts.verbose) {
+ out += " , schema: ";
+ if ($isData) {
+ out += "validate.schema" + $schemaPath;
+ } else {
+ out += "" + it.util.toQuotedString($schema);
+ }
+ out += " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " } ";
+ if ($breakOnError) {
+ out += " else { ";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/if.js
+var require_if2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/if.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_if(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $valid = "valid" + $lvl;
+ var $errs = "errs__" + $lvl;
+ var $it = it.util.copy(it);
+ $it.level++;
+ var $nextValid = "valid" + $it.level;
+ var $thenSch = it.schema["then"], $elseSch = it.schema["else"], $thenPresent = $thenSch !== void 0 && (it.opts.strictKeywords ? typeof $thenSch == "object" && Object.keys($thenSch).length > 0 || $thenSch === false : it.util.schemaHasRules($thenSch, it.RULES.all)), $elsePresent = $elseSch !== void 0 && (it.opts.strictKeywords ? typeof $elseSch == "object" && Object.keys($elseSch).length > 0 || $elseSch === false : it.util.schemaHasRules($elseSch, it.RULES.all)), $currentBaseId = $it.baseId;
+ if ($thenPresent || $elsePresent) {
+ var $ifClause;
+ $it.createErrors = false;
+ $it.schema = $schema;
+ $it.schemaPath = $schemaPath;
+ $it.errSchemaPath = $errSchemaPath;
+ out += " var " + $errs + " = errors; var " + $valid + " = true; ";
+ var $wasComposite = it.compositeRule;
+ it.compositeRule = $it.compositeRule = true;
+ out += " " + it.validate($it) + " ";
+ $it.baseId = $currentBaseId;
+ $it.createErrors = true;
+ out += " errors = " + $errs + "; if (vErrors !== null) { if (" + $errs + ") vErrors.length = " + $errs + "; else vErrors = null; } ";
+ it.compositeRule = $it.compositeRule = $wasComposite;
+ if ($thenPresent) {
+ out += " if (" + $nextValid + ") { ";
+ $it.schema = it.schema["then"];
+ $it.schemaPath = it.schemaPath + ".then";
+ $it.errSchemaPath = it.errSchemaPath + "/then";
+ out += " " + it.validate($it) + " ";
+ $it.baseId = $currentBaseId;
+ out += " " + $valid + " = " + $nextValid + "; ";
+ if ($thenPresent && $elsePresent) {
+ $ifClause = "ifClause" + $lvl;
+ out += " var " + $ifClause + " = 'then'; ";
+ } else {
+ $ifClause = "'then'";
+ }
+ out += " } ";
+ if ($elsePresent) {
+ out += " else { ";
+ }
+ } else {
+ out += " if (!" + $nextValid + ") { ";
+ }
+ if ($elsePresent) {
+ $it.schema = it.schema["else"];
+ $it.schemaPath = it.schemaPath + ".else";
+ $it.errSchemaPath = it.errSchemaPath + "/else";
+ out += " " + it.validate($it) + " ";
+ $it.baseId = $currentBaseId;
+ out += " " + $valid + " = " + $nextValid + "; ";
+ if ($thenPresent && $elsePresent) {
+ $ifClause = "ifClause" + $lvl;
+ out += " var " + $ifClause + " = 'else'; ";
+ } else {
+ $ifClause = "'else'";
+ }
+ out += " } ";
+ }
+ out += " if (!" + $valid + ") { var err = ";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'if' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { failingKeyword: " + $ifClause + " } ";
+ if (it.opts.messages !== false) {
+ out += ` , message: 'should match "' + ` + $ifClause + ` + '" schema' `;
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ out += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError(vErrors); ";
+ } else {
+ out += " validate.errors = vErrors; return false; ";
+ }
+ }
+ out += " } ";
+ if ($breakOnError) {
+ out += " else { ";
+ }
+ } else {
+ if ($breakOnError) {
+ out += " if (true) { ";
+ }
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/items.js
+var require_items2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/items.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_items(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $valid = "valid" + $lvl;
+ var $errs = "errs__" + $lvl;
+ var $it = it.util.copy(it);
+ var $closingBraces = "";
+ $it.level++;
+ var $nextValid = "valid" + $it.level;
+ var $idx = "i" + $lvl, $dataNxt = $it.dataLevel = it.dataLevel + 1, $nextData = "data" + $dataNxt, $currentBaseId = it.baseId;
+ out += "var " + $errs + " = errors;var " + $valid + ";";
+ if (Array.isArray($schema)) {
+ var $additionalItems = it.schema.additionalItems;
+ if ($additionalItems === false) {
+ out += " " + $valid + " = " + $data + ".length <= " + $schema.length + "; ";
+ var $currErrSchemaPath = $errSchemaPath;
+ $errSchemaPath = it.errSchemaPath + "/additionalItems";
+ out += " if (!" + $valid + ") { ";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'additionalItems' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { limit: " + $schema.length + " } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should NOT have more than " + $schema.length + " items' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: false , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " } ";
+ $errSchemaPath = $currErrSchemaPath;
+ if ($breakOnError) {
+ $closingBraces += "}";
+ out += " else { ";
+ }
+ }
+ var arr1 = $schema;
+ if (arr1) {
+ var $sch, $i = -1, l1 = arr1.length - 1;
+ while ($i < l1) {
+ $sch = arr1[$i += 1];
+ if (it.opts.strictKeywords ? typeof $sch == "object" && Object.keys($sch).length > 0 || $sch === false : it.util.schemaHasRules($sch, it.RULES.all)) {
+ out += " " + $nextValid + " = true; if (" + $data + ".length > " + $i + ") { ";
+ var $passData = $data + "[" + $i + "]";
+ $it.schema = $sch;
+ $it.schemaPath = $schemaPath + "[" + $i + "]";
+ $it.errSchemaPath = $errSchemaPath + "/" + $i;
+ $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true);
+ $it.dataPathArr[$dataNxt] = $i;
+ var $code = it.validate($it);
+ $it.baseId = $currentBaseId;
+ if (it.util.varOccurences($code, $nextData) < 2) {
+ out += " " + it.util.varReplace($code, $nextData, $passData) + " ";
+ } else {
+ out += " var " + $nextData + " = " + $passData + "; " + $code + " ";
+ }
+ out += " } ";
+ if ($breakOnError) {
+ out += " if (" + $nextValid + ") { ";
+ $closingBraces += "}";
+ }
+ }
+ }
+ }
+ if (typeof $additionalItems == "object" && (it.opts.strictKeywords ? typeof $additionalItems == "object" && Object.keys($additionalItems).length > 0 || $additionalItems === false : it.util.schemaHasRules($additionalItems, it.RULES.all))) {
+ $it.schema = $additionalItems;
+ $it.schemaPath = it.schemaPath + ".additionalItems";
+ $it.errSchemaPath = it.errSchemaPath + "/additionalItems";
+ out += " " + $nextValid + " = true; if (" + $data + ".length > " + $schema.length + ") { for (var " + $idx + " = " + $schema.length + "; " + $idx + " < " + $data + ".length; " + $idx + "++) { ";
+ $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
+ var $passData = $data + "[" + $idx + "]";
+ $it.dataPathArr[$dataNxt] = $idx;
+ var $code = it.validate($it);
+ $it.baseId = $currentBaseId;
+ if (it.util.varOccurences($code, $nextData) < 2) {
+ out += " " + it.util.varReplace($code, $nextData, $passData) + " ";
+ } else {
+ out += " var " + $nextData + " = " + $passData + "; " + $code + " ";
+ }
+ if ($breakOnError) {
+ out += " if (!" + $nextValid + ") break; ";
+ }
+ out += " } } ";
+ if ($breakOnError) {
+ out += " if (" + $nextValid + ") { ";
+ $closingBraces += "}";
+ }
+ }
+ } else if (it.opts.strictKeywords ? typeof $schema == "object" && Object.keys($schema).length > 0 || $schema === false : it.util.schemaHasRules($schema, it.RULES.all)) {
+ $it.schema = $schema;
+ $it.schemaPath = $schemaPath;
+ $it.errSchemaPath = $errSchemaPath;
+ out += " for (var " + $idx + " = 0; " + $idx + " < " + $data + ".length; " + $idx + "++) { ";
+ $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
+ var $passData = $data + "[" + $idx + "]";
+ $it.dataPathArr[$dataNxt] = $idx;
+ var $code = it.validate($it);
+ $it.baseId = $currentBaseId;
+ if (it.util.varOccurences($code, $nextData) < 2) {
+ out += " " + it.util.varReplace($code, $nextData, $passData) + " ";
+ } else {
+ out += " var " + $nextData + " = " + $passData + "; " + $code + " ";
+ }
+ if ($breakOnError) {
+ out += " if (!" + $nextValid + ") break; ";
+ }
+ out += " }";
+ }
+ if ($breakOnError) {
+ out += " " + $closingBraces + " if (" + $errs + " == errors) {";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limit.js
+var require_limit = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limit.js"(exports, module) {
+ "use strict";
+ module.exports = function generate__limit(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $errorKeyword;
+ var $data = "data" + ($dataLvl || "");
+ var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
+ if ($isData) {
+ out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
+ $schemaValue = "schema" + $lvl;
+ } else {
+ $schemaValue = $schema;
+ }
+ var $isMax = $keyword == "maximum", $exclusiveKeyword = $isMax ? "exclusiveMaximum" : "exclusiveMinimum", $schemaExcl = it.schema[$exclusiveKeyword], $isDataExcl = it.opts.$data && $schemaExcl && $schemaExcl.$data, $op = $isMax ? "<" : ">", $notOp = $isMax ? ">" : "<", $errorKeyword = void 0;
+ if (!($isData || typeof $schema == "number" || $schema === void 0)) {
+ throw new Error($keyword + " must be number");
+ }
+ if (!($isDataExcl || $schemaExcl === void 0 || typeof $schemaExcl == "number" || typeof $schemaExcl == "boolean")) {
+ throw new Error($exclusiveKeyword + " must be number or boolean");
+ }
+ if ($isDataExcl) {
+ var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr), $exclusive = "exclusive" + $lvl, $exclType = "exclType" + $lvl, $exclIsNumber = "exclIsNumber" + $lvl, $opExpr = "op" + $lvl, $opStr = "' + " + $opExpr + " + '";
+ out += " var schemaExcl" + $lvl + " = " + $schemaValueExcl + "; ";
+ $schemaValueExcl = "schemaExcl" + $lvl;
+ out += " var " + $exclusive + "; var " + $exclType + " = typeof " + $schemaValueExcl + "; if (" + $exclType + " != 'boolean' && " + $exclType + " != 'undefined' && " + $exclType + " != 'number') { ";
+ var $errorKeyword = $exclusiveKeyword;
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: '" + ($errorKeyword || "_exclusiveLimit") + "' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: {} ";
+ if (it.opts.messages !== false) {
+ out += " , message: '" + $exclusiveKeyword + " should be boolean' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " } else if ( ";
+ if ($isData) {
+ out += " (" + $schemaValue + " !== undefined && typeof " + $schemaValue + " != 'number') || ";
+ }
+ out += " " + $exclType + " == 'number' ? ( (" + $exclusive + " = " + $schemaValue + " === undefined || " + $schemaValueExcl + " " + $op + "= " + $schemaValue + ") ? " + $data + " " + $notOp + "= " + $schemaValueExcl + " : " + $data + " " + $notOp + " " + $schemaValue + " ) : ( (" + $exclusive + " = " + $schemaValueExcl + " === true) ? " + $data + " " + $notOp + "= " + $schemaValue + " : " + $data + " " + $notOp + " " + $schemaValue + " ) || " + $data + " !== " + $data + ") { var op" + $lvl + " = " + $exclusive + " ? '" + $op + "' : '" + $op + "='; ";
+ if ($schema === void 0) {
+ $errorKeyword = $exclusiveKeyword;
+ $errSchemaPath = it.errSchemaPath + "/" + $exclusiveKeyword;
+ $schemaValue = $schemaValueExcl;
+ $isData = $isDataExcl;
+ }
+ } else {
+ var $exclIsNumber = typeof $schemaExcl == "number", $opStr = $op;
+ if ($exclIsNumber && $isData) {
+ var $opExpr = "'" + $opStr + "'";
+ out += " if ( ";
+ if ($isData) {
+ out += " (" + $schemaValue + " !== undefined && typeof " + $schemaValue + " != 'number') || ";
+ }
+ out += " ( " + $schemaValue + " === undefined || " + $schemaExcl + " " + $op + "= " + $schemaValue + " ? " + $data + " " + $notOp + "= " + $schemaExcl + " : " + $data + " " + $notOp + " " + $schemaValue + " ) || " + $data + " !== " + $data + ") { ";
+ } else {
+ if ($exclIsNumber && $schema === void 0) {
+ $exclusive = true;
+ $errorKeyword = $exclusiveKeyword;
+ $errSchemaPath = it.errSchemaPath + "/" + $exclusiveKeyword;
+ $schemaValue = $schemaExcl;
+ $notOp += "=";
+ } else {
+ if ($exclIsNumber) $schemaValue = Math[$isMax ? "min" : "max"]($schemaExcl, $schema);
+ if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) {
+ $exclusive = true;
+ $errorKeyword = $exclusiveKeyword;
+ $errSchemaPath = it.errSchemaPath + "/" + $exclusiveKeyword;
+ $notOp += "=";
+ } else {
+ $exclusive = false;
+ $opStr += "=";
+ }
+ }
+ var $opExpr = "'" + $opStr + "'";
+ out += " if ( ";
+ if ($isData) {
+ out += " (" + $schemaValue + " !== undefined && typeof " + $schemaValue + " != 'number') || ";
+ }
+ out += " " + $data + " " + $notOp + " " + $schemaValue + " || " + $data + " !== " + $data + ") { ";
+ }
+ }
+ $errorKeyword = $errorKeyword || $keyword;
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: '" + ($errorKeyword || "_limit") + "' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { comparison: " + $opExpr + ", limit: " + $schemaValue + ", exclusive: " + $exclusive + " } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should be " + $opStr + " ";
+ if ($isData) {
+ out += "' + " + $schemaValue;
+ } else {
+ out += "" + $schemaValue + "'";
+ }
+ }
+ if (it.opts.verbose) {
+ out += " , schema: ";
+ if ($isData) {
+ out += "validate.schema" + $schemaPath;
+ } else {
+ out += "" + $schema;
+ }
+ out += " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " } ";
+ if ($breakOnError) {
+ out += " else { ";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limitItems.js
+var require_limitItems = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limitItems.js"(exports, module) {
+ "use strict";
+ module.exports = function generate__limitItems(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $errorKeyword;
+ var $data = "data" + ($dataLvl || "");
+ var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
+ if ($isData) {
+ out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
+ $schemaValue = "schema" + $lvl;
+ } else {
+ $schemaValue = $schema;
+ }
+ if (!($isData || typeof $schema == "number")) {
+ throw new Error($keyword + " must be number");
+ }
+ var $op = $keyword == "maxItems" ? ">" : "<";
+ out += "if ( ";
+ if ($isData) {
+ out += " (" + $schemaValue + " !== undefined && typeof " + $schemaValue + " != 'number') || ";
+ }
+ out += " " + $data + ".length " + $op + " " + $schemaValue + ") { ";
+ var $errorKeyword = $keyword;
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: '" + ($errorKeyword || "_limitItems") + "' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { limit: " + $schemaValue + " } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should NOT have ";
+ if ($keyword == "maxItems") {
+ out += "more";
+ } else {
+ out += "fewer";
+ }
+ out += " than ";
+ if ($isData) {
+ out += "' + " + $schemaValue + " + '";
+ } else {
+ out += "" + $schema;
+ }
+ out += " items' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: ";
+ if ($isData) {
+ out += "validate.schema" + $schemaPath;
+ } else {
+ out += "" + $schema;
+ }
+ out += " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += "} ";
+ if ($breakOnError) {
+ out += " else { ";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limitLength.js
+var require_limitLength = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limitLength.js"(exports, module) {
+ "use strict";
+ module.exports = function generate__limitLength(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $errorKeyword;
+ var $data = "data" + ($dataLvl || "");
+ var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
+ if ($isData) {
+ out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
+ $schemaValue = "schema" + $lvl;
+ } else {
+ $schemaValue = $schema;
+ }
+ if (!($isData || typeof $schema == "number")) {
+ throw new Error($keyword + " must be number");
+ }
+ var $op = $keyword == "maxLength" ? ">" : "<";
+ out += "if ( ";
+ if ($isData) {
+ out += " (" + $schemaValue + " !== undefined && typeof " + $schemaValue + " != 'number') || ";
+ }
+ if (it.opts.unicode === false) {
+ out += " " + $data + ".length ";
+ } else {
+ out += " ucs2length(" + $data + ") ";
+ }
+ out += " " + $op + " " + $schemaValue + ") { ";
+ var $errorKeyword = $keyword;
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: '" + ($errorKeyword || "_limitLength") + "' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { limit: " + $schemaValue + " } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should NOT be ";
+ if ($keyword == "maxLength") {
+ out += "longer";
+ } else {
+ out += "shorter";
+ }
+ out += " than ";
+ if ($isData) {
+ out += "' + " + $schemaValue + " + '";
+ } else {
+ out += "" + $schema;
+ }
+ out += " characters' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: ";
+ if ($isData) {
+ out += "validate.schema" + $schemaPath;
+ } else {
+ out += "" + $schema;
+ }
+ out += " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += "} ";
+ if ($breakOnError) {
+ out += " else { ";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limitProperties.js
+var require_limitProperties = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limitProperties.js"(exports, module) {
+ "use strict";
+ module.exports = function generate__limitProperties(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $errorKeyword;
+ var $data = "data" + ($dataLvl || "");
+ var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
+ if ($isData) {
+ out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
+ $schemaValue = "schema" + $lvl;
+ } else {
+ $schemaValue = $schema;
+ }
+ if (!($isData || typeof $schema == "number")) {
+ throw new Error($keyword + " must be number");
+ }
+ var $op = $keyword == "maxProperties" ? ">" : "<";
+ out += "if ( ";
+ if ($isData) {
+ out += " (" + $schemaValue + " !== undefined && typeof " + $schemaValue + " != 'number') || ";
+ }
+ out += " Object.keys(" + $data + ").length " + $op + " " + $schemaValue + ") { ";
+ var $errorKeyword = $keyword;
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: '" + ($errorKeyword || "_limitProperties") + "' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { limit: " + $schemaValue + " } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should NOT have ";
+ if ($keyword == "maxProperties") {
+ out += "more";
+ } else {
+ out += "fewer";
+ }
+ out += " than ";
+ if ($isData) {
+ out += "' + " + $schemaValue + " + '";
+ } else {
+ out += "" + $schema;
+ }
+ out += " properties' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: ";
+ if ($isData) {
+ out += "validate.schema" + $schemaPath;
+ } else {
+ out += "" + $schema;
+ }
+ out += " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += "} ";
+ if ($breakOnError) {
+ out += " else { ";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/multipleOf.js
+var require_multipleOf2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/multipleOf.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_multipleOf(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
+ if ($isData) {
+ out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
+ $schemaValue = "schema" + $lvl;
+ } else {
+ $schemaValue = $schema;
+ }
+ if (!($isData || typeof $schema == "number")) {
+ throw new Error($keyword + " must be number");
+ }
+ out += "var division" + $lvl + ";if (";
+ if ($isData) {
+ out += " " + $schemaValue + " !== undefined && ( typeof " + $schemaValue + " != 'number' || ";
+ }
+ out += " (division" + $lvl + " = " + $data + " / " + $schemaValue + ", ";
+ if (it.opts.multipleOfPrecision) {
+ out += " Math.abs(Math.round(division" + $lvl + ") - division" + $lvl + ") > 1e-" + it.opts.multipleOfPrecision + " ";
+ } else {
+ out += " division" + $lvl + " !== parseInt(division" + $lvl + ") ";
+ }
+ out += " ) ";
+ if ($isData) {
+ out += " ) ";
+ }
+ out += " ) { ";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'multipleOf' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { multipleOf: " + $schemaValue + " } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should be multiple of ";
+ if ($isData) {
+ out += "' + " + $schemaValue;
+ } else {
+ out += "" + $schemaValue + "'";
+ }
+ }
+ if (it.opts.verbose) {
+ out += " , schema: ";
+ if ($isData) {
+ out += "validate.schema" + $schemaPath;
+ } else {
+ out += "" + $schema;
+ }
+ out += " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += "} ";
+ if ($breakOnError) {
+ out += " else { ";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/not.js
+var require_not2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/not.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_not(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $errs = "errs__" + $lvl;
+ var $it = it.util.copy(it);
+ $it.level++;
+ var $nextValid = "valid" + $it.level;
+ if (it.opts.strictKeywords ? typeof $schema == "object" && Object.keys($schema).length > 0 || $schema === false : it.util.schemaHasRules($schema, it.RULES.all)) {
+ $it.schema = $schema;
+ $it.schemaPath = $schemaPath;
+ $it.errSchemaPath = $errSchemaPath;
+ out += " var " + $errs + " = errors; ";
+ var $wasComposite = it.compositeRule;
+ it.compositeRule = $it.compositeRule = true;
+ $it.createErrors = false;
+ var $allErrorsOption;
+ if ($it.opts.allErrors) {
+ $allErrorsOption = $it.opts.allErrors;
+ $it.opts.allErrors = false;
+ }
+ out += " " + it.validate($it) + " ";
+ $it.createErrors = true;
+ if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;
+ it.compositeRule = $it.compositeRule = $wasComposite;
+ out += " if (" + $nextValid + ") { ";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'not' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: {} ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should NOT be valid' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " } else { errors = " + $errs + "; if (vErrors !== null) { if (" + $errs + ") vErrors.length = " + $errs + "; else vErrors = null; } ";
+ if (it.opts.allErrors) {
+ out += " } ";
+ }
+ } else {
+ out += " var err = ";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'not' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: {} ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should NOT be valid' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ out += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ if ($breakOnError) {
+ out += " if (false) { ";
+ }
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/oneOf.js
+var require_oneOf2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/oneOf.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_oneOf(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $valid = "valid" + $lvl;
+ var $errs = "errs__" + $lvl;
+ var $it = it.util.copy(it);
+ var $closingBraces = "";
+ $it.level++;
+ var $nextValid = "valid" + $it.level;
+ var $currentBaseId = $it.baseId, $prevValid = "prevValid" + $lvl, $passingSchemas = "passingSchemas" + $lvl;
+ out += "var " + $errs + " = errors , " + $prevValid + " = false , " + $valid + " = false , " + $passingSchemas + " = null; ";
+ var $wasComposite = it.compositeRule;
+ it.compositeRule = $it.compositeRule = true;
+ var arr1 = $schema;
+ if (arr1) {
+ var $sch, $i = -1, l1 = arr1.length - 1;
+ while ($i < l1) {
+ $sch = arr1[$i += 1];
+ if (it.opts.strictKeywords ? typeof $sch == "object" && Object.keys($sch).length > 0 || $sch === false : it.util.schemaHasRules($sch, it.RULES.all)) {
+ $it.schema = $sch;
+ $it.schemaPath = $schemaPath + "[" + $i + "]";
+ $it.errSchemaPath = $errSchemaPath + "/" + $i;
+ out += " " + it.validate($it) + " ";
+ $it.baseId = $currentBaseId;
+ } else {
+ out += " var " + $nextValid + " = true; ";
+ }
+ if ($i) {
+ out += " if (" + $nextValid + " && " + $prevValid + ") { " + $valid + " = false; " + $passingSchemas + " = [" + $passingSchemas + ", " + $i + "]; } else { ";
+ $closingBraces += "}";
+ }
+ out += " if (" + $nextValid + ") { " + $valid + " = " + $prevValid + " = true; " + $passingSchemas + " = " + $i + "; }";
+ }
+ }
+ it.compositeRule = $it.compositeRule = $wasComposite;
+ out += "" + $closingBraces + "if (!" + $valid + ") { var err = ";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'oneOf' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { passingSchemas: " + $passingSchemas + " } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should match exactly one schema in oneOf' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ out += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError(vErrors); ";
+ } else {
+ out += " validate.errors = vErrors; return false; ";
+ }
+ }
+ out += "} else { errors = " + $errs + "; if (vErrors !== null) { if (" + $errs + ") vErrors.length = " + $errs + "; else vErrors = null; }";
+ if (it.opts.allErrors) {
+ out += " } ";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/pattern.js
+var require_pattern2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/pattern.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_pattern(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
+ if ($isData) {
+ out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
+ $schemaValue = "schema" + $lvl;
+ } else {
+ $schemaValue = $schema;
+ }
+ var $regexp = $isData ? "(new RegExp(" + $schemaValue + "))" : it.usePattern($schema);
+ out += "if ( ";
+ if ($isData) {
+ out += " (" + $schemaValue + " !== undefined && typeof " + $schemaValue + " != 'string') || ";
+ }
+ out += " !" + $regexp + ".test(" + $data + ") ) { ";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'pattern' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { pattern: ";
+ if ($isData) {
+ out += "" + $schemaValue;
+ } else {
+ out += "" + it.util.toQuotedString($schema);
+ }
+ out += " } ";
+ if (it.opts.messages !== false) {
+ out += ` , message: 'should match pattern "`;
+ if ($isData) {
+ out += "' + " + $schemaValue + " + '";
+ } else {
+ out += "" + it.util.escapeQuotes($schema);
+ }
+ out += `"' `;
+ }
+ if (it.opts.verbose) {
+ out += " , schema: ";
+ if ($isData) {
+ out += "validate.schema" + $schemaPath;
+ } else {
+ out += "" + it.util.toQuotedString($schema);
+ }
+ out += " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += "} ";
+ if ($breakOnError) {
+ out += " else { ";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/properties.js
+var require_properties2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/properties.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_properties(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $errs = "errs__" + $lvl;
+ var $it = it.util.copy(it);
+ var $closingBraces = "";
+ $it.level++;
+ var $nextValid = "valid" + $it.level;
+ var $key = "key" + $lvl, $idx = "idx" + $lvl, $dataNxt = $it.dataLevel = it.dataLevel + 1, $nextData = "data" + $dataNxt, $dataProperties = "dataProperties" + $lvl;
+ var $schemaKeys = Object.keys($schema || {}).filter(notProto), $pProperties = it.schema.patternProperties || {}, $pPropertyKeys = Object.keys($pProperties).filter(notProto), $aProperties = it.schema.additionalProperties, $someProperties = $schemaKeys.length || $pPropertyKeys.length, $noAdditional = $aProperties === false, $additionalIsSchema = typeof $aProperties == "object" && Object.keys($aProperties).length, $removeAdditional = it.opts.removeAdditional, $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional, $ownProperties = it.opts.ownProperties, $currentBaseId = it.baseId;
+ var $required = it.schema.required;
+ if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) {
+ var $requiredHash = it.util.toHash($required);
+ }
+ function notProto(p) {
+ return p !== "__proto__";
+ }
+ out += "var " + $errs + " = errors;var " + $nextValid + " = true;";
+ if ($ownProperties) {
+ out += " var " + $dataProperties + " = undefined;";
+ }
+ if ($checkAdditional) {
+ if ($ownProperties) {
+ out += " " + $dataProperties + " = " + $dataProperties + " || Object.keys(" + $data + "); for (var " + $idx + "=0; " + $idx + "<" + $dataProperties + ".length; " + $idx + "++) { var " + $key + " = " + $dataProperties + "[" + $idx + "]; ";
+ } else {
+ out += " for (var " + $key + " in " + $data + ") { ";
+ }
+ if ($someProperties) {
+ out += " var isAdditional" + $lvl + " = !(false ";
+ if ($schemaKeys.length) {
+ if ($schemaKeys.length > 8) {
+ out += " || validate.schema" + $schemaPath + ".hasOwnProperty(" + $key + ") ";
+ } else {
+ var arr1 = $schemaKeys;
+ if (arr1) {
+ var $propertyKey, i1 = -1, l1 = arr1.length - 1;
+ while (i1 < l1) {
+ $propertyKey = arr1[i1 += 1];
+ out += " || " + $key + " == " + it.util.toQuotedString($propertyKey) + " ";
+ }
+ }
+ }
+ }
+ if ($pPropertyKeys.length) {
+ var arr2 = $pPropertyKeys;
+ if (arr2) {
+ var $pProperty, $i = -1, l2 = arr2.length - 1;
+ while ($i < l2) {
+ $pProperty = arr2[$i += 1];
+ out += " || " + it.usePattern($pProperty) + ".test(" + $key + ") ";
+ }
+ }
+ }
+ out += " ); if (isAdditional" + $lvl + ") { ";
+ }
+ if ($removeAdditional == "all") {
+ out += " delete " + $data + "[" + $key + "]; ";
+ } else {
+ var $currentErrorPath = it.errorPath;
+ var $additionalProperty = "' + " + $key + " + '";
+ if (it.opts._errorDataPathProperty) {
+ it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
+ }
+ if ($noAdditional) {
+ if ($removeAdditional) {
+ out += " delete " + $data + "[" + $key + "]; ";
+ } else {
+ out += " " + $nextValid + " = false; ";
+ var $currErrSchemaPath = $errSchemaPath;
+ $errSchemaPath = it.errSchemaPath + "/additionalProperties";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'additionalProperties' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { additionalProperty: '" + $additionalProperty + "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: '";
+ if (it.opts._errorDataPathProperty) {
+ out += "is an invalid additional property";
+ } else {
+ out += "should NOT have additional properties";
+ }
+ out += "' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: false , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ $errSchemaPath = $currErrSchemaPath;
+ if ($breakOnError) {
+ out += " break; ";
+ }
+ }
+ } else if ($additionalIsSchema) {
+ if ($removeAdditional == "failing") {
+ out += " var " + $errs + " = errors; ";
+ var $wasComposite = it.compositeRule;
+ it.compositeRule = $it.compositeRule = true;
+ $it.schema = $aProperties;
+ $it.schemaPath = it.schemaPath + ".additionalProperties";
+ $it.errSchemaPath = it.errSchemaPath + "/additionalProperties";
+ $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
+ var $passData = $data + "[" + $key + "]";
+ $it.dataPathArr[$dataNxt] = $key;
+ var $code = it.validate($it);
+ $it.baseId = $currentBaseId;
+ if (it.util.varOccurences($code, $nextData) < 2) {
+ out += " " + it.util.varReplace($code, $nextData, $passData) + " ";
+ } else {
+ out += " var " + $nextData + " = " + $passData + "; " + $code + " ";
+ }
+ out += " if (!" + $nextValid + ") { errors = " + $errs + "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete " + $data + "[" + $key + "]; } ";
+ it.compositeRule = $it.compositeRule = $wasComposite;
+ } else {
+ $it.schema = $aProperties;
+ $it.schemaPath = it.schemaPath + ".additionalProperties";
+ $it.errSchemaPath = it.errSchemaPath + "/additionalProperties";
+ $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
+ var $passData = $data + "[" + $key + "]";
+ $it.dataPathArr[$dataNxt] = $key;
+ var $code = it.validate($it);
+ $it.baseId = $currentBaseId;
+ if (it.util.varOccurences($code, $nextData) < 2) {
+ out += " " + it.util.varReplace($code, $nextData, $passData) + " ";
+ } else {
+ out += " var " + $nextData + " = " + $passData + "; " + $code + " ";
+ }
+ if ($breakOnError) {
+ out += " if (!" + $nextValid + ") break; ";
+ }
+ }
+ }
+ it.errorPath = $currentErrorPath;
+ }
+ if ($someProperties) {
+ out += " } ";
+ }
+ out += " } ";
+ if ($breakOnError) {
+ out += " if (" + $nextValid + ") { ";
+ $closingBraces += "}";
+ }
+ }
+ var $useDefaults = it.opts.useDefaults && !it.compositeRule;
+ if ($schemaKeys.length) {
+ var arr3 = $schemaKeys;
+ if (arr3) {
+ var $propertyKey, i3 = -1, l3 = arr3.length - 1;
+ while (i3 < l3) {
+ $propertyKey = arr3[i3 += 1];
+ var $sch = $schema[$propertyKey];
+ if (it.opts.strictKeywords ? typeof $sch == "object" && Object.keys($sch).length > 0 || $sch === false : it.util.schemaHasRules($sch, it.RULES.all)) {
+ var $prop = it.util.getProperty($propertyKey), $passData = $data + $prop, $hasDefault = $useDefaults && $sch.default !== void 0;
+ $it.schema = $sch;
+ $it.schemaPath = $schemaPath + $prop;
+ $it.errSchemaPath = $errSchemaPath + "/" + it.util.escapeFragment($propertyKey);
+ $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers);
+ $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey);
+ var $code = it.validate($it);
+ $it.baseId = $currentBaseId;
+ if (it.util.varOccurences($code, $nextData) < 2) {
+ $code = it.util.varReplace($code, $nextData, $passData);
+ var $useData = $passData;
+ } else {
+ var $useData = $nextData;
+ out += " var " + $nextData + " = " + $passData + "; ";
+ }
+ if ($hasDefault) {
+ out += " " + $code + " ";
+ } else {
+ if ($requiredHash && $requiredHash[$propertyKey]) {
+ out += " if ( " + $useData + " === undefined ";
+ if ($ownProperties) {
+ out += " || ! Object.prototype.hasOwnProperty.call(" + $data + ", '" + it.util.escapeQuotes($propertyKey) + "') ";
+ }
+ out += ") { " + $nextValid + " = false; ";
+ var $currentErrorPath = it.errorPath, $currErrSchemaPath = $errSchemaPath, $missingProperty = it.util.escapeQuotes($propertyKey);
+ if (it.opts._errorDataPathProperty) {
+ it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
+ }
+ $errSchemaPath = it.errSchemaPath + "/required";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'required' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { missingProperty: '" + $missingProperty + "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: '";
+ if (it.opts._errorDataPathProperty) {
+ out += "is a required property";
+ } else {
+ out += "should have required property \\'" + $missingProperty + "\\'";
+ }
+ out += "' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ $errSchemaPath = $currErrSchemaPath;
+ it.errorPath = $currentErrorPath;
+ out += " } else { ";
+ } else {
+ if ($breakOnError) {
+ out += " if ( " + $useData + " === undefined ";
+ if ($ownProperties) {
+ out += " || ! Object.prototype.hasOwnProperty.call(" + $data + ", '" + it.util.escapeQuotes($propertyKey) + "') ";
+ }
+ out += ") { " + $nextValid + " = true; } else { ";
+ } else {
+ out += " if (" + $useData + " !== undefined ";
+ if ($ownProperties) {
+ out += " && Object.prototype.hasOwnProperty.call(" + $data + ", '" + it.util.escapeQuotes($propertyKey) + "') ";
+ }
+ out += " ) { ";
+ }
+ }
+ out += " " + $code + " } ";
+ }
+ }
+ if ($breakOnError) {
+ out += " if (" + $nextValid + ") { ";
+ $closingBraces += "}";
+ }
+ }
+ }
+ }
+ if ($pPropertyKeys.length) {
+ var arr4 = $pPropertyKeys;
+ if (arr4) {
+ var $pProperty, i4 = -1, l4 = arr4.length - 1;
+ while (i4 < l4) {
+ $pProperty = arr4[i4 += 1];
+ var $sch = $pProperties[$pProperty];
+ if (it.opts.strictKeywords ? typeof $sch == "object" && Object.keys($sch).length > 0 || $sch === false : it.util.schemaHasRules($sch, it.RULES.all)) {
+ $it.schema = $sch;
+ $it.schemaPath = it.schemaPath + ".patternProperties" + it.util.getProperty($pProperty);
+ $it.errSchemaPath = it.errSchemaPath + "/patternProperties/" + it.util.escapeFragment($pProperty);
+ if ($ownProperties) {
+ out += " " + $dataProperties + " = " + $dataProperties + " || Object.keys(" + $data + "); for (var " + $idx + "=0; " + $idx + "<" + $dataProperties + ".length; " + $idx + "++) { var " + $key + " = " + $dataProperties + "[" + $idx + "]; ";
+ } else {
+ out += " for (var " + $key + " in " + $data + ") { ";
+ }
+ out += " if (" + it.usePattern($pProperty) + ".test(" + $key + ")) { ";
+ $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
+ var $passData = $data + "[" + $key + "]";
+ $it.dataPathArr[$dataNxt] = $key;
+ var $code = it.validate($it);
+ $it.baseId = $currentBaseId;
+ if (it.util.varOccurences($code, $nextData) < 2) {
+ out += " " + it.util.varReplace($code, $nextData, $passData) + " ";
+ } else {
+ out += " var " + $nextData + " = " + $passData + "; " + $code + " ";
+ }
+ if ($breakOnError) {
+ out += " if (!" + $nextValid + ") break; ";
+ }
+ out += " } ";
+ if ($breakOnError) {
+ out += " else " + $nextValid + " = true; ";
+ }
+ out += " } ";
+ if ($breakOnError) {
+ out += " if (" + $nextValid + ") { ";
+ $closingBraces += "}";
+ }
+ }
+ }
+ }
+ }
+ if ($breakOnError) {
+ out += " " + $closingBraces + " if (" + $errs + " == errors) {";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/propertyNames.js
+var require_propertyNames2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/propertyNames.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_propertyNames(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $errs = "errs__" + $lvl;
+ var $it = it.util.copy(it);
+ var $closingBraces = "";
+ $it.level++;
+ var $nextValid = "valid" + $it.level;
+ out += "var " + $errs + " = errors;";
+ if (it.opts.strictKeywords ? typeof $schema == "object" && Object.keys($schema).length > 0 || $schema === false : it.util.schemaHasRules($schema, it.RULES.all)) {
+ $it.schema = $schema;
+ $it.schemaPath = $schemaPath;
+ $it.errSchemaPath = $errSchemaPath;
+ var $key = "key" + $lvl, $idx = "idx" + $lvl, $i = "i" + $lvl, $invalidName = "' + " + $key + " + '", $dataNxt = $it.dataLevel = it.dataLevel + 1, $nextData = "data" + $dataNxt, $dataProperties = "dataProperties" + $lvl, $ownProperties = it.opts.ownProperties, $currentBaseId = it.baseId;
+ if ($ownProperties) {
+ out += " var " + $dataProperties + " = undefined; ";
+ }
+ if ($ownProperties) {
+ out += " " + $dataProperties + " = " + $dataProperties + " || Object.keys(" + $data + "); for (var " + $idx + "=0; " + $idx + "<" + $dataProperties + ".length; " + $idx + "++) { var " + $key + " = " + $dataProperties + "[" + $idx + "]; ";
+ } else {
+ out += " for (var " + $key + " in " + $data + ") { ";
+ }
+ out += " var startErrs" + $lvl + " = errors; ";
+ var $passData = $key;
+ var $wasComposite = it.compositeRule;
+ it.compositeRule = $it.compositeRule = true;
+ var $code = it.validate($it);
+ $it.baseId = $currentBaseId;
+ if (it.util.varOccurences($code, $nextData) < 2) {
+ out += " " + it.util.varReplace($code, $nextData, $passData) + " ";
+ } else {
+ out += " var " + $nextData + " = " + $passData + "; " + $code + " ";
+ }
+ it.compositeRule = $it.compositeRule = $wasComposite;
+ out += " if (!" + $nextValid + ") { for (var " + $i + "=startErrs" + $lvl + "; " + $i + " 0 || $propertySch === false : it.util.schemaHasRules($propertySch, it.RULES.all)))) {
+ $required[$required.length] = $property;
+ }
+ }
+ }
+ } else {
+ var $required = $schema;
+ }
+ }
+ if ($isData || $required.length) {
+ var $currentErrorPath = it.errorPath, $loopRequired = $isData || $required.length >= it.opts.loopRequired, $ownProperties = it.opts.ownProperties;
+ if ($breakOnError) {
+ out += " var missing" + $lvl + "; ";
+ if ($loopRequired) {
+ if (!$isData) {
+ out += " var " + $vSchema + " = validate.schema" + $schemaPath + "; ";
+ }
+ var $i = "i" + $lvl, $propertyPath = "schema" + $lvl + "[" + $i + "]", $missingProperty = "' + " + $propertyPath + " + '";
+ if (it.opts._errorDataPathProperty) {
+ it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);
+ }
+ out += " var " + $valid + " = true; ";
+ if ($isData) {
+ out += " if (schema" + $lvl + " === undefined) " + $valid + " = true; else if (!Array.isArray(schema" + $lvl + ")) " + $valid + " = false; else {";
+ }
+ out += " for (var " + $i + " = 0; " + $i + " < " + $vSchema + ".length; " + $i + "++) { " + $valid + " = " + $data + "[" + $vSchema + "[" + $i + "]] !== undefined ";
+ if ($ownProperties) {
+ out += " && Object.prototype.hasOwnProperty.call(" + $data + ", " + $vSchema + "[" + $i + "]) ";
+ }
+ out += "; if (!" + $valid + ") break; } ";
+ if ($isData) {
+ out += " } ";
+ }
+ out += " if (!" + $valid + ") { ";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'required' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { missingProperty: '" + $missingProperty + "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: '";
+ if (it.opts._errorDataPathProperty) {
+ out += "is a required property";
+ } else {
+ out += "should have required property \\'" + $missingProperty + "\\'";
+ }
+ out += "' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " } else { ";
+ } else {
+ out += " if ( ";
+ var arr2 = $required;
+ if (arr2) {
+ var $propertyKey, $i = -1, l2 = arr2.length - 1;
+ while ($i < l2) {
+ $propertyKey = arr2[$i += 1];
+ if ($i) {
+ out += " || ";
+ }
+ var $prop = it.util.getProperty($propertyKey), $useData = $data + $prop;
+ out += " ( ( " + $useData + " === undefined ";
+ if ($ownProperties) {
+ out += " || ! Object.prototype.hasOwnProperty.call(" + $data + ", '" + it.util.escapeQuotes($propertyKey) + "') ";
+ }
+ out += ") && (missing" + $lvl + " = " + it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop) + ") ) ";
+ }
+ }
+ out += ") { ";
+ var $propertyPath = "missing" + $lvl, $missingProperty = "' + " + $propertyPath + " + '";
+ if (it.opts._errorDataPathProperty) {
+ it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + " + " + $propertyPath;
+ }
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'required' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { missingProperty: '" + $missingProperty + "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: '";
+ if (it.opts._errorDataPathProperty) {
+ out += "is a required property";
+ } else {
+ out += "should have required property \\'" + $missingProperty + "\\'";
+ }
+ out += "' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " } else { ";
+ }
+ } else {
+ if ($loopRequired) {
+ if (!$isData) {
+ out += " var " + $vSchema + " = validate.schema" + $schemaPath + "; ";
+ }
+ var $i = "i" + $lvl, $propertyPath = "schema" + $lvl + "[" + $i + "]", $missingProperty = "' + " + $propertyPath + " + '";
+ if (it.opts._errorDataPathProperty) {
+ it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);
+ }
+ if ($isData) {
+ out += " if (" + $vSchema + " && !Array.isArray(" + $vSchema + ")) { var err = ";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'required' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { missingProperty: '" + $missingProperty + "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: '";
+ if (it.opts._errorDataPathProperty) {
+ out += "is a required property";
+ } else {
+ out += "should have required property \\'" + $missingProperty + "\\'";
+ }
+ out += "' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ out += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (" + $vSchema + " !== undefined) { ";
+ }
+ out += " for (var " + $i + " = 0; " + $i + " < " + $vSchema + ".length; " + $i + "++) { if (" + $data + "[" + $vSchema + "[" + $i + "]] === undefined ";
+ if ($ownProperties) {
+ out += " || ! Object.prototype.hasOwnProperty.call(" + $data + ", " + $vSchema + "[" + $i + "]) ";
+ }
+ out += ") { var err = ";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'required' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { missingProperty: '" + $missingProperty + "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: '";
+ if (it.opts._errorDataPathProperty) {
+ out += "is a required property";
+ } else {
+ out += "should have required property \\'" + $missingProperty + "\\'";
+ }
+ out += "' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ out += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ";
+ if ($isData) {
+ out += " } ";
+ }
+ } else {
+ var arr3 = $required;
+ if (arr3) {
+ var $propertyKey, i3 = -1, l3 = arr3.length - 1;
+ while (i3 < l3) {
+ $propertyKey = arr3[i3 += 1];
+ var $prop = it.util.getProperty($propertyKey), $missingProperty = it.util.escapeQuotes($propertyKey), $useData = $data + $prop;
+ if (it.opts._errorDataPathProperty) {
+ it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
+ }
+ out += " if ( " + $useData + " === undefined ";
+ if ($ownProperties) {
+ out += " || ! Object.prototype.hasOwnProperty.call(" + $data + ", '" + it.util.escapeQuotes($propertyKey) + "') ";
+ }
+ out += ") { var err = ";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'required' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { missingProperty: '" + $missingProperty + "' } ";
+ if (it.opts.messages !== false) {
+ out += " , message: '";
+ if (it.opts._errorDataPathProperty) {
+ out += "is a required property";
+ } else {
+ out += "should have required property \\'" + $missingProperty + "\\'";
+ }
+ out += "' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ out += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ";
+ }
+ }
+ }
+ }
+ it.errorPath = $currentErrorPath;
+ } else if ($breakOnError) {
+ out += " if (true) {";
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/uniqueItems.js
+var require_uniqueItems2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/uniqueItems.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_uniqueItems(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $data = "data" + ($dataLvl || "");
+ var $valid = "valid" + $lvl;
+ var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
+ if ($isData) {
+ out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
+ $schemaValue = "schema" + $lvl;
+ } else {
+ $schemaValue = $schema;
+ }
+ if (($schema || $isData) && it.opts.uniqueItems !== false) {
+ if ($isData) {
+ out += " var " + $valid + "; if (" + $schemaValue + " === false || " + $schemaValue + " === undefined) " + $valid + " = true; else if (typeof " + $schemaValue + " != 'boolean') " + $valid + " = false; else { ";
+ }
+ out += " var i = " + $data + ".length , " + $valid + " = true , j; if (i > 1) { ";
+ var $itemType = it.schema.items && it.schema.items.type, $typeIsArray = Array.isArray($itemType);
+ if (!$itemType || $itemType == "object" || $itemType == "array" || $typeIsArray && ($itemType.indexOf("object") >= 0 || $itemType.indexOf("array") >= 0)) {
+ out += " outer: for (;i--;) { for (j = i; j--;) { if (equal(" + $data + "[i], " + $data + "[j])) { " + $valid + " = false; break outer; } } } ";
+ } else {
+ out += " var itemIndices = {}, item; for (;i--;) { var item = " + $data + "[i]; ";
+ var $method = "checkDataType" + ($typeIsArray ? "s" : "");
+ out += " if (" + it.util[$method]($itemType, "item", it.opts.strictNumbers, true) + ") continue; ";
+ if ($typeIsArray) {
+ out += ` if (typeof item == 'string') item = '"' + item; `;
+ }
+ out += " if (typeof itemIndices[item] == 'number') { " + $valid + " = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ";
+ }
+ out += " } ";
+ if ($isData) {
+ out += " } ";
+ }
+ out += " if (!" + $valid + ") { ";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: 'uniqueItems' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { i: i, j: j } ";
+ if (it.opts.messages !== false) {
+ out += " , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' ";
+ }
+ if (it.opts.verbose) {
+ out += " , schema: ";
+ if ($isData) {
+ out += "validate.schema" + $schemaPath;
+ } else {
+ out += "" + $schema;
+ }
+ out += " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ out += " } ";
+ if ($breakOnError) {
+ out += " else { ";
+ }
+ } else {
+ if ($breakOnError) {
+ out += " if (true) { ";
+ }
+ }
+ return out;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/index.js
+var require_dotjs2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/index.js"(exports, module) {
+ "use strict";
+ module.exports = {
+ "$ref": require_ref2(),
+ allOf: require_allOf2(),
+ anyOf: require_anyOf2(),
+ "$comment": require_comment2(),
+ const: require_const2(),
+ contains: require_contains2(),
+ dependencies: require_dependencies2(),
+ "enum": require_enum2(),
+ format: require_format2(),
+ "if": require_if2(),
+ items: require_items2(),
+ maximum: require_limit(),
+ minimum: require_limit(),
+ maxItems: require_limitItems(),
+ minItems: require_limitItems(),
+ maxLength: require_limitLength(),
+ minLength: require_limitLength(),
+ maxProperties: require_limitProperties(),
+ minProperties: require_limitProperties(),
+ multipleOf: require_multipleOf2(),
+ not: require_not2(),
+ oneOf: require_oneOf2(),
+ pattern: require_pattern2(),
+ properties: require_properties2(),
+ propertyNames: require_propertyNames2(),
+ required: require_required2(),
+ uniqueItems: require_uniqueItems2(),
+ validate: require_validate2()
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/rules.js
+var require_rules2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/rules.js"(exports, module) {
+ "use strict";
+ var ruleModules = require_dotjs2();
+ var toHash = require_util9().toHash;
+ module.exports = function rules() {
+ var RULES = [
+ {
+ type: "number",
+ rules: [
+ { "maximum": ["exclusiveMaximum"] },
+ { "minimum": ["exclusiveMinimum"] },
+ "multipleOf",
+ "format"
+ ]
+ },
+ {
+ type: "string",
+ rules: ["maxLength", "minLength", "pattern", "format"]
+ },
+ {
+ type: "array",
+ rules: ["maxItems", "minItems", "items", "contains", "uniqueItems"]
+ },
+ {
+ type: "object",
+ rules: [
+ "maxProperties",
+ "minProperties",
+ "required",
+ "dependencies",
+ "propertyNames",
+ { "properties": ["additionalProperties", "patternProperties"] }
+ ]
+ },
+ { rules: ["$ref", "const", "enum", "not", "anyOf", "oneOf", "allOf", "if"] }
+ ];
+ var ALL = ["type", "$comment"];
+ var KEYWORDS = [
+ "$schema",
+ "$id",
+ "id",
+ "$data",
+ "$async",
+ "title",
+ "description",
+ "default",
+ "definitions",
+ "examples",
+ "readOnly",
+ "writeOnly",
+ "contentMediaType",
+ "contentEncoding",
+ "additionalItems",
+ "then",
+ "else"
+ ];
+ var TYPES = ["number", "integer", "string", "array", "object", "boolean", "null"];
+ RULES.all = toHash(ALL);
+ RULES.types = toHash(TYPES);
+ RULES.forEach(function(group) {
+ group.rules = group.rules.map(function(keyword) {
+ var implKeywords;
+ if (typeof keyword == "object") {
+ var key = Object.keys(keyword)[0];
+ implKeywords = keyword[key];
+ keyword = key;
+ implKeywords.forEach(function(k) {
+ ALL.push(k);
+ RULES.all[k] = true;
+ });
+ }
+ ALL.push(keyword);
+ var rule = RULES.all[keyword] = {
+ keyword,
+ code: ruleModules[keyword],
+ implements: implKeywords
+ };
+ return rule;
+ });
+ RULES.all.$comment = {
+ keyword: "$comment",
+ code: ruleModules.$comment
+ };
+ if (group.type) RULES.types[group.type] = group;
+ });
+ RULES.keywords = toHash(ALL.concat(KEYWORDS));
+ RULES.custom = {};
+ return RULES;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/data.js
+var require_data3 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/data.js"(exports, module) {
+ "use strict";
+ var KEYWORDS = [
+ "multipleOf",
+ "maximum",
+ "exclusiveMaximum",
+ "minimum",
+ "exclusiveMinimum",
+ "maxLength",
+ "minLength",
+ "pattern",
+ "additionalItems",
+ "maxItems",
+ "minItems",
+ "uniqueItems",
+ "maxProperties",
+ "minProperties",
+ "required",
+ "additionalProperties",
+ "enum",
+ "format",
+ "const"
+ ];
+ module.exports = function(metaSchema, keywordsJsonPointers) {
+ for (var i = 0; i < keywordsJsonPointers.length; i++) {
+ metaSchema = JSON.parse(JSON.stringify(metaSchema));
+ var segments = keywordsJsonPointers[i].split("/");
+ var keywords2 = metaSchema;
+ var j;
+ for (j = 1; j < segments.length; j++)
+ keywords2 = keywords2[segments[j]];
+ for (j = 0; j < KEYWORDS.length; j++) {
+ var key = KEYWORDS[j];
+ var schema2 = keywords2[key];
+ if (schema2) {
+ keywords2[key] = {
+ anyOf: [
+ schema2,
+ { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" }
+ ]
+ };
+ }
+ }
+ }
+ return metaSchema;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/async.js
+var require_async2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/async.js"(exports, module) {
+ "use strict";
+ var MissingRefError = require_error_classes2().MissingRef;
+ module.exports = compileAsync;
+ function compileAsync(schema2, meta, callback) {
+ var self2 = this;
+ if (typeof this._opts.loadSchema != "function")
+ throw new Error("options.loadSchema should be a function");
+ if (typeof meta == "function") {
+ callback = meta;
+ meta = void 0;
+ }
+ var p = loadMetaSchemaOf(schema2).then(function() {
+ var schemaObj = self2._addSchema(schema2, void 0, meta);
+ return schemaObj.validate || _compileAsync(schemaObj);
+ });
+ if (callback) {
+ p.then(
+ function(v) {
+ callback(null, v);
+ },
+ callback
+ );
+ }
+ return p;
+ function loadMetaSchemaOf(sch) {
+ var $schema = sch.$schema;
+ return $schema && !self2.getSchema($schema) ? compileAsync.call(self2, { $ref: $schema }, true) : Promise.resolve();
+ }
+ function _compileAsync(schemaObj) {
+ try {
+ return self2._compile(schemaObj);
+ } catch (e) {
+ if (e instanceof MissingRefError) return loadMissingSchema(e);
+ throw e;
+ }
+ function loadMissingSchema(e) {
+ var ref = e.missingSchema;
+ if (added(ref)) throw new Error("Schema " + ref + " is loaded but " + e.missingRef + " cannot be resolved");
+ var schemaPromise = self2._loadingSchemas[ref];
+ if (!schemaPromise) {
+ schemaPromise = self2._loadingSchemas[ref] = self2._opts.loadSchema(ref);
+ schemaPromise.then(removePromise, removePromise);
+ }
+ return schemaPromise.then(function(sch) {
+ if (!added(ref)) {
+ return loadMetaSchemaOf(sch).then(function() {
+ if (!added(ref)) self2.addSchema(sch, ref, void 0, meta);
+ });
+ }
+ }).then(function() {
+ return _compileAsync(schemaObj);
+ });
+ function removePromise() {
+ delete self2._loadingSchemas[ref];
+ }
+ function added(ref2) {
+ return self2._refs[ref2] || self2._schemas[ref2];
+ }
+ }
+ }
+ }
+ }
+});
+
+// ../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/custom.js
+var require_custom2 = __commonJS({
+ "../node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/custom.js"(exports, module) {
+ "use strict";
+ module.exports = function generate_custom(it, $keyword, $ruleType) {
+ var out = " ";
+ var $lvl = it.level;
+ var $dataLvl = it.dataLevel;
+ var $schema = it.schema[$keyword];
+ var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
+ var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
+ var $breakOnError = !it.opts.allErrors;
+ var $errorKeyword;
+ var $data = "data" + ($dataLvl || "");
+ var $valid = "valid" + $lvl;
+ var $errs = "errs__" + $lvl;
+ var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
+ if ($isData) {
+ out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
+ $schemaValue = "schema" + $lvl;
+ } else {
+ $schemaValue = $schema;
+ }
+ var $rule = this, $definition = "definition" + $lvl, $rDef = $rule.definition, $closingBraces = "";
+ var $compile, $inline, $macro, $ruleValidate, $validateCode;
+ if ($isData && $rDef.$data) {
+ $validateCode = "keywordValidate" + $lvl;
+ var $validateSchema = $rDef.validateSchema;
+ out += " var " + $definition + " = RULES.custom['" + $keyword + "'].definition; var " + $validateCode + " = " + $definition + ".validate;";
+ } else {
+ $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it);
+ if (!$ruleValidate) return;
+ $schemaValue = "validate.schema" + $schemaPath;
+ $validateCode = $ruleValidate.code;
+ $compile = $rDef.compile;
+ $inline = $rDef.inline;
+ $macro = $rDef.macro;
+ }
+ var $ruleErrs = $validateCode + ".errors", $i = "i" + $lvl, $ruleErr = "ruleErr" + $lvl, $asyncKeyword = $rDef.async;
+ if ($asyncKeyword && !it.async) throw new Error("async keyword in sync schema");
+ if (!($inline || $macro)) {
+ out += "" + $ruleErrs + " = null;";
+ }
+ out += "var " + $errs + " = errors;var " + $valid + ";";
+ if ($isData && $rDef.$data) {
+ $closingBraces += "}";
+ out += " if (" + $schemaValue + " === undefined) { " + $valid + " = true; } else { ";
+ if ($validateSchema) {
+ $closingBraces += "}";
+ out += " " + $valid + " = " + $definition + ".validateSchema(" + $schemaValue + "); if (" + $valid + ") { ";
+ }
+ }
+ if ($inline) {
+ if ($rDef.statements) {
+ out += " " + $ruleValidate.validate + " ";
+ } else {
+ out += " " + $valid + " = " + $ruleValidate.validate + "; ";
+ }
+ } else if ($macro) {
+ var $it = it.util.copy(it);
+ var $closingBraces = "";
+ $it.level++;
+ var $nextValid = "valid" + $it.level;
+ $it.schema = $ruleValidate.validate;
+ $it.schemaPath = "";
+ var $wasComposite = it.compositeRule;
+ it.compositeRule = $it.compositeRule = true;
+ var $code = it.validate($it).replace(/validate\.schema/g, $validateCode);
+ it.compositeRule = $it.compositeRule = $wasComposite;
+ out += " " + $code;
+ } else {
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ out += " " + $validateCode + ".call( ";
+ if (it.opts.passContext) {
+ out += "this";
+ } else {
+ out += "self";
+ }
+ if ($compile || $rDef.schema === false) {
+ out += " , " + $data + " ";
+ } else {
+ out += " , " + $schemaValue + " , " + $data + " , validate.schema" + it.schemaPath + " ";
+ }
+ out += " , (dataPath || '')";
+ if (it.errorPath != '""') {
+ out += " + " + it.errorPath;
+ }
+ var $parentData = $dataLvl ? "data" + ($dataLvl - 1 || "") : "parentData", $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : "parentDataProperty";
+ out += " , " + $parentData + " , " + $parentDataProperty + " , rootData ) ";
+ var def_callRuleValidate = out;
+ out = $$outStack.pop();
+ if ($rDef.errors === false) {
+ out += " " + $valid + " = ";
+ if ($asyncKeyword) {
+ out += "await ";
+ }
+ out += "" + def_callRuleValidate + "; ";
+ } else {
+ if ($asyncKeyword) {
+ $ruleErrs = "customErrors" + $lvl;
+ out += " var " + $ruleErrs + " = null; try { " + $valid + " = await " + def_callRuleValidate + "; } catch (e) { " + $valid + " = false; if (e instanceof ValidationError) " + $ruleErrs + " = e.errors; else throw e; } ";
+ } else {
+ out += " " + $ruleErrs + " = null; " + $valid + " = " + def_callRuleValidate + "; ";
+ }
+ }
+ }
+ if ($rDef.modifying) {
+ out += " if (" + $parentData + ") " + $data + " = " + $parentData + "[" + $parentDataProperty + "];";
+ }
+ out += "" + $closingBraces;
+ if ($rDef.valid) {
+ if ($breakOnError) {
+ out += " if (true) { ";
+ }
+ } else {
+ out += " if ( ";
+ if ($rDef.valid === void 0) {
+ out += " !";
+ if ($macro) {
+ out += "" + $nextValid;
+ } else {
+ out += "" + $valid;
+ }
+ } else {
+ out += " " + !$rDef.valid + " ";
+ }
+ out += ") { ";
+ $errorKeyword = $rule.keyword;
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ var $$outStack = $$outStack || [];
+ $$outStack.push(out);
+ out = "";
+ if (it.createErrors !== false) {
+ out += " { keyword: '" + ($errorKeyword || "custom") + "' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { keyword: '" + $rule.keyword + "' } ";
+ if (it.opts.messages !== false) {
+ out += ` , message: 'should pass "` + $rule.keyword + `" keyword validation' `;
+ }
+ if (it.opts.verbose) {
+ out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " ";
+ }
+ out += " } ";
+ } else {
+ out += " {} ";
+ }
+ var __err = out;
+ out = $$outStack.pop();
+ if (!it.compositeRule && $breakOnError) {
+ if (it.async) {
+ out += " throw new ValidationError([" + __err + "]); ";
+ } else {
+ out += " validate.errors = [" + __err + "]; return false; ";
+ }
+ } else {
+ out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";
+ }
+ var def_customError = out;
+ out = $$outStack.pop();
+ if ($inline) {
+ if ($rDef.errors) {
+ if ($rDef.errors != "full") {
+ out += " for (var " + $i + "=" + $errs + "; " + $i + "> 1) - 1;
+ var fastNowTimeout;
+ var kFastTimer = Symbol("kFastTimer");
+ var fastTimers = [];
+ var NOT_IN_LIST = -2;
+ var TO_BE_CLEARED = -1;
+ var PENDING = 0;
+ var ACTIVE = 1;
+ function onTick() {
+ fastNow += TICK_MS;
+ let idx = 0;
+ let len = fastTimers.length;
+ while (idx < len) {
+ const timer = fastTimers[idx];
+ if (timer._state === PENDING) {
+ timer._idleStart = fastNow - TICK_MS;
+ timer._state = ACTIVE;
+ } else if (timer._state === ACTIVE && fastNow >= timer._idleStart + timer._idleTimeout) {
+ timer._state = TO_BE_CLEARED;
+ timer._idleStart = -1;
+ timer._onTimeout(timer._timerArg);
+ }
+ if (timer._state === TO_BE_CLEARED) {
+ timer._state = NOT_IN_LIST;
+ if (--len !== 0) {
+ fastTimers[idx] = fastTimers[len];
+ }
+ } else {
+ ++idx;
+ }
+ }
+ fastTimers.length = len;
+ if (fastTimers.length !== 0) {
+ refreshTimeout();
+ }
+ }
+ function refreshTimeout() {
+ if (fastNowTimeout?.refresh) {
+ fastNowTimeout.refresh();
+ } else {
+ clearTimeout(fastNowTimeout);
+ fastNowTimeout = setTimeout(onTick, TICK_MS);
+ fastNowTimeout?.unref();
+ }
+ }
+ var FastTimer = class {
+ [kFastTimer] = true;
+ /**
+ * The state of the timer, which can be one of the following:
+ * - NOT_IN_LIST (-2)
+ * - TO_BE_CLEARED (-1)
+ * - PENDING (0)
+ * - ACTIVE (1)
+ *
+ * @type {-2|-1|0|1}
+ * @private
+ */
+ _state = NOT_IN_LIST;
+ /**
+ * The number of milliseconds to wait before calling the callback.
+ *
+ * @type {number}
+ * @private
+ */
+ _idleTimeout = -1;
+ /**
+ * The time in milliseconds when the timer was started. This value is used to
+ * calculate when the timer should expire.
+ *
+ * @type {number}
+ * @default -1
+ * @private
+ */
+ _idleStart = -1;
+ /**
+ * The function to be executed when the timer expires.
+ * @type {Function}
+ * @private
+ */
+ _onTimeout;
+ /**
+ * The argument to be passed to the callback when the timer expires.
+ *
+ * @type {*}
+ * @private
+ */
+ _timerArg;
+ /**
+ * @constructor
+ * @param {Function} callback A function to be executed after the timer
+ * expires.
+ * @param {number} delay The time, in milliseconds that the timer should wait
+ * before the specified function or code is executed.
+ * @param {*} arg
+ */
+ constructor(callback, delay2, arg) {
+ this._onTimeout = callback;
+ this._idleTimeout = delay2;
+ this._timerArg = arg;
+ this.refresh();
+ }
+ /**
+ * Sets the timer's start time to the current time, and reschedules the timer
+ * to call its callback at the previously specified duration adjusted to the
+ * current time.
+ * Using this on a timer that has already called its callback will reactivate
+ * the timer.
+ *
+ * @returns {void}
+ */
+ refresh() {
+ if (this._state === NOT_IN_LIST) {
+ fastTimers.push(this);
+ }
+ if (!fastNowTimeout || fastTimers.length === 1) {
+ refreshTimeout();
+ }
+ this._state = PENDING;
+ }
+ /**
+ * The `clear` method cancels the timer, preventing it from executing.
+ *
+ * @returns {void}
+ * @private
+ */
+ clear() {
+ this._state = TO_BE_CLEARED;
+ this._idleStart = -1;
+ }
+ };
+ module.exports = {
+ /**
+ * The setTimeout() method sets a timer which executes a function once the
+ * timer expires.
+ * @param {Function} callback A function to be executed after the timer
+ * expires.
+ * @param {number} delay The time, in milliseconds that the timer should
+ * wait before the specified function or code is executed.
+ * @param {*} [arg] An optional argument to be passed to the callback function
+ * when the timer expires.
+ * @returns {NodeJS.Timeout|FastTimer}
+ */
+ setTimeout(callback, delay2, arg) {
+ return delay2 <= RESOLUTION_MS ? setTimeout(callback, delay2, arg) : new FastTimer(callback, delay2, arg);
+ },
+ /**
+ * The clearTimeout method cancels an instantiated Timer previously created
+ * by calling setTimeout.
+ *
+ * @param {NodeJS.Timeout|FastTimer} timeout
+ */
+ clearTimeout(timeout) {
+ if (timeout[kFastTimer]) {
+ timeout.clear();
+ } else {
+ clearTimeout(timeout);
+ }
+ },
+ /**
+ * The setFastTimeout() method sets a fastTimer which executes a function once
+ * the timer expires.
+ * @param {Function} callback A function to be executed after the timer
+ * expires.
+ * @param {number} delay The time, in milliseconds that the timer should
+ * wait before the specified function or code is executed.
+ * @param {*} [arg] An optional argument to be passed to the callback function
+ * when the timer expires.
+ * @returns {FastTimer}
+ */
+ setFastTimeout(callback, delay2, arg) {
+ return new FastTimer(callback, delay2, arg);
+ },
+ /**
+ * The clearTimeout method cancels an instantiated FastTimer previously
+ * created by calling setFastTimeout.
+ *
+ * @param {FastTimer} timeout
+ */
+ clearFastTimeout(timeout) {
+ timeout.clear();
+ },
+ /**
+ * The now method returns the value of the internal fast timer clock.
+ *
+ * @returns {number}
+ */
+ now() {
+ return fastNow;
+ },
+ /**
+ * Trigger the onTick function to process the fastTimers array.
+ * Exported for testing purposes only.
+ * Marking as deprecated to discourage any use outside of testing.
+ * @deprecated
+ * @param {number} [delay=0] The delay in milliseconds to add to the now value.
+ */
+ tick(delay2 = 0) {
+ fastNow += delay2 - RESOLUTION_MS + 1;
+ onTick();
+ onTick();
+ },
+ /**
+ * Reset FastTimers.
+ * Exported for testing purposes only.
+ * Marking as deprecated to discourage any use outside of testing.
+ * @deprecated
+ */
+ reset() {
+ fastNow = 0;
+ fastTimers.length = 0;
+ clearTimeout(fastNowTimeout);
+ fastNowTimeout = null;
+ },
+ /**
+ * Exporting for testing purposes only.
+ * Marking as deprecated to discourage any use outside of testing.
+ * @deprecated
+ */
+ kFastTimer
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/errors.js
+var require_errors2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/errors.js"(exports, module) {
+ "use strict";
+ var kUndiciError = Symbol.for("undici.error.UND_ERR");
+ var UndiciError = class extends Error {
+ constructor(message, options) {
+ super(message, options);
+ this.name = "UndiciError";
+ this.code = "UND_ERR";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kUndiciError] === true;
+ }
+ get [kUndiciError]() {
+ return true;
+ }
+ };
+ var kConnectTimeoutError = Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT");
+ var ConnectTimeoutError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "ConnectTimeoutError";
+ this.message = message || "Connect Timeout Error";
+ this.code = "UND_ERR_CONNECT_TIMEOUT";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kConnectTimeoutError] === true;
+ }
+ get [kConnectTimeoutError]() {
+ return true;
+ }
+ };
+ var kHeadersTimeoutError = Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT");
+ var HeadersTimeoutError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "HeadersTimeoutError";
+ this.message = message || "Headers Timeout Error";
+ this.code = "UND_ERR_HEADERS_TIMEOUT";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kHeadersTimeoutError] === true;
+ }
+ get [kHeadersTimeoutError]() {
+ return true;
+ }
+ };
+ var kHeadersOverflowError = Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW");
+ var HeadersOverflowError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "HeadersOverflowError";
+ this.message = message || "Headers Overflow Error";
+ this.code = "UND_ERR_HEADERS_OVERFLOW";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kHeadersOverflowError] === true;
+ }
+ get [kHeadersOverflowError]() {
+ return true;
+ }
+ };
+ var kBodyTimeoutError = Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT");
+ var BodyTimeoutError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "BodyTimeoutError";
+ this.message = message || "Body Timeout Error";
+ this.code = "UND_ERR_BODY_TIMEOUT";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kBodyTimeoutError] === true;
+ }
+ get [kBodyTimeoutError]() {
+ return true;
+ }
+ };
+ var kInvalidArgumentError = Symbol.for("undici.error.UND_ERR_INVALID_ARG");
+ var InvalidArgumentError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "InvalidArgumentError";
+ this.message = message || "Invalid Argument Error";
+ this.code = "UND_ERR_INVALID_ARG";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kInvalidArgumentError] === true;
+ }
+ get [kInvalidArgumentError]() {
+ return true;
+ }
+ };
+ var kInvalidReturnValueError = Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE");
+ var InvalidReturnValueError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "InvalidReturnValueError";
+ this.message = message || "Invalid Return Value Error";
+ this.code = "UND_ERR_INVALID_RETURN_VALUE";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kInvalidReturnValueError] === true;
+ }
+ get [kInvalidReturnValueError]() {
+ return true;
+ }
+ };
+ var kAbortError = Symbol.for("undici.error.UND_ERR_ABORT");
+ var AbortError2 = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "AbortError";
+ this.message = message || "The operation was aborted";
+ this.code = "UND_ERR_ABORT";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kAbortError] === true;
+ }
+ get [kAbortError]() {
+ return true;
+ }
+ };
+ var kRequestAbortedError = Symbol.for("undici.error.UND_ERR_ABORTED");
+ var RequestAbortedError = class extends AbortError2 {
+ constructor(message) {
+ super(message);
+ this.name = "AbortError";
+ this.message = message || "Request aborted";
+ this.code = "UND_ERR_ABORTED";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kRequestAbortedError] === true;
+ }
+ get [kRequestAbortedError]() {
+ return true;
+ }
+ };
+ var kInformationalError = Symbol.for("undici.error.UND_ERR_INFO");
+ var InformationalError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "InformationalError";
+ this.message = message || "Request information";
+ this.code = "UND_ERR_INFO";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kInformationalError] === true;
+ }
+ get [kInformationalError]() {
+ return true;
+ }
+ };
+ var kRequestContentLengthMismatchError = Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH");
+ var RequestContentLengthMismatchError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "RequestContentLengthMismatchError";
+ this.message = message || "Request body length does not match content-length header";
+ this.code = "UND_ERR_REQ_CONTENT_LENGTH_MISMATCH";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kRequestContentLengthMismatchError] === true;
+ }
+ get [kRequestContentLengthMismatchError]() {
+ return true;
+ }
+ };
+ var kResponseContentLengthMismatchError = Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH");
+ var ResponseContentLengthMismatchError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "ResponseContentLengthMismatchError";
+ this.message = message || "Response body length does not match content-length header";
+ this.code = "UND_ERR_RES_CONTENT_LENGTH_MISMATCH";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kResponseContentLengthMismatchError] === true;
+ }
+ get [kResponseContentLengthMismatchError]() {
+ return true;
+ }
+ };
+ var kClientDestroyedError = Symbol.for("undici.error.UND_ERR_DESTROYED");
+ var ClientDestroyedError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "ClientDestroyedError";
+ this.message = message || "The client is destroyed";
+ this.code = "UND_ERR_DESTROYED";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kClientDestroyedError] === true;
+ }
+ get [kClientDestroyedError]() {
+ return true;
+ }
+ };
+ var kClientClosedError = Symbol.for("undici.error.UND_ERR_CLOSED");
+ var ClientClosedError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "ClientClosedError";
+ this.message = message || "The client is closed";
+ this.code = "UND_ERR_CLOSED";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kClientClosedError] === true;
+ }
+ get [kClientClosedError]() {
+ return true;
+ }
+ };
+ var kSocketError = Symbol.for("undici.error.UND_ERR_SOCKET");
+ var SocketError = class extends UndiciError {
+ constructor(message, socket) {
+ super(message);
+ this.name = "SocketError";
+ this.message = message || "Socket error";
+ this.code = "UND_ERR_SOCKET";
+ this.socket = socket;
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kSocketError] === true;
+ }
+ get [kSocketError]() {
+ return true;
+ }
+ };
+ var kNotSupportedError = Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED");
+ var NotSupportedError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "NotSupportedError";
+ this.message = message || "Not supported error";
+ this.code = "UND_ERR_NOT_SUPPORTED";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kNotSupportedError] === true;
+ }
+ get [kNotSupportedError]() {
+ return true;
+ }
+ };
+ var kBalancedPoolMissingUpstreamError = Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM");
+ var BalancedPoolMissingUpstreamError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "MissingUpstreamError";
+ this.message = message || "No upstream has been added to the BalancedPool";
+ this.code = "UND_ERR_BPL_MISSING_UPSTREAM";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kBalancedPoolMissingUpstreamError] === true;
+ }
+ get [kBalancedPoolMissingUpstreamError]() {
+ return true;
+ }
+ };
+ var kHTTPParserError = Symbol.for("undici.error.UND_ERR_HTTP_PARSER");
+ var HTTPParserError = class extends Error {
+ constructor(message, code, data) {
+ super(message);
+ this.name = "HTTPParserError";
+ this.code = code ? `HPE_${code}` : void 0;
+ this.data = data ? data.toString() : void 0;
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kHTTPParserError] === true;
+ }
+ get [kHTTPParserError]() {
+ return true;
+ }
+ };
+ var kResponseExceededMaxSizeError = Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE");
+ var ResponseExceededMaxSizeError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "ResponseExceededMaxSizeError";
+ this.message = message || "Response content exceeded max size";
+ this.code = "UND_ERR_RES_EXCEEDED_MAX_SIZE";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kResponseExceededMaxSizeError] === true;
+ }
+ get [kResponseExceededMaxSizeError]() {
+ return true;
+ }
+ };
+ var kRequestRetryError = Symbol.for("undici.error.UND_ERR_REQ_RETRY");
+ var RequestRetryError = class extends UndiciError {
+ constructor(message, code, { headers, data }) {
+ super(message);
+ this.name = "RequestRetryError";
+ this.message = message || "Request retry error";
+ this.code = "UND_ERR_REQ_RETRY";
+ this.statusCode = code;
+ this.data = data;
+ this.headers = headers;
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kRequestRetryError] === true;
+ }
+ get [kRequestRetryError]() {
+ return true;
+ }
+ };
+ var kResponseError = Symbol.for("undici.error.UND_ERR_RESPONSE");
+ var ResponseError = class extends UndiciError {
+ constructor(message, code, { headers, body }) {
+ super(message);
+ this.name = "ResponseError";
+ this.message = message || "Response error";
+ this.code = "UND_ERR_RESPONSE";
+ this.statusCode = code;
+ this.body = body;
+ this.headers = headers;
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kResponseError] === true;
+ }
+ get [kResponseError]() {
+ return true;
+ }
+ };
+ var kSecureProxyConnectionError = Symbol.for("undici.error.UND_ERR_PRX_TLS");
+ var SecureProxyConnectionError = class extends UndiciError {
+ constructor(cause, message, options = {}) {
+ super(message, { cause, ...options });
+ this.name = "SecureProxyConnectionError";
+ this.message = message || "Secure Proxy Connection failed";
+ this.code = "UND_ERR_PRX_TLS";
+ this.cause = cause;
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kSecureProxyConnectionError] === true;
+ }
+ get [kSecureProxyConnectionError]() {
+ return true;
+ }
+ };
+ var kMaxOriginsReachedError = Symbol.for("undici.error.UND_ERR_MAX_ORIGINS_REACHED");
+ var MaxOriginsReachedError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "MaxOriginsReachedError";
+ this.message = message || "Maximum allowed origins reached";
+ this.code = "UND_ERR_MAX_ORIGINS_REACHED";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kMaxOriginsReachedError] === true;
+ }
+ get [kMaxOriginsReachedError]() {
+ return true;
+ }
+ };
+ module.exports = {
+ AbortError: AbortError2,
+ HTTPParserError,
+ UndiciError,
+ HeadersTimeoutError,
+ HeadersOverflowError,
+ BodyTimeoutError,
+ RequestContentLengthMismatchError,
+ ConnectTimeoutError,
+ InvalidArgumentError,
+ InvalidReturnValueError,
+ RequestAbortedError,
+ ClientDestroyedError,
+ ClientClosedError,
+ InformationalError,
+ SocketError,
+ NotSupportedError,
+ ResponseContentLengthMismatchError,
+ BalancedPoolMissingUpstreamError,
+ ResponseExceededMaxSizeError,
+ RequestRetryError,
+ ResponseError,
+ SecureProxyConnectionError,
+ MaxOriginsReachedError
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/constants.js
+var require_constants6 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/constants.js"(exports, module) {
+ "use strict";
+ var wellknownHeaderNames = (
+ /** @type {const} */
+ [
+ "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"
+ ]
+ );
+ var headerNameLowerCasedRecord = {};
+ Object.setPrototypeOf(headerNameLowerCasedRecord, null);
+ var wellknownHeaderNameBuffers = {};
+ Object.setPrototypeOf(wellknownHeaderNameBuffers, null);
+ function getHeaderNameAsBuffer(header) {
+ let buffer = wellknownHeaderNameBuffers[header];
+ if (buffer === void 0) {
+ buffer = Buffer.from(header);
+ }
+ return buffer;
+ }
+ for (let i = 0; i < wellknownHeaderNames.length; ++i) {
+ const key = wellknownHeaderNames[i];
+ const lowerCasedKey = key.toLowerCase();
+ headerNameLowerCasedRecord[key] = headerNameLowerCasedRecord[lowerCasedKey] = lowerCasedKey;
+ }
+ module.exports = {
+ wellknownHeaderNames,
+ headerNameLowerCasedRecord,
+ getHeaderNameAsBuffer
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/tree.js
+var require_tree = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/tree.js"(exports, module) {
+ "use strict";
+ var {
+ wellknownHeaderNames,
+ headerNameLowerCasedRecord
+ } = require_constants6();
+ var TstNode = class _TstNode {
+ /** @type {any} */
+ value = null;
+ /** @type {null | TstNode} */
+ left = null;
+ /** @type {null | TstNode} */
+ middle = null;
+ /** @type {null | TstNode} */
+ right = null;
+ /** @type {number} */
+ code;
+ /**
+ * @param {string} key
+ * @param {any} value
+ * @param {number} index
+ */
+ constructor(key, value2, index) {
+ if (index === void 0 || index >= key.length) {
+ throw new TypeError("Unreachable");
+ }
+ const code = this.code = key.charCodeAt(index);
+ if (code > 127) {
+ throw new TypeError("key must be ascii string");
+ }
+ if (key.length !== ++index) {
+ this.middle = new _TstNode(key, value2, index);
+ } else {
+ this.value = value2;
+ }
+ }
+ /**
+ * @param {string} key
+ * @param {any} value
+ * @returns {void}
+ */
+ add(key, value2) {
+ const length = key.length;
+ if (length === 0) {
+ throw new TypeError("Unreachable");
+ }
+ let index = 0;
+ let node2 = this;
+ while (true) {
+ const code = key.charCodeAt(index);
+ if (code > 127) {
+ throw new TypeError("key must be ascii string");
+ }
+ if (node2.code === code) {
+ if (length === ++index) {
+ node2.value = value2;
+ break;
+ } else if (node2.middle !== null) {
+ node2 = node2.middle;
+ } else {
+ node2.middle = new _TstNode(key, value2, index);
+ break;
+ }
+ } else if (node2.code < code) {
+ if (node2.left !== null) {
+ node2 = node2.left;
+ } else {
+ node2.left = new _TstNode(key, value2, index);
+ break;
+ }
+ } else if (node2.right !== null) {
+ node2 = node2.right;
+ } else {
+ node2.right = new _TstNode(key, value2, index);
+ break;
+ }
+ }
+ }
+ /**
+ * @param {Uint8Array} key
+ * @returns {TstNode | null}
+ */
+ search(key) {
+ const keylength = key.length;
+ let index = 0;
+ let node2 = this;
+ while (node2 !== null && index < keylength) {
+ let code = key[index];
+ if (code <= 90 && code >= 65) {
+ code |= 32;
+ }
+ while (node2 !== null) {
+ if (code === node2.code) {
+ if (keylength === ++index) {
+ return node2;
+ }
+ node2 = node2.middle;
+ break;
+ }
+ node2 = node2.code < code ? node2.left : node2.right;
+ }
+ }
+ return null;
+ }
+ };
+ var TernarySearchTree = class {
+ /** @type {TstNode | null} */
+ node = null;
+ /**
+ * @param {string} key
+ * @param {any} value
+ * @returns {void}
+ * */
+ insert(key, value2) {
+ if (this.node === null) {
+ this.node = new TstNode(key, value2, 0);
+ } else {
+ this.node.add(key, value2);
+ }
+ }
+ /**
+ * @param {Uint8Array} key
+ * @returns {any}
+ */
+ lookup(key) {
+ return this.node?.search(key)?.value ?? null;
+ }
+ };
+ var tree = new TernarySearchTree();
+ for (let i = 0; i < wellknownHeaderNames.length; ++i) {
+ const key = headerNameLowerCasedRecord[wellknownHeaderNames[i]];
+ tree.insert(key, key);
+ }
+ module.exports = {
+ TernarySearchTree,
+ tree
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/util.js
+var require_util11 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/util.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var { kDestroyed, kBodyUsed, kListeners, kBody } = require_symbols6();
+ var { IncomingMessage } = __require("node:http");
+ var stream = __require("node:stream");
+ var net = __require("node:net");
+ var { stringify } = __require("node:querystring");
+ var { EventEmitter: EE } = __require("node:events");
+ var timers = require_timers2();
+ var { InvalidArgumentError, ConnectTimeoutError } = require_errors2();
+ var { headerNameLowerCasedRecord } = require_constants6();
+ var { tree } = require_tree();
+ var [nodeMajor, nodeMinor] = process.versions.node.split(".", 2).map((v) => Number(v));
+ var BodyAsyncIterable = class {
+ constructor(body) {
+ this[kBody] = body;
+ this[kBodyUsed] = false;
+ }
+ async *[Symbol.asyncIterator]() {
+ assert2(!this[kBodyUsed], "disturbed");
+ this[kBodyUsed] = true;
+ yield* this[kBody];
+ }
+ };
+ function noop3() {
+ }
+ function wrapRequestBody(body) {
+ if (isStream(body)) {
+ if (bodyLength(body) === 0) {
+ body.on("data", function() {
+ assert2(false);
+ });
+ }
+ if (typeof body.readableDidRead !== "boolean") {
+ body[kBodyUsed] = false;
+ EE.prototype.on.call(body, "data", function() {
+ this[kBodyUsed] = true;
+ });
+ }
+ return body;
+ } else if (body && typeof body.pipeTo === "function") {
+ return new BodyAsyncIterable(body);
+ } else if (body && typeof body !== "string" && !ArrayBuffer.isView(body) && isIterable(body)) {
+ return new BodyAsyncIterable(body);
+ } else {
+ return body;
+ }
+ }
+ function isStream(obj) {
+ return obj && typeof obj === "object" && typeof obj.pipe === "function" && typeof obj.on === "function";
+ }
+ function isBlobLike(object2) {
+ if (object2 === null) {
+ return false;
+ } else if (object2 instanceof Blob) {
+ return true;
+ } else if (typeof object2 !== "object") {
+ return false;
+ } else {
+ const sTag = object2[Symbol.toStringTag];
+ return (sTag === "Blob" || sTag === "File") && ("stream" in object2 && typeof object2.stream === "function" || "arrayBuffer" in object2 && typeof object2.arrayBuffer === "function");
+ }
+ }
+ function pathHasQueryOrFragment(url2) {
+ return url2.includes("?") || url2.includes("#");
+ }
+ function serializePathWithQuery(url2, queryParams) {
+ if (pathHasQueryOrFragment(url2)) {
+ throw new Error('Query params cannot be passed when url already contains "?" or "#".');
+ }
+ const stringified = stringify(queryParams);
+ if (stringified) {
+ url2 += "?" + stringified;
+ }
+ return url2;
+ }
+ function isValidPort(port) {
+ const value2 = parseInt(port, 10);
+ return value2 === Number(port) && value2 >= 0 && value2 <= 65535;
+ }
+ function isHttpOrHttpsPrefixed(value2) {
+ return value2 != null && value2[0] === "h" && value2[1] === "t" && value2[2] === "t" && value2[3] === "p" && (value2[4] === ":" || value2[4] === "s" && value2[5] === ":");
+ }
+ function parseURL(url2) {
+ if (typeof url2 === "string") {
+ url2 = new URL(url2);
+ if (!isHttpOrHttpsPrefixed(url2.origin || url2.protocol)) {
+ throw new InvalidArgumentError("Invalid URL protocol: the URL must start with `http:` or `https:`.");
+ }
+ return url2;
+ }
+ if (!url2 || typeof url2 !== "object") {
+ throw new InvalidArgumentError("Invalid URL: The URL argument must be a non-null object.");
+ }
+ if (!(url2 instanceof URL)) {
+ if (url2.port != null && url2.port !== "" && isValidPort(url2.port) === false) {
+ throw new InvalidArgumentError("Invalid URL: port must be a valid integer or a string representation of an integer.");
+ }
+ if (url2.path != null && typeof url2.path !== "string") {
+ throw new InvalidArgumentError("Invalid URL path: the path must be a string or null/undefined.");
+ }
+ if (url2.pathname != null && typeof url2.pathname !== "string") {
+ throw new InvalidArgumentError("Invalid URL pathname: the pathname must be a string or null/undefined.");
+ }
+ if (url2.hostname != null && typeof url2.hostname !== "string") {
+ throw new InvalidArgumentError("Invalid URL hostname: the hostname must be a string or null/undefined.");
+ }
+ if (url2.origin != null && typeof url2.origin !== "string") {
+ throw new InvalidArgumentError("Invalid URL origin: the origin must be a string or null/undefined.");
+ }
+ if (!isHttpOrHttpsPrefixed(url2.origin || url2.protocol)) {
+ throw new InvalidArgumentError("Invalid URL protocol: the URL must start with `http:` or `https:`.");
+ }
+ const port = url2.port != null ? url2.port : url2.protocol === "https:" ? 443 : 80;
+ let origin = url2.origin != null ? url2.origin : `${url2.protocol || ""}//${url2.hostname || ""}:${port}`;
+ let path3 = url2.path != null ? url2.path : `${url2.pathname || ""}${url2.search || ""}`;
+ if (origin[origin.length - 1] === "/") {
+ origin = origin.slice(0, origin.length - 1);
+ }
+ if (path3 && path3[0] !== "/") {
+ path3 = `/${path3}`;
+ }
+ return new URL(`${origin}${path3}`);
+ }
+ if (!isHttpOrHttpsPrefixed(url2.origin || url2.protocol)) {
+ throw new InvalidArgumentError("Invalid URL protocol: the URL must start with `http:` or `https:`.");
+ }
+ return url2;
+ }
+ function parseOrigin(url2) {
+ url2 = parseURL(url2);
+ if (url2.pathname !== "/" || url2.search || url2.hash) {
+ throw new InvalidArgumentError("invalid url");
+ }
+ return url2;
+ }
+ function getHostname(host) {
+ if (host[0] === "[") {
+ const idx2 = host.indexOf("]");
+ assert2(idx2 !== -1);
+ return host.substring(1, idx2);
+ }
+ const idx = host.indexOf(":");
+ if (idx === -1) return host;
+ return host.substring(0, idx);
+ }
+ function getServerName(host) {
+ if (!host) {
+ return null;
+ }
+ assert2(typeof host === "string");
+ const servername = getHostname(host);
+ if (net.isIP(servername)) {
+ return "";
+ }
+ return servername;
+ }
+ function deepClone2(obj) {
+ return JSON.parse(JSON.stringify(obj));
+ }
+ function isAsyncIterable(obj) {
+ return !!(obj != null && typeof obj[Symbol.asyncIterator] === "function");
+ }
+ function isIterable(obj) {
+ return !!(obj != null && (typeof obj[Symbol.iterator] === "function" || typeof obj[Symbol.asyncIterator] === "function"));
+ }
+ function bodyLength(body) {
+ if (body == null) {
+ return 0;
+ } else if (isStream(body)) {
+ const state = body._readableState;
+ return state && state.objectMode === false && state.ended === true && Number.isFinite(state.length) ? state.length : null;
+ } else if (isBlobLike(body)) {
+ return body.size != null ? body.size : null;
+ } else if (isBuffer(body)) {
+ return body.byteLength;
+ }
+ return null;
+ }
+ function isDestroyed(body) {
+ return body && !!(body.destroyed || body[kDestroyed] || stream.isDestroyed?.(body));
+ }
+ function destroy(stream2, err) {
+ if (stream2 == null || !isStream(stream2) || isDestroyed(stream2)) {
+ return;
+ }
+ if (typeof stream2.destroy === "function") {
+ if (Object.getPrototypeOf(stream2).constructor === IncomingMessage) {
+ stream2.socket = null;
+ }
+ stream2.destroy(err);
+ } else if (err) {
+ queueMicrotask(() => {
+ stream2.emit("error", err);
+ });
+ }
+ if (stream2.destroyed !== true) {
+ stream2[kDestroyed] = true;
+ }
+ }
+ var KEEPALIVE_TIMEOUT_EXPR = /timeout=(\d+)/;
+ function parseKeepAliveTimeout(val) {
+ const m = val.match(KEEPALIVE_TIMEOUT_EXPR);
+ return m ? parseInt(m[1], 10) * 1e3 : null;
+ }
+ function headerNameToString(value2) {
+ return typeof value2 === "string" ? headerNameLowerCasedRecord[value2] ?? value2.toLowerCase() : tree.lookup(value2) ?? value2.toString("latin1").toLowerCase();
+ }
+ function bufferToLowerCasedHeaderName(value2) {
+ return tree.lookup(value2) ?? value2.toString("latin1").toLowerCase();
+ }
+ function parseHeaders(headers, obj) {
+ if (obj === void 0) obj = {};
+ for (let i = 0; i < headers.length; i += 2) {
+ const key = headerNameToString(headers[i]);
+ let val = obj[key];
+ if (val) {
+ if (typeof val === "string") {
+ val = [val];
+ obj[key] = val;
+ }
+ val.push(headers[i + 1].toString("utf8"));
+ } else {
+ const headersValue = headers[i + 1];
+ if (typeof headersValue === "string") {
+ obj[key] = headersValue;
+ } else {
+ obj[key] = Array.isArray(headersValue) ? headersValue.map((x) => x.toString("utf8")) : headersValue.toString("utf8");
+ }
+ }
+ }
+ if ("content-length" in obj && "content-disposition" in obj) {
+ obj["content-disposition"] = Buffer.from(obj["content-disposition"]).toString("latin1");
+ }
+ return obj;
+ }
+ function parseRawHeaders(headers) {
+ const headersLength = headers.length;
+ const ret = new Array(headersLength);
+ let hasContentLength = false;
+ let contentDispositionIdx = -1;
+ let key;
+ let val;
+ let kLen = 0;
+ for (let n = 0; n < headersLength; n += 2) {
+ key = headers[n];
+ val = headers[n + 1];
+ typeof key !== "string" && (key = key.toString());
+ typeof val !== "string" && (val = val.toString("utf8"));
+ kLen = key.length;
+ if (kLen === 14 && key[7] === "-" && (key === "content-length" || key.toLowerCase() === "content-length")) {
+ hasContentLength = true;
+ } else if (kLen === 19 && key[7] === "-" && (key === "content-disposition" || key.toLowerCase() === "content-disposition")) {
+ contentDispositionIdx = n + 1;
+ }
+ ret[n] = key;
+ ret[n + 1] = val;
+ }
+ if (hasContentLength && contentDispositionIdx !== -1) {
+ ret[contentDispositionIdx] = Buffer.from(ret[contentDispositionIdx]).toString("latin1");
+ }
+ return ret;
+ }
+ function encodeRawHeaders(headers) {
+ if (!Array.isArray(headers)) {
+ throw new TypeError("expected headers to be an array");
+ }
+ return headers.map((x) => Buffer.from(x));
+ }
+ function isBuffer(buffer) {
+ return buffer instanceof Uint8Array || Buffer.isBuffer(buffer);
+ }
+ function assertRequestHandler(handler2, method, upgrade) {
+ if (!handler2 || typeof handler2 !== "object") {
+ throw new InvalidArgumentError("handler must be an object");
+ }
+ if (typeof handler2.onRequestStart === "function") {
+ return;
+ }
+ if (typeof handler2.onConnect !== "function") {
+ throw new InvalidArgumentError("invalid onConnect method");
+ }
+ if (typeof handler2.onError !== "function") {
+ throw new InvalidArgumentError("invalid onError method");
+ }
+ if (typeof handler2.onBodySent !== "function" && handler2.onBodySent !== void 0) {
+ throw new InvalidArgumentError("invalid onBodySent method");
+ }
+ if (upgrade || method === "CONNECT") {
+ if (typeof handler2.onUpgrade !== "function") {
+ throw new InvalidArgumentError("invalid onUpgrade method");
+ }
+ } else {
+ if (typeof handler2.onHeaders !== "function") {
+ throw new InvalidArgumentError("invalid onHeaders method");
+ }
+ if (typeof handler2.onData !== "function") {
+ throw new InvalidArgumentError("invalid onData method");
+ }
+ if (typeof handler2.onComplete !== "function") {
+ throw new InvalidArgumentError("invalid onComplete method");
+ }
+ }
+ }
+ function isDisturbed(body) {
+ return !!(body && (stream.isDisturbed(body) || body[kBodyUsed]));
+ }
+ function getSocketInfo(socket) {
+ return {
+ localAddress: socket.localAddress,
+ localPort: socket.localPort,
+ remoteAddress: socket.remoteAddress,
+ remotePort: socket.remotePort,
+ remoteFamily: socket.remoteFamily,
+ timeout: socket.timeout,
+ bytesWritten: socket.bytesWritten,
+ bytesRead: socket.bytesRead
+ };
+ }
+ function ReadableStreamFrom(iterable) {
+ let iterator2;
+ return new ReadableStream(
+ {
+ start() {
+ iterator2 = iterable[Symbol.asyncIterator]();
+ },
+ pull(controller) {
+ return iterator2.next().then(({ done, value: value2 }) => {
+ if (done) {
+ queueMicrotask(() => {
+ controller.close();
+ controller.byobRequest?.respond(0);
+ });
+ } else {
+ const buf = Buffer.isBuffer(value2) ? value2 : Buffer.from(value2);
+ if (buf.byteLength) {
+ controller.enqueue(new Uint8Array(buf));
+ } else {
+ return this.pull(controller);
+ }
+ }
+ });
+ },
+ cancel() {
+ return iterator2.return();
+ },
+ type: "bytes"
+ }
+ );
+ }
+ function isFormDataLike(object2) {
+ return object2 && typeof object2 === "object" && typeof object2.append === "function" && typeof object2.delete === "function" && typeof object2.get === "function" && typeof object2.getAll === "function" && typeof object2.has === "function" && typeof object2.set === "function" && object2[Symbol.toStringTag] === "FormData";
+ }
+ function addAbortListener(signal, listener) {
+ if ("addEventListener" in signal) {
+ signal.addEventListener("abort", listener, { once: true });
+ return () => signal.removeEventListener("abort", listener);
+ }
+ signal.once("abort", listener);
+ return () => signal.removeListener("abort", listener);
+ }
+ function isTokenCharCode(c) {
+ switch (c) {
+ 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 false;
+ default:
+ return c >= 33 && c <= 126;
+ }
+ }
+ function isValidHTTPToken(characters) {
+ if (characters.length === 0) {
+ return false;
+ }
+ for (let i = 0; i < characters.length; ++i) {
+ if (!isTokenCharCode(characters.charCodeAt(i))) {
+ return false;
+ }
+ }
+ return true;
+ }
+ var headerCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
+ function isValidHeaderValue(characters) {
+ return !headerCharRegex.test(characters);
+ }
+ var rangeHeaderRegex = /^bytes (\d+)-(\d+)\/(\d+)?$/;
+ function parseRangeHeader(range2) {
+ if (range2 == null || range2 === "") return { start: 0, end: null, size: null };
+ const m = range2 ? range2.match(rangeHeaderRegex) : null;
+ return m ? {
+ start: parseInt(m[1]),
+ end: m[2] ? parseInt(m[2]) : null,
+ size: m[3] ? parseInt(m[3]) : null
+ } : null;
+ }
+ function addListener(obj, name, listener) {
+ const listeners = obj[kListeners] ??= [];
+ listeners.push([name, listener]);
+ obj.on(name, listener);
+ return obj;
+ }
+ function removeAllListeners(obj) {
+ if (obj[kListeners] != null) {
+ for (const [name, listener] of obj[kListeners]) {
+ obj.removeListener(name, listener);
+ }
+ obj[kListeners] = null;
+ }
+ return obj;
+ }
+ function errorRequest(client, request2, err) {
+ try {
+ request2.onError(err);
+ assert2(request2.aborted);
+ } catch (err2) {
+ client.emit("error", err2);
+ }
+ }
+ var setupConnectTimeout = process.platform === "win32" ? (socketWeakRef, opts) => {
+ if (!opts.timeout) {
+ return noop3;
+ }
+ let s1 = null;
+ let s2 = null;
+ const fastTimer = timers.setFastTimeout(() => {
+ s1 = setImmediate(() => {
+ s2 = setImmediate(() => onConnectTimeout(socketWeakRef.deref(), opts));
+ });
+ }, opts.timeout);
+ return () => {
+ timers.clearFastTimeout(fastTimer);
+ clearImmediate(s1);
+ clearImmediate(s2);
+ };
+ } : (socketWeakRef, opts) => {
+ if (!opts.timeout) {
+ return noop3;
+ }
+ let s1 = null;
+ const fastTimer = timers.setFastTimeout(() => {
+ s1 = setImmediate(() => {
+ onConnectTimeout(socketWeakRef.deref(), opts);
+ });
+ }, opts.timeout);
+ return () => {
+ timers.clearFastTimeout(fastTimer);
+ clearImmediate(s1);
+ };
+ };
+ function onConnectTimeout(socket, opts) {
+ if (socket == null) {
+ return;
+ }
+ let message = "Connect Timeout Error";
+ if (Array.isArray(socket.autoSelectFamilyAttemptedAddresses)) {
+ message += ` (attempted addresses: ${socket.autoSelectFamilyAttemptedAddresses.join(", ")},`;
+ } else {
+ message += ` (attempted address: ${opts.hostname}:${opts.port},`;
+ }
+ message += ` timeout: ${opts.timeout}ms)`;
+ destroy(socket, new ConnectTimeoutError(message));
+ }
+ function getProtocolFromUrlString(urlString) {
+ if (urlString[0] === "h" && urlString[1] === "t" && urlString[2] === "t" && urlString[3] === "p") {
+ switch (urlString[4]) {
+ case ":":
+ return "http:";
+ case "s":
+ if (urlString[5] === ":") {
+ return "https:";
+ }
+ }
+ }
+ return urlString.slice(0, urlString.indexOf(":") + 1);
+ }
+ var kEnumerableProperty = /* @__PURE__ */ Object.create(null);
+ kEnumerableProperty.enumerable = true;
+ var normalizedMethodRecordsBase = {
+ delete: "DELETE",
+ DELETE: "DELETE",
+ get: "GET",
+ GET: "GET",
+ head: "HEAD",
+ HEAD: "HEAD",
+ options: "OPTIONS",
+ OPTIONS: "OPTIONS",
+ post: "POST",
+ POST: "POST",
+ put: "PUT",
+ PUT: "PUT"
+ };
+ var normalizedMethodRecords = {
+ ...normalizedMethodRecordsBase,
+ patch: "patch",
+ PATCH: "PATCH"
+ };
+ Object.setPrototypeOf(normalizedMethodRecordsBase, null);
+ Object.setPrototypeOf(normalizedMethodRecords, null);
+ module.exports = {
+ kEnumerableProperty,
+ isDisturbed,
+ isBlobLike,
+ parseOrigin,
+ parseURL,
+ getServerName,
+ isStream,
+ isIterable,
+ isAsyncIterable,
+ isDestroyed,
+ headerNameToString,
+ bufferToLowerCasedHeaderName,
+ addListener,
+ removeAllListeners,
+ errorRequest,
+ parseRawHeaders,
+ encodeRawHeaders,
+ parseHeaders,
+ parseKeepAliveTimeout,
+ destroy,
+ bodyLength,
+ deepClone: deepClone2,
+ ReadableStreamFrom,
+ isBuffer,
+ assertRequestHandler,
+ getSocketInfo,
+ isFormDataLike,
+ pathHasQueryOrFragment,
+ serializePathWithQuery,
+ addAbortListener,
+ isValidHTTPToken,
+ isValidHeaderValue,
+ isTokenCharCode,
+ parseRangeHeader,
+ normalizedMethodRecordsBase,
+ normalizedMethodRecords,
+ isValidPort,
+ isHttpOrHttpsPrefixed,
+ nodeMajor,
+ nodeMinor,
+ safeHTTPMethods: Object.freeze(["GET", "HEAD", "OPTIONS", "TRACE"]),
+ wrapRequestBody,
+ setupConnectTimeout,
+ getProtocolFromUrlString
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/util/stats.js
+var require_stats = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/util/stats.js"(exports, module) {
+ "use strict";
+ var {
+ kConnected,
+ kPending,
+ kRunning,
+ kSize,
+ kFree,
+ kQueued
+ } = require_symbols6();
+ var ClientStats = class {
+ constructor(client) {
+ this.connected = client[kConnected];
+ this.pending = client[kPending];
+ this.running = client[kRunning];
+ this.size = client[kSize];
+ }
+ };
+ var PoolStats = class {
+ constructor(pool) {
+ this.connected = pool[kConnected];
+ this.free = pool[kFree];
+ this.pending = pool[kPending];
+ this.queued = pool[kQueued];
+ this.running = pool[kRunning];
+ this.size = pool[kSize];
+ }
+ };
+ module.exports = { ClientStats, PoolStats };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/diagnostics.js
+var require_diagnostics = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/diagnostics.js"(exports, module) {
+ "use strict";
+ var diagnosticsChannel = __require("node:diagnostics_channel");
+ var util3 = __require("node:util");
+ var undiciDebugLog = util3.debuglog("undici");
+ var fetchDebuglog = util3.debuglog("fetch");
+ var websocketDebuglog = util3.debuglog("websocket");
+ var channels = {
+ // Client
+ beforeConnect: diagnosticsChannel.channel("undici:client:beforeConnect"),
+ connected: diagnosticsChannel.channel("undici:client:connected"),
+ connectError: diagnosticsChannel.channel("undici:client:connectError"),
+ sendHeaders: diagnosticsChannel.channel("undici:client:sendHeaders"),
+ // Request
+ create: diagnosticsChannel.channel("undici:request:create"),
+ bodySent: diagnosticsChannel.channel("undici:request:bodySent"),
+ bodyChunkSent: diagnosticsChannel.channel("undici:request:bodyChunkSent"),
+ bodyChunkReceived: diagnosticsChannel.channel("undici:request:bodyChunkReceived"),
+ headers: diagnosticsChannel.channel("undici:request:headers"),
+ trailers: diagnosticsChannel.channel("undici:request:trailers"),
+ error: diagnosticsChannel.channel("undici:request:error"),
+ // WebSocket
+ open: diagnosticsChannel.channel("undici:websocket:open"),
+ close: diagnosticsChannel.channel("undici:websocket:close"),
+ socketError: diagnosticsChannel.channel("undici:websocket:socket_error"),
+ ping: diagnosticsChannel.channel("undici:websocket:ping"),
+ pong: diagnosticsChannel.channel("undici:websocket:pong")
+ };
+ var isTrackingClientEvents = false;
+ function trackClientEvents(debugLog = undiciDebugLog) {
+ if (isTrackingClientEvents) {
+ return;
+ }
+ isTrackingClientEvents = true;
+ diagnosticsChannel.subscribe(
+ "undici:client:beforeConnect",
+ (evt) => {
+ const {
+ connectParams: { version: version2, protocol, port, host }
+ } = evt;
+ debugLog(
+ "connecting to %s%s using %s%s",
+ host,
+ port ? `:${port}` : "",
+ protocol,
+ version2
+ );
+ }
+ );
+ diagnosticsChannel.subscribe(
+ "undici:client:connected",
+ (evt) => {
+ const {
+ connectParams: { version: version2, protocol, port, host }
+ } = evt;
+ debugLog(
+ "connected to %s%s using %s%s",
+ host,
+ port ? `:${port}` : "",
+ protocol,
+ version2
+ );
+ }
+ );
+ diagnosticsChannel.subscribe(
+ "undici:client:connectError",
+ (evt) => {
+ const {
+ connectParams: { version: version2, protocol, port, host },
+ error: error41
+ } = evt;
+ debugLog(
+ "connection to %s%s using %s%s errored - %s",
+ host,
+ port ? `:${port}` : "",
+ protocol,
+ version2,
+ error41.message
+ );
+ }
+ );
+ diagnosticsChannel.subscribe(
+ "undici:client:sendHeaders",
+ (evt) => {
+ const {
+ request: { method, path: path3, origin }
+ } = evt;
+ debugLog("sending request to %s %s%s", method, origin, path3);
+ }
+ );
+ }
+ var isTrackingRequestEvents = false;
+ function trackRequestEvents(debugLog = undiciDebugLog) {
+ if (isTrackingRequestEvents) {
+ return;
+ }
+ isTrackingRequestEvents = true;
+ diagnosticsChannel.subscribe(
+ "undici:request:headers",
+ (evt) => {
+ const {
+ request: { method, path: path3, origin },
+ response: { statusCode }
+ } = evt;
+ debugLog(
+ "received response to %s %s%s - HTTP %d",
+ method,
+ origin,
+ path3,
+ statusCode
+ );
+ }
+ );
+ diagnosticsChannel.subscribe(
+ "undici:request:trailers",
+ (evt) => {
+ const {
+ request: { method, path: path3, origin }
+ } = evt;
+ debugLog("trailers received from %s %s%s", method, origin, path3);
+ }
+ );
+ diagnosticsChannel.subscribe(
+ "undici:request:error",
+ (evt) => {
+ const {
+ request: { method, path: path3, origin },
+ error: error41
+ } = evt;
+ debugLog(
+ "request to %s %s%s errored - %s",
+ method,
+ origin,
+ path3,
+ error41.message
+ );
+ }
+ );
+ }
+ var isTrackingWebSocketEvents = false;
+ function trackWebSocketEvents(debugLog = websocketDebuglog) {
+ if (isTrackingWebSocketEvents) {
+ return;
+ }
+ isTrackingWebSocketEvents = true;
+ diagnosticsChannel.subscribe(
+ "undici:websocket:open",
+ (evt) => {
+ const {
+ address: { address, port }
+ } = evt;
+ debugLog("connection opened %s%s", address, port ? `:${port}` : "");
+ }
+ );
+ diagnosticsChannel.subscribe(
+ "undici:websocket:close",
+ (evt) => {
+ const { websocket, code, reason } = evt;
+ debugLog(
+ "closed connection to %s - %s %s",
+ websocket.url,
+ code,
+ reason
+ );
+ }
+ );
+ diagnosticsChannel.subscribe(
+ "undici:websocket:socket_error",
+ (err) => {
+ debugLog("connection errored - %s", err.message);
+ }
+ );
+ diagnosticsChannel.subscribe(
+ "undici:websocket:ping",
+ (evt) => {
+ debugLog("ping received");
+ }
+ );
+ diagnosticsChannel.subscribe(
+ "undici:websocket:pong",
+ (evt) => {
+ debugLog("pong received");
+ }
+ );
+ }
+ if (undiciDebugLog.enabled || fetchDebuglog.enabled) {
+ trackClientEvents(fetchDebuglog.enabled ? fetchDebuglog : undiciDebugLog);
+ trackRequestEvents(fetchDebuglog.enabled ? fetchDebuglog : undiciDebugLog);
+ }
+ if (websocketDebuglog.enabled) {
+ trackClientEvents(undiciDebugLog.enabled ? undiciDebugLog : websocketDebuglog);
+ trackWebSocketEvents(websocketDebuglog);
+ }
+ module.exports = {
+ channels
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/request.js
+var require_request3 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/request.js"(exports, module) {
+ "use strict";
+ var {
+ InvalidArgumentError,
+ NotSupportedError
+ } = require_errors2();
+ var assert2 = __require("node:assert");
+ var {
+ isValidHTTPToken,
+ isValidHeaderValue,
+ isStream,
+ destroy,
+ isBuffer,
+ isFormDataLike,
+ isIterable,
+ isBlobLike,
+ serializePathWithQuery,
+ assertRequestHandler,
+ getServerName,
+ normalizedMethodRecords,
+ getProtocolFromUrlString
+ } = require_util11();
+ var { channels } = require_diagnostics();
+ var { headerNameLowerCasedRecord } = require_constants6();
+ var invalidPathRegex = /[^\u0021-\u00ff]/;
+ var kHandler = Symbol("handler");
+ var Request2 = class {
+ constructor(origin, {
+ path: path3,
+ method,
+ body,
+ headers,
+ query: query2,
+ idempotent,
+ blocking,
+ upgrade,
+ headersTimeout,
+ bodyTimeout,
+ reset,
+ expectContinue,
+ servername,
+ throwOnError,
+ maxRedirections
+ }, handler2) {
+ if (typeof path3 !== "string") {
+ throw new InvalidArgumentError("path must be a string");
+ } else if (path3[0] !== "/" && !(path3.startsWith("http://") || path3.startsWith("https://")) && method !== "CONNECT") {
+ throw new InvalidArgumentError("path must be an absolute URL or start with a slash");
+ } else if (invalidPathRegex.test(path3)) {
+ throw new InvalidArgumentError("invalid request path");
+ }
+ if (typeof method !== "string") {
+ throw new InvalidArgumentError("method must be a string");
+ } else if (normalizedMethodRecords[method] === void 0 && !isValidHTTPToken(method)) {
+ throw new InvalidArgumentError("invalid request method");
+ }
+ if (upgrade && typeof upgrade !== "string") {
+ throw new InvalidArgumentError("upgrade must be a string");
+ }
+ if (headersTimeout != null && (!Number.isFinite(headersTimeout) || headersTimeout < 0)) {
+ throw new InvalidArgumentError("invalid headersTimeout");
+ }
+ if (bodyTimeout != null && (!Number.isFinite(bodyTimeout) || bodyTimeout < 0)) {
+ throw new InvalidArgumentError("invalid bodyTimeout");
+ }
+ if (reset != null && typeof reset !== "boolean") {
+ throw new InvalidArgumentError("invalid reset");
+ }
+ if (expectContinue != null && typeof expectContinue !== "boolean") {
+ throw new InvalidArgumentError("invalid expectContinue");
+ }
+ if (throwOnError != null) {
+ throw new InvalidArgumentError("invalid throwOnError");
+ }
+ if (maxRedirections != null && maxRedirections !== 0) {
+ throw new InvalidArgumentError("maxRedirections is not supported, use the redirect interceptor");
+ }
+ this.headersTimeout = headersTimeout;
+ this.bodyTimeout = bodyTimeout;
+ this.method = method;
+ this.abort = null;
+ if (body == null) {
+ this.body = null;
+ } else if (isStream(body)) {
+ this.body = body;
+ const rState = this.body._readableState;
+ if (!rState || !rState.autoDestroy) {
+ this.endHandler = function autoDestroy() {
+ destroy(this);
+ };
+ this.body.on("end", this.endHandler);
+ }
+ this.errorHandler = (err) => {
+ if (this.abort) {
+ this.abort(err);
+ } else {
+ this.error = err;
+ }
+ };
+ this.body.on("error", this.errorHandler);
+ } else if (isBuffer(body)) {
+ this.body = body.byteLength ? body : null;
+ } else if (ArrayBuffer.isView(body)) {
+ this.body = body.buffer.byteLength ? Buffer.from(body.buffer, body.byteOffset, body.byteLength) : null;
+ } else if (body instanceof ArrayBuffer) {
+ this.body = body.byteLength ? Buffer.from(body) : null;
+ } else if (typeof body === "string") {
+ this.body = body.length ? Buffer.from(body) : null;
+ } else if (isFormDataLike(body) || isIterable(body) || isBlobLike(body)) {
+ this.body = body;
+ } else {
+ throw new InvalidArgumentError("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");
+ }
+ this.completed = false;
+ this.aborted = false;
+ this.upgrade = upgrade || null;
+ this.path = query2 ? serializePathWithQuery(path3, query2) : path3;
+ this.origin = origin;
+ this.protocol = getProtocolFromUrlString(origin);
+ this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent;
+ this.blocking = blocking ?? this.method !== "HEAD";
+ this.reset = reset == null ? null : reset;
+ this.host = null;
+ this.contentLength = null;
+ this.contentType = null;
+ this.headers = [];
+ this.expectContinue = expectContinue != null ? expectContinue : false;
+ if (Array.isArray(headers)) {
+ if (headers.length % 2 !== 0) {
+ throw new InvalidArgumentError("headers array must be even");
+ }
+ for (let i = 0; i < headers.length; i += 2) {
+ processHeader(this, headers[i], headers[i + 1]);
+ }
+ } else if (headers && typeof headers === "object") {
+ if (headers[Symbol.iterator]) {
+ for (const header of headers) {
+ if (!Array.isArray(header) || header.length !== 2) {
+ throw new InvalidArgumentError("headers must be in key-value pair format");
+ }
+ processHeader(this, header[0], header[1]);
+ }
+ } else {
+ const keys = Object.keys(headers);
+ for (let i = 0; i < keys.length; ++i) {
+ processHeader(this, keys[i], headers[keys[i]]);
+ }
+ }
+ } else if (headers != null) {
+ throw new InvalidArgumentError("headers must be an object or an array");
+ }
+ assertRequestHandler(handler2, method, upgrade);
+ this.servername = servername || getServerName(this.host) || null;
+ this[kHandler] = handler2;
+ if (channels.create.hasSubscribers) {
+ channels.create.publish({ request: this });
+ }
+ }
+ onBodySent(chunk) {
+ if (channels.bodyChunkSent.hasSubscribers) {
+ channels.bodyChunkSent.publish({ request: this, chunk });
+ }
+ if (this[kHandler].onBodySent) {
+ try {
+ return this[kHandler].onBodySent(chunk);
+ } catch (err) {
+ this.abort(err);
+ }
+ }
+ }
+ onRequestSent() {
+ if (channels.bodySent.hasSubscribers) {
+ channels.bodySent.publish({ request: this });
+ }
+ if (this[kHandler].onRequestSent) {
+ try {
+ return this[kHandler].onRequestSent();
+ } catch (err) {
+ this.abort(err);
+ }
+ }
+ }
+ onConnect(abort) {
+ assert2(!this.aborted);
+ assert2(!this.completed);
+ if (this.error) {
+ abort(this.error);
+ } else {
+ this.abort = abort;
+ return this[kHandler].onConnect(abort);
+ }
+ }
+ onResponseStarted() {
+ return this[kHandler].onResponseStarted?.();
+ }
+ onHeaders(statusCode, headers, resume, statusText) {
+ assert2(!this.aborted);
+ assert2(!this.completed);
+ if (channels.headers.hasSubscribers) {
+ channels.headers.publish({ request: this, response: { statusCode, headers, statusText } });
+ }
+ try {
+ return this[kHandler].onHeaders(statusCode, headers, resume, statusText);
+ } catch (err) {
+ this.abort(err);
+ }
+ }
+ onData(chunk) {
+ assert2(!this.aborted);
+ assert2(!this.completed);
+ if (channels.bodyChunkReceived.hasSubscribers) {
+ channels.bodyChunkReceived.publish({ request: this, chunk });
+ }
+ try {
+ return this[kHandler].onData(chunk);
+ } catch (err) {
+ this.abort(err);
+ return false;
+ }
+ }
+ onUpgrade(statusCode, headers, socket) {
+ assert2(!this.aborted);
+ assert2(!this.completed);
+ return this[kHandler].onUpgrade(statusCode, headers, socket);
+ }
+ onComplete(trailers) {
+ this.onFinally();
+ assert2(!this.aborted);
+ assert2(!this.completed);
+ this.completed = true;
+ if (channels.trailers.hasSubscribers) {
+ channels.trailers.publish({ request: this, trailers });
+ }
+ try {
+ return this[kHandler].onComplete(trailers);
+ } catch (err) {
+ this.onError(err);
+ }
+ }
+ onError(error41) {
+ this.onFinally();
+ if (channels.error.hasSubscribers) {
+ channels.error.publish({ request: this, error: error41 });
+ }
+ if (this.aborted) {
+ return;
+ }
+ this.aborted = true;
+ return this[kHandler].onError(error41);
+ }
+ onFinally() {
+ if (this.errorHandler) {
+ this.body.off("error", this.errorHandler);
+ this.errorHandler = null;
+ }
+ if (this.endHandler) {
+ this.body.off("end", this.endHandler);
+ this.endHandler = null;
+ }
+ }
+ addHeader(key, value2) {
+ processHeader(this, key, value2);
+ return this;
+ }
+ };
+ function processHeader(request2, key, val) {
+ if (val && (typeof val === "object" && !Array.isArray(val))) {
+ throw new InvalidArgumentError(`invalid ${key} header`);
+ } else if (val === void 0) {
+ return;
+ }
+ let headerName = headerNameLowerCasedRecord[key];
+ if (headerName === void 0) {
+ headerName = key.toLowerCase();
+ if (headerNameLowerCasedRecord[headerName] === void 0 && !isValidHTTPToken(headerName)) {
+ throw new InvalidArgumentError("invalid header key");
+ }
+ }
+ if (Array.isArray(val)) {
+ const arr = [];
+ for (let i = 0; i < val.length; i++) {
+ if (typeof val[i] === "string") {
+ if (!isValidHeaderValue(val[i])) {
+ throw new InvalidArgumentError(`invalid ${key} header`);
+ }
+ arr.push(val[i]);
+ } else if (val[i] === null) {
+ arr.push("");
+ } else if (typeof val[i] === "object") {
+ throw new InvalidArgumentError(`invalid ${key} header`);
+ } else {
+ arr.push(`${val[i]}`);
+ }
+ }
+ val = arr;
+ } else if (typeof val === "string") {
+ if (!isValidHeaderValue(val)) {
+ throw new InvalidArgumentError(`invalid ${key} header`);
+ }
+ } else if (val === null) {
+ val = "";
+ } else {
+ val = `${val}`;
+ }
+ if (request2.host === null && headerName === "host") {
+ if (typeof val !== "string") {
+ throw new InvalidArgumentError("invalid host header");
+ }
+ request2.host = val;
+ } else if (request2.contentLength === null && headerName === "content-length") {
+ request2.contentLength = parseInt(val, 10);
+ if (!Number.isFinite(request2.contentLength)) {
+ throw new InvalidArgumentError("invalid content-length header");
+ }
+ } else if (request2.contentType === null && headerName === "content-type") {
+ request2.contentType = val;
+ request2.headers.push(key, val);
+ } else if (headerName === "transfer-encoding" || headerName === "keep-alive" || headerName === "upgrade") {
+ throw new InvalidArgumentError(`invalid ${headerName} header`);
+ } else if (headerName === "connection") {
+ const value2 = typeof val === "string" ? val.toLowerCase() : null;
+ if (value2 !== "close" && value2 !== "keep-alive") {
+ throw new InvalidArgumentError("invalid connection header");
+ }
+ if (value2 === "close") {
+ request2.reset = true;
+ }
+ } else if (headerName === "expect") {
+ throw new NotSupportedError("expect header not supported");
+ } else {
+ request2.headers.push(key, val);
+ }
+ }
+ module.exports = Request2;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/wrap-handler.js
+var require_wrap_handler = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/wrap-handler.js"(exports, module) {
+ "use strict";
+ var { InvalidArgumentError } = require_errors2();
+ module.exports = class WrapHandler {
+ #handler;
+ constructor(handler2) {
+ this.#handler = handler2;
+ }
+ static wrap(handler2) {
+ return handler2.onRequestStart ? handler2 : new WrapHandler(handler2);
+ }
+ // Unwrap Interface
+ onConnect(abort, context) {
+ return this.#handler.onConnect?.(abort, context);
+ }
+ onHeaders(statusCode, rawHeaders, resume, statusMessage) {
+ return this.#handler.onHeaders?.(statusCode, rawHeaders, resume, statusMessage);
+ }
+ onUpgrade(statusCode, rawHeaders, socket) {
+ return this.#handler.onUpgrade?.(statusCode, rawHeaders, socket);
+ }
+ onData(data) {
+ return this.#handler.onData?.(data);
+ }
+ onComplete(trailers) {
+ return this.#handler.onComplete?.(trailers);
+ }
+ onError(err) {
+ if (!this.#handler.onError) {
+ throw err;
+ }
+ return this.#handler.onError?.(err);
+ }
+ // Wrap Interface
+ onRequestStart(controller, context) {
+ this.#handler.onConnect?.((reason) => controller.abort(reason), context);
+ }
+ onRequestUpgrade(controller, statusCode, headers, socket) {
+ const rawHeaders = [];
+ for (const [key, val] of Object.entries(headers)) {
+ rawHeaders.push(Buffer.from(key), Array.isArray(val) ? val.map((v) => Buffer.from(v)) : Buffer.from(val));
+ }
+ this.#handler.onUpgrade?.(statusCode, rawHeaders, socket);
+ }
+ onResponseStart(controller, statusCode, headers, statusMessage) {
+ const rawHeaders = [];
+ for (const [key, val] of Object.entries(headers)) {
+ rawHeaders.push(Buffer.from(key), Array.isArray(val) ? val.map((v) => Buffer.from(v)) : Buffer.from(val));
+ }
+ if (this.#handler.onHeaders?.(statusCode, rawHeaders, () => controller.resume(), statusMessage) === false) {
+ controller.pause();
+ }
+ }
+ onResponseData(controller, data) {
+ if (this.#handler.onData?.(data) === false) {
+ controller.pause();
+ }
+ }
+ onResponseEnd(controller, trailers) {
+ const rawTrailers = [];
+ for (const [key, val] of Object.entries(trailers)) {
+ rawTrailers.push(Buffer.from(key), Array.isArray(val) ? val.map((v) => Buffer.from(v)) : Buffer.from(val));
+ }
+ this.#handler.onComplete?.(rawTrailers);
+ }
+ onResponseError(controller, err) {
+ if (!this.#handler.onError) {
+ throw new InvalidArgumentError("invalid onError method");
+ }
+ this.#handler.onError?.(err);
+ }
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/dispatcher.js
+var require_dispatcher2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/dispatcher.js"(exports, module) {
+ "use strict";
+ var EventEmitter2 = __require("node:events");
+ var WrapHandler = require_wrap_handler();
+ var wrapInterceptor = (dispatch) => (opts, handler2) => dispatch(opts, WrapHandler.wrap(handler2));
+ var Dispatcher = class extends EventEmitter2 {
+ dispatch() {
+ throw new Error("not implemented");
+ }
+ close() {
+ throw new Error("not implemented");
+ }
+ destroy() {
+ throw new Error("not implemented");
+ }
+ compose(...args2) {
+ const interceptors = Array.isArray(args2[0]) ? args2[0] : args2;
+ let dispatch = this.dispatch.bind(this);
+ for (const interceptor of interceptors) {
+ if (interceptor == null) {
+ continue;
+ }
+ if (typeof interceptor !== "function") {
+ throw new TypeError(`invalid interceptor, expected function received ${typeof interceptor}`);
+ }
+ dispatch = interceptor(dispatch);
+ dispatch = wrapInterceptor(dispatch);
+ if (dispatch == null || typeof dispatch !== "function" || dispatch.length !== 2) {
+ throw new TypeError("invalid interceptor");
+ }
+ }
+ return new Proxy(this, {
+ get: (target, key) => key === "dispatch" ? dispatch : target[key]
+ });
+ }
+ };
+ module.exports = Dispatcher;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/unwrap-handler.js
+var require_unwrap_handler = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/unwrap-handler.js"(exports, module) {
+ "use strict";
+ var { parseHeaders } = require_util11();
+ var { InvalidArgumentError } = require_errors2();
+ var kResume = Symbol("resume");
+ var UnwrapController = class {
+ #paused = false;
+ #reason = null;
+ #aborted = false;
+ #abort;
+ [kResume] = null;
+ constructor(abort) {
+ this.#abort = abort;
+ }
+ pause() {
+ this.#paused = true;
+ }
+ resume() {
+ if (this.#paused) {
+ this.#paused = false;
+ this[kResume]?.();
+ }
+ }
+ abort(reason) {
+ if (!this.#aborted) {
+ this.#aborted = true;
+ this.#reason = reason;
+ this.#abort(reason);
+ }
+ }
+ get aborted() {
+ return this.#aborted;
+ }
+ get reason() {
+ return this.#reason;
+ }
+ get paused() {
+ return this.#paused;
+ }
+ };
+ module.exports = class UnwrapHandler {
+ #handler;
+ #controller;
+ constructor(handler2) {
+ this.#handler = handler2;
+ }
+ static unwrap(handler2) {
+ return !handler2.onRequestStart ? handler2 : new UnwrapHandler(handler2);
+ }
+ onConnect(abort, context) {
+ this.#controller = new UnwrapController(abort);
+ this.#handler.onRequestStart?.(this.#controller, context);
+ }
+ onUpgrade(statusCode, rawHeaders, socket) {
+ this.#handler.onRequestUpgrade?.(this.#controller, statusCode, parseHeaders(rawHeaders), socket);
+ }
+ onHeaders(statusCode, rawHeaders, resume, statusMessage) {
+ this.#controller[kResume] = resume;
+ this.#handler.onResponseStart?.(this.#controller, statusCode, parseHeaders(rawHeaders), statusMessage);
+ return !this.#controller.paused;
+ }
+ onData(data) {
+ this.#handler.onResponseData?.(this.#controller, data);
+ return !this.#controller.paused;
+ }
+ onComplete(rawTrailers) {
+ this.#handler.onResponseEnd?.(this.#controller, parseHeaders(rawTrailers));
+ }
+ onError(err) {
+ if (!this.#handler.onResponseError) {
+ throw new InvalidArgumentError("invalid onError method");
+ }
+ this.#handler.onResponseError?.(this.#controller, err);
+ }
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/dispatcher-base.js
+var require_dispatcher_base2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/dispatcher-base.js"(exports, module) {
+ "use strict";
+ var Dispatcher = require_dispatcher2();
+ var UnwrapHandler = require_unwrap_handler();
+ var {
+ ClientDestroyedError,
+ ClientClosedError,
+ InvalidArgumentError
+ } = require_errors2();
+ var { kDestroy, kClose, kClosed, kDestroyed, kDispatch } = require_symbols6();
+ var kOnDestroyed = Symbol("onDestroyed");
+ var kOnClosed = Symbol("onClosed");
+ var DispatcherBase = class extends Dispatcher {
+ /** @type {boolean} */
+ [kDestroyed] = false;
+ /** @type {Array|null} */
+ [kOnDestroyed] = null;
+ /** @type {boolean} */
+ [kClosed] = false;
+ /** @type {Array} */
+ [kOnClosed] = [];
+ /** @returns {boolean} */
+ get destroyed() {
+ return this[kDestroyed];
+ }
+ /** @returns {boolean} */
+ get closed() {
+ return this[kClosed];
+ }
+ close(callback) {
+ if (callback === void 0) {
+ return new Promise((resolve, reject) => {
+ this.close((err, data) => {
+ return err ? reject(err) : resolve(data);
+ });
+ });
+ }
+ if (typeof callback !== "function") {
+ throw new InvalidArgumentError("invalid callback");
+ }
+ if (this[kDestroyed]) {
+ queueMicrotask(() => callback(new ClientDestroyedError(), null));
+ return;
+ }
+ if (this[kClosed]) {
+ if (this[kOnClosed]) {
+ this[kOnClosed].push(callback);
+ } else {
+ queueMicrotask(() => callback(null, null));
+ }
+ return;
+ }
+ this[kClosed] = true;
+ this[kOnClosed].push(callback);
+ const onClosed = () => {
+ const callbacks = this[kOnClosed];
+ this[kOnClosed] = null;
+ for (let i = 0; i < callbacks.length; i++) {
+ callbacks[i](null, null);
+ }
+ };
+ this[kClose]().then(() => this.destroy()).then(() => {
+ queueMicrotask(onClosed);
+ });
+ }
+ destroy(err, callback) {
+ if (typeof err === "function") {
+ callback = err;
+ err = null;
+ }
+ if (callback === void 0) {
+ return new Promise((resolve, reject) => {
+ this.destroy(err, (err2, data) => {
+ return err2 ? (
+ /* istanbul ignore next: should never error */
+ reject(err2)
+ ) : resolve(data);
+ });
+ });
+ }
+ if (typeof callback !== "function") {
+ throw new InvalidArgumentError("invalid callback");
+ }
+ if (this[kDestroyed]) {
+ if (this[kOnDestroyed]) {
+ this[kOnDestroyed].push(callback);
+ } else {
+ queueMicrotask(() => callback(null, null));
+ }
+ return;
+ }
+ if (!err) {
+ err = new ClientDestroyedError();
+ }
+ this[kDestroyed] = true;
+ this[kOnDestroyed] = this[kOnDestroyed] || [];
+ this[kOnDestroyed].push(callback);
+ const onDestroyed = () => {
+ const callbacks = this[kOnDestroyed];
+ this[kOnDestroyed] = null;
+ for (let i = 0; i < callbacks.length; i++) {
+ callbacks[i](null, null);
+ }
+ };
+ this[kDestroy](err).then(() => {
+ queueMicrotask(onDestroyed);
+ });
+ }
+ dispatch(opts, handler2) {
+ if (!handler2 || typeof handler2 !== "object") {
+ throw new InvalidArgumentError("handler must be an object");
+ }
+ handler2 = UnwrapHandler.unwrap(handler2);
+ try {
+ if (!opts || typeof opts !== "object") {
+ throw new InvalidArgumentError("opts must be an object.");
+ }
+ if (this[kDestroyed] || this[kOnDestroyed]) {
+ throw new ClientDestroyedError();
+ }
+ if (this[kClosed]) {
+ throw new ClientClosedError();
+ }
+ return this[kDispatch](opts, handler2);
+ } catch (err) {
+ if (typeof handler2.onError !== "function") {
+ throw err;
+ }
+ handler2.onError(err);
+ return false;
+ }
+ }
+ };
+ module.exports = DispatcherBase;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/connect.js
+var require_connect2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/core/connect.js"(exports, module) {
+ "use strict";
+ var net = __require("node:net");
+ var assert2 = __require("node:assert");
+ var util3 = require_util11();
+ var { InvalidArgumentError } = require_errors2();
+ var tls;
+ var SessionCache = class WeakSessionCache {
+ constructor(maxCachedSessions) {
+ this._maxCachedSessions = maxCachedSessions;
+ this._sessionCache = /* @__PURE__ */ new Map();
+ this._sessionRegistry = new FinalizationRegistry((key) => {
+ if (this._sessionCache.size < this._maxCachedSessions) {
+ return;
+ }
+ const ref = this._sessionCache.get(key);
+ if (ref !== void 0 && ref.deref() === void 0) {
+ this._sessionCache.delete(key);
+ }
+ });
+ }
+ get(sessionKey) {
+ const ref = this._sessionCache.get(sessionKey);
+ return ref ? ref.deref() : null;
+ }
+ set(sessionKey, session) {
+ if (this._maxCachedSessions === 0) {
+ return;
+ }
+ this._sessionCache.set(sessionKey, new WeakRef(session));
+ this._sessionRegistry.register(session, sessionKey);
+ }
+ };
+ function buildConnector({ allowH2, maxCachedSessions, socketPath, timeout, session: customSession, ...opts }) {
+ if (maxCachedSessions != null && (!Number.isInteger(maxCachedSessions) || maxCachedSessions < 0)) {
+ throw new InvalidArgumentError("maxCachedSessions must be a positive integer or zero");
+ }
+ const options = { path: socketPath, ...opts };
+ const sessionCache = new SessionCache(maxCachedSessions == null ? 100 : maxCachedSessions);
+ timeout = timeout == null ? 1e4 : timeout;
+ allowH2 = allowH2 != null ? allowH2 : false;
+ return function connect({ hostname: hostname2, host, protocol, port, servername, localAddress, httpSocket }, callback) {
+ let socket;
+ if (protocol === "https:") {
+ if (!tls) {
+ tls = __require("node:tls");
+ }
+ servername = servername || options.servername || util3.getServerName(host) || null;
+ const sessionKey = servername || hostname2;
+ assert2(sessionKey);
+ const session = customSession || sessionCache.get(sessionKey) || null;
+ port = port || 443;
+ socket = tls.connect({
+ highWaterMark: 16384,
+ // TLS in node can't have bigger HWM anyway...
+ ...options,
+ servername,
+ session,
+ localAddress,
+ ALPNProtocols: allowH2 ? ["http/1.1", "h2"] : ["http/1.1"],
+ socket: httpSocket,
+ // upgrade socket connection
+ port,
+ host: hostname2
+ });
+ socket.on("session", function(session2) {
+ sessionCache.set(sessionKey, session2);
+ });
+ } else {
+ assert2(!httpSocket, "httpSocket can only be sent on TLS update");
+ port = port || 80;
+ socket = net.connect({
+ highWaterMark: 64 * 1024,
+ // Same as nodejs fs streams.
+ ...options,
+ localAddress,
+ port,
+ host: hostname2
+ });
+ }
+ if (options.keepAlive == null || options.keepAlive) {
+ const keepAliveInitialDelay = options.keepAliveInitialDelay === void 0 ? 6e4 : options.keepAliveInitialDelay;
+ socket.setKeepAlive(true, keepAliveInitialDelay);
+ }
+ const clearConnectTimeout = util3.setupConnectTimeout(new WeakRef(socket), { timeout, hostname: hostname2, port });
+ socket.setNoDelay(true).once(protocol === "https:" ? "secureConnect" : "connect", function() {
+ queueMicrotask(clearConnectTimeout);
+ if (callback) {
+ const cb = callback;
+ callback = null;
+ cb(null, this);
+ }
+ }).on("error", function(err) {
+ queueMicrotask(clearConnectTimeout);
+ if (callback) {
+ const cb = callback;
+ callback = null;
+ cb(err);
+ }
+ });
+ return socket;
+ };
+ }
+ module.exports = buildConnector;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/llhttp/utils.js
+var require_utils4 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/llhttp/utils.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.enumToMap = enumToMap;
+ function enumToMap(obj, filter = [], exceptions = []) {
+ const emptyFilter = (filter?.length ?? 0) === 0;
+ const emptyExceptions = (exceptions?.length ?? 0) === 0;
+ return Object.fromEntries(Object.entries(obj).filter(([, value2]) => {
+ return typeof value2 === "number" && (emptyFilter || filter.includes(value2)) && (emptyExceptions || !exceptions.includes(value2));
+ }));
+ }
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/llhttp/constants.js
+var require_constants7 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/llhttp/constants.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.SPECIAL_HEADERS = exports.MINOR = exports.MAJOR = exports.HTAB_SP_VCHAR_OBS_TEXT = exports.QUOTED_STRING = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.HEX = exports.URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.STATUSES_HTTP = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.HEADER_STATE = exports.FINISH = exports.STATUSES = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0;
+ var utils_1 = require_utils4();
+ exports.ERROR = {
+ OK: 0,
+ INTERNAL: 1,
+ STRICT: 2,
+ CR_EXPECTED: 25,
+ LF_EXPECTED: 3,
+ UNEXPECTED_CONTENT_LENGTH: 4,
+ UNEXPECTED_SPACE: 30,
+ CLOSED_CONNECTION: 5,
+ INVALID_METHOD: 6,
+ INVALID_URL: 7,
+ INVALID_CONSTANT: 8,
+ INVALID_VERSION: 9,
+ INVALID_HEADER_TOKEN: 10,
+ INVALID_CONTENT_LENGTH: 11,
+ INVALID_CHUNK_SIZE: 12,
+ INVALID_STATUS: 13,
+ INVALID_EOF_STATE: 14,
+ INVALID_TRANSFER_ENCODING: 15,
+ CB_MESSAGE_BEGIN: 16,
+ CB_HEADERS_COMPLETE: 17,
+ CB_MESSAGE_COMPLETE: 18,
+ CB_CHUNK_HEADER: 19,
+ CB_CHUNK_COMPLETE: 20,
+ PAUSED: 21,
+ PAUSED_UPGRADE: 22,
+ PAUSED_H2_UPGRADE: 23,
+ USER: 24,
+ CB_URL_COMPLETE: 26,
+ CB_STATUS_COMPLETE: 27,
+ CB_METHOD_COMPLETE: 32,
+ CB_VERSION_COMPLETE: 33,
+ CB_HEADER_FIELD_COMPLETE: 28,
+ CB_HEADER_VALUE_COMPLETE: 29,
+ CB_CHUNK_EXTENSION_NAME_COMPLETE: 34,
+ CB_CHUNK_EXTENSION_VALUE_COMPLETE: 35,
+ CB_RESET: 31,
+ CB_PROTOCOL_COMPLETE: 38
+ };
+ exports.TYPE = {
+ BOTH: 0,
+ // default
+ REQUEST: 1,
+ RESPONSE: 2
+ };
+ exports.FLAGS = {
+ CONNECTION_KEEP_ALIVE: 1 << 0,
+ CONNECTION_CLOSE: 1 << 1,
+ CONNECTION_UPGRADE: 1 << 2,
+ CHUNKED: 1 << 3,
+ UPGRADE: 1 << 4,
+ CONTENT_LENGTH: 1 << 5,
+ SKIPBODY: 1 << 6,
+ TRAILING: 1 << 7,
+ // 1 << 8 is unused
+ TRANSFER_ENCODING: 1 << 9
+ };
+ exports.LENIENT_FLAGS = {
+ HEADERS: 1 << 0,
+ CHUNKED_LENGTH: 1 << 1,
+ KEEP_ALIVE: 1 << 2,
+ TRANSFER_ENCODING: 1 << 3,
+ VERSION: 1 << 4,
+ DATA_AFTER_CLOSE: 1 << 5,
+ OPTIONAL_LF_AFTER_CR: 1 << 6,
+ OPTIONAL_CRLF_AFTER_CHUNK: 1 << 7,
+ OPTIONAL_CR_BEFORE_LF: 1 << 8,
+ SPACES_AFTER_CHUNK_SIZE: 1 << 9
+ };
+ exports.METHODS = {
+ "DELETE": 0,
+ "GET": 1,
+ "HEAD": 2,
+ "POST": 3,
+ "PUT": 4,
+ /* pathological */
+ "CONNECT": 5,
+ "OPTIONS": 6,
+ "TRACE": 7,
+ /* WebDAV */
+ "COPY": 8,
+ "LOCK": 9,
+ "MKCOL": 10,
+ "MOVE": 11,
+ "PROPFIND": 12,
+ "PROPPATCH": 13,
+ "SEARCH": 14,
+ "UNLOCK": 15,
+ "BIND": 16,
+ "REBIND": 17,
+ "UNBIND": 18,
+ "ACL": 19,
+ /* subversion */
+ "REPORT": 20,
+ "MKACTIVITY": 21,
+ "CHECKOUT": 22,
+ "MERGE": 23,
+ /* upnp */
+ "M-SEARCH": 24,
+ "NOTIFY": 25,
+ "SUBSCRIBE": 26,
+ "UNSUBSCRIBE": 27,
+ /* RFC-5789 */
+ "PATCH": 28,
+ "PURGE": 29,
+ /* CalDAV */
+ "MKCALENDAR": 30,
+ /* RFC-2068, section 19.6.1.2 */
+ "LINK": 31,
+ "UNLINK": 32,
+ /* icecast */
+ "SOURCE": 33,
+ /* RFC-7540, section 11.6 */
+ "PRI": 34,
+ /* RFC-2326 RTSP */
+ "DESCRIBE": 35,
+ "ANNOUNCE": 36,
+ "SETUP": 37,
+ "PLAY": 38,
+ "PAUSE": 39,
+ "TEARDOWN": 40,
+ "GET_PARAMETER": 41,
+ "SET_PARAMETER": 42,
+ "REDIRECT": 43,
+ "RECORD": 44,
+ /* RAOP */
+ "FLUSH": 45,
+ /* DRAFT https://www.ietf.org/archive/id/draft-ietf-httpbis-safe-method-w-body-02.html */
+ "QUERY": 46
+ };
+ exports.STATUSES = {
+ CONTINUE: 100,
+ SWITCHING_PROTOCOLS: 101,
+ PROCESSING: 102,
+ EARLY_HINTS: 103,
+ RESPONSE_IS_STALE: 110,
+ // Unofficial
+ REVALIDATION_FAILED: 111,
+ // Unofficial
+ DISCONNECTED_OPERATION: 112,
+ // Unofficial
+ HEURISTIC_EXPIRATION: 113,
+ // Unofficial
+ MISCELLANEOUS_WARNING: 199,
+ // Unofficial
+ OK: 200,
+ CREATED: 201,
+ ACCEPTED: 202,
+ NON_AUTHORITATIVE_INFORMATION: 203,
+ NO_CONTENT: 204,
+ RESET_CONTENT: 205,
+ PARTIAL_CONTENT: 206,
+ MULTI_STATUS: 207,
+ ALREADY_REPORTED: 208,
+ TRANSFORMATION_APPLIED: 214,
+ // Unofficial
+ IM_USED: 226,
+ MISCELLANEOUS_PERSISTENT_WARNING: 299,
+ // Unofficial
+ MULTIPLE_CHOICES: 300,
+ MOVED_PERMANENTLY: 301,
+ FOUND: 302,
+ SEE_OTHER: 303,
+ NOT_MODIFIED: 304,
+ USE_PROXY: 305,
+ SWITCH_PROXY: 306,
+ // No longer used
+ TEMPORARY_REDIRECT: 307,
+ PERMANENT_REDIRECT: 308,
+ BAD_REQUEST: 400,
+ UNAUTHORIZED: 401,
+ PAYMENT_REQUIRED: 402,
+ FORBIDDEN: 403,
+ NOT_FOUND: 404,
+ METHOD_NOT_ALLOWED: 405,
+ NOT_ACCEPTABLE: 406,
+ PROXY_AUTHENTICATION_REQUIRED: 407,
+ REQUEST_TIMEOUT: 408,
+ CONFLICT: 409,
+ GONE: 410,
+ LENGTH_REQUIRED: 411,
+ PRECONDITION_FAILED: 412,
+ PAYLOAD_TOO_LARGE: 413,
+ URI_TOO_LONG: 414,
+ UNSUPPORTED_MEDIA_TYPE: 415,
+ RANGE_NOT_SATISFIABLE: 416,
+ EXPECTATION_FAILED: 417,
+ IM_A_TEAPOT: 418,
+ PAGE_EXPIRED: 419,
+ // Unofficial
+ ENHANCE_YOUR_CALM: 420,
+ // Unofficial
+ MISDIRECTED_REQUEST: 421,
+ UNPROCESSABLE_ENTITY: 422,
+ LOCKED: 423,
+ FAILED_DEPENDENCY: 424,
+ TOO_EARLY: 425,
+ UPGRADE_REQUIRED: 426,
+ PRECONDITION_REQUIRED: 428,
+ TOO_MANY_REQUESTS: 429,
+ REQUEST_HEADER_FIELDS_TOO_LARGE_UNOFFICIAL: 430,
+ // Unofficial
+ REQUEST_HEADER_FIELDS_TOO_LARGE: 431,
+ LOGIN_TIMEOUT: 440,
+ // Unofficial
+ NO_RESPONSE: 444,
+ // Unofficial
+ RETRY_WITH: 449,
+ // Unofficial
+ BLOCKED_BY_PARENTAL_CONTROL: 450,
+ // Unofficial
+ UNAVAILABLE_FOR_LEGAL_REASONS: 451,
+ CLIENT_CLOSED_LOAD_BALANCED_REQUEST: 460,
+ // Unofficial
+ INVALID_X_FORWARDED_FOR: 463,
+ // Unofficial
+ REQUEST_HEADER_TOO_LARGE: 494,
+ // Unofficial
+ SSL_CERTIFICATE_ERROR: 495,
+ // Unofficial
+ SSL_CERTIFICATE_REQUIRED: 496,
+ // Unofficial
+ HTTP_REQUEST_SENT_TO_HTTPS_PORT: 497,
+ // Unofficial
+ INVALID_TOKEN: 498,
+ // Unofficial
+ CLIENT_CLOSED_REQUEST: 499,
+ // Unofficial
+ INTERNAL_SERVER_ERROR: 500,
+ NOT_IMPLEMENTED: 501,
+ BAD_GATEWAY: 502,
+ SERVICE_UNAVAILABLE: 503,
+ GATEWAY_TIMEOUT: 504,
+ HTTP_VERSION_NOT_SUPPORTED: 505,
+ VARIANT_ALSO_NEGOTIATES: 506,
+ INSUFFICIENT_STORAGE: 507,
+ LOOP_DETECTED: 508,
+ BANDWIDTH_LIMIT_EXCEEDED: 509,
+ NOT_EXTENDED: 510,
+ NETWORK_AUTHENTICATION_REQUIRED: 511,
+ WEB_SERVER_UNKNOWN_ERROR: 520,
+ // Unofficial
+ WEB_SERVER_IS_DOWN: 521,
+ // Unofficial
+ CONNECTION_TIMEOUT: 522,
+ // Unofficial
+ ORIGIN_IS_UNREACHABLE: 523,
+ // Unofficial
+ TIMEOUT_OCCURED: 524,
+ // Unofficial
+ SSL_HANDSHAKE_FAILED: 525,
+ // Unofficial
+ INVALID_SSL_CERTIFICATE: 526,
+ // Unofficial
+ RAILGUN_ERROR: 527,
+ // Unofficial
+ SITE_IS_OVERLOADED: 529,
+ // Unofficial
+ SITE_IS_FROZEN: 530,
+ // Unofficial
+ IDENTITY_PROVIDER_AUTHENTICATION_ERROR: 561,
+ // Unofficial
+ NETWORK_READ_TIMEOUT: 598,
+ // Unofficial
+ NETWORK_CONNECT_TIMEOUT: 599
+ // Unofficial
+ };
+ exports.FINISH = {
+ SAFE: 0,
+ SAFE_WITH_CB: 1,
+ UNSAFE: 2
+ };
+ exports.HEADER_STATE = {
+ GENERAL: 0,
+ CONNECTION: 1,
+ CONTENT_LENGTH: 2,
+ TRANSFER_ENCODING: 3,
+ UPGRADE: 4,
+ CONNECTION_KEEP_ALIVE: 5,
+ CONNECTION_CLOSE: 6,
+ CONNECTION_UPGRADE: 7,
+ TRANSFER_ENCODING_CHUNKED: 8
+ };
+ exports.METHODS_HTTP = [
+ exports.METHODS.DELETE,
+ exports.METHODS.GET,
+ exports.METHODS.HEAD,
+ exports.METHODS.POST,
+ exports.METHODS.PUT,
+ exports.METHODS.CONNECT,
+ exports.METHODS.OPTIONS,
+ exports.METHODS.TRACE,
+ exports.METHODS.COPY,
+ exports.METHODS.LOCK,
+ exports.METHODS.MKCOL,
+ exports.METHODS.MOVE,
+ exports.METHODS.PROPFIND,
+ exports.METHODS.PROPPATCH,
+ exports.METHODS.SEARCH,
+ exports.METHODS.UNLOCK,
+ exports.METHODS.BIND,
+ exports.METHODS.REBIND,
+ exports.METHODS.UNBIND,
+ exports.METHODS.ACL,
+ exports.METHODS.REPORT,
+ exports.METHODS.MKACTIVITY,
+ exports.METHODS.CHECKOUT,
+ exports.METHODS.MERGE,
+ exports.METHODS["M-SEARCH"],
+ exports.METHODS.NOTIFY,
+ exports.METHODS.SUBSCRIBE,
+ exports.METHODS.UNSUBSCRIBE,
+ exports.METHODS.PATCH,
+ exports.METHODS.PURGE,
+ exports.METHODS.MKCALENDAR,
+ exports.METHODS.LINK,
+ exports.METHODS.UNLINK,
+ exports.METHODS.PRI,
+ // TODO(indutny): should we allow it with HTTP?
+ exports.METHODS.SOURCE,
+ exports.METHODS.QUERY
+ ];
+ exports.METHODS_ICE = [
+ exports.METHODS.SOURCE
+ ];
+ exports.METHODS_RTSP = [
+ exports.METHODS.OPTIONS,
+ exports.METHODS.DESCRIBE,
+ exports.METHODS.ANNOUNCE,
+ exports.METHODS.SETUP,
+ exports.METHODS.PLAY,
+ exports.METHODS.PAUSE,
+ exports.METHODS.TEARDOWN,
+ exports.METHODS.GET_PARAMETER,
+ exports.METHODS.SET_PARAMETER,
+ exports.METHODS.REDIRECT,
+ exports.METHODS.RECORD,
+ exports.METHODS.FLUSH,
+ // For AirPlay
+ exports.METHODS.GET,
+ exports.METHODS.POST
+ ];
+ exports.METHOD_MAP = (0, utils_1.enumToMap)(exports.METHODS);
+ exports.H_METHOD_MAP = Object.fromEntries(Object.entries(exports.METHODS).filter(([k]) => k.startsWith("H")));
+ exports.STATUSES_HTTP = [
+ exports.STATUSES.CONTINUE,
+ exports.STATUSES.SWITCHING_PROTOCOLS,
+ exports.STATUSES.PROCESSING,
+ exports.STATUSES.EARLY_HINTS,
+ exports.STATUSES.RESPONSE_IS_STALE,
+ exports.STATUSES.REVALIDATION_FAILED,
+ exports.STATUSES.DISCONNECTED_OPERATION,
+ exports.STATUSES.HEURISTIC_EXPIRATION,
+ exports.STATUSES.MISCELLANEOUS_WARNING,
+ exports.STATUSES.OK,
+ exports.STATUSES.CREATED,
+ exports.STATUSES.ACCEPTED,
+ exports.STATUSES.NON_AUTHORITATIVE_INFORMATION,
+ exports.STATUSES.NO_CONTENT,
+ exports.STATUSES.RESET_CONTENT,
+ exports.STATUSES.PARTIAL_CONTENT,
+ exports.STATUSES.MULTI_STATUS,
+ exports.STATUSES.ALREADY_REPORTED,
+ exports.STATUSES.TRANSFORMATION_APPLIED,
+ exports.STATUSES.IM_USED,
+ exports.STATUSES.MISCELLANEOUS_PERSISTENT_WARNING,
+ exports.STATUSES.MULTIPLE_CHOICES,
+ exports.STATUSES.MOVED_PERMANENTLY,
+ exports.STATUSES.FOUND,
+ exports.STATUSES.SEE_OTHER,
+ exports.STATUSES.NOT_MODIFIED,
+ exports.STATUSES.USE_PROXY,
+ exports.STATUSES.SWITCH_PROXY,
+ exports.STATUSES.TEMPORARY_REDIRECT,
+ exports.STATUSES.PERMANENT_REDIRECT,
+ exports.STATUSES.BAD_REQUEST,
+ exports.STATUSES.UNAUTHORIZED,
+ exports.STATUSES.PAYMENT_REQUIRED,
+ exports.STATUSES.FORBIDDEN,
+ exports.STATUSES.NOT_FOUND,
+ exports.STATUSES.METHOD_NOT_ALLOWED,
+ exports.STATUSES.NOT_ACCEPTABLE,
+ exports.STATUSES.PROXY_AUTHENTICATION_REQUIRED,
+ exports.STATUSES.REQUEST_TIMEOUT,
+ exports.STATUSES.CONFLICT,
+ exports.STATUSES.GONE,
+ exports.STATUSES.LENGTH_REQUIRED,
+ exports.STATUSES.PRECONDITION_FAILED,
+ exports.STATUSES.PAYLOAD_TOO_LARGE,
+ exports.STATUSES.URI_TOO_LONG,
+ exports.STATUSES.UNSUPPORTED_MEDIA_TYPE,
+ exports.STATUSES.RANGE_NOT_SATISFIABLE,
+ exports.STATUSES.EXPECTATION_FAILED,
+ exports.STATUSES.IM_A_TEAPOT,
+ exports.STATUSES.PAGE_EXPIRED,
+ exports.STATUSES.ENHANCE_YOUR_CALM,
+ exports.STATUSES.MISDIRECTED_REQUEST,
+ exports.STATUSES.UNPROCESSABLE_ENTITY,
+ exports.STATUSES.LOCKED,
+ exports.STATUSES.FAILED_DEPENDENCY,
+ exports.STATUSES.TOO_EARLY,
+ exports.STATUSES.UPGRADE_REQUIRED,
+ exports.STATUSES.PRECONDITION_REQUIRED,
+ exports.STATUSES.TOO_MANY_REQUESTS,
+ exports.STATUSES.REQUEST_HEADER_FIELDS_TOO_LARGE_UNOFFICIAL,
+ exports.STATUSES.REQUEST_HEADER_FIELDS_TOO_LARGE,
+ exports.STATUSES.LOGIN_TIMEOUT,
+ exports.STATUSES.NO_RESPONSE,
+ exports.STATUSES.RETRY_WITH,
+ exports.STATUSES.BLOCKED_BY_PARENTAL_CONTROL,
+ exports.STATUSES.UNAVAILABLE_FOR_LEGAL_REASONS,
+ exports.STATUSES.CLIENT_CLOSED_LOAD_BALANCED_REQUEST,
+ exports.STATUSES.INVALID_X_FORWARDED_FOR,
+ exports.STATUSES.REQUEST_HEADER_TOO_LARGE,
+ exports.STATUSES.SSL_CERTIFICATE_ERROR,
+ exports.STATUSES.SSL_CERTIFICATE_REQUIRED,
+ exports.STATUSES.HTTP_REQUEST_SENT_TO_HTTPS_PORT,
+ exports.STATUSES.INVALID_TOKEN,
+ exports.STATUSES.CLIENT_CLOSED_REQUEST,
+ exports.STATUSES.INTERNAL_SERVER_ERROR,
+ exports.STATUSES.NOT_IMPLEMENTED,
+ exports.STATUSES.BAD_GATEWAY,
+ exports.STATUSES.SERVICE_UNAVAILABLE,
+ exports.STATUSES.GATEWAY_TIMEOUT,
+ exports.STATUSES.HTTP_VERSION_NOT_SUPPORTED,
+ exports.STATUSES.VARIANT_ALSO_NEGOTIATES,
+ exports.STATUSES.INSUFFICIENT_STORAGE,
+ exports.STATUSES.LOOP_DETECTED,
+ exports.STATUSES.BANDWIDTH_LIMIT_EXCEEDED,
+ exports.STATUSES.NOT_EXTENDED,
+ exports.STATUSES.NETWORK_AUTHENTICATION_REQUIRED,
+ exports.STATUSES.WEB_SERVER_UNKNOWN_ERROR,
+ exports.STATUSES.WEB_SERVER_IS_DOWN,
+ exports.STATUSES.CONNECTION_TIMEOUT,
+ exports.STATUSES.ORIGIN_IS_UNREACHABLE,
+ exports.STATUSES.TIMEOUT_OCCURED,
+ exports.STATUSES.SSL_HANDSHAKE_FAILED,
+ exports.STATUSES.INVALID_SSL_CERTIFICATE,
+ exports.STATUSES.RAILGUN_ERROR,
+ exports.STATUSES.SITE_IS_OVERLOADED,
+ exports.STATUSES.SITE_IS_FROZEN,
+ exports.STATUSES.IDENTITY_PROVIDER_AUTHENTICATION_ERROR,
+ exports.STATUSES.NETWORK_READ_TIMEOUT,
+ exports.STATUSES.NETWORK_CONNECT_TIMEOUT
+ ];
+ exports.ALPHA = [];
+ for (let i = "A".charCodeAt(0); i <= "Z".charCodeAt(0); i++) {
+ exports.ALPHA.push(String.fromCharCode(i));
+ exports.ALPHA.push(String.fromCharCode(i + 32));
+ }
+ exports.NUM_MAP = {
+ 0: 0,
+ 1: 1,
+ 2: 2,
+ 3: 3,
+ 4: 4,
+ 5: 5,
+ 6: 6,
+ 7: 7,
+ 8: 8,
+ 9: 9
+ };
+ exports.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
+ };
+ exports.NUM = [
+ "0",
+ "1",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",
+ "8",
+ "9"
+ ];
+ exports.ALPHANUM = exports.ALPHA.concat(exports.NUM);
+ exports.MARK = ["-", "_", ".", "!", "~", "*", "'", "(", ")"];
+ exports.USERINFO_CHARS = exports.ALPHANUM.concat(exports.MARK).concat(["%", ";", ":", "&", "=", "+", "$", ","]);
+ exports.URL_CHAR = [
+ "!",
+ '"',
+ "$",
+ "%",
+ "&",
+ "'",
+ "(",
+ ")",
+ "*",
+ "+",
+ ",",
+ "-",
+ ".",
+ "/",
+ ":",
+ ";",
+ "<",
+ "=",
+ ">",
+ "@",
+ "[",
+ "\\",
+ "]",
+ "^",
+ "_",
+ "`",
+ "{",
+ "|",
+ "}",
+ "~"
+ ].concat(exports.ALPHANUM);
+ exports.HEX = exports.NUM.concat(["a", "b", "c", "d", "e", "f", "A", "B", "C", "D", "E", "F"]);
+ exports.TOKEN = [
+ "!",
+ "#",
+ "$",
+ "%",
+ "&",
+ "'",
+ "*",
+ "+",
+ "-",
+ ".",
+ "^",
+ "_",
+ "`",
+ "|",
+ "~"
+ ].concat(exports.ALPHANUM);
+ exports.HEADER_CHARS = [" "];
+ for (let i = 32; i <= 255; i++) {
+ if (i !== 127) {
+ exports.HEADER_CHARS.push(i);
+ }
+ }
+ exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c) => c !== 44);
+ exports.QUOTED_STRING = [" ", " "];
+ for (let i = 33; i <= 255; i++) {
+ if (i !== 34 && i !== 92) {
+ exports.QUOTED_STRING.push(i);
+ }
+ }
+ exports.HTAB_SP_VCHAR_OBS_TEXT = [" ", " "];
+ for (let i = 33; i <= 126; i++) {
+ exports.HTAB_SP_VCHAR_OBS_TEXT.push(i);
+ }
+ for (let i = 128; i <= 255; i++) {
+ exports.HTAB_SP_VCHAR_OBS_TEXT.push(i);
+ }
+ exports.MAJOR = exports.NUM_MAP;
+ exports.MINOR = exports.MAJOR;
+ exports.SPECIAL_HEADERS = {
+ "connection": exports.HEADER_STATE.CONNECTION,
+ "content-length": exports.HEADER_STATE.CONTENT_LENGTH,
+ "proxy-connection": exports.HEADER_STATE.CONNECTION,
+ "transfer-encoding": exports.HEADER_STATE.TRANSFER_ENCODING,
+ "upgrade": exports.HEADER_STATE.UPGRADE
+ };
+ exports.default = {
+ ERROR: exports.ERROR,
+ TYPE: exports.TYPE,
+ FLAGS: exports.FLAGS,
+ LENIENT_FLAGS: exports.LENIENT_FLAGS,
+ METHODS: exports.METHODS,
+ STATUSES: exports.STATUSES,
+ FINISH: exports.FINISH,
+ HEADER_STATE: exports.HEADER_STATE,
+ ALPHA: exports.ALPHA,
+ NUM_MAP: exports.NUM_MAP,
+ HEX_MAP: exports.HEX_MAP,
+ NUM: exports.NUM,
+ ALPHANUM: exports.ALPHANUM,
+ MARK: exports.MARK,
+ USERINFO_CHARS: exports.USERINFO_CHARS,
+ URL_CHAR: exports.URL_CHAR,
+ HEX: exports.HEX,
+ TOKEN: exports.TOKEN,
+ HEADER_CHARS: exports.HEADER_CHARS,
+ CONNECTION_TOKEN_CHARS: exports.CONNECTION_TOKEN_CHARS,
+ QUOTED_STRING: exports.QUOTED_STRING,
+ HTAB_SP_VCHAR_OBS_TEXT: exports.HTAB_SP_VCHAR_OBS_TEXT,
+ MAJOR: exports.MAJOR,
+ MINOR: exports.MINOR,
+ SPECIAL_HEADERS: exports.SPECIAL_HEADERS,
+ METHODS_HTTP: exports.METHODS_HTTP,
+ METHODS_ICE: exports.METHODS_ICE,
+ METHODS_RTSP: exports.METHODS_RTSP,
+ METHOD_MAP: exports.METHOD_MAP,
+ H_METHOD_MAP: exports.H_METHOD_MAP,
+ STATUSES_HTTP: exports.STATUSES_HTTP
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/llhttp/llhttp-wasm.js
+var require_llhttp_wasm2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/llhttp/llhttp-wasm.js"(exports, module) {
+ "use strict";
+ var { Buffer: Buffer2 } = __require("node:buffer");
+ var wasmBase64 = "AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAn9/AGABfwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNl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xNUAIAIgA3I2AgAgAAwBCyAAKAIICyICIAE2AgwgACABNgIIIAEgADYCDCABIAI2AggMAQtBHyECIARB////B00EQCAEQSYgBEEIdmciAGt2QQFxIABBAXRrQT5qIQILIAEgAjYCHCABQgA3AhAgAkECdEH01wBqIQACQEHI1QAoAgAiA0EBIAJ0IgdxRQRAIAAgATYCAEHI1QAgAyAHcjYCACABIAA2AhggASABNgIIIAEgATYCDAwBCyAEQRkgAkEBdmtBACACQR9HG3QhAiAAKAIAIQACQANAIAAiAygCBEF4cSAERg0BIAJBHXYhACACQQF0IQIgAyAAQQRxakEQaiIHKAIAIgANAAsgByABNgIAIAEgAzYCGCABIAE2AgwgASABNgIIDAELIAMoAggiACABNgIMIAMgATYCCCABQQA2AhggASADNgIMIAEgADYCCAtB5NUAQeTVACgCAEEBayIAQX8gABs2AgALCwcAIAAtACgLBwAgAC0AKgsHACAALQArCwcAIAAtACkLBwAgAC8BNAsHACAALQAwC0ABBH8gACgCGCEBIAAvAS4hAiAALQAoIQMgACgCOCEEIAAQOCAAIAQ2AjggACADOgAoIAAgAjsBLiAAIAE2AhgL5YUCAgd/A34gASACaiEEAkAgACIDKAIMIgANACADKAIEBEAgAyABNgIECyMAQRBrIgkkAAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAk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Jaw4YAgApKQEpKSkpKSkpKSkpKSkpKSkpKSkCJwsgAUEBaiEBIANBL2otAABBAXFFDQoMGAsgAUEBaiEBDBcLIAFBAWohASACLQAAQQJxDQALQQAhAiADQQA2AhwgAyABNgIUIANBnxU2AhAgA0EMNgIMDJUDCyADLQAuQYABcUUNAQtBACEAAkAgAygCOCICRQ0AIAIoAlwiAkUNACADIAIRAAAhAAsgAEUN5gIgAEEVRgRAIANBJDYCHCADIAE2AhQgA0GbGzYCECADQRU2AgxBACECDJQDC0EAIQIgA0EANgIcIAMgATYCFCADQZAONgIQIANBFDYCDAyTAwtBACECIANBADYCHCADIAE2AhQgA0G+IDYCECADQQI2AgwMkgMLIAMoAgQhAEEAIQIgA0EANgIEIAMgACABIAynaiIBEDIiAEUNKyADQQc2AhwgAyABNgIUIAMgADYCDAyRAwsgAy0ALkHAAHFFDQELQQAhAAJAIAMoAjgiAkUNACACKAJYIgJFDQAgAyACEQAAIQALIABFDSsgAEEVRgRAIANBCjYCHCADIAE2AhQgA0HrGTYCECADQRU2AgxBACECDJADC0EAIQIgA0EANgIcIAMgATYCFCADQZMMNgIQIANBEzYCDAyPAwtBACECIANBADYCHCADIAE2AhQgA0GCFTYCECADQQI2AgwMjgMLQQAhAiADQQA2AhwgAyABNgIUIANB3RQ2AhAgA0EZNgIMDI0DC0EAIQIgA0EANgIcIAMgATYCFCADQeYdNgIQIANBGTYCDAyMAwsgAEEVRg09QQAhAiADQQA2AhwgAyABNgIUIANB0A82AhAgA0EiNgIMDIsDCyADKAIEIQBBACECIANBADYCBCADIAAgARAzIgBFDSggA0ENNgIcIAMgATYCFCADIAA2AgwMigMLIABBFUYNOkEAIQIgA0EANgIcIAMgATYCFCADQdAPNgIQIANBIjYCDAyJAwsgAygCBCEAQQAhAiADQQA2AgQgAyAAIAEQMyIARQRAIAFBAWohAQwoCyADQQ42AhwgAyAANgIMIAMgAUEBajYCFAyIAwsgAEEVRg03QQAhAiADQQA2AhwgAyABNgIUIANB0A82AhAg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AQRVGDR9BACECIANBADYCHCADIAE2AhQgA0HQDzYCECADQSI2AgwM9AILIAMoAgQhACADQQA2AgQgAyAAIAEQMyIARQRAIAFBAWohAQwbCyADQRw2AhwgAyAANgIMIAMgAUEBajYCFEEAIQIM8wILIAMoAgQhACADQQA2AgQgAyAAIAEQMyIARQRAIAFBAWohAQzrAgsgA0EdNgIcIAMgADYCDCADIAFBAWo2AhRBACECDPICCyAAQTtHDQEgAUEBaiEBC0EmIQIM1wILQQAhAiADQQA2AhwgAyABNgIUIANBnxU2AhAgA0EMNgIMDO8CCyABIARHBEADQCABLQAAQSBHDYQCIAQgAUEBaiIBRw0AC0EsIQIM7wILQSwhAgzuAgsgASAERgRAQTQhAgzuAgsCQAJAA0ACQCABLQAAQQprDgQCAAADAAsgBCABQQFqIgFHDQALQTQhAgzvAgsgAygCBCEAIANBADYCBCADIAAgARAxIgBFDZ8CIANBMjYCHCADIAE2AhQgAyAANgIMQQAhAgzuAgsgAygCBCEAIANBADYCBCADIAAgARAxIgBFBEAgAUEBaiEBDJ8CCyADQTI2AhwgAyAANgIMIAMgAUEBajYCFEEAIQIM7QILIAEgBEcEQAJAA0AgAS0AAEEwayIAQf8BcUEKTwRAQTohAgzXAgsgAykDICILQpmz5syZs+bMGVYNASADIAtCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAMgCiALfDcDICAEIAFBAWoiAUcNAAtBwAAhAgzuAgsgAygCBCEAIANBADYCBCADIAAgAUEBaiIBEDEiAA0XDOICC0HAACECDOwCCyABIARGBEBByQAhAgzsAgsCQANAAkAgAS0AAEEJaw4YAAKiAqICqQKiAqICogKiAqICogKiAqICogKiAqICogKiAqICogKiAqICogIAogILIAQgAUEBaiIBRw0AC0HJACECDOwCCyABQQFqIQEgA0Evai0AAEEBcQ2lAiADQQA2AhwgAyABNgIUIANBlxA2AhAgA0EKNgIMQQAhAgzrAgsgASAERwRAA0AgAS0AAEEgRw0VIAQgAUEBaiIBRw0AC0H4ACECDOsCC0H4ACECDOoCCyADQQI6ACgMOAtBACECIANBADYCHCADQb8LNgIQIANBAjYCDCADIAFBAWo2AhQM6AILQQAhAgzOAgtBDSECDM0CC0ETIQIMzAILQRUhAgzLAgtBFiECDMoCC0EYIQIMyQILQRkhAgzIAgtBGiECDMcCC0EbIQIMxgILQRwhAgzFAgtBHSECDMQCC0EeIQIMwwILQR8hAgzCAgtBICECDMECC0EiIQIMwAILQSMhAgy/AgtBJSECDL4CC0HlACECDL0CCyADQT02AhwgAyABNgIUIAMgADYCDEEAIQIM1QILIANBGzYCHCADIAE2AhQgA0GkHDYCECADQRU2AgxBACECDNQCCyADQSA2AhwgAyABNgIUIANBmBo2AhAgA0EVNgIMQQAhAgzTAgsgA0ETNgIcIAMgATYCFCADQZgaNgIQIANBFTYCDEEAIQIM0gILIANBCzYCHCADIAE2AhQgA0GYGjYCECADQRU2AgxBACECDNECCyADQRA2AhwgAyABNgIUIANBmBo2AhAgA0EVNgIMQQAhAgzQAgsgA0EgNgIcIAMgATYCFCADQaQcNgIQIANBFTYCDEEAIQIMzwILIANBCzYCHCADIAE2AhQgA0GkHDYCECADQRU2AgxBACECDM4CCyADQQw2AhwgAyABNgIUIANBpBw2AhAgA0EVNgIMQQAhAgzNAgtBACECIANBADYCHCADIAE2AhQgA0HdDjYCECADQRI2AgwMzAILAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB/QEhAgzMAgsCQAJAIAMtADZBAUcNAEEAIQACQCADKAI4IgJFDQAgAigCYCICRQ0AIAMgAhEAACEACyAARQ0AIABBFUcNASADQfwBNgIcIAMgATYCFCADQdwZNgIQIANBFTYCDEEAIQIMzQILQdwBIQIMswILIANBADYCHCADIAE2AhQgA0H5CzYCECADQR82AgxBACECDMsCCwJAAkAgAy0AKEEBaw4CBAEAC0HbASECDLICC0HUASECDLECCyADQQI6ADFBACEAAkAgAygCOCICRQ0AIAIoAgAiAkUNACADIAIRAAAhAAsgAEUEQEHdASECDLECCyAAQRVHBEAgA0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ASAERgRAQfEBIQIMuwILAkACQAJAIAEtAABByABrDgsAAQgICAgICAgIAggLIAFBAWohAUHQASECDKMCCyABQQFqIQFB0QEhAgyiAgsgAUEBaiEBQdIBIQIMoQILQfABIQIgASAERg25AiADKAIAIgAgBCABa2ohBiABIABrQQJqIQUDQCABLQAAIABBtdUAai0AAEcNBCAAQQJGDQMgAEEBaiEAIAQgAUEBaiIBRw0ACyADIAY2AgAMuQILQe8BIQIgASAERg24AiADKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABBs9UAai0AAEcNAyAAQQFGDQIgAEEBaiEAIAQgAUEBaiIBRw0ACyADIAY2AgAMuAILQe4BIQIgASAERg23AiADKAIAIgAgBCABa2ohBiABIABrQQJqIQUDQCABLQAAIABBsNUAai0AAEcNAiAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyADIAY2AgAMtwILIAMoAgQhACADQgA3AwAgAyAAIAVBAWoiARArIgBFDQIgA0HsATYCHCADIAE2AhQgAyAANgIMQQAhAgy2AgsgA0EANgIACyADKAIEIQAgA0EANgIEIAMgACABECsiAEUNnAIgA0HtATYCHCADIAE2AhQgAyAANgIMQQAhAgy0AgtBzwEhAgyaAgtBACEAAkAgAygCOCICRQ0AIAIoAjQiAkUNACADIAIRAAAhAAsCQCAABEAgAEEVRg0BIANBADYCHCADIAE2AhQgA0HqDTYCECADQSY2AgxBACECDLQCC0HOASECDJoCCyADQesBNgIcIAMgATYCFCADQYAbNgIQIANBFTYCDEEAIQIMsgILIAEgBEYEQEHrASECDLICCyABLQAAQS9GBEAgAUEBaiEBDAELIANBADYCHCADIAE2AhQgA0GyODYCECADQQg2AgxBACECDLECC0HNASECDJcCCyABIARHBEAgA0EONgIIIAMgATYCBEHMASECDJcCC0HqASECDK8CCyABIARGBEBB6QEhAgyvAgsgAS0AAEEwayIAQf8BcUEKSQRAIAMgADoAKiABQQFqIQFBywEhAgyWAgsgAygCBCEAIANBADYCBCADIAAgARAvIgBFDZcCIANB6AE2AhwgAyABNgIUIAMgADYCDEEAIQIMrgILIAEgBEYEQEHnASECDK4CCwJAIAEtAABBLkYEQCABQQFqIQEMAQsgAygCBCEAIANBADYCBCADIAAgARAvIgBFDZgCIANB5gE2AhwgAyABNgIUIAMgADYCDEEAIQIMrgILQcoBIQIMlAILIAEgBEYEQEHlASECDK0CC0EAIQBBASEFQQEhB0EAIQICQAJAAkACQAJAAn8CQAJAAkACQAJAAkACQCABLQAAQTBrDgoKCQABAgMEBQYICwtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshAkEAIQVBACEHDAILQQkhAkEBIQBBACEFQQAhBwwBC0EAIQVBASECCyADIAI6ACsgAUEBaiEBAkACQCADLQAuQRBxDQACQAJAAkAgAy0AKg4DAQACBAsgB0UNAwwCCyAADQEMAgsgBUUNAQsgAygCBCEAIANBADYCBCADIAAgARAvIgBFDQIgA0HiATYCHCADIAE2AhQgAyAANgIMQQAhAgyvAgsgAygCBCEAIANBADYCBCADIAAgARAvIgBFDZoCIANB4wE2AhwgAyABNgIUIAMgADYCDEEAIQIMrgILIAMoAgQhACADQQA2AgQgAyAAIAEQLyIARQ2YAiADQeQBNgIcIAMgATYCFCADIAA2AgwMrQILQckBIQIMkwILQQAhAAJAIAMoAjgiAkUNACACKAJEIgJFDQAgAyACEQAAIQALAkAgAARAIABBFUYNASADQQA2AhwgAyABNgIUIANBpA02AhAgA0EhNgIMQQAhAgytAgtByAEhAgyTAgsgA0HhATYCHCADIAE2AhQgA0HQGjYCECADQRU2AgxBACECDKsCCyABIARGBEBB4QEhAgyrAgsCQCABLQAAQSBGBEAgA0EAOwE0IAFBAWohAQwBCyADQQA2AhwgAyABNgIUIANBmRE2AhAgA0EJNgIMQQAhAgyrAgtBxwEhAgyRAgsgASAERgRAQeABIQIMqgILAkAgAS0AAEEwa0H/AXEiAkEKSQRAIAFBAWohAQJAIAMvATQiAEGZM0sNACADIABBCmwiADsBNCAAQf7/A3EgAkH//wNzSw0AIAMgACACajsBNAwCC0EAIQIgA0EANgIcIAMgATYCFCADQZUeNgIQIANBDTYCDAyrAgsgA0EANgIcIAMgATYCFCADQZUeNgIQIANBDTYCDEEAIQIMqgILQcYBIQIMkAILIAEgBEYEQEHfASECDKkCCwJAIAEtAABBMGtB/wFxIgJBCkkEQCABQQFqIQECQCADLwE0IgBBmTNLDQAgAyAAQQpsIgA7ATQgAEH+/wNxIAJB//8Dc0sNACADIAAgAmo7ATQMAgtBACECIANBADYCHCADIAE2AhQgA0GVHjYCECADQQ02AgwMqgILIANBADYCHCADIAE2AhQgA0GVHjYCECADQQ02AgxBACECDKkCC0HFASECDI8CCyABIARGBEBB3gEhAgyoAgsCQCABLQAAQTBrQf8BcSICQQpJBEAgAUEBaiEBAkAgAy8BNCIAQZkzSw0AIAMgAEEKbCIAOwE0IABB/v8DcSACQf//A3NLDQAgAyAAIAJqOwE0DAILQQAhAiADQQA2AhwgAyABNgIUIANBlR42AhAgA0ENNgIMDKkCCyADQQA2AhwgAyABNgIUIANBlR42AhAgA0ENNgIMQQAhAgyoAgtBxAEhAgyOAgsgASAERgRAQd0BIQIMpwILAkACQAJAAkAgAS0AAEEKaw4XAgMDAAMDAwMDAwMDAwMDAwMDAwMDAwEDCyABQQFqDAULIAFBAWohAUHDASECDI8CCyABQQFqIQEgA0Evai0AAEEBcQ0IIANBADYCHCADIAE2AhQgA0GNCzYCECADQQ02AgxBACECDKcCCyADQQA2AhwgAyABNgIUIANBjQs2AhAgA0ENNgIMQQAhAgymAgsgASAERwRAIANBDzYCCCADIAE2AgRBASECDI0CC0HcASECDKUCCwJAAkADQAJAIAEtAABBCmsOBAIAAAMACyAEIAFBAWoiAUcNAAtB2wEhAgymAgsgAygCBCEAIANBADYCBCADIAAgARAtIgBFBEAgAUEBaiEBDAQLIANB2gE2AhwgAyAANgIMIAMgAUEBajYCFEEAIQIMpQILIAMoAgQhACADQQA2AgQgAyAAIAEQLSIADQEgAUEBagshAUHBASECDIoCCyADQdkBNgIcIAMg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+AELAkACQCABLQAAQdQAaw4CAAEnCyABQQFqIQFBmQEhAgzfAQsgAUEBaiEBQZoBIQIM3gELQbIBIQIgASAERg32ASADKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHm1ABqLQAARw0jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAz3AQsgA0EANgIAIAZBAWohAUEnDCMLQbEBIQIgASAERg31ASADKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHk1ABqLQAARw0iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAz2AQsgA0EANgIAIAZBAWohAUEcDCILQbABIQIgASAERg30ASADKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHe1ABqLQAARw0hIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAz1AQsgA0EANgIAIAZBAWohAUEGDCELQa8BIQIgASAERg3zASADKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHZ1ABqLQAARw0gIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAz0AQsgA0EANgIAIAZBAWohAUEZDCALIAEgBEYEQEGuASECDPMBCwJAAkACQAJAIAEtAABBLWsOIwAkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJAEkJCQkJAIkJCQDJAsgAUEBaiEBQY4BIQIM3AELIAFBAWohAUGPASECDNsBCyABQQFqIQFBlAEhAgzaAQsgAUEBaiEBQZUBIQIM2QELQa0BIQIgASAERg3xASADKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHX1ABqLQAARw0eIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAzyAQsgA0EANgIAIAZBAWohAUELDB4LIAEgBEYEQEGsASECDPEBCwJAAkAgAS0AAEHBAGsOAwAgASALIAFBAWohAUGQASECDNgBCyABQQFqIQFBkwEhAgzXAQsgASA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iEAIAQgAUEBaiIBRw0ACyADIAU2AgAM6AELIANBADYCACAGQQFqIQFBHwwUC0GiASECIAEgBEYN5gEgAygCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABBvtQAai0AAEcNEyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyADIAU2AgAM5wELIANBADYCACAGQQFqIQFBAgwTC0GhASECIAEgBEYN5QEgAygCACIAIAQgAWtqIQUgASAAa0EBaiEGA0AgAS0AACAAQbzUAGotAABHDREgAEEBRg0CIABBAWohACAEIAFBAWoiAUcNAAsgAyAFNgIADOUBCyABIARGBEBBoAEhAgzlAQtBASABLQAAQd8ARw0RGiABQQFqIQFBhwEhAgzLAQsgA0EANgIAIAZBAWohAUGIASECDMoBC0GfASECIAEgBEYN4gEgAygCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABBhNUAai0AAEcNDyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyADIAU2AgAM4wELIANBADYCACAGQQFqIQFBKQwPC0GeASECIAEgBEYN4QEgAygCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBuNQAai0AAEcNDiAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyADIAU2AgAM4gELIANBADYCACAGQQFqIQFBLQwOCyABIARGBEBBnQEhAgzhAQsgAS0AAEHFAEcNDiABQQFqIQFBhAEhAgzHAQsgASAERgRAQZwBIQIM4AELAkACQCABLQAAQcwAaw4IAA8PDw8PDwEPCyABQQFqIQFBggEhAgzHAQsgAUEBaiEBQYMBIQIMxgELQZsBIQIgASAERg3eASADKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEGz1ABqLQAARw0LIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAzfAQsgA0EANgIAIAZBAWohAUEjDAsLQZoBIQIgASAERg3dASADKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGw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ABNgIUIANB7Qk2AhAgA0EINgIMDJkBC0HyACECIAEgBEYNmAEgAygCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBs9UAai0AAEcNBSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyADIAU2AgAMmQELIAMoAgQhACADQgA3AwAgAyAAIAZBAWoiARArIgAEQCADQfEANgIcIAMgATYCFCADIAA2AgxBACECDJkBC0HfACECDH8LQQAhAAJAIAMoAjgiAkUNACACKAI0IgJFDQAgAyACEQAAIQALAkAgAARAIABBFUYNASADQQA2AhwgAyABNgIUIANB6g02AhAgA0EmNgIMQQAhAgyZAQtB3gAhAgx/CyADQfAANgIcIAMgATYCFCADQYAbNgIQIANBFTYCDEEAIQIMlwELIAMtAClBIUYNBiADQQA2AhwgAyABNgIUIANBkQo2AhAgA0EINgIMQQAhAgyWAQtB7wAhAiABIARGDZUBIAMoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQbDVAGotAABHDQIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAyAFNgIADJYBCyADKAIEIQAgA0IANwMAIAMgACAGQQFqIgEQKyIARQ0CIANB7QA2AhwgAyABNgIUIAMgADYCDEEAIQIMlQELIANBADYCAAsgAygCBCEAIANBADYCBCADIAAgARArIgBFDYABIANB7gA2AhwgAyABNgIUIAMgADYCDEEAIQIMkwELQdwAIQIMeQtBACEAAkAgAygCOCICRQ0AIAIoAjQiAkUNACADIAIRAAAhAAsCQCAABEAgAEEVRg0BIANBADYCHCADIAE2AhQgA0HqDTYCECADQSY2AgxBACECDJMBC0HbACECDHkLIANB7AA2AhwgAyABNgIUIANBgBs2AhAgA0EVNgIMQQAhAgyRAQsgAy0AKSIAQSNJDQAgAEEuRg0AIANBADYCHCADIAE2AhQgA0HJCTYCECADQQg2AgxBACECDJABC0HaACECDHYLIAEgBEYEQEHrACECDI8BCwJAIAEtAABBL0YEQCABQQFqIQEMAQsgA0EANgIcIAMgATYCFCADQbI4NgIQIANBCDYCDEEAIQIMjwELQdkAIQIMdQsgASAERwRAIANBDjYCCCADIAE2AgRB2AAhAgx1C0HqACECDI0BCyABIARGBEBB6QAhAgyNAQsgAS0AAEEwayIAQf8BcUEKSQRAIAMgADoAKiABQQFqIQFB1wAhAgx0CyADKAIEIQAgA0EANgIEIAMgACABEC8iAEUNeiADQegANgIcIAMgATYCFCADIAA2AgxBACECDIwBCyABIARGBEBB5wAhAgyMAQsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAMoAgQhACADQQA2AgQgAyAAIAEQLyIARQ17IANB5gA2AhwgAyABNgIUIAMgADYCDEEAIQIMjAELQdYAIQIMcgsgASAERgRAQeUAIQIMiwELQQAhAEEBIQVBASEHQQAhAgJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAEtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyECQQAhBUEAIQcMAgtBCSECQQEhAEEAIQVBACEHDAELQQAhBUEBIQILIAMgAjoAKyABQQFqIQECQAJAIAMtAC5BEHENAAJAAkACQCADLQAqDgMBAAIECyAHRQ0DDAILIAANAQwCCyAFRQ0BCyADKAIEIQAgA0EANgIEIAMgACABEC8iAEUNAiADQeIANgIcIAMgATYCFCADIAA2AgxBACECDI0BCyADKAIEIQAgA0EANgIEIAMgACABEC8iAEUNfSADQeMANgIcIAMgATYCFCADIAA2AgxBACECDIwBCyADKAIEIQAgA0EANgIEIAMgACABEC8iAEUNeyADQeQANgIcIAMgATYCFCADIAA2AgwMiwELQdQAIQIMcQsgAy0AKUEiRg2GAUHTACECDHALQQAhAAJAIAMoAjgiAkUNACACKAJEIgJFDQAgAyACEQAAIQALIABFBEBB1QAhAgxwCyAAQRVHBEAgA0EANgIcIAMgATYCFCADQaQNNgIQIANBITYCDEEAIQIMiQELIANB4QA2AhwgAyABNgIUIANB0Bo2AhAgA0EVNgIMQQAhAgyIAQsgASAERgRAQeAAIQIMiAELAkACQAJAAkACQCABLQAAQQprDgQBBAQABAsgAUEBaiEBDAELIAFBAWohASADQS9qLQAAQQFxRQ0BC0HSACECDHALIANBADYCHCADIAE2AhQgA0G2ETYCECADQQk2AgxBACECDIgBCyADQQA2AhwgAyABNgIUIANBthE2AhAgA0EJNgIMQQAhAgyHAQsgASAERgRAQd8AIQIMhwELIAEtAABBCkYEQCABQQFqIQEMCQsgAy0ALkHAAHENCCADQQA2AhwgAyABNgIUIANBthE2AhAgA0ECNgIMQQAhAgyGAQsgASAERgRAQd0AIQIMhgELIAEtAAAiAkENRgRAIAFBAWohAUHQACECDG0LIAEhACACQQlrDgQFAQEFAQsgBCABIgBGBEBB3AAhAgyFAQsgAC0AAEEKRw0AIABBAWoMAgtBACECIANBADYCHCADIAA2AhQgA0HKLTYCECADQQc2AgwMgwELIAEgBEYEQEHbACECDIMBCwJAIAEtAABBCWsOBAMAAAMACyABQQFqCyEBQc4AIQIMaAsgASAERgRAQdoAIQIMgQELIAEtAABBCWsOBAABAQABC0EAIQIgA0EANgIcIANBmhI2AhAgA0EHNgIMIAMgAUEBajYCFAx/CyADQYASOwEqQQAhAAJAIAMoAjgiAkUNACACKAI4IgJFDQAgAyACEQAAIQALIABFDQAgAEEVRw0BIANB2QA2AhwgAyABNgIUIANB6ho2AhAgA0EVNgIMQQAhAgx+C0HNACECDGQLIANBADYCHCADIAE2AhQgA0HJDTYCECADQRo2AgxBACECDHwLIAEgBEYEQEHZACECDHwLIAEtAABBIEcNPSABQQFqIQEgAy0ALkEBcQ09IANBADYCHCADIAE2AhQgA0HCHDYCECADQR42AgxBACECDHsLIAEgBEYEQEHYACECDHsLAkACQAJAAkACQCABLQAAIgBBCmsOBAIDAwABCyABQQFqIQFBLCECDGULIABBOkcNASADQQA2AhwgAyABNgIUIANB5xE2AhAgA0EKNgIMQQAhAgx9CyABQQFqIQEgA0Evai0AAEEBcUUNcyADLQAyQYABcUUEQCADQTJqIQIgAxA1QQAhAAJAIAMoAjgiBkUNACAGKA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wRAIABBCmsOBAcEBAcCCyAEIAFBAWoiAUcNAAtBOCECDFYLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCADLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIANBAToALCADIAMvATIgAXI7ATIgACEBDAELIAMgAy8BMkEIcjsBMiAAIQELQT4hAgw7CyADQQA6ACwLQTkhAgw5CyABIARGBEBBNiECDFILAkACQAJAAkACQCABLQAAQQprDgQAAgIBAgsgAygCBCEAIANBADYCBCADIAAgARAxIgBFDQIgA0EzNgIcIAMgATYCFCADIAA2AgxBACECDFULIAMoAgQhACADQQA2AgQgAyAAIAEQMSIARQRAIAFBAWohAQwGCyADQTI2AhwgAyAANgIMIAMgAUEBajYCFEEAIQIMVAsgAy0ALkEBcQRAQd8BIQIMOwsgAygCBCEAIANBADYCBCADIAAgARAxIgANAQxJC0E0IQIMOQsgA0E1NgIcIAMgATYCFCADIAA2AgxBACECDFELQTUhAgw3CyADQS9qLQAAQQFxDQAgA0EANgIcIAMgATYCFCADQesWNgIQIANBGTYCDEEAIQIMTwtBMyECDDULIAEgBEYEQEEyIQIMTgsCQCABLQAAQQpGBEAgAUEBaiEBDAELIANBADYCHCADIAE2AhQgA0GSFzYCECADQQM2AgxBACECDE4LQTIhAgw0CyABIARGBEBBMSECDE0LAkAgAS0AACIAQQlGDQAgAEEgRg0AQQEhAgJAIAMtACxBBWsOBAYEBQANCyADIAMvATJBCHI7ATIMDAsgAy0ALkEBcUUNASADLQAsQQhHDQAgA0EAOgAsC0E9IQIMMgsgA0EANgIcIAMgATYCFCADQcIWNgIQIANBCjYCDEEAIQIMSgtBAiECDAELQQQhAgsgA0EBOgAsIAMgAy8BMiACcjsBMgwGCyABIARGBEBBMCECDEcLIAEtAABBCkYEQCABQQFqIQEMAQsgAy0ALkEBcQ0AIANBADYCHCADIAE2AhQgA0HcKDYCECADQQI2AgxBACECDEYLQTAhAgwsCyABQQFqIQFBMSECDCsLIAEgBEYEQEEvIQIM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BQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUAQanKAAsFAQIAAQMAQcDKAAtfBAUFBgUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUAQanMAAsEAQAAAQBBwcwAC14CAgACAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAEGpzgALBQECAAEDAEHAzgALXwQFAAAFBQUFBQUFBQUFBQYFBQUFBQUFBQUFBQUABQAHCAUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQAFAAUABQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUAAAAFAEGp0AALBQEBAAEBAEHA0AALAQEAQdrQAAtBAgAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQanSAAsFAQEAAQEAQcDSAAsBAQBBytIACwYCAAAAAAIAQeHSAAs6AwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBBoNQAC50BTk9VTkNFRUNLT1VUTkVDVEVURUNSSUJFTFVTSEVURUFEU0VBUkNIUkdFQ1RJVklUWUxFTkRBUlZFT1RJRllQVElPTlNDSFNFQVlTVEFUQ0hHRVVFUllPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFVFRQQ0VUU1BBRFRQLw==";
+ var wasmBuffer;
+ Object.defineProperty(module, "exports", {
+ get: () => {
+ return wasmBuffer ? wasmBuffer : wasmBuffer = Buffer2.from(wasmBase64, "base64");
+ }
+ });
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js
+var require_llhttp_simd_wasm2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js"(exports, module) {
+ "use strict";
+ var { Buffer: Buffer2 } = __require("node:buffer");
+ var wasmBase64 = "AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAn9/AGABfwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAzU0BQYAAAMAAAAAAAADAQMAAwMDAAACAAAAAAICAgICAgICAgIBAQEBAQEBAQEBAwAAAwAAAAQFAXABExMFAwEAAgYIAX8BQcDZBAsHxQcoBm1lbW9yeQIAC19pbml0aWFsaXplAAgZX19pbmRpcmVjdF9mdW5jdGlvbl90YWJsZQEAC2xsaHR0cF9pbml0AAkYbGxodHRwX3Nob3VsZF9rZWVwX2FsaXZlADcMbGxodHRwX2FsbG9jAAsGbWFsbG9jADkLbGxodHRwX2ZyZWUADARmcmVlAAwPbGxodHRwX2dldF90eXBlAA0VbGxodHRwX2dldF9odHRwX21ham9yAA4VbGxodHRwX2dldF9odHRwX21pbm9yAA8RbGxodHRwX2dldF9tZXRob2QAEBZsbGh0dHBfZ2V0X3N0YXR1c19jb2RlABESbGxodHRwX2dldF91cGdyYWRlABIMbGxodHRwX3Jlc2V0ABMObGxodHRwX2V4ZWN1dGUAFBRsbGh0dHBfc2V0dGluZ3NfaW5pdAAVDWx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AygCACICDQAgAEEQaiEDIAAoAhAiAg0ACyAHQQA2AgAMAgsgBSAAQX5xNgIEIAEgBGogBDYCACABIARBAXI2AgQMAwtBACEACyAGRQ0AAkAgBSgCHCICQQJ0QfTXAGoiAygCACAFRgRAIAMgADYCACAADQFByNUAQcjVACgCAEF+IAJ3cTYCAAwCCyAGQRBBFCAGKAIQIAVGG2ogADYCACAARQ0BCyAAIAY2AhggBSgCECICBEAgACACNgIQIAIgADYCGAsgBUEUaigCACICRQ0AIABBFGogAjYCACACIAA2AhgLIAEgBGogBDYCACABIARBAXI2AgQgAUHY1QAoAgBHDQBBzNUAIAQ2AgAMAQsgBEH/AU0EQCAEQXhxQezVAGohAAJ/QcTVACgCACICQQEgBEEDdnQiA3FFBEBBxNUAIAIgA3I2AgAgAAwBCyAAKAIICyICIAE2AgwgACABNgIIIAEgADYCDCABIAI2AggMAQtBHyECIARB////B00EQCAEQSYgBEEIdmciAGt2QQFxIABBAXRrQT5qIQILIAEgAjYCHCABQgA3AhAgAkECdEH01wBqIQACQEHI1QAoAgAiA0EBIAJ0IgdxRQRAIAAgATYCAEHI1QAgAyAHcjYCACABIAA2AhggASABNgIIIAEgATYCDAwBCyAEQRkgAkEBdmtBACACQR9HG3QhAiAAKAIAIQACQANAIAAiAygCBEF4cSAERg0BIAJBHXYhACACQQF0IQIgAyAAQQRxakEQaiIHKAIAIgANAAsgByABNgIAIAEgAzYCGCABIAE2AgwgASABNgIIDAELIAMoAggiACABNgIMIAMgATYCCCABQQA2AhggASADNgIMIAEgADYCCAtB5NUAQeTVACgCAEEBayIAQX8gABs2AgALCwcAIAAtACgLBwAgAC0AKgsHACAALQArCwcAIAAtACkLBwAgAC8BNAsHACAALQAwC0ABBH8gACgCGCEBIAAvAS4hAiAALQAoIQMgACgCOCEEIAAQOCAAIAQ2AjggACADOgAoIAAgAjsBLiAAIAE2AhgLhocCAwd/A34BeyABIAJqIQQCQCAAIgMoAgwiAA0AIAMoAgQEQCADIAE2AgQLIwBBEG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AJAIAMCfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAn8CQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAwJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCACDuMBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISMkJScoKZ4DmwOaA5EDigODA4AD/QL7AvgC8gLxAu8C7QLoAucC5gLlAuQC3ALbAtoC2QLYAtcC1gLVAs8CzgLMAssCygLJAsgCxwLGAsQCwwK+ArwCugK5ArgCtwK2ArUCtAKzArICsQKwAq4CrQKpAqgCpwKmAqUCpAKjAqICoQKgAp8CmAKQ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CADIAE2AhQgA0HdFDYCECADQRk2AgwMjQMLQQAhAiADQQA2AhwgAyABNgIUIANB5h02AhAgA0EZNgIMDIwDCyAAQRVGDT1BACECIANBADYCHCADIAE2AhQgA0HQDzYCECADQSI2AgwMiwMLIAMoAgQhAEEAIQIgA0EANgIEIAMgACABEDMiAEUNKCADQQ02AhwgAyABNgIUIAMgADYCDAyKAwsgAEEVRg06QQAhAiADQQA2AhwgAyABNgIUIANB0A82AhAgA0EiNgIMDIkDCyADKAIEIQBBACECIANBADYCBCADIAAgARAzIgBFBEAgAUEBaiEBDCgLIANBDjYCHCADIAA2AgwgAyABQQFqNgIUDIgDCyAAQRVGDTdBACECIANBADYCHCADIAE2AhQgA0HQDzYCECADQSI2AgwMhwMLIAMoAgQhAEEAIQIgA0EANgIEIAMgACABEDMiAEUEQCABQQFqIQEMJwsgA0EPNgIcIAMgADYCDCADIAFBAWo2AhQMhgMLQQAhAiADQQA2AhwgAyABNgIUIANB4hc2AhAgA0EZNgIMDIUDCyAAQRVGDTNBACECIANBADYCHCADIAE2AhQgA0HWDDYCECADQSM2AgwMhAMLIAMoAgQhAEEAIQIgA0EANgIEIAMgACABEDQiAEUNJSADQRE2AhwgAyABNgIUIAMgADYCDAyDAwsgAEEVRg0wQQAhAiADQQA2AhwgAyABNgIUIANB1gw2AhAgA0EjNgIMDIIDCyADKAIEIQBBACECIANBADYCBCADIAAgARA0IgBFBEAgAUEBaiEBDCULIANBEjYCHCADIAA2AgwgAyABQQFqNgIUDIEDCyADQS9qLQAAQQFxRQ0BC0EXIQIM5gILQQAhAiADQQA2AhwgAyABNgIUIANB4hc2AhAgA0EZNgIMDP4CCyAAQTtHDQAgAUEBaiEBDAwLQQAhAiADQQA2AhwgAyABNgIUIANBkhg2AhAgA0ECNgIMDPwCCyAAQRVGDShBACECIANBADYCHCADIAE2AhQgA0HWDDYCECADQSM2AgwM+wILIANBFDYCHCADIAE2AhQgAyAANgIMDPoCCyADKAIEIQBBACECIANBADYCBCADIAAg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IKNwMgIAogAK1C/wGDIgtCf4VWDQEgAyAKIAt8NwMgIAQgAUEBaiIBRw0AC0HAACECDO4CCyADKAIEIQAgA0EANgIEIAMgACABQQFqIgEQMSIADRcM4gILQcAAIQIM7AILIAEgBEYEQEHJACECDOwCCwJAA0ACQCABLQAAQQlrDhgAAqICogKpAqICogKiAqICogKiAqICogKiAqICogKiAqICogKiAqICogKiAgCiAgsgBCABQQFqIgFHDQALQckAIQIM7AILIAFBAWohASADQS9qLQAAQQFxDaUCIANBADYCHCADIAE2AhQgA0GXEDYCECADQQo2AgxBACECDOsCCyABIARHBEADQCABLQAAQSBHDRUgBCABQQFqIgFHDQALQfgAIQIM6wILQfgAIQIM6gILIANBAjoAKAw4C0EAIQIgA0EANgIcIANBvws2AhAgA0ECNgIMIAMgAUEBajYCFAzoAgtBACECDM4CC0ENIQIMzQILQRMhAgzMAgtBFSECDMsCC0EWIQIMygILQRghAgzJAgtBGSECDMgCC0EaIQIMxwILQRshAgzGAgtBHCECDMUCC0EdIQIMxAILQR4hAgzDAgtBHyECDMICC0EgIQIMwQILQSIhAgzAAgtBIyECDL8CC0ElIQIMvgILQeUAIQIMvQILIANBPTYCHCADIAE2AhQgAyAANgIMQQAhAgzVAgsgA0EbNgIcIAMgATYCFCADQaQcNgIQIANBFTYCDEEAIQIM1AILIANBIDYCHCADIAE2AhQgA0GYGjYCECADQRU2AgxBACECDNMCCyADQRM2AhwgAyABNgIUIANBmBo2AhAgA0EVNgIMQQAhAgzSAgsgA0ELNgIcIAMgATYCFCADQZgaNgIQIANBFTYCDEEAIQIM0QILIANBEDYCHCADIAE2AhQgA0GYGjYCECADQRU2AgxBACECDNACCyADQSA2AhwgAyABNgIUIANBpBw2AhAgA0EVNgIMQQAhAgzPAgsgA0ELNgIcIAMgATYCFCADQaQcNgIQIANBFTYCDEEAIQIMzgILIANBDDYCHCADIAE2AhQgA0GkHDYCECADQRU2AgxBACECDM0CC0EAIQIgA0EANgIcIAMgATYCFCADQd0ONgIQI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WoiAUcNAAsgAyAFNgIADMICCyADQYEEOwEoIAMoAgQhACADQgA3AwAgAyAAIAZBAWoiARAuIgANAwwCCyADQQA2AgALQQAhAiADQQA2AhwgAyABNgIUIANB5R82AhAgA0EINgIMDL8CC0HVASECDKUCCyADQfMBNgIcIAMgATYCFCADIAA2AgxBACECDL0CC0EAIQACQCADKAI4IgJFDQAgAigCQCICRQ0AIAMgAhEAACEACyAARQ1uIABBFUcEQCADQQA2AhwgAyABNgIUIANBgg82AhAgA0EgNgIMQQAhAgy9AgsgA0GPATYCHCADIAE2AhQgA0HsGzYCECADQRU2AgxBACECDLwCCyABIARHBEAgA0ENNgIIIAMgATYCBEHTASECDKMCC0HyASECDLsCCyABIARGBEBB8QEhAgy7AgsCQAJAAkAgAS0AAEHIAGsOCwABCAgICAgICAgCCAsgAUEBaiEBQdABIQIMowILIAFBAWohAUHRASECDKICCyABQQFqIQFB0gEhAgyhAgtB8AEhAiABIARGDbkCIAMoAgAiACAEIAFraiEGIAEgAGtBAmohBQNAIAEtAAAgAEG11QBqLQAARw0EIABBAkYNAyAAQQFqIQAgBCABQQFqIgFHDQALIAMgBjYCAAy5AgtB7wEhAiABIARGDbgCIAMoAgAiACAEIAFraiEGIAEgAGtBAWohBQNAIAEtAAAgAEGz1QBqLQAARw0DIABBAUYNAiAAQQFqIQAgBCABQQFqIgFHDQALIAMgBjYCAAy4AgtB7gEhAiABIARGDbcCIAMoAgAiACAEIAFraiEGIAEgAGtBAmohBQNAIAEtAAAgAEGw1QBqLQAARw0CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBjYCAAy3AgsgAygCBCEAIANCADcDACADIAAgBUEBaiIBECsiAEUNAiADQewBNgIcIAMgATYCFCADIAA2AgxBACECDLYCCyADQQA2AgALIAMoAgQhACADQQA2AgQgAyAAIAEQKyIARQ2cAiADQe0BNgIcIAMgATYCFCADIAA2AgxBACECDLQCC0HPASECDJoCC0EAIQACQCADKAI4IgJFDQAgAigCNCICRQ0AIAMgAhEAACEACwJAIAAEQCAAQRVGDQEgA0EANgIcIAMgATYCFCADQeoNNgIQIANBJjYCDEEAIQIMtAILQc4BIQIMmgILIANB6wE2AhwgAyABNgIUIANBgBs2AhAgA0EVNgIMQQAhAgyyAgsgASAERgRAQesBIQIMsgILIAEtAABBL0YEQCABQQFqIQEMAQsgA0EANgIcIAMgATYCFCADQbI4NgIQIANBCDYCDEEAIQIMsQILQc0BIQIMlwILIAEgBEcEQCADQQ42AgggAyABNgIEQcwBIQIMlwILQeoBIQIMrwILIAEgBEYEQEHpASECDK8CCyABLQAAQTBrIgBB/wFxQQpJBEAgAyAAOgAqIAFBAWohAUHLASECDJYCCyADKAIEIQAgA0EANgIEIAMgACABEC8iAEUNlwIgA0HoATYCHCADIAE2AhQgAyAANgIMQQAhAgyuAgsgASAERgRAQecBIQIMrgILAkAgAS0AAEEuRgRAIAFBAWohAQwBCyADKAIEIQAgA0EANgIEIAMgACABEC8iAEUNmAIgA0HmATYCHCADIAE2AhQgAyAANgIMQQAhAgyuAgtBygEhAgyUAgsgASAERgRAQeUBIQIMrQILQQAhAEEBIQVBASEHQQAhAgJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAEtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyECQQAhBUEAIQcMAgtBCSECQQEhAEEAIQVBACEHDAELQQAhBUEBIQILIAMgAjoAKyABQQFqIQECQAJAIAMtAC5BEHENAAJAAkACQCADLQAqDgMBAAIECyAHRQ0DDAILIAANAQwCCyAFRQ0BCyADKAIEIQAgA0EANgIEIAMgACABEC8iAEUNAiADQeIBNgIcIAMgATYCFCADIAA2AgxBACECDK8CCyADKAIEIQAgA0EANgIEIAMgACABEC8iAEUNmgIgA0HjATYCHCADIAE2AhQgAyAANgIMQQAhAgyuAgsgAygCBCEAIANBADYCBCADIAAgARAvIgBFDZgCIANB5AE2AhwgAyABNgIUIAMgADYCDAytAgtByQEhAgyTAgtBACEAAkAgAygCOCICRQ0AIAIoAkQiAkUNACADIAIRAAAhAAsCQCAABEAgAEEVRg0BIANBADYCHCADIAE2AhQgA0GkDTYCECADQSE2AgxBACECDK0CC0HIASECDJMCCyADQeEBNgIcIAMgATYCFCADQdAaNgIQIANBFTYCDEEAIQIMqwILIAEgBEYEQEHhASECDKsCCwJAIAEtAABBIEYEQCADQQA7ATQgAUEBaiEBDAELIANBADYCHCADIAE2AhQgA0GZETYCECADQQk2AgxBACECDKsCC0HHASECDJECCyABIARGBEBB4AEhAgyqAgsCQCABLQAAQTBrQf8BcSICQQpJBEAgAUEBaiEBAkAgAy8BNCIAQZkzSw0AIAMgAEEKbCIAOwE0IABB/v8DcSACQf//A3NLDQAgAyAAIAJqOwE0DAILQQAhAiADQQA2AhwgAyABNgIUIANBlR42AhAgA0ENNgIMDKsCCyADQQA2AhwgAyABNgIUIANBlR42AhAgA0ENNgIMQQAhAgyqAgtBxgEhAgyQAgsgASAERgRAQd8BIQIMqQILAkAgAS0AAEEwa0H/AXEiAkEKSQRAIAFBAWohAQJAIAMvATQiAEGZM0sNACADIABBCmwiADsBNCAAQf7/A3EgAkH//wNzSw0AIAMgACACajsBNAwCC0EAIQIgA0EANgIcIAMgATYCFCADQZUeNgIQIANBDTYCDAyqAgsgA0EANgIcIAMgATYCFCADQZUeNgIQIANBDTYCDEEAIQIMqQILQcUBIQIMjwILIAEgBEYEQEHeASECDKgCCwJAIAEtAABBMGtB/wFxIgJBCkkEQCABQQFqIQECQCADLwE0IgBBmTNLDQAgAyAAQQpsIgA7ATQgAEH+/wNxIAJB//8Dc0sNACADIAAgAmo7ATQMAgtBACECIANBADYCHCADIAE2AhQgA0GVHjYCECADQQ02AgwMqQILIANBADYCHCADIAE2AhQgA0GVHjYCECADQQ02AgxBACECDKgCC0HEASECDI4CCyABIARGBEBB3QEhAgynAgsCQAJAAkACQCABLQAAQQprDhcCAwMAAwMDAwMDAwMDAwMDAwMDAwMDAQMLIAFBAWoMBQsgAUEBaiEBQcMBIQIMjwILIAFBAWohASADQS9qLQAAQQFxDQggA0EANgIcIAMgATYCFCADQY0LNgIQIANBDTYCDEEAIQIMpwILIANBADYCHCADIAE2AhQgA0GNCzYCECADQQ02AgxBACECDKYCCyABIARHBEAgA0EPNgIIIAMgATYCBEEBIQIMjQILQdwBIQIMpQILAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0HbASECDKYCCyADKAIEIQAgA0EANgIEIAMgACABEC0iAEUEQCABQQFqIQEMBAsgA0HaATYCHCADIAA2AgwgAyABQQFqNgIUQQAhAgylAgsgAygCBCEAIANBADYCBCADIAAgARAtIgANASABQQFqCyEBQcEBIQIMigILIANB2QE2AhwgAyAANgIMIAMgAUEBajYCFEEAIQIMogILQcIBIQIMiAILIANBL2otAABBAXENASADQQA2AhwgAyABNgIUIANB5Bw2AhAgA0EZNgIMQQAhAgygAgsgASAERgRAQdkBIQIMoAILAkACQAJAIAEtAABBCmsOBAECAgACCyABQQFqIQEMAgsgAUEBaiEBDAELIAMtAC5BwABxRQ0BC0EAIQACQCADKAI4IgJFDQAgAigCPCICRQ0AIAMgAhEAACEACyAARQ2gASAAQRVGBEAgA0HZADYCHCADIAE2AhQgA0G3GjYCECADQRU2AgxBACECDJ8CCyADQQA2AhwgAyABNgIUIANBgA02AhAgA0EbNgIMQQAhAgyeAgsgA0EANgIcIAMgATYCFCADQdwoNgIQIANBAjYCDEEAIQIMnQILIAEgBEcEQCADQQw2AgggAyABNgIEQb8BIQIMhAILQdgBIQIMnAILIAEgBEYEQEHXASECDJwCCwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEHBAGsOFQABAgNaBAUGWlpaBwgJCgsMDQ4PEFoLIAFBAWohAUH7ACECDJICCyABQQFqIQFB/AAhAgyRAgsgAUEBaiEBQYEBIQIMkAILIAFBAWohAUGFASECDI8CCyABQQFqIQFBhgEhAgyOAgsgAUEBaiEBQYkBIQIMjQILIAFB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IgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEGE1QBqLQAARw04IABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAyMAgsgA0EANgIAIAZBAWohAUEqDDgLIAEgBEYEQEHGASECDIsCCyABLQAAQdAARw04IAFBAWohAUElDDcLQcUBIQIgASAERg2JAiADKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGB1QBqLQAARw02IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAyKAgsgA0EANgIAIAZBAWohAUEODDYLIAEgBEYEQEHEASECDIkCCyABLQAAQcUARw02IAFBAWohAUGrASECDO8BCyABIARGBEBBwwEhAgyIAgsCQAJAAkACQCABLQAAQcIAaw4PAAECOTk5OTk5OTk5OTkDOQsgAUEBaiEBQacBIQIM8QELIAFBAWohAUGoASECDPABCyABQQFqIQFBqQEhAgzvAQsgAUEBaiEBQaoBIQIM7gELQcIBIQIgASAERg2GAiADKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEH+1ABqLQAARw0zIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAyHAgsgA0EANgIAIAZBAWohAUEUDDMLQcEBIQIgASAERg2FAiADKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEH51ABqLQAARw0yIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAyGAgsgA0EANgIAIAZBAWohAUErDDILQcABIQIgASAERg2EAiADKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEH21ABqLQAARw0xIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAyFAgsgA0EANgIAIAZBAWohAUEsDDELQb8BIQIgASAERg2DAiADKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGh1QBqLQAARw0wIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMg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wELAkACQAJAAkAgAS0AAEEtaw4jACQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkASQkJCQkAiQkJAMkCyABQQFqIQFBjgEhAgzcAQsgAUEBaiEBQY8BIQIM2wELIAFBAWohAUGUASECDNoBCyABQQFqIQFBlQEhAgzZAQtBrQEhAiABIARGDfEBIAMoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQdfUAGotAABHDR4gAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAyAFNgIADPIBCyADQQA2AgAgBkEBaiEBQQsMHgsgASAERgRAQawBIQIM8QELAkACQCABLQAAQcEAaw4DACABIAsgAUEBaiEBQZABIQIM2AELIAFBAWohAUGTASECDNcBCyABIARGBEBBqwEhAgzwAQsCQAJAIAEtAABBwQBrDg8AHx8fHx8fHx8fHx8fHwEfCyABQQFqIQFBkQEhAgzXAQsgAUEBaiEBQZIBIQIM1gELIAEgBEYEQEGqASECDO8BCyABLQAAQcwARw0cIAFBAWohAUEKDBsLQakBIQIgASAERg3tASADKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHR1ABqLQAARw0aIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAzuAQsgA0EANgIAIAZBAWohAUEeDBoLQagBIQIgASAERg3sASADKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEHK1ABqLQAARw0ZIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAztAQsgA0EANgIAIAZBAWohAUEVDBkLQacBIQIgASAERg3rASADKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHH1ABqLQAARw0YIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAzsAQsgA0EANgIAIAZBAWohAUEXDBgLQaYBIQIgASAERg3qASADKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHB1ABqLQAARw0XIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAzrAQsgA0EANgIAIAZBAWohAUEYDBcLIAEgBEYEQEGlASECDOoBCwJAAkAgAS0AAEHJAGsOBwAZGRkZGQEZCyABQQFqIQFBiwEhAgzRAQsgAUEBaiEBQYwBIQIM0AELQaQBIQIgASAERg3oASADKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGm1QBqLQAARw0VIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAzpAQsgA0EANgIAIAZBAWohAUEJDBULQaMBIQIgASAERg3nASADKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGk1QBqLQAARw0UIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAzoAQsgA0EANgIAIAZBAWohAUEfDBQLQaIBIQIgASAERg3mASADKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEG+1ABqLQAARw0TIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAznAQsgA0EANgIAIAZBAWohAUECDBMLQaEBIQIgASAERg3lASADKAIAIgAgBCABa2ohBSABIABrQQFqIQYDQCABLQAAIABBvNQAai0AAEcNESAAQQFGDQIgAEEBaiEAIAQgAUEBaiIBRw0ACyADIAU2AgAM5QELIAEgBEYEQEGgASECDOUBC0EBIAEtAABB3wBHDREaIAFBAWohAUGHASECDMsBCyADQQA2AgAgBkEBaiEBQYgBIQIMygELQZ8BIQIgASAERg3iASADKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEGE1QBqLQAARw0PIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAzjAQsgA0EANgIAIAZBAWohAUEpDA8LQZ4BIQIgASAERg3hASADKAIAIgAgBCABa2ohBSABIABrQQNqIQYCQANAIAEtAAAgAEG41ABqLQAARw0OIABBA0YNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAziA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QgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAyAFNgIADNgBCyADQQA2AgAgBkEBaiEBQRAMBAsgASAERgRAQZMBIQIM1wELAkACQCABLQAAQcMAaw4MAAYGBgYGBgYGBgYBBgsgAUEBaiEBQfkAIQIMvgELIAFBAWohAUH6ACECDL0BC0GSASECIAEgBEYN1QEgAygCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBoNQAai0AAEcNAiAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyADIAU2AgAM1gELIANBADYCACAGQQFqIQFBJAwCCyADQQA2AgAMAgsgASAERgRAQZEBIQIM1AELIAEtAABBzABHDQEgAUEBaiEBQRMLOgApIAMoAgQhACADQQA2AgQgAyAAIAEQLiIADQIMAQtBACECIANBADYCHCADIAE2AhQgA0H+HzYCECADQQY2AgwM0QELQfgAIQIMtwELIANBkAE2AhwgAyABNgIUIAMgADYCDEEAIQIMzwELQQAhAAJAIAMoAjgiAkUNACACKAJAIgJFDQAgAyACEQAAIQALIABFDQAgAEEVRg0BIANBADYCHCADIAE2AhQgA0GCDzYCECADQSA2AgxBACECDM4BC0H3ACECDLQBCyADQY8BNgIcIAMgATYCFCADQewbNgIQIANBFTYCDEEAIQIMzAELIAEgBEYEQEGPASECDMwBCwJAIAEtAABBIEYEQCABQQFqIQEMAQsgA0EANgIcIAMgATYCFCADQZsfNgIQIANBBjYCDEEAIQIMzAELQQIhAgyyAQsDQCABLQAAQSBHDQIgBCABQQFqIgFHDQALQY4BIQIMygELIAEgBEYEQEGNASECDMoBCwJAIAEtAABBCWsOBEoAAEoAC0H1ACECDLABCyADLQApQQVGBEBB9gAhAgywAQtB9AAhAgyvAQsgASAERgRAQYwBIQIMyAELIANBEDYCCCADIAE2AgQMCgsgASAERgRAQYsBIQIMxwELAkAgAS0AAEEJaw4ERwAARwALQfMAIQIMrQELIAEgBEcEQCADQRA2AgggAyABNgIEQfEAIQIMrQELQYoBIQIMxQELAkAgASAERwRAA0AgAS0AAEGg0ABqLQAAIgBBA0cEQAJAIABBAWsOAkkABAtB8AAhAgyvAQsgBCABQQFqIgFHDQALQYgBIQIMxgELQYgBIQIMxQELIANBADYCHCADIAE2AhQgA0HbIDYCECADQQc2AgxBACECDMQBCyABIARGBEBBiQEhAgzEAQsCQAJAAkAgAS0AAEGg0gBqLQAAQQFrDgNGAgABC0HyACECDKwBCyADQQA2AhwgAyABNgIUIANBtBI2AhAgA0EHNgIMQQAhAgzEAQtB6gAhAgyqAQsgASAERwRAIAFBAWohAUHvACECDKoBC0GHASECDMIBCyAEIAEiAEYEQEGGASECDMIBCyAALQAAIgFBL0YEQCAAQQFqIQFB7gAhAgypAQsgAUEJayICQRdLDQEgACEBQQEgAnRBm4CABHENQQwBCyAEIAEiAEYEQEGFASECDMEBCyAALQAAQS9HDQAgAEEBaiEBDAMLQQAhAiADQQA2AhwgAyAANgIUIANB2yA2AhAgA0EHNgIMDL8BCwJAAkACQAJAAkADQCABLQAAQaDOAGotAAAiAEEFRwRAAkACQCAAQQFrDghHBQYHCAAEAQgLQesAIQIMrQELIAFBAWohAUHtACECDKwBCyAEIAFBAWoiAUcNAAtBhAEhAgzDAQsgAUEBagwUCyADKAIEIQAgA0EANgIEIAMgACABECwiAEUNHiADQdsANgIcIAMgATYCFCADIAA2AgxBACECDMEBCyADKAIEIQAgA0EANgIEIAMgACABECwiAEUNHiADQd0ANgIcIAMgATYCFCADIAA2AgxBACECDMABCyADKAIEIQAgA0EANgIEIAMgACABECwiAEUNHiADQfoANgIcIAMgATYCFCADIAA2AgxBACECDL8BCyADQQA2AhwgAyABNgIUIANB+Q82AhAgA0EHNgIMQQAhAgy+AQsgASAERgRAQYMBIQIMvgELAkAgAS0AAEGgzgBqLQAAQQFrDgg+BAUGAAgCAwcLIAFBAWohAQtBAyECDKMBCyABQQFqDA0LQQAhAiADQQA2AhwgA0HREjYCECADQQc2AgwgAyABQQFqNgIUDLoBCyADKAIEIQAgA0EANgIEIAMgACABECwiAEUNFiADQdsANgIcIAMgATYCFCADIAA2AgxBACECDLkBCyADKAIEIQAgA0EANgIEIAMgACABECwiAEUNFiADQd0ANgIcIAMgATYCFCADIAA2AgxBACECDLgBCyADKAIEIQAgA0EANgIEIAMgACABECwiAEUNFiADQfoANgIcIAMgATYCFCADIAA2AgxBACECDLcBCyADQQA2AhwgAyABNgIUIANB+Q82AhAgA0EHNgIMQQAhAgy2AQtB7AAhAgycAQsgASAERgRAQYIBIQIMtQELIAFBAWoMAgsgASAERgRAQYEBIQIMtAELIAFBAWoMAQsgASAERg0BIAFBAWoLIQFBBCECDJgBC0GAASECDLABCwNAIAEtAABBoMwAai0AACIAQQJHBEAgAEEBRwRAQekAIQIMmQELDDELIAQgAUEBaiIBRw0AC0H/ACECDK8BCyABIARGBEBB/gAhAgyvAQsCQCABLQAAQQlrDjcvAwYvBAYGBgYGBgYGBgYGBgYGBgYGBgUGBgIGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYABgsgAUEBagshAUEFIQIMlAELIAFBAWoMBgsgAygCBCEAIANBADYCBCADIAAgARAsIgBFDQggA0HbADYCHCADIAE2AhQgAyAANgIMQQAhAgyrAQsgAygCBCEAIANBADYCBCADIAAgARAsIgBFDQggA0HdADYCHCADIAE2AhQgAyAANgIMQQAhAgyqAQsgAygCBCEAIANBADYCBCADIAAgARAsIgBFDQggA0H6ADYCHCADIAE2AhQgAyAANgIMQQAhAgypAQsgA0EANgIcIAMgATYCFCADQY0UNgIQIANBBzYCDEEAIQIMqAELAkACQAJAAkADQCABLQAAQaDKAGotAAAiAEEFRwRAAkAgAEEBaw4GLgMEBQYABgtB6AAhAgyUAQsgBCABQQFqIgFHDQALQf0AIQIMqwELIAMoAgQhACADQQA2AgQgAyAAIAEQLCIARQ0HIANB2wA2AhwgAyABNgIUIAMgADYCDEEAIQIMqgELIAMoAgQhACADQQA2AgQgAyAAIAEQLCIARQ0HIANB3QA2AhwgAyABNgIUIAMgADYCDEEAIQIMqQELIAMoAgQhACADQQA2AgQgAyAAIAEQLCIARQ0HIANB+gA2AhwgAyABNgIUIAMgADYCDEEAIQIMqAELIANBADYCHCADIAE2AhQgA0HkCDYCECADQQc2AgxBACECDKcBCyABIARGDQEgAUEBagshAUEGIQIMjAELQfwAIQIMpAELAkACQAJAAkADQCABLQAAQaDIAGotAAAiAEEFRwRAIABBAWsOBCkCAwQFCyAEIAFBAWoiAUcNAAtB+wAhAgynAQsgAygCBCEAIANBADYCBCADIAAgARAsIgBFDQMgA0HbADYCHCADIAE2AhQgAyAANgIMQQAhAgymAQsgAygCBCEAIANBADYCBCADIAAgARAsIgBFDQMgA0HdADYCHCADIAE2AhQgAyAANgIMQQAhAgylAQsgAygCBCEAIANBADYCBCADIAAgARAsIgBFDQMgA0H6ADYCHCADIAE2AhQgAyAANgIMQQAhAgykAQsgA0EANgIcIAMgATYCFCADQbwKNgIQIANBBzYCDEEAIQIMowELQc8AIQIMiQELQdEAIQIMiAELQecAIQIMhwELIAEgBEYEQEH6ACECDKABCwJAIAEtAABBCWsOBCAAACAACyABQQFqIQFB5gAhAgyGAQsgASAERgRAQfkAIQIMnwELAkAgAS0AAEEJaw4EHwAAHwALQQAhAAJAIAMoAjgiAkUNACACKAI4IgJFDQAgAyACEQAAIQALIABFBEBB4gEhAgyGAQsgAEEVRwRAIANBADYCHCADIAE2AhQgA0HJDTYCECADQRo2AgxBACECDJ8BCyADQfgANgIcIAMgATYCFCADQeoaNgIQIANBFTYCDEEAIQIMngELIAEgBEcEQCADQQ02AgggAyABNgIEQeQAIQIMhQELQfcAIQIMnQELIAEgBEYEQEH2ACECDJ0BCwJAAkACQCABLQAAQcgAaw4LAAELCwsLCwsLCwILCyABQQFqIQFB3QAhAgyFAQsgAUEBaiEBQeAAIQIMhAELIAFBAWohAUHjACECDIMBC0H1ACECIAEgBEYNmwEgAygCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABBtdUAai0AAEcNCCAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyADIAU2AgAMnAELIAMoAgQhACADQgA3AwAgAyAAIAZBAWoiARArIgAEQCADQfQANgIcIAMgATYCFCADIAA2AgxBACECDJwBC0HiACECDIIBC0EAIQACQCADKAI4IgJFDQAgAigCNCICRQ0AIAMgAhEAACEACwJAIAAEQCAAQRVGDQEgA0EANgIcIAMgATYCFCADQeoNNgIQIANBJjYCDEEAIQIMnAELQeEAIQIMggELIANB8wA2AhwgAyABNgIUIANBgBs2AhAgA0EVNgIMQQAhAgyaAQsgAy0AKSIAQSNrQQtJDQkCQCAAQQZLDQBBASAAdEHKAHFFDQAMCgtBACECIANBADYCHCADIAE2AhQgA0HtCTYCECADQQg2AgwMmQELQfIAIQIgASAERg2YASADKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGz1QBqLQAARw0FIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAMgBTYCAAyZAQsgAygCBCEAIANCADcDACADIAAgBkEBaiIBECsiAARAIANB8QA2AhwgAyABNgIUIAMgADYCDEEAIQIMmQELQd8AIQIMfwtBACEAAkAgAygCOCICRQ0AIAIoAjQiAkUNACADIAIRAAAhAAsCQCAABEAgAEEVRg0BIANBADYCHCADIAE2AhQgA0HqDTYCECADQSY2AgxBACECDJkBC0HeACECDH8LIANB8AA2AhwgAyABNgIUIANBgBs2AhAgA0EVNgIMQQAhAgyXAQsgAy0AKUEhRg0GIANBADYCHCADIAE2AhQgA0GRCjYCECADQQg2AgxBACECDJYBC0HvACECIAEgBEYNlQEgAygCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABBsNUAai0AAEcNAiAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyADIAU2AgAMlgELIAMoAgQhACADQgA3AwAgAyAAIAZBAWoiARArIgBFDQIgA0HtADYCHCADIAE2AhQgAyAANgIMQQAhAgyVAQsgA0EANgIACyADKAIEIQAgA0EANgIEIAMgACABECsiAEUNgAEgA0HuADYCHCADIAE2AhQg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AMgBDYCFCADIAE2AgwgASEACyAAC74CAQJ/IABBADoAACAAQeQAaiIBQQFrQQA6AAAgAEEAOgACIABBADoAASABQQNrQQA6AAAgAUECa0EAOgAAIABBADoAAyABQQRrQQA6AABBACAAa0EDcSIBIABqIgBBADYCAEHkACABa0F8cSICIABqIgFBBGtBADYCAAJAIAJBCUkNACAAQQA2AgggAEEANgIEIAFBCGtBADYCACABQQxrQQA2AgAgAkEZSQ0AIABBADYCGCAAQQA2AhQgAEEANgIQIABBADYCDCABQRBrQQA2AgAgAUEUa0EANgIAIAFBGGtBADYCACABQRxrQQA2AgAgAiAAQQRxQRhyIgJrIgFBIEkNACAAIAJqIQADQCAAQgA3AxggAEIANwMQIABCADcDCCAAQgA3AwAgAEEgaiEAIAFBIGsiAUEfSw0ACwsLVgEBfwJAIAAoAgwNAAJAAkACQAJAIAAtADEOAwEAAwILIAAoAjgiAUUNACABKAIwIgFFDQAgACABEQAAIgENAwtBAA8LAAsgAEHKGTYCEEEOIQELIAELGgAgACgCDEUEQCAAQd4fNgIQIABBFTYCDAsLFAAgACgCDEEVRgRAIABBADYCDAsLFAAgACgCDEEWRgRAIABBADYCDAsLBwAgACgCDAsHACAAKAIQCwkAIAAgATYCEAsHACAAKAIUCysAAkAgAEEnTw0AQv//////CSAArYhCAYNQDQAgAEECdEHQOGooAgAPCwALFwAgAEEvTwRAAAsgAEECdEHsOWooAgALvwkBAX9B9C0hAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYW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UFBQUFBQUFBQUFBQUFBQUFBQUFBQAFAAUABQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUAAAAFAEGp0AALBQEBAAEBAEHA0AALAQEAQdrQAAtBAgAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQanSAAsFAQEAAQEAQcDSAAsBAQBBytIACwYCAAAAAAIAQeHSAAs6AwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBBoNQAC50BTk9VTkNFRUNLT1VUTkVDVEVURUNSSUJFTFVTSEVURUFEU0VBUkNIUkdFQ1RJVklUWUxFTkRBUlZFT1RJRllQVElPTlNDSFNFQVlTVEFUQ0hHRVVFUllPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFVFRQQ0VUU1BBRFRQLw==";
+ var wasmBuffer;
+ Object.defineProperty(module, "exports", {
+ get: () => {
+ return wasmBuffer ? wasmBuffer : wasmBuffer = Buffer2.from(wasmBase64, "base64");
+ }
+ });
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/constants.js
+var require_constants8 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/constants.js"(exports, module) {
+ "use strict";
+ var corsSafeListedMethods = (
+ /** @type {const} */
+ ["GET", "HEAD", "POST"]
+ );
+ var corsSafeListedMethodsSet = new Set(corsSafeListedMethods);
+ var nullBodyStatus = (
+ /** @type {const} */
+ [101, 204, 205, 304]
+ );
+ var redirectStatus = (
+ /** @type {const} */
+ [301, 302, 303, 307, 308]
+ );
+ var redirectStatusSet = new Set(redirectStatus);
+ var badPorts = (
+ /** @type {const} */
+ [
+ "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"
+ ]
+ );
+ var badPortsSet = new Set(badPorts);
+ var referrerPolicyTokens = (
+ /** @type {const} */
+ [
+ "no-referrer",
+ "no-referrer-when-downgrade",
+ "same-origin",
+ "origin",
+ "strict-origin",
+ "origin-when-cross-origin",
+ "strict-origin-when-cross-origin",
+ "unsafe-url"
+ ]
+ );
+ var referrerPolicy = (
+ /** @type {const} */
+ [
+ "",
+ ...referrerPolicyTokens
+ ]
+ );
+ var referrerPolicyTokensSet = new Set(referrerPolicyTokens);
+ var requestRedirect = (
+ /** @type {const} */
+ ["follow", "manual", "error"]
+ );
+ var safeMethods = (
+ /** @type {const} */
+ ["GET", "HEAD", "OPTIONS", "TRACE"]
+ );
+ var safeMethodsSet = new Set(safeMethods);
+ var requestMode = (
+ /** @type {const} */
+ ["navigate", "same-origin", "no-cors", "cors"]
+ );
+ var requestCredentials = (
+ /** @type {const} */
+ ["omit", "same-origin", "include"]
+ );
+ var requestCache = (
+ /** @type {const} */
+ [
+ "default",
+ "no-store",
+ "reload",
+ "no-cache",
+ "force-cache",
+ "only-if-cached"
+ ]
+ );
+ var requestBodyHeader = (
+ /** @type {const} */
+ [
+ "content-encoding",
+ "content-language",
+ "content-location",
+ "content-type",
+ // See https://github.com/nodejs/undici/issues/2021
+ // 'Content-Length' is a forbidden header name, which is typically
+ // removed in the Headers implementation. However, undici doesn't
+ // filter out headers, so we add it here.
+ "content-length"
+ ]
+ );
+ var requestDuplex = (
+ /** @type {const} */
+ [
+ "half"
+ ]
+ );
+ var forbiddenMethods = (
+ /** @type {const} */
+ ["CONNECT", "TRACE", "TRACK"]
+ );
+ var forbiddenMethodsSet = new Set(forbiddenMethods);
+ var subresource = (
+ /** @type {const} */
+ [
+ "audio",
+ "audioworklet",
+ "font",
+ "image",
+ "manifest",
+ "paintworklet",
+ "script",
+ "style",
+ "track",
+ "video",
+ "xslt",
+ ""
+ ]
+ );
+ var subresourceSet = new Set(subresource);
+ module.exports = {
+ subresource,
+ forbiddenMethods,
+ requestBodyHeader,
+ referrerPolicy,
+ requestRedirect,
+ requestMode,
+ requestCredentials,
+ requestCache,
+ redirectStatus,
+ corsSafeListedMethods,
+ nullBodyStatus,
+ safeMethods,
+ badPorts,
+ requestDuplex,
+ subresourceSet,
+ badPortsSet,
+ redirectStatusSet,
+ corsSafeListedMethodsSet,
+ safeMethodsSet,
+ forbiddenMethodsSet,
+ referrerPolicyTokens: referrerPolicyTokensSet
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/global.js
+var require_global3 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/global.js"(exports, module) {
+ "use strict";
+ var globalOrigin = Symbol.for("undici.globalOrigin.1");
+ function getGlobalOrigin() {
+ return globalThis[globalOrigin];
+ }
+ function setGlobalOrigin(newOrigin) {
+ if (newOrigin === void 0) {
+ Object.defineProperty(globalThis, globalOrigin, {
+ value: void 0,
+ writable: true,
+ enumerable: false,
+ configurable: false
+ });
+ return;
+ }
+ const parsedURL = new URL(newOrigin);
+ if (parsedURL.protocol !== "http:" && parsedURL.protocol !== "https:") {
+ throw new TypeError(`Only http & https urls are allowed, received ${parsedURL.protocol}`);
+ }
+ Object.defineProperty(globalThis, globalOrigin, {
+ value: parsedURL,
+ writable: true,
+ enumerable: false,
+ configurable: false
+ });
+ }
+ module.exports = {
+ getGlobalOrigin,
+ setGlobalOrigin
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/data-url.js
+var require_data_url = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/data-url.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var encoder = new TextEncoder();
+ var HTTP_TOKEN_CODEPOINTS = /^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;
+ var HTTP_WHITESPACE_REGEX = /[\u000A\u000D\u0009\u0020]/;
+ var ASCII_WHITESPACE_REPLACE_REGEX = /[\u0009\u000A\u000C\u000D\u0020]/g;
+ var HTTP_QUOTED_STRING_TOKENS = /^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;
+ function dataURLProcessor(dataURL) {
+ assert2(dataURL.protocol === "data:");
+ let input = URLSerializer(dataURL, true);
+ input = input.slice(5);
+ const position = { position: 0 };
+ let mimeType = collectASequenceOfCodePointsFast(
+ ",",
+ input,
+ position
+ );
+ const mimeTypeLength = mimeType.length;
+ mimeType = removeASCIIWhitespace(mimeType, true, true);
+ if (position.position >= input.length) {
+ return "failure";
+ }
+ position.position++;
+ const encodedBody = input.slice(mimeTypeLength + 1);
+ let body = stringPercentDecode(encodedBody);
+ if (/;(\u0020){0,}base64$/i.test(mimeType)) {
+ const stringBody = isomorphicDecode(body);
+ body = forgivingBase64(stringBody);
+ if (body === "failure") {
+ return "failure";
+ }
+ mimeType = mimeType.slice(0, -6);
+ mimeType = mimeType.replace(/(\u0020)+$/, "");
+ mimeType = mimeType.slice(0, -1);
+ }
+ if (mimeType.startsWith(";")) {
+ mimeType = "text/plain" + mimeType;
+ }
+ let mimeTypeRecord = parseMIMEType(mimeType);
+ if (mimeTypeRecord === "failure") {
+ mimeTypeRecord = parseMIMEType("text/plain;charset=US-ASCII");
+ }
+ return { mimeType: mimeTypeRecord, body };
+ }
+ function URLSerializer(url2, excludeFragment = false) {
+ if (!excludeFragment) {
+ return url2.href;
+ }
+ const href = url2.href;
+ const hashLength = url2.hash.length;
+ const serialized = hashLength === 0 ? href : href.substring(0, href.length - hashLength);
+ if (!hashLength && href.endsWith("#")) {
+ return serialized.slice(0, -1);
+ }
+ return serialized;
+ }
+ function collectASequenceOfCodePoints(condition, input, position) {
+ let result = "";
+ while (position.position < input.length && condition(input[position.position])) {
+ result += input[position.position];
+ position.position++;
+ }
+ return result;
+ }
+ function collectASequenceOfCodePointsFast(char, input, position) {
+ const idx = input.indexOf(char, position.position);
+ const start = position.position;
+ if (idx === -1) {
+ position.position = input.length;
+ return input.slice(start);
+ }
+ position.position = idx;
+ return input.slice(start, position.position);
+ }
+ function stringPercentDecode(input) {
+ const bytes = encoder.encode(input);
+ return percentDecode(bytes);
+ }
+ function isHexCharByte(byte) {
+ return byte >= 48 && byte <= 57 || byte >= 65 && byte <= 70 || byte >= 97 && byte <= 102;
+ }
+ function hexByteToNumber(byte) {
+ return (
+ // 0-9
+ byte >= 48 && byte <= 57 ? byte - 48 : (byte & 223) - 55
+ );
+ }
+ function percentDecode(input) {
+ const length = input.length;
+ const output = new Uint8Array(length);
+ let j = 0;
+ for (let i = 0; i < length; ++i) {
+ const byte = input[i];
+ if (byte !== 37) {
+ output[j++] = byte;
+ } else if (byte === 37 && !(isHexCharByte(input[i + 1]) && isHexCharByte(input[i + 2]))) {
+ output[j++] = 37;
+ } else {
+ output[j++] = hexByteToNumber(input[i + 1]) << 4 | hexByteToNumber(input[i + 2]);
+ i += 2;
+ }
+ }
+ return length === j ? output : output.subarray(0, j);
+ }
+ function parseMIMEType(input) {
+ input = removeHTTPWhitespace(input, true, true);
+ const position = { position: 0 };
+ const type2 = collectASequenceOfCodePointsFast(
+ "/",
+ input,
+ position
+ );
+ if (type2.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(type2)) {
+ return "failure";
+ }
+ if (position.position >= input.length) {
+ return "failure";
+ }
+ position.position++;
+ let subtype = collectASequenceOfCodePointsFast(
+ ";",
+ input,
+ position
+ );
+ subtype = removeHTTPWhitespace(subtype, false, true);
+ if (subtype.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(subtype)) {
+ return "failure";
+ }
+ const typeLowercase = type2.toLowerCase();
+ const subtypeLowercase = subtype.toLowerCase();
+ const mimeType = {
+ type: typeLowercase,
+ subtype: subtypeLowercase,
+ /** @type {Map} */
+ parameters: /* @__PURE__ */ new Map(),
+ // https://mimesniff.spec.whatwg.org/#mime-type-essence
+ essence: `${typeLowercase}/${subtypeLowercase}`
+ };
+ while (position.position < input.length) {
+ position.position++;
+ collectASequenceOfCodePoints(
+ // https://fetch.spec.whatwg.org/#http-whitespace
+ (char) => HTTP_WHITESPACE_REGEX.test(char),
+ input,
+ position
+ );
+ let parameterName = collectASequenceOfCodePoints(
+ (char) => char !== ";" && char !== "=",
+ input,
+ position
+ );
+ parameterName = parameterName.toLowerCase();
+ if (position.position < input.length) {
+ if (input[position.position] === ";") {
+ continue;
+ }
+ position.position++;
+ }
+ if (position.position >= input.length) {
+ break;
+ }
+ let parameterValue = null;
+ if (input[position.position] === '"') {
+ parameterValue = collectAnHTTPQuotedString(input, position, true);
+ collectASequenceOfCodePointsFast(
+ ";",
+ input,
+ position
+ );
+ } else {
+ parameterValue = collectASequenceOfCodePointsFast(
+ ";",
+ input,
+ position
+ );
+ parameterValue = removeHTTPWhitespace(parameterValue, false, true);
+ if (parameterValue.length === 0) {
+ continue;
+ }
+ }
+ if (parameterName.length !== 0 && HTTP_TOKEN_CODEPOINTS.test(parameterName) && (parameterValue.length === 0 || HTTP_QUOTED_STRING_TOKENS.test(parameterValue)) && !mimeType.parameters.has(parameterName)) {
+ mimeType.parameters.set(parameterName, parameterValue);
+ }
+ }
+ return mimeType;
+ }
+ function forgivingBase64(data) {
+ data = data.replace(ASCII_WHITESPACE_REPLACE_REGEX, "");
+ let dataLength = data.length;
+ if (dataLength % 4 === 0) {
+ if (data.charCodeAt(dataLength - 1) === 61) {
+ --dataLength;
+ if (data.charCodeAt(dataLength - 1) === 61) {
+ --dataLength;
+ }
+ }
+ }
+ if (dataLength % 4 === 1) {
+ return "failure";
+ }
+ if (/[^+/0-9A-Za-z]/.test(data.length === dataLength ? data : data.substring(0, dataLength))) {
+ return "failure";
+ }
+ const buffer = Buffer.from(data, "base64");
+ return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
+ }
+ function collectAnHTTPQuotedString(input, position, extractValue = false) {
+ const positionStart = position.position;
+ let value2 = "";
+ assert2(input[position.position] === '"');
+ position.position++;
+ while (true) {
+ value2 += collectASequenceOfCodePoints(
+ (char) => char !== '"' && char !== "\\",
+ input,
+ position
+ );
+ if (position.position >= input.length) {
+ break;
+ }
+ const quoteOrBackslash = input[position.position];
+ position.position++;
+ if (quoteOrBackslash === "\\") {
+ if (position.position >= input.length) {
+ value2 += "\\";
+ break;
+ }
+ value2 += input[position.position];
+ position.position++;
+ } else {
+ assert2(quoteOrBackslash === '"');
+ break;
+ }
+ }
+ if (extractValue) {
+ return value2;
+ }
+ return input.slice(positionStart, position.position);
+ }
+ function serializeAMimeType(mimeType) {
+ assert2(mimeType !== "failure");
+ const { parameters, essence } = mimeType;
+ let serialization = essence;
+ for (let [name, value2] of parameters.entries()) {
+ serialization += ";";
+ serialization += name;
+ serialization += "=";
+ if (!HTTP_TOKEN_CODEPOINTS.test(value2)) {
+ value2 = value2.replace(/(\\|")/g, "\\$1");
+ value2 = '"' + value2;
+ value2 += '"';
+ }
+ serialization += value2;
+ }
+ return serialization;
+ }
+ function isHTTPWhiteSpace(char) {
+ return char === 13 || char === 10 || char === 9 || char === 32;
+ }
+ function removeHTTPWhitespace(str, leading = true, trailing = true) {
+ return removeChars(str, leading, trailing, isHTTPWhiteSpace);
+ }
+ function isASCIIWhitespace(char) {
+ return char === 13 || char === 10 || char === 9 || char === 12 || char === 32;
+ }
+ function removeASCIIWhitespace(str, leading = true, trailing = true) {
+ return removeChars(str, leading, trailing, isASCIIWhitespace);
+ }
+ function removeChars(str, leading, trailing, predicate) {
+ let lead = 0;
+ let trail = str.length - 1;
+ if (leading) {
+ while (lead < str.length && predicate(str.charCodeAt(lead))) lead++;
+ }
+ if (trailing) {
+ while (trail > 0 && predicate(str.charCodeAt(trail))) trail--;
+ }
+ return lead === 0 && trail === str.length - 1 ? str : str.slice(lead, trail + 1);
+ }
+ function isomorphicDecode(input) {
+ const length = input.length;
+ if ((2 << 15) - 1 > length) {
+ return String.fromCharCode.apply(null, input);
+ }
+ let result = "";
+ let i = 0;
+ let addition = (2 << 15) - 1;
+ while (i < length) {
+ if (i + addition > length) {
+ addition = length - i;
+ }
+ result += String.fromCharCode.apply(null, input.subarray(i, i += addition));
+ }
+ return result;
+ }
+ function minimizeSupportedMimeType(mimeType) {
+ switch (mimeType.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";
+ }
+ if (mimeType.subtype.endsWith("+json")) {
+ return "application/json";
+ }
+ if (mimeType.subtype.endsWith("+xml")) {
+ return "application/xml";
+ }
+ return "";
+ }
+ module.exports = {
+ dataURLProcessor,
+ URLSerializer,
+ collectASequenceOfCodePoints,
+ collectASequenceOfCodePointsFast,
+ stringPercentDecode,
+ parseMIMEType,
+ collectAnHTTPQuotedString,
+ serializeAMimeType,
+ removeChars,
+ removeHTTPWhitespace,
+ minimizeSupportedMimeType,
+ HTTP_TOKEN_CODEPOINTS,
+ isomorphicDecode
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/webidl/index.js
+var require_webidl2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/webidl/index.js"(exports, module) {
+ "use strict";
+ var { types, inspect } = __require("node:util");
+ var { markAsUncloneable } = __require("node:worker_threads");
+ var UNDEFINED = 1;
+ var BOOLEAN = 2;
+ var STRING = 3;
+ var SYMBOL = 4;
+ var NUMBER = 5;
+ var BIGINT = 6;
+ var NULL = 7;
+ var OBJECT = 8;
+ var FunctionPrototypeSymbolHasInstance = Function.call.bind(Function.prototype[Symbol.hasInstance]);
+ var webidl = {
+ converters: {},
+ util: {},
+ errors: {},
+ is: {}
+ };
+ webidl.errors.exception = function(message) {
+ return new TypeError(`${message.header}: ${message.message}`);
+ };
+ webidl.errors.conversionFailed = function(opts) {
+ const plural = opts.types.length === 1 ? "" : " one of";
+ const message = `${opts.argument} could not be converted to${plural}: ${opts.types.join(", ")}.`;
+ return webidl.errors.exception({
+ header: opts.prefix,
+ message
+ });
+ };
+ webidl.errors.invalidArgument = function(context) {
+ return webidl.errors.exception({
+ header: context.prefix,
+ message: `"${context.value}" is an invalid ${context.type}.`
+ });
+ };
+ webidl.brandCheck = function(V, I) {
+ if (!FunctionPrototypeSymbolHasInstance(I, V)) {
+ const err = new TypeError("Illegal invocation");
+ err.code = "ERR_INVALID_THIS";
+ throw err;
+ }
+ };
+ webidl.brandCheckMultiple = function(List) {
+ const prototypes = List.map((c) => webidl.util.MakeTypeAssertion(c));
+ return (V) => {
+ if (prototypes.every((typeCheck) => !typeCheck(V))) {
+ const err = new TypeError("Illegal invocation");
+ err.code = "ERR_INVALID_THIS";
+ throw err;
+ }
+ };
+ };
+ webidl.argumentLengthCheck = function({ length }, min, ctx) {
+ if (length < min) {
+ throw webidl.errors.exception({
+ message: `${min} argument${min !== 1 ? "s" : ""} required, but${length ? " only" : ""} ${length} found.`,
+ header: ctx
+ });
+ }
+ };
+ webidl.illegalConstructor = function() {
+ throw webidl.errors.exception({
+ header: "TypeError",
+ message: "Illegal constructor"
+ });
+ };
+ webidl.util.MakeTypeAssertion = function(I) {
+ return (O) => FunctionPrototypeSymbolHasInstance(I, O);
+ };
+ webidl.util.Type = function(V) {
+ switch (typeof V) {
+ case "undefined":
+ return UNDEFINED;
+ case "boolean":
+ return BOOLEAN;
+ case "string":
+ return STRING;
+ case "symbol":
+ return SYMBOL;
+ case "number":
+ return NUMBER;
+ case "bigint":
+ return BIGINT;
+ case "function":
+ case "object": {
+ if (V === null) {
+ return NULL;
+ }
+ return OBJECT;
+ }
+ }
+ };
+ webidl.util.Types = {
+ UNDEFINED,
+ BOOLEAN,
+ STRING,
+ SYMBOL,
+ NUMBER,
+ BIGINT,
+ NULL,
+ OBJECT
+ };
+ webidl.util.TypeValueToString = function(o) {
+ switch (webidl.util.Type(o)) {
+ case UNDEFINED:
+ return "Undefined";
+ case BOOLEAN:
+ return "Boolean";
+ case STRING:
+ return "String";
+ case SYMBOL:
+ return "Symbol";
+ case NUMBER:
+ return "Number";
+ case BIGINT:
+ return "BigInt";
+ case NULL:
+ return "Null";
+ case OBJECT:
+ return "Object";
+ }
+ };
+ webidl.util.markAsUncloneable = markAsUncloneable || (() => {
+ });
+ webidl.util.ConvertToInt = function(V, bitLength, signedness, flags) {
+ let upperBound;
+ let lowerBound;
+ if (bitLength === 64) {
+ upperBound = Math.pow(2, 53) - 1;
+ if (signedness === "unsigned") {
+ lowerBound = 0;
+ } else {
+ lowerBound = Math.pow(-2, 53) + 1;
+ }
+ } else if (signedness === "unsigned") {
+ lowerBound = 0;
+ upperBound = Math.pow(2, bitLength) - 1;
+ } else {
+ lowerBound = Math.pow(-2, bitLength) - 1;
+ upperBound = Math.pow(2, bitLength - 1) - 1;
+ }
+ let x = Number(V);
+ if (x === 0) {
+ x = 0;
+ }
+ if (webidl.util.HasFlag(flags, webidl.attributes.EnforceRange)) {
+ if (Number.isNaN(x) || x === Number.POSITIVE_INFINITY || x === Number.NEGATIVE_INFINITY) {
+ throw webidl.errors.exception({
+ header: "Integer conversion",
+ message: `Could not convert ${webidl.util.Stringify(V)} to an integer.`
+ });
+ }
+ x = webidl.util.IntegerPart(x);
+ if (x < lowerBound || x > upperBound) {
+ throw webidl.errors.exception({
+ header: "Integer conversion",
+ message: `Value must be between ${lowerBound}-${upperBound}, got ${x}.`
+ });
+ }
+ return x;
+ }
+ if (!Number.isNaN(x) && webidl.util.HasFlag(flags, webidl.attributes.Clamp)) {
+ x = Math.min(Math.max(x, lowerBound), upperBound);
+ if (Math.floor(x) % 2 === 0) {
+ x = Math.floor(x);
+ } else {
+ x = Math.ceil(x);
+ }
+ return x;
+ }
+ if (Number.isNaN(x) || x === 0 && Object.is(0, x) || x === Number.POSITIVE_INFINITY || x === Number.NEGATIVE_INFINITY) {
+ return 0;
+ }
+ x = webidl.util.IntegerPart(x);
+ x = x % Math.pow(2, bitLength);
+ if (signedness === "signed" && x >= Math.pow(2, bitLength) - 1) {
+ return x - Math.pow(2, bitLength);
+ }
+ return x;
+ };
+ webidl.util.IntegerPart = function(n) {
+ const r = Math.floor(Math.abs(n));
+ if (n < 0) {
+ return -1 * r;
+ }
+ return r;
+ };
+ webidl.util.Stringify = function(V) {
+ const type2 = webidl.util.Type(V);
+ switch (type2) {
+ case SYMBOL:
+ return `Symbol(${V.description})`;
+ case OBJECT:
+ return inspect(V);
+ case STRING:
+ return `"${V}"`;
+ case BIGINT:
+ return `${V}n`;
+ default:
+ return `${V}`;
+ }
+ };
+ webidl.util.IsResizableArrayBuffer = function(V) {
+ if (types.isArrayBuffer(V)) {
+ return V.resizable;
+ }
+ if (types.isSharedArrayBuffer(V)) {
+ return V.growable;
+ }
+ throw webidl.errors.exception({
+ header: "IsResizableArrayBuffer",
+ message: `"${webidl.util.Stringify(V)}" is not an array buffer.`
+ });
+ };
+ webidl.util.HasFlag = function(flags, attributes) {
+ return typeof flags === "number" && (flags & attributes) === attributes;
+ };
+ webidl.sequenceConverter = function(converter) {
+ return (V, prefix, argument, Iterable) => {
+ if (webidl.util.Type(V) !== OBJECT) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} (${webidl.util.Stringify(V)}) is not iterable.`
+ });
+ }
+ const method = typeof Iterable === "function" ? Iterable() : V?.[Symbol.iterator]?.();
+ const seq = [];
+ let index = 0;
+ if (method === void 0 || typeof method.next !== "function") {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} is not iterable.`
+ });
+ }
+ while (true) {
+ const { done, value: value2 } = method.next();
+ if (done) {
+ break;
+ }
+ seq.push(converter(value2, prefix, `${argument}[${index++}]`));
+ }
+ return seq;
+ };
+ };
+ webidl.recordConverter = function(keyConverter, valueConverter) {
+ return (O, prefix, argument) => {
+ if (webidl.util.Type(O) !== OBJECT) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} ("${webidl.util.TypeValueToString(O)}") is not an Object.`
+ });
+ }
+ const result = {};
+ if (!types.isProxy(O)) {
+ const keys2 = [...Object.getOwnPropertyNames(O), ...Object.getOwnPropertySymbols(O)];
+ for (const key of keys2) {
+ const keyName = webidl.util.Stringify(key);
+ const typedKey = keyConverter(key, prefix, `Key ${keyName} in ${argument}`);
+ const typedValue = valueConverter(O[key], prefix, `${argument}[${keyName}]`);
+ result[typedKey] = typedValue;
+ }
+ return result;
+ }
+ const keys = Reflect.ownKeys(O);
+ for (const key of keys) {
+ const desc = Reflect.getOwnPropertyDescriptor(O, key);
+ if (desc?.enumerable) {
+ const typedKey = keyConverter(key, prefix, argument);
+ const typedValue = valueConverter(O[key], prefix, argument);
+ result[typedKey] = typedValue;
+ }
+ }
+ return result;
+ };
+ };
+ webidl.interfaceConverter = function(TypeCheck, name) {
+ return (V, prefix, argument) => {
+ if (!TypeCheck(V)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `Expected ${argument} ("${webidl.util.Stringify(V)}") to be an instance of ${name}.`
+ });
+ }
+ return V;
+ };
+ };
+ webidl.dictionaryConverter = function(converters) {
+ return (dictionary, prefix, argument) => {
+ const dict = {};
+ if (dictionary != null && webidl.util.Type(dictionary) !== OBJECT) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `Expected ${dictionary} to be one of: Null, Undefined, Object.`
+ });
+ }
+ for (const options of converters) {
+ const { key, defaultValue, required: required2, converter } = options;
+ if (required2 === true) {
+ if (dictionary == null || !Object.hasOwn(dictionary, key)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `Missing required key "${key}".`
+ });
+ }
+ }
+ let value2 = dictionary?.[key];
+ const hasDefault = defaultValue !== void 0;
+ if (hasDefault && value2 === void 0) {
+ value2 = defaultValue();
+ }
+ if (required2 || hasDefault || value2 !== void 0) {
+ value2 = converter(value2, prefix, `${argument}.${key}`);
+ if (options.allowedValues && !options.allowedValues.includes(value2)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${value2} is not an accepted type. Expected one of ${options.allowedValues.join(", ")}.`
+ });
+ }
+ dict[key] = value2;
+ }
+ }
+ return dict;
+ };
+ };
+ webidl.nullableConverter = function(converter) {
+ return (V, prefix, argument) => {
+ if (V === null) {
+ return V;
+ }
+ return converter(V, prefix, argument);
+ };
+ };
+ webidl.is.USVString = function(value2) {
+ return typeof value2 === "string" && value2.isWellFormed();
+ };
+ webidl.is.ReadableStream = webidl.util.MakeTypeAssertion(ReadableStream);
+ webidl.is.Blob = webidl.util.MakeTypeAssertion(Blob);
+ webidl.is.URLSearchParams = webidl.util.MakeTypeAssertion(URLSearchParams);
+ webidl.is.File = webidl.util.MakeTypeAssertion(File);
+ webidl.is.URL = webidl.util.MakeTypeAssertion(URL);
+ webidl.is.AbortSignal = webidl.util.MakeTypeAssertion(AbortSignal);
+ webidl.is.MessagePort = webidl.util.MakeTypeAssertion(MessagePort);
+ webidl.is.BufferSource = function(V) {
+ return types.isArrayBuffer(V) || ArrayBuffer.isView(V) && types.isArrayBuffer(V.buffer);
+ };
+ webidl.converters.DOMString = function(V, prefix, argument, flags) {
+ if (V === null && webidl.util.HasFlag(flags, webidl.attributes.LegacyNullToEmptyString)) {
+ return "";
+ }
+ if (typeof V === "symbol") {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} is a symbol, which cannot be converted to a DOMString.`
+ });
+ }
+ return String(V);
+ };
+ webidl.converters.ByteString = function(V, prefix, argument) {
+ if (typeof V === "symbol") {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} is a symbol, which cannot be converted to a ByteString.`
+ });
+ }
+ const x = String(V);
+ for (let index = 0; index < x.length; index++) {
+ if (x.charCodeAt(index) > 255) {
+ throw new TypeError(
+ `Cannot convert argument to a ByteString because the character at index ${index} has a value of ${x.charCodeAt(index)} which is greater than 255.`
+ );
+ }
+ }
+ return x;
+ };
+ webidl.converters.USVString = function(value2) {
+ if (typeof value2 === "string") {
+ return value2.toWellFormed();
+ }
+ return `${value2}`.toWellFormed();
+ };
+ webidl.converters.boolean = function(V) {
+ const x = Boolean(V);
+ return x;
+ };
+ webidl.converters.any = function(V) {
+ return V;
+ };
+ webidl.converters["long long"] = function(V, prefix, argument) {
+ const x = webidl.util.ConvertToInt(V, 64, "signed", 0, prefix, argument);
+ return x;
+ };
+ webidl.converters["unsigned long long"] = function(V, prefix, argument) {
+ const x = webidl.util.ConvertToInt(V, 64, "unsigned", 0, prefix, argument);
+ return x;
+ };
+ webidl.converters["unsigned long"] = function(V, prefix, argument) {
+ const x = webidl.util.ConvertToInt(V, 32, "unsigned", 0, prefix, argument);
+ return x;
+ };
+ webidl.converters["unsigned short"] = function(V, prefix, argument, flags) {
+ const x = webidl.util.ConvertToInt(V, 16, "unsigned", flags, prefix, argument);
+ return x;
+ };
+ webidl.converters.ArrayBuffer = function(V, prefix, argument, flags) {
+ if (webidl.util.Type(V) !== OBJECT || !types.isArrayBuffer(V)) {
+ throw webidl.errors.conversionFailed({
+ prefix,
+ argument: `${argument} ("${webidl.util.Stringify(V)}")`,
+ types: ["ArrayBuffer"]
+ });
+ }
+ if (!webidl.util.HasFlag(flags, webidl.attributes.AllowResizable) && webidl.util.IsResizableArrayBuffer(V)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} cannot be a resizable ArrayBuffer.`
+ });
+ }
+ return V;
+ };
+ webidl.converters.SharedArrayBuffer = function(V, prefix, argument, flags) {
+ if (webidl.util.Type(V) !== OBJECT || !types.isSharedArrayBuffer(V)) {
+ throw webidl.errors.conversionFailed({
+ prefix,
+ argument: `${argument} ("${webidl.util.Stringify(V)}")`,
+ types: ["SharedArrayBuffer"]
+ });
+ }
+ if (!webidl.util.HasFlag(flags, webidl.attributes.AllowResizable) && webidl.util.IsResizableArrayBuffer(V)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} cannot be a resizable SharedArrayBuffer.`
+ });
+ }
+ return V;
+ };
+ webidl.converters.TypedArray = function(V, T, prefix, argument, flags) {
+ if (webidl.util.Type(V) !== OBJECT || !types.isTypedArray(V) || V.constructor.name !== T.name) {
+ throw webidl.errors.conversionFailed({
+ prefix,
+ argument: `${argument} ("${webidl.util.Stringify(V)}")`,
+ types: [T.name]
+ });
+ }
+ if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types.isSharedArrayBuffer(V.buffer)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} cannot be a view on a shared array buffer.`
+ });
+ }
+ if (!webidl.util.HasFlag(flags, webidl.attributes.AllowResizable) && webidl.util.IsResizableArrayBuffer(V.buffer)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} cannot be a view on a resizable array buffer.`
+ });
+ }
+ return V;
+ };
+ webidl.converters.DataView = function(V, prefix, argument, flags) {
+ if (webidl.util.Type(V) !== OBJECT || !types.isDataView(V)) {
+ throw webidl.errors.conversionFailed({
+ prefix,
+ argument: `${argument} ("${webidl.util.Stringify(V)}")`,
+ types: ["DataView"]
+ });
+ }
+ if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types.isSharedArrayBuffer(V.buffer)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} cannot be a view on a shared array buffer.`
+ });
+ }
+ if (!webidl.util.HasFlag(flags, webidl.attributes.AllowResizable) && webidl.util.IsResizableArrayBuffer(V.buffer)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} cannot be a view on a resizable array buffer.`
+ });
+ }
+ return V;
+ };
+ webidl.converters.ArrayBufferView = function(V, prefix, argument, flags) {
+ if (webidl.util.Type(V) !== OBJECT || !types.isArrayBufferView(V)) {
+ throw webidl.errors.conversionFailed({
+ prefix,
+ argument: `${argument} ("${webidl.util.Stringify(V)}")`,
+ types: ["ArrayBufferView"]
+ });
+ }
+ if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types.isSharedArrayBuffer(V.buffer)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} cannot be a view on a shared array buffer.`
+ });
+ }
+ if (!webidl.util.HasFlag(flags, webidl.attributes.AllowResizable) && webidl.util.IsResizableArrayBuffer(V.buffer)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} cannot be a view on a resizable array buffer.`
+ });
+ }
+ return V;
+ };
+ webidl.converters.BufferSource = function(V, prefix, argument, flags) {
+ if (types.isArrayBuffer(V)) {
+ return webidl.converters.ArrayBuffer(V, prefix, argument, flags);
+ }
+ if (types.isArrayBufferView(V)) {
+ flags &= ~webidl.attributes.AllowShared;
+ return webidl.converters.ArrayBufferView(V, prefix, argument, flags);
+ }
+ if (types.isSharedArrayBuffer(V)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: `${argument} cannot be a SharedArrayBuffer.`
+ });
+ }
+ throw webidl.errors.conversionFailed({
+ prefix,
+ argument: `${argument} ("${webidl.util.Stringify(V)}")`,
+ types: ["ArrayBuffer", "ArrayBufferView"]
+ });
+ };
+ webidl.converters.AllowSharedBufferSource = function(V, prefix, argument, flags) {
+ if (types.isArrayBuffer(V)) {
+ return webidl.converters.ArrayBuffer(V, prefix, argument, flags);
+ }
+ if (types.isSharedArrayBuffer(V)) {
+ return webidl.converters.SharedArrayBuffer(V, prefix, argument, flags);
+ }
+ if (types.isArrayBufferView(V)) {
+ flags |= webidl.attributes.AllowShared;
+ return webidl.converters.ArrayBufferView(V, prefix, argument, flags);
+ }
+ throw webidl.errors.conversionFailed({
+ prefix,
+ argument: `${argument} ("${webidl.util.Stringify(V)}")`,
+ types: ["ArrayBuffer", "SharedArrayBuffer", "ArrayBufferView"]
+ });
+ };
+ webidl.converters["sequence"] = webidl.sequenceConverter(
+ webidl.converters.ByteString
+ );
+ webidl.converters["sequence>"] = webidl.sequenceConverter(
+ webidl.converters["sequence"]
+ );
+ webidl.converters["record"] = webidl.recordConverter(
+ webidl.converters.ByteString,
+ webidl.converters.ByteString
+ );
+ webidl.converters.Blob = webidl.interfaceConverter(webidl.is.Blob, "Blob");
+ webidl.converters.AbortSignal = webidl.interfaceConverter(
+ webidl.is.AbortSignal,
+ "AbortSignal"
+ );
+ webidl.converters.EventHandlerNonNull = function(V) {
+ if (webidl.util.Type(V) !== OBJECT) {
+ return null;
+ }
+ if (typeof V === "function") {
+ return V;
+ }
+ return () => {
+ };
+ };
+ webidl.attributes = {
+ Clamp: 1 << 0,
+ EnforceRange: 1 << 1,
+ AllowShared: 1 << 2,
+ AllowResizable: 1 << 3,
+ LegacyNullToEmptyString: 1 << 4
+ };
+ module.exports = {
+ webidl
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/util.js
+var require_util12 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/util.js"(exports, module) {
+ "use strict";
+ var { Transform } = __require("node:stream");
+ var zlib = __require("node:zlib");
+ var { redirectStatusSet, referrerPolicyTokens, badPortsSet } = require_constants8();
+ var { getGlobalOrigin } = require_global3();
+ var { collectASequenceOfCodePoints, collectAnHTTPQuotedString, removeChars, parseMIMEType } = require_data_url();
+ var { performance: performance2 } = __require("node:perf_hooks");
+ var { ReadableStreamFrom, isValidHTTPToken, normalizedMethodRecordsBase } = require_util11();
+ var assert2 = __require("node:assert");
+ var { isUint8Array } = __require("node:util/types");
+ var { webidl } = require_webidl2();
+ function responseURL(response) {
+ const urlList = response.urlList;
+ const length = urlList.length;
+ return length === 0 ? null : urlList[length - 1].toString();
+ }
+ function responseLocationURL(response, requestFragment) {
+ if (!redirectStatusSet.has(response.status)) {
+ return null;
+ }
+ let location = response.headersList.get("location", true);
+ if (location !== null && isValidHeaderValue(location)) {
+ if (!isValidEncodedURL(location)) {
+ location = normalizeBinaryStringToUtf8(location);
+ }
+ location = new URL(location, responseURL(response));
+ }
+ if (location && !location.hash) {
+ location.hash = requestFragment;
+ }
+ return location;
+ }
+ function isValidEncodedURL(url2) {
+ for (let i = 0; i < url2.length; ++i) {
+ const code = url2.charCodeAt(i);
+ if (code > 126 || // Non-US-ASCII + DEL
+ code < 32) {
+ return false;
+ }
+ }
+ return true;
+ }
+ function normalizeBinaryStringToUtf8(value2) {
+ return Buffer.from(value2, "binary").toString("utf8");
+ }
+ function requestCurrentURL(request2) {
+ return request2.urlList[request2.urlList.length - 1];
+ }
+ function requestBadPort(request2) {
+ const url2 = requestCurrentURL(request2);
+ if (urlIsHttpHttpsScheme(url2) && badPortsSet.has(url2.port)) {
+ return "blocked";
+ }
+ return "allowed";
+ }
+ function isErrorLike(object2) {
+ return object2 instanceof Error || (object2?.constructor?.name === "Error" || object2?.constructor?.name === "DOMException");
+ }
+ function isValidReasonPhrase(statusText) {
+ for (let i = 0; i < statusText.length; ++i) {
+ const c = statusText.charCodeAt(i);
+ if (!(c === 9 || // HTAB
+ c >= 32 && c <= 126 || // SP / VCHAR
+ c >= 128 && c <= 255)) {
+ return false;
+ }
+ }
+ return true;
+ }
+ var isValidHeaderName = isValidHTTPToken;
+ function isValidHeaderValue(potentialValue) {
+ return (potentialValue[0] === " " || potentialValue[0] === " " || potentialValue[potentialValue.length - 1] === " " || potentialValue[potentialValue.length - 1] === " " || potentialValue.includes("\n") || potentialValue.includes("\r") || potentialValue.includes("\0")) === false;
+ }
+ function parseReferrerPolicy(actualResponse) {
+ const policyHeader = (actualResponse.headersList.get("referrer-policy", true) ?? "").split(",");
+ let policy = "";
+ if (policyHeader.length) {
+ for (let i = policyHeader.length; i !== 0; i--) {
+ const token = policyHeader[i - 1].trim();
+ if (referrerPolicyTokens.has(token)) {
+ policy = token;
+ break;
+ }
+ }
+ }
+ return policy;
+ }
+ function setRequestReferrerPolicyOnRedirect(request2, actualResponse) {
+ const policy = parseReferrerPolicy(actualResponse);
+ if (policy !== "") {
+ request2.referrerPolicy = policy;
+ }
+ }
+ function crossOriginResourcePolicyCheck() {
+ return "allowed";
+ }
+ function corsCheck() {
+ return "success";
+ }
+ function TAOCheck() {
+ return "success";
+ }
+ function appendFetchMetadata(httpRequest) {
+ let header = null;
+ header = httpRequest.mode;
+ httpRequest.headersList.set("sec-fetch-mode", header, true);
+ }
+ function appendRequestOriginHeader(request2) {
+ let serializedOrigin = request2.origin;
+ if (serializedOrigin === "client" || serializedOrigin === void 0) {
+ return;
+ }
+ if (request2.responseTainting === "cors" || request2.mode === "websocket") {
+ request2.headersList.append("origin", serializedOrigin, true);
+ } else if (request2.method !== "GET" && request2.method !== "HEAD") {
+ switch (request2.referrerPolicy) {
+ case "no-referrer":
+ serializedOrigin = null;
+ break;
+ case "no-referrer-when-downgrade":
+ case "strict-origin":
+ case "strict-origin-when-cross-origin":
+ if (request2.origin && urlHasHttpsScheme(request2.origin) && !urlHasHttpsScheme(requestCurrentURL(request2))) {
+ serializedOrigin = null;
+ }
+ break;
+ case "same-origin":
+ if (!sameOrigin(request2, requestCurrentURL(request2))) {
+ serializedOrigin = null;
+ }
+ break;
+ default:
+ }
+ request2.headersList.append("origin", serializedOrigin, true);
+ }
+ }
+ function coarsenTime(timestamp, crossOriginIsolatedCapability) {
+ return timestamp;
+ }
+ function clampAndCoarsenConnectionTimingInfo(connectionTimingInfo, defaultStartTime, crossOriginIsolatedCapability) {
+ if (!connectionTimingInfo?.startTime || connectionTimingInfo.startTime < defaultStartTime) {
+ return {
+ domainLookupStartTime: defaultStartTime,
+ domainLookupEndTime: defaultStartTime,
+ connectionStartTime: defaultStartTime,
+ connectionEndTime: defaultStartTime,
+ secureConnectionStartTime: defaultStartTime,
+ ALPNNegotiatedProtocol: connectionTimingInfo?.ALPNNegotiatedProtocol
+ };
+ }
+ return {
+ domainLookupStartTime: coarsenTime(connectionTimingInfo.domainLookupStartTime, crossOriginIsolatedCapability),
+ domainLookupEndTime: coarsenTime(connectionTimingInfo.domainLookupEndTime, crossOriginIsolatedCapability),
+ connectionStartTime: coarsenTime(connectionTimingInfo.connectionStartTime, crossOriginIsolatedCapability),
+ connectionEndTime: coarsenTime(connectionTimingInfo.connectionEndTime, crossOriginIsolatedCapability),
+ secureConnectionStartTime: coarsenTime(connectionTimingInfo.secureConnectionStartTime, crossOriginIsolatedCapability),
+ ALPNNegotiatedProtocol: connectionTimingInfo.ALPNNegotiatedProtocol
+ };
+ }
+ function coarsenedSharedCurrentTime(crossOriginIsolatedCapability) {
+ return coarsenTime(performance2.now(), crossOriginIsolatedCapability);
+ }
+ function createOpaqueTimingInfo(timingInfo) {
+ return {
+ startTime: timingInfo.startTime ?? 0,
+ redirectStartTime: 0,
+ redirectEndTime: 0,
+ postRedirectStartTime: timingInfo.startTime ?? 0,
+ finalServiceWorkerStartTime: 0,
+ finalNetworkResponseStartTime: 0,
+ finalNetworkRequestStartTime: 0,
+ endTime: 0,
+ encodedBodySize: 0,
+ decodedBodySize: 0,
+ finalConnectionTimingInfo: null
+ };
+ }
+ function makePolicyContainer() {
+ return {
+ referrerPolicy: "strict-origin-when-cross-origin"
+ };
+ }
+ function clonePolicyContainer(policyContainer) {
+ return {
+ referrerPolicy: policyContainer.referrerPolicy
+ };
+ }
+ function determineRequestsReferrer(request2) {
+ const policy = request2.referrerPolicy;
+ assert2(policy);
+ let referrerSource = null;
+ if (request2.referrer === "client") {
+ const globalOrigin = getGlobalOrigin();
+ if (!globalOrigin || globalOrigin.origin === "null") {
+ return "no-referrer";
+ }
+ referrerSource = new URL(globalOrigin);
+ } else if (webidl.is.URL(request2.referrer)) {
+ referrerSource = request2.referrer;
+ }
+ let referrerURL = stripURLForReferrer(referrerSource);
+ const referrerOrigin = stripURLForReferrer(referrerSource, true);
+ if (referrerURL.toString().length > 4096) {
+ referrerURL = referrerOrigin;
+ }
+ switch (policy) {
+ case "no-referrer":
+ return "no-referrer";
+ case "origin":
+ if (referrerOrigin != null) {
+ return referrerOrigin;
+ }
+ return stripURLForReferrer(referrerSource, true);
+ case "unsafe-url":
+ return referrerURL;
+ case "strict-origin": {
+ const currentURL = requestCurrentURL(request2);
+ if (isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(currentURL)) {
+ return "no-referrer";
+ }
+ return referrerOrigin;
+ }
+ case "strict-origin-when-cross-origin": {
+ const currentURL = requestCurrentURL(request2);
+ if (sameOrigin(referrerURL, currentURL)) {
+ return referrerURL;
+ }
+ if (isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(currentURL)) {
+ return "no-referrer";
+ }
+ return referrerOrigin;
+ }
+ case "same-origin":
+ if (sameOrigin(request2, referrerURL)) {
+ return referrerURL;
+ }
+ return "no-referrer";
+ case "origin-when-cross-origin":
+ if (sameOrigin(request2, referrerURL)) {
+ return referrerURL;
+ }
+ return referrerOrigin;
+ case "no-referrer-when-downgrade": {
+ const currentURL = requestCurrentURL(request2);
+ if (isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(currentURL)) {
+ return "no-referrer";
+ }
+ return referrerURL;
+ }
+ }
+ }
+ function stripURLForReferrer(url2, originOnly = false) {
+ assert2(webidl.is.URL(url2));
+ url2 = new URL(url2);
+ if (urlIsLocal(url2)) {
+ return "no-referrer";
+ }
+ url2.username = "";
+ url2.password = "";
+ url2.hash = "";
+ if (originOnly === true) {
+ url2.pathname = "";
+ url2.search = "";
+ }
+ return url2;
+ }
+ var isPotentialleTrustworthyIPv4 = RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/);
+ var isPotentiallyTrustworthyIPv6 = RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);
+ function isOriginIPPotentiallyTrustworthy(origin) {
+ if (origin.includes(":")) {
+ if (origin[0] === "[" && origin[origin.length - 1] === "]") {
+ origin = origin.slice(1, -1);
+ }
+ return isPotentiallyTrustworthyIPv6(origin);
+ }
+ return isPotentialleTrustworthyIPv4(origin);
+ }
+ function isOriginPotentiallyTrustworthy(origin) {
+ if (origin == null || origin === "null") {
+ return false;
+ }
+ origin = new URL(origin);
+ if (origin.protocol === "https:" || origin.protocol === "wss:") {
+ return true;
+ }
+ if (isOriginIPPotentiallyTrustworthy(origin.hostname)) {
+ return true;
+ }
+ if (origin.hostname === "localhost" || origin.hostname === "localhost.") {
+ return true;
+ }
+ if (origin.hostname.endsWith(".localhost") || origin.hostname.endsWith(".localhost.")) {
+ return true;
+ }
+ if (origin.protocol === "file:") {
+ return true;
+ }
+ return false;
+ }
+ function isURLPotentiallyTrustworthy(url2) {
+ if (!webidl.is.URL(url2)) {
+ return false;
+ }
+ if (url2.href === "about:blank" || url2.href === "about:srcdoc") {
+ return true;
+ }
+ if (url2.protocol === "data:") return true;
+ if (url2.protocol === "blob:") return true;
+ return isOriginPotentiallyTrustworthy(url2.origin);
+ }
+ function tryUpgradeRequestToAPotentiallyTrustworthyURL(request2) {
+ }
+ function sameOrigin(A, B) {
+ if (A.origin === B.origin && A.origin === "null") {
+ return true;
+ }
+ if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {
+ return true;
+ }
+ return false;
+ }
+ function isAborted4(fetchParams) {
+ return fetchParams.controller.state === "aborted";
+ }
+ function isCancelled(fetchParams) {
+ return fetchParams.controller.state === "aborted" || fetchParams.controller.state === "terminated";
+ }
+ function normalizeMethod(method) {
+ return normalizedMethodRecordsBase[method.toLowerCase()] ?? method;
+ }
+ function serializeJavascriptValueToJSONString(value2) {
+ const result = JSON.stringify(value2);
+ if (result === void 0) {
+ throw new TypeError("Value is not JSON serializable");
+ }
+ assert2(typeof result === "string");
+ return result;
+ }
+ var esIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));
+ function createIterator(name, kInternalIterator, keyIndex = 0, valueIndex = 1) {
+ class FastIterableIterator {
+ /** @type {any} */
+ #target;
+ /** @type {'key' | 'value' | 'key+value'} */
+ #kind;
+ /** @type {number} */
+ #index;
+ /**
+ * @see https://webidl.spec.whatwg.org/#dfn-default-iterator-object
+ * @param {unknown} target
+ * @param {'key' | 'value' | 'key+value'} kind
+ */
+ constructor(target, kind) {
+ this.#target = target;
+ this.#kind = kind;
+ this.#index = 0;
+ }
+ next() {
+ if (typeof this !== "object" || this === null || !(#target in this)) {
+ throw new TypeError(
+ `'next' called on an object that does not implement interface ${name} Iterator.`
+ );
+ }
+ const index = this.#index;
+ const values = kInternalIterator(this.#target);
+ const len = values.length;
+ if (index >= len) {
+ return {
+ value: void 0,
+ done: true
+ };
+ }
+ const { [keyIndex]: key, [valueIndex]: value2 } = values[index];
+ this.#index = index + 1;
+ let result;
+ switch (this.#kind) {
+ case "key":
+ result = key;
+ break;
+ case "value":
+ result = value2;
+ break;
+ case "key+value":
+ result = [key, value2];
+ break;
+ }
+ return {
+ value: result,
+ done: false
+ };
+ }
+ }
+ delete FastIterableIterator.prototype.constructor;
+ Object.setPrototypeOf(FastIterableIterator.prototype, esIteratorPrototype);
+ Object.defineProperties(FastIterableIterator.prototype, {
+ [Symbol.toStringTag]: {
+ writable: false,
+ enumerable: false,
+ configurable: true,
+ value: `${name} Iterator`
+ },
+ next: { writable: true, enumerable: true, configurable: true }
+ });
+ return function(target, kind) {
+ return new FastIterableIterator(target, kind);
+ };
+ }
+ function iteratorMixin(name, object2, kInternalIterator, keyIndex = 0, valueIndex = 1) {
+ const makeIterator = createIterator(name, kInternalIterator, keyIndex, valueIndex);
+ const properties = {
+ keys: {
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ value: function keys() {
+ webidl.brandCheck(this, object2);
+ return makeIterator(this, "key");
+ }
+ },
+ values: {
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ value: function values() {
+ webidl.brandCheck(this, object2);
+ return makeIterator(this, "value");
+ }
+ },
+ entries: {
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ value: function entries() {
+ webidl.brandCheck(this, object2);
+ return makeIterator(this, "key+value");
+ }
+ },
+ forEach: {
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ value: function forEach(callbackfn, thisArg = globalThis) {
+ webidl.brandCheck(this, object2);
+ webidl.argumentLengthCheck(arguments, 1, `${name}.forEach`);
+ if (typeof callbackfn !== "function") {
+ throw new TypeError(
+ `Failed to execute 'forEach' on '${name}': parameter 1 is not of type 'Function'.`
+ );
+ }
+ for (const { 0: key, 1: value2 } of makeIterator(this, "key+value")) {
+ callbackfn.call(thisArg, value2, key, this);
+ }
+ }
+ }
+ };
+ return Object.defineProperties(object2.prototype, {
+ ...properties,
+ [Symbol.iterator]: {
+ writable: true,
+ enumerable: false,
+ configurable: true,
+ value: properties.entries.value
+ }
+ });
+ }
+ function fullyReadBody(body, processBody, processBodyError) {
+ const successSteps = processBody;
+ const errorSteps = processBodyError;
+ try {
+ const reader = body.stream.getReader();
+ readAllBytes(reader, successSteps, errorSteps);
+ } catch (e) {
+ errorSteps(e);
+ }
+ }
+ function readableStreamClose(controller) {
+ try {
+ controller.close();
+ controller.byobRequest?.respond(0);
+ } catch (err) {
+ if (!err.message.includes("Controller is already closed") && !err.message.includes("ReadableStream is already closed")) {
+ throw err;
+ }
+ }
+ }
+ var invalidIsomorphicEncodeValueRegex = /[^\x00-\xFF]/;
+ function isomorphicEncode(input) {
+ assert2(!invalidIsomorphicEncodeValueRegex.test(input));
+ return input;
+ }
+ async function readAllBytes(reader, successSteps, failureSteps) {
+ try {
+ const bytes = [];
+ let byteLength = 0;
+ do {
+ const { done, value: chunk } = await reader.read();
+ if (done) {
+ successSteps(Buffer.concat(bytes, byteLength));
+ return;
+ }
+ if (!isUint8Array(chunk)) {
+ failureSteps(new TypeError("Received non-Uint8Array chunk"));
+ return;
+ }
+ bytes.push(chunk);
+ byteLength += chunk.length;
+ } while (true);
+ } catch (e) {
+ failureSteps(e);
+ }
+ }
+ function urlIsLocal(url2) {
+ assert2("protocol" in url2);
+ const protocol = url2.protocol;
+ return protocol === "about:" || protocol === "blob:" || protocol === "data:";
+ }
+ function urlHasHttpsScheme(url2) {
+ return typeof url2 === "string" && url2[5] === ":" && url2[0] === "h" && url2[1] === "t" && url2[2] === "t" && url2[3] === "p" && url2[4] === "s" || url2.protocol === "https:";
+ }
+ function urlIsHttpHttpsScheme(url2) {
+ assert2("protocol" in url2);
+ const protocol = url2.protocol;
+ return protocol === "http:" || protocol === "https:";
+ }
+ function simpleRangeHeaderValue(value2, allowWhitespace) {
+ const data = value2;
+ if (!data.startsWith("bytes")) {
+ return "failure";
+ }
+ const position = { position: 5 };
+ if (allowWhitespace) {
+ collectASequenceOfCodePoints(
+ (char) => char === " " || char === " ",
+ data,
+ position
+ );
+ }
+ if (data.charCodeAt(position.position) !== 61) {
+ return "failure";
+ }
+ position.position++;
+ if (allowWhitespace) {
+ collectASequenceOfCodePoints(
+ (char) => char === " " || char === " ",
+ data,
+ position
+ );
+ }
+ const rangeStart = collectASequenceOfCodePoints(
+ (char) => {
+ const code = char.charCodeAt(0);
+ return code >= 48 && code <= 57;
+ },
+ data,
+ position
+ );
+ const rangeStartValue = rangeStart.length ? Number(rangeStart) : null;
+ if (allowWhitespace) {
+ collectASequenceOfCodePoints(
+ (char) => char === " " || char === " ",
+ data,
+ position
+ );
+ }
+ if (data.charCodeAt(position.position) !== 45) {
+ return "failure";
+ }
+ position.position++;
+ if (allowWhitespace) {
+ collectASequenceOfCodePoints(
+ (char) => char === " " || char === " ",
+ data,
+ position
+ );
+ }
+ const rangeEnd = collectASequenceOfCodePoints(
+ (char) => {
+ const code = char.charCodeAt(0);
+ return code >= 48 && code <= 57;
+ },
+ data,
+ position
+ );
+ const rangeEndValue = rangeEnd.length ? Number(rangeEnd) : null;
+ if (position.position < data.length) {
+ return "failure";
+ }
+ if (rangeEndValue === null && rangeStartValue === null) {
+ return "failure";
+ }
+ if (rangeStartValue > rangeEndValue) {
+ return "failure";
+ }
+ return { rangeStartValue, rangeEndValue };
+ }
+ function buildContentRange(rangeStart, rangeEnd, fullLength) {
+ let contentRange = "bytes ";
+ contentRange += isomorphicEncode(`${rangeStart}`);
+ contentRange += "-";
+ contentRange += isomorphicEncode(`${rangeEnd}`);
+ contentRange += "/";
+ contentRange += isomorphicEncode(`${fullLength}`);
+ return contentRange;
+ }
+ var InflateStream = class extends Transform {
+ #zlibOptions;
+ /** @param {zlib.ZlibOptions} [zlibOptions] */
+ constructor(zlibOptions) {
+ super();
+ this.#zlibOptions = zlibOptions;
+ }
+ _transform(chunk, encoding, callback) {
+ if (!this._inflateStream) {
+ if (chunk.length === 0) {
+ callback();
+ return;
+ }
+ this._inflateStream = (chunk[0] & 15) === 8 ? zlib.createInflate(this.#zlibOptions) : zlib.createInflateRaw(this.#zlibOptions);
+ this._inflateStream.on("data", this.push.bind(this));
+ this._inflateStream.on("end", () => this.push(null));
+ this._inflateStream.on("error", (err) => this.destroy(err));
+ }
+ this._inflateStream.write(chunk, encoding, callback);
+ }
+ _final(callback) {
+ if (this._inflateStream) {
+ this._inflateStream.end();
+ this._inflateStream = null;
+ }
+ callback();
+ }
+ };
+ function createInflate(zlibOptions) {
+ return new InflateStream(zlibOptions);
+ }
+ function extractMimeType(headers) {
+ let charset = null;
+ let essence = null;
+ let mimeType = null;
+ const values = getDecodeSplit("content-type", headers);
+ if (values === null) {
+ return "failure";
+ }
+ for (const value2 of values) {
+ const temporaryMimeType = parseMIMEType(value2);
+ if (temporaryMimeType === "failure" || temporaryMimeType.essence === "*/*") {
+ continue;
+ }
+ mimeType = temporaryMimeType;
+ if (mimeType.essence !== essence) {
+ charset = null;
+ if (mimeType.parameters.has("charset")) {
+ charset = mimeType.parameters.get("charset");
+ }
+ essence = mimeType.essence;
+ } else if (!mimeType.parameters.has("charset") && charset !== null) {
+ mimeType.parameters.set("charset", charset);
+ }
+ }
+ if (mimeType == null) {
+ return "failure";
+ }
+ return mimeType;
+ }
+ function gettingDecodingSplitting(value2) {
+ const input = value2;
+ const position = { position: 0 };
+ const values = [];
+ let temporaryValue = "";
+ while (position.position < input.length) {
+ temporaryValue += collectASequenceOfCodePoints(
+ (char) => char !== '"' && char !== ",",
+ input,
+ position
+ );
+ if (position.position < input.length) {
+ if (input.charCodeAt(position.position) === 34) {
+ temporaryValue += collectAnHTTPQuotedString(
+ input,
+ position
+ );
+ if (position.position < input.length) {
+ continue;
+ }
+ } else {
+ assert2(input.charCodeAt(position.position) === 44);
+ position.position++;
+ }
+ }
+ temporaryValue = removeChars(temporaryValue, true, true, (char) => char === 9 || char === 32);
+ values.push(temporaryValue);
+ temporaryValue = "";
+ }
+ return values;
+ }
+ function getDecodeSplit(name, list) {
+ const value2 = list.get(name, true);
+ if (value2 === null) {
+ return null;
+ }
+ return gettingDecodingSplitting(value2);
+ }
+ var textDecoder = new TextDecoder();
+ function utf8DecodeBytes(buffer) {
+ if (buffer.length === 0) {
+ return "";
+ }
+ if (buffer[0] === 239 && buffer[1] === 187 && buffer[2] === 191) {
+ buffer = buffer.subarray(3);
+ }
+ const output = textDecoder.decode(buffer);
+ return output;
+ }
+ var EnvironmentSettingsObjectBase = class {
+ get baseUrl() {
+ return getGlobalOrigin();
+ }
+ get origin() {
+ return this.baseUrl?.origin;
+ }
+ policyContainer = makePolicyContainer();
+ };
+ var EnvironmentSettingsObject = class {
+ settingsObject = new EnvironmentSettingsObjectBase();
+ };
+ var environmentSettingsObject = new EnvironmentSettingsObject();
+ module.exports = {
+ isAborted: isAborted4,
+ isCancelled,
+ isValidEncodedURL,
+ ReadableStreamFrom,
+ tryUpgradeRequestToAPotentiallyTrustworthyURL,
+ clampAndCoarsenConnectionTimingInfo,
+ coarsenedSharedCurrentTime,
+ determineRequestsReferrer,
+ makePolicyContainer,
+ clonePolicyContainer,
+ appendFetchMetadata,
+ appendRequestOriginHeader,
+ TAOCheck,
+ corsCheck,
+ crossOriginResourcePolicyCheck,
+ createOpaqueTimingInfo,
+ setRequestReferrerPolicyOnRedirect,
+ isValidHTTPToken,
+ requestBadPort,
+ requestCurrentURL,
+ responseURL,
+ responseLocationURL,
+ isURLPotentiallyTrustworthy,
+ isValidReasonPhrase,
+ sameOrigin,
+ normalizeMethod,
+ serializeJavascriptValueToJSONString,
+ iteratorMixin,
+ createIterator,
+ isValidHeaderName,
+ isValidHeaderValue,
+ isErrorLike,
+ fullyReadBody,
+ readableStreamClose,
+ isomorphicEncode,
+ urlIsLocal,
+ urlHasHttpsScheme,
+ urlIsHttpHttpsScheme,
+ readAllBytes,
+ simpleRangeHeaderValue,
+ buildContentRange,
+ createInflate,
+ extractMimeType,
+ getDecodeSplit,
+ utf8DecodeBytes,
+ environmentSettingsObject,
+ isOriginIPPotentiallyTrustworthy
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/formdata.js
+var require_formdata2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/formdata.js"(exports, module) {
+ "use strict";
+ var { iteratorMixin } = require_util12();
+ var { kEnumerableProperty } = require_util11();
+ var { webidl } = require_webidl2();
+ var nodeUtil = __require("node:util");
+ var FormData2 = class _FormData {
+ #state = [];
+ constructor(form = void 0) {
+ webidl.util.markAsUncloneable(this);
+ if (form !== void 0) {
+ throw webidl.errors.conversionFailed({
+ prefix: "FormData constructor",
+ argument: "Argument 1",
+ types: ["undefined"]
+ });
+ }
+ }
+ append(name, value2, filename = void 0) {
+ webidl.brandCheck(this, _FormData);
+ const prefix = "FormData.append";
+ webidl.argumentLengthCheck(arguments, 2, prefix);
+ name = webidl.converters.USVString(name);
+ if (arguments.length === 3 || webidl.is.Blob(value2)) {
+ value2 = webidl.converters.Blob(value2, prefix, "value");
+ if (filename !== void 0) {
+ filename = webidl.converters.USVString(filename);
+ }
+ } else {
+ value2 = webidl.converters.USVString(value2);
+ }
+ const entry = makeEntry(name, value2, filename);
+ this.#state.push(entry);
+ }
+ delete(name) {
+ webidl.brandCheck(this, _FormData);
+ const prefix = "FormData.delete";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ name = webidl.converters.USVString(name);
+ this.#state = this.#state.filter((entry) => entry.name !== name);
+ }
+ get(name) {
+ webidl.brandCheck(this, _FormData);
+ const prefix = "FormData.get";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ name = webidl.converters.USVString(name);
+ const idx = this.#state.findIndex((entry) => entry.name === name);
+ if (idx === -1) {
+ return null;
+ }
+ return this.#state[idx].value;
+ }
+ getAll(name) {
+ webidl.brandCheck(this, _FormData);
+ const prefix = "FormData.getAll";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ name = webidl.converters.USVString(name);
+ return this.#state.filter((entry) => entry.name === name).map((entry) => entry.value);
+ }
+ has(name) {
+ webidl.brandCheck(this, _FormData);
+ const prefix = "FormData.has";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ name = webidl.converters.USVString(name);
+ return this.#state.findIndex((entry) => entry.name === name) !== -1;
+ }
+ set(name, value2, filename = void 0) {
+ webidl.brandCheck(this, _FormData);
+ const prefix = "FormData.set";
+ webidl.argumentLengthCheck(arguments, 2, prefix);
+ name = webidl.converters.USVString(name);
+ if (arguments.length === 3 || webidl.is.Blob(value2)) {
+ value2 = webidl.converters.Blob(value2, prefix, "value");
+ if (filename !== void 0) {
+ filename = webidl.converters.USVString(filename);
+ }
+ } else {
+ value2 = webidl.converters.USVString(value2);
+ }
+ const entry = makeEntry(name, value2, filename);
+ const idx = this.#state.findIndex((entry2) => entry2.name === name);
+ if (idx !== -1) {
+ this.#state = [
+ ...this.#state.slice(0, idx),
+ entry,
+ ...this.#state.slice(idx + 1).filter((entry2) => entry2.name !== name)
+ ];
+ } else {
+ this.#state.push(entry);
+ }
+ }
+ [nodeUtil.inspect.custom](depth, options) {
+ const state = this.#state.reduce((a, b) => {
+ if (a[b.name]) {
+ if (Array.isArray(a[b.name])) {
+ a[b.name].push(b.value);
+ } else {
+ a[b.name] = [a[b.name], b.value];
+ }
+ } else {
+ a[b.name] = b.value;
+ }
+ return a;
+ }, { __proto__: null });
+ options.depth ??= depth;
+ options.colors ??= true;
+ const output = nodeUtil.formatWithOptions(options, state);
+ return `FormData ${output.slice(output.indexOf("]") + 2)}`;
+ }
+ /**
+ * @param {FormData} formData
+ */
+ static getFormDataState(formData) {
+ return formData.#state;
+ }
+ /**
+ * @param {FormData} formData
+ * @param {any[]} newState
+ */
+ static setFormDataState(formData, newState) {
+ formData.#state = newState;
+ }
+ };
+ var { getFormDataState, setFormDataState } = FormData2;
+ Reflect.deleteProperty(FormData2, "getFormDataState");
+ Reflect.deleteProperty(FormData2, "setFormDataState");
+ iteratorMixin("FormData", FormData2, getFormDataState, "name", "value");
+ Object.defineProperties(FormData2.prototype, {
+ append: kEnumerableProperty,
+ delete: kEnumerableProperty,
+ get: kEnumerableProperty,
+ getAll: kEnumerableProperty,
+ has: kEnumerableProperty,
+ set: kEnumerableProperty,
+ [Symbol.toStringTag]: {
+ value: "FormData",
+ configurable: true
+ }
+ });
+ function makeEntry(name, value2, filename) {
+ if (typeof value2 === "string") {
+ } else {
+ if (!webidl.is.File(value2)) {
+ value2 = new File([value2], "blob", { type: value2.type });
+ }
+ if (filename !== void 0) {
+ const options = {
+ type: value2.type,
+ lastModified: value2.lastModified
+ };
+ value2 = new File([value2], filename, options);
+ }
+ }
+ return { name, value: value2 };
+ }
+ webidl.is.FormData = webidl.util.MakeTypeAssertion(FormData2);
+ module.exports = { FormData: FormData2, makeEntry, setFormDataState };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/formdata-parser.js
+var require_formdata_parser = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/formdata-parser.js"(exports, module) {
+ "use strict";
+ var { bufferToLowerCasedHeaderName } = require_util11();
+ var { utf8DecodeBytes } = require_util12();
+ var { HTTP_TOKEN_CODEPOINTS, isomorphicDecode } = require_data_url();
+ var { makeEntry } = require_formdata2();
+ var { webidl } = require_webidl2();
+ var assert2 = __require("node:assert");
+ var formDataNameBuffer = Buffer.from('form-data; name="');
+ var filenameBuffer = Buffer.from("filename");
+ var dd = Buffer.from("--");
+ var ddcrlf = Buffer.from("--\r\n");
+ function isAsciiString(chars) {
+ for (let i = 0; i < chars.length; ++i) {
+ if ((chars.charCodeAt(i) & ~127) !== 0) {
+ return false;
+ }
+ }
+ return true;
+ }
+ function validateBoundary(boundary) {
+ const length = boundary.length;
+ if (length < 27 || length > 70) {
+ return false;
+ }
+ for (let i = 0; i < length; ++i) {
+ const cp = boundary.charCodeAt(i);
+ if (!(cp >= 48 && cp <= 57 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 39 || cp === 45 || cp === 95)) {
+ return false;
+ }
+ }
+ return true;
+ }
+ function multipartFormDataParser(input, mimeType) {
+ assert2(mimeType !== "failure" && mimeType.essence === "multipart/form-data");
+ const boundaryString = mimeType.parameters.get("boundary");
+ if (boundaryString === void 0) {
+ throw parsingError("missing boundary in content-type header");
+ }
+ const boundary = Buffer.from(`--${boundaryString}`, "utf8");
+ const entryList = [];
+ const position = { position: 0 };
+ while (input[position.position] === 13 && input[position.position + 1] === 10) {
+ position.position += 2;
+ }
+ let trailing = input.length;
+ while (input[trailing - 1] === 10 && input[trailing - 2] === 13) {
+ trailing -= 2;
+ }
+ if (trailing !== input.length) {
+ input = input.subarray(0, trailing);
+ }
+ while (true) {
+ if (input.subarray(position.position, position.position + boundary.length).equals(boundary)) {
+ position.position += boundary.length;
+ } else {
+ throw parsingError("expected a value starting with -- and the boundary");
+ }
+ if (position.position === input.length - 2 && bufferStartsWith(input, dd, position) || position.position === input.length - 4 && bufferStartsWith(input, ddcrlf, position)) {
+ return entryList;
+ }
+ if (input[position.position] !== 13 || input[position.position + 1] !== 10) {
+ throw parsingError("expected CRLF");
+ }
+ position.position += 2;
+ const result = parseMultipartFormDataHeaders(input, position);
+ let { name, filename, contentType, encoding } = result;
+ position.position += 2;
+ let body;
+ {
+ const boundaryIndex = input.indexOf(boundary.subarray(2), position.position);
+ if (boundaryIndex === -1) {
+ throw parsingError("expected boundary after body");
+ }
+ body = input.subarray(position.position, boundaryIndex - 4);
+ position.position += body.length;
+ if (encoding === "base64") {
+ body = Buffer.from(body.toString(), "base64");
+ }
+ }
+ if (input[position.position] !== 13 || input[position.position + 1] !== 10) {
+ throw parsingError("expected CRLF");
+ } else {
+ position.position += 2;
+ }
+ let value2;
+ if (filename !== null) {
+ contentType ??= "text/plain";
+ if (!isAsciiString(contentType)) {
+ contentType = "";
+ }
+ value2 = new File([body], filename, { type: contentType });
+ } else {
+ value2 = utf8DecodeBytes(Buffer.from(body));
+ }
+ assert2(webidl.is.USVString(name));
+ assert2(typeof value2 === "string" && webidl.is.USVString(value2) || webidl.is.File(value2));
+ entryList.push(makeEntry(name, value2, filename));
+ }
+ }
+ function parseMultipartFormDataHeaders(input, position) {
+ let name = null;
+ let filename = null;
+ let contentType = null;
+ let encoding = null;
+ while (true) {
+ if (input[position.position] === 13 && input[position.position + 1] === 10) {
+ if (name === null) {
+ throw parsingError("header name is null");
+ }
+ return { name, filename, contentType, encoding };
+ }
+ let headerName = collectASequenceOfBytes(
+ (char) => char !== 10 && char !== 13 && char !== 58,
+ input,
+ position
+ );
+ headerName = removeChars(headerName, true, true, (char) => char === 9 || char === 32);
+ if (!HTTP_TOKEN_CODEPOINTS.test(headerName.toString())) {
+ throw parsingError("header name does not match the field-name token production");
+ }
+ if (input[position.position] !== 58) {
+ throw parsingError("expected :");
+ }
+ position.position++;
+ collectASequenceOfBytes(
+ (char) => char === 32 || char === 9,
+ input,
+ position
+ );
+ switch (bufferToLowerCasedHeaderName(headerName)) {
+ case "content-disposition": {
+ name = filename = null;
+ if (!bufferStartsWith(input, formDataNameBuffer, position)) {
+ throw parsingError('expected form-data; name=" for content-disposition header');
+ }
+ position.position += 17;
+ name = parseMultipartFormDataName(input, position);
+ if (input[position.position] === 59 && input[position.position + 1] === 32) {
+ const at = { position: position.position + 2 };
+ if (bufferStartsWith(input, filenameBuffer, at)) {
+ if (input[at.position + 8] === 42) {
+ at.position += 10;
+ collectASequenceOfBytes(
+ (char) => char === 32 || char === 9,
+ input,
+ at
+ );
+ const headerValue = collectASequenceOfBytes(
+ (char) => char !== 32 && char !== 13 && char !== 10,
+ // ' ' or CRLF
+ input,
+ at
+ );
+ if (headerValue[0] !== 117 && headerValue[0] !== 85 || // u or U
+ headerValue[1] !== 116 && headerValue[1] !== 84 || // t or T
+ headerValue[2] !== 102 && headerValue[2] !== 70 || // f or F
+ headerValue[3] !== 45 || // -
+ headerValue[4] !== 56) {
+ throw parsingError("unknown encoding, expected utf-8''");
+ }
+ filename = decodeURIComponent(new TextDecoder().decode(headerValue.subarray(7)));
+ position.position = at.position;
+ } else {
+ position.position += 11;
+ collectASequenceOfBytes(
+ (char) => char === 32 || char === 9,
+ input,
+ position
+ );
+ position.position++;
+ filename = parseMultipartFormDataName(input, position);
+ }
+ }
+ }
+ break;
+ }
+ case "content-type": {
+ let headerValue = collectASequenceOfBytes(
+ (char) => char !== 10 && char !== 13,
+ input,
+ position
+ );
+ headerValue = removeChars(headerValue, false, true, (char) => char === 9 || char === 32);
+ contentType = isomorphicDecode(headerValue);
+ break;
+ }
+ case "content-transfer-encoding": {
+ let headerValue = collectASequenceOfBytes(
+ (char) => char !== 10 && char !== 13,
+ input,
+ position
+ );
+ headerValue = removeChars(headerValue, false, true, (char) => char === 9 || char === 32);
+ encoding = isomorphicDecode(headerValue);
+ break;
+ }
+ default: {
+ collectASequenceOfBytes(
+ (char) => char !== 10 && char !== 13,
+ input,
+ position
+ );
+ }
+ }
+ if (input[position.position] !== 13 && input[position.position + 1] !== 10) {
+ throw parsingError("expected CRLF");
+ } else {
+ position.position += 2;
+ }
+ }
+ }
+ function parseMultipartFormDataName(input, position) {
+ assert2(input[position.position - 1] === 34);
+ let name = collectASequenceOfBytes(
+ (char) => char !== 10 && char !== 13 && char !== 34,
+ input,
+ position
+ );
+ if (input[position.position] !== 34) {
+ throw parsingError('expected "');
+ } else {
+ position.position++;
+ }
+ name = new TextDecoder().decode(name).replace(/%0A/ig, "\n").replace(/%0D/ig, "\r").replace(/%22/g, '"');
+ return name;
+ }
+ function collectASequenceOfBytes(condition, input, position) {
+ let start = position.position;
+ while (start < input.length && condition(input[start])) {
+ ++start;
+ }
+ return input.subarray(position.position, position.position = start);
+ }
+ function removeChars(buf, leading, trailing, predicate) {
+ let lead = 0;
+ let trail = buf.length - 1;
+ if (leading) {
+ while (lead < buf.length && predicate(buf[lead])) lead++;
+ }
+ if (trailing) {
+ while (trail > 0 && predicate(buf[trail])) trail--;
+ }
+ return lead === 0 && trail === buf.length - 1 ? buf : buf.subarray(lead, trail + 1);
+ }
+ function bufferStartsWith(buffer, start, position) {
+ if (buffer.length < start.length) {
+ return false;
+ }
+ for (let i = 0; i < start.length; i++) {
+ if (start[i] !== buffer[position.position + i]) {
+ return false;
+ }
+ }
+ return true;
+ }
+ function parsingError(cause) {
+ return new TypeError("Failed to parse body as FormData.", { cause: new TypeError(cause) });
+ }
+ module.exports = {
+ multipartFormDataParser,
+ validateBoundary
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/util/promise.js
+var require_promise = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/util/promise.js"(exports, module) {
+ "use strict";
+ function createDeferredPromise() {
+ let res;
+ let rej;
+ const promise = new Promise((resolve, reject) => {
+ res = resolve;
+ rej = reject;
+ });
+ return { promise, resolve: res, reject: rej };
+ }
+ module.exports = {
+ createDeferredPromise
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/body.js
+var require_body2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/body.js"(exports, module) {
+ "use strict";
+ var util3 = require_util11();
+ var {
+ ReadableStreamFrom,
+ readableStreamClose,
+ fullyReadBody,
+ extractMimeType,
+ utf8DecodeBytes
+ } = require_util12();
+ var { FormData: FormData2, setFormDataState } = require_formdata2();
+ var { webidl } = require_webidl2();
+ var assert2 = __require("node:assert");
+ var { isErrored, isDisturbed } = __require("node:stream");
+ var { isArrayBuffer } = __require("node:util/types");
+ var { serializeAMimeType } = require_data_url();
+ var { multipartFormDataParser } = require_formdata_parser();
+ var { createDeferredPromise } = require_promise();
+ var random;
+ try {
+ const crypto2 = __require("node:crypto");
+ random = (max) => crypto2.randomInt(0, max);
+ } catch {
+ random = (max) => Math.floor(Math.random() * max);
+ }
+ var textEncoder = new TextEncoder();
+ function noop3() {
+ }
+ var streamRegistry = new FinalizationRegistry((weakRef) => {
+ const stream = weakRef.deref();
+ if (stream && !stream.locked && !isDisturbed(stream) && !isErrored(stream)) {
+ stream.cancel("Response object has been garbage collected").catch(noop3);
+ }
+ });
+ function extractBody(object2, keepalive = false) {
+ let stream = null;
+ if (webidl.is.ReadableStream(object2)) {
+ stream = object2;
+ } else if (webidl.is.Blob(object2)) {
+ stream = object2.stream();
+ } else {
+ stream = new ReadableStream({
+ pull(controller) {
+ const buffer = typeof source === "string" ? textEncoder.encode(source) : source;
+ if (buffer.byteLength) {
+ controller.enqueue(buffer);
+ }
+ queueMicrotask(() => readableStreamClose(controller));
+ },
+ start() {
+ },
+ type: "bytes"
+ });
+ }
+ assert2(webidl.is.ReadableStream(stream));
+ let action = null;
+ let source = null;
+ let length = null;
+ let type2 = null;
+ if (typeof object2 === "string") {
+ source = object2;
+ type2 = "text/plain;charset=UTF-8";
+ } else if (webidl.is.URLSearchParams(object2)) {
+ source = object2.toString();
+ type2 = "application/x-www-form-urlencoded;charset=UTF-8";
+ } else if (webidl.is.BufferSource(object2)) {
+ source = isArrayBuffer(object2) ? new Uint8Array(object2.slice()) : new Uint8Array(object2.buffer.slice(object2.byteOffset, object2.byteOffset + object2.byteLength));
+ } else if (webidl.is.FormData(object2)) {
+ const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, "0")}`;
+ const prefix = `--${boundary}\r
+Content-Disposition: form-data`;
+ const formdataEscape = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
+ const normalizeLinefeeds = (value2) => value2.replace(/\r?\n|\r/g, "\r\n");
+ const blobParts = [];
+ const rn = new Uint8Array([13, 10]);
+ length = 0;
+ let hasUnknownSizeValue = false;
+ for (const [name, value2] of object2) {
+ if (typeof value2 === "string") {
+ const chunk2 = textEncoder.encode(prefix + `; name="${formdataEscape(normalizeLinefeeds(name))}"\r
+\r
+${normalizeLinefeeds(value2)}\r
+`);
+ blobParts.push(chunk2);
+ length += chunk2.byteLength;
+ } else {
+ const chunk2 = textEncoder.encode(`${prefix}; name="${formdataEscape(normalizeLinefeeds(name))}"` + (value2.name ? `; filename="${formdataEscape(value2.name)}"` : "") + `\r
+Content-Type: ${value2.type || "application/octet-stream"}\r
+\r
+`);
+ blobParts.push(chunk2, value2, rn);
+ if (typeof value2.size === "number") {
+ length += chunk2.byteLength + value2.size + rn.byteLength;
+ } else {
+ hasUnknownSizeValue = true;
+ }
+ }
+ }
+ const chunk = textEncoder.encode(`--${boundary}--\r
+`);
+ blobParts.push(chunk);
+ length += chunk.byteLength;
+ if (hasUnknownSizeValue) {
+ length = null;
+ }
+ source = object2;
+ action = async function* () {
+ for (const part of blobParts) {
+ if (part.stream) {
+ yield* part.stream();
+ } else {
+ yield part;
+ }
+ }
+ };
+ type2 = `multipart/form-data; boundary=${boundary}`;
+ } else if (webidl.is.Blob(object2)) {
+ source = object2;
+ length = object2.size;
+ if (object2.type) {
+ type2 = object2.type;
+ }
+ } else if (typeof object2[Symbol.asyncIterator] === "function") {
+ if (keepalive) {
+ throw new TypeError("keepalive");
+ }
+ if (util3.isDisturbed(object2) || object2.locked) {
+ throw new TypeError(
+ "Response body object should not be disturbed or locked"
+ );
+ }
+ stream = webidl.is.ReadableStream(object2) ? object2 : ReadableStreamFrom(object2);
+ }
+ if (typeof source === "string" || util3.isBuffer(source)) {
+ length = Buffer.byteLength(source);
+ }
+ if (action != null) {
+ let iterator2;
+ stream = new ReadableStream({
+ async start() {
+ iterator2 = action(object2)[Symbol.asyncIterator]();
+ },
+ async pull(controller) {
+ const { value: value2, done } = await iterator2.next();
+ if (done) {
+ queueMicrotask(() => {
+ controller.close();
+ controller.byobRequest?.respond(0);
+ });
+ } else {
+ if (!isErrored(stream)) {
+ const buffer = new Uint8Array(value2);
+ if (buffer.byteLength) {
+ controller.enqueue(buffer);
+ }
+ }
+ }
+ return controller.desiredSize > 0;
+ },
+ async cancel(reason) {
+ await iterator2.return();
+ },
+ type: "bytes"
+ });
+ }
+ const body = { stream, source, length };
+ return [body, type2];
+ }
+ function safelyExtractBody(object2, keepalive = false) {
+ if (webidl.is.ReadableStream(object2)) {
+ assert2(!util3.isDisturbed(object2), "The body has already been consumed.");
+ assert2(!object2.locked, "The stream is locked.");
+ }
+ return extractBody(object2, keepalive);
+ }
+ function cloneBody(body) {
+ const { 0: out1, 1: out2 } = body.stream.tee();
+ body.stream = out1;
+ return {
+ stream: out2,
+ length: body.length,
+ source: body.source
+ };
+ }
+ function bodyMixinMethods(instance, getInternalState) {
+ const methods = {
+ blob() {
+ return consumeBody(this, (bytes) => {
+ let mimeType = bodyMimeType(getInternalState(this));
+ if (mimeType === null) {
+ mimeType = "";
+ } else if (mimeType) {
+ mimeType = serializeAMimeType(mimeType);
+ }
+ return new Blob([bytes], { type: mimeType });
+ }, instance, getInternalState);
+ },
+ arrayBuffer() {
+ return consumeBody(this, (bytes) => {
+ return new Uint8Array(bytes).buffer;
+ }, instance, getInternalState);
+ },
+ text() {
+ return consumeBody(this, utf8DecodeBytes, instance, getInternalState);
+ },
+ json() {
+ return consumeBody(this, parseJSONFromBytes, instance, getInternalState);
+ },
+ formData() {
+ return consumeBody(this, (value2) => {
+ const mimeType = bodyMimeType(getInternalState(this));
+ if (mimeType !== null) {
+ switch (mimeType.essence) {
+ case "multipart/form-data": {
+ const parsed2 = multipartFormDataParser(value2, mimeType);
+ const fd = new FormData2();
+ setFormDataState(fd, parsed2);
+ return fd;
+ }
+ case "application/x-www-form-urlencoded": {
+ const entries = new URLSearchParams(value2.toString());
+ const fd = new FormData2();
+ for (const [name, value3] of entries) {
+ fd.append(name, value3);
+ }
+ return fd;
+ }
+ }
+ }
+ throw new TypeError(
+ 'Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".'
+ );
+ }, instance, getInternalState);
+ },
+ bytes() {
+ return consumeBody(this, (bytes) => {
+ return new Uint8Array(bytes);
+ }, instance, getInternalState);
+ }
+ };
+ return methods;
+ }
+ function mixinBody(prototype, getInternalState) {
+ Object.assign(prototype.prototype, bodyMixinMethods(prototype, getInternalState));
+ }
+ function consumeBody(object2, convertBytesToJSValue, instance, getInternalState) {
+ try {
+ webidl.brandCheck(object2, instance);
+ } catch (e) {
+ return Promise.reject(e);
+ }
+ const state = getInternalState(object2);
+ if (bodyUnusable(state)) {
+ return Promise.reject(new TypeError("Body is unusable: Body has already been read"));
+ }
+ if (state.aborted) {
+ return Promise.reject(new DOMException("The operation was aborted.", "AbortError"));
+ }
+ const promise = createDeferredPromise();
+ const errorSteps = promise.reject;
+ const successSteps = (data) => {
+ try {
+ promise.resolve(convertBytesToJSValue(data));
+ } catch (e) {
+ errorSteps(e);
+ }
+ };
+ if (state.body == null) {
+ successSteps(Buffer.allocUnsafe(0));
+ return promise.promise;
+ }
+ fullyReadBody(state.body, successSteps, errorSteps);
+ return promise.promise;
+ }
+ function bodyUnusable(object2) {
+ const body = object2.body;
+ return body != null && (body.stream.locked || util3.isDisturbed(body.stream));
+ }
+ function parseJSONFromBytes(bytes) {
+ return JSON.parse(utf8DecodeBytes(bytes));
+ }
+ function bodyMimeType(requestOrResponse) {
+ const headers = requestOrResponse.headersList;
+ const mimeType = extractMimeType(headers);
+ if (mimeType === "failure") {
+ return null;
+ }
+ return mimeType;
+ }
+ module.exports = {
+ extractBody,
+ safelyExtractBody,
+ cloneBody,
+ mixinBody,
+ streamRegistry,
+ bodyUnusable
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/client-h1.js
+var require_client_h1 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/client-h1.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var util3 = require_util11();
+ var { channels } = require_diagnostics();
+ var timers = require_timers2();
+ var {
+ RequestContentLengthMismatchError,
+ ResponseContentLengthMismatchError,
+ RequestAbortedError,
+ HeadersTimeoutError,
+ HeadersOverflowError,
+ SocketError,
+ InformationalError,
+ BodyTimeoutError,
+ HTTPParserError,
+ ResponseExceededMaxSizeError
+ } = require_errors2();
+ var {
+ kUrl,
+ kReset,
+ kClient,
+ kParser,
+ kBlocking,
+ kRunning,
+ kPending,
+ kSize,
+ kWriting,
+ kQueue,
+ kNoRef,
+ kKeepAliveDefaultTimeout,
+ kHostHeader,
+ kPendingIdx,
+ kRunningIdx,
+ kError,
+ kPipelining,
+ kSocket,
+ kKeepAliveTimeoutValue,
+ kMaxHeadersSize,
+ kKeepAliveMaxTimeout,
+ kKeepAliveTimeoutThreshold,
+ kHeadersTimeout,
+ kBodyTimeout,
+ kStrictContentLength,
+ kMaxRequests,
+ kCounter,
+ kMaxResponseSize,
+ kOnError,
+ kResume,
+ kHTTPContext,
+ kClosed
+ } = require_symbols6();
+ var constants = require_constants7();
+ var EMPTY_BUF = Buffer.alloc(0);
+ var FastBuffer = Buffer[Symbol.species];
+ var removeAllListeners = util3.removeAllListeners;
+ var extractBody;
+ function lazyllhttp() {
+ const llhttpWasmData = process.env.JEST_WORKER_ID ? require_llhttp_wasm2() : void 0;
+ let mod;
+ let useWasmSIMD = process.arch !== "ppc64";
+ if (process.env.UNDICI_NO_WASM_SIMD === "1") {
+ useWasmSIMD = true;
+ } else if (process.env.UNDICI_NO_WASM_SIMD === "0") {
+ useWasmSIMD = false;
+ }
+ if (useWasmSIMD) {
+ try {
+ mod = new WebAssembly.Module(require_llhttp_simd_wasm2());
+ } catch {
+ }
+ }
+ if (!mod) {
+ mod = new WebAssembly.Module(llhttpWasmData || require_llhttp_wasm2());
+ }
+ return new WebAssembly.Instance(mod, {
+ env: {
+ /**
+ * @param {number} p
+ * @param {number} at
+ * @param {number} len
+ * @returns {number}
+ */
+ wasm_on_url: (p, at, len) => {
+ return 0;
+ },
+ /**
+ * @param {number} p
+ * @param {number} at
+ * @param {number} len
+ * @returns {number}
+ */
+ wasm_on_status: (p, at, len) => {
+ assert2(currentParser.ptr === p);
+ const start = at - currentBufferPtr + currentBufferRef.byteOffset;
+ return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len));
+ },
+ /**
+ * @param {number} p
+ * @returns {number}
+ */
+ wasm_on_message_begin: (p) => {
+ assert2(currentParser.ptr === p);
+ return currentParser.onMessageBegin();
+ },
+ /**
+ * @param {number} p
+ * @param {number} at
+ * @param {number} len
+ * @returns {number}
+ */
+ wasm_on_header_field: (p, at, len) => {
+ assert2(currentParser.ptr === p);
+ const start = at - currentBufferPtr + currentBufferRef.byteOffset;
+ return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len));
+ },
+ /**
+ * @param {number} p
+ * @param {number} at
+ * @param {number} len
+ * @returns {number}
+ */
+ wasm_on_header_value: (p, at, len) => {
+ assert2(currentParser.ptr === p);
+ const start = at - currentBufferPtr + currentBufferRef.byteOffset;
+ return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len));
+ },
+ /**
+ * @param {number} p
+ * @param {number} statusCode
+ * @param {0|1} upgrade
+ * @param {0|1} shouldKeepAlive
+ * @returns {number}
+ */
+ wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => {
+ assert2(currentParser.ptr === p);
+ return currentParser.onHeadersComplete(statusCode, upgrade === 1, shouldKeepAlive === 1);
+ },
+ /**
+ * @param {number} p
+ * @param {number} at
+ * @param {number} len
+ * @returns {number}
+ */
+ wasm_on_body: (p, at, len) => {
+ assert2(currentParser.ptr === p);
+ const start = at - currentBufferPtr + currentBufferRef.byteOffset;
+ return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len));
+ },
+ /**
+ * @param {number} p
+ * @returns {number}
+ */
+ wasm_on_message_complete: (p) => {
+ assert2(currentParser.ptr === p);
+ return currentParser.onMessageComplete();
+ }
+ }
+ });
+ }
+ var llhttpInstance = null;
+ var currentParser = null;
+ var currentBufferRef = null;
+ var currentBufferSize = 0;
+ var currentBufferPtr = null;
+ var USE_NATIVE_TIMER = 0;
+ var USE_FAST_TIMER = 1;
+ var TIMEOUT_HEADERS = 2 | USE_FAST_TIMER;
+ var TIMEOUT_BODY = 4 | USE_FAST_TIMER;
+ var TIMEOUT_KEEP_ALIVE = 8 | USE_NATIVE_TIMER;
+ var Parser = class {
+ /**
+ * @param {import('./client.js')} client
+ * @param {import('net').Socket} socket
+ * @param {*} llhttp
+ */
+ constructor(client, socket, { exports: exports2 }) {
+ this.llhttp = exports2;
+ this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE);
+ this.client = client;
+ this.socket = socket;
+ this.timeout = null;
+ this.timeoutValue = null;
+ this.timeoutType = null;
+ this.statusCode = 0;
+ this.statusText = "";
+ this.upgrade = false;
+ this.headers = [];
+ this.headersSize = 0;
+ this.headersMaxSize = client[kMaxHeadersSize];
+ this.shouldKeepAlive = false;
+ this.paused = false;
+ this.resume = this.resume.bind(this);
+ this.bytesRead = 0;
+ this.keepAlive = "";
+ this.contentLength = "";
+ this.connection = "";
+ this.maxResponseSize = client[kMaxResponseSize];
+ }
+ setTimeout(delay2, type2) {
+ if (delay2 !== this.timeoutValue || type2 & USE_FAST_TIMER ^ this.timeoutType & USE_FAST_TIMER) {
+ if (this.timeout) {
+ timers.clearTimeout(this.timeout);
+ this.timeout = null;
+ }
+ if (delay2) {
+ if (type2 & USE_FAST_TIMER) {
+ this.timeout = timers.setFastTimeout(onParserTimeout, delay2, new WeakRef(this));
+ } else {
+ this.timeout = setTimeout(onParserTimeout, delay2, new WeakRef(this));
+ this.timeout?.unref();
+ }
+ }
+ this.timeoutValue = delay2;
+ } else if (this.timeout) {
+ if (this.timeout.refresh) {
+ this.timeout.refresh();
+ }
+ }
+ this.timeoutType = type2;
+ }
+ resume() {
+ if (this.socket.destroyed || !this.paused) {
+ return;
+ }
+ assert2(this.ptr != null);
+ assert2(currentParser === null);
+ this.llhttp.llhttp_resume(this.ptr);
+ assert2(this.timeoutType === TIMEOUT_BODY);
+ if (this.timeout) {
+ if (this.timeout.refresh) {
+ this.timeout.refresh();
+ }
+ }
+ this.paused = false;
+ this.execute(this.socket.read() || EMPTY_BUF);
+ this.readMore();
+ }
+ readMore() {
+ while (!this.paused && this.ptr) {
+ const chunk = this.socket.read();
+ if (chunk === null) {
+ break;
+ }
+ this.execute(chunk);
+ }
+ }
+ /**
+ * @param {Buffer} chunk
+ */
+ execute(chunk) {
+ assert2(currentParser === null);
+ assert2(this.ptr != null);
+ assert2(!this.paused);
+ const { socket, llhttp } = this;
+ if (chunk.length > currentBufferSize) {
+ if (currentBufferPtr) {
+ llhttp.free(currentBufferPtr);
+ }
+ currentBufferSize = Math.ceil(chunk.length / 4096) * 4096;
+ currentBufferPtr = llhttp.malloc(currentBufferSize);
+ }
+ new Uint8Array(llhttp.memory.buffer, currentBufferPtr, currentBufferSize).set(chunk);
+ try {
+ let ret;
+ try {
+ currentBufferRef = chunk;
+ currentParser = this;
+ ret = llhttp.llhttp_execute(this.ptr, currentBufferPtr, chunk.length);
+ } finally {
+ currentParser = null;
+ currentBufferRef = null;
+ }
+ if (ret !== constants.ERROR.OK) {
+ const data = chunk.subarray(llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr);
+ if (ret === constants.ERROR.PAUSED_UPGRADE) {
+ this.onUpgrade(data);
+ } else if (ret === constants.ERROR.PAUSED) {
+ this.paused = true;
+ socket.unshift(data);
+ } else {
+ const ptr = llhttp.llhttp_get_error_reason(this.ptr);
+ let message = "";
+ if (ptr) {
+ const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0);
+ message = "Response does not match the HTTP/1.1 protocol (" + Buffer.from(llhttp.memory.buffer, ptr, len).toString() + ")";
+ }
+ throw new HTTPParserError(message, constants.ERROR[ret], data);
+ }
+ }
+ } catch (err) {
+ util3.destroy(socket, err);
+ }
+ }
+ destroy() {
+ assert2(currentParser === null);
+ assert2(this.ptr != null);
+ this.llhttp.llhttp_free(this.ptr);
+ this.ptr = null;
+ this.timeout && timers.clearTimeout(this.timeout);
+ this.timeout = null;
+ this.timeoutValue = null;
+ this.timeoutType = null;
+ this.paused = false;
+ }
+ /**
+ * @param {Buffer} buf
+ * @returns {0}
+ */
+ onStatus(buf) {
+ this.statusText = buf.toString();
+ return 0;
+ }
+ /**
+ * @returns {0|-1}
+ */
+ onMessageBegin() {
+ const { socket, client } = this;
+ if (socket.destroyed) {
+ return -1;
+ }
+ const request2 = client[kQueue][client[kRunningIdx]];
+ if (!request2) {
+ return -1;
+ }
+ request2.onResponseStarted();
+ return 0;
+ }
+ /**
+ * @param {Buffer} buf
+ * @returns {number}
+ */
+ onHeaderField(buf) {
+ const len = this.headers.length;
+ if ((len & 1) === 0) {
+ this.headers.push(buf);
+ } else {
+ this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf]);
+ }
+ this.trackHeader(buf.length);
+ return 0;
+ }
+ /**
+ * @param {Buffer} buf
+ * @returns {number}
+ */
+ onHeaderValue(buf) {
+ let len = this.headers.length;
+ if ((len & 1) === 1) {
+ this.headers.push(buf);
+ len += 1;
+ } else {
+ this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf]);
+ }
+ const key = this.headers[len - 2];
+ if (key.length === 10) {
+ const headerName = util3.bufferToLowerCasedHeaderName(key);
+ if (headerName === "keep-alive") {
+ this.keepAlive += buf.toString();
+ } else if (headerName === "connection") {
+ this.connection += buf.toString();
+ }
+ } else if (key.length === 14 && util3.bufferToLowerCasedHeaderName(key) === "content-length") {
+ this.contentLength += buf.toString();
+ }
+ this.trackHeader(buf.length);
+ return 0;
+ }
+ /**
+ * @param {number} len
+ */
+ trackHeader(len) {
+ this.headersSize += len;
+ if (this.headersSize >= this.headersMaxSize) {
+ util3.destroy(this.socket, new HeadersOverflowError());
+ }
+ }
+ /**
+ * @param {Buffer} head
+ */
+ onUpgrade(head) {
+ const { upgrade, client, socket, headers, statusCode } = this;
+ assert2(upgrade);
+ assert2(client[kSocket] === socket);
+ assert2(!socket.destroyed);
+ assert2(!this.paused);
+ assert2((headers.length & 1) === 0);
+ const request2 = client[kQueue][client[kRunningIdx]];
+ assert2(request2);
+ assert2(request2.upgrade || request2.method === "CONNECT");
+ this.statusCode = 0;
+ this.statusText = "";
+ this.shouldKeepAlive = false;
+ this.headers = [];
+ this.headersSize = 0;
+ socket.unshift(head);
+ socket[kParser].destroy();
+ socket[kParser] = null;
+ socket[kClient] = null;
+ socket[kError] = null;
+ removeAllListeners(socket);
+ client[kSocket] = null;
+ client[kHTTPContext] = null;
+ client[kQueue][client[kRunningIdx]++] = null;
+ client.emit("disconnect", client[kUrl], [client], new InformationalError("upgrade"));
+ try {
+ request2.onUpgrade(statusCode, headers, socket);
+ } catch (err) {
+ util3.destroy(socket, err);
+ }
+ client[kResume]();
+ }
+ /**
+ * @param {number} statusCode
+ * @param {boolean} upgrade
+ * @param {boolean} shouldKeepAlive
+ * @returns {number}
+ */
+ onHeadersComplete(statusCode, upgrade, shouldKeepAlive) {
+ const { client, socket, headers, statusText } = this;
+ if (socket.destroyed) {
+ return -1;
+ }
+ const request2 = client[kQueue][client[kRunningIdx]];
+ if (!request2) {
+ return -1;
+ }
+ assert2(!this.upgrade);
+ assert2(this.statusCode < 200);
+ if (statusCode === 100) {
+ util3.destroy(socket, new SocketError("bad response", util3.getSocketInfo(socket)));
+ return -1;
+ }
+ if (upgrade && !request2.upgrade) {
+ util3.destroy(socket, new SocketError("bad upgrade", util3.getSocketInfo(socket)));
+ return -1;
+ }
+ assert2(this.timeoutType === TIMEOUT_HEADERS);
+ this.statusCode = statusCode;
+ this.shouldKeepAlive = shouldKeepAlive || // Override llhttp value which does not allow keepAlive for HEAD.
+ request2.method === "HEAD" && !socket[kReset] && this.connection.toLowerCase() === "keep-alive";
+ if (this.statusCode >= 200) {
+ const bodyTimeout = request2.bodyTimeout != null ? request2.bodyTimeout : client[kBodyTimeout];
+ this.setTimeout(bodyTimeout, TIMEOUT_BODY);
+ } else if (this.timeout) {
+ if (this.timeout.refresh) {
+ this.timeout.refresh();
+ }
+ }
+ if (request2.method === "CONNECT") {
+ assert2(client[kRunning] === 1);
+ this.upgrade = true;
+ return 2;
+ }
+ if (upgrade) {
+ assert2(client[kRunning] === 1);
+ this.upgrade = true;
+ return 2;
+ }
+ assert2((this.headers.length & 1) === 0);
+ this.headers = [];
+ this.headersSize = 0;
+ if (this.shouldKeepAlive && client[kPipelining]) {
+ const keepAliveTimeout = this.keepAlive ? util3.parseKeepAliveTimeout(this.keepAlive) : null;
+ if (keepAliveTimeout != null) {
+ const timeout = Math.min(
+ keepAliveTimeout - client[kKeepAliveTimeoutThreshold],
+ client[kKeepAliveMaxTimeout]
+ );
+ if (timeout <= 0) {
+ socket[kReset] = true;
+ } else {
+ client[kKeepAliveTimeoutValue] = timeout;
+ }
+ } else {
+ client[kKeepAliveTimeoutValue] = client[kKeepAliveDefaultTimeout];
+ }
+ } else {
+ socket[kReset] = true;
+ }
+ const pause = request2.onHeaders(statusCode, headers, this.resume, statusText) === false;
+ if (request2.aborted) {
+ return -1;
+ }
+ if (request2.method === "HEAD") {
+ return 1;
+ }
+ if (statusCode < 200) {
+ return 1;
+ }
+ if (socket[kBlocking]) {
+ socket[kBlocking] = false;
+ client[kResume]();
+ }
+ return pause ? constants.ERROR.PAUSED : 0;
+ }
+ /**
+ * @param {Buffer} buf
+ * @returns {number}
+ */
+ onBody(buf) {
+ const { client, socket, statusCode, maxResponseSize } = this;
+ if (socket.destroyed) {
+ return -1;
+ }
+ const request2 = client[kQueue][client[kRunningIdx]];
+ assert2(request2);
+ assert2(this.timeoutType === TIMEOUT_BODY);
+ if (this.timeout) {
+ if (this.timeout.refresh) {
+ this.timeout.refresh();
+ }
+ }
+ assert2(statusCode >= 200);
+ if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {
+ util3.destroy(socket, new ResponseExceededMaxSizeError());
+ return -1;
+ }
+ this.bytesRead += buf.length;
+ if (request2.onData(buf) === false) {
+ return constants.ERROR.PAUSED;
+ }
+ return 0;
+ }
+ /**
+ * @returns {number}
+ */
+ onMessageComplete() {
+ const { client, socket, statusCode, upgrade, headers, contentLength, bytesRead, shouldKeepAlive } = this;
+ if (socket.destroyed && (!statusCode || shouldKeepAlive)) {
+ return -1;
+ }
+ if (upgrade) {
+ return 0;
+ }
+ assert2(statusCode >= 100);
+ assert2((this.headers.length & 1) === 0);
+ const request2 = client[kQueue][client[kRunningIdx]];
+ assert2(request2);
+ this.statusCode = 0;
+ this.statusText = "";
+ this.bytesRead = 0;
+ this.contentLength = "";
+ this.keepAlive = "";
+ this.connection = "";
+ this.headers = [];
+ this.headersSize = 0;
+ if (statusCode < 200) {
+ return 0;
+ }
+ if (request2.method !== "HEAD" && contentLength && bytesRead !== parseInt(contentLength, 10)) {
+ util3.destroy(socket, new ResponseContentLengthMismatchError());
+ return -1;
+ }
+ request2.onComplete(headers);
+ client[kQueue][client[kRunningIdx]++] = null;
+ if (socket[kWriting]) {
+ assert2(client[kRunning] === 0);
+ util3.destroy(socket, new InformationalError("reset"));
+ return constants.ERROR.PAUSED;
+ } else if (!shouldKeepAlive) {
+ util3.destroy(socket, new InformationalError("reset"));
+ return constants.ERROR.PAUSED;
+ } else if (socket[kReset] && client[kRunning] === 0) {
+ util3.destroy(socket, new InformationalError("reset"));
+ return constants.ERROR.PAUSED;
+ } else if (client[kPipelining] == null || client[kPipelining] === 1) {
+ setImmediate(client[kResume]);
+ } else {
+ client[kResume]();
+ }
+ return 0;
+ }
+ };
+ function onParserTimeout(parser) {
+ const { socket, timeoutType, client, paused } = parser.deref();
+ if (timeoutType === TIMEOUT_HEADERS) {
+ if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) {
+ assert2(!paused, "cannot be paused while waiting for headers");
+ util3.destroy(socket, new HeadersTimeoutError());
+ }
+ } else if (timeoutType === TIMEOUT_BODY) {
+ if (!paused) {
+ util3.destroy(socket, new BodyTimeoutError());
+ }
+ } else if (timeoutType === TIMEOUT_KEEP_ALIVE) {
+ assert2(client[kRunning] === 0 && client[kKeepAliveTimeoutValue]);
+ util3.destroy(socket, new InformationalError("socket idle timeout"));
+ }
+ }
+ function connectH1(client, socket) {
+ client[kSocket] = socket;
+ if (!llhttpInstance) {
+ llhttpInstance = lazyllhttp();
+ }
+ if (socket.errored) {
+ throw socket.errored;
+ }
+ if (socket.destroyed) {
+ throw new SocketError("destroyed");
+ }
+ socket[kNoRef] = false;
+ socket[kWriting] = false;
+ socket[kReset] = false;
+ socket[kBlocking] = false;
+ socket[kParser] = new Parser(client, socket, llhttpInstance);
+ util3.addListener(socket, "error", onHttpSocketError);
+ util3.addListener(socket, "readable", onHttpSocketReadable);
+ util3.addListener(socket, "end", onHttpSocketEnd);
+ util3.addListener(socket, "close", onHttpSocketClose);
+ socket[kClosed] = false;
+ socket.on("close", onSocketClose);
+ return {
+ version: "h1",
+ defaultPipelining: 1,
+ write(request2) {
+ return writeH1(client, request2);
+ },
+ resume() {
+ resumeH1(client);
+ },
+ /**
+ * @param {Error|undefined} err
+ * @param {() => void} callback
+ */
+ destroy(err, callback) {
+ if (socket[kClosed]) {
+ queueMicrotask(callback);
+ } else {
+ socket.on("close", callback);
+ socket.destroy(err);
+ }
+ },
+ /**
+ * @returns {boolean}
+ */
+ get destroyed() {
+ return socket.destroyed;
+ },
+ /**
+ * @param {import('../core/request.js')} request
+ * @returns {boolean}
+ */
+ busy(request2) {
+ if (socket[kWriting] || socket[kReset] || socket[kBlocking]) {
+ return true;
+ }
+ if (request2) {
+ if (client[kRunning] > 0 && !request2.idempotent) {
+ return true;
+ }
+ if (client[kRunning] > 0 && (request2.upgrade || request2.method === "CONNECT")) {
+ return true;
+ }
+ if (client[kRunning] > 0 && util3.bodyLength(request2.body) !== 0 && (util3.isStream(request2.body) || util3.isAsyncIterable(request2.body) || util3.isFormDataLike(request2.body))) {
+ return true;
+ }
+ }
+ return false;
+ }
+ };
+ }
+ function onHttpSocketError(err) {
+ assert2(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
+ const parser = this[kParser];
+ if (err.code === "ECONNRESET" && parser.statusCode && !parser.shouldKeepAlive) {
+ parser.onMessageComplete();
+ return;
+ }
+ this[kError] = err;
+ this[kClient][kOnError](err);
+ }
+ function onHttpSocketReadable() {
+ this[kParser]?.readMore();
+ }
+ function onHttpSocketEnd() {
+ const parser = this[kParser];
+ if (parser.statusCode && !parser.shouldKeepAlive) {
+ parser.onMessageComplete();
+ return;
+ }
+ util3.destroy(this, new SocketError("other side closed", util3.getSocketInfo(this)));
+ }
+ function onHttpSocketClose() {
+ const parser = this[kParser];
+ if (parser) {
+ if (!this[kError] && parser.statusCode && !parser.shouldKeepAlive) {
+ parser.onMessageComplete();
+ }
+ this[kParser].destroy();
+ this[kParser] = null;
+ }
+ const err = this[kError] || new SocketError("closed", util3.getSocketInfo(this));
+ const client = this[kClient];
+ client[kSocket] = null;
+ client[kHTTPContext] = null;
+ if (client.destroyed) {
+ assert2(client[kPending] === 0);
+ const requests = client[kQueue].splice(client[kRunningIdx]);
+ for (let i = 0; i < requests.length; i++) {
+ const request2 = requests[i];
+ util3.errorRequest(client, request2, err);
+ }
+ } else if (client[kRunning] > 0 && err.code !== "UND_ERR_INFO") {
+ const request2 = client[kQueue][client[kRunningIdx]];
+ client[kQueue][client[kRunningIdx]++] = null;
+ util3.errorRequest(client, request2, err);
+ }
+ client[kPendingIdx] = client[kRunningIdx];
+ assert2(client[kRunning] === 0);
+ client.emit("disconnect", client[kUrl], [client], err);
+ client[kResume]();
+ }
+ function onSocketClose() {
+ this[kClosed] = true;
+ }
+ function resumeH1(client) {
+ const socket = client[kSocket];
+ if (socket && !socket.destroyed) {
+ if (client[kSize] === 0) {
+ if (!socket[kNoRef] && socket.unref) {
+ socket.unref();
+ socket[kNoRef] = true;
+ }
+ } else if (socket[kNoRef] && socket.ref) {
+ socket.ref();
+ socket[kNoRef] = false;
+ }
+ if (client[kSize] === 0) {
+ if (socket[kParser].timeoutType !== TIMEOUT_KEEP_ALIVE) {
+ socket[kParser].setTimeout(client[kKeepAliveTimeoutValue], TIMEOUT_KEEP_ALIVE);
+ }
+ } else if (client[kRunning] > 0 && socket[kParser].statusCode < 200) {
+ if (socket[kParser].timeoutType !== TIMEOUT_HEADERS) {
+ const request2 = client[kQueue][client[kRunningIdx]];
+ const headersTimeout = request2.headersTimeout != null ? request2.headersTimeout : client[kHeadersTimeout];
+ socket[kParser].setTimeout(headersTimeout, TIMEOUT_HEADERS);
+ }
+ }
+ }
+ }
+ function shouldSendContentLength(method) {
+ return method !== "GET" && method !== "HEAD" && method !== "OPTIONS" && method !== "TRACE" && method !== "CONNECT";
+ }
+ function writeH1(client, request2) {
+ const { method, path: path3, host, upgrade, blocking, reset } = request2;
+ let { body, headers, contentLength } = request2;
+ const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH" || method === "QUERY" || method === "PROPFIND" || method === "PROPPATCH";
+ if (util3.isFormDataLike(body)) {
+ if (!extractBody) {
+ extractBody = require_body2().extractBody;
+ }
+ const [bodyStream, contentType] = extractBody(body);
+ if (request2.contentType == null) {
+ headers.push("content-type", contentType);
+ }
+ body = bodyStream.stream;
+ contentLength = bodyStream.length;
+ } else if (util3.isBlobLike(body) && request2.contentType == null && body.type) {
+ headers.push("content-type", body.type);
+ }
+ if (body && typeof body.read === "function") {
+ body.read(0);
+ }
+ const bodyLength = util3.bodyLength(body);
+ contentLength = bodyLength ?? contentLength;
+ if (contentLength === null) {
+ contentLength = request2.contentLength;
+ }
+ if (contentLength === 0 && !expectsPayload) {
+ contentLength = null;
+ }
+ if (shouldSendContentLength(method) && contentLength > 0 && request2.contentLength !== null && request2.contentLength !== contentLength) {
+ if (client[kStrictContentLength]) {
+ util3.errorRequest(client, request2, new RequestContentLengthMismatchError());
+ return false;
+ }
+ process.emitWarning(new RequestContentLengthMismatchError());
+ }
+ const socket = client[kSocket];
+ const abort = (err) => {
+ if (request2.aborted || request2.completed) {
+ return;
+ }
+ util3.errorRequest(client, request2, err || new RequestAbortedError());
+ util3.destroy(body);
+ util3.destroy(socket, new InformationalError("aborted"));
+ };
+ try {
+ request2.onConnect(abort);
+ } catch (err) {
+ util3.errorRequest(client, request2, err);
+ }
+ if (request2.aborted) {
+ return false;
+ }
+ if (method === "HEAD") {
+ socket[kReset] = true;
+ }
+ if (upgrade || method === "CONNECT") {
+ socket[kReset] = true;
+ }
+ if (reset != null) {
+ socket[kReset] = reset;
+ }
+ if (client[kMaxRequests] && socket[kCounter]++ >= client[kMaxRequests]) {
+ socket[kReset] = true;
+ }
+ if (blocking) {
+ socket[kBlocking] = true;
+ }
+ let header = `${method} ${path3} HTTP/1.1\r
+`;
+ if (typeof host === "string") {
+ header += `host: ${host}\r
+`;
+ } else {
+ header += client[kHostHeader];
+ }
+ if (upgrade) {
+ header += `connection: upgrade\r
+upgrade: ${upgrade}\r
+`;
+ } else if (client[kPipelining] && !socket[kReset]) {
+ header += "connection: keep-alive\r\n";
+ } else {
+ header += "connection: close\r\n";
+ }
+ if (Array.isArray(headers)) {
+ for (let n = 0; n < headers.length; n += 2) {
+ const key = headers[n + 0];
+ const val = headers[n + 1];
+ if (Array.isArray(val)) {
+ for (let i = 0; i < val.length; i++) {
+ header += `${key}: ${val[i]}\r
+`;
+ }
+ } else {
+ header += `${key}: ${val}\r
+`;
+ }
+ }
+ }
+ if (channels.sendHeaders.hasSubscribers) {
+ channels.sendHeaders.publish({ request: request2, headers: header, socket });
+ }
+ if (!body || bodyLength === 0) {
+ writeBuffer(abort, null, client, request2, socket, contentLength, header, expectsPayload);
+ } else if (util3.isBuffer(body)) {
+ writeBuffer(abort, body, client, request2, socket, contentLength, header, expectsPayload);
+ } else if (util3.isBlobLike(body)) {
+ if (typeof body.stream === "function") {
+ writeIterable(abort, body.stream(), client, request2, socket, contentLength, header, expectsPayload);
+ } else {
+ writeBlob(abort, body, client, request2, socket, contentLength, header, expectsPayload);
+ }
+ } else if (util3.isStream(body)) {
+ writeStream(abort, body, client, request2, socket, contentLength, header, expectsPayload);
+ } else if (util3.isIterable(body)) {
+ writeIterable(abort, body, client, request2, socket, contentLength, header, expectsPayload);
+ } else {
+ assert2(false);
+ }
+ return true;
+ }
+ function writeStream(abort, body, client, request2, socket, contentLength, header, expectsPayload) {
+ assert2(contentLength !== 0 || client[kRunning] === 0, "stream body cannot be pipelined");
+ let finished = false;
+ const writer = new AsyncWriter({ abort, socket, request: request2, contentLength, client, expectsPayload, header });
+ const onData = function(chunk) {
+ if (finished) {
+ return;
+ }
+ try {
+ if (!writer.write(chunk) && this.pause) {
+ this.pause();
+ }
+ } catch (err) {
+ util3.destroy(this, err);
+ }
+ };
+ const onDrain = function() {
+ if (finished) {
+ return;
+ }
+ if (body.resume) {
+ body.resume();
+ }
+ };
+ const onClose = function() {
+ queueMicrotask(() => {
+ body.removeListener("error", onFinished);
+ });
+ if (!finished) {
+ const err = new RequestAbortedError();
+ queueMicrotask(() => onFinished(err));
+ }
+ };
+ const onFinished = function(err) {
+ if (finished) {
+ return;
+ }
+ finished = true;
+ assert2(socket.destroyed || socket[kWriting] && client[kRunning] <= 1);
+ socket.off("drain", onDrain).off("error", onFinished);
+ body.removeListener("data", onData).removeListener("end", onFinished).removeListener("close", onClose);
+ if (!err) {
+ try {
+ writer.end();
+ } catch (er) {
+ err = er;
+ }
+ }
+ writer.destroy(err);
+ if (err && (err.code !== "UND_ERR_INFO" || err.message !== "reset")) {
+ util3.destroy(body, err);
+ } else {
+ util3.destroy(body);
+ }
+ };
+ body.on("data", onData).on("end", onFinished).on("error", onFinished).on("close", onClose);
+ if (body.resume) {
+ body.resume();
+ }
+ socket.on("drain", onDrain).on("error", onFinished);
+ if (body.errorEmitted ?? body.errored) {
+ setImmediate(onFinished, body.errored);
+ } else if (body.endEmitted ?? body.readableEnded) {
+ setImmediate(onFinished, null);
+ }
+ if (body.closeEmitted ?? body.closed) {
+ setImmediate(onClose);
+ }
+ }
+ function writeBuffer(abort, body, client, request2, socket, contentLength, header, expectsPayload) {
+ try {
+ if (!body) {
+ if (contentLength === 0) {
+ socket.write(`${header}content-length: 0\r
+\r
+`, "latin1");
+ } else {
+ assert2(contentLength === null, "no body must not have content length");
+ socket.write(`${header}\r
+`, "latin1");
+ }
+ } else if (util3.isBuffer(body)) {
+ assert2(contentLength === body.byteLength, "buffer body must have content length");
+ socket.cork();
+ socket.write(`${header}content-length: ${contentLength}\r
+\r
+`, "latin1");
+ socket.write(body);
+ socket.uncork();
+ request2.onBodySent(body);
+ if (!expectsPayload && request2.reset !== false) {
+ socket[kReset] = true;
+ }
+ }
+ request2.onRequestSent();
+ client[kResume]();
+ } catch (err) {
+ abort(err);
+ }
+ }
+ async function writeBlob(abort, body, client, request2, socket, contentLength, header, expectsPayload) {
+ assert2(contentLength === body.size, "blob body must have content length");
+ try {
+ if (contentLength != null && contentLength !== body.size) {
+ throw new RequestContentLengthMismatchError();
+ }
+ const buffer = Buffer.from(await body.arrayBuffer());
+ socket.cork();
+ socket.write(`${header}content-length: ${contentLength}\r
+\r
+`, "latin1");
+ socket.write(buffer);
+ socket.uncork();
+ request2.onBodySent(buffer);
+ request2.onRequestSent();
+ if (!expectsPayload && request2.reset !== false) {
+ socket[kReset] = true;
+ }
+ client[kResume]();
+ } catch (err) {
+ abort(err);
+ }
+ }
+ async function writeIterable(abort, body, client, request2, socket, contentLength, header, expectsPayload) {
+ assert2(contentLength !== 0 || client[kRunning] === 0, "iterator body cannot be pipelined");
+ let callback = null;
+ function onDrain() {
+ if (callback) {
+ const cb = callback;
+ callback = null;
+ cb();
+ }
+ }
+ const waitForDrain = () => new Promise((resolve, reject) => {
+ assert2(callback === null);
+ if (socket[kError]) {
+ reject(socket[kError]);
+ } else {
+ callback = resolve;
+ }
+ });
+ socket.on("close", onDrain).on("drain", onDrain);
+ const writer = new AsyncWriter({ abort, socket, request: request2, contentLength, client, expectsPayload, header });
+ try {
+ for await (const chunk of body) {
+ if (socket[kError]) {
+ throw socket[kError];
+ }
+ if (!writer.write(chunk)) {
+ await waitForDrain();
+ }
+ }
+ writer.end();
+ } catch (err) {
+ writer.destroy(err);
+ } finally {
+ socket.off("close", onDrain).off("drain", onDrain);
+ }
+ }
+ var AsyncWriter = class {
+ /**
+ *
+ * @param {object} arg
+ * @param {AbortCallback} arg.abort
+ * @param {import('net').Socket} arg.socket
+ * @param {import('../core/request.js')} arg.request
+ * @param {number} arg.contentLength
+ * @param {import('./client.js')} arg.client
+ * @param {boolean} arg.expectsPayload
+ * @param {string} arg.header
+ */
+ constructor({ abort, socket, request: request2, contentLength, client, expectsPayload, header }) {
+ this.socket = socket;
+ this.request = request2;
+ this.contentLength = contentLength;
+ this.client = client;
+ this.bytesWritten = 0;
+ this.expectsPayload = expectsPayload;
+ this.header = header;
+ this.abort = abort;
+ socket[kWriting] = true;
+ }
+ /**
+ * @param {Buffer} chunk
+ * @returns
+ */
+ write(chunk) {
+ const { socket, request: request2, contentLength, client, bytesWritten, expectsPayload, header } = this;
+ if (socket[kError]) {
+ throw socket[kError];
+ }
+ if (socket.destroyed) {
+ return false;
+ }
+ const len = Buffer.byteLength(chunk);
+ if (!len) {
+ return true;
+ }
+ if (contentLength !== null && bytesWritten + len > contentLength) {
+ if (client[kStrictContentLength]) {
+ throw new RequestContentLengthMismatchError();
+ }
+ process.emitWarning(new RequestContentLengthMismatchError());
+ }
+ socket.cork();
+ if (bytesWritten === 0) {
+ if (!expectsPayload && request2.reset !== false) {
+ socket[kReset] = true;
+ }
+ if (contentLength === null) {
+ socket.write(`${header}transfer-encoding: chunked\r
+`, "latin1");
+ } else {
+ socket.write(`${header}content-length: ${contentLength}\r
+\r
+`, "latin1");
+ }
+ }
+ if (contentLength === null) {
+ socket.write(`\r
+${len.toString(16)}\r
+`, "latin1");
+ }
+ this.bytesWritten += len;
+ const ret = socket.write(chunk);
+ socket.uncork();
+ request2.onBodySent(chunk);
+ if (!ret) {
+ if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
+ if (socket[kParser].timeout.refresh) {
+ socket[kParser].timeout.refresh();
+ }
+ }
+ }
+ return ret;
+ }
+ /**
+ * @returns {void}
+ */
+ end() {
+ const { socket, contentLength, client, bytesWritten, expectsPayload, header, request: request2 } = this;
+ request2.onRequestSent();
+ socket[kWriting] = false;
+ if (socket[kError]) {
+ throw socket[kError];
+ }
+ if (socket.destroyed) {
+ return;
+ }
+ if (bytesWritten === 0) {
+ if (expectsPayload) {
+ socket.write(`${header}content-length: 0\r
+\r
+`, "latin1");
+ } else {
+ socket.write(`${header}\r
+`, "latin1");
+ }
+ } else if (contentLength === null) {
+ socket.write("\r\n0\r\n\r\n", "latin1");
+ }
+ if (contentLength !== null && bytesWritten !== contentLength) {
+ if (client[kStrictContentLength]) {
+ throw new RequestContentLengthMismatchError();
+ } else {
+ process.emitWarning(new RequestContentLengthMismatchError());
+ }
+ }
+ if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
+ if (socket[kParser].timeout.refresh) {
+ socket[kParser].timeout.refresh();
+ }
+ }
+ client[kResume]();
+ }
+ /**
+ * @param {Error} [err]
+ * @returns {void}
+ */
+ destroy(err) {
+ const { socket, client, abort } = this;
+ socket[kWriting] = false;
+ if (err) {
+ assert2(client[kRunning] <= 1, "pipeline should only contain this request");
+ abort(err);
+ }
+ }
+ };
+ module.exports = connectH1;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/client-h2.js
+var require_client_h2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/client-h2.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var { pipeline: pipeline2 } = __require("node:stream");
+ var util3 = require_util11();
+ var {
+ RequestContentLengthMismatchError,
+ RequestAbortedError,
+ SocketError,
+ InformationalError
+ } = require_errors2();
+ var {
+ kUrl,
+ kReset,
+ kClient,
+ kRunning,
+ kPending,
+ kQueue,
+ kPendingIdx,
+ kRunningIdx,
+ kError,
+ kSocket,
+ kStrictContentLength,
+ kOnError,
+ kMaxConcurrentStreams,
+ kHTTP2Session,
+ kResume,
+ kSize,
+ kHTTPContext,
+ kClosed,
+ kBodyTimeout
+ } = require_symbols6();
+ var { channels } = require_diagnostics();
+ var kOpenStreams = Symbol("open streams");
+ var extractBody;
+ var http2;
+ try {
+ http2 = __require("node:http2");
+ } catch {
+ http2 = { constants: {} };
+ }
+ var {
+ constants: {
+ HTTP2_HEADER_AUTHORITY,
+ HTTP2_HEADER_METHOD,
+ HTTP2_HEADER_PATH,
+ HTTP2_HEADER_SCHEME,
+ HTTP2_HEADER_CONTENT_LENGTH,
+ HTTP2_HEADER_EXPECT,
+ HTTP2_HEADER_STATUS
+ }
+ } = http2;
+ function parseH2Headers(headers) {
+ const result = [];
+ for (const [name, value2] of Object.entries(headers)) {
+ if (Array.isArray(value2)) {
+ for (const subvalue of value2) {
+ result.push(Buffer.from(name), Buffer.from(subvalue));
+ }
+ } else {
+ result.push(Buffer.from(name), Buffer.from(value2));
+ }
+ }
+ return result;
+ }
+ function connectH2(client, socket) {
+ client[kSocket] = socket;
+ const session = http2.connect(client[kUrl], {
+ createConnection: () => socket,
+ peerMaxConcurrentStreams: client[kMaxConcurrentStreams],
+ settings: {
+ // TODO(metcoder95): add support for PUSH
+ enablePush: false
+ }
+ });
+ session[kOpenStreams] = 0;
+ session[kClient] = client;
+ session[kSocket] = socket;
+ session[kHTTP2Session] = null;
+ util3.addListener(session, "error", onHttp2SessionError);
+ util3.addListener(session, "frameError", onHttp2FrameError);
+ util3.addListener(session, "end", onHttp2SessionEnd);
+ util3.addListener(session, "goaway", onHttp2SessionGoAway);
+ util3.addListener(session, "close", onHttp2SessionClose);
+ session.unref();
+ client[kHTTP2Session] = session;
+ socket[kHTTP2Session] = session;
+ util3.addListener(socket, "error", onHttp2SocketError);
+ util3.addListener(socket, "end", onHttp2SocketEnd);
+ util3.addListener(socket, "close", onHttp2SocketClose);
+ socket[kClosed] = false;
+ socket.on("close", onSocketClose);
+ return {
+ version: "h2",
+ defaultPipelining: Infinity,
+ write(request2) {
+ return writeH2(client, request2);
+ },
+ resume() {
+ resumeH2(client);
+ },
+ destroy(err, callback) {
+ if (socket[kClosed]) {
+ queueMicrotask(callback);
+ } else {
+ socket.destroy(err).on("close", callback);
+ }
+ },
+ get destroyed() {
+ return socket.destroyed;
+ },
+ busy() {
+ return false;
+ }
+ };
+ }
+ function resumeH2(client) {
+ const socket = client[kSocket];
+ if (socket?.destroyed === false) {
+ if (client[kSize] === 0 || client[kMaxConcurrentStreams] === 0) {
+ socket.unref();
+ client[kHTTP2Session].unref();
+ } else {
+ socket.ref();
+ client[kHTTP2Session].ref();
+ }
+ }
+ }
+ function onHttp2SessionError(err) {
+ assert2(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
+ this[kSocket][kError] = err;
+ this[kClient][kOnError](err);
+ }
+ function onHttp2FrameError(type2, code, id) {
+ if (id === 0) {
+ const err = new InformationalError(`HTTP/2: "frameError" received - type ${type2}, code ${code}`);
+ this[kSocket][kError] = err;
+ this[kClient][kOnError](err);
+ }
+ }
+ function onHttp2SessionEnd() {
+ const err = new SocketError("other side closed", util3.getSocketInfo(this[kSocket]));
+ this.destroy(err);
+ util3.destroy(this[kSocket], err);
+ }
+ function onHttp2SessionGoAway(errorCode) {
+ const err = this[kError] || new SocketError(`HTTP/2: "GOAWAY" frame received with code ${errorCode}`, util3.getSocketInfo(this[kSocket]));
+ const client = this[kClient];
+ client[kSocket] = null;
+ client[kHTTPContext] = null;
+ this.close();
+ this[kHTTP2Session] = null;
+ util3.destroy(this[kSocket], err);
+ if (client[kRunningIdx] < client[kQueue].length) {
+ const request2 = client[kQueue][client[kRunningIdx]];
+ client[kQueue][client[kRunningIdx]++] = null;
+ util3.errorRequest(client, request2, err);
+ client[kPendingIdx] = client[kRunningIdx];
+ }
+ assert2(client[kRunning] === 0);
+ client.emit("disconnect", client[kUrl], [client], err);
+ client.emit("connectionError", client[kUrl], [client], err);
+ client[kResume]();
+ }
+ function onHttp2SessionClose() {
+ const { [kClient]: client } = this;
+ const { [kSocket]: socket } = client;
+ const err = this[kSocket][kError] || this[kError] || new SocketError("closed", util3.getSocketInfo(socket));
+ client[kSocket] = null;
+ client[kHTTPContext] = null;
+ if (client.destroyed) {
+ assert2(client[kPending] === 0);
+ const requests = client[kQueue].splice(client[kRunningIdx]);
+ for (let i = 0; i < requests.length; i++) {
+ const request2 = requests[i];
+ util3.errorRequest(client, request2, err);
+ }
+ }
+ }
+ function onHttp2SocketClose() {
+ const err = this[kError] || new SocketError("closed", util3.getSocketInfo(this));
+ const client = this[kHTTP2Session][kClient];
+ client[kSocket] = null;
+ client[kHTTPContext] = null;
+ if (this[kHTTP2Session] !== null) {
+ this[kHTTP2Session].destroy(err);
+ }
+ client[kPendingIdx] = client[kRunningIdx];
+ assert2(client[kRunning] === 0);
+ client.emit("disconnect", client[kUrl], [client], err);
+ client[kResume]();
+ }
+ function onHttp2SocketError(err) {
+ assert2(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
+ this[kError] = err;
+ this[kClient][kOnError](err);
+ }
+ function onHttp2SocketEnd() {
+ util3.destroy(this, new SocketError("other side closed", util3.getSocketInfo(this)));
+ }
+ function onSocketClose() {
+ this[kClosed] = true;
+ }
+ function shouldSendContentLength(method) {
+ return method !== "GET" && method !== "HEAD" && method !== "OPTIONS" && method !== "TRACE" && method !== "CONNECT";
+ }
+ function writeH2(client, request2) {
+ const requestTimeout = request2.bodyTimeout ?? client[kBodyTimeout];
+ const session = client[kHTTP2Session];
+ const { method, path: path3, host, upgrade, expectContinue, signal, protocol, headers: reqHeaders } = request2;
+ let { body } = request2;
+ if (upgrade) {
+ util3.errorRequest(client, request2, new Error("Upgrade not supported for H2"));
+ return false;
+ }
+ const headers = {};
+ for (let n = 0; n < reqHeaders.length; n += 2) {
+ const key = reqHeaders[n + 0];
+ const val = reqHeaders[n + 1];
+ if (key === "cookie") {
+ if (headers[key] != null) {
+ headers[key] = Array.isArray(headers[key]) ? (headers[key].push(val), headers[key]) : [headers[key], val];
+ } else {
+ headers[key] = val;
+ }
+ continue;
+ }
+ if (Array.isArray(val)) {
+ for (let i = 0; i < val.length; i++) {
+ if (headers[key]) {
+ headers[key] += `, ${val[i]}`;
+ } else {
+ headers[key] = val[i];
+ }
+ }
+ } else if (headers[key]) {
+ headers[key] += `, ${val}`;
+ } else {
+ headers[key] = val;
+ }
+ }
+ let stream = null;
+ const { hostname: hostname2, port } = client[kUrl];
+ headers[HTTP2_HEADER_AUTHORITY] = host || `${hostname2}${port ? `:${port}` : ""}`;
+ headers[HTTP2_HEADER_METHOD] = method;
+ const abort = (err) => {
+ if (request2.aborted || request2.completed) {
+ return;
+ }
+ err = err || new RequestAbortedError();
+ util3.errorRequest(client, request2, err);
+ if (stream != null) {
+ stream.removeAllListeners("data");
+ stream.close();
+ client[kOnError](err);
+ client[kResume]();
+ }
+ util3.destroy(body, err);
+ };
+ try {
+ request2.onConnect(abort);
+ } catch (err) {
+ util3.errorRequest(client, request2, err);
+ }
+ if (request2.aborted) {
+ return false;
+ }
+ if (method === "CONNECT") {
+ session.ref();
+ stream = session.request(headers, { endStream: false, signal });
+ if (!stream.pending) {
+ request2.onUpgrade(null, null, stream);
+ ++session[kOpenStreams];
+ client[kQueue][client[kRunningIdx]++] = null;
+ } else {
+ stream.once("ready", () => {
+ request2.onUpgrade(null, null, stream);
+ ++session[kOpenStreams];
+ client[kQueue][client[kRunningIdx]++] = null;
+ });
+ }
+ stream.once("close", () => {
+ session[kOpenStreams] -= 1;
+ if (session[kOpenStreams] === 0) session.unref();
+ });
+ stream.setTimeout(requestTimeout);
+ return true;
+ }
+ headers[HTTP2_HEADER_PATH] = path3;
+ headers[HTTP2_HEADER_SCHEME] = protocol === "http:" ? "http" : "https";
+ const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
+ if (body && typeof body.read === "function") {
+ body.read(0);
+ }
+ let contentLength = util3.bodyLength(body);
+ if (util3.isFormDataLike(body)) {
+ extractBody ??= require_body2().extractBody;
+ const [bodyStream, contentType] = extractBody(body);
+ headers["content-type"] = contentType;
+ body = bodyStream.stream;
+ contentLength = bodyStream.length;
+ }
+ if (contentLength == null) {
+ contentLength = request2.contentLength;
+ }
+ if (contentLength === 0 || !expectsPayload) {
+ contentLength = null;
+ }
+ if (shouldSendContentLength(method) && contentLength > 0 && request2.contentLength != null && request2.contentLength !== contentLength) {
+ if (client[kStrictContentLength]) {
+ util3.errorRequest(client, request2, new RequestContentLengthMismatchError());
+ return false;
+ }
+ process.emitWarning(new RequestContentLengthMismatchError());
+ }
+ if (contentLength != null) {
+ assert2(body, "no body must not have content length");
+ headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`;
+ }
+ session.ref();
+ if (channels.sendHeaders.hasSubscribers) {
+ let header = "";
+ for (const key in headers) {
+ header += `${key}: ${headers[key]}\r
+`;
+ }
+ channels.sendHeaders.publish({ request: request2, headers: header, socket: session[kSocket] });
+ }
+ const shouldEndStream = method === "GET" || method === "HEAD" || body === null;
+ if (expectContinue) {
+ headers[HTTP2_HEADER_EXPECT] = "100-continue";
+ stream = session.request(headers, { endStream: shouldEndStream, signal });
+ stream.once("continue", writeBodyH2);
+ } else {
+ stream = session.request(headers, {
+ endStream: shouldEndStream,
+ signal
+ });
+ writeBodyH2();
+ }
+ ++session[kOpenStreams];
+ stream.setTimeout(requestTimeout);
+ stream.once("response", (headers2) => {
+ const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers2;
+ request2.onResponseStarted();
+ if (request2.aborted) {
+ stream.removeAllListeners("data");
+ return;
+ }
+ if (request2.onHeaders(Number(statusCode), parseH2Headers(realHeaders), stream.resume.bind(stream), "") === false) {
+ stream.pause();
+ }
+ });
+ stream.on("data", (chunk) => {
+ if (request2.onData(chunk) === false) {
+ stream.pause();
+ }
+ });
+ stream.once("end", (err) => {
+ stream.removeAllListeners("data");
+ if (stream.state?.state == null || stream.state.state < 6) {
+ if (!request2.aborted && !request2.completed) {
+ request2.onComplete({});
+ }
+ client[kQueue][client[kRunningIdx]++] = null;
+ client[kResume]();
+ } else {
+ --session[kOpenStreams];
+ if (session[kOpenStreams] === 0) {
+ session.unref();
+ }
+ abort(err ?? new InformationalError("HTTP/2: stream half-closed (remote)"));
+ client[kQueue][client[kRunningIdx]++] = null;
+ client[kPendingIdx] = client[kRunningIdx];
+ client[kResume]();
+ }
+ });
+ stream.once("close", () => {
+ stream.removeAllListeners("data");
+ session[kOpenStreams] -= 1;
+ if (session[kOpenStreams] === 0) {
+ session.unref();
+ }
+ });
+ stream.once("error", function(err) {
+ stream.removeAllListeners("data");
+ abort(err);
+ });
+ stream.once("frameError", (type2, code) => {
+ stream.removeAllListeners("data");
+ abort(new InformationalError(`HTTP/2: "frameError" received - type ${type2}, code ${code}`));
+ });
+ stream.on("aborted", () => {
+ stream.removeAllListeners("data");
+ });
+ stream.on("timeout", () => {
+ const err = new InformationalError(`HTTP/2: "stream timeout after ${requestTimeout}"`);
+ stream.removeAllListeners("data");
+ session[kOpenStreams] -= 1;
+ if (session[kOpenStreams] === 0) {
+ session.unref();
+ }
+ abort(err);
+ });
+ stream.once("trailers", (trailers) => {
+ if (request2.aborted || request2.completed) {
+ return;
+ }
+ request2.onComplete(trailers);
+ });
+ return true;
+ function writeBodyH2() {
+ if (!body || contentLength === 0) {
+ writeBuffer(
+ abort,
+ stream,
+ null,
+ client,
+ request2,
+ client[kSocket],
+ contentLength,
+ expectsPayload
+ );
+ } else if (util3.isBuffer(body)) {
+ writeBuffer(
+ abort,
+ stream,
+ body,
+ client,
+ request2,
+ client[kSocket],
+ contentLength,
+ expectsPayload
+ );
+ } else if (util3.isBlobLike(body)) {
+ if (typeof body.stream === "function") {
+ writeIterable(
+ abort,
+ stream,
+ body.stream(),
+ client,
+ request2,
+ client[kSocket],
+ contentLength,
+ expectsPayload
+ );
+ } else {
+ writeBlob(
+ abort,
+ stream,
+ body,
+ client,
+ request2,
+ client[kSocket],
+ contentLength,
+ expectsPayload
+ );
+ }
+ } else if (util3.isStream(body)) {
+ writeStream(
+ abort,
+ client[kSocket],
+ expectsPayload,
+ stream,
+ body,
+ client,
+ request2,
+ contentLength
+ );
+ } else if (util3.isIterable(body)) {
+ writeIterable(
+ abort,
+ stream,
+ body,
+ client,
+ request2,
+ client[kSocket],
+ contentLength,
+ expectsPayload
+ );
+ } else {
+ assert2(false);
+ }
+ }
+ }
+ function writeBuffer(abort, h2stream, body, client, request2, socket, contentLength, expectsPayload) {
+ try {
+ if (body != null && util3.isBuffer(body)) {
+ assert2(contentLength === body.byteLength, "buffer body must have content length");
+ h2stream.cork();
+ h2stream.write(body);
+ h2stream.uncork();
+ h2stream.end();
+ request2.onBodySent(body);
+ }
+ if (!expectsPayload) {
+ socket[kReset] = true;
+ }
+ request2.onRequestSent();
+ client[kResume]();
+ } catch (error41) {
+ abort(error41);
+ }
+ }
+ function writeStream(abort, socket, expectsPayload, h2stream, body, client, request2, contentLength) {
+ assert2(contentLength !== 0 || client[kRunning] === 0, "stream body cannot be pipelined");
+ const pipe = pipeline2(
+ body,
+ h2stream,
+ (err) => {
+ if (err) {
+ util3.destroy(pipe, err);
+ abort(err);
+ } else {
+ util3.removeAllListeners(pipe);
+ request2.onRequestSent();
+ if (!expectsPayload) {
+ socket[kReset] = true;
+ }
+ client[kResume]();
+ }
+ }
+ );
+ util3.addListener(pipe, "data", onPipeData);
+ function onPipeData(chunk) {
+ request2.onBodySent(chunk);
+ }
+ }
+ async function writeBlob(abort, h2stream, body, client, request2, socket, contentLength, expectsPayload) {
+ assert2(contentLength === body.size, "blob body must have content length");
+ try {
+ if (contentLength != null && contentLength !== body.size) {
+ throw new RequestContentLengthMismatchError();
+ }
+ const buffer = Buffer.from(await body.arrayBuffer());
+ h2stream.cork();
+ h2stream.write(buffer);
+ h2stream.uncork();
+ h2stream.end();
+ request2.onBodySent(buffer);
+ request2.onRequestSent();
+ if (!expectsPayload) {
+ socket[kReset] = true;
+ }
+ client[kResume]();
+ } catch (err) {
+ abort(err);
+ }
+ }
+ async function writeIterable(abort, h2stream, body, client, request2, socket, contentLength, expectsPayload) {
+ assert2(contentLength !== 0 || client[kRunning] === 0, "iterator body cannot be pipelined");
+ let callback = null;
+ function onDrain() {
+ if (callback) {
+ const cb = callback;
+ callback = null;
+ cb();
+ }
+ }
+ const waitForDrain = () => new Promise((resolve, reject) => {
+ assert2(callback === null);
+ if (socket[kError]) {
+ reject(socket[kError]);
+ } else {
+ callback = resolve;
+ }
+ });
+ h2stream.on("close", onDrain).on("drain", onDrain);
+ try {
+ for await (const chunk of body) {
+ if (socket[kError]) {
+ throw socket[kError];
+ }
+ const res = h2stream.write(chunk);
+ request2.onBodySent(chunk);
+ if (!res) {
+ await waitForDrain();
+ }
+ }
+ h2stream.end();
+ request2.onRequestSent();
+ if (!expectsPayload) {
+ socket[kReset] = true;
+ }
+ client[kResume]();
+ } catch (err) {
+ abort(err);
+ } finally {
+ h2stream.off("close", onDrain).off("drain", onDrain);
+ }
+ }
+ module.exports = connectH2;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/client.js
+var require_client2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/client.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var net = __require("node:net");
+ var http2 = __require("node:http");
+ var util3 = require_util11();
+ var { ClientStats } = require_stats();
+ var { channels } = require_diagnostics();
+ var Request2 = require_request3();
+ var DispatcherBase = require_dispatcher_base2();
+ var {
+ InvalidArgumentError,
+ InformationalError,
+ ClientDestroyedError
+ } = require_errors2();
+ var buildConnector = require_connect2();
+ var {
+ kUrl,
+ kServerName,
+ kClient,
+ kBusy,
+ kConnect,
+ kResuming,
+ kRunning,
+ kPending,
+ kSize,
+ kQueue,
+ kConnected,
+ kConnecting,
+ kNeedDrain,
+ kKeepAliveDefaultTimeout,
+ kHostHeader,
+ kPendingIdx,
+ kRunningIdx,
+ kError,
+ kPipelining,
+ kKeepAliveTimeoutValue,
+ kMaxHeadersSize,
+ kKeepAliveMaxTimeout,
+ kKeepAliveTimeoutThreshold,
+ kHeadersTimeout,
+ kBodyTimeout,
+ kStrictContentLength,
+ kConnector,
+ kMaxRequests,
+ kCounter,
+ kClose,
+ kDestroy,
+ kDispatch,
+ kLocalAddress,
+ kMaxResponseSize,
+ kOnError,
+ kHTTPContext,
+ kMaxConcurrentStreams,
+ kResume
+ } = require_symbols6();
+ var connectH1 = require_client_h1();
+ var connectH2 = require_client_h2();
+ var kClosedResolve = Symbol("kClosedResolve");
+ var getDefaultNodeMaxHeaderSize = http2 && http2.maxHeaderSize && Number.isInteger(http2.maxHeaderSize) && http2.maxHeaderSize > 0 ? () => http2.maxHeaderSize : () => {
+ throw new InvalidArgumentError("http module not available or http.maxHeaderSize invalid");
+ };
+ var noop3 = () => {
+ };
+ function getPipelining(client) {
+ return client[kPipelining] ?? client[kHTTPContext]?.defaultPipelining ?? 1;
+ }
+ var Client2 = class extends DispatcherBase {
+ /**
+ *
+ * @param {string|URL} url
+ * @param {import('../../types/client.js').Client.Options} options
+ */
+ constructor(url2, {
+ maxHeaderSize,
+ headersTimeout,
+ socketTimeout,
+ requestTimeout,
+ connectTimeout,
+ bodyTimeout,
+ idleTimeout,
+ keepAlive,
+ keepAliveTimeout,
+ maxKeepAliveTimeout,
+ keepAliveMaxTimeout,
+ keepAliveTimeoutThreshold,
+ socketPath,
+ pipelining,
+ tls,
+ strictContentLength,
+ maxCachedSessions,
+ connect: connect2,
+ maxRequestsPerClient,
+ localAddress,
+ maxResponseSize,
+ autoSelectFamily,
+ autoSelectFamilyAttemptTimeout,
+ // h2
+ maxConcurrentStreams,
+ allowH2
+ } = {}) {
+ if (keepAlive !== void 0) {
+ throw new InvalidArgumentError("unsupported keepAlive, use pipelining=0 instead");
+ }
+ if (socketTimeout !== void 0) {
+ throw new InvalidArgumentError("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");
+ }
+ if (requestTimeout !== void 0) {
+ throw new InvalidArgumentError("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");
+ }
+ if (idleTimeout !== void 0) {
+ throw new InvalidArgumentError("unsupported idleTimeout, use keepAliveTimeout instead");
+ }
+ if (maxKeepAliveTimeout !== void 0) {
+ throw new InvalidArgumentError("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");
+ }
+ if (maxHeaderSize != null) {
+ if (!Number.isInteger(maxHeaderSize) || maxHeaderSize < 1) {
+ throw new InvalidArgumentError("invalid maxHeaderSize");
+ }
+ } else {
+ maxHeaderSize = getDefaultNodeMaxHeaderSize();
+ }
+ if (socketPath != null && typeof socketPath !== "string") {
+ throw new InvalidArgumentError("invalid socketPath");
+ }
+ if (connectTimeout != null && (!Number.isFinite(connectTimeout) || connectTimeout < 0)) {
+ throw new InvalidArgumentError("invalid connectTimeout");
+ }
+ if (keepAliveTimeout != null && (!Number.isFinite(keepAliveTimeout) || keepAliveTimeout <= 0)) {
+ throw new InvalidArgumentError("invalid keepAliveTimeout");
+ }
+ if (keepAliveMaxTimeout != null && (!Number.isFinite(keepAliveMaxTimeout) || keepAliveMaxTimeout <= 0)) {
+ throw new InvalidArgumentError("invalid keepAliveMaxTimeout");
+ }
+ if (keepAliveTimeoutThreshold != null && !Number.isFinite(keepAliveTimeoutThreshold)) {
+ throw new InvalidArgumentError("invalid keepAliveTimeoutThreshold");
+ }
+ if (headersTimeout != null && (!Number.isInteger(headersTimeout) || headersTimeout < 0)) {
+ throw new InvalidArgumentError("headersTimeout must be a positive integer or zero");
+ }
+ if (bodyTimeout != null && (!Number.isInteger(bodyTimeout) || bodyTimeout < 0)) {
+ throw new InvalidArgumentError("bodyTimeout must be a positive integer or zero");
+ }
+ if (connect2 != null && typeof connect2 !== "function" && typeof connect2 !== "object") {
+ throw new InvalidArgumentError("connect must be a function or an object");
+ }
+ if (maxRequestsPerClient != null && (!Number.isInteger(maxRequestsPerClient) || maxRequestsPerClient < 0)) {
+ throw new InvalidArgumentError("maxRequestsPerClient must be a positive number");
+ }
+ if (localAddress != null && (typeof localAddress !== "string" || net.isIP(localAddress) === 0)) {
+ throw new InvalidArgumentError("localAddress must be valid string IP address");
+ }
+ if (maxResponseSize != null && (!Number.isInteger(maxResponseSize) || maxResponseSize < -1)) {
+ throw new InvalidArgumentError("maxResponseSize must be a positive number");
+ }
+ if (autoSelectFamilyAttemptTimeout != null && (!Number.isInteger(autoSelectFamilyAttemptTimeout) || autoSelectFamilyAttemptTimeout < -1)) {
+ throw new InvalidArgumentError("autoSelectFamilyAttemptTimeout must be a positive number");
+ }
+ if (allowH2 != null && typeof allowH2 !== "boolean") {
+ throw new InvalidArgumentError("allowH2 must be a valid boolean value");
+ }
+ if (maxConcurrentStreams != null && (typeof maxConcurrentStreams !== "number" || maxConcurrentStreams < 1)) {
+ throw new InvalidArgumentError("maxConcurrentStreams must be a positive integer, greater than 0");
+ }
+ super();
+ if (typeof connect2 !== "function") {
+ connect2 = buildConnector({
+ ...tls,
+ maxCachedSessions,
+ allowH2,
+ socketPath,
+ timeout: connectTimeout,
+ ...typeof autoSelectFamily === "boolean" ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
+ ...connect2
+ });
+ }
+ this[kUrl] = util3.parseOrigin(url2);
+ this[kConnector] = connect2;
+ this[kPipelining] = pipelining != null ? pipelining : 1;
+ this[kMaxHeadersSize] = maxHeaderSize;
+ this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout;
+ this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 6e5 : keepAliveMaxTimeout;
+ this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 2e3 : keepAliveTimeoutThreshold;
+ this[kKeepAliveTimeoutValue] = this[kKeepAliveDefaultTimeout];
+ this[kServerName] = null;
+ this[kLocalAddress] = localAddress != null ? localAddress : null;
+ this[kResuming] = 0;
+ this[kNeedDrain] = 0;
+ this[kHostHeader] = `host: ${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ""}\r
+`;
+ this[kBodyTimeout] = bodyTimeout != null ? bodyTimeout : 3e5;
+ this[kHeadersTimeout] = headersTimeout != null ? headersTimeout : 3e5;
+ this[kStrictContentLength] = strictContentLength == null ? true : strictContentLength;
+ this[kMaxRequests] = maxRequestsPerClient;
+ this[kClosedResolve] = null;
+ this[kMaxResponseSize] = maxResponseSize > -1 ? maxResponseSize : -1;
+ this[kMaxConcurrentStreams] = maxConcurrentStreams != null ? maxConcurrentStreams : 100;
+ this[kHTTPContext] = null;
+ this[kQueue] = [];
+ this[kRunningIdx] = 0;
+ this[kPendingIdx] = 0;
+ this[kResume] = (sync) => resume(this, sync);
+ this[kOnError] = (err) => onError(this, err);
+ }
+ get pipelining() {
+ return this[kPipelining];
+ }
+ set pipelining(value2) {
+ this[kPipelining] = value2;
+ this[kResume](true);
+ }
+ get stats() {
+ return new ClientStats(this);
+ }
+ get [kPending]() {
+ return this[kQueue].length - this[kPendingIdx];
+ }
+ get [kRunning]() {
+ return this[kPendingIdx] - this[kRunningIdx];
+ }
+ get [kSize]() {
+ return this[kQueue].length - this[kRunningIdx];
+ }
+ get [kConnected]() {
+ return !!this[kHTTPContext] && !this[kConnecting] && !this[kHTTPContext].destroyed;
+ }
+ get [kBusy]() {
+ return Boolean(
+ this[kHTTPContext]?.busy(null) || this[kSize] >= (getPipelining(this) || 1) || this[kPending] > 0
+ );
+ }
+ /* istanbul ignore: only used for test */
+ [kConnect](cb) {
+ connect(this);
+ this.once("connect", cb);
+ }
+ [kDispatch](opts, handler2) {
+ const request2 = new Request2(this[kUrl].origin, opts, handler2);
+ this[kQueue].push(request2);
+ if (this[kResuming]) {
+ } else if (util3.bodyLength(request2.body) == null && util3.isIterable(request2.body)) {
+ this[kResuming] = 1;
+ queueMicrotask(() => resume(this));
+ } else {
+ this[kResume](true);
+ }
+ if (this[kResuming] && this[kNeedDrain] !== 2 && this[kBusy]) {
+ this[kNeedDrain] = 2;
+ }
+ return this[kNeedDrain] < 2;
+ }
+ [kClose]() {
+ return new Promise((resolve) => {
+ if (this[kSize]) {
+ this[kClosedResolve] = resolve;
+ } else {
+ resolve(null);
+ }
+ });
+ }
+ [kDestroy](err) {
+ return new Promise((resolve) => {
+ const requests = this[kQueue].splice(this[kPendingIdx]);
+ for (let i = 0; i < requests.length; i++) {
+ const request2 = requests[i];
+ util3.errorRequest(this, request2, err);
+ }
+ const callback = () => {
+ if (this[kClosedResolve]) {
+ this[kClosedResolve]();
+ this[kClosedResolve] = null;
+ }
+ resolve(null);
+ };
+ if (this[kHTTPContext]) {
+ this[kHTTPContext].destroy(err, callback);
+ this[kHTTPContext] = null;
+ } else {
+ queueMicrotask(callback);
+ }
+ this[kResume]();
+ });
+ }
+ };
+ function onError(client, err) {
+ if (client[kRunning] === 0 && err.code !== "UND_ERR_INFO" && err.code !== "UND_ERR_SOCKET") {
+ assert2(client[kPendingIdx] === client[kRunningIdx]);
+ const requests = client[kQueue].splice(client[kRunningIdx]);
+ for (let i = 0; i < requests.length; i++) {
+ const request2 = requests[i];
+ util3.errorRequest(client, request2, err);
+ }
+ assert2(client[kSize] === 0);
+ }
+ }
+ function connect(client) {
+ assert2(!client[kConnecting]);
+ assert2(!client[kHTTPContext]);
+ let { host, hostname: hostname2, protocol, port } = client[kUrl];
+ if (hostname2[0] === "[") {
+ const idx = hostname2.indexOf("]");
+ assert2(idx !== -1);
+ const ip2 = hostname2.substring(1, idx);
+ assert2(net.isIPv6(ip2));
+ hostname2 = ip2;
+ }
+ client[kConnecting] = true;
+ if (channels.beforeConnect.hasSubscribers) {
+ channels.beforeConnect.publish({
+ connectParams: {
+ host,
+ hostname: hostname2,
+ protocol,
+ port,
+ version: client[kHTTPContext]?.version,
+ servername: client[kServerName],
+ localAddress: client[kLocalAddress]
+ },
+ connector: client[kConnector]
+ });
+ }
+ client[kConnector]({
+ host,
+ hostname: hostname2,
+ protocol,
+ port,
+ servername: client[kServerName],
+ localAddress: client[kLocalAddress]
+ }, (err, socket) => {
+ if (err) {
+ handleConnectError(client, err, { host, hostname: hostname2, protocol, port });
+ client[kResume]();
+ return;
+ }
+ if (client.destroyed) {
+ util3.destroy(socket.on("error", noop3), new ClientDestroyedError());
+ client[kResume]();
+ return;
+ }
+ assert2(socket);
+ try {
+ client[kHTTPContext] = socket.alpnProtocol === "h2" ? connectH2(client, socket) : connectH1(client, socket);
+ } catch (err2) {
+ socket.destroy().on("error", noop3);
+ handleConnectError(client, err2, { host, hostname: hostname2, protocol, port });
+ client[kResume]();
+ return;
+ }
+ client[kConnecting] = false;
+ socket[kCounter] = 0;
+ socket[kMaxRequests] = client[kMaxRequests];
+ socket[kClient] = client;
+ socket[kError] = null;
+ if (channels.connected.hasSubscribers) {
+ channels.connected.publish({
+ connectParams: {
+ host,
+ hostname: hostname2,
+ protocol,
+ port,
+ version: client[kHTTPContext]?.version,
+ servername: client[kServerName],
+ localAddress: client[kLocalAddress]
+ },
+ connector: client[kConnector],
+ socket
+ });
+ }
+ client.emit("connect", client[kUrl], [client]);
+ client[kResume]();
+ });
+ }
+ function handleConnectError(client, err, { host, hostname: hostname2, protocol, port }) {
+ if (client.destroyed) {
+ return;
+ }
+ client[kConnecting] = false;
+ if (channels.connectError.hasSubscribers) {
+ channels.connectError.publish({
+ connectParams: {
+ host,
+ hostname: hostname2,
+ protocol,
+ port,
+ version: client[kHTTPContext]?.version,
+ servername: client[kServerName],
+ localAddress: client[kLocalAddress]
+ },
+ connector: client[kConnector],
+ error: err
+ });
+ }
+ if (err.code === "ERR_TLS_CERT_ALTNAME_INVALID") {
+ assert2(client[kRunning] === 0);
+ while (client[kPending] > 0 && client[kQueue][client[kPendingIdx]].servername === client[kServerName]) {
+ const request2 = client[kQueue][client[kPendingIdx]++];
+ util3.errorRequest(client, request2, err);
+ }
+ } else {
+ onError(client, err);
+ }
+ client.emit("connectionError", client[kUrl], [client], err);
+ }
+ function emitDrain(client) {
+ client[kNeedDrain] = 0;
+ client.emit("drain", client[kUrl], [client]);
+ }
+ function resume(client, sync) {
+ if (client[kResuming] === 2) {
+ return;
+ }
+ client[kResuming] = 2;
+ _resume(client, sync);
+ client[kResuming] = 0;
+ if (client[kRunningIdx] > 256) {
+ client[kQueue].splice(0, client[kRunningIdx]);
+ client[kPendingIdx] -= client[kRunningIdx];
+ client[kRunningIdx] = 0;
+ }
+ }
+ function _resume(client, sync) {
+ while (true) {
+ if (client.destroyed) {
+ assert2(client[kPending] === 0);
+ return;
+ }
+ if (client[kClosedResolve] && !client[kSize]) {
+ client[kClosedResolve]();
+ client[kClosedResolve] = null;
+ return;
+ }
+ if (client[kHTTPContext]) {
+ client[kHTTPContext].resume();
+ }
+ if (client[kBusy]) {
+ client[kNeedDrain] = 2;
+ } else if (client[kNeedDrain] === 2) {
+ if (sync) {
+ client[kNeedDrain] = 1;
+ queueMicrotask(() => emitDrain(client));
+ } else {
+ emitDrain(client);
+ }
+ continue;
+ }
+ if (client[kPending] === 0) {
+ return;
+ }
+ if (client[kRunning] >= (getPipelining(client) || 1)) {
+ return;
+ }
+ const request2 = client[kQueue][client[kPendingIdx]];
+ if (client[kUrl].protocol === "https:" && client[kServerName] !== request2.servername) {
+ if (client[kRunning] > 0) {
+ return;
+ }
+ client[kServerName] = request2.servername;
+ client[kHTTPContext]?.destroy(new InformationalError("servername changed"), () => {
+ client[kHTTPContext] = null;
+ resume(client);
+ });
+ }
+ if (client[kConnecting]) {
+ return;
+ }
+ if (!client[kHTTPContext]) {
+ connect(client);
+ return;
+ }
+ if (client[kHTTPContext].destroyed) {
+ return;
+ }
+ if (client[kHTTPContext].busy(request2)) {
+ return;
+ }
+ if (!request2.aborted && client[kHTTPContext].write(request2)) {
+ client[kPendingIdx]++;
+ } else {
+ client[kQueue].splice(client[kPendingIdx], 1);
+ }
+ }
+ }
+ module.exports = Client2;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/fixed-queue.js
+var require_fixed_queue2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/fixed-queue.js"(exports, module) {
+ "use strict";
+ var kSize = 2048;
+ var kMask = kSize - 1;
+ var FixedCircularBuffer = class {
+ /** @type {number} */
+ bottom = 0;
+ /** @type {number} */
+ top = 0;
+ /** @type {Array} */
+ list = new Array(kSize).fill(void 0);
+ /** @type {T|null} */
+ next = null;
+ /** @returns {boolean} */
+ isEmpty() {
+ return this.top === this.bottom;
+ }
+ /** @returns {boolean} */
+ isFull() {
+ return (this.top + 1 & kMask) === this.bottom;
+ }
+ /**
+ * @param {T} data
+ * @returns {void}
+ */
+ push(data) {
+ this.list[this.top] = data;
+ this.top = this.top + 1 & kMask;
+ }
+ /** @returns {T|null} */
+ shift() {
+ const nextItem = this.list[this.bottom];
+ if (nextItem === void 0) {
+ return null;
+ }
+ this.list[this.bottom] = void 0;
+ this.bottom = this.bottom + 1 & kMask;
+ return nextItem;
+ }
+ };
+ module.exports = class FixedQueue {
+ constructor() {
+ this.head = this.tail = new FixedCircularBuffer();
+ }
+ /** @returns {boolean} */
+ isEmpty() {
+ return this.head.isEmpty();
+ }
+ /** @param {T} data */
+ push(data) {
+ if (this.head.isFull()) {
+ this.head = this.head.next = new FixedCircularBuffer();
+ }
+ this.head.push(data);
+ }
+ /** @returns {T|null} */
+ shift() {
+ const tail = this.tail;
+ const next2 = tail.shift();
+ if (tail.isEmpty() && tail.next !== null) {
+ this.tail = tail.next;
+ tail.next = null;
+ }
+ return next2;
+ }
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/pool-base.js
+var require_pool_base2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/pool-base.js"(exports, module) {
+ "use strict";
+ var { PoolStats } = require_stats();
+ var DispatcherBase = require_dispatcher_base2();
+ var FixedQueue = require_fixed_queue2();
+ var { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = require_symbols6();
+ var kClients = Symbol("clients");
+ var kNeedDrain = Symbol("needDrain");
+ var kQueue = Symbol("queue");
+ var kClosedResolve = Symbol("closed resolve");
+ var kOnDrain = Symbol("onDrain");
+ var kOnConnect = Symbol("onConnect");
+ var kOnDisconnect = Symbol("onDisconnect");
+ var kOnConnectionError = Symbol("onConnectionError");
+ var kGetDispatcher = Symbol("get dispatcher");
+ var kAddClient = Symbol("add client");
+ var kRemoveClient = Symbol("remove client");
+ var PoolBase = class extends DispatcherBase {
+ [kQueue] = new FixedQueue();
+ [kQueued] = 0;
+ [kClients] = [];
+ [kNeedDrain] = false;
+ [kOnDrain](client, origin, targets) {
+ const queue = this[kQueue];
+ let needDrain = false;
+ while (!needDrain) {
+ const item = queue.shift();
+ if (!item) {
+ break;
+ }
+ this[kQueued]--;
+ needDrain = !client.dispatch(item.opts, item.handler);
+ }
+ client[kNeedDrain] = needDrain;
+ if (!needDrain && this[kNeedDrain]) {
+ this[kNeedDrain] = false;
+ this.emit("drain", origin, [this, ...targets]);
+ }
+ if (this[kClosedResolve] && queue.isEmpty()) {
+ const closeAll = new Array(this[kClients].length);
+ for (let i = 0; i < this[kClients].length; i++) {
+ closeAll[i] = this[kClients][i].close();
+ }
+ Promise.all(closeAll).then(this[kClosedResolve]);
+ }
+ }
+ [kOnConnect] = (origin, targets) => {
+ this.emit("connect", origin, [this, ...targets]);
+ };
+ [kOnDisconnect] = (origin, targets, err) => {
+ this.emit("disconnect", origin, [this, ...targets], err);
+ };
+ [kOnConnectionError] = (origin, targets, err) => {
+ this.emit("connectionError", origin, [this, ...targets], err);
+ };
+ get [kBusy]() {
+ return this[kNeedDrain];
+ }
+ get [kConnected]() {
+ let ret = 0;
+ for (const { [kConnected]: connected } of this[kClients]) {
+ ret += connected;
+ }
+ return ret;
+ }
+ get [kFree]() {
+ let ret = 0;
+ for (const { [kConnected]: connected, [kNeedDrain]: needDrain } of this[kClients]) {
+ ret += connected && !needDrain;
+ }
+ return ret;
+ }
+ get [kPending]() {
+ let ret = this[kQueued];
+ for (const { [kPending]: pending } of this[kClients]) {
+ ret += pending;
+ }
+ return ret;
+ }
+ get [kRunning]() {
+ let ret = 0;
+ for (const { [kRunning]: running } of this[kClients]) {
+ ret += running;
+ }
+ return ret;
+ }
+ get [kSize]() {
+ let ret = this[kQueued];
+ for (const { [kSize]: size } of this[kClients]) {
+ ret += size;
+ }
+ return ret;
+ }
+ get stats() {
+ return new PoolStats(this);
+ }
+ [kClose]() {
+ if (this[kQueue].isEmpty()) {
+ const closeAll = new Array(this[kClients].length);
+ for (let i = 0; i < this[kClients].length; i++) {
+ closeAll[i] = this[kClients][i].close();
+ }
+ return Promise.all(closeAll);
+ } else {
+ return new Promise((resolve) => {
+ this[kClosedResolve] = resolve;
+ });
+ }
+ }
+ [kDestroy](err) {
+ while (true) {
+ const item = this[kQueue].shift();
+ if (!item) {
+ break;
+ }
+ item.handler.onError(err);
+ }
+ const destroyAll = new Array(this[kClients].length);
+ for (let i = 0; i < this[kClients].length; i++) {
+ destroyAll[i] = this[kClients][i].destroy(err);
+ }
+ return Promise.all(destroyAll);
+ }
+ [kDispatch](opts, handler2) {
+ const dispatcher = this[kGetDispatcher]();
+ if (!dispatcher) {
+ this[kNeedDrain] = true;
+ this[kQueue].push({ opts, handler: handler2 });
+ this[kQueued]++;
+ } else if (!dispatcher.dispatch(opts, handler2)) {
+ dispatcher[kNeedDrain] = true;
+ this[kNeedDrain] = !this[kGetDispatcher]();
+ }
+ return !this[kNeedDrain];
+ }
+ [kAddClient](client) {
+ client.on("drain", this[kOnDrain].bind(this, client)).on("connect", this[kOnConnect]).on("disconnect", this[kOnDisconnect]).on("connectionError", this[kOnConnectionError]);
+ this[kClients].push(client);
+ if (this[kNeedDrain]) {
+ queueMicrotask(() => {
+ if (this[kNeedDrain]) {
+ this[kOnDrain](client, client[kUrl], [client, this]);
+ }
+ });
+ }
+ return this;
+ }
+ [kRemoveClient](client) {
+ client.close(() => {
+ const idx = this[kClients].indexOf(client);
+ if (idx !== -1) {
+ this[kClients].splice(idx, 1);
+ }
+ });
+ this[kNeedDrain] = this[kClients].some((dispatcher) => !dispatcher[kNeedDrain] && dispatcher.closed !== true && dispatcher.destroyed !== true);
+ }
+ };
+ module.exports = {
+ PoolBase,
+ kClients,
+ kNeedDrain,
+ kAddClient,
+ kRemoveClient,
+ kGetDispatcher
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/pool.js
+var require_pool2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/pool.js"(exports, module) {
+ "use strict";
+ var {
+ PoolBase,
+ kClients,
+ kNeedDrain,
+ kAddClient,
+ kGetDispatcher,
+ kRemoveClient
+ } = require_pool_base2();
+ var Client2 = require_client2();
+ var {
+ InvalidArgumentError
+ } = require_errors2();
+ var util3 = require_util11();
+ var { kUrl } = require_symbols6();
+ var buildConnector = require_connect2();
+ var kOptions = Symbol("options");
+ var kConnections = Symbol("connections");
+ var kFactory = Symbol("factory");
+ function defaultFactory(origin, opts) {
+ return new Client2(origin, opts);
+ }
+ var Pool = class extends PoolBase {
+ constructor(origin, {
+ connections,
+ factory = defaultFactory,
+ connect,
+ connectTimeout,
+ tls,
+ maxCachedSessions,
+ socketPath,
+ autoSelectFamily,
+ autoSelectFamilyAttemptTimeout,
+ allowH2,
+ clientTtl,
+ ...options
+ } = {}) {
+ if (connections != null && (!Number.isFinite(connections) || connections < 0)) {
+ throw new InvalidArgumentError("invalid connections");
+ }
+ if (typeof factory !== "function") {
+ throw new InvalidArgumentError("factory must be a function.");
+ }
+ if (connect != null && typeof connect !== "function" && typeof connect !== "object") {
+ throw new InvalidArgumentError("connect must be a function or an object");
+ }
+ if (typeof connect !== "function") {
+ connect = buildConnector({
+ ...tls,
+ maxCachedSessions,
+ allowH2,
+ socketPath,
+ timeout: connectTimeout,
+ ...typeof autoSelectFamily === "boolean" ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : void 0,
+ ...connect
+ });
+ }
+ super();
+ this[kConnections] = connections || null;
+ this[kUrl] = util3.parseOrigin(origin);
+ this[kOptions] = { ...util3.deepClone(options), connect, allowH2, clientTtl };
+ this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0;
+ this[kFactory] = factory;
+ this.on("connect", (origin2, targets) => {
+ if (clientTtl != null && clientTtl > 0) {
+ for (const target of targets) {
+ Object.assign(target, { ttl: Date.now() });
+ }
+ }
+ });
+ this.on("connectionError", (origin2, targets, error41) => {
+ for (const target of targets) {
+ const idx = this[kClients].indexOf(target);
+ if (idx !== -1) {
+ this[kClients].splice(idx, 1);
+ }
+ }
+ });
+ }
+ [kGetDispatcher]() {
+ const clientTtlOption = this[kOptions].clientTtl;
+ for (const client of this[kClients]) {
+ if (clientTtlOption != null && clientTtlOption > 0 && client.ttl && Date.now() - client.ttl > clientTtlOption) {
+ this[kRemoveClient](client);
+ } else if (!client[kNeedDrain]) {
+ return client;
+ }
+ }
+ if (!this[kConnections] || this[kClients].length < this[kConnections]) {
+ const dispatcher = this[kFactory](this[kUrl], this[kOptions]);
+ this[kAddClient](dispatcher);
+ return dispatcher;
+ }
+ }
+ };
+ module.exports = Pool;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/balanced-pool.js
+var require_balanced_pool2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/balanced-pool.js"(exports, module) {
+ "use strict";
+ var {
+ BalancedPoolMissingUpstreamError,
+ InvalidArgumentError
+ } = require_errors2();
+ var {
+ PoolBase,
+ kClients,
+ kNeedDrain,
+ kAddClient,
+ kRemoveClient,
+ kGetDispatcher
+ } = require_pool_base2();
+ var Pool = require_pool2();
+ var { kUrl } = require_symbols6();
+ var { parseOrigin } = require_util11();
+ var kFactory = Symbol("factory");
+ var kOptions = Symbol("options");
+ var kGreatestCommonDivisor = Symbol("kGreatestCommonDivisor");
+ var kCurrentWeight = Symbol("kCurrentWeight");
+ var kIndex = Symbol("kIndex");
+ var kWeight = Symbol("kWeight");
+ var kMaxWeightPerServer = Symbol("kMaxWeightPerServer");
+ var kErrorPenalty = Symbol("kErrorPenalty");
+ function getGreatestCommonDivisor(a, b) {
+ if (a === 0) return b;
+ while (b !== 0) {
+ const t = b;
+ b = a % b;
+ a = t;
+ }
+ return a;
+ }
+ function defaultFactory(origin, opts) {
+ return new Pool(origin, opts);
+ }
+ var BalancedPool = class extends PoolBase {
+ constructor(upstreams = [], { factory = defaultFactory, ...opts } = {}) {
+ if (typeof factory !== "function") {
+ throw new InvalidArgumentError("factory must be a function.");
+ }
+ super();
+ this[kOptions] = opts;
+ this[kIndex] = -1;
+ this[kCurrentWeight] = 0;
+ this[kMaxWeightPerServer] = this[kOptions].maxWeightPerServer || 100;
+ this[kErrorPenalty] = this[kOptions].errorPenalty || 15;
+ if (!Array.isArray(upstreams)) {
+ upstreams = [upstreams];
+ }
+ this[kFactory] = factory;
+ for (const upstream of upstreams) {
+ this.addUpstream(upstream);
+ }
+ this._updateBalancedPoolStats();
+ }
+ addUpstream(upstream) {
+ const upstreamOrigin = parseOrigin(upstream).origin;
+ if (this[kClients].find((pool2) => pool2[kUrl].origin === upstreamOrigin && pool2.closed !== true && pool2.destroyed !== true)) {
+ return this;
+ }
+ const pool = this[kFactory](upstreamOrigin, Object.assign({}, this[kOptions]));
+ this[kAddClient](pool);
+ pool.on("connect", () => {
+ pool[kWeight] = Math.min(this[kMaxWeightPerServer], pool[kWeight] + this[kErrorPenalty]);
+ });
+ pool.on("connectionError", () => {
+ pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty]);
+ this._updateBalancedPoolStats();
+ });
+ pool.on("disconnect", (...args2) => {
+ const err = args2[2];
+ if (err && err.code === "UND_ERR_SOCKET") {
+ pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty]);
+ this._updateBalancedPoolStats();
+ }
+ });
+ for (const client of this[kClients]) {
+ client[kWeight] = this[kMaxWeightPerServer];
+ }
+ this._updateBalancedPoolStats();
+ return this;
+ }
+ _updateBalancedPoolStats() {
+ let result = 0;
+ for (let i = 0; i < this[kClients].length; i++) {
+ result = getGreatestCommonDivisor(this[kClients][i][kWeight], result);
+ }
+ this[kGreatestCommonDivisor] = result;
+ }
+ removeUpstream(upstream) {
+ const upstreamOrigin = parseOrigin(upstream).origin;
+ const pool = this[kClients].find((pool2) => pool2[kUrl].origin === upstreamOrigin && pool2.closed !== true && pool2.destroyed !== true);
+ if (pool) {
+ this[kRemoveClient](pool);
+ }
+ return this;
+ }
+ get upstreams() {
+ return this[kClients].filter((dispatcher) => dispatcher.closed !== true && dispatcher.destroyed !== true).map((p) => p[kUrl].origin);
+ }
+ [kGetDispatcher]() {
+ if (this[kClients].length === 0) {
+ throw new BalancedPoolMissingUpstreamError();
+ }
+ const dispatcher = this[kClients].find((dispatcher2) => !dispatcher2[kNeedDrain] && dispatcher2.closed !== true && dispatcher2.destroyed !== true);
+ if (!dispatcher) {
+ return;
+ }
+ const allClientsBusy = this[kClients].map((pool) => pool[kNeedDrain]).reduce((a, b) => a && b, true);
+ if (allClientsBusy) {
+ return;
+ }
+ let counter = 0;
+ let maxWeightIndex = this[kClients].findIndex((pool) => !pool[kNeedDrain]);
+ while (counter++ < this[kClients].length) {
+ this[kIndex] = (this[kIndex] + 1) % this[kClients].length;
+ const pool = this[kClients][this[kIndex]];
+ if (pool[kWeight] > this[kClients][maxWeightIndex][kWeight] && !pool[kNeedDrain]) {
+ maxWeightIndex = this[kIndex];
+ }
+ if (this[kIndex] === 0) {
+ this[kCurrentWeight] = this[kCurrentWeight] - this[kGreatestCommonDivisor];
+ if (this[kCurrentWeight] <= 0) {
+ this[kCurrentWeight] = this[kMaxWeightPerServer];
+ }
+ }
+ if (pool[kWeight] >= this[kCurrentWeight] && !pool[kNeedDrain]) {
+ return pool;
+ }
+ }
+ this[kCurrentWeight] = this[kClients][maxWeightIndex][kWeight];
+ this[kIndex] = maxWeightIndex;
+ return this[kClients][maxWeightIndex];
+ }
+ };
+ module.exports = BalancedPool;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/agent.js
+var require_agent2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/agent.js"(exports, module) {
+ "use strict";
+ var { InvalidArgumentError, MaxOriginsReachedError } = require_errors2();
+ var { kClients, kRunning, kClose, kDestroy, kDispatch, kUrl } = require_symbols6();
+ var DispatcherBase = require_dispatcher_base2();
+ var Pool = require_pool2();
+ var Client2 = require_client2();
+ var util3 = require_util11();
+ var kOnConnect = Symbol("onConnect");
+ var kOnDisconnect = Symbol("onDisconnect");
+ var kOnConnectionError = Symbol("onConnectionError");
+ var kOnDrain = Symbol("onDrain");
+ var kFactory = Symbol("factory");
+ var kOptions = Symbol("options");
+ var kOrigins = Symbol("origins");
+ function defaultFactory(origin, opts) {
+ return opts && opts.connections === 1 ? new Client2(origin, opts) : new Pool(origin, opts);
+ }
+ var Agent = class extends DispatcherBase {
+ constructor({ factory = defaultFactory, maxOrigins = Infinity, connect, ...options } = {}) {
+ if (typeof factory !== "function") {
+ throw new InvalidArgumentError("factory must be a function.");
+ }
+ if (connect != null && typeof connect !== "function" && typeof connect !== "object") {
+ throw new InvalidArgumentError("connect must be a function or an object");
+ }
+ if (typeof maxOrigins !== "number" || Number.isNaN(maxOrigins) || maxOrigins <= 0) {
+ throw new InvalidArgumentError("maxOrigins must be a number greater than 0");
+ }
+ super();
+ if (connect && typeof connect !== "function") {
+ connect = { ...connect };
+ }
+ this[kOptions] = { ...util3.deepClone(options), maxOrigins, connect };
+ this[kFactory] = factory;
+ this[kClients] = /* @__PURE__ */ new Map();
+ this[kOrigins] = /* @__PURE__ */ new Set();
+ this[kOnDrain] = (origin, targets) => {
+ this.emit("drain", origin, [this, ...targets]);
+ };
+ this[kOnConnect] = (origin, targets) => {
+ this.emit("connect", origin, [this, ...targets]);
+ };
+ this[kOnDisconnect] = (origin, targets, err) => {
+ this.emit("disconnect", origin, [this, ...targets], err);
+ };
+ this[kOnConnectionError] = (origin, targets, err) => {
+ this.emit("connectionError", origin, [this, ...targets], err);
+ };
+ }
+ get [kRunning]() {
+ let ret = 0;
+ for (const { dispatcher } of this[kClients].values()) {
+ ret += dispatcher[kRunning];
+ }
+ return ret;
+ }
+ [kDispatch](opts, handler2) {
+ let key;
+ if (opts.origin && (typeof opts.origin === "string" || opts.origin instanceof URL)) {
+ key = String(opts.origin);
+ } else {
+ throw new InvalidArgumentError("opts.origin must be a non-empty string or URL.");
+ }
+ if (this[kOrigins].size >= this[kOptions].maxOrigins && !this[kOrigins].has(key)) {
+ throw new MaxOriginsReachedError();
+ }
+ const result = this[kClients].get(key);
+ let dispatcher = result && result.dispatcher;
+ if (!dispatcher) {
+ const closeClientIfUnused = (connected) => {
+ const result2 = this[kClients].get(key);
+ if (result2) {
+ if (connected) result2.count -= 1;
+ if (result2.count <= 0) {
+ this[kClients].delete(key);
+ result2.dispatcher.close();
+ }
+ this[kOrigins].delete(key);
+ }
+ };
+ dispatcher = this[kFactory](opts.origin, this[kOptions]).on("drain", this[kOnDrain]).on("connect", (origin, targets) => {
+ const result2 = this[kClients].get(key);
+ if (result2) {
+ result2.count += 1;
+ }
+ this[kOnConnect](origin, targets);
+ }).on("disconnect", (origin, targets, err) => {
+ closeClientIfUnused(true);
+ this[kOnDisconnect](origin, targets, err);
+ }).on("connectionError", (origin, targets, err) => {
+ closeClientIfUnused(false);
+ this[kOnConnectionError](origin, targets, err);
+ });
+ this[kClients].set(key, { count: 0, dispatcher });
+ this[kOrigins].add(key);
+ }
+ return dispatcher.dispatch(opts, handler2);
+ }
+ [kClose]() {
+ const closePromises = [];
+ for (const { dispatcher } of this[kClients].values()) {
+ closePromises.push(dispatcher.close());
+ }
+ this[kClients].clear();
+ return Promise.all(closePromises);
+ }
+ [kDestroy](err) {
+ const destroyPromises = [];
+ for (const { dispatcher } of this[kClients].values()) {
+ destroyPromises.push(dispatcher.destroy(err));
+ }
+ this[kClients].clear();
+ return Promise.all(destroyPromises);
+ }
+ get stats() {
+ const allClientStats = {};
+ for (const { dispatcher } of this[kClients].values()) {
+ if (dispatcher.stats) {
+ allClientStats[dispatcher[kUrl].origin] = dispatcher.stats;
+ }
+ }
+ return allClientStats;
+ }
+ };
+ module.exports = Agent;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/proxy-agent.js
+var require_proxy_agent2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/proxy-agent.js"(exports, module) {
+ "use strict";
+ var { kProxy, kClose, kDestroy, kDispatch } = require_symbols6();
+ var Agent = require_agent2();
+ var Pool = require_pool2();
+ var DispatcherBase = require_dispatcher_base2();
+ var { InvalidArgumentError, RequestAbortedError, SecureProxyConnectionError } = require_errors2();
+ var buildConnector = require_connect2();
+ var Client2 = require_client2();
+ var kAgent = Symbol("proxy agent");
+ var kClient = Symbol("proxy client");
+ var kProxyHeaders = Symbol("proxy headers");
+ var kRequestTls = Symbol("request tls settings");
+ var kProxyTls = Symbol("proxy tls settings");
+ var kConnectEndpoint = Symbol("connect endpoint function");
+ var kTunnelProxy = Symbol("tunnel proxy");
+ function defaultProtocolPort(protocol) {
+ return protocol === "https:" ? 443 : 80;
+ }
+ function defaultFactory(origin, opts) {
+ return new Pool(origin, opts);
+ }
+ var noop3 = () => {
+ };
+ function defaultAgentFactory(origin, opts) {
+ if (opts.connections === 1) {
+ return new Client2(origin, opts);
+ }
+ return new Pool(origin, opts);
+ }
+ var Http1ProxyWrapper = class extends DispatcherBase {
+ #client;
+ constructor(proxyUrl, { headers = {}, connect, factory }) {
+ if (!proxyUrl) {
+ throw new InvalidArgumentError("Proxy URL is mandatory");
+ }
+ super();
+ this[kProxyHeaders] = headers;
+ if (factory) {
+ this.#client = factory(proxyUrl, { connect });
+ } else {
+ this.#client = new Client2(proxyUrl, { connect });
+ }
+ }
+ [kDispatch](opts, handler2) {
+ const onHeaders = handler2.onHeaders;
+ handler2.onHeaders = function(statusCode, data, resume) {
+ if (statusCode === 407) {
+ if (typeof handler2.onError === "function") {
+ handler2.onError(new InvalidArgumentError("Proxy Authentication Required (407)"));
+ }
+ return;
+ }
+ if (onHeaders) onHeaders.call(this, statusCode, data, resume);
+ };
+ const {
+ origin,
+ path: path3 = "/",
+ headers = {}
+ } = opts;
+ opts.path = origin + path3;
+ if (!("host" in headers) && !("Host" in headers)) {
+ const { host } = new URL(origin);
+ headers.host = host;
+ }
+ opts.headers = { ...this[kProxyHeaders], ...headers };
+ return this.#client[kDispatch](opts, handler2);
+ }
+ [kClose]() {
+ return this.#client.close();
+ }
+ [kDestroy](err) {
+ return this.#client.destroy(err);
+ }
+ };
+ var ProxyAgent = class extends DispatcherBase {
+ constructor(opts) {
+ if (!opts || typeof opts === "object" && !(opts instanceof URL) && !opts.uri) {
+ throw new InvalidArgumentError("Proxy uri is mandatory");
+ }
+ const { clientFactory = defaultFactory } = opts;
+ if (typeof clientFactory !== "function") {
+ throw new InvalidArgumentError("Proxy opts.clientFactory must be a function.");
+ }
+ const { proxyTunnel = true } = opts;
+ super();
+ const url2 = this.#getUrl(opts);
+ const { href, origin, port, protocol, username, password, hostname: proxyHostname } = url2;
+ this[kProxy] = { uri: href, protocol };
+ this[kRequestTls] = opts.requestTls;
+ this[kProxyTls] = opts.proxyTls;
+ this[kProxyHeaders] = opts.headers || {};
+ this[kTunnelProxy] = proxyTunnel;
+ if (opts.auth && opts.token) {
+ throw new InvalidArgumentError("opts.auth cannot be used in combination with opts.token");
+ } else if (opts.auth) {
+ this[kProxyHeaders]["proxy-authorization"] = `Basic ${opts.auth}`;
+ } else if (opts.token) {
+ this[kProxyHeaders]["proxy-authorization"] = opts.token;
+ } else if (username && password) {
+ this[kProxyHeaders]["proxy-authorization"] = `Basic ${Buffer.from(`${decodeURIComponent(username)}:${decodeURIComponent(password)}`).toString("base64")}`;
+ }
+ const connect = buildConnector({ ...opts.proxyTls });
+ this[kConnectEndpoint] = buildConnector({ ...opts.requestTls });
+ const agentFactory = opts.factory || defaultAgentFactory;
+ const factory = (origin2, options) => {
+ const { protocol: protocol2 } = new URL(origin2);
+ if (!this[kTunnelProxy] && protocol2 === "http:" && this[kProxy].protocol === "http:") {
+ return new Http1ProxyWrapper(this[kProxy].uri, {
+ headers: this[kProxyHeaders],
+ connect,
+ factory: agentFactory
+ });
+ }
+ return agentFactory(origin2, options);
+ };
+ this[kClient] = clientFactory(url2, { connect });
+ this[kAgent] = new Agent({
+ ...opts,
+ factory,
+ connect: async (opts2, callback) => {
+ let requestedPath = opts2.host;
+ if (!opts2.port) {
+ requestedPath += `:${defaultProtocolPort(opts2.protocol)}`;
+ }
+ try {
+ const { socket, statusCode } = await this[kClient].connect({
+ origin,
+ port,
+ path: requestedPath,
+ signal: opts2.signal,
+ headers: {
+ ...this[kProxyHeaders],
+ host: opts2.host,
+ ...opts2.connections == null || opts2.connections > 0 ? { "proxy-connection": "keep-alive" } : {}
+ },
+ servername: this[kProxyTls]?.servername || proxyHostname
+ });
+ if (statusCode !== 200) {
+ socket.on("error", noop3).destroy();
+ callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`));
+ }
+ if (opts2.protocol !== "https:") {
+ callback(null, socket);
+ return;
+ }
+ let servername;
+ if (this[kRequestTls]) {
+ servername = this[kRequestTls].servername;
+ } else {
+ servername = opts2.servername;
+ }
+ this[kConnectEndpoint]({ ...opts2, servername, httpSocket: socket }, callback);
+ } catch (err) {
+ if (err.code === "ERR_TLS_CERT_ALTNAME_INVALID") {
+ callback(new SecureProxyConnectionError(err));
+ } else {
+ callback(err);
+ }
+ }
+ }
+ });
+ }
+ dispatch(opts, handler2) {
+ const headers = buildHeaders(opts.headers);
+ throwIfProxyAuthIsSent(headers);
+ if (headers && !("host" in headers) && !("Host" in headers)) {
+ const { host } = new URL(opts.origin);
+ headers.host = host;
+ }
+ return this[kAgent].dispatch(
+ {
+ ...opts,
+ headers
+ },
+ handler2
+ );
+ }
+ /**
+ * @param {import('../../types/proxy-agent').ProxyAgent.Options | string | URL} opts
+ * @returns {URL}
+ */
+ #getUrl(opts) {
+ if (typeof opts === "string") {
+ return new URL(opts);
+ } else if (opts instanceof URL) {
+ return opts;
+ } else {
+ return new URL(opts.uri);
+ }
+ }
+ [kClose]() {
+ return Promise.all([
+ this[kAgent].close(),
+ this[kClient].close()
+ ]);
+ }
+ [kDestroy]() {
+ return Promise.all([
+ this[kAgent].destroy(),
+ this[kClient].destroy()
+ ]);
+ }
+ };
+ function buildHeaders(headers) {
+ if (Array.isArray(headers)) {
+ const headersPair = {};
+ for (let i = 0; i < headers.length; i += 2) {
+ headersPair[headers[i]] = headers[i + 1];
+ }
+ return headersPair;
+ }
+ return headers;
+ }
+ function throwIfProxyAuthIsSent(headers) {
+ const existProxyAuth = headers && Object.keys(headers).find((key) => key.toLowerCase() === "proxy-authorization");
+ if (existProxyAuth) {
+ throw new InvalidArgumentError("Proxy-Authorization should be sent in ProxyAgent constructor");
+ }
+ }
+ module.exports = ProxyAgent;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js
+var require_env_http_proxy_agent = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js"(exports, module) {
+ "use strict";
+ var DispatcherBase = require_dispatcher_base2();
+ var { kClose, kDestroy, kClosed, kDestroyed, kDispatch, kNoProxyAgent, kHttpProxyAgent, kHttpsProxyAgent } = require_symbols6();
+ var ProxyAgent = require_proxy_agent2();
+ var Agent = require_agent2();
+ var DEFAULT_PORTS = {
+ "http:": 80,
+ "https:": 443
+ };
+ var EnvHttpProxyAgent = class extends DispatcherBase {
+ #noProxyValue = null;
+ #noProxyEntries = null;
+ #opts = null;
+ constructor(opts = {}) {
+ super();
+ this.#opts = opts;
+ const { httpProxy, httpsProxy, noProxy, ...agentOpts } = opts;
+ this[kNoProxyAgent] = new Agent(agentOpts);
+ const HTTP_PROXY = httpProxy ?? process.env.http_proxy ?? process.env.HTTP_PROXY;
+ if (HTTP_PROXY) {
+ this[kHttpProxyAgent] = new ProxyAgent({ ...agentOpts, uri: HTTP_PROXY });
+ } else {
+ this[kHttpProxyAgent] = this[kNoProxyAgent];
+ }
+ const HTTPS_PROXY = httpsProxy ?? process.env.https_proxy ?? process.env.HTTPS_PROXY;
+ if (HTTPS_PROXY) {
+ this[kHttpsProxyAgent] = new ProxyAgent({ ...agentOpts, uri: HTTPS_PROXY });
+ } else {
+ this[kHttpsProxyAgent] = this[kHttpProxyAgent];
+ }
+ this.#parseNoProxy();
+ }
+ [kDispatch](opts, handler2) {
+ const url2 = new URL(opts.origin);
+ const agent2 = this.#getProxyAgentForUrl(url2);
+ return agent2.dispatch(opts, handler2);
+ }
+ [kClose]() {
+ return Promise.all([
+ this[kNoProxyAgent].close(),
+ !this[kHttpProxyAgent][kClosed] && this[kHttpProxyAgent].close(),
+ !this[kHttpsProxyAgent][kClosed] && this[kHttpsProxyAgent].close()
+ ]);
+ }
+ [kDestroy](err) {
+ return Promise.all([
+ this[kNoProxyAgent].destroy(err),
+ !this[kHttpProxyAgent][kDestroyed] && this[kHttpProxyAgent].destroy(err),
+ !this[kHttpsProxyAgent][kDestroyed] && this[kHttpsProxyAgent].destroy(err)
+ ]);
+ }
+ #getProxyAgentForUrl(url2) {
+ let { protocol, host: hostname2, port } = url2;
+ hostname2 = hostname2.replace(/:\d*$/, "").toLowerCase();
+ port = Number.parseInt(port, 10) || DEFAULT_PORTS[protocol] || 0;
+ if (!this.#shouldProxy(hostname2, port)) {
+ return this[kNoProxyAgent];
+ }
+ if (protocol === "https:") {
+ return this[kHttpsProxyAgent];
+ }
+ return this[kHttpProxyAgent];
+ }
+ #shouldProxy(hostname2, port) {
+ if (this.#noProxyChanged) {
+ this.#parseNoProxy();
+ }
+ if (this.#noProxyEntries.length === 0) {
+ return true;
+ }
+ if (this.#noProxyValue === "*") {
+ return false;
+ }
+ for (let i = 0; i < this.#noProxyEntries.length; i++) {
+ const entry = this.#noProxyEntries[i];
+ if (entry.port && entry.port !== port) {
+ continue;
+ }
+ if (!/^[.*]/.test(entry.hostname)) {
+ if (hostname2 === entry.hostname) {
+ return false;
+ }
+ } else {
+ if (hostname2.endsWith(entry.hostname.replace(/^\*/, ""))) {
+ return false;
+ }
+ }
+ }
+ return true;
+ }
+ #parseNoProxy() {
+ const noProxyValue = this.#opts.noProxy ?? this.#noProxyEnv;
+ const noProxySplit = noProxyValue.split(/[,\s]/);
+ const noProxyEntries = [];
+ for (let i = 0; i < noProxySplit.length; i++) {
+ const entry = noProxySplit[i];
+ if (!entry) {
+ continue;
+ }
+ const parsed2 = entry.match(/^(.+):(\d+)$/);
+ noProxyEntries.push({
+ hostname: (parsed2 ? parsed2[1] : entry).toLowerCase(),
+ port: parsed2 ? Number.parseInt(parsed2[2], 10) : 0
+ });
+ }
+ this.#noProxyValue = noProxyValue;
+ this.#noProxyEntries = noProxyEntries;
+ }
+ get #noProxyChanged() {
+ if (this.#opts.noProxy !== void 0) {
+ return false;
+ }
+ return this.#noProxyValue !== this.#noProxyEnv;
+ }
+ get #noProxyEnv() {
+ return process.env.no_proxy ?? process.env.NO_PROXY ?? "";
+ }
+ };
+ module.exports = EnvHttpProxyAgent;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/retry-handler.js
+var require_retry_handler = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/retry-handler.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var { kRetryHandlerDefaultRetry } = require_symbols6();
+ var { RequestRetryError } = require_errors2();
+ var WrapHandler = require_wrap_handler();
+ var {
+ isDisturbed,
+ parseRangeHeader,
+ wrapRequestBody
+ } = require_util11();
+ function calculateRetryAfterHeader(retryAfter) {
+ const retryTime = new Date(retryAfter).getTime();
+ return isNaN(retryTime) ? 0 : retryTime - Date.now();
+ }
+ var RetryHandler = class _RetryHandler {
+ constructor(opts, { dispatch, handler: handler2 }) {
+ const { retryOptions, ...dispatchOpts } = opts;
+ const {
+ // Retry scoped
+ retry: retryFn,
+ maxRetries,
+ maxTimeout,
+ minTimeout,
+ timeoutFactor,
+ // Response scoped
+ methods,
+ errorCodes,
+ retryAfter,
+ statusCodes,
+ throwOnError
+ } = retryOptions ?? {};
+ this.error = null;
+ this.dispatch = dispatch;
+ this.handler = WrapHandler.wrap(handler2);
+ this.opts = { ...dispatchOpts, body: wrapRequestBody(opts.body) };
+ this.retryOpts = {
+ throwOnError: throwOnError ?? true,
+ retry: retryFn ?? _RetryHandler[kRetryHandlerDefaultRetry],
+ retryAfter: retryAfter ?? true,
+ maxTimeout: maxTimeout ?? 30 * 1e3,
+ // 30s,
+ minTimeout: minTimeout ?? 500,
+ // .5s
+ timeoutFactor: timeoutFactor ?? 2,
+ maxRetries: maxRetries ?? 5,
+ // What errors we should retry
+ methods: methods ?? ["GET", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE"],
+ // Indicates which errors to retry
+ statusCodes: statusCodes ?? [500, 502, 503, 504, 429],
+ // List of errors to retry
+ errorCodes: errorCodes ?? [
+ "ECONNRESET",
+ "ECONNREFUSED",
+ "ENOTFOUND",
+ "ENETDOWN",
+ "ENETUNREACH",
+ "EHOSTDOWN",
+ "EHOSTUNREACH",
+ "EPIPE",
+ "UND_ERR_SOCKET"
+ ]
+ };
+ this.retryCount = 0;
+ this.retryCountCheckpoint = 0;
+ this.headersSent = false;
+ this.start = 0;
+ this.end = null;
+ this.etag = null;
+ }
+ onResponseStartWithRetry(controller, statusCode, headers, statusMessage, err) {
+ if (this.retryOpts.throwOnError) {
+ if (this.retryOpts.statusCodes.includes(statusCode) === false) {
+ this.headersSent = true;
+ this.handler.onResponseStart?.(controller, statusCode, headers, statusMessage);
+ } else {
+ this.error = err;
+ }
+ return;
+ }
+ if (isDisturbed(this.opts.body)) {
+ this.headersSent = true;
+ this.handler.onResponseStart?.(controller, statusCode, headers, statusMessage);
+ return;
+ }
+ function shouldRetry(passedErr) {
+ if (passedErr) {
+ this.headersSent = true;
+ this.headersSent = true;
+ this.handler.onResponseStart?.(controller, statusCode, headers, statusMessage);
+ controller.resume();
+ return;
+ }
+ this.error = err;
+ controller.resume();
+ }
+ controller.pause();
+ this.retryOpts.retry(
+ err,
+ {
+ state: { counter: this.retryCount },
+ opts: { retryOptions: this.retryOpts, ...this.opts }
+ },
+ shouldRetry.bind(this)
+ );
+ }
+ onRequestStart(controller, context) {
+ if (!this.headersSent) {
+ this.handler.onRequestStart?.(controller, context);
+ }
+ }
+ onRequestUpgrade(controller, statusCode, headers, socket) {
+ this.handler.onRequestUpgrade?.(controller, statusCode, headers, socket);
+ }
+ static [kRetryHandlerDefaultRetry](err, { state, opts }, cb) {
+ const { statusCode, code, headers } = err;
+ const { method, retryOptions } = opts;
+ const {
+ maxRetries,
+ minTimeout,
+ maxTimeout,
+ timeoutFactor,
+ statusCodes,
+ errorCodes,
+ methods
+ } = retryOptions;
+ const { counter } = state;
+ if (code && code !== "UND_ERR_REQ_RETRY" && !errorCodes.includes(code)) {
+ cb(err);
+ return;
+ }
+ if (Array.isArray(methods) && !methods.includes(method)) {
+ cb(err);
+ return;
+ }
+ if (statusCode != null && Array.isArray(statusCodes) && !statusCodes.includes(statusCode)) {
+ cb(err);
+ return;
+ }
+ if (counter > maxRetries) {
+ cb(err);
+ return;
+ }
+ let retryAfterHeader = headers?.["retry-after"];
+ if (retryAfterHeader) {
+ retryAfterHeader = Number(retryAfterHeader);
+ retryAfterHeader = Number.isNaN(retryAfterHeader) ? calculateRetryAfterHeader(headers["retry-after"]) : retryAfterHeader * 1e3;
+ }
+ const retryTimeout = retryAfterHeader > 0 ? Math.min(retryAfterHeader, maxTimeout) : Math.min(minTimeout * timeoutFactor ** (counter - 1), maxTimeout);
+ setTimeout(() => cb(null), retryTimeout);
+ }
+ onResponseStart(controller, statusCode, headers, statusMessage) {
+ this.error = null;
+ this.retryCount += 1;
+ if (statusCode >= 300) {
+ const err = new RequestRetryError("Request failed", statusCode, {
+ headers,
+ data: {
+ count: this.retryCount
+ }
+ });
+ this.onResponseStartWithRetry(controller, statusCode, headers, statusMessage, err);
+ return;
+ }
+ if (this.headersSent) {
+ if (statusCode !== 206 && (this.start > 0 || statusCode !== 200)) {
+ throw new RequestRetryError("server does not support the range header and the payload was partially consumed", statusCode, {
+ headers,
+ data: { count: this.retryCount }
+ });
+ }
+ const contentRange = parseRangeHeader(headers["content-range"]);
+ if (!contentRange) {
+ throw new RequestRetryError("Content-Range mismatch", statusCode, {
+ headers,
+ data: { count: this.retryCount }
+ });
+ }
+ if (this.etag != null && this.etag !== headers.etag) {
+ throw new RequestRetryError("ETag mismatch", statusCode, {
+ headers,
+ data: { count: this.retryCount }
+ });
+ }
+ const { start, size, end = size ? size - 1 : null } = contentRange;
+ assert2(this.start === start, "content-range mismatch");
+ assert2(this.end == null || this.end === end, "content-range mismatch");
+ return;
+ }
+ if (this.end == null) {
+ if (statusCode === 206) {
+ const range2 = parseRangeHeader(headers["content-range"]);
+ if (range2 == null) {
+ this.headersSent = true;
+ this.handler.onResponseStart?.(
+ controller,
+ statusCode,
+ headers,
+ statusMessage
+ );
+ return;
+ }
+ const { start, size, end = size ? size - 1 : null } = range2;
+ assert2(
+ start != null && Number.isFinite(start),
+ "content-range mismatch"
+ );
+ assert2(end != null && Number.isFinite(end), "invalid content-length");
+ this.start = start;
+ this.end = end;
+ }
+ if (this.end == null) {
+ const contentLength = headers["content-length"];
+ this.end = contentLength != null ? Number(contentLength) - 1 : null;
+ }
+ assert2(Number.isFinite(this.start));
+ assert2(
+ this.end == null || Number.isFinite(this.end),
+ "invalid content-length"
+ );
+ this.resume = true;
+ this.etag = headers.etag != null ? headers.etag : null;
+ if (this.etag != null && this.etag[0] === "W" && this.etag[1] === "/") {
+ this.etag = null;
+ }
+ this.headersSent = true;
+ this.handler.onResponseStart?.(
+ controller,
+ statusCode,
+ headers,
+ statusMessage
+ );
+ } else {
+ throw new RequestRetryError("Request failed", statusCode, {
+ headers,
+ data: { count: this.retryCount }
+ });
+ }
+ }
+ onResponseData(controller, chunk) {
+ if (this.error) {
+ return;
+ }
+ this.start += chunk.length;
+ this.handler.onResponseData?.(controller, chunk);
+ }
+ onResponseEnd(controller, trailers) {
+ if (this.error && this.retryOpts.throwOnError) {
+ throw this.error;
+ }
+ if (!this.error) {
+ this.retryCount = 0;
+ return this.handler.onResponseEnd?.(controller, trailers);
+ }
+ this.retry(controller);
+ }
+ retry(controller) {
+ if (this.start !== 0) {
+ const headers = { range: `bytes=${this.start}-${this.end ?? ""}` };
+ if (this.etag != null) {
+ headers["if-match"] = this.etag;
+ }
+ this.opts = {
+ ...this.opts,
+ headers: {
+ ...this.opts.headers,
+ ...headers
+ }
+ };
+ }
+ try {
+ this.retryCountCheckpoint = this.retryCount;
+ this.dispatch(this.opts, this);
+ } catch (err) {
+ this.handler.onResponseError?.(controller, err);
+ }
+ }
+ onResponseError(controller, err) {
+ if (controller?.aborted || isDisturbed(this.opts.body)) {
+ this.handler.onResponseError?.(controller, err);
+ return;
+ }
+ function shouldRetry(returnedErr) {
+ if (!returnedErr) {
+ this.retry(controller);
+ return;
+ }
+ this.handler?.onResponseError?.(controller, returnedErr);
+ }
+ if (this.retryCount - this.retryCountCheckpoint > 0) {
+ this.retryCount = this.retryCountCheckpoint + (this.retryCount - this.retryCountCheckpoint);
+ } else {
+ this.retryCount += 1;
+ }
+ this.retryOpts.retry(
+ err,
+ {
+ state: { counter: this.retryCount },
+ opts: { retryOptions: this.retryOpts, ...this.opts }
+ },
+ shouldRetry.bind(this)
+ );
+ }
+ };
+ module.exports = RetryHandler;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/retry-agent.js
+var require_retry_agent = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/retry-agent.js"(exports, module) {
+ "use strict";
+ var Dispatcher = require_dispatcher2();
+ var RetryHandler = require_retry_handler();
+ var RetryAgent = class extends Dispatcher {
+ #agent = null;
+ #options = null;
+ constructor(agent2, options = {}) {
+ super(options);
+ this.#agent = agent2;
+ this.#options = options;
+ }
+ dispatch(opts, handler2) {
+ const retry = new RetryHandler({
+ ...opts,
+ retryOptions: this.#options
+ }, {
+ dispatch: this.#agent.dispatch.bind(this.#agent),
+ handler: handler2
+ });
+ return this.#agent.dispatch(opts, retry);
+ }
+ close() {
+ return this.#agent.close();
+ }
+ destroy() {
+ return this.#agent.destroy();
+ }
+ };
+ module.exports = RetryAgent;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/h2c-client.js
+var require_h2c_client = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/dispatcher/h2c-client.js"(exports, module) {
+ "use strict";
+ var { connect } = __require("node:net");
+ var { kClose, kDestroy } = require_symbols6();
+ var { InvalidArgumentError } = require_errors2();
+ var util3 = require_util11();
+ var Client2 = require_client2();
+ var DispatcherBase = require_dispatcher_base2();
+ var H2CClient = class extends DispatcherBase {
+ #client = null;
+ constructor(origin, clientOpts) {
+ if (typeof origin === "string") {
+ origin = new URL(origin);
+ }
+ if (origin.protocol !== "http:") {
+ throw new InvalidArgumentError(
+ "h2c-client: Only h2c protocol is supported"
+ );
+ }
+ const { connect: connect2, maxConcurrentStreams, pipelining, ...opts } = clientOpts ?? {};
+ let defaultMaxConcurrentStreams = 100;
+ let defaultPipelining = 100;
+ if (maxConcurrentStreams != null && Number.isInteger(maxConcurrentStreams) && maxConcurrentStreams > 0) {
+ defaultMaxConcurrentStreams = maxConcurrentStreams;
+ }
+ if (pipelining != null && Number.isInteger(pipelining) && pipelining > 0) {
+ defaultPipelining = pipelining;
+ }
+ if (defaultPipelining > defaultMaxConcurrentStreams) {
+ throw new InvalidArgumentError(
+ "h2c-client: pipelining cannot be greater than maxConcurrentStreams"
+ );
+ }
+ super();
+ this.#client = new Client2(origin, {
+ ...opts,
+ connect: this.#buildConnector(connect2),
+ maxConcurrentStreams: defaultMaxConcurrentStreams,
+ pipelining: defaultPipelining,
+ allowH2: true
+ });
+ }
+ #buildConnector(connectOpts) {
+ return (opts, callback) => {
+ const timeout = connectOpts?.connectOpts ?? 1e4;
+ const { hostname: hostname2, port, pathname } = opts;
+ const socket = connect({
+ ...opts,
+ host: hostname2,
+ port,
+ pathname
+ });
+ if (opts.keepAlive == null || opts.keepAlive) {
+ const keepAliveInitialDelay = opts.keepAliveInitialDelay == null ? 6e4 : opts.keepAliveInitialDelay;
+ socket.setKeepAlive(true, keepAliveInitialDelay);
+ }
+ socket.alpnProtocol = "h2";
+ const clearConnectTimeout = util3.setupConnectTimeout(
+ new WeakRef(socket),
+ { timeout, hostname: hostname2, port }
+ );
+ socket.setNoDelay(true).once("connect", function() {
+ queueMicrotask(clearConnectTimeout);
+ if (callback) {
+ const cb = callback;
+ callback = null;
+ cb(null, this);
+ }
+ }).on("error", function(err) {
+ queueMicrotask(clearConnectTimeout);
+ if (callback) {
+ const cb = callback;
+ callback = null;
+ cb(err);
+ }
+ });
+ return socket;
+ };
+ }
+ dispatch(opts, handler2) {
+ return this.#client.dispatch(opts, handler2);
+ }
+ [kClose]() {
+ return this.#client.close();
+ }
+ [kDestroy]() {
+ return this.#client.destroy();
+ }
+ };
+ module.exports = H2CClient;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/readable.js
+var require_readable2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/readable.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var { Readable } = __require("node:stream");
+ var { RequestAbortedError, NotSupportedError, InvalidArgumentError, AbortError: AbortError2 } = require_errors2();
+ var util3 = require_util11();
+ var { ReadableStreamFrom } = require_util11();
+ var kConsume = Symbol("kConsume");
+ var kReading = Symbol("kReading");
+ var kBody = Symbol("kBody");
+ var kAbort = Symbol("kAbort");
+ var kContentType = Symbol("kContentType");
+ var kContentLength = Symbol("kContentLength");
+ var kUsed = Symbol("kUsed");
+ var kBytesRead = Symbol("kBytesRead");
+ var noop3 = () => {
+ };
+ var BodyReadable = class extends Readable {
+ /**
+ * @param {object} opts
+ * @param {(this: Readable, size: number) => void} opts.resume
+ * @param {() => (void | null)} opts.abort
+ * @param {string} [opts.contentType = '']
+ * @param {number} [opts.contentLength]
+ * @param {number} [opts.highWaterMark = 64 * 1024]
+ */
+ constructor({
+ resume,
+ abort,
+ contentType = "",
+ contentLength,
+ highWaterMark = 64 * 1024
+ // Same as nodejs fs streams.
+ }) {
+ super({
+ autoDestroy: true,
+ read: resume,
+ highWaterMark
+ });
+ this._readableState.dataEmitted = false;
+ this[kAbort] = abort;
+ this[kConsume] = null;
+ this[kBytesRead] = 0;
+ this[kBody] = null;
+ this[kUsed] = false;
+ this[kContentType] = contentType;
+ this[kContentLength] = Number.isFinite(contentLength) ? contentLength : null;
+ this[kReading] = false;
+ }
+ /**
+ * @param {Error|null} err
+ * @param {(error:(Error|null)) => void} callback
+ * @returns {void}
+ */
+ _destroy(err, callback) {
+ if (!err && !this._readableState.endEmitted) {
+ err = new RequestAbortedError();
+ }
+ if (err) {
+ this[kAbort]();
+ }
+ if (!this[kUsed]) {
+ setImmediate(callback, err);
+ } else {
+ callback(err);
+ }
+ }
+ /**
+ * @param {string|symbol} event
+ * @param {(...args: any[]) => void} listener
+ * @returns {this}
+ */
+ on(event, listener) {
+ if (event === "data" || event === "readable") {
+ this[kReading] = true;
+ this[kUsed] = true;
+ }
+ return super.on(event, listener);
+ }
+ /**
+ * @param {string|symbol} event
+ * @param {(...args: any[]) => void} listener
+ * @returns {this}
+ */
+ addListener(event, listener) {
+ return this.on(event, listener);
+ }
+ /**
+ * @param {string|symbol} event
+ * @param {(...args: any[]) => void} listener
+ * @returns {this}
+ */
+ off(event, listener) {
+ const ret = super.off(event, listener);
+ if (event === "data" || event === "readable") {
+ this[kReading] = this.listenerCount("data") > 0 || this.listenerCount("readable") > 0;
+ }
+ return ret;
+ }
+ /**
+ * @param {string|symbol} event
+ * @param {(...args: any[]) => void} listener
+ * @returns {this}
+ */
+ removeListener(event, listener) {
+ return this.off(event, listener);
+ }
+ /**
+ * @param {Buffer|null} chunk
+ * @returns {boolean}
+ */
+ push(chunk) {
+ if (chunk) {
+ this[kBytesRead] += chunk.length;
+ if (this[kConsume]) {
+ consumePush(this[kConsume], chunk);
+ return this[kReading] ? super.push(chunk) : true;
+ }
+ }
+ return super.push(chunk);
+ }
+ /**
+ * Consumes and returns the body as a string.
+ *
+ * @see https://fetch.spec.whatwg.org/#dom-body-text
+ * @returns {Promise}
+ */
+ text() {
+ return consume(this, "text");
+ }
+ /**
+ * Consumes and returns the body as a JavaScript Object.
+ *
+ * @see https://fetch.spec.whatwg.org/#dom-body-json
+ * @returns {Promise}
+ */
+ json() {
+ return consume(this, "json");
+ }
+ /**
+ * Consumes and returns the body as a Blob
+ *
+ * @see https://fetch.spec.whatwg.org/#dom-body-blob
+ * @returns {Promise}
+ */
+ blob() {
+ return consume(this, "blob");
+ }
+ /**
+ * Consumes and returns the body as an Uint8Array.
+ *
+ * @see https://fetch.spec.whatwg.org/#dom-body-bytes
+ * @returns {Promise}
+ */
+ bytes() {
+ return consume(this, "bytes");
+ }
+ /**
+ * Consumes and returns the body as an ArrayBuffer.
+ *
+ * @see https://fetch.spec.whatwg.org/#dom-body-arraybuffer
+ * @returns {Promise}
+ */
+ arrayBuffer() {
+ return consume(this, "arrayBuffer");
+ }
+ /**
+ * Not implemented
+ *
+ * @see https://fetch.spec.whatwg.org/#dom-body-formdata
+ * @throws {NotSupportedError}
+ */
+ async formData() {
+ throw new NotSupportedError();
+ }
+ /**
+ * Returns true if the body is not null and the body has been consumed.
+ * Otherwise, returns false.
+ *
+ * @see https://fetch.spec.whatwg.org/#dom-body-bodyused
+ * @readonly
+ * @returns {boolean}
+ */
+ get bodyUsed() {
+ return util3.isDisturbed(this);
+ }
+ /**
+ * @see https://fetch.spec.whatwg.org/#dom-body-body
+ * @readonly
+ * @returns {ReadableStream}
+ */
+ get body() {
+ if (!this[kBody]) {
+ this[kBody] = ReadableStreamFrom(this);
+ if (this[kConsume]) {
+ this[kBody].getReader();
+ assert2(this[kBody].locked);
+ }
+ }
+ return this[kBody];
+ }
+ /**
+ * Dumps the response body by reading `limit` number of bytes.
+ * @param {object} opts
+ * @param {number} [opts.limit = 131072] Number of bytes to read.
+ * @param {AbortSignal} [opts.signal] An AbortSignal to cancel the dump.
+ * @returns {Promise}
+ */
+ dump(opts) {
+ const signal = opts?.signal;
+ if (signal != null && (typeof signal !== "object" || !("aborted" in signal))) {
+ return Promise.reject(new InvalidArgumentError("signal must be an AbortSignal"));
+ }
+ const limit = opts?.limit && Number.isFinite(opts.limit) ? opts.limit : 128 * 1024;
+ if (signal?.aborted) {
+ return Promise.reject(signal.reason ?? new AbortError2());
+ }
+ if (this._readableState.closeEmitted) {
+ return Promise.resolve(null);
+ }
+ return new Promise((resolve, reject) => {
+ if (this[kContentLength] && this[kContentLength] > limit || this[kBytesRead] > limit) {
+ this.destroy(new AbortError2());
+ }
+ if (signal) {
+ const onAbort = () => {
+ this.destroy(signal.reason ?? new AbortError2());
+ };
+ signal.addEventListener("abort", onAbort);
+ this.on("close", function() {
+ signal.removeEventListener("abort", onAbort);
+ if (signal.aborted) {
+ reject(signal.reason ?? new AbortError2());
+ } else {
+ resolve(null);
+ }
+ });
+ } else {
+ this.on("close", resolve);
+ }
+ this.on("error", noop3).on("data", () => {
+ if (this[kBytesRead] > limit) {
+ this.destroy();
+ }
+ }).resume();
+ });
+ }
+ /**
+ * @param {BufferEncoding} encoding
+ * @returns {this}
+ */
+ setEncoding(encoding) {
+ if (Buffer.isEncoding(encoding)) {
+ this._readableState.encoding = encoding;
+ }
+ return this;
+ }
+ };
+ function isLocked(bodyReadable) {
+ return bodyReadable[kBody]?.locked === true || bodyReadable[kConsume] !== null;
+ }
+ function isUnusable(bodyReadable) {
+ return util3.isDisturbed(bodyReadable) || isLocked(bodyReadable);
+ }
+ function consume(stream, type2) {
+ assert2(!stream[kConsume]);
+ return new Promise((resolve, reject) => {
+ if (isUnusable(stream)) {
+ const rState = stream._readableState;
+ if (rState.destroyed && rState.closeEmitted === false) {
+ stream.on("error", reject).on("close", () => {
+ reject(new TypeError("unusable"));
+ });
+ } else {
+ reject(rState.errored ?? new TypeError("unusable"));
+ }
+ } else {
+ queueMicrotask(() => {
+ stream[kConsume] = {
+ type: type2,
+ stream,
+ resolve,
+ reject,
+ length: 0,
+ body: []
+ };
+ stream.on("error", function(err) {
+ consumeFinish(this[kConsume], err);
+ }).on("close", function() {
+ if (this[kConsume].body !== null) {
+ consumeFinish(this[kConsume], new RequestAbortedError());
+ }
+ });
+ consumeStart(stream[kConsume]);
+ });
+ }
+ });
+ }
+ function consumeStart(consume2) {
+ if (consume2.body === null) {
+ return;
+ }
+ const { _readableState: state } = consume2.stream;
+ if (state.bufferIndex) {
+ const start = state.bufferIndex;
+ const end = state.buffer.length;
+ for (let n = start; n < end; n++) {
+ consumePush(consume2, state.buffer[n]);
+ }
+ } else {
+ for (const chunk of state.buffer) {
+ consumePush(consume2, chunk);
+ }
+ }
+ if (state.endEmitted) {
+ consumeEnd(this[kConsume], this._readableState.encoding);
+ } else {
+ consume2.stream.on("end", function() {
+ consumeEnd(this[kConsume], this._readableState.encoding);
+ });
+ }
+ consume2.stream.resume();
+ while (consume2.stream.read() != null) {
+ }
+ }
+ function chunksDecode(chunks, length, encoding) {
+ if (chunks.length === 0 || length === 0) {
+ return "";
+ }
+ const buffer = chunks.length === 1 ? chunks[0] : Buffer.concat(chunks, length);
+ const bufferLength = buffer.length;
+ const start = bufferLength > 2 && buffer[0] === 239 && buffer[1] === 187 && buffer[2] === 191 ? 3 : 0;
+ if (!encoding || encoding === "utf8" || encoding === "utf-8") {
+ return buffer.utf8Slice(start, bufferLength);
+ } else {
+ return buffer.subarray(start, bufferLength).toString(encoding);
+ }
+ }
+ function chunksConcat(chunks, length) {
+ if (chunks.length === 0 || length === 0) {
+ return new Uint8Array(0);
+ }
+ if (chunks.length === 1) {
+ return new Uint8Array(chunks[0]);
+ }
+ const buffer = new Uint8Array(Buffer.allocUnsafeSlow(length).buffer);
+ let offset = 0;
+ for (let i = 0; i < chunks.length; ++i) {
+ const chunk = chunks[i];
+ buffer.set(chunk, offset);
+ offset += chunk.length;
+ }
+ return buffer;
+ }
+ function consumeEnd(consume2, encoding) {
+ const { type: type2, body, resolve, stream, length } = consume2;
+ try {
+ if (type2 === "text") {
+ resolve(chunksDecode(body, length, encoding));
+ } else if (type2 === "json") {
+ resolve(JSON.parse(chunksDecode(body, length, encoding)));
+ } else if (type2 === "arrayBuffer") {
+ resolve(chunksConcat(body, length).buffer);
+ } else if (type2 === "blob") {
+ resolve(new Blob(body, { type: stream[kContentType] }));
+ } else if (type2 === "bytes") {
+ resolve(chunksConcat(body, length));
+ }
+ consumeFinish(consume2);
+ } catch (err) {
+ stream.destroy(err);
+ }
+ }
+ function consumePush(consume2, chunk) {
+ consume2.length += chunk.length;
+ consume2.body.push(chunk);
+ }
+ function consumeFinish(consume2, err) {
+ if (consume2.body === null) {
+ return;
+ }
+ if (err) {
+ consume2.reject(err);
+ } else {
+ consume2.resolve();
+ }
+ consume2.type = null;
+ consume2.stream = null;
+ consume2.resolve = null;
+ consume2.reject = null;
+ consume2.length = 0;
+ consume2.body = null;
+ }
+ module.exports = {
+ Readable: BodyReadable,
+ chunksDecode
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/api-request.js
+var require_api_request2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/api-request.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var { AsyncResource } = __require("node:async_hooks");
+ var { Readable } = require_readable2();
+ var { InvalidArgumentError, RequestAbortedError } = require_errors2();
+ var util3 = require_util11();
+ function noop3() {
+ }
+ var RequestHandler = class extends AsyncResource {
+ constructor(opts, callback) {
+ if (!opts || typeof opts !== "object") {
+ throw new InvalidArgumentError("invalid opts");
+ }
+ const { signal, method, opaque, body, onInfo, responseHeaders, highWaterMark } = opts;
+ try {
+ if (typeof callback !== "function") {
+ throw new InvalidArgumentError("invalid callback");
+ }
+ if (highWaterMark && (typeof highWaterMark !== "number" || highWaterMark < 0)) {
+ throw new InvalidArgumentError("invalid highWaterMark");
+ }
+ if (signal && typeof signal.on !== "function" && typeof signal.addEventListener !== "function") {
+ throw new InvalidArgumentError("signal must be an EventEmitter or EventTarget");
+ }
+ if (method === "CONNECT") {
+ throw new InvalidArgumentError("invalid method");
+ }
+ if (onInfo && typeof onInfo !== "function") {
+ throw new InvalidArgumentError("invalid onInfo callback");
+ }
+ super("UNDICI_REQUEST");
+ } catch (err) {
+ if (util3.isStream(body)) {
+ util3.destroy(body.on("error", noop3), err);
+ }
+ throw err;
+ }
+ this.method = method;
+ this.responseHeaders = responseHeaders || null;
+ this.opaque = opaque || null;
+ this.callback = callback;
+ this.res = null;
+ this.abort = null;
+ this.body = body;
+ this.trailers = {};
+ this.context = null;
+ this.onInfo = onInfo || null;
+ this.highWaterMark = highWaterMark;
+ this.reason = null;
+ this.removeAbortListener = null;
+ if (signal?.aborted) {
+ this.reason = signal.reason ?? new RequestAbortedError();
+ } else if (signal) {
+ this.removeAbortListener = util3.addAbortListener(signal, () => {
+ this.reason = signal.reason ?? new RequestAbortedError();
+ if (this.res) {
+ util3.destroy(this.res.on("error", noop3), this.reason);
+ } else if (this.abort) {
+ this.abort(this.reason);
+ }
+ });
+ }
+ }
+ onConnect(abort, context) {
+ if (this.reason) {
+ abort(this.reason);
+ return;
+ }
+ assert2(this.callback);
+ this.abort = abort;
+ this.context = context;
+ }
+ onHeaders(statusCode, rawHeaders, resume, statusMessage) {
+ const { callback, opaque, abort, context, responseHeaders, highWaterMark } = this;
+ const headers = responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
+ if (statusCode < 200) {
+ if (this.onInfo) {
+ this.onInfo({ statusCode, headers });
+ }
+ return;
+ }
+ const parsedHeaders = responseHeaders === "raw" ? util3.parseHeaders(rawHeaders) : headers;
+ const contentType = parsedHeaders["content-type"];
+ const contentLength = parsedHeaders["content-length"];
+ const res = new Readable({
+ resume,
+ abort,
+ contentType,
+ contentLength: this.method !== "HEAD" && contentLength ? Number(contentLength) : null,
+ highWaterMark
+ });
+ if (this.removeAbortListener) {
+ res.on("close", this.removeAbortListener);
+ this.removeAbortListener = null;
+ }
+ this.callback = null;
+ this.res = res;
+ if (callback !== null) {
+ try {
+ this.runInAsyncScope(callback, null, null, {
+ statusCode,
+ headers,
+ trailers: this.trailers,
+ opaque,
+ body: res,
+ context
+ });
+ } catch (err) {
+ this.res = null;
+ util3.destroy(res.on("error", noop3), err);
+ queueMicrotask(() => {
+ throw err;
+ });
+ }
+ }
+ }
+ onData(chunk) {
+ return this.res.push(chunk);
+ }
+ onComplete(trailers) {
+ util3.parseHeaders(trailers, this.trailers);
+ this.res.push(null);
+ }
+ onError(err) {
+ const { res, callback, body, opaque } = this;
+ if (callback) {
+ this.callback = null;
+ queueMicrotask(() => {
+ this.runInAsyncScope(callback, null, err, { opaque });
+ });
+ }
+ if (res) {
+ this.res = null;
+ queueMicrotask(() => {
+ util3.destroy(res.on("error", noop3), err);
+ });
+ }
+ if (body) {
+ this.body = null;
+ if (util3.isStream(body)) {
+ body.on("error", noop3);
+ util3.destroy(body, err);
+ }
+ }
+ if (this.removeAbortListener) {
+ this.removeAbortListener();
+ this.removeAbortListener = null;
+ }
+ }
+ };
+ function request2(opts, callback) {
+ if (callback === void 0) {
+ return new Promise((resolve, reject) => {
+ request2.call(this, opts, (err, data) => {
+ return err ? reject(err) : resolve(data);
+ });
+ });
+ }
+ try {
+ const handler2 = new RequestHandler(opts, callback);
+ this.dispatch(opts, handler2);
+ } catch (err) {
+ if (typeof callback !== "function") {
+ throw err;
+ }
+ const opaque = opts?.opaque;
+ queueMicrotask(() => callback(err, { opaque }));
+ }
+ }
+ module.exports = request2;
+ module.exports.RequestHandler = RequestHandler;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/abort-signal.js
+var require_abort_signal2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/abort-signal.js"(exports, module) {
+ "use strict";
+ var { addAbortListener } = require_util11();
+ var { RequestAbortedError } = require_errors2();
+ var kListener = Symbol("kListener");
+ var kSignal = Symbol("kSignal");
+ function abort(self2) {
+ if (self2.abort) {
+ self2.abort(self2[kSignal]?.reason);
+ } else {
+ self2.reason = self2[kSignal]?.reason ?? new RequestAbortedError();
+ }
+ removeSignal(self2);
+ }
+ function addSignal(self2, signal) {
+ self2.reason = null;
+ self2[kSignal] = null;
+ self2[kListener] = null;
+ if (!signal) {
+ return;
+ }
+ if (signal.aborted) {
+ abort(self2);
+ return;
+ }
+ self2[kSignal] = signal;
+ self2[kListener] = () => {
+ abort(self2);
+ };
+ addAbortListener(self2[kSignal], self2[kListener]);
+ }
+ function removeSignal(self2) {
+ if (!self2[kSignal]) {
+ return;
+ }
+ if ("removeEventListener" in self2[kSignal]) {
+ self2[kSignal].removeEventListener("abort", self2[kListener]);
+ } else {
+ self2[kSignal].removeListener("abort", self2[kListener]);
+ }
+ self2[kSignal] = null;
+ self2[kListener] = null;
+ }
+ module.exports = {
+ addSignal,
+ removeSignal
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/api-stream.js
+var require_api_stream2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/api-stream.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var { finished } = __require("node:stream");
+ var { AsyncResource } = __require("node:async_hooks");
+ var { InvalidArgumentError, InvalidReturnValueError } = require_errors2();
+ var util3 = require_util11();
+ var { addSignal, removeSignal } = require_abort_signal2();
+ function noop3() {
+ }
+ var StreamHandler = class extends AsyncResource {
+ constructor(opts, factory, callback) {
+ if (!opts || typeof opts !== "object") {
+ throw new InvalidArgumentError("invalid opts");
+ }
+ const { signal, method, opaque, body, onInfo, responseHeaders } = opts;
+ try {
+ if (typeof callback !== "function") {
+ throw new InvalidArgumentError("invalid callback");
+ }
+ if (typeof factory !== "function") {
+ throw new InvalidArgumentError("invalid factory");
+ }
+ if (signal && typeof signal.on !== "function" && typeof signal.addEventListener !== "function") {
+ throw new InvalidArgumentError("signal must be an EventEmitter or EventTarget");
+ }
+ if (method === "CONNECT") {
+ throw new InvalidArgumentError("invalid method");
+ }
+ if (onInfo && typeof onInfo !== "function") {
+ throw new InvalidArgumentError("invalid onInfo callback");
+ }
+ super("UNDICI_STREAM");
+ } catch (err) {
+ if (util3.isStream(body)) {
+ util3.destroy(body.on("error", noop3), err);
+ }
+ throw err;
+ }
+ this.responseHeaders = responseHeaders || null;
+ this.opaque = opaque || null;
+ this.factory = factory;
+ this.callback = callback;
+ this.res = null;
+ this.abort = null;
+ this.context = null;
+ this.trailers = null;
+ this.body = body;
+ this.onInfo = onInfo || null;
+ if (util3.isStream(body)) {
+ body.on("error", (err) => {
+ this.onError(err);
+ });
+ }
+ addSignal(this, signal);
+ }
+ onConnect(abort, context) {
+ if (this.reason) {
+ abort(this.reason);
+ return;
+ }
+ assert2(this.callback);
+ this.abort = abort;
+ this.context = context;
+ }
+ onHeaders(statusCode, rawHeaders, resume, statusMessage) {
+ const { factory, opaque, context, responseHeaders } = this;
+ const headers = responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
+ if (statusCode < 200) {
+ if (this.onInfo) {
+ this.onInfo({ statusCode, headers });
+ }
+ return;
+ }
+ this.factory = null;
+ if (factory === null) {
+ return;
+ }
+ const res = this.runInAsyncScope(factory, null, {
+ statusCode,
+ headers,
+ opaque,
+ context
+ });
+ if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
+ throw new InvalidReturnValueError("expected Writable");
+ }
+ finished(res, { readable: false }, (err) => {
+ const { callback, res: res2, opaque: opaque2, trailers, abort } = this;
+ this.res = null;
+ if (err || !res2?.readable) {
+ util3.destroy(res2, err);
+ }
+ this.callback = null;
+ this.runInAsyncScope(callback, null, err || null, { opaque: opaque2, trailers });
+ if (err) {
+ abort();
+ }
+ });
+ res.on("drain", resume);
+ this.res = res;
+ const needDrain = res.writableNeedDrain !== void 0 ? res.writableNeedDrain : res._writableState?.needDrain;
+ return needDrain !== true;
+ }
+ onData(chunk) {
+ const { res } = this;
+ return res ? res.write(chunk) : true;
+ }
+ onComplete(trailers) {
+ const { res } = this;
+ removeSignal(this);
+ if (!res) {
+ return;
+ }
+ this.trailers = util3.parseHeaders(trailers);
+ res.end();
+ }
+ onError(err) {
+ const { res, callback, opaque, body } = this;
+ removeSignal(this);
+ this.factory = null;
+ if (res) {
+ this.res = null;
+ util3.destroy(res, err);
+ } else if (callback) {
+ this.callback = null;
+ queueMicrotask(() => {
+ this.runInAsyncScope(callback, null, err, { opaque });
+ });
+ }
+ if (body) {
+ this.body = null;
+ util3.destroy(body, err);
+ }
+ }
+ };
+ function stream(opts, factory, callback) {
+ if (callback === void 0) {
+ return new Promise((resolve, reject) => {
+ stream.call(this, opts, factory, (err, data) => {
+ return err ? reject(err) : resolve(data);
+ });
+ });
+ }
+ try {
+ const handler2 = new StreamHandler(opts, factory, callback);
+ this.dispatch(opts, handler2);
+ } catch (err) {
+ if (typeof callback !== "function") {
+ throw err;
+ }
+ const opaque = opts?.opaque;
+ queueMicrotask(() => callback(err, { opaque }));
+ }
+ }
+ module.exports = stream;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/api-pipeline.js
+var require_api_pipeline2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/api-pipeline.js"(exports, module) {
+ "use strict";
+ var {
+ Readable,
+ Duplex,
+ PassThrough
+ } = __require("node:stream");
+ var assert2 = __require("node:assert");
+ var { AsyncResource } = __require("node:async_hooks");
+ var {
+ InvalidArgumentError,
+ InvalidReturnValueError,
+ RequestAbortedError
+ } = require_errors2();
+ var util3 = require_util11();
+ var { addSignal, removeSignal } = require_abort_signal2();
+ function noop3() {
+ }
+ var kResume = Symbol("resume");
+ var PipelineRequest = class extends Readable {
+ constructor() {
+ super({ autoDestroy: true });
+ this[kResume] = null;
+ }
+ _read() {
+ const { [kResume]: resume } = this;
+ if (resume) {
+ this[kResume] = null;
+ resume();
+ }
+ }
+ _destroy(err, callback) {
+ this._read();
+ callback(err);
+ }
+ };
+ var PipelineResponse = class extends Readable {
+ constructor(resume) {
+ super({ autoDestroy: true });
+ this[kResume] = resume;
+ }
+ _read() {
+ this[kResume]();
+ }
+ _destroy(err, callback) {
+ if (!err && !this._readableState.endEmitted) {
+ err = new RequestAbortedError();
+ }
+ callback(err);
+ }
+ };
+ var PipelineHandler = class extends AsyncResource {
+ constructor(opts, handler2) {
+ if (!opts || typeof opts !== "object") {
+ throw new InvalidArgumentError("invalid opts");
+ }
+ if (typeof handler2 !== "function") {
+ throw new InvalidArgumentError("invalid handler");
+ }
+ const { signal, method, opaque, onInfo, responseHeaders } = opts;
+ if (signal && typeof signal.on !== "function" && typeof signal.addEventListener !== "function") {
+ throw new InvalidArgumentError("signal must be an EventEmitter or EventTarget");
+ }
+ if (method === "CONNECT") {
+ throw new InvalidArgumentError("invalid method");
+ }
+ if (onInfo && typeof onInfo !== "function") {
+ throw new InvalidArgumentError("invalid onInfo callback");
+ }
+ super("UNDICI_PIPELINE");
+ this.opaque = opaque || null;
+ this.responseHeaders = responseHeaders || null;
+ this.handler = handler2;
+ this.abort = null;
+ this.context = null;
+ this.onInfo = onInfo || null;
+ this.req = new PipelineRequest().on("error", noop3);
+ this.ret = new Duplex({
+ readableObjectMode: opts.objectMode,
+ autoDestroy: true,
+ read: () => {
+ const { body } = this;
+ if (body?.resume) {
+ body.resume();
+ }
+ },
+ write: (chunk, encoding, callback) => {
+ const { req } = this;
+ if (req.push(chunk, encoding) || req._readableState.destroyed) {
+ callback();
+ } else {
+ req[kResume] = callback;
+ }
+ },
+ destroy: (err, callback) => {
+ const { body, req, res, ret, abort } = this;
+ if (!err && !ret._readableState.endEmitted) {
+ err = new RequestAbortedError();
+ }
+ if (abort && err) {
+ abort();
+ }
+ util3.destroy(body, err);
+ util3.destroy(req, err);
+ util3.destroy(res, err);
+ removeSignal(this);
+ callback(err);
+ }
+ }).on("prefinish", () => {
+ const { req } = this;
+ req.push(null);
+ });
+ this.res = null;
+ addSignal(this, signal);
+ }
+ onConnect(abort, context) {
+ const { res } = this;
+ if (this.reason) {
+ abort(this.reason);
+ return;
+ }
+ assert2(!res, "pipeline cannot be retried");
+ this.abort = abort;
+ this.context = context;
+ }
+ onHeaders(statusCode, rawHeaders, resume) {
+ const { opaque, handler: handler2, context } = this;
+ if (statusCode < 200) {
+ if (this.onInfo) {
+ const headers = this.responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
+ this.onInfo({ statusCode, headers });
+ }
+ return;
+ }
+ this.res = new PipelineResponse(resume);
+ let body;
+ try {
+ this.handler = null;
+ const headers = this.responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
+ body = this.runInAsyncScope(handler2, null, {
+ statusCode,
+ headers,
+ opaque,
+ body: this.res,
+ context
+ });
+ } catch (err) {
+ this.res.on("error", noop3);
+ throw err;
+ }
+ if (!body || typeof body.on !== "function") {
+ throw new InvalidReturnValueError("expected Readable");
+ }
+ body.on("data", (chunk) => {
+ const { ret, body: body2 } = this;
+ if (!ret.push(chunk) && body2.pause) {
+ body2.pause();
+ }
+ }).on("error", (err) => {
+ const { ret } = this;
+ util3.destroy(ret, err);
+ }).on("end", () => {
+ const { ret } = this;
+ ret.push(null);
+ }).on("close", () => {
+ const { ret } = this;
+ if (!ret._readableState.ended) {
+ util3.destroy(ret, new RequestAbortedError());
+ }
+ });
+ this.body = body;
+ }
+ onData(chunk) {
+ const { res } = this;
+ return res.push(chunk);
+ }
+ onComplete(trailers) {
+ const { res } = this;
+ res.push(null);
+ }
+ onError(err) {
+ const { ret } = this;
+ this.handler = null;
+ util3.destroy(ret, err);
+ }
+ };
+ function pipeline2(opts, handler2) {
+ try {
+ const pipelineHandler = new PipelineHandler(opts, handler2);
+ this.dispatch({ ...opts, body: pipelineHandler.req }, pipelineHandler);
+ return pipelineHandler.ret;
+ } catch (err) {
+ return new PassThrough().destroy(err);
+ }
+ }
+ module.exports = pipeline2;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/api-upgrade.js
+var require_api_upgrade2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/api-upgrade.js"(exports, module) {
+ "use strict";
+ var { InvalidArgumentError, SocketError } = require_errors2();
+ var { AsyncResource } = __require("node:async_hooks");
+ var assert2 = __require("node:assert");
+ var util3 = require_util11();
+ var { addSignal, removeSignal } = require_abort_signal2();
+ var UpgradeHandler = class extends AsyncResource {
+ constructor(opts, callback) {
+ if (!opts || typeof opts !== "object") {
+ throw new InvalidArgumentError("invalid opts");
+ }
+ if (typeof callback !== "function") {
+ throw new InvalidArgumentError("invalid callback");
+ }
+ const { signal, opaque, responseHeaders } = opts;
+ if (signal && typeof signal.on !== "function" && typeof signal.addEventListener !== "function") {
+ throw new InvalidArgumentError("signal must be an EventEmitter or EventTarget");
+ }
+ super("UNDICI_UPGRADE");
+ this.responseHeaders = responseHeaders || null;
+ this.opaque = opaque || null;
+ this.callback = callback;
+ this.abort = null;
+ this.context = null;
+ addSignal(this, signal);
+ }
+ onConnect(abort, context) {
+ if (this.reason) {
+ abort(this.reason);
+ return;
+ }
+ assert2(this.callback);
+ this.abort = abort;
+ this.context = null;
+ }
+ onHeaders() {
+ throw new SocketError("bad upgrade", null);
+ }
+ onUpgrade(statusCode, rawHeaders, socket) {
+ assert2(statusCode === 101);
+ const { callback, opaque, context } = this;
+ removeSignal(this);
+ this.callback = null;
+ const headers = this.responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
+ this.runInAsyncScope(callback, null, null, {
+ headers,
+ socket,
+ opaque,
+ context
+ });
+ }
+ onError(err) {
+ const { callback, opaque } = this;
+ removeSignal(this);
+ if (callback) {
+ this.callback = null;
+ queueMicrotask(() => {
+ this.runInAsyncScope(callback, null, err, { opaque });
+ });
+ }
+ }
+ };
+ function upgrade(opts, callback) {
+ if (callback === void 0) {
+ return new Promise((resolve, reject) => {
+ upgrade.call(this, opts, (err, data) => {
+ return err ? reject(err) : resolve(data);
+ });
+ });
+ }
+ try {
+ const upgradeHandler = new UpgradeHandler(opts, callback);
+ const upgradeOpts = {
+ ...opts,
+ method: opts.method || "GET",
+ upgrade: opts.protocol || "Websocket"
+ };
+ this.dispatch(upgradeOpts, upgradeHandler);
+ } catch (err) {
+ if (typeof callback !== "function") {
+ throw err;
+ }
+ const opaque = opts?.opaque;
+ queueMicrotask(() => callback(err, { opaque }));
+ }
+ }
+ module.exports = upgrade;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/api-connect.js
+var require_api_connect2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/api-connect.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var { AsyncResource } = __require("node:async_hooks");
+ var { InvalidArgumentError, SocketError } = require_errors2();
+ var util3 = require_util11();
+ var { addSignal, removeSignal } = require_abort_signal2();
+ var ConnectHandler = class extends AsyncResource {
+ constructor(opts, callback) {
+ if (!opts || typeof opts !== "object") {
+ throw new InvalidArgumentError("invalid opts");
+ }
+ if (typeof callback !== "function") {
+ throw new InvalidArgumentError("invalid callback");
+ }
+ const { signal, opaque, responseHeaders } = opts;
+ if (signal && typeof signal.on !== "function" && typeof signal.addEventListener !== "function") {
+ throw new InvalidArgumentError("signal must be an EventEmitter or EventTarget");
+ }
+ super("UNDICI_CONNECT");
+ this.opaque = opaque || null;
+ this.responseHeaders = responseHeaders || null;
+ this.callback = callback;
+ this.abort = null;
+ addSignal(this, signal);
+ }
+ onConnect(abort, context) {
+ if (this.reason) {
+ abort(this.reason);
+ return;
+ }
+ assert2(this.callback);
+ this.abort = abort;
+ this.context = context;
+ }
+ onHeaders() {
+ throw new SocketError("bad connect", null);
+ }
+ onUpgrade(statusCode, rawHeaders, socket) {
+ const { callback, opaque, context } = this;
+ removeSignal(this);
+ this.callback = null;
+ let headers = rawHeaders;
+ if (headers != null) {
+ headers = this.responseHeaders === "raw" ? util3.parseRawHeaders(rawHeaders) : util3.parseHeaders(rawHeaders);
+ }
+ this.runInAsyncScope(callback, null, null, {
+ statusCode,
+ headers,
+ socket,
+ opaque,
+ context
+ });
+ }
+ onError(err) {
+ const { callback, opaque } = this;
+ removeSignal(this);
+ if (callback) {
+ this.callback = null;
+ queueMicrotask(() => {
+ this.runInAsyncScope(callback, null, err, { opaque });
+ });
+ }
+ }
+ };
+ function connect(opts, callback) {
+ if (callback === void 0) {
+ return new Promise((resolve, reject) => {
+ connect.call(this, opts, (err, data) => {
+ return err ? reject(err) : resolve(data);
+ });
+ });
+ }
+ try {
+ const connectHandler = new ConnectHandler(opts, callback);
+ const connectOptions = { ...opts, method: "CONNECT" };
+ this.dispatch(connectOptions, connectHandler);
+ } catch (err) {
+ if (typeof callback !== "function") {
+ throw err;
+ }
+ const opaque = opts?.opaque;
+ queueMicrotask(() => callback(err, { opaque }));
+ }
+ }
+ module.exports = connect;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/index.js
+var require_api3 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/api/index.js"(exports, module) {
+ "use strict";
+ module.exports.request = require_api_request2();
+ module.exports.stream = require_api_stream2();
+ module.exports.pipeline = require_api_pipeline2();
+ module.exports.upgrade = require_api_upgrade2();
+ module.exports.connect = require_api_connect2();
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-errors.js
+var require_mock_errors2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-errors.js"(exports, module) {
+ "use strict";
+ var { UndiciError } = require_errors2();
+ var kMockNotMatchedError = Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED");
+ var MockNotMatchedError = class extends UndiciError {
+ constructor(message) {
+ super(message);
+ this.name = "MockNotMatchedError";
+ this.message = message || "The request does not match any registered mock dispatches";
+ this.code = "UND_MOCK_ERR_MOCK_NOT_MATCHED";
+ }
+ static [Symbol.hasInstance](instance) {
+ return instance && instance[kMockNotMatchedError] === true;
+ }
+ get [kMockNotMatchedError]() {
+ return true;
+ }
+ };
+ module.exports = {
+ MockNotMatchedError
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-symbols.js
+var require_mock_symbols2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-symbols.js"(exports, module) {
+ "use strict";
+ module.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"),
+ kOriginalDispatch: Symbol("original dispatch"),
+ kOrigin: Symbol("origin"),
+ kIsMockActive: Symbol("is mock active"),
+ kNetConnect: Symbol("net connect"),
+ kGetNetConnect: Symbol("get net connect"),
+ kConnected: Symbol("connected"),
+ kIgnoreTrailingSlash: Symbol("ignore trailing slash"),
+ kMockAgentMockCallHistoryInstance: Symbol("mock agent mock call history name"),
+ kMockAgentRegisterCallHistory: Symbol("mock agent register mock call history"),
+ kMockAgentAddCallHistoryLog: Symbol("mock agent add call history log"),
+ kMockAgentIsCallHistoryEnabled: Symbol("mock agent is call history enabled"),
+ kMockAgentAcceptsNonStandardSearchParameters: Symbol("mock agent accepts non standard search parameters"),
+ kMockCallHistoryAddLog: Symbol("mock call history add log")
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-utils.js
+var require_mock_utils2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-utils.js"(exports, module) {
+ "use strict";
+ var { MockNotMatchedError } = require_mock_errors2();
+ var {
+ kDispatches,
+ kMockAgent,
+ kOriginalDispatch,
+ kOrigin,
+ kGetNetConnect
+ } = require_mock_symbols2();
+ var { serializePathWithQuery } = require_util11();
+ var { STATUS_CODES } = __require("node:http");
+ var {
+ types: {
+ isPromise
+ }
+ } = __require("node:util");
+ var { InvalidArgumentError } = require_errors2();
+ function matchValue(match2, value2) {
+ if (typeof match2 === "string") {
+ return match2 === value2;
+ }
+ if (match2 instanceof RegExp) {
+ return match2.test(value2);
+ }
+ if (typeof match2 === "function") {
+ return match2(value2) === true;
+ }
+ return false;
+ }
+ function lowerCaseEntries(headers) {
+ return Object.fromEntries(
+ Object.entries(headers).map(([headerName, headerValue]) => {
+ return [headerName.toLocaleLowerCase(), headerValue];
+ })
+ );
+ }
+ function getHeaderByName(headers, key) {
+ if (Array.isArray(headers)) {
+ for (let i = 0; i < headers.length; i += 2) {
+ if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) {
+ return headers[i + 1];
+ }
+ }
+ return void 0;
+ } else if (typeof headers.get === "function") {
+ return headers.get(key);
+ } else {
+ return lowerCaseEntries(headers)[key.toLocaleLowerCase()];
+ }
+ }
+ function buildHeadersFromArray(headers) {
+ const clone2 = headers.slice();
+ const entries = [];
+ for (let index = 0; index < clone2.length; index += 2) {
+ entries.push([clone2[index], clone2[index + 1]]);
+ }
+ return Object.fromEntries(entries);
+ }
+ function matchHeaders(mockDispatch2, headers) {
+ if (typeof mockDispatch2.headers === "function") {
+ if (Array.isArray(headers)) {
+ headers = buildHeadersFromArray(headers);
+ }
+ return mockDispatch2.headers(headers ? lowerCaseEntries(headers) : {});
+ }
+ if (typeof mockDispatch2.headers === "undefined") {
+ return true;
+ }
+ if (typeof headers !== "object" || typeof mockDispatch2.headers !== "object") {
+ return false;
+ }
+ for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch2.headers)) {
+ const headerValue = getHeaderByName(headers, matchHeaderName);
+ if (!matchValue(matchHeaderValue, headerValue)) {
+ return false;
+ }
+ }
+ return true;
+ }
+ function normalizeSearchParams(query2) {
+ if (typeof query2 !== "string") {
+ return query2;
+ }
+ const originalQp = new URLSearchParams(query2);
+ const normalizedQp = new URLSearchParams();
+ for (let [key, value2] of originalQp.entries()) {
+ key = key.replace("[]", "");
+ const valueRepresentsString = /^(['"]).*\1$/.test(value2);
+ if (valueRepresentsString) {
+ normalizedQp.append(key, value2);
+ continue;
+ }
+ if (value2.includes(",")) {
+ const values = value2.split(",");
+ for (const v of values) {
+ normalizedQp.append(key, v);
+ }
+ continue;
+ }
+ normalizedQp.append(key, value2);
+ }
+ return normalizedQp;
+ }
+ function safeUrl(path3) {
+ if (typeof path3 !== "string") {
+ return path3;
+ }
+ const pathSegments = path3.split("?", 3);
+ if (pathSegments.length !== 2) {
+ return path3;
+ }
+ const qp = new URLSearchParams(pathSegments.pop());
+ qp.sort();
+ return [...pathSegments, qp.toString()].join("?");
+ }
+ function matchKey(mockDispatch2, { path: path3, method, body, headers }) {
+ const pathMatch = matchValue(mockDispatch2.path, path3);
+ const methodMatch = matchValue(mockDispatch2.method, method);
+ const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true;
+ const headersMatch = matchHeaders(mockDispatch2, headers);
+ return pathMatch && methodMatch && bodyMatch && headersMatch;
+ }
+ function getResponseData2(data) {
+ if (Buffer.isBuffer(data)) {
+ return data;
+ } else if (data instanceof Uint8Array) {
+ return data;
+ } else if (data instanceof ArrayBuffer) {
+ return data;
+ } else if (typeof data === "object") {
+ return JSON.stringify(data);
+ } else if (data) {
+ return data.toString();
+ } else {
+ return "";
+ }
+ }
+ function getMockDispatch(mockDispatches, key) {
+ const basePath = key.query ? serializePathWithQuery(key.path, key.query) : key.path;
+ const resolvedPath = typeof basePath === "string" ? safeUrl(basePath) : basePath;
+ const resolvedPathWithoutTrailingSlash = removeTrailingSlash(resolvedPath);
+ let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path3, ignoreTrailingSlash }) => {
+ return ignoreTrailingSlash ? matchValue(removeTrailingSlash(safeUrl(path3)), resolvedPathWithoutTrailingSlash) : matchValue(safeUrl(path3), resolvedPath);
+ });
+ if (matchedMockDispatches.length === 0) {
+ throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`);
+ }
+ matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method));
+ if (matchedMockDispatches.length === 0) {
+ throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}' on path '${resolvedPath}'`);
+ }
+ matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== "undefined" ? matchValue(body, key.body) : true);
+ if (matchedMockDispatches.length === 0) {
+ throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}' on path '${resolvedPath}'`);
+ }
+ matchedMockDispatches = matchedMockDispatches.filter((mockDispatch2) => matchHeaders(mockDispatch2, key.headers));
+ if (matchedMockDispatches.length === 0) {
+ const headers = typeof key.headers === "object" ? JSON.stringify(key.headers) : key.headers;
+ throw new MockNotMatchedError(`Mock dispatch not matched for headers '${headers}' on path '${resolvedPath}'`);
+ }
+ return matchedMockDispatches[0];
+ }
+ function addMockDispatch(mockDispatches, key, data, opts) {
+ const baseData = { timesInvoked: 0, times: 1, persist: false, consumed: false, ...opts };
+ const replyData = typeof data === "function" ? { callback: data } : { ...data };
+ const newMockDispatch = { ...baseData, ...key, pending: true, data: { error: null, ...replyData } };
+ mockDispatches.push(newMockDispatch);
+ return newMockDispatch;
+ }
+ function deleteMockDispatch(mockDispatches, key) {
+ const index = mockDispatches.findIndex((dispatch) => {
+ if (!dispatch.consumed) {
+ return false;
+ }
+ return matchKey(dispatch, key);
+ });
+ if (index !== -1) {
+ mockDispatches.splice(index, 1);
+ }
+ }
+ function removeTrailingSlash(path3) {
+ while (path3.endsWith("/")) {
+ path3 = path3.slice(0, -1);
+ }
+ if (path3.length === 0) {
+ path3 = "/";
+ }
+ return path3;
+ }
+ function buildKey(opts) {
+ const { path: path3, method, body, headers, query: query2 } = opts;
+ return {
+ path: path3,
+ method,
+ body,
+ headers,
+ query: query2
+ };
+ }
+ function generateKeyValues(data) {
+ const keys = Object.keys(data);
+ const result = [];
+ for (let i = 0; i < keys.length; ++i) {
+ const key = keys[i];
+ const value2 = data[key];
+ const name = Buffer.from(`${key}`);
+ if (Array.isArray(value2)) {
+ for (let j = 0; j < value2.length; ++j) {
+ result.push(name, Buffer.from(`${value2[j]}`));
+ }
+ } else {
+ result.push(name, Buffer.from(`${value2}`));
+ }
+ }
+ return result;
+ }
+ function getStatusText(statusCode) {
+ return STATUS_CODES[statusCode] || "unknown";
+ }
+ async function getResponse(body) {
+ const buffers = [];
+ for await (const data of body) {
+ buffers.push(data);
+ }
+ return Buffer.concat(buffers).toString("utf8");
+ }
+ function mockDispatch(opts, handler2) {
+ const key = buildKey(opts);
+ const mockDispatch2 = getMockDispatch(this[kDispatches], key);
+ mockDispatch2.timesInvoked++;
+ if (mockDispatch2.data.callback) {
+ mockDispatch2.data = { ...mockDispatch2.data, ...mockDispatch2.data.callback(opts) };
+ }
+ const { data: { statusCode, data, headers, trailers, error: error41 }, delay: delay2, persist } = mockDispatch2;
+ const { timesInvoked, times } = mockDispatch2;
+ mockDispatch2.consumed = !persist && timesInvoked >= times;
+ mockDispatch2.pending = timesInvoked < times;
+ if (error41 !== null) {
+ deleteMockDispatch(this[kDispatches], key);
+ handler2.onError(error41);
+ return true;
+ }
+ if (typeof delay2 === "number" && delay2 > 0) {
+ setTimeout(() => {
+ handleReply(this[kDispatches]);
+ }, delay2);
+ } else {
+ handleReply(this[kDispatches]);
+ }
+ function handleReply(mockDispatches, _data = data) {
+ const optsHeaders = Array.isArray(opts.headers) ? buildHeadersFromArray(opts.headers) : opts.headers;
+ const body = typeof _data === "function" ? _data({ ...opts, headers: optsHeaders }) : _data;
+ if (isPromise(body)) {
+ body.then((newData) => handleReply(mockDispatches, newData));
+ return;
+ }
+ const responseData = getResponseData2(body);
+ const responseHeaders = generateKeyValues(headers);
+ const responseTrailers = generateKeyValues(trailers);
+ handler2.onConnect?.((err) => handler2.onError(err), null);
+ handler2.onHeaders?.(statusCode, responseHeaders, resume, getStatusText(statusCode));
+ handler2.onData?.(Buffer.from(responseData));
+ handler2.onComplete?.(responseTrailers);
+ deleteMockDispatch(mockDispatches, key);
+ }
+ function resume() {
+ }
+ return true;
+ }
+ function buildMockDispatch() {
+ const agent2 = this[kMockAgent];
+ const origin = this[kOrigin];
+ const originalDispatch = this[kOriginalDispatch];
+ return function dispatch(opts, handler2) {
+ if (agent2.isMockActive) {
+ try {
+ mockDispatch.call(this, opts, handler2);
+ } catch (error41) {
+ if (error41.code === "UND_MOCK_ERR_MOCK_NOT_MATCHED") {
+ const netConnect = agent2[kGetNetConnect]();
+ if (netConnect === false) {
+ throw new MockNotMatchedError(`${error41.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`);
+ }
+ if (checkNetConnect(netConnect, origin)) {
+ originalDispatch.call(this, opts, handler2);
+ } else {
+ throw new MockNotMatchedError(`${error41.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`);
+ }
+ } else {
+ throw error41;
+ }
+ }
+ } else {
+ originalDispatch.call(this, opts, handler2);
+ }
+ };
+ }
+ function checkNetConnect(netConnect, origin) {
+ const url2 = new URL(origin);
+ if (netConnect === true) {
+ return true;
+ } else if (Array.isArray(netConnect) && netConnect.some((matcher) => matchValue(matcher, url2.host))) {
+ return true;
+ }
+ return false;
+ }
+ function buildAndValidateMockOptions(opts) {
+ const { agent: agent2, ...mockOptions } = opts;
+ if ("enableCallHistory" in mockOptions && typeof mockOptions.enableCallHistory !== "boolean") {
+ throw new InvalidArgumentError("options.enableCallHistory must to be a boolean");
+ }
+ if ("acceptNonStandardSearchParameters" in mockOptions && typeof mockOptions.acceptNonStandardSearchParameters !== "boolean") {
+ throw new InvalidArgumentError("options.acceptNonStandardSearchParameters must to be a boolean");
+ }
+ if ("ignoreTrailingSlash" in mockOptions && typeof mockOptions.ignoreTrailingSlash !== "boolean") {
+ throw new InvalidArgumentError("options.ignoreTrailingSlash must to be a boolean");
+ }
+ return mockOptions;
+ }
+ module.exports = {
+ getResponseData: getResponseData2,
+ getMockDispatch,
+ addMockDispatch,
+ deleteMockDispatch,
+ buildKey,
+ generateKeyValues,
+ matchValue,
+ getResponse,
+ getStatusText,
+ mockDispatch,
+ buildMockDispatch,
+ checkNetConnect,
+ buildAndValidateMockOptions,
+ getHeaderByName,
+ buildHeadersFromArray,
+ normalizeSearchParams
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-interceptor.js
+var require_mock_interceptor2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-interceptor.js"(exports, module) {
+ "use strict";
+ var { getResponseData: getResponseData2, buildKey, addMockDispatch } = require_mock_utils2();
+ var {
+ kDispatches,
+ kDispatchKey,
+ kDefaultHeaders,
+ kDefaultTrailers,
+ kContentLength,
+ kMockDispatch,
+ kIgnoreTrailingSlash
+ } = require_mock_symbols2();
+ var { InvalidArgumentError } = require_errors2();
+ var { serializePathWithQuery } = require_util11();
+ var MockScope = class {
+ constructor(mockDispatch) {
+ this[kMockDispatch] = mockDispatch;
+ }
+ /**
+ * Delay a reply by a set amount in ms.
+ */
+ delay(waitInMs) {
+ if (typeof waitInMs !== "number" || !Number.isInteger(waitInMs) || waitInMs <= 0) {
+ throw new InvalidArgumentError("waitInMs must be a valid integer > 0");
+ }
+ this[kMockDispatch].delay = waitInMs;
+ return this;
+ }
+ /**
+ * For a defined reply, never mark as consumed.
+ */
+ persist() {
+ this[kMockDispatch].persist = true;
+ return this;
+ }
+ /**
+ * Allow one to define a reply for a set amount of matching requests.
+ */
+ times(repeatTimes) {
+ if (typeof repeatTimes !== "number" || !Number.isInteger(repeatTimes) || repeatTimes <= 0) {
+ throw new InvalidArgumentError("repeatTimes must be a valid integer > 0");
+ }
+ this[kMockDispatch].times = repeatTimes;
+ return this;
+ }
+ };
+ var MockInterceptor = class {
+ constructor(opts, mockDispatches) {
+ if (typeof opts !== "object") {
+ throw new InvalidArgumentError("opts must be an object");
+ }
+ if (typeof opts.path === "undefined") {
+ throw new InvalidArgumentError("opts.path must be defined");
+ }
+ if (typeof opts.method === "undefined") {
+ opts.method = "GET";
+ }
+ if (typeof opts.path === "string") {
+ if (opts.query) {
+ opts.path = serializePathWithQuery(opts.path, opts.query);
+ } else {
+ const parsedURL = new URL(opts.path, "data://");
+ opts.path = parsedURL.pathname + parsedURL.search;
+ }
+ }
+ if (typeof opts.method === "string") {
+ opts.method = opts.method.toUpperCase();
+ }
+ this[kDispatchKey] = buildKey(opts);
+ this[kDispatches] = mockDispatches;
+ this[kIgnoreTrailingSlash] = opts.ignoreTrailingSlash ?? false;
+ this[kDefaultHeaders] = {};
+ this[kDefaultTrailers] = {};
+ this[kContentLength] = false;
+ }
+ createMockScopeDispatchData({ statusCode, data, responseOptions }) {
+ const responseData = getResponseData2(data);
+ const contentLength = this[kContentLength] ? { "content-length": responseData.length } : {};
+ const headers = { ...this[kDefaultHeaders], ...contentLength, ...responseOptions.headers };
+ const trailers = { ...this[kDefaultTrailers], ...responseOptions.trailers };
+ return { statusCode, data, headers, trailers };
+ }
+ validateReplyParameters(replyParameters) {
+ if (typeof replyParameters.statusCode === "undefined") {
+ throw new InvalidArgumentError("statusCode must be defined");
+ }
+ if (typeof replyParameters.responseOptions !== "object" || replyParameters.responseOptions === null) {
+ throw new InvalidArgumentError("responseOptions must be an object");
+ }
+ }
+ /**
+ * Mock an undici request with a defined reply.
+ */
+ reply(replyOptionsCallbackOrStatusCode) {
+ if (typeof replyOptionsCallbackOrStatusCode === "function") {
+ const wrappedDefaultsCallback = (opts) => {
+ const resolvedData = replyOptionsCallbackOrStatusCode(opts);
+ if (typeof resolvedData !== "object" || resolvedData === null) {
+ throw new InvalidArgumentError("reply options callback must return an object");
+ }
+ const replyParameters2 = { data: "", responseOptions: {}, ...resolvedData };
+ this.validateReplyParameters(replyParameters2);
+ return {
+ ...this.createMockScopeDispatchData(replyParameters2)
+ };
+ };
+ const newMockDispatch2 = addMockDispatch(this[kDispatches], this[kDispatchKey], wrappedDefaultsCallback, { ignoreTrailingSlash: this[kIgnoreTrailingSlash] });
+ return new MockScope(newMockDispatch2);
+ }
+ const replyParameters = {
+ statusCode: replyOptionsCallbackOrStatusCode,
+ data: arguments[1] === void 0 ? "" : arguments[1],
+ responseOptions: arguments[2] === void 0 ? {} : arguments[2]
+ };
+ this.validateReplyParameters(replyParameters);
+ const dispatchData = this.createMockScopeDispatchData(replyParameters);
+ const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], dispatchData, { ignoreTrailingSlash: this[kIgnoreTrailingSlash] });
+ return new MockScope(newMockDispatch);
+ }
+ /**
+ * Mock an undici request with a defined error.
+ */
+ replyWithError(error41) {
+ if (typeof error41 === "undefined") {
+ throw new InvalidArgumentError("error must be defined");
+ }
+ const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], { error: error41 }, { ignoreTrailingSlash: this[kIgnoreTrailingSlash] });
+ return new MockScope(newMockDispatch);
+ }
+ /**
+ * Set default reply headers on the interceptor for subsequent replies
+ */
+ defaultReplyHeaders(headers) {
+ if (typeof headers === "undefined") {
+ throw new InvalidArgumentError("headers must be defined");
+ }
+ this[kDefaultHeaders] = headers;
+ return this;
+ }
+ /**
+ * Set default reply trailers on the interceptor for subsequent replies
+ */
+ defaultReplyTrailers(trailers) {
+ if (typeof trailers === "undefined") {
+ throw new InvalidArgumentError("trailers must be defined");
+ }
+ this[kDefaultTrailers] = trailers;
+ return this;
+ }
+ /**
+ * Set reply content length header for replies on the interceptor
+ */
+ replyContentLength() {
+ this[kContentLength] = true;
+ return this;
+ }
+ };
+ module.exports.MockInterceptor = MockInterceptor;
+ module.exports.MockScope = MockScope;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-client.js
+var require_mock_client2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-client.js"(exports, module) {
+ "use strict";
+ var { promisify } = __require("node:util");
+ var Client2 = require_client2();
+ var { buildMockDispatch } = require_mock_utils2();
+ var {
+ kDispatches,
+ kMockAgent,
+ kClose,
+ kOriginalClose,
+ kOrigin,
+ kOriginalDispatch,
+ kConnected,
+ kIgnoreTrailingSlash
+ } = require_mock_symbols2();
+ var { MockInterceptor } = require_mock_interceptor2();
+ var Symbols = require_symbols6();
+ var { InvalidArgumentError } = require_errors2();
+ var MockClient = class extends Client2 {
+ constructor(origin, opts) {
+ if (!opts || !opts.agent || typeof opts.agent.dispatch !== "function") {
+ throw new InvalidArgumentError("Argument opts.agent must implement Agent");
+ }
+ super(origin, opts);
+ this[kMockAgent] = opts.agent;
+ this[kOrigin] = origin;
+ this[kIgnoreTrailingSlash] = opts.ignoreTrailingSlash ?? false;
+ this[kDispatches] = [];
+ this[kConnected] = 1;
+ this[kOriginalDispatch] = this.dispatch;
+ this[kOriginalClose] = this.close.bind(this);
+ this.dispatch = buildMockDispatch.call(this);
+ this.close = this[kClose];
+ }
+ get [Symbols.kConnected]() {
+ return this[kConnected];
+ }
+ /**
+ * Sets up the base interceptor for mocking replies from undici.
+ */
+ intercept(opts) {
+ return new MockInterceptor(
+ opts && { ignoreTrailingSlash: this[kIgnoreTrailingSlash], ...opts },
+ this[kDispatches]
+ );
+ }
+ cleanMocks() {
+ this[kDispatches] = [];
+ }
+ async [kClose]() {
+ await promisify(this[kOriginalClose])();
+ this[kConnected] = 0;
+ this[kMockAgent][Symbols.kClients].delete(this[kOrigin]);
+ }
+ };
+ module.exports = MockClient;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-call-history.js
+var require_mock_call_history = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-call-history.js"(exports, module) {
+ "use strict";
+ var { kMockCallHistoryAddLog } = require_mock_symbols2();
+ var { InvalidArgumentError } = require_errors2();
+ function handleFilterCallsWithOptions(criteria, options, handler2, store) {
+ switch (options.operator) {
+ case "OR":
+ store.push(...handler2(criteria));
+ return store;
+ case "AND":
+ return handler2.call({ logs: store }, criteria);
+ default:
+ throw new InvalidArgumentError("options.operator must to be a case insensitive string equal to 'OR' or 'AND'");
+ }
+ }
+ function buildAndValidateFilterCallsOptions(options = {}) {
+ const finalOptions = {};
+ if ("operator" in options) {
+ if (typeof options.operator !== "string" || options.operator.toUpperCase() !== "OR" && options.operator.toUpperCase() !== "AND") {
+ throw new InvalidArgumentError("options.operator must to be a case insensitive string equal to 'OR' or 'AND'");
+ }
+ return {
+ ...finalOptions,
+ operator: options.operator.toUpperCase()
+ };
+ }
+ return finalOptions;
+ }
+ function makeFilterCalls(parameterName) {
+ return (parameterValue) => {
+ if (typeof parameterValue === "string" || parameterValue == null) {
+ return this.logs.filter((log2) => {
+ return log2[parameterName] === parameterValue;
+ });
+ }
+ if (parameterValue instanceof RegExp) {
+ return this.logs.filter((log2) => {
+ return parameterValue.test(log2[parameterName]);
+ });
+ }
+ throw new InvalidArgumentError(`${parameterName} parameter should be one of string, regexp, undefined or null`);
+ };
+ }
+ function computeUrlWithMaybeSearchParameters(requestInit) {
+ try {
+ const url2 = new URL(requestInit.path, requestInit.origin);
+ if (url2.search.length !== 0) {
+ return url2;
+ }
+ url2.search = new URLSearchParams(requestInit.query).toString();
+ return url2;
+ } catch (error41) {
+ throw new InvalidArgumentError("An error occurred when computing MockCallHistoryLog.url", { cause: error41 });
+ }
+ }
+ var MockCallHistoryLog = class {
+ constructor(requestInit = {}) {
+ this.body = requestInit.body;
+ this.headers = requestInit.headers;
+ this.method = requestInit.method;
+ const url2 = computeUrlWithMaybeSearchParameters(requestInit);
+ this.fullUrl = url2.toString();
+ this.origin = url2.origin;
+ this.path = url2.pathname;
+ this.searchParams = Object.fromEntries(url2.searchParams);
+ this.protocol = url2.protocol;
+ this.host = url2.host;
+ this.port = url2.port;
+ this.hash = url2.hash;
+ }
+ toMap() {
+ return /* @__PURE__ */ new Map(
+ [
+ ["protocol", this.protocol],
+ ["host", this.host],
+ ["port", this.port],
+ ["origin", this.origin],
+ ["path", this.path],
+ ["hash", this.hash],
+ ["searchParams", this.searchParams],
+ ["fullUrl", this.fullUrl],
+ ["method", this.method],
+ ["body", this.body],
+ ["headers", this.headers]
+ ]
+ );
+ }
+ toString() {
+ const options = { betweenKeyValueSeparator: "->", betweenPairSeparator: "|" };
+ let result = "";
+ this.toMap().forEach((value2, key) => {
+ if (typeof value2 === "string" || value2 === void 0 || value2 === null) {
+ result = `${result}${key}${options.betweenKeyValueSeparator}${value2}${options.betweenPairSeparator}`;
+ }
+ if (typeof value2 === "object" && value2 !== null || Array.isArray(value2)) {
+ result = `${result}${key}${options.betweenKeyValueSeparator}${JSON.stringify(value2)}${options.betweenPairSeparator}`;
+ }
+ });
+ return result.slice(0, -1);
+ }
+ };
+ var MockCallHistory = class {
+ logs = [];
+ calls() {
+ return this.logs;
+ }
+ firstCall() {
+ return this.logs.at(0);
+ }
+ lastCall() {
+ return this.logs.at(-1);
+ }
+ nthCall(number3) {
+ if (typeof number3 !== "number") {
+ throw new InvalidArgumentError("nthCall must be called with a number");
+ }
+ if (!Number.isInteger(number3)) {
+ throw new InvalidArgumentError("nthCall must be called with an integer");
+ }
+ if (Math.sign(number3) !== 1) {
+ throw new InvalidArgumentError("nthCall must be called with a positive value. use firstCall or lastCall instead");
+ }
+ return this.logs.at(number3 - 1);
+ }
+ filterCalls(criteria, options) {
+ if (this.logs.length === 0) {
+ return this.logs;
+ }
+ if (typeof criteria === "function") {
+ return this.logs.filter(criteria);
+ }
+ if (criteria instanceof RegExp) {
+ return this.logs.filter((log2) => {
+ return criteria.test(log2.toString());
+ });
+ }
+ if (typeof criteria === "object" && criteria !== null) {
+ if (Object.keys(criteria).length === 0) {
+ return this.logs;
+ }
+ const finalOptions = { operator: "OR", ...buildAndValidateFilterCallsOptions(options) };
+ let maybeDuplicatedLogsFiltered = [];
+ if ("protocol" in criteria) {
+ maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.protocol, finalOptions, this.filterCallsByProtocol, maybeDuplicatedLogsFiltered);
+ }
+ if ("host" in criteria) {
+ maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.host, finalOptions, this.filterCallsByHost, maybeDuplicatedLogsFiltered);
+ }
+ if ("port" in criteria) {
+ maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.port, finalOptions, this.filterCallsByPort, maybeDuplicatedLogsFiltered);
+ }
+ if ("origin" in criteria) {
+ maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.origin, finalOptions, this.filterCallsByOrigin, maybeDuplicatedLogsFiltered);
+ }
+ if ("path" in criteria) {
+ maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.path, finalOptions, this.filterCallsByPath, maybeDuplicatedLogsFiltered);
+ }
+ if ("hash" in criteria) {
+ maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.hash, finalOptions, this.filterCallsByHash, maybeDuplicatedLogsFiltered);
+ }
+ if ("fullUrl" in criteria) {
+ maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.fullUrl, finalOptions, this.filterCallsByFullUrl, maybeDuplicatedLogsFiltered);
+ }
+ if ("method" in criteria) {
+ maybeDuplicatedLogsFiltered = handleFilterCallsWithOptions(criteria.method, finalOptions, this.filterCallsByMethod, maybeDuplicatedLogsFiltered);
+ }
+ const uniqLogsFiltered = [...new Set(maybeDuplicatedLogsFiltered)];
+ return uniqLogsFiltered;
+ }
+ throw new InvalidArgumentError("criteria parameter should be one of function, regexp, or object");
+ }
+ filterCallsByProtocol = makeFilterCalls.call(this, "protocol");
+ filterCallsByHost = makeFilterCalls.call(this, "host");
+ filterCallsByPort = makeFilterCalls.call(this, "port");
+ filterCallsByOrigin = makeFilterCalls.call(this, "origin");
+ filterCallsByPath = makeFilterCalls.call(this, "path");
+ filterCallsByHash = makeFilterCalls.call(this, "hash");
+ filterCallsByFullUrl = makeFilterCalls.call(this, "fullUrl");
+ filterCallsByMethod = makeFilterCalls.call(this, "method");
+ clear() {
+ this.logs = [];
+ }
+ [kMockCallHistoryAddLog](requestInit) {
+ const log2 = new MockCallHistoryLog(requestInit);
+ this.logs.push(log2);
+ return log2;
+ }
+ *[Symbol.iterator]() {
+ for (const log2 of this.calls()) {
+ yield log2;
+ }
+ }
+ };
+ module.exports.MockCallHistory = MockCallHistory;
+ module.exports.MockCallHistoryLog = MockCallHistoryLog;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-pool.js
+var require_mock_pool2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-pool.js"(exports, module) {
+ "use strict";
+ var { promisify } = __require("node:util");
+ var Pool = require_pool2();
+ var { buildMockDispatch } = require_mock_utils2();
+ var {
+ kDispatches,
+ kMockAgent,
+ kClose,
+ kOriginalClose,
+ kOrigin,
+ kOriginalDispatch,
+ kConnected,
+ kIgnoreTrailingSlash
+ } = require_mock_symbols2();
+ var { MockInterceptor } = require_mock_interceptor2();
+ var Symbols = require_symbols6();
+ var { InvalidArgumentError } = require_errors2();
+ var MockPool = class extends Pool {
+ constructor(origin, opts) {
+ if (!opts || !opts.agent || typeof opts.agent.dispatch !== "function") {
+ throw new InvalidArgumentError("Argument opts.agent must implement Agent");
+ }
+ super(origin, opts);
+ this[kMockAgent] = opts.agent;
+ this[kOrigin] = origin;
+ this[kIgnoreTrailingSlash] = opts.ignoreTrailingSlash ?? false;
+ this[kDispatches] = [];
+ this[kConnected] = 1;
+ this[kOriginalDispatch] = this.dispatch;
+ this[kOriginalClose] = this.close.bind(this);
+ this.dispatch = buildMockDispatch.call(this);
+ this.close = this[kClose];
+ }
+ get [Symbols.kConnected]() {
+ return this[kConnected];
+ }
+ /**
+ * Sets up the base interceptor for mocking replies from undici.
+ */
+ intercept(opts) {
+ return new MockInterceptor(
+ opts && { ignoreTrailingSlash: this[kIgnoreTrailingSlash], ...opts },
+ this[kDispatches]
+ );
+ }
+ cleanMocks() {
+ this[kDispatches] = [];
+ }
+ async [kClose]() {
+ await promisify(this[kOriginalClose])();
+ this[kConnected] = 0;
+ this[kMockAgent][Symbols.kClients].delete(this[kOrigin]);
+ }
+ };
+ module.exports = MockPool;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/pending-interceptors-formatter.js
+var require_pending_interceptors_formatter2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/pending-interceptors-formatter.js"(exports, module) {
+ "use strict";
+ var { Transform } = __require("node:stream");
+ var { Console } = __require("node:console");
+ var PERSISTENT = process.versions.icu ? "\u2705" : "Y ";
+ var NOT_PERSISTENT = process.versions.icu ? "\u274C" : "N ";
+ module.exports = class PendingInterceptorsFormatter {
+ constructor({ disableColors } = {}) {
+ this.transform = new Transform({
+ transform(chunk, _enc, cb) {
+ cb(null, chunk);
+ }
+ });
+ this.logger = new Console({
+ stdout: this.transform,
+ inspectOptions: {
+ colors: !disableColors && !process.env.CI
+ }
+ });
+ }
+ format(pendingInterceptors) {
+ const withPrettyHeaders = pendingInterceptors.map(
+ ({ method, path: path3, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
+ Method: method,
+ Origin: origin,
+ Path: path3,
+ "Status code": statusCode,
+ Persistent: persist ? PERSISTENT : NOT_PERSISTENT,
+ Invocations: timesInvoked,
+ Remaining: persist ? Infinity : times - timesInvoked
+ })
+ );
+ this.logger.table(withPrettyHeaders);
+ return this.transform.read().toString();
+ }
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-agent.js
+var require_mock_agent2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/mock-agent.js"(exports, module) {
+ "use strict";
+ var { kClients } = require_symbols6();
+ var Agent = require_agent2();
+ var {
+ kAgent,
+ kMockAgentSet,
+ kMockAgentGet,
+ kDispatches,
+ kIsMockActive,
+ kNetConnect,
+ kGetNetConnect,
+ kOptions,
+ kFactory,
+ kMockAgentRegisterCallHistory,
+ kMockAgentIsCallHistoryEnabled,
+ kMockAgentAddCallHistoryLog,
+ kMockAgentMockCallHistoryInstance,
+ kMockAgentAcceptsNonStandardSearchParameters,
+ kMockCallHistoryAddLog,
+ kIgnoreTrailingSlash
+ } = require_mock_symbols2();
+ var MockClient = require_mock_client2();
+ var MockPool = require_mock_pool2();
+ var { matchValue, normalizeSearchParams, buildAndValidateMockOptions } = require_mock_utils2();
+ var { InvalidArgumentError, UndiciError } = require_errors2();
+ var Dispatcher = require_dispatcher2();
+ var PendingInterceptorsFormatter = require_pending_interceptors_formatter2();
+ var { MockCallHistory } = require_mock_call_history();
+ var MockAgent = class extends Dispatcher {
+ constructor(opts = {}) {
+ super(opts);
+ const mockOptions = buildAndValidateMockOptions(opts);
+ this[kNetConnect] = true;
+ this[kIsMockActive] = true;
+ this[kMockAgentIsCallHistoryEnabled] = mockOptions.enableCallHistory ?? false;
+ this[kMockAgentAcceptsNonStandardSearchParameters] = mockOptions.acceptNonStandardSearchParameters ?? false;
+ this[kIgnoreTrailingSlash] = mockOptions.ignoreTrailingSlash ?? false;
+ if (opts?.agent && typeof opts.agent.dispatch !== "function") {
+ throw new InvalidArgumentError("Argument opts.agent must implement Agent");
+ }
+ const agent2 = opts?.agent ? opts.agent : new Agent(opts);
+ this[kAgent] = agent2;
+ this[kClients] = agent2[kClients];
+ this[kOptions] = mockOptions;
+ if (this[kMockAgentIsCallHistoryEnabled]) {
+ this[kMockAgentRegisterCallHistory]();
+ }
+ }
+ get(origin) {
+ const originKey = this[kIgnoreTrailingSlash] ? origin.replace(/\/$/, "") : origin;
+ let dispatcher = this[kMockAgentGet](originKey);
+ if (!dispatcher) {
+ dispatcher = this[kFactory](originKey);
+ this[kMockAgentSet](originKey, dispatcher);
+ }
+ return dispatcher;
+ }
+ dispatch(opts, handler2) {
+ this.get(opts.origin);
+ this[kMockAgentAddCallHistoryLog](opts);
+ const acceptNonStandardSearchParameters = this[kMockAgentAcceptsNonStandardSearchParameters];
+ const dispatchOpts = { ...opts };
+ if (acceptNonStandardSearchParameters && dispatchOpts.path) {
+ const [path3, searchParams] = dispatchOpts.path.split("?");
+ const normalizedSearchParams = normalizeSearchParams(searchParams, acceptNonStandardSearchParameters);
+ dispatchOpts.path = `${path3}?${normalizedSearchParams}`;
+ }
+ return this[kAgent].dispatch(dispatchOpts, handler2);
+ }
+ async close() {
+ this.clearCallHistory();
+ await this[kAgent].close();
+ this[kClients].clear();
+ }
+ deactivate() {
+ this[kIsMockActive] = false;
+ }
+ activate() {
+ this[kIsMockActive] = true;
+ }
+ enableNetConnect(matcher) {
+ if (typeof matcher === "string" || typeof matcher === "function" || matcher instanceof RegExp) {
+ if (Array.isArray(this[kNetConnect])) {
+ this[kNetConnect].push(matcher);
+ } else {
+ this[kNetConnect] = [matcher];
+ }
+ } else if (typeof matcher === "undefined") {
+ this[kNetConnect] = true;
+ } else {
+ throw new InvalidArgumentError("Unsupported matcher. Must be one of String|Function|RegExp.");
+ }
+ }
+ disableNetConnect() {
+ this[kNetConnect] = false;
+ }
+ enableCallHistory() {
+ this[kMockAgentIsCallHistoryEnabled] = true;
+ return this;
+ }
+ disableCallHistory() {
+ this[kMockAgentIsCallHistoryEnabled] = false;
+ return this;
+ }
+ getCallHistory() {
+ return this[kMockAgentMockCallHistoryInstance];
+ }
+ clearCallHistory() {
+ if (this[kMockAgentMockCallHistoryInstance] !== void 0) {
+ this[kMockAgentMockCallHistoryInstance].clear();
+ }
+ }
+ // This is required to bypass issues caused by using global symbols - see:
+ // https://github.com/nodejs/undici/issues/1447
+ get isMockActive() {
+ return this[kIsMockActive];
+ }
+ [kMockAgentRegisterCallHistory]() {
+ if (this[kMockAgentMockCallHistoryInstance] === void 0) {
+ this[kMockAgentMockCallHistoryInstance] = new MockCallHistory();
+ }
+ }
+ [kMockAgentAddCallHistoryLog](opts) {
+ if (this[kMockAgentIsCallHistoryEnabled]) {
+ this[kMockAgentRegisterCallHistory]();
+ this[kMockAgentMockCallHistoryInstance][kMockCallHistoryAddLog](opts);
+ }
+ }
+ [kMockAgentSet](origin, dispatcher) {
+ this[kClients].set(origin, { count: 0, dispatcher });
+ }
+ [kFactory](origin) {
+ const mockOptions = Object.assign({ agent: this }, this[kOptions]);
+ return this[kOptions] && this[kOptions].connections === 1 ? new MockClient(origin, mockOptions) : new MockPool(origin, mockOptions);
+ }
+ [kMockAgentGet](origin) {
+ const result = this[kClients].get(origin);
+ if (result?.dispatcher) {
+ return result.dispatcher;
+ }
+ if (typeof origin !== "string") {
+ const dispatcher = this[kFactory]("http://localhost:9999");
+ this[kMockAgentSet](origin, dispatcher);
+ return dispatcher;
+ }
+ for (const [keyMatcher, result2] of Array.from(this[kClients])) {
+ if (result2 && typeof keyMatcher !== "string" && matchValue(keyMatcher, origin)) {
+ const dispatcher = this[kFactory](origin);
+ this[kMockAgentSet](origin, dispatcher);
+ dispatcher[kDispatches] = result2.dispatcher[kDispatches];
+ return dispatcher;
+ }
+ }
+ }
+ [kGetNetConnect]() {
+ return this[kNetConnect];
+ }
+ pendingInterceptors() {
+ const mockAgentClients = this[kClients];
+ return Array.from(mockAgentClients.entries()).flatMap(([origin, result]) => result.dispatcher[kDispatches].map((dispatch) => ({ ...dispatch, origin }))).filter(({ pending }) => pending);
+ }
+ assertNoPendingInterceptors({ pendingInterceptorsFormatter = new PendingInterceptorsFormatter() } = {}) {
+ const pending = this.pendingInterceptors();
+ if (pending.length === 0) {
+ return;
+ }
+ throw new UndiciError(
+ pending.length === 1 ? `1 interceptor is pending:
+
+${pendingInterceptorsFormatter.format(pending)}`.trim() : `${pending.length} interceptors are pending:
+
+${pendingInterceptorsFormatter.format(pending)}`.trim()
+ );
+ }
+ };
+ module.exports = MockAgent;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/snapshot-utils.js
+var require_snapshot_utils = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/snapshot-utils.js"(exports, module) {
+ "use strict";
+ var { InvalidArgumentError } = require_errors2();
+ function createHeaderFilters(matchOptions = {}) {
+ const { ignoreHeaders = [], excludeHeaders = [], matchHeaders = [], caseSensitive = false } = matchOptions;
+ return {
+ ignore: new Set(ignoreHeaders.map((header) => caseSensitive ? header : header.toLowerCase())),
+ exclude: new Set(excludeHeaders.map((header) => caseSensitive ? header : header.toLowerCase())),
+ match: new Set(matchHeaders.map((header) => caseSensitive ? header : header.toLowerCase()))
+ };
+ }
+ var crypto2;
+ try {
+ crypto2 = __require("node:crypto");
+ } catch {
+ }
+ var hashId = crypto2?.hash ? (value2) => crypto2.hash("sha256", value2, "base64url") : (value2) => Buffer.from(value2).toString("base64url");
+ function isUndiciHeaders(headers) {
+ return Array.isArray(headers) && (headers.length & 1) === 0;
+ }
+ function isUrlExcludedFactory(excludePatterns = []) {
+ if (excludePatterns.length === 0) {
+ return () => false;
+ }
+ return function isUrlExcluded(url2) {
+ let urlLowerCased;
+ for (const pattern of excludePatterns) {
+ if (typeof pattern === "string") {
+ if (!urlLowerCased) {
+ urlLowerCased = url2.toLowerCase();
+ }
+ if (urlLowerCased.includes(pattern.toLowerCase())) {
+ return true;
+ }
+ } else if (pattern instanceof RegExp) {
+ if (pattern.test(url2)) {
+ return true;
+ }
+ }
+ }
+ return false;
+ };
+ }
+ function normalizeHeaders(headers) {
+ const normalizedHeaders = {};
+ if (!headers) return normalizedHeaders;
+ if (isUndiciHeaders(headers)) {
+ for (let i = 0; i < headers.length; i += 2) {
+ const key = headers[i];
+ const value2 = headers[i + 1];
+ if (key && value2 !== void 0) {
+ const keyStr = Buffer.isBuffer(key) ? key.toString() : key;
+ const valueStr = Buffer.isBuffer(value2) ? value2.toString() : value2;
+ normalizedHeaders[keyStr.toLowerCase()] = valueStr;
+ }
+ }
+ return normalizedHeaders;
+ }
+ if (headers && typeof headers === "object") {
+ for (const [key, value2] of Object.entries(headers)) {
+ if (key && typeof key === "string") {
+ normalizedHeaders[key.toLowerCase()] = Array.isArray(value2) ? value2.join(", ") : String(value2);
+ }
+ }
+ }
+ return normalizedHeaders;
+ }
+ var validSnapshotModes = (
+ /** @type {const} */
+ ["record", "playback", "update"]
+ );
+ function validateSnapshotMode(mode) {
+ if (!validSnapshotModes.includes(mode)) {
+ throw new InvalidArgumentError(`Invalid snapshot mode: ${mode}. Must be one of: ${validSnapshotModes.join(", ")}`);
+ }
+ }
+ module.exports = {
+ createHeaderFilters,
+ hashId,
+ isUndiciHeaders,
+ normalizeHeaders,
+ isUrlExcludedFactory,
+ validateSnapshotMode
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/snapshot-recorder.js
+var require_snapshot_recorder = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/snapshot-recorder.js"(exports, module) {
+ "use strict";
+ var { writeFile: writeFile2, readFile, mkdir } = __require("node:fs/promises");
+ var { dirname: dirname2, resolve } = __require("node:path");
+ var { setTimeout: setTimeout2, clearTimeout: clearTimeout2 } = __require("node:timers");
+ var { InvalidArgumentError, UndiciError } = require_errors2();
+ var { hashId, isUrlExcludedFactory, normalizeHeaders, createHeaderFilters } = require_snapshot_utils();
+ function formatRequestKey(opts, headerFilters, matchOptions = {}) {
+ const url2 = new URL(opts.path, opts.origin);
+ const normalized = opts._normalizedHeaders || normalizeHeaders(opts.headers);
+ if (!opts._normalizedHeaders) {
+ opts._normalizedHeaders = normalized;
+ }
+ return {
+ method: opts.method || "GET",
+ url: matchOptions.matchQuery !== false ? url2.toString() : `${url2.origin}${url2.pathname}`,
+ headers: filterHeadersForMatching(normalized, headerFilters, matchOptions),
+ body: matchOptions.matchBody !== false && opts.body ? String(opts.body) : ""
+ };
+ }
+ function filterHeadersForMatching(headers, headerFilters, matchOptions = {}) {
+ if (!headers || typeof headers !== "object") return {};
+ const {
+ caseSensitive = false
+ } = matchOptions;
+ const filtered = {};
+ const { ignore, exclude, match: match2 } = headerFilters;
+ for (const [key, value2] of Object.entries(headers)) {
+ const headerKey = caseSensitive ? key : key.toLowerCase();
+ if (exclude.has(headerKey)) continue;
+ if (ignore.has(headerKey)) continue;
+ if (match2.size !== 0) {
+ if (!match2.has(headerKey)) continue;
+ }
+ filtered[headerKey] = value2;
+ }
+ return filtered;
+ }
+ function filterHeadersForStorage(headers, headerFilters, matchOptions = {}) {
+ if (!headers || typeof headers !== "object") return {};
+ const {
+ caseSensitive = false
+ } = matchOptions;
+ const filtered = {};
+ const { exclude: excludeSet } = headerFilters;
+ for (const [key, value2] of Object.entries(headers)) {
+ const headerKey = caseSensitive ? key : key.toLowerCase();
+ if (excludeSet.has(headerKey)) continue;
+ filtered[headerKey] = value2;
+ }
+ return filtered;
+ }
+ function createRequestHash(formattedRequest) {
+ const parts = [
+ formattedRequest.method,
+ formattedRequest.url
+ ];
+ if (formattedRequest.headers && typeof formattedRequest.headers === "object") {
+ const headerKeys = Object.keys(formattedRequest.headers).sort();
+ for (const key of headerKeys) {
+ const values = Array.isArray(formattedRequest.headers[key]) ? formattedRequest.headers[key] : [formattedRequest.headers[key]];
+ parts.push(key);
+ for (const value2 of values.sort()) {
+ parts.push(String(value2));
+ }
+ }
+ }
+ parts.push(formattedRequest.body);
+ const content = parts.join("|");
+ return hashId(content);
+ }
+ var SnapshotRecorder = class {
+ /** @type {NodeJS.Timeout | null} */
+ #flushTimeout;
+ /** @type {import('./snapshot-utils').IsUrlExcluded} */
+ #isUrlExcluded;
+ /** @type {Map} */
+ #snapshots = /* @__PURE__ */ new Map();
+ /** @type {string|undefined} */
+ #snapshotPath;
+ /** @type {number} */
+ #maxSnapshots = Infinity;
+ /** @type {boolean} */
+ #autoFlush = false;
+ /** @type {import('./snapshot-utils').HeaderFilters} */
+ #headerFilters;
+ /**
+ * Creates a new SnapshotRecorder instance
+ * @param {SnapshotRecorderOptions&SnapshotRecorderMatchOptions} [options={}] - Configuration options for the recorder
+ */
+ constructor(options = {}) {
+ this.#snapshotPath = options.snapshotPath;
+ this.#maxSnapshots = options.maxSnapshots || Infinity;
+ this.#autoFlush = options.autoFlush || false;
+ this.flushInterval = options.flushInterval || 3e4;
+ this._flushTimer = null;
+ this.matchOptions = {
+ matchHeaders: options.matchHeaders || [],
+ // empty means match all headers
+ ignoreHeaders: options.ignoreHeaders || [],
+ excludeHeaders: options.excludeHeaders || [],
+ matchBody: options.matchBody !== false,
+ // default: true
+ matchQuery: options.matchQuery !== false,
+ // default: true
+ caseSensitive: options.caseSensitive || false
+ };
+ this.#headerFilters = createHeaderFilters(this.matchOptions);
+ this.shouldRecord = options.shouldRecord || (() => true);
+ this.shouldPlayback = options.shouldPlayback || (() => true);
+ this.#isUrlExcluded = isUrlExcludedFactory(options.excludeUrls);
+ if (this.#autoFlush && this.#snapshotPath) {
+ this.#startAutoFlush();
+ }
+ }
+ /**
+ * Records a request-response interaction
+ * @param {SnapshotRequestOptions} requestOpts - Request options
+ * @param {SnapshotEntryResponse} response - Response data to record
+ * @return {Promise} - Resolves when the recording is complete
+ */
+ async record(requestOpts, response) {
+ if (!this.shouldRecord(requestOpts)) {
+ return;
+ }
+ const url2 = new URL(requestOpts.path, requestOpts.origin).toString();
+ if (this.#isUrlExcluded(url2)) {
+ return;
+ }
+ const request2 = formatRequestKey(requestOpts, this.#headerFilters, this.matchOptions);
+ const hash = createRequestHash(request2);
+ const normalizedHeaders = normalizeHeaders(response.headers);
+ const responseData = {
+ statusCode: response.statusCode,
+ headers: filterHeadersForStorage(normalizedHeaders, this.#headerFilters, this.matchOptions),
+ body: Buffer.isBuffer(response.body) ? response.body.toString("base64") : Buffer.from(String(response.body || "")).toString("base64"),
+ trailers: response.trailers
+ };
+ if (this.#snapshots.size >= this.#maxSnapshots && !this.#snapshots.has(hash)) {
+ const oldestKey = this.#snapshots.keys().next().value;
+ this.#snapshots.delete(oldestKey);
+ }
+ const existingSnapshot = this.#snapshots.get(hash);
+ if (existingSnapshot && existingSnapshot.responses) {
+ existingSnapshot.responses.push(responseData);
+ existingSnapshot.timestamp = (/* @__PURE__ */ new Date()).toISOString();
+ } else {
+ this.#snapshots.set(hash, {
+ request: request2,
+ responses: [responseData],
+ // Always store as array for consistency
+ callCount: 0,
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
+ });
+ }
+ if (this.#autoFlush && this.#snapshotPath) {
+ this.#scheduleFlush();
+ }
+ }
+ /**
+ * Finds a matching snapshot for the given request
+ * Returns the appropriate response based on call count for sequential responses
+ *
+ * @param {SnapshotRequestOptions} requestOpts - Request options to match
+ * @returns {SnapshotEntry&Record<'response', SnapshotEntryResponse>|undefined} - Matching snapshot response or undefined if not found
+ */
+ findSnapshot(requestOpts) {
+ if (!this.shouldPlayback(requestOpts)) {
+ return void 0;
+ }
+ const url2 = new URL(requestOpts.path, requestOpts.origin).toString();
+ if (this.#isUrlExcluded(url2)) {
+ return void 0;
+ }
+ const request2 = formatRequestKey(requestOpts, this.#headerFilters, this.matchOptions);
+ const hash = createRequestHash(request2);
+ const snapshot2 = this.#snapshots.get(hash);
+ if (!snapshot2) return void 0;
+ const currentCallCount = snapshot2.callCount || 0;
+ const responseIndex = Math.min(currentCallCount, snapshot2.responses.length - 1);
+ snapshot2.callCount = currentCallCount + 1;
+ return {
+ ...snapshot2,
+ response: snapshot2.responses[responseIndex]
+ };
+ }
+ /**
+ * Loads snapshots from file
+ * @param {string} [filePath] - Optional file path to load snapshots from
+ * @return {Promise} - Resolves when snapshots are loaded
+ */
+ async loadSnapshots(filePath) {
+ const path3 = filePath || this.#snapshotPath;
+ if (!path3) {
+ throw new InvalidArgumentError("Snapshot path is required");
+ }
+ try {
+ const data = await readFile(resolve(path3), "utf8");
+ const parsed2 = JSON.parse(data);
+ if (Array.isArray(parsed2)) {
+ this.#snapshots.clear();
+ for (const { hash, snapshot: snapshot2 } of parsed2) {
+ this.#snapshots.set(hash, snapshot2);
+ }
+ } else {
+ this.#snapshots = new Map(Object.entries(parsed2));
+ }
+ } catch (error41) {
+ if (error41.code === "ENOENT") {
+ this.#snapshots.clear();
+ } else {
+ throw new UndiciError(`Failed to load snapshots from ${path3}`, { cause: error41 });
+ }
+ }
+ }
+ /**
+ * Saves snapshots to file
+ *
+ * @param {string} [filePath] - Optional file path to save snapshots
+ * @returns {Promise} - Resolves when snapshots are saved
+ */
+ async saveSnapshots(filePath) {
+ const path3 = filePath || this.#snapshotPath;
+ if (!path3) {
+ throw new InvalidArgumentError("Snapshot path is required");
+ }
+ const resolvedPath = resolve(path3);
+ await mkdir(dirname2(resolvedPath), { recursive: true });
+ const data = Array.from(this.#snapshots.entries()).map(([hash, snapshot2]) => ({
+ hash,
+ snapshot: snapshot2
+ }));
+ await writeFile2(resolvedPath, JSON.stringify(data, null, 2), { flush: true });
+ }
+ /**
+ * Clears all recorded snapshots
+ * @returns {void}
+ */
+ clear() {
+ this.#snapshots.clear();
+ }
+ /**
+ * Gets all recorded snapshots
+ * @return {Array} - Array of all recorded snapshots
+ */
+ getSnapshots() {
+ return Array.from(this.#snapshots.values());
+ }
+ /**
+ * Gets snapshot count
+ * @return {number} - Number of recorded snapshots
+ */
+ size() {
+ return this.#snapshots.size;
+ }
+ /**
+ * Resets call counts for all snapshots (useful for test cleanup)
+ * @returns {void}
+ */
+ resetCallCounts() {
+ for (const snapshot2 of this.#snapshots.values()) {
+ snapshot2.callCount = 0;
+ }
+ }
+ /**
+ * Deletes a specific snapshot by request options
+ * @param {SnapshotRequestOptions} requestOpts - Request options to match
+ * @returns {boolean} - True if snapshot was deleted, false if not found
+ */
+ deleteSnapshot(requestOpts) {
+ const request2 = formatRequestKey(requestOpts, this.#headerFilters, this.matchOptions);
+ const hash = createRequestHash(request2);
+ return this.#snapshots.delete(hash);
+ }
+ /**
+ * Gets information about a specific snapshot
+ * @param {SnapshotRequestOptions} requestOpts - Request options to match
+ * @returns {SnapshotInfo|null} - Snapshot information or null if not found
+ */
+ getSnapshotInfo(requestOpts) {
+ const request2 = formatRequestKey(requestOpts, this.#headerFilters, this.matchOptions);
+ const hash = createRequestHash(request2);
+ const snapshot2 = this.#snapshots.get(hash);
+ if (!snapshot2) return null;
+ return {
+ hash,
+ request: snapshot2.request,
+ responseCount: snapshot2.responses ? snapshot2.responses.length : snapshot2.response ? 1 : 0,
+ // .response for legacy snapshots
+ callCount: snapshot2.callCount || 0,
+ timestamp: snapshot2.timestamp
+ };
+ }
+ /**
+ * Replaces all snapshots with new data (full replacement)
+ * @param {Array<{hash: string; snapshot: SnapshotEntry}>|Record} snapshotData - New snapshot data to replace existing ones
+ * @returns {void}
+ */
+ replaceSnapshots(snapshotData) {
+ this.#snapshots.clear();
+ if (Array.isArray(snapshotData)) {
+ for (const { hash, snapshot: snapshot2 } of snapshotData) {
+ this.#snapshots.set(hash, snapshot2);
+ }
+ } else if (snapshotData && typeof snapshotData === "object") {
+ this.#snapshots = new Map(Object.entries(snapshotData));
+ }
+ }
+ /**
+ * Starts the auto-flush timer
+ * @returns {void}
+ */
+ #startAutoFlush() {
+ return this.#scheduleFlush();
+ }
+ /**
+ * Stops the auto-flush timer
+ * @returns {void}
+ */
+ #stopAutoFlush() {
+ if (this.#flushTimeout) {
+ clearTimeout2(this.#flushTimeout);
+ this.saveSnapshots().catch(() => {
+ });
+ this.#flushTimeout = null;
+ }
+ }
+ /**
+ * Schedules a flush (debounced to avoid excessive writes)
+ */
+ #scheduleFlush() {
+ this.#flushTimeout = setTimeout2(() => {
+ this.saveSnapshots().catch(() => {
+ });
+ if (this.#autoFlush) {
+ this.#flushTimeout?.refresh();
+ } else {
+ this.#flushTimeout = null;
+ }
+ }, 1e3);
+ }
+ /**
+ * Cleanup method to stop timers
+ * @returns {void}
+ */
+ destroy() {
+ this.#stopAutoFlush();
+ if (this.#flushTimeout) {
+ clearTimeout2(this.#flushTimeout);
+ this.#flushTimeout = null;
+ }
+ }
+ /**
+ * Async close method that saves all recordings and performs cleanup
+ * @returns {Promise}
+ */
+ async close() {
+ if (this.#snapshotPath && this.#snapshots.size !== 0) {
+ await this.saveSnapshots();
+ }
+ this.destroy();
+ }
+ };
+ module.exports = { SnapshotRecorder, formatRequestKey, createRequestHash, filterHeadersForMatching, filterHeadersForStorage, createHeaderFilters };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/snapshot-agent.js
+var require_snapshot_agent = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/mock/snapshot-agent.js"(exports, module) {
+ "use strict";
+ var Agent = require_agent2();
+ var MockAgent = require_mock_agent2();
+ var { SnapshotRecorder } = require_snapshot_recorder();
+ var WrapHandler = require_wrap_handler();
+ var { InvalidArgumentError, UndiciError } = require_errors2();
+ var { validateSnapshotMode } = require_snapshot_utils();
+ var kSnapshotRecorder = Symbol("kSnapshotRecorder");
+ var kSnapshotMode = Symbol("kSnapshotMode");
+ var kSnapshotPath = Symbol("kSnapshotPath");
+ var kSnapshotLoaded = Symbol("kSnapshotLoaded");
+ var kRealAgent = Symbol("kRealAgent");
+ var warningEmitted = false;
+ var SnapshotAgent = class extends MockAgent {
+ constructor(opts = {}) {
+ if (!warningEmitted) {
+ process.emitWarning(
+ "SnapshotAgent is experimental and subject to change",
+ "ExperimentalWarning"
+ );
+ warningEmitted = true;
+ }
+ const {
+ mode = "record",
+ snapshotPath = null,
+ ...mockAgentOpts
+ } = opts;
+ super(mockAgentOpts);
+ validateSnapshotMode(mode);
+ if ((mode === "playback" || mode === "update") && !snapshotPath) {
+ throw new InvalidArgumentError(`snapshotPath is required when mode is '${mode}'`);
+ }
+ this[kSnapshotMode] = mode;
+ this[kSnapshotPath] = snapshotPath;
+ this[kSnapshotRecorder] = new SnapshotRecorder({
+ snapshotPath: this[kSnapshotPath],
+ mode: this[kSnapshotMode],
+ maxSnapshots: opts.maxSnapshots,
+ autoFlush: opts.autoFlush,
+ flushInterval: opts.flushInterval,
+ matchHeaders: opts.matchHeaders,
+ ignoreHeaders: opts.ignoreHeaders,
+ excludeHeaders: opts.excludeHeaders,
+ matchBody: opts.matchBody,
+ matchQuery: opts.matchQuery,
+ caseSensitive: opts.caseSensitive,
+ shouldRecord: opts.shouldRecord,
+ shouldPlayback: opts.shouldPlayback,
+ excludeUrls: opts.excludeUrls
+ });
+ this[kSnapshotLoaded] = false;
+ if (this[kSnapshotMode] === "record" || this[kSnapshotMode] === "update") {
+ this[kRealAgent] = new Agent(opts);
+ }
+ if ((this[kSnapshotMode] === "playback" || this[kSnapshotMode] === "update") && this[kSnapshotPath]) {
+ this.loadSnapshots().catch(() => {
+ });
+ }
+ }
+ dispatch(opts, handler2) {
+ handler2 = WrapHandler.wrap(handler2);
+ const mode = this[kSnapshotMode];
+ if (mode === "playback" || mode === "update") {
+ if (!this[kSnapshotLoaded]) {
+ return this.#asyncDispatch(opts, handler2);
+ }
+ const snapshot2 = this[kSnapshotRecorder].findSnapshot(opts);
+ if (snapshot2) {
+ return this.#replaySnapshot(snapshot2, handler2);
+ } else if (mode === "update") {
+ return this.#recordAndReplay(opts, handler2);
+ } else {
+ const error41 = new UndiciError(`No snapshot found for ${opts.method || "GET"} ${opts.path}`);
+ if (handler2.onError) {
+ handler2.onError(error41);
+ return;
+ }
+ throw error41;
+ }
+ } else if (mode === "record") {
+ return this.#recordAndReplay(opts, handler2);
+ }
+ }
+ /**
+ * Async version of dispatch for when we need to load snapshots first
+ */
+ async #asyncDispatch(opts, handler2) {
+ await this.loadSnapshots();
+ return this.dispatch(opts, handler2);
+ }
+ /**
+ * Records a real request and replays the response
+ */
+ #recordAndReplay(opts, handler2) {
+ const responseData = {
+ statusCode: null,
+ headers: {},
+ trailers: {},
+ body: []
+ };
+ const self2 = this;
+ const recordingHandler = {
+ onRequestStart(controller, context) {
+ return handler2.onRequestStart(controller, { ...context, history: this.history });
+ },
+ onRequestUpgrade(controller, statusCode, headers, socket) {
+ return handler2.onRequestUpgrade(controller, statusCode, headers, socket);
+ },
+ onResponseStart(controller, statusCode, headers, statusMessage) {
+ responseData.statusCode = statusCode;
+ responseData.headers = headers;
+ return handler2.onResponseStart(controller, statusCode, headers, statusMessage);
+ },
+ onResponseData(controller, chunk) {
+ responseData.body.push(chunk);
+ return handler2.onResponseData(controller, chunk);
+ },
+ onResponseEnd(controller, trailers) {
+ responseData.trailers = trailers;
+ const responseBody = Buffer.concat(responseData.body);
+ self2[kSnapshotRecorder].record(opts, {
+ statusCode: responseData.statusCode,
+ headers: responseData.headers,
+ body: responseBody,
+ trailers: responseData.trailers
+ }).then(() => {
+ handler2.onResponseEnd(controller, trailers);
+ }).catch((error41) => {
+ handler2.onResponseError(controller, error41);
+ });
+ }
+ };
+ const agent2 = this[kRealAgent];
+ return agent2.dispatch(opts, recordingHandler);
+ }
+ /**
+ * Replays a recorded response
+ *
+ * @param {Object} snapshot - The recorded snapshot to replay.
+ * @param {Object} handler - The handler to call with the response data.
+ * @returns {void}
+ */
+ #replaySnapshot(snapshot2, handler2) {
+ try {
+ const { response } = snapshot2;
+ const controller = {
+ pause() {
+ },
+ resume() {
+ },
+ abort(reason) {
+ this.aborted = true;
+ this.reason = reason;
+ },
+ aborted: false,
+ paused: false
+ };
+ handler2.onRequestStart(controller);
+ handler2.onResponseStart(controller, response.statusCode, response.headers);
+ const body = Buffer.from(response.body, "base64");
+ handler2.onResponseData(controller, body);
+ handler2.onResponseEnd(controller, response.trailers);
+ } catch (error41) {
+ handler2.onError?.(error41);
+ }
+ }
+ /**
+ * Loads snapshots from file
+ *
+ * @param {string} [filePath] - Optional file path to load snapshots from.
+ * @returns {Promise} - Resolves when snapshots are loaded.
+ */
+ async loadSnapshots(filePath) {
+ await this[kSnapshotRecorder].loadSnapshots(filePath || this[kSnapshotPath]);
+ this[kSnapshotLoaded] = true;
+ if (this[kSnapshotMode] === "playback") {
+ this.#setupMockInterceptors();
+ }
+ }
+ /**
+ * Saves snapshots to file
+ *
+ * @param {string} [filePath] - Optional file path to save snapshots to.
+ * @returns {Promise} - Resolves when snapshots are saved.
+ */
+ async saveSnapshots(filePath) {
+ return this[kSnapshotRecorder].saveSnapshots(filePath || this[kSnapshotPath]);
+ }
+ /**
+ * Sets up MockAgent interceptors based on recorded snapshots.
+ *
+ * This method creates MockAgent interceptors for each recorded snapshot,
+ * allowing the SnapshotAgent to fall back to MockAgent's standard intercept
+ * mechanism in playback mode. Each interceptor is configured to persist
+ * (remain active for multiple requests) and responds with the recorded
+ * response data.
+ *
+ * Called automatically when loading snapshots in playback mode.
+ *
+ * @returns {void}
+ */
+ #setupMockInterceptors() {
+ for (const snapshot2 of this[kSnapshotRecorder].getSnapshots()) {
+ const { request: request2, responses, response } = snapshot2;
+ const url2 = new URL(request2.url);
+ const mockPool = this.get(url2.origin);
+ const responseData = responses ? responses[0] : response;
+ if (!responseData) continue;
+ mockPool.intercept({
+ path: url2.pathname + url2.search,
+ method: request2.method,
+ headers: request2.headers,
+ body: request2.body
+ }).reply(responseData.statusCode, responseData.body, {
+ headers: responseData.headers,
+ trailers: responseData.trailers
+ }).persist();
+ }
+ }
+ /**
+ * Gets the snapshot recorder
+ * @return {SnapshotRecorder} - The snapshot recorder instance
+ */
+ getRecorder() {
+ return this[kSnapshotRecorder];
+ }
+ /**
+ * Gets the current mode
+ * @return {import('./snapshot-utils').SnapshotMode} - The current snapshot mode
+ */
+ getMode() {
+ return this[kSnapshotMode];
+ }
+ /**
+ * Clears all snapshots
+ * @returns {void}
+ */
+ clearSnapshots() {
+ this[kSnapshotRecorder].clear();
+ }
+ /**
+ * Resets call counts for all snapshots (useful for test cleanup)
+ * @returns {void}
+ */
+ resetCallCounts() {
+ this[kSnapshotRecorder].resetCallCounts();
+ }
+ /**
+ * Deletes a specific snapshot by request options
+ * @param {import('./snapshot-recorder').SnapshotRequestOptions} requestOpts - Request options to identify the snapshot
+ * @return {Promise} - Returns true if the snapshot was deleted, false if not found
+ */
+ deleteSnapshot(requestOpts) {
+ return this[kSnapshotRecorder].deleteSnapshot(requestOpts);
+ }
+ /**
+ * Gets information about a specific snapshot
+ * @returns {import('./snapshot-recorder').SnapshotInfo|null} - Snapshot information or null if not found
+ */
+ getSnapshotInfo(requestOpts) {
+ return this[kSnapshotRecorder].getSnapshotInfo(requestOpts);
+ }
+ /**
+ * Replaces all snapshots with new data (full replacement)
+ * @param {Array<{hash: string; snapshot: import('./snapshot-recorder').SnapshotEntryshotEntry}>|Record} snapshotData - New snapshot data to replace existing snapshots
+ * @returns {void}
+ */
+ replaceSnapshots(snapshotData) {
+ this[kSnapshotRecorder].replaceSnapshots(snapshotData);
+ }
+ /**
+ * Closes the agent, saving snapshots and cleaning up resources.
+ *
+ * @returns {Promise}
+ */
+ async close() {
+ await this[kSnapshotRecorder].close();
+ await this[kRealAgent]?.close();
+ await super.close();
+ }
+ };
+ module.exports = SnapshotAgent;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/global.js
+var require_global4 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/global.js"(exports, module) {
+ "use strict";
+ var globalDispatcher = Symbol.for("undici.globalDispatcher.1");
+ var { InvalidArgumentError } = require_errors2();
+ var Agent = require_agent2();
+ if (getGlobalDispatcher() === void 0) {
+ setGlobalDispatcher(new Agent());
+ }
+ function setGlobalDispatcher(agent2) {
+ if (!agent2 || typeof agent2.dispatch !== "function") {
+ throw new InvalidArgumentError("Argument agent must implement Agent");
+ }
+ Object.defineProperty(globalThis, globalDispatcher, {
+ value: agent2,
+ writable: true,
+ enumerable: false,
+ configurable: false
+ });
+ }
+ function getGlobalDispatcher() {
+ return globalThis[globalDispatcher];
+ }
+ var installedExports = (
+ /** @type {const} */
+ [
+ "fetch",
+ "Headers",
+ "Response",
+ "Request",
+ "FormData",
+ "WebSocket",
+ "CloseEvent",
+ "ErrorEvent",
+ "MessageEvent",
+ "EventSource"
+ ]
+ );
+ module.exports = {
+ setGlobalDispatcher,
+ getGlobalDispatcher,
+ installedExports
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/decorator-handler.js
+var require_decorator_handler = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/decorator-handler.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var WrapHandler = require_wrap_handler();
+ module.exports = class DecoratorHandler {
+ #handler;
+ #onCompleteCalled = false;
+ #onErrorCalled = false;
+ #onResponseStartCalled = false;
+ constructor(handler2) {
+ if (typeof handler2 !== "object" || handler2 === null) {
+ throw new TypeError("handler must be an object");
+ }
+ this.#handler = WrapHandler.wrap(handler2);
+ }
+ onRequestStart(...args2) {
+ this.#handler.onRequestStart?.(...args2);
+ }
+ onRequestUpgrade(...args2) {
+ assert2(!this.#onCompleteCalled);
+ assert2(!this.#onErrorCalled);
+ return this.#handler.onRequestUpgrade?.(...args2);
+ }
+ onResponseStart(...args2) {
+ assert2(!this.#onCompleteCalled);
+ assert2(!this.#onErrorCalled);
+ assert2(!this.#onResponseStartCalled);
+ this.#onResponseStartCalled = true;
+ return this.#handler.onResponseStart?.(...args2);
+ }
+ onResponseData(...args2) {
+ assert2(!this.#onCompleteCalled);
+ assert2(!this.#onErrorCalled);
+ return this.#handler.onResponseData?.(...args2);
+ }
+ onResponseEnd(...args2) {
+ assert2(!this.#onCompleteCalled);
+ assert2(!this.#onErrorCalled);
+ this.#onCompleteCalled = true;
+ return this.#handler.onResponseEnd?.(...args2);
+ }
+ onResponseError(...args2) {
+ this.#onErrorCalled = true;
+ return this.#handler.onResponseError?.(...args2);
+ }
+ /**
+ * @deprecated
+ */
+ onBodySent() {
+ }
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/redirect-handler.js
+var require_redirect_handler = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/redirect-handler.js"(exports, module) {
+ "use strict";
+ var util3 = require_util11();
+ var { kBodyUsed } = require_symbols6();
+ var assert2 = __require("node:assert");
+ var { InvalidArgumentError } = require_errors2();
+ var EE = __require("node:events");
+ var redirectableStatusCodes = [300, 301, 302, 303, 307, 308];
+ var kBody = Symbol("body");
+ var noop3 = () => {
+ };
+ var BodyAsyncIterable = class {
+ constructor(body) {
+ this[kBody] = body;
+ this[kBodyUsed] = false;
+ }
+ async *[Symbol.asyncIterator]() {
+ assert2(!this[kBodyUsed], "disturbed");
+ this[kBodyUsed] = true;
+ yield* this[kBody];
+ }
+ };
+ var RedirectHandler = class _RedirectHandler {
+ static buildDispatch(dispatcher, maxRedirections) {
+ if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {
+ throw new InvalidArgumentError("maxRedirections must be a positive number");
+ }
+ const dispatch = dispatcher.dispatch.bind(dispatcher);
+ return (opts, originalHandler) => dispatch(opts, new _RedirectHandler(dispatch, maxRedirections, opts, originalHandler));
+ }
+ constructor(dispatch, maxRedirections, opts, handler2) {
+ if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {
+ throw new InvalidArgumentError("maxRedirections must be a positive number");
+ }
+ this.dispatch = dispatch;
+ this.location = null;
+ const { maxRedirections: _, ...cleanOpts } = opts;
+ this.opts = cleanOpts;
+ this.maxRedirections = maxRedirections;
+ this.handler = handler2;
+ this.history = [];
+ if (util3.isStream(this.opts.body)) {
+ if (util3.bodyLength(this.opts.body) === 0) {
+ this.opts.body.on("data", function() {
+ assert2(false);
+ });
+ }
+ if (typeof this.opts.body.readableDidRead !== "boolean") {
+ this.opts.body[kBodyUsed] = false;
+ EE.prototype.on.call(this.opts.body, "data", function() {
+ this[kBodyUsed] = true;
+ });
+ }
+ } else if (this.opts.body && typeof this.opts.body.pipeTo === "function") {
+ this.opts.body = new BodyAsyncIterable(this.opts.body);
+ } else if (this.opts.body && typeof this.opts.body !== "string" && !ArrayBuffer.isView(this.opts.body) && util3.isIterable(this.opts.body) && !util3.isFormDataLike(this.opts.body)) {
+ this.opts.body = new BodyAsyncIterable(this.opts.body);
+ }
+ }
+ onRequestStart(controller, context) {
+ this.handler.onRequestStart?.(controller, { ...context, history: this.history });
+ }
+ onRequestUpgrade(controller, statusCode, headers, socket) {
+ this.handler.onRequestUpgrade?.(controller, statusCode, headers, socket);
+ }
+ onResponseStart(controller, statusCode, headers, statusMessage) {
+ if (this.opts.throwOnMaxRedirect && this.history.length >= this.maxRedirections) {
+ throw new Error("max redirects");
+ }
+ if ((statusCode === 301 || statusCode === 302) && this.opts.method === "POST") {
+ this.opts.method = "GET";
+ if (util3.isStream(this.opts.body)) {
+ util3.destroy(this.opts.body.on("error", noop3));
+ }
+ this.opts.body = null;
+ }
+ if (statusCode === 303 && this.opts.method !== "HEAD") {
+ this.opts.method = "GET";
+ if (util3.isStream(this.opts.body)) {
+ util3.destroy(this.opts.body.on("error", noop3));
+ }
+ this.opts.body = null;
+ }
+ this.location = this.history.length >= this.maxRedirections || util3.isDisturbed(this.opts.body) || redirectableStatusCodes.indexOf(statusCode) === -1 ? null : headers.location;
+ if (this.opts.origin) {
+ this.history.push(new URL(this.opts.path, this.opts.origin));
+ }
+ if (!this.location) {
+ this.handler.onResponseStart?.(controller, statusCode, headers, statusMessage);
+ return;
+ }
+ const { origin, pathname, search: search2 } = util3.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
+ const path3 = search2 ? `${pathname}${search2}` : pathname;
+ const redirectUrlString = `${origin}${path3}`;
+ for (const historyUrl of this.history) {
+ if (historyUrl.toString() === redirectUrlString) {
+ throw new InvalidArgumentError(`Redirect loop detected. Cannot redirect to ${origin}. This typically happens when using a Client or Pool with cross-origin redirects. Use an Agent for cross-origin redirects.`);
+ }
+ }
+ this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin);
+ this.opts.path = path3;
+ this.opts.origin = origin;
+ this.opts.query = null;
+ }
+ onResponseData(controller, chunk) {
+ if (this.location) {
+ } else {
+ this.handler.onResponseData?.(controller, chunk);
+ }
+ }
+ onResponseEnd(controller, trailers) {
+ if (this.location) {
+ this.dispatch(this.opts, this);
+ } else {
+ this.handler.onResponseEnd(controller, trailers);
+ }
+ }
+ onResponseError(controller, error41) {
+ this.handler.onResponseError?.(controller, error41);
+ }
+ };
+ function shouldRemoveHeader(header, removeContent, unknownOrigin) {
+ if (header.length === 4) {
+ return util3.headerNameToString(header) === "host";
+ }
+ if (removeContent && util3.headerNameToString(header).startsWith("content-")) {
+ return true;
+ }
+ if (unknownOrigin && (header.length === 13 || header.length === 6 || header.length === 19)) {
+ const name = util3.headerNameToString(header);
+ return name === "authorization" || name === "cookie" || name === "proxy-authorization";
+ }
+ return false;
+ }
+ function cleanRequestHeaders(headers, removeContent, unknownOrigin) {
+ const ret = [];
+ if (Array.isArray(headers)) {
+ for (let i = 0; i < headers.length; i += 2) {
+ if (!shouldRemoveHeader(headers[i], removeContent, unknownOrigin)) {
+ ret.push(headers[i], headers[i + 1]);
+ }
+ }
+ } else if (headers && typeof headers === "object") {
+ const entries = typeof headers[Symbol.iterator] === "function" ? headers : Object.entries(headers);
+ for (const [key, value2] of entries) {
+ if (!shouldRemoveHeader(key, removeContent, unknownOrigin)) {
+ ret.push(key, value2);
+ }
+ }
+ } else {
+ assert2(headers == null, "headers must be an object or an array");
+ }
+ return ret;
+ }
+ module.exports = RedirectHandler;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/redirect.js
+var require_redirect = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/redirect.js"(exports, module) {
+ "use strict";
+ var RedirectHandler = require_redirect_handler();
+ function createRedirectInterceptor({ maxRedirections: defaultMaxRedirections } = {}) {
+ return (dispatch) => {
+ return function Intercept(opts, handler2) {
+ const { maxRedirections = defaultMaxRedirections, ...rest } = opts;
+ if (maxRedirections == null || maxRedirections === 0) {
+ return dispatch(opts, handler2);
+ }
+ const dispatchOpts = { ...rest };
+ const redirectHandler = new RedirectHandler(dispatch, maxRedirections, dispatchOpts, handler2);
+ return dispatch(dispatchOpts, redirectHandler);
+ };
+ };
+ }
+ module.exports = createRedirectInterceptor;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/response-error.js
+var require_response_error = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/response-error.js"(exports, module) {
+ "use strict";
+ var DecoratorHandler = require_decorator_handler();
+ var { ResponseError } = require_errors2();
+ var ResponseErrorHandler = class extends DecoratorHandler {
+ #statusCode;
+ #contentType;
+ #decoder;
+ #headers;
+ #body;
+ constructor(_opts, { handler: handler2 }) {
+ super(handler2);
+ }
+ #checkContentType(contentType) {
+ return (this.#contentType ?? "").indexOf(contentType) === 0;
+ }
+ onRequestStart(controller, context) {
+ this.#statusCode = 0;
+ this.#contentType = null;
+ this.#decoder = null;
+ this.#headers = null;
+ this.#body = "";
+ return super.onRequestStart(controller, context);
+ }
+ onResponseStart(controller, statusCode, headers, statusMessage) {
+ this.#statusCode = statusCode;
+ this.#headers = headers;
+ this.#contentType = headers["content-type"];
+ if (this.#statusCode < 400) {
+ return super.onResponseStart(controller, statusCode, headers, statusMessage);
+ }
+ if (this.#checkContentType("application/json") || this.#checkContentType("text/plain")) {
+ this.#decoder = new TextDecoder("utf-8");
+ }
+ }
+ onResponseData(controller, chunk) {
+ if (this.#statusCode < 400) {
+ return super.onResponseData(controller, chunk);
+ }
+ this.#body += this.#decoder?.decode(chunk, { stream: true }) ?? "";
+ }
+ onResponseEnd(controller, trailers) {
+ if (this.#statusCode >= 400) {
+ this.#body += this.#decoder?.decode(void 0, { stream: false }) ?? "";
+ if (this.#checkContentType("application/json")) {
+ try {
+ this.#body = JSON.parse(this.#body);
+ } catch {
+ }
+ }
+ let err;
+ const stackTraceLimit = Error.stackTraceLimit;
+ Error.stackTraceLimit = 0;
+ try {
+ err = new ResponseError("Response Error", this.#statusCode, {
+ body: this.#body,
+ headers: this.#headers
+ });
+ } finally {
+ Error.stackTraceLimit = stackTraceLimit;
+ }
+ super.onResponseError(controller, err);
+ } else {
+ super.onResponseEnd(controller, trailers);
+ }
+ }
+ onResponseError(controller, err) {
+ super.onResponseError(controller, err);
+ }
+ };
+ module.exports = () => {
+ return (dispatch) => {
+ return function Intercept(opts, handler2) {
+ return dispatch(opts, new ResponseErrorHandler(opts, { handler: handler2 }));
+ };
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/retry.js
+var require_retry = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/retry.js"(exports, module) {
+ "use strict";
+ var RetryHandler = require_retry_handler();
+ module.exports = (globalOpts) => {
+ return (dispatch) => {
+ return function retryInterceptor(opts, handler2) {
+ return dispatch(
+ opts,
+ new RetryHandler(
+ { ...opts, retryOptions: { ...globalOpts, ...opts.retryOptions } },
+ {
+ handler: handler2,
+ dispatch
+ }
+ )
+ );
+ };
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/dump.js
+var require_dump = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/dump.js"(exports, module) {
+ "use strict";
+ var { InvalidArgumentError, RequestAbortedError } = require_errors2();
+ var DecoratorHandler = require_decorator_handler();
+ var DumpHandler = class extends DecoratorHandler {
+ #maxSize = 1024 * 1024;
+ #dumped = false;
+ #size = 0;
+ #controller = null;
+ aborted = false;
+ reason = false;
+ constructor({ maxSize, signal }, handler2) {
+ if (maxSize != null && (!Number.isFinite(maxSize) || maxSize < 1)) {
+ throw new InvalidArgumentError("maxSize must be a number greater than 0");
+ }
+ super(handler2);
+ this.#maxSize = maxSize ?? this.#maxSize;
+ }
+ #abort(reason) {
+ this.aborted = true;
+ this.reason = reason;
+ }
+ onRequestStart(controller, context) {
+ controller.abort = this.#abort.bind(this);
+ this.#controller = controller;
+ return super.onRequestStart(controller, context);
+ }
+ onResponseStart(controller, statusCode, headers, statusMessage) {
+ const contentLength = headers["content-length"];
+ if (contentLength != null && contentLength > this.#maxSize) {
+ throw new RequestAbortedError(
+ `Response size (${contentLength}) larger than maxSize (${this.#maxSize})`
+ );
+ }
+ if (this.aborted === true) {
+ return true;
+ }
+ return super.onResponseStart(controller, statusCode, headers, statusMessage);
+ }
+ onResponseError(controller, err) {
+ if (this.#dumped) {
+ return;
+ }
+ err = this.#controller?.reason ?? err;
+ super.onResponseError(controller, err);
+ }
+ onResponseData(controller, chunk) {
+ this.#size = this.#size + chunk.length;
+ if (this.#size >= this.#maxSize) {
+ this.#dumped = true;
+ if (this.aborted === true) {
+ super.onResponseError(controller, this.reason);
+ } else {
+ super.onResponseEnd(controller, {});
+ }
+ }
+ return true;
+ }
+ onResponseEnd(controller, trailers) {
+ if (this.#dumped) {
+ return;
+ }
+ if (this.#controller.aborted === true) {
+ super.onResponseError(controller, this.reason);
+ return;
+ }
+ super.onResponseEnd(controller, trailers);
+ }
+ };
+ function createDumpInterceptor({ maxSize: defaultMaxSize } = {
+ maxSize: 1024 * 1024
+ }) {
+ return (dispatch) => {
+ return function Intercept(opts, handler2) {
+ const { dumpMaxSize = defaultMaxSize } = opts;
+ const dumpHandler = new DumpHandler({ maxSize: dumpMaxSize, signal: opts.signal }, handler2);
+ return dispatch(opts, dumpHandler);
+ };
+ };
+ }
+ module.exports = createDumpInterceptor;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/dns.js
+var require_dns = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/dns.js"(exports, module) {
+ "use strict";
+ var { isIP } = __require("node:net");
+ var { lookup } = __require("node:dns");
+ var DecoratorHandler = require_decorator_handler();
+ var { InvalidArgumentError, InformationalError } = require_errors2();
+ var maxInt = Math.pow(2, 31) - 1;
+ var DNSInstance = class {
+ #maxTTL = 0;
+ #maxItems = 0;
+ #records = /* @__PURE__ */ new Map();
+ dualStack = true;
+ affinity = null;
+ lookup = null;
+ pick = null;
+ constructor(opts) {
+ this.#maxTTL = opts.maxTTL;
+ this.#maxItems = opts.maxItems;
+ this.dualStack = opts.dualStack;
+ this.affinity = opts.affinity;
+ this.lookup = opts.lookup ?? this.#defaultLookup;
+ this.pick = opts.pick ?? this.#defaultPick;
+ }
+ get full() {
+ return this.#records.size === this.#maxItems;
+ }
+ runLookup(origin, opts, cb) {
+ const ips = this.#records.get(origin.hostname);
+ if (ips == null && this.full) {
+ cb(null, origin);
+ return;
+ }
+ const newOpts = {
+ affinity: this.affinity,
+ dualStack: this.dualStack,
+ lookup: this.lookup,
+ pick: this.pick,
+ ...opts.dns,
+ maxTTL: this.#maxTTL,
+ maxItems: this.#maxItems
+ };
+ if (ips == null) {
+ this.lookup(origin, newOpts, (err, addresses) => {
+ if (err || addresses == null || addresses.length === 0) {
+ cb(err ?? new InformationalError("No DNS entries found"));
+ return;
+ }
+ this.setRecords(origin, addresses);
+ const records = this.#records.get(origin.hostname);
+ const ip2 = this.pick(
+ origin,
+ records,
+ newOpts.affinity
+ );
+ let port;
+ if (typeof ip2.port === "number") {
+ port = `:${ip2.port}`;
+ } else if (origin.port !== "") {
+ port = `:${origin.port}`;
+ } else {
+ port = "";
+ }
+ cb(
+ null,
+ new URL(`${origin.protocol}//${ip2.family === 6 ? `[${ip2.address}]` : ip2.address}${port}`)
+ );
+ });
+ } else {
+ const ip2 = this.pick(
+ origin,
+ ips,
+ newOpts.affinity
+ );
+ if (ip2 == null) {
+ this.#records.delete(origin.hostname);
+ this.runLookup(origin, opts, cb);
+ return;
+ }
+ let port;
+ if (typeof ip2.port === "number") {
+ port = `:${ip2.port}`;
+ } else if (origin.port !== "") {
+ port = `:${origin.port}`;
+ } else {
+ port = "";
+ }
+ cb(
+ null,
+ new URL(`${origin.protocol}//${ip2.family === 6 ? `[${ip2.address}]` : ip2.address}${port}`)
+ );
+ }
+ }
+ #defaultLookup(origin, opts, cb) {
+ lookup(
+ origin.hostname,
+ {
+ all: true,
+ family: this.dualStack === false ? this.affinity : 0,
+ order: "ipv4first"
+ },
+ (err, addresses) => {
+ if (err) {
+ return cb(err);
+ }
+ const results = /* @__PURE__ */ new Map();
+ for (const addr of addresses) {
+ results.set(`${addr.address}:${addr.family}`, addr);
+ }
+ cb(null, results.values());
+ }
+ );
+ }
+ #defaultPick(origin, hostnameRecords, affinity) {
+ let ip2 = null;
+ const { records, offset } = hostnameRecords;
+ let family;
+ if (this.dualStack) {
+ if (affinity == null) {
+ if (offset == null || offset === maxInt) {
+ hostnameRecords.offset = 0;
+ affinity = 4;
+ } else {
+ hostnameRecords.offset++;
+ affinity = (hostnameRecords.offset & 1) === 1 ? 6 : 4;
+ }
+ }
+ if (records[affinity] != null && records[affinity].ips.length > 0) {
+ family = records[affinity];
+ } else {
+ family = records[affinity === 4 ? 6 : 4];
+ }
+ } else {
+ family = records[affinity];
+ }
+ if (family == null || family.ips.length === 0) {
+ return ip2;
+ }
+ if (family.offset == null || family.offset === maxInt) {
+ family.offset = 0;
+ } else {
+ family.offset++;
+ }
+ const position = family.offset % family.ips.length;
+ ip2 = family.ips[position] ?? null;
+ if (ip2 == null) {
+ return ip2;
+ }
+ if (Date.now() - ip2.timestamp > ip2.ttl) {
+ family.ips.splice(position, 1);
+ return this.pick(origin, hostnameRecords, affinity);
+ }
+ return ip2;
+ }
+ pickFamily(origin, ipFamily) {
+ const records = this.#records.get(origin.hostname)?.records;
+ if (!records) {
+ return null;
+ }
+ const family = records[ipFamily];
+ if (!family) {
+ return null;
+ }
+ if (family.offset == null || family.offset === maxInt) {
+ family.offset = 0;
+ } else {
+ family.offset++;
+ }
+ const position = family.offset % family.ips.length;
+ const ip2 = family.ips[position] ?? null;
+ if (ip2 == null) {
+ return ip2;
+ }
+ if (Date.now() - ip2.timestamp > ip2.ttl) {
+ family.ips.splice(position, 1);
+ }
+ return ip2;
+ }
+ setRecords(origin, addresses) {
+ const timestamp = Date.now();
+ const records = { records: { 4: null, 6: null } };
+ for (const record of addresses) {
+ record.timestamp = timestamp;
+ if (typeof record.ttl === "number") {
+ record.ttl = Math.min(record.ttl, this.#maxTTL);
+ } else {
+ record.ttl = this.#maxTTL;
+ }
+ const familyRecords = records.records[record.family] ?? { ips: [] };
+ familyRecords.ips.push(record);
+ records.records[record.family] = familyRecords;
+ }
+ this.#records.set(origin.hostname, records);
+ }
+ deleteRecords(origin) {
+ this.#records.delete(origin.hostname);
+ }
+ getHandler(meta, opts) {
+ return new DNSDispatchHandler(this, meta, opts);
+ }
+ };
+ var DNSDispatchHandler = class extends DecoratorHandler {
+ #state = null;
+ #opts = null;
+ #dispatch = null;
+ #origin = null;
+ #controller = null;
+ #newOrigin = null;
+ #firstTry = true;
+ constructor(state, { origin, handler: handler2, dispatch, newOrigin }, opts) {
+ super(handler2);
+ this.#origin = origin;
+ this.#newOrigin = newOrigin;
+ this.#opts = { ...opts };
+ this.#state = state;
+ this.#dispatch = dispatch;
+ }
+ onResponseError(controller, err) {
+ switch (err.code) {
+ case "ETIMEDOUT":
+ case "ECONNREFUSED": {
+ if (this.#state.dualStack) {
+ if (!this.#firstTry) {
+ super.onResponseError(controller, err);
+ return;
+ }
+ this.#firstTry = false;
+ const otherFamily = this.#newOrigin.hostname[0] === "[" ? 4 : 6;
+ const ip2 = this.#state.pickFamily(this.#origin, otherFamily);
+ if (ip2 == null) {
+ super.onResponseError(controller, err);
+ return;
+ }
+ let port;
+ if (typeof ip2.port === "number") {
+ port = `:${ip2.port}`;
+ } else if (this.#origin.port !== "") {
+ port = `:${this.#origin.port}`;
+ } else {
+ port = "";
+ }
+ const dispatchOpts = {
+ ...this.#opts,
+ origin: `${this.#origin.protocol}//${ip2.family === 6 ? `[${ip2.address}]` : ip2.address}${port}`
+ };
+ this.#dispatch(dispatchOpts, this);
+ return;
+ }
+ super.onResponseError(controller, err);
+ break;
+ }
+ case "ENOTFOUND":
+ this.#state.deleteRecords(this.#origin);
+ super.onResponseError(controller, err);
+ break;
+ default:
+ super.onResponseError(controller, err);
+ break;
+ }
+ }
+ };
+ module.exports = (interceptorOpts) => {
+ if (interceptorOpts?.maxTTL != null && (typeof interceptorOpts?.maxTTL !== "number" || interceptorOpts?.maxTTL < 0)) {
+ throw new InvalidArgumentError("Invalid maxTTL. Must be a positive number");
+ }
+ if (interceptorOpts?.maxItems != null && (typeof interceptorOpts?.maxItems !== "number" || interceptorOpts?.maxItems < 1)) {
+ throw new InvalidArgumentError(
+ "Invalid maxItems. Must be a positive number and greater than zero"
+ );
+ }
+ if (interceptorOpts?.affinity != null && interceptorOpts?.affinity !== 4 && interceptorOpts?.affinity !== 6) {
+ throw new InvalidArgumentError("Invalid affinity. Must be either 4 or 6");
+ }
+ if (interceptorOpts?.dualStack != null && typeof interceptorOpts?.dualStack !== "boolean") {
+ throw new InvalidArgumentError("Invalid dualStack. Must be a boolean");
+ }
+ if (interceptorOpts?.lookup != null && typeof interceptorOpts?.lookup !== "function") {
+ throw new InvalidArgumentError("Invalid lookup. Must be a function");
+ }
+ if (interceptorOpts?.pick != null && typeof interceptorOpts?.pick !== "function") {
+ throw new InvalidArgumentError("Invalid pick. Must be a function");
+ }
+ const dualStack = interceptorOpts?.dualStack ?? true;
+ let affinity;
+ if (dualStack) {
+ affinity = interceptorOpts?.affinity ?? null;
+ } else {
+ affinity = interceptorOpts?.affinity ?? 4;
+ }
+ const opts = {
+ maxTTL: interceptorOpts?.maxTTL ?? 1e4,
+ // Expressed in ms
+ lookup: interceptorOpts?.lookup ?? null,
+ pick: interceptorOpts?.pick ?? null,
+ dualStack,
+ affinity,
+ maxItems: interceptorOpts?.maxItems ?? Infinity
+ };
+ const instance = new DNSInstance(opts);
+ return (dispatch) => {
+ return function dnsInterceptor(origDispatchOpts, handler2) {
+ const origin = origDispatchOpts.origin.constructor === URL ? origDispatchOpts.origin : new URL(origDispatchOpts.origin);
+ if (isIP(origin.hostname) !== 0) {
+ return dispatch(origDispatchOpts, handler2);
+ }
+ instance.runLookup(origin, origDispatchOpts, (err, newOrigin) => {
+ if (err) {
+ return handler2.onResponseError(null, err);
+ }
+ const dispatchOpts = {
+ ...origDispatchOpts,
+ servername: origin.hostname,
+ // For SNI on TLS
+ origin: newOrigin.origin,
+ headers: {
+ host: origin.host,
+ ...origDispatchOpts.headers
+ }
+ };
+ dispatch(
+ dispatchOpts,
+ instance.getHandler(
+ { origin, dispatch, handler: handler2, newOrigin },
+ origDispatchOpts
+ )
+ );
+ });
+ return true;
+ };
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/util/cache.js
+var require_cache5 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/util/cache.js"(exports, module) {
+ "use strict";
+ var {
+ safeHTTPMethods,
+ pathHasQueryOrFragment
+ } = require_util11();
+ var { serializePathWithQuery } = require_util11();
+ function makeCacheKey(opts) {
+ if (!opts.origin) {
+ throw new Error("opts.origin is undefined");
+ }
+ let fullPath = opts.path || "/";
+ if (opts.query && !pathHasQueryOrFragment(opts.path)) {
+ fullPath = serializePathWithQuery(fullPath, opts.query);
+ }
+ return {
+ origin: opts.origin.toString(),
+ method: opts.method,
+ path: fullPath,
+ headers: opts.headers
+ };
+ }
+ function normalizeHeaders(opts) {
+ let headers;
+ if (opts.headers == null) {
+ headers = {};
+ } else if (typeof opts.headers[Symbol.iterator] === "function") {
+ headers = {};
+ for (const x of opts.headers) {
+ if (!Array.isArray(x)) {
+ throw new Error("opts.headers is not a valid header map");
+ }
+ const [key, val] = x;
+ if (typeof key !== "string" || typeof val !== "string") {
+ throw new Error("opts.headers is not a valid header map");
+ }
+ headers[key.toLowerCase()] = val;
+ }
+ } else if (typeof opts.headers === "object") {
+ headers = {};
+ for (const key of Object.keys(opts.headers)) {
+ headers[key.toLowerCase()] = opts.headers[key];
+ }
+ } else {
+ throw new Error("opts.headers is not an object");
+ }
+ return headers;
+ }
+ function assertCacheKey(key) {
+ if (typeof key !== "object") {
+ throw new TypeError(`expected key to be object, got ${typeof key}`);
+ }
+ for (const property of ["origin", "method", "path"]) {
+ if (typeof key[property] !== "string") {
+ throw new TypeError(`expected key.${property} to be string, got ${typeof key[property]}`);
+ }
+ }
+ if (key.headers !== void 0 && typeof key.headers !== "object") {
+ throw new TypeError(`expected headers to be object, got ${typeof key}`);
+ }
+ }
+ function assertCacheValue(value2) {
+ if (typeof value2 !== "object") {
+ throw new TypeError(`expected value to be object, got ${typeof value2}`);
+ }
+ for (const property of ["statusCode", "cachedAt", "staleAt", "deleteAt"]) {
+ if (typeof value2[property] !== "number") {
+ throw new TypeError(`expected value.${property} to be number, got ${typeof value2[property]}`);
+ }
+ }
+ if (typeof value2.statusMessage !== "string") {
+ throw new TypeError(`expected value.statusMessage to be string, got ${typeof value2.statusMessage}`);
+ }
+ if (value2.headers != null && typeof value2.headers !== "object") {
+ throw new TypeError(`expected value.rawHeaders to be object, got ${typeof value2.headers}`);
+ }
+ if (value2.vary !== void 0 && typeof value2.vary !== "object") {
+ throw new TypeError(`expected value.vary to be object, got ${typeof value2.vary}`);
+ }
+ if (value2.etag !== void 0 && typeof value2.etag !== "string") {
+ throw new TypeError(`expected value.etag to be string, got ${typeof value2.etag}`);
+ }
+ }
+ function parseCacheControlHeader(header) {
+ const output = {};
+ let directives;
+ if (Array.isArray(header)) {
+ directives = [];
+ for (const directive of header) {
+ directives.push(...directive.split(","));
+ }
+ } else {
+ directives = header.split(",");
+ }
+ for (let i = 0; i < directives.length; i++) {
+ const directive = directives[i].toLowerCase();
+ const keyValueDelimiter = directive.indexOf("=");
+ let key;
+ let value2;
+ if (keyValueDelimiter !== -1) {
+ key = directive.substring(0, keyValueDelimiter).trimStart();
+ value2 = directive.substring(keyValueDelimiter + 1);
+ } else {
+ key = directive.trim();
+ }
+ switch (key) {
+ case "min-fresh":
+ case "max-stale":
+ case "max-age":
+ case "s-maxage":
+ case "stale-while-revalidate":
+ case "stale-if-error": {
+ if (value2 === void 0 || value2[0] === " ") {
+ continue;
+ }
+ if (value2.length >= 2 && value2[0] === '"' && value2[value2.length - 1] === '"') {
+ value2 = value2.substring(1, value2.length - 1);
+ }
+ const parsedValue = parseInt(value2, 10);
+ if (parsedValue !== parsedValue) {
+ continue;
+ }
+ if (key === "max-age" && key in output && output[key] >= parsedValue) {
+ continue;
+ }
+ output[key] = parsedValue;
+ break;
+ }
+ case "private":
+ case "no-cache": {
+ if (value2) {
+ if (value2[0] === '"') {
+ const headers = [value2.substring(1)];
+ let foundEndingQuote = value2[value2.length - 1] === '"';
+ if (!foundEndingQuote) {
+ for (let j = i + 1; j < directives.length; j++) {
+ const nextPart = directives[j];
+ const nextPartLength = nextPart.length;
+ headers.push(nextPart.trim());
+ if (nextPartLength !== 0 && nextPart[nextPartLength - 1] === '"') {
+ foundEndingQuote = true;
+ break;
+ }
+ }
+ }
+ if (foundEndingQuote) {
+ let lastHeader = headers[headers.length - 1];
+ if (lastHeader[lastHeader.length - 1] === '"') {
+ lastHeader = lastHeader.substring(0, lastHeader.length - 1);
+ headers[headers.length - 1] = lastHeader;
+ }
+ if (key in output) {
+ output[key] = output[key].concat(headers);
+ } else {
+ output[key] = headers;
+ }
+ }
+ } else {
+ if (key in output) {
+ output[key] = output[key].concat(value2);
+ } else {
+ output[key] = [value2];
+ }
+ }
+ break;
+ }
+ }
+ // eslint-disable-next-line no-fallthrough
+ case "public":
+ case "no-store":
+ case "must-revalidate":
+ case "proxy-revalidate":
+ case "immutable":
+ case "no-transform":
+ case "must-understand":
+ case "only-if-cached":
+ if (value2) {
+ continue;
+ }
+ output[key] = true;
+ break;
+ default:
+ continue;
+ }
+ }
+ return output;
+ }
+ function parseVaryHeader(varyHeader, headers) {
+ if (typeof varyHeader === "string" && varyHeader.includes("*")) {
+ return headers;
+ }
+ const output = (
+ /** @type {Record} */
+ {}
+ );
+ const varyingHeaders = typeof varyHeader === "string" ? varyHeader.split(",") : varyHeader;
+ for (const header of varyingHeaders) {
+ const trimmedHeader = header.trim().toLowerCase();
+ output[trimmedHeader] = headers[trimmedHeader] ?? null;
+ }
+ return output;
+ }
+ function isEtagUsable(etag) {
+ if (etag.length <= 2) {
+ return false;
+ }
+ if (etag[0] === '"' && etag[etag.length - 1] === '"') {
+ return !(etag[1] === '"' || etag.startsWith('"W/'));
+ }
+ if (etag.startsWith('W/"') && etag[etag.length - 1] === '"') {
+ return etag.length !== 4;
+ }
+ return false;
+ }
+ function assertCacheStore(store, name = "CacheStore") {
+ if (typeof store !== "object" || store === null) {
+ throw new TypeError(`expected type of ${name} to be a CacheStore, got ${store === null ? "null" : typeof store}`);
+ }
+ for (const fn2 of ["get", "createWriteStream", "delete"]) {
+ if (typeof store[fn2] !== "function") {
+ throw new TypeError(`${name} needs to have a \`${fn2}()\` function`);
+ }
+ }
+ }
+ function assertCacheMethods(methods, name = "CacheMethods") {
+ if (!Array.isArray(methods)) {
+ throw new TypeError(`expected type of ${name} needs to be an array, got ${methods === null ? "null" : typeof methods}`);
+ }
+ if (methods.length === 0) {
+ throw new TypeError(`${name} needs to have at least one method`);
+ }
+ for (const method of methods) {
+ if (!safeHTTPMethods.includes(method)) {
+ throw new TypeError(`element of ${name}-array needs to be one of following values: ${safeHTTPMethods.join(", ")}, got ${method}`);
+ }
+ }
+ }
+ module.exports = {
+ makeCacheKey,
+ normalizeHeaders,
+ assertCacheKey,
+ assertCacheValue,
+ parseCacheControlHeader,
+ parseVaryHeader,
+ isEtagUsable,
+ assertCacheMethods,
+ assertCacheStore
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/util/date.js
+var require_date = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/util/date.js"(exports, module) {
+ "use strict";
+ function parseHttpDate(date2) {
+ switch (date2[3]) {
+ case ",":
+ return parseImfDate(date2);
+ case " ":
+ return parseAscTimeDate(date2);
+ default:
+ return parseRfc850Date(date2);
+ }
+ }
+ function parseImfDate(date2) {
+ if (date2.length !== 29 || date2[4] !== " " || date2[7] !== " " || date2[11] !== " " || date2[16] !== " " || date2[19] !== ":" || date2[22] !== ":" || date2[25] !== " " || date2[26] !== "G" || date2[27] !== "M" || date2[28] !== "T") {
+ return void 0;
+ }
+ let weekday = -1;
+ if (date2[0] === "S" && date2[1] === "u" && date2[2] === "n") {
+ weekday = 0;
+ } else if (date2[0] === "M" && date2[1] === "o" && date2[2] === "n") {
+ weekday = 1;
+ } else if (date2[0] === "T" && date2[1] === "u" && date2[2] === "e") {
+ weekday = 2;
+ } else if (date2[0] === "W" && date2[1] === "e" && date2[2] === "d") {
+ weekday = 3;
+ } else if (date2[0] === "T" && date2[1] === "h" && date2[2] === "u") {
+ weekday = 4;
+ } else if (date2[0] === "F" && date2[1] === "r" && date2[2] === "i") {
+ weekday = 5;
+ } else if (date2[0] === "S" && date2[1] === "a" && date2[2] === "t") {
+ weekday = 6;
+ } else {
+ return void 0;
+ }
+ let day = 0;
+ if (date2[5] === "0") {
+ const code = date2.charCodeAt(6);
+ if (code < 49 || code > 57) {
+ return void 0;
+ }
+ day = code - 48;
+ } else {
+ const code1 = date2.charCodeAt(5);
+ if (code1 < 49 || code1 > 51) {
+ return void 0;
+ }
+ const code2 = date2.charCodeAt(6);
+ if (code2 < 48 || code2 > 57) {
+ return void 0;
+ }
+ day = (code1 - 48) * 10 + (code2 - 48);
+ }
+ let monthIdx = -1;
+ if (date2[8] === "J" && date2[9] === "a" && date2[10] === "n") {
+ monthIdx = 0;
+ } else if (date2[8] === "F" && date2[9] === "e" && date2[10] === "b") {
+ monthIdx = 1;
+ } else if (date2[8] === "M" && date2[9] === "a") {
+ if (date2[10] === "r") {
+ monthIdx = 2;
+ } else if (date2[10] === "y") {
+ monthIdx = 4;
+ } else {
+ return void 0;
+ }
+ } else if (date2[8] === "J") {
+ if (date2[9] === "a" && date2[10] === "n") {
+ monthIdx = 0;
+ } else if (date2[9] === "u") {
+ if (date2[10] === "n") {
+ monthIdx = 5;
+ } else if (date2[10] === "l") {
+ monthIdx = 6;
+ } else {
+ return void 0;
+ }
+ } else {
+ return void 0;
+ }
+ } else if (date2[8] === "A") {
+ if (date2[9] === "p" && date2[10] === "r") {
+ monthIdx = 3;
+ } else if (date2[9] === "u" && date2[10] === "g") {
+ monthIdx = 7;
+ } else {
+ return void 0;
+ }
+ } else if (date2[8] === "S" && date2[9] === "e" && date2[10] === "p") {
+ monthIdx = 8;
+ } else if (date2[8] === "O" && date2[9] === "c" && date2[10] === "t") {
+ monthIdx = 9;
+ } else if (date2[8] === "N" && date2[9] === "o" && date2[10] === "v") {
+ monthIdx = 10;
+ } else if (date2[8] === "D" && date2[9] === "e" && date2[10] === "c") {
+ monthIdx = 11;
+ } else {
+ return void 0;
+ }
+ const yearDigit1 = date2.charCodeAt(12);
+ if (yearDigit1 < 48 || yearDigit1 > 57) {
+ return void 0;
+ }
+ const yearDigit2 = date2.charCodeAt(13);
+ if (yearDigit2 < 48 || yearDigit2 > 57) {
+ return void 0;
+ }
+ const yearDigit3 = date2.charCodeAt(14);
+ if (yearDigit3 < 48 || yearDigit3 > 57) {
+ return void 0;
+ }
+ const yearDigit4 = date2.charCodeAt(15);
+ if (yearDigit4 < 48 || yearDigit4 > 57) {
+ return void 0;
+ }
+ const year = (yearDigit1 - 48) * 1e3 + (yearDigit2 - 48) * 100 + (yearDigit3 - 48) * 10 + (yearDigit4 - 48);
+ let hour = 0;
+ if (date2[17] === "0") {
+ const code = date2.charCodeAt(18);
+ if (code < 48 || code > 57) {
+ return void 0;
+ }
+ hour = code - 48;
+ } else {
+ const code1 = date2.charCodeAt(17);
+ if (code1 < 48 || code1 > 50) {
+ return void 0;
+ }
+ const code2 = date2.charCodeAt(18);
+ if (code2 < 48 || code2 > 57) {
+ return void 0;
+ }
+ if (code1 === 50 && code2 > 51) {
+ return void 0;
+ }
+ hour = (code1 - 48) * 10 + (code2 - 48);
+ }
+ let minute = 0;
+ if (date2[20] === "0") {
+ const code = date2.charCodeAt(21);
+ if (code < 48 || code > 57) {
+ return void 0;
+ }
+ minute = code - 48;
+ } else {
+ const code1 = date2.charCodeAt(20);
+ if (code1 < 48 || code1 > 53) {
+ return void 0;
+ }
+ const code2 = date2.charCodeAt(21);
+ if (code2 < 48 || code2 > 57) {
+ return void 0;
+ }
+ minute = (code1 - 48) * 10 + (code2 - 48);
+ }
+ let second = 0;
+ if (date2[23] === "0") {
+ const code = date2.charCodeAt(24);
+ if (code < 48 || code > 57) {
+ return void 0;
+ }
+ second = code - 48;
+ } else {
+ const code1 = date2.charCodeAt(23);
+ if (code1 < 48 || code1 > 53) {
+ return void 0;
+ }
+ const code2 = date2.charCodeAt(24);
+ if (code2 < 48 || code2 > 57) {
+ return void 0;
+ }
+ second = (code1 - 48) * 10 + (code2 - 48);
+ }
+ const result = new Date(Date.UTC(year, monthIdx, day, hour, minute, second));
+ return result.getUTCDay() === weekday ? result : void 0;
+ }
+ function parseAscTimeDate(date2) {
+ if (date2.length !== 24 || date2[7] !== " " || date2[10] !== " " || date2[19] !== " ") {
+ return void 0;
+ }
+ let weekday = -1;
+ if (date2[0] === "S" && date2[1] === "u" && date2[2] === "n") {
+ weekday = 0;
+ } else if (date2[0] === "M" && date2[1] === "o" && date2[2] === "n") {
+ weekday = 1;
+ } else if (date2[0] === "T" && date2[1] === "u" && date2[2] === "e") {
+ weekday = 2;
+ } else if (date2[0] === "W" && date2[1] === "e" && date2[2] === "d") {
+ weekday = 3;
+ } else if (date2[0] === "T" && date2[1] === "h" && date2[2] === "u") {
+ weekday = 4;
+ } else if (date2[0] === "F" && date2[1] === "r" && date2[2] === "i") {
+ weekday = 5;
+ } else if (date2[0] === "S" && date2[1] === "a" && date2[2] === "t") {
+ weekday = 6;
+ } else {
+ return void 0;
+ }
+ let monthIdx = -1;
+ if (date2[4] === "J" && date2[5] === "a" && date2[6] === "n") {
+ monthIdx = 0;
+ } else if (date2[4] === "F" && date2[5] === "e" && date2[6] === "b") {
+ monthIdx = 1;
+ } else if (date2[4] === "M" && date2[5] === "a") {
+ if (date2[6] === "r") {
+ monthIdx = 2;
+ } else if (date2[6] === "y") {
+ monthIdx = 4;
+ } else {
+ return void 0;
+ }
+ } else if (date2[4] === "J") {
+ if (date2[5] === "a" && date2[6] === "n") {
+ monthIdx = 0;
+ } else if (date2[5] === "u") {
+ if (date2[6] === "n") {
+ monthIdx = 5;
+ } else if (date2[6] === "l") {
+ monthIdx = 6;
+ } else {
+ return void 0;
+ }
+ } else {
+ return void 0;
+ }
+ } else if (date2[4] === "A") {
+ if (date2[5] === "p" && date2[6] === "r") {
+ monthIdx = 3;
+ } else if (date2[5] === "u" && date2[6] === "g") {
+ monthIdx = 7;
+ } else {
+ return void 0;
+ }
+ } else if (date2[4] === "S" && date2[5] === "e" && date2[6] === "p") {
+ monthIdx = 8;
+ } else if (date2[4] === "O" && date2[5] === "c" && date2[6] === "t") {
+ monthIdx = 9;
+ } else if (date2[4] === "N" && date2[5] === "o" && date2[6] === "v") {
+ monthIdx = 10;
+ } else if (date2[4] === "D" && date2[5] === "e" && date2[6] === "c") {
+ monthIdx = 11;
+ } else {
+ return void 0;
+ }
+ let day = 0;
+ if (date2[8] === " ") {
+ const code = date2.charCodeAt(9);
+ if (code < 49 || code > 57) {
+ return void 0;
+ }
+ day = code - 48;
+ } else {
+ const code1 = date2.charCodeAt(8);
+ if (code1 < 49 || code1 > 51) {
+ return void 0;
+ }
+ const code2 = date2.charCodeAt(9);
+ if (code2 < 48 || code2 > 57) {
+ return void 0;
+ }
+ day = (code1 - 48) * 10 + (code2 - 48);
+ }
+ let hour = 0;
+ if (date2[11] === "0") {
+ const code = date2.charCodeAt(12);
+ if (code < 48 || code > 57) {
+ return void 0;
+ }
+ hour = code - 48;
+ } else {
+ const code1 = date2.charCodeAt(11);
+ if (code1 < 48 || code1 > 50) {
+ return void 0;
+ }
+ const code2 = date2.charCodeAt(12);
+ if (code2 < 48 || code2 > 57) {
+ return void 0;
+ }
+ if (code1 === 50 && code2 > 51) {
+ return void 0;
+ }
+ hour = (code1 - 48) * 10 + (code2 - 48);
+ }
+ let minute = 0;
+ if (date2[14] === "0") {
+ const code = date2.charCodeAt(15);
+ if (code < 48 || code > 57) {
+ return void 0;
+ }
+ minute = code - 48;
+ } else {
+ const code1 = date2.charCodeAt(14);
+ if (code1 < 48 || code1 > 53) {
+ return void 0;
+ }
+ const code2 = date2.charCodeAt(15);
+ if (code2 < 48 || code2 > 57) {
+ return void 0;
+ }
+ minute = (code1 - 48) * 10 + (code2 - 48);
+ }
+ let second = 0;
+ if (date2[17] === "0") {
+ const code = date2.charCodeAt(18);
+ if (code < 48 || code > 57) {
+ return void 0;
+ }
+ second = code - 48;
+ } else {
+ const code1 = date2.charCodeAt(17);
+ if (code1 < 48 || code1 > 53) {
+ return void 0;
+ }
+ const code2 = date2.charCodeAt(18);
+ if (code2 < 48 || code2 > 57) {
+ return void 0;
+ }
+ second = (code1 - 48) * 10 + (code2 - 48);
+ }
+ const yearDigit1 = date2.charCodeAt(20);
+ if (yearDigit1 < 48 || yearDigit1 > 57) {
+ return void 0;
+ }
+ const yearDigit2 = date2.charCodeAt(21);
+ if (yearDigit2 < 48 || yearDigit2 > 57) {
+ return void 0;
+ }
+ const yearDigit3 = date2.charCodeAt(22);
+ if (yearDigit3 < 48 || yearDigit3 > 57) {
+ return void 0;
+ }
+ const yearDigit4 = date2.charCodeAt(23);
+ if (yearDigit4 < 48 || yearDigit4 > 57) {
+ return void 0;
+ }
+ const year = (yearDigit1 - 48) * 1e3 + (yearDigit2 - 48) * 100 + (yearDigit3 - 48) * 10 + (yearDigit4 - 48);
+ const result = new Date(Date.UTC(year, monthIdx, day, hour, minute, second));
+ return result.getUTCDay() === weekday ? result : void 0;
+ }
+ function parseRfc850Date(date2) {
+ let commaIndex = -1;
+ let weekday = -1;
+ if (date2[0] === "S") {
+ if (date2[1] === "u" && date2[2] === "n" && date2[3] === "d" && date2[4] === "a" && date2[5] === "y") {
+ weekday = 0;
+ commaIndex = 6;
+ } else if (date2[1] === "a" && date2[2] === "t" && date2[3] === "u" && date2[4] === "r" && date2[5] === "d" && date2[6] === "a" && date2[7] === "y") {
+ weekday = 6;
+ commaIndex = 8;
+ }
+ } else if (date2[0] === "M" && date2[1] === "o" && date2[2] === "n" && date2[3] === "d" && date2[4] === "a" && date2[5] === "y") {
+ weekday = 1;
+ commaIndex = 6;
+ } else if (date2[0] === "T") {
+ if (date2[1] === "u" && date2[2] === "e" && date2[3] === "s" && date2[4] === "d" && date2[5] === "a" && date2[6] === "y") {
+ weekday = 2;
+ commaIndex = 7;
+ } else if (date2[1] === "h" && date2[2] === "u" && date2[3] === "r" && date2[4] === "s" && date2[5] === "d" && date2[6] === "a" && date2[7] === "y") {
+ weekday = 4;
+ commaIndex = 8;
+ }
+ } else if (date2[0] === "W" && date2[1] === "e" && date2[2] === "d" && date2[3] === "n" && date2[4] === "e" && date2[5] === "s" && date2[6] === "d" && date2[7] === "a" && date2[8] === "y") {
+ weekday = 3;
+ commaIndex = 9;
+ } else if (date2[0] === "F" && date2[1] === "r" && date2[2] === "i" && date2[3] === "d" && date2[4] === "a" && date2[5] === "y") {
+ weekday = 5;
+ commaIndex = 6;
+ } else {
+ return void 0;
+ }
+ if (date2[commaIndex] !== "," || date2.length - commaIndex - 1 !== 23 || date2[commaIndex + 1] !== " " || date2[commaIndex + 4] !== "-" || date2[commaIndex + 8] !== "-" || date2[commaIndex + 11] !== " " || date2[commaIndex + 14] !== ":" || date2[commaIndex + 17] !== ":" || date2[commaIndex + 20] !== " " || date2[commaIndex + 21] !== "G" || date2[commaIndex + 22] !== "M" || date2[commaIndex + 23] !== "T") {
+ return void 0;
+ }
+ let day = 0;
+ if (date2[commaIndex + 2] === "0") {
+ const code = date2.charCodeAt(commaIndex + 3);
+ if (code < 49 || code > 57) {
+ return void 0;
+ }
+ day = code - 48;
+ } else {
+ const code1 = date2.charCodeAt(commaIndex + 2);
+ if (code1 < 49 || code1 > 51) {
+ return void 0;
+ }
+ const code2 = date2.charCodeAt(commaIndex + 3);
+ if (code2 < 48 || code2 > 57) {
+ return void 0;
+ }
+ day = (code1 - 48) * 10 + (code2 - 48);
+ }
+ let monthIdx = -1;
+ if (date2[commaIndex + 5] === "J" && date2[commaIndex + 6] === "a" && date2[commaIndex + 7] === "n") {
+ monthIdx = 0;
+ } else if (date2[commaIndex + 5] === "F" && date2[commaIndex + 6] === "e" && date2[commaIndex + 7] === "b") {
+ monthIdx = 1;
+ } else if (date2[commaIndex + 5] === "M" && date2[commaIndex + 6] === "a" && date2[commaIndex + 7] === "r") {
+ monthIdx = 2;
+ } else if (date2[commaIndex + 5] === "A" && date2[commaIndex + 6] === "p" && date2[commaIndex + 7] === "r") {
+ monthIdx = 3;
+ } else if (date2[commaIndex + 5] === "M" && date2[commaIndex + 6] === "a" && date2[commaIndex + 7] === "y") {
+ monthIdx = 4;
+ } else if (date2[commaIndex + 5] === "J" && date2[commaIndex + 6] === "u" && date2[commaIndex + 7] === "n") {
+ monthIdx = 5;
+ } else if (date2[commaIndex + 5] === "J" && date2[commaIndex + 6] === "u" && date2[commaIndex + 7] === "l") {
+ monthIdx = 6;
+ } else if (date2[commaIndex + 5] === "A" && date2[commaIndex + 6] === "u" && date2[commaIndex + 7] === "g") {
+ monthIdx = 7;
+ } else if (date2[commaIndex + 5] === "S" && date2[commaIndex + 6] === "e" && date2[commaIndex + 7] === "p") {
+ monthIdx = 8;
+ } else if (date2[commaIndex + 5] === "O" && date2[commaIndex + 6] === "c" && date2[commaIndex + 7] === "t") {
+ monthIdx = 9;
+ } else if (date2[commaIndex + 5] === "N" && date2[commaIndex + 6] === "o" && date2[commaIndex + 7] === "v") {
+ monthIdx = 10;
+ } else if (date2[commaIndex + 5] === "D" && date2[commaIndex + 6] === "e" && date2[commaIndex + 7] === "c") {
+ monthIdx = 11;
+ } else {
+ return void 0;
+ }
+ const yearDigit1 = date2.charCodeAt(commaIndex + 9);
+ if (yearDigit1 < 48 || yearDigit1 > 57) {
+ return void 0;
+ }
+ const yearDigit2 = date2.charCodeAt(commaIndex + 10);
+ if (yearDigit2 < 48 || yearDigit2 > 57) {
+ return void 0;
+ }
+ let year = (yearDigit1 - 48) * 10 + (yearDigit2 - 48);
+ year += year < 70 ? 2e3 : 1900;
+ let hour = 0;
+ if (date2[commaIndex + 12] === "0") {
+ const code = date2.charCodeAt(commaIndex + 13);
+ if (code < 48 || code > 57) {
+ return void 0;
+ }
+ hour = code - 48;
+ } else {
+ const code1 = date2.charCodeAt(commaIndex + 12);
+ if (code1 < 48 || code1 > 50) {
+ return void 0;
+ }
+ const code2 = date2.charCodeAt(commaIndex + 13);
+ if (code2 < 48 || code2 > 57) {
+ return void 0;
+ }
+ if (code1 === 50 && code2 > 51) {
+ return void 0;
+ }
+ hour = (code1 - 48) * 10 + (code2 - 48);
+ }
+ let minute = 0;
+ if (date2[commaIndex + 15] === "0") {
+ const code = date2.charCodeAt(commaIndex + 16);
+ if (code < 48 || code > 57) {
+ return void 0;
+ }
+ minute = code - 48;
+ } else {
+ const code1 = date2.charCodeAt(commaIndex + 15);
+ if (code1 < 48 || code1 > 53) {
+ return void 0;
+ }
+ const code2 = date2.charCodeAt(commaIndex + 16);
+ if (code2 < 48 || code2 > 57) {
+ return void 0;
+ }
+ minute = (code1 - 48) * 10 + (code2 - 48);
+ }
+ let second = 0;
+ if (date2[commaIndex + 18] === "0") {
+ const code = date2.charCodeAt(commaIndex + 19);
+ if (code < 48 || code > 57) {
+ return void 0;
+ }
+ second = code - 48;
+ } else {
+ const code1 = date2.charCodeAt(commaIndex + 18);
+ if (code1 < 48 || code1 > 53) {
+ return void 0;
+ }
+ const code2 = date2.charCodeAt(commaIndex + 19);
+ if (code2 < 48 || code2 > 57) {
+ return void 0;
+ }
+ second = (code1 - 48) * 10 + (code2 - 48);
+ }
+ const result = new Date(Date.UTC(year, monthIdx, day, hour, minute, second));
+ return result.getUTCDay() === weekday ? result : void 0;
+ }
+ module.exports = {
+ parseHttpDate
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/cache-handler.js
+var require_cache_handler = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/cache-handler.js"(exports, module) {
+ "use strict";
+ var util3 = require_util11();
+ var {
+ parseCacheControlHeader,
+ parseVaryHeader,
+ isEtagUsable
+ } = require_cache5();
+ var { parseHttpDate } = require_date();
+ function noop3() {
+ }
+ var HEURISTICALLY_CACHEABLE_STATUS_CODES = [
+ 200,
+ 203,
+ 204,
+ 206,
+ 300,
+ 301,
+ 308,
+ 404,
+ 405,
+ 410,
+ 414,
+ 501
+ ];
+ var NOT_UNDERSTOOD_STATUS_CODES = [
+ 206,
+ 304
+ ];
+ var MAX_RESPONSE_AGE = 2147483647e3;
+ var CacheHandler = class {
+ /**
+ * @type {import('../../types/cache-interceptor.d.ts').default.CacheKey}
+ */
+ #cacheKey;
+ /**
+ * @type {import('../../types/cache-interceptor.d.ts').default.CacheHandlerOptions['type']}
+ */
+ #cacheType;
+ /**
+ * @type {number | undefined}
+ */
+ #cacheByDefault;
+ /**
+ * @type {import('../../types/cache-interceptor.d.ts').default.CacheStore}
+ */
+ #store;
+ /**
+ * @type {import('../../types/dispatcher.d.ts').default.DispatchHandler}
+ */
+ #handler;
+ /**
+ * @type {import('node:stream').Writable | undefined}
+ */
+ #writeStream;
+ /**
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheHandlerOptions} opts
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} cacheKey
+ * @param {import('../../types/dispatcher.d.ts').default.DispatchHandler} handler
+ */
+ constructor({ store, type: type2, cacheByDefault }, cacheKey, handler2) {
+ this.#store = store;
+ this.#cacheType = type2;
+ this.#cacheByDefault = cacheByDefault;
+ this.#cacheKey = cacheKey;
+ this.#handler = handler2;
+ }
+ onRequestStart(controller, context) {
+ this.#writeStream?.destroy();
+ this.#writeStream = void 0;
+ this.#handler.onRequestStart?.(controller, context);
+ }
+ onRequestUpgrade(controller, statusCode, headers, socket) {
+ this.#handler.onRequestUpgrade?.(controller, statusCode, headers, socket);
+ }
+ /**
+ * @param {import('../../types/dispatcher.d.ts').default.DispatchController} controller
+ * @param {number} statusCode
+ * @param {import('../../types/header.d.ts').IncomingHttpHeaders} resHeaders
+ * @param {string} statusMessage
+ */
+ onResponseStart(controller, statusCode, resHeaders, statusMessage) {
+ const downstreamOnHeaders = () => this.#handler.onResponseStart?.(
+ controller,
+ statusCode,
+ resHeaders,
+ statusMessage
+ );
+ if (!util3.safeHTTPMethods.includes(this.#cacheKey.method) && statusCode >= 200 && statusCode <= 399) {
+ try {
+ this.#store.delete(this.#cacheKey)?.catch?.(noop3);
+ } catch {
+ }
+ return downstreamOnHeaders();
+ }
+ const cacheControlHeader = resHeaders["cache-control"];
+ const heuristicallyCacheable = resHeaders["last-modified"] && HEURISTICALLY_CACHEABLE_STATUS_CODES.includes(statusCode);
+ if (!cacheControlHeader && !resHeaders["expires"] && !heuristicallyCacheable && !this.#cacheByDefault) {
+ return downstreamOnHeaders();
+ }
+ const cacheControlDirectives = cacheControlHeader ? parseCacheControlHeader(cacheControlHeader) : {};
+ if (!canCacheResponse(this.#cacheType, statusCode, resHeaders, cacheControlDirectives)) {
+ return downstreamOnHeaders();
+ }
+ const now = Date.now();
+ const resAge = resHeaders.age ? getAge(resHeaders.age) : void 0;
+ if (resAge && resAge >= MAX_RESPONSE_AGE) {
+ return downstreamOnHeaders();
+ }
+ const resDate = typeof resHeaders.date === "string" ? parseHttpDate(resHeaders.date) : void 0;
+ const staleAt = determineStaleAt(this.#cacheType, now, resAge, resHeaders, resDate, cacheControlDirectives) ?? this.#cacheByDefault;
+ if (staleAt === void 0 || resAge && resAge > staleAt) {
+ return downstreamOnHeaders();
+ }
+ const baseTime = resDate ? resDate.getTime() : now;
+ const absoluteStaleAt = staleAt + baseTime;
+ if (now >= absoluteStaleAt) {
+ return downstreamOnHeaders();
+ }
+ let varyDirectives;
+ if (this.#cacheKey.headers && resHeaders.vary) {
+ varyDirectives = parseVaryHeader(resHeaders.vary, this.#cacheKey.headers);
+ if (!varyDirectives) {
+ return downstreamOnHeaders();
+ }
+ }
+ const deleteAt = determineDeleteAt(baseTime, cacheControlDirectives, absoluteStaleAt);
+ const strippedHeaders = stripNecessaryHeaders(resHeaders, cacheControlDirectives);
+ const value2 = {
+ statusCode,
+ statusMessage,
+ headers: strippedHeaders,
+ vary: varyDirectives,
+ cacheControlDirectives,
+ cachedAt: resAge ? now - resAge : now,
+ staleAt: absoluteStaleAt,
+ deleteAt
+ };
+ if (typeof resHeaders.etag === "string" && isEtagUsable(resHeaders.etag)) {
+ value2.etag = resHeaders.etag;
+ }
+ this.#writeStream = this.#store.createWriteStream(this.#cacheKey, value2);
+ if (!this.#writeStream) {
+ return downstreamOnHeaders();
+ }
+ const handler2 = this;
+ this.#writeStream.on("drain", () => controller.resume()).on("error", function() {
+ handler2.#writeStream = void 0;
+ handler2.#store.delete(handler2.#cacheKey);
+ }).on("close", function() {
+ if (handler2.#writeStream === this) {
+ handler2.#writeStream = void 0;
+ }
+ controller.resume();
+ });
+ return downstreamOnHeaders();
+ }
+ onResponseData(controller, chunk) {
+ if (this.#writeStream?.write(chunk) === false) {
+ controller.pause();
+ }
+ this.#handler.onResponseData?.(controller, chunk);
+ }
+ onResponseEnd(controller, trailers) {
+ this.#writeStream?.end();
+ this.#handler.onResponseEnd?.(controller, trailers);
+ }
+ onResponseError(controller, err) {
+ this.#writeStream?.destroy(err);
+ this.#writeStream = void 0;
+ this.#handler.onResponseError?.(controller, err);
+ }
+ };
+ function canCacheResponse(cacheType, statusCode, resHeaders, cacheControlDirectives) {
+ if (statusCode < 200 || NOT_UNDERSTOOD_STATUS_CODES.includes(statusCode)) {
+ return false;
+ }
+ if (!HEURISTICALLY_CACHEABLE_STATUS_CODES.includes(statusCode) && !resHeaders["expires"] && !cacheControlDirectives.public && cacheControlDirectives["max-age"] === void 0 && // RFC 9111: a private response directive, if the cache is not shared
+ !(cacheControlDirectives.private && cacheType === "private") && !(cacheControlDirectives["s-maxage"] !== void 0 && cacheType === "shared")) {
+ return false;
+ }
+ if (cacheControlDirectives["no-store"]) {
+ return false;
+ }
+ if (cacheType === "shared" && cacheControlDirectives.private === true) {
+ return false;
+ }
+ if (resHeaders.vary?.includes("*")) {
+ return false;
+ }
+ if (resHeaders.authorization) {
+ if (!cacheControlDirectives.public || typeof resHeaders.authorization !== "string") {
+ return false;
+ }
+ if (Array.isArray(cacheControlDirectives["no-cache"]) && cacheControlDirectives["no-cache"].includes("authorization")) {
+ return false;
+ }
+ if (Array.isArray(cacheControlDirectives["private"]) && cacheControlDirectives["private"].includes("authorization")) {
+ return false;
+ }
+ }
+ return true;
+ }
+ function getAge(ageHeader) {
+ const age = parseInt(Array.isArray(ageHeader) ? ageHeader[0] : ageHeader);
+ return isNaN(age) ? void 0 : age * 1e3;
+ }
+ function determineStaleAt(cacheType, now, age, resHeaders, responseDate, cacheControlDirectives) {
+ if (cacheType === "shared") {
+ const sMaxAge = cacheControlDirectives["s-maxage"];
+ if (sMaxAge !== void 0) {
+ return sMaxAge > 0 ? sMaxAge * 1e3 : void 0;
+ }
+ }
+ const maxAge = cacheControlDirectives["max-age"];
+ if (maxAge !== void 0) {
+ return maxAge > 0 ? maxAge * 1e3 : void 0;
+ }
+ if (typeof resHeaders.expires === "string") {
+ const expiresDate = parseHttpDate(resHeaders.expires);
+ if (expiresDate) {
+ if (now >= expiresDate.getTime()) {
+ return void 0;
+ }
+ if (responseDate) {
+ if (responseDate >= expiresDate) {
+ return void 0;
+ }
+ if (age !== void 0 && age > expiresDate - responseDate) {
+ return void 0;
+ }
+ }
+ return expiresDate.getTime() - now;
+ }
+ }
+ if (typeof resHeaders["last-modified"] === "string") {
+ const lastModified = new Date(resHeaders["last-modified"]);
+ if (isValidDate2(lastModified)) {
+ if (lastModified.getTime() >= now) {
+ return void 0;
+ }
+ const responseAge = now - lastModified.getTime();
+ return responseAge * 0.1;
+ }
+ }
+ if (cacheControlDirectives.immutable) {
+ return 31536e3;
+ }
+ return void 0;
+ }
+ function determineDeleteAt(now, cacheControlDirectives, staleAt) {
+ let staleWhileRevalidate = -Infinity;
+ let staleIfError = -Infinity;
+ let immutable = -Infinity;
+ if (cacheControlDirectives["stale-while-revalidate"]) {
+ staleWhileRevalidate = staleAt + cacheControlDirectives["stale-while-revalidate"] * 1e3;
+ }
+ if (cacheControlDirectives["stale-if-error"]) {
+ staleIfError = staleAt + cacheControlDirectives["stale-if-error"] * 1e3;
+ }
+ if (staleWhileRevalidate === -Infinity && staleIfError === -Infinity) {
+ immutable = now + 31536e6;
+ }
+ return Math.max(staleAt, staleWhileRevalidate, staleIfError, immutable);
+ }
+ function stripNecessaryHeaders(resHeaders, cacheControlDirectives) {
+ const headersToRemove = [
+ "connection",
+ "proxy-authenticate",
+ "proxy-authentication-info",
+ "proxy-authorization",
+ "proxy-connection",
+ "te",
+ "transfer-encoding",
+ "upgrade",
+ // We'll add age back when serving it
+ "age"
+ ];
+ if (resHeaders["connection"]) {
+ if (Array.isArray(resHeaders["connection"])) {
+ headersToRemove.push(...resHeaders["connection"].map((header) => header.trim()));
+ } else {
+ headersToRemove.push(...resHeaders["connection"].split(",").map((header) => header.trim()));
+ }
+ }
+ if (Array.isArray(cacheControlDirectives["no-cache"])) {
+ headersToRemove.push(...cacheControlDirectives["no-cache"]);
+ }
+ if (Array.isArray(cacheControlDirectives["private"])) {
+ headersToRemove.push(...cacheControlDirectives["private"]);
+ }
+ let strippedHeaders;
+ for (const headerName of headersToRemove) {
+ if (resHeaders[headerName]) {
+ strippedHeaders ??= { ...resHeaders };
+ delete strippedHeaders[headerName];
+ }
+ }
+ return strippedHeaders ?? resHeaders;
+ }
+ function isValidDate2(date2) {
+ return date2 instanceof Date && Number.isFinite(date2.valueOf());
+ }
+ module.exports = CacheHandler;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/cache/memory-cache-store.js
+var require_memory_cache_store = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/cache/memory-cache-store.js"(exports, module) {
+ "use strict";
+ var { Writable } = __require("node:stream");
+ var { EventEmitter: EventEmitter2 } = __require("node:events");
+ var { assertCacheKey, assertCacheValue } = require_cache5();
+ var MemoryCacheStore = class extends EventEmitter2 {
+ #maxCount = 1024;
+ #maxSize = 104857600;
+ // 100MB
+ #maxEntrySize = 5242880;
+ // 5MB
+ #size = 0;
+ #count = 0;
+ #entries = /* @__PURE__ */ new Map();
+ #hasEmittedMaxSizeEvent = false;
+ /**
+ * @param {import('../../types/cache-interceptor.d.ts').default.MemoryCacheStoreOpts | undefined} [opts]
+ */
+ constructor(opts) {
+ super();
+ if (opts) {
+ if (typeof opts !== "object") {
+ throw new TypeError("MemoryCacheStore options must be an object");
+ }
+ if (opts.maxCount !== void 0) {
+ if (typeof opts.maxCount !== "number" || !Number.isInteger(opts.maxCount) || opts.maxCount < 0) {
+ throw new TypeError("MemoryCacheStore options.maxCount must be a non-negative integer");
+ }
+ this.#maxCount = opts.maxCount;
+ }
+ if (opts.maxSize !== void 0) {
+ if (typeof opts.maxSize !== "number" || !Number.isInteger(opts.maxSize) || opts.maxSize < 0) {
+ throw new TypeError("MemoryCacheStore options.maxSize must be a non-negative integer");
+ }
+ this.#maxSize = opts.maxSize;
+ }
+ if (opts.maxEntrySize !== void 0) {
+ if (typeof opts.maxEntrySize !== "number" || !Number.isInteger(opts.maxEntrySize) || opts.maxEntrySize < 0) {
+ throw new TypeError("MemoryCacheStore options.maxEntrySize must be a non-negative integer");
+ }
+ this.#maxEntrySize = opts.maxEntrySize;
+ }
+ }
+ }
+ /**
+ * Get the current size of the cache in bytes
+ * @returns {number} The current size of the cache in bytes
+ */
+ get size() {
+ return this.#size;
+ }
+ /**
+ * Check if the cache is full (either max size or max count reached)
+ * @returns {boolean} True if the cache is full, false otherwise
+ */
+ isFull() {
+ return this.#size >= this.#maxSize || this.#count >= this.#maxCount;
+ }
+ /**
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} req
+ * @returns {import('../../types/cache-interceptor.d.ts').default.GetResult | undefined}
+ */
+ get(key) {
+ assertCacheKey(key);
+ const topLevelKey = `${key.origin}:${key.path}`;
+ const now = Date.now();
+ const entries = this.#entries.get(topLevelKey);
+ const entry = entries ? findEntry(key, entries, now) : null;
+ return entry == null ? void 0 : {
+ statusMessage: entry.statusMessage,
+ statusCode: entry.statusCode,
+ headers: entry.headers,
+ body: entry.body,
+ vary: entry.vary ? entry.vary : void 0,
+ etag: entry.etag,
+ cacheControlDirectives: entry.cacheControlDirectives,
+ cachedAt: entry.cachedAt,
+ staleAt: entry.staleAt,
+ deleteAt: entry.deleteAt
+ };
+ }
+ /**
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheValue} val
+ * @returns {Writable | undefined}
+ */
+ createWriteStream(key, val) {
+ assertCacheKey(key);
+ assertCacheValue(val);
+ const topLevelKey = `${key.origin}:${key.path}`;
+ const store = this;
+ const entry = { ...key, ...val, body: [], size: 0 };
+ return new Writable({
+ write(chunk, encoding, callback) {
+ if (typeof chunk === "string") {
+ chunk = Buffer.from(chunk, encoding);
+ }
+ entry.size += chunk.byteLength;
+ if (entry.size >= store.#maxEntrySize) {
+ this.destroy();
+ } else {
+ entry.body.push(chunk);
+ }
+ callback(null);
+ },
+ final(callback) {
+ let entries = store.#entries.get(topLevelKey);
+ if (!entries) {
+ entries = [];
+ store.#entries.set(topLevelKey, entries);
+ }
+ const previousEntry = findEntry(key, entries, Date.now());
+ if (previousEntry) {
+ const index = entries.indexOf(previousEntry);
+ entries.splice(index, 1, entry);
+ store.#size -= previousEntry.size;
+ } else {
+ entries.push(entry);
+ store.#count += 1;
+ }
+ store.#size += entry.size;
+ if (store.#size > store.#maxSize || store.#count > store.#maxCount) {
+ if (!store.#hasEmittedMaxSizeEvent) {
+ store.emit("maxSizeExceeded", {
+ size: store.#size,
+ maxSize: store.#maxSize,
+ count: store.#count,
+ maxCount: store.#maxCount
+ });
+ store.#hasEmittedMaxSizeEvent = true;
+ }
+ for (const [key2, entries2] of store.#entries) {
+ for (const entry2 of entries2.splice(0, entries2.length / 2)) {
+ store.#size -= entry2.size;
+ store.#count -= 1;
+ }
+ if (entries2.length === 0) {
+ store.#entries.delete(key2);
+ }
+ }
+ if (store.#size < store.#maxSize && store.#count < store.#maxCount) {
+ store.#hasEmittedMaxSizeEvent = false;
+ }
+ }
+ callback(null);
+ }
+ });
+ }
+ /**
+ * @param {CacheKey} key
+ */
+ delete(key) {
+ if (typeof key !== "object") {
+ throw new TypeError(`expected key to be object, got ${typeof key}`);
+ }
+ const topLevelKey = `${key.origin}:${key.path}`;
+ for (const entry of this.#entries.get(topLevelKey) ?? []) {
+ this.#size -= entry.size;
+ this.#count -= 1;
+ }
+ this.#entries.delete(topLevelKey);
+ }
+ };
+ function findEntry(key, entries, now) {
+ return entries.find((entry) => entry.deleteAt > now && entry.method === key.method && (entry.vary == null || Object.keys(entry.vary).every((headerName) => {
+ if (entry.vary[headerName] === null) {
+ return key.headers[headerName] === void 0;
+ }
+ return entry.vary[headerName] === key.headers[headerName];
+ })));
+ }
+ module.exports = MemoryCacheStore;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/cache-revalidation-handler.js
+var require_cache_revalidation_handler = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/handler/cache-revalidation-handler.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var CacheRevalidationHandler = class {
+ #successful = false;
+ /**
+ * @type {((boolean, any) => void) | null}
+ */
+ #callback;
+ /**
+ * @type {(import('../../types/dispatcher.d.ts').default.DispatchHandler)}
+ */
+ #handler;
+ #context;
+ /**
+ * @type {boolean}
+ */
+ #allowErrorStatusCodes;
+ /**
+ * @param {(boolean) => void} callback Function to call if the cached value is valid
+ * @param {import('../../types/dispatcher.d.ts').default.DispatchHandlers} handler
+ * @param {boolean} allowErrorStatusCodes
+ */
+ constructor(callback, handler2, allowErrorStatusCodes) {
+ if (typeof callback !== "function") {
+ throw new TypeError("callback must be a function");
+ }
+ this.#callback = callback;
+ this.#handler = handler2;
+ this.#allowErrorStatusCodes = allowErrorStatusCodes;
+ }
+ onRequestStart(_, context) {
+ this.#successful = false;
+ this.#context = context;
+ }
+ onRequestUpgrade(controller, statusCode, headers, socket) {
+ this.#handler.onRequestUpgrade?.(controller, statusCode, headers, socket);
+ }
+ onResponseStart(controller, statusCode, headers, statusMessage) {
+ assert2(this.#callback != null);
+ this.#successful = statusCode === 304 || this.#allowErrorStatusCodes && statusCode >= 500 && statusCode <= 504;
+ this.#callback(this.#successful, this.#context);
+ this.#callback = null;
+ if (this.#successful) {
+ return true;
+ }
+ this.#handler.onRequestStart?.(controller, this.#context);
+ this.#handler.onResponseStart?.(
+ controller,
+ statusCode,
+ headers,
+ statusMessage
+ );
+ }
+ onResponseData(controller, chunk) {
+ if (this.#successful) {
+ return;
+ }
+ return this.#handler.onResponseData?.(controller, chunk);
+ }
+ onResponseEnd(controller, trailers) {
+ if (this.#successful) {
+ return;
+ }
+ this.#handler.onResponseEnd?.(controller, trailers);
+ }
+ onResponseError(controller, err) {
+ if (this.#successful) {
+ return;
+ }
+ if (this.#callback) {
+ this.#callback(false);
+ this.#callback = null;
+ }
+ if (typeof this.#handler.onResponseError === "function") {
+ this.#handler.onResponseError(controller, err);
+ } else {
+ throw err;
+ }
+ }
+ };
+ module.exports = CacheRevalidationHandler;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/cache.js
+var require_cache6 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/cache.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var { Readable } = __require("node:stream");
+ var util3 = require_util11();
+ var CacheHandler = require_cache_handler();
+ var MemoryCacheStore = require_memory_cache_store();
+ var CacheRevalidationHandler = require_cache_revalidation_handler();
+ var { assertCacheStore, assertCacheMethods, makeCacheKey, normalizeHeaders, parseCacheControlHeader } = require_cache5();
+ var { AbortError: AbortError2 } = require_errors2();
+ function needsRevalidation(result, cacheControlDirectives) {
+ if (cacheControlDirectives?.["no-cache"]) {
+ return true;
+ }
+ if (result.cacheControlDirectives?.["no-cache"] && !Array.isArray(result.cacheControlDirectives["no-cache"])) {
+ return true;
+ }
+ const now = Date.now();
+ if (now > result.staleAt) {
+ if (cacheControlDirectives?.["max-stale"]) {
+ const gracePeriod = result.staleAt + cacheControlDirectives["max-stale"] * 1e3;
+ return now > gracePeriod;
+ }
+ return true;
+ }
+ if (cacheControlDirectives?.["min-fresh"]) {
+ const timeLeftTillStale = result.staleAt - now;
+ const threshold = cacheControlDirectives["min-fresh"] * 1e3;
+ return timeLeftTillStale <= threshold;
+ }
+ return false;
+ }
+ function withinStaleWhileRevalidateWindow(result) {
+ const staleWhileRevalidate = result.cacheControlDirectives?.["stale-while-revalidate"];
+ if (!staleWhileRevalidate) {
+ return false;
+ }
+ const now = Date.now();
+ const staleWhileRevalidateExpiry = result.staleAt + staleWhileRevalidate * 1e3;
+ return now <= staleWhileRevalidateExpiry;
+ }
+ function handleUncachedResponse(dispatch, globalOpts, cacheKey, handler2, opts, reqCacheControl) {
+ if (reqCacheControl?.["only-if-cached"]) {
+ let aborted2 = false;
+ try {
+ if (typeof handler2.onConnect === "function") {
+ handler2.onConnect(() => {
+ aborted2 = true;
+ });
+ if (aborted2) {
+ return;
+ }
+ }
+ if (typeof handler2.onHeaders === "function") {
+ handler2.onHeaders(504, [], () => {
+ }, "Gateway Timeout");
+ if (aborted2) {
+ return;
+ }
+ }
+ if (typeof handler2.onComplete === "function") {
+ handler2.onComplete([]);
+ }
+ } catch (err) {
+ if (typeof handler2.onError === "function") {
+ handler2.onError(err);
+ }
+ }
+ return true;
+ }
+ return dispatch(opts, new CacheHandler(globalOpts, cacheKey, handler2));
+ }
+ function sendCachedValue(handler2, opts, result, age, context, isStale) {
+ const stream = util3.isStream(result.body) ? result.body : Readable.from(result.body ?? []);
+ assert2(!stream.destroyed, "stream should not be destroyed");
+ assert2(!stream.readableDidRead, "stream should not be readableDidRead");
+ const controller = {
+ resume() {
+ stream.resume();
+ },
+ pause() {
+ stream.pause();
+ },
+ get paused() {
+ return stream.isPaused();
+ },
+ get aborted() {
+ return stream.destroyed;
+ },
+ get reason() {
+ return stream.errored;
+ },
+ abort(reason) {
+ stream.destroy(reason ?? new AbortError2());
+ }
+ };
+ stream.on("error", function(err) {
+ if (!this.readableEnded) {
+ if (typeof handler2.onResponseError === "function") {
+ handler2.onResponseError(controller, err);
+ } else {
+ throw err;
+ }
+ }
+ }).on("close", function() {
+ if (!this.errored) {
+ handler2.onResponseEnd?.(controller, {});
+ }
+ });
+ handler2.onRequestStart?.(controller, context);
+ if (stream.destroyed) {
+ return;
+ }
+ const headers = { ...result.headers, age: String(age) };
+ if (isStale) {
+ headers.warning = '110 - "response is stale"';
+ }
+ handler2.onResponseStart?.(controller, result.statusCode, headers, result.statusMessage);
+ if (opts.method === "HEAD") {
+ stream.destroy();
+ } else {
+ stream.on("data", function(chunk) {
+ handler2.onResponseData?.(controller, chunk);
+ });
+ }
+ }
+ function handleResult4(dispatch, globalOpts, cacheKey, handler2, opts, reqCacheControl, result) {
+ if (!result) {
+ return handleUncachedResponse(dispatch, globalOpts, cacheKey, handler2, opts, reqCacheControl);
+ }
+ const now = Date.now();
+ if (now > result.deleteAt) {
+ return dispatch(opts, new CacheHandler(globalOpts, cacheKey, handler2));
+ }
+ const age = Math.round((now - result.cachedAt) / 1e3);
+ if (reqCacheControl?.["max-age"] && age >= reqCacheControl["max-age"]) {
+ return dispatch(opts, handler2);
+ }
+ if (needsRevalidation(result, reqCacheControl)) {
+ if (util3.isStream(opts.body) && util3.bodyLength(opts.body) !== 0) {
+ return dispatch(opts, new CacheHandler(globalOpts, cacheKey, handler2));
+ }
+ if (withinStaleWhileRevalidateWindow(result)) {
+ sendCachedValue(handler2, opts, result, age, null, true);
+ queueMicrotask(() => {
+ let headers2 = {
+ ...opts.headers,
+ "if-modified-since": new Date(result.cachedAt).toUTCString()
+ };
+ if (result.etag) {
+ headers2["if-none-match"] = result.etag;
+ }
+ if (result.vary) {
+ headers2 = {
+ ...headers2,
+ ...result.vary
+ };
+ }
+ dispatch(
+ {
+ ...opts,
+ headers: headers2
+ },
+ new CacheHandler(globalOpts, cacheKey, {
+ // Silent handler that just updates the cache
+ onRequestStart() {
+ },
+ onRequestUpgrade() {
+ },
+ onResponseStart() {
+ },
+ onResponseData() {
+ },
+ onResponseEnd() {
+ },
+ onResponseError() {
+ }
+ })
+ );
+ });
+ return true;
+ }
+ let withinStaleIfErrorThreshold = false;
+ const staleIfErrorExpiry = result.cacheControlDirectives["stale-if-error"] ?? reqCacheControl?.["stale-if-error"];
+ if (staleIfErrorExpiry) {
+ withinStaleIfErrorThreshold = now < result.staleAt + staleIfErrorExpiry * 1e3;
+ }
+ let headers = {
+ ...opts.headers,
+ "if-modified-since": new Date(result.cachedAt).toUTCString()
+ };
+ if (result.etag) {
+ headers["if-none-match"] = result.etag;
+ }
+ if (result.vary) {
+ headers = {
+ ...headers,
+ ...result.vary
+ };
+ }
+ return dispatch(
+ {
+ ...opts,
+ headers
+ },
+ new CacheRevalidationHandler(
+ (success, context) => {
+ if (success) {
+ sendCachedValue(handler2, opts, result, age, context, true);
+ } else if (util3.isStream(result.body)) {
+ result.body.on("error", () => {
+ }).destroy();
+ }
+ },
+ new CacheHandler(globalOpts, cacheKey, handler2),
+ withinStaleIfErrorThreshold
+ )
+ );
+ }
+ if (util3.isStream(opts.body)) {
+ opts.body.on("error", () => {
+ }).destroy();
+ }
+ sendCachedValue(handler2, opts, result, age, null, false);
+ }
+ module.exports = (opts = {}) => {
+ const {
+ store = new MemoryCacheStore(),
+ methods = ["GET"],
+ cacheByDefault = void 0,
+ type: type2 = "shared"
+ } = opts;
+ if (typeof opts !== "object" || opts === null) {
+ throw new TypeError(`expected type of opts to be an Object, got ${opts === null ? "null" : typeof opts}`);
+ }
+ assertCacheStore(store, "opts.store");
+ assertCacheMethods(methods, "opts.methods");
+ if (typeof cacheByDefault !== "undefined" && typeof cacheByDefault !== "number") {
+ throw new TypeError(`expected opts.cacheByDefault to be number or undefined, got ${typeof cacheByDefault}`);
+ }
+ if (typeof type2 !== "undefined" && type2 !== "shared" && type2 !== "private") {
+ throw new TypeError(`expected opts.type to be shared, private, or undefined, got ${typeof type2}`);
+ }
+ const globalOpts = {
+ store,
+ methods,
+ cacheByDefault,
+ type: type2
+ };
+ const safeMethodsToNotCache = util3.safeHTTPMethods.filter((method) => methods.includes(method) === false);
+ return (dispatch) => {
+ return (opts2, handler2) => {
+ if (!opts2.origin || safeMethodsToNotCache.includes(opts2.method)) {
+ return dispatch(opts2, handler2);
+ }
+ opts2 = {
+ ...opts2,
+ headers: normalizeHeaders(opts2)
+ };
+ const reqCacheControl = opts2.headers?.["cache-control"] ? parseCacheControlHeader(opts2.headers["cache-control"]) : void 0;
+ if (reqCacheControl?.["no-store"]) {
+ return dispatch(opts2, handler2);
+ }
+ const cacheKey = makeCacheKey(opts2);
+ const result = store.get(cacheKey);
+ if (result && typeof result.then === "function") {
+ result.then((result2) => {
+ handleResult4(
+ dispatch,
+ globalOpts,
+ cacheKey,
+ handler2,
+ opts2,
+ reqCacheControl,
+ result2
+ );
+ });
+ } else {
+ handleResult4(
+ dispatch,
+ globalOpts,
+ cacheKey,
+ handler2,
+ opts2,
+ reqCacheControl,
+ result
+ );
+ }
+ return true;
+ };
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/decompress.js
+var require_decompress = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/interceptor/decompress.js"(exports, module) {
+ "use strict";
+ var { createInflate, createGunzip, createBrotliDecompress, createZstdDecompress } = __require("node:zlib");
+ var { pipeline: pipeline2 } = __require("node:stream");
+ var DecoratorHandler = require_decorator_handler();
+ var supportedEncodings = {
+ gzip: createGunzip,
+ "x-gzip": createGunzip,
+ br: createBrotliDecompress,
+ deflate: createInflate,
+ compress: createInflate,
+ "x-compress": createInflate,
+ ...createZstdDecompress ? { zstd: createZstdDecompress } : {}
+ };
+ var defaultSkipStatusCodes = (
+ /** @type {const} */
+ [204, 304]
+ );
+ var warningEmitted = (
+ /** @type {boolean} */
+ false
+ );
+ var DecompressHandler = class extends DecoratorHandler {
+ /** @type {Transform[]} */
+ #decompressors = [];
+ /** @type {NodeJS.WritableStream&NodeJS.ReadableStream|null} */
+ #pipelineStream;
+ /** @type {Readonly} */
+ #skipStatusCodes;
+ /** @type {boolean} */
+ #skipErrorResponses;
+ constructor(handler2, { skipStatusCodes = defaultSkipStatusCodes, skipErrorResponses = true } = {}) {
+ super(handler2);
+ this.#skipStatusCodes = skipStatusCodes;
+ this.#skipErrorResponses = skipErrorResponses;
+ }
+ /**
+ * Determines if decompression should be skipped based on encoding and status code
+ * @param {string} contentEncoding - Content-Encoding header value
+ * @param {number} statusCode - HTTP status code of the response
+ * @returns {boolean} - True if decompression should be skipped
+ */
+ #shouldSkipDecompression(contentEncoding, statusCode) {
+ if (!contentEncoding || statusCode < 200) return true;
+ if (this.#skipStatusCodes.includes(statusCode)) return true;
+ if (this.#skipErrorResponses && statusCode >= 400) return true;
+ return false;
+ }
+ /**
+ * Creates a chain of decompressors for multiple content encodings
+ *
+ * @param {string} encodings - Comma-separated list of content encodings
+ * @returns {Array} - Array of decompressor streams
+ */
+ #createDecompressionChain(encodings) {
+ const parts = encodings.split(",");
+ const decompressors = [];
+ for (let i = parts.length - 1; i >= 0; i--) {
+ const encoding = parts[i].trim();
+ if (!encoding) continue;
+ if (!supportedEncodings[encoding]) {
+ decompressors.length = 0;
+ return decompressors;
+ }
+ decompressors.push(supportedEncodings[encoding]());
+ }
+ return decompressors;
+ }
+ /**
+ * Sets up event handlers for a decompressor stream using readable events
+ * @param {DecompressorStream} decompressor - The decompressor stream
+ * @param {Controller} controller - The controller to coordinate with
+ * @returns {void}
+ */
+ #setupDecompressorEvents(decompressor, controller) {
+ decompressor.on("readable", () => {
+ let chunk;
+ while ((chunk = decompressor.read()) !== null) {
+ const result = super.onResponseData(controller, chunk);
+ if (result === false) {
+ break;
+ }
+ }
+ });
+ decompressor.on("error", (error41) => {
+ super.onResponseError(controller, error41);
+ });
+ }
+ /**
+ * Sets up event handling for a single decompressor
+ * @param {Controller} controller - The controller to handle events
+ * @returns {void}
+ */
+ #setupSingleDecompressor(controller) {
+ const decompressor = this.#decompressors[0];
+ this.#setupDecompressorEvents(decompressor, controller);
+ decompressor.on("end", () => {
+ super.onResponseEnd(controller, {});
+ });
+ }
+ /**
+ * Sets up event handling for multiple chained decompressors using pipeline
+ * @param {Controller} controller - The controller to handle events
+ * @returns {void}
+ */
+ #setupMultipleDecompressors(controller) {
+ const lastDecompressor = this.#decompressors[this.#decompressors.length - 1];
+ this.#setupDecompressorEvents(lastDecompressor, controller);
+ this.#pipelineStream = pipeline2(this.#decompressors, (err) => {
+ if (err) {
+ super.onResponseError(controller, err);
+ return;
+ }
+ super.onResponseEnd(controller, {});
+ });
+ }
+ /**
+ * Cleans up decompressor references to prevent memory leaks
+ * @returns {void}
+ */
+ #cleanupDecompressors() {
+ this.#decompressors.length = 0;
+ this.#pipelineStream = null;
+ }
+ /**
+ * @param {Controller} controller
+ * @param {number} statusCode
+ * @param {Record} headers
+ * @param {string} statusMessage
+ * @returns {void}
+ */
+ onResponseStart(controller, statusCode, headers, statusMessage) {
+ const contentEncoding = headers["content-encoding"];
+ if (this.#shouldSkipDecompression(contentEncoding, statusCode)) {
+ return super.onResponseStart(controller, statusCode, headers, statusMessage);
+ }
+ const decompressors = this.#createDecompressionChain(contentEncoding.toLowerCase());
+ if (decompressors.length === 0) {
+ this.#cleanupDecompressors();
+ return super.onResponseStart(controller, statusCode, headers, statusMessage);
+ }
+ this.#decompressors = decompressors;
+ const { "content-encoding": _, "content-length": __, ...newHeaders } = headers;
+ if (this.#decompressors.length === 1) {
+ this.#setupSingleDecompressor(controller);
+ } else {
+ this.#setupMultipleDecompressors(controller);
+ }
+ super.onResponseStart(controller, statusCode, newHeaders, statusMessage);
+ }
+ /**
+ * @param {Controller} controller
+ * @param {Buffer} chunk
+ * @returns {void}
+ */
+ onResponseData(controller, chunk) {
+ if (this.#decompressors.length > 0) {
+ this.#decompressors[0].write(chunk);
+ return;
+ }
+ super.onResponseData(controller, chunk);
+ }
+ /**
+ * @param {Controller} controller
+ * @param {Record | undefined} trailers
+ * @returns {void}
+ */
+ onResponseEnd(controller, trailers) {
+ if (this.#decompressors.length > 0) {
+ this.#decompressors[0].end();
+ this.#cleanupDecompressors();
+ return;
+ }
+ super.onResponseEnd(controller, trailers);
+ }
+ /**
+ * @param {Controller} controller
+ * @param {Error} err
+ * @returns {void}
+ */
+ onResponseError(controller, err) {
+ if (this.#decompressors.length > 0) {
+ for (const decompressor of this.#decompressors) {
+ decompressor.destroy(err);
+ }
+ this.#cleanupDecompressors();
+ }
+ super.onResponseError(controller, err);
+ }
+ };
+ function createDecompressInterceptor(options = {}) {
+ if (!warningEmitted) {
+ process.emitWarning(
+ "DecompressInterceptor is experimental and subject to change",
+ "ExperimentalWarning"
+ );
+ warningEmitted = true;
+ }
+ return (dispatch) => {
+ return (opts, handler2) => {
+ const decompressHandler = new DecompressHandler(handler2, options);
+ return dispatch(opts, decompressHandler);
+ };
+ };
+ }
+ module.exports = createDecompressInterceptor;
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/cache/sqlite-cache-store.js
+var require_sqlite_cache_store = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/cache/sqlite-cache-store.js"(exports, module) {
+ "use strict";
+ var { Writable } = __require("node:stream");
+ var { assertCacheKey, assertCacheValue } = require_cache5();
+ var DatabaseSync;
+ var VERSION9 = 3;
+ var MAX_ENTRY_SIZE = 2 * 1e3 * 1e3 * 1e3;
+ module.exports = class SqliteCacheStore {
+ #maxEntrySize = MAX_ENTRY_SIZE;
+ #maxCount = Infinity;
+ /**
+ * @type {import('node:sqlite').DatabaseSync}
+ */
+ #db;
+ /**
+ * @type {import('node:sqlite').StatementSync}
+ */
+ #getValuesQuery;
+ /**
+ * @type {import('node:sqlite').StatementSync}
+ */
+ #updateValueQuery;
+ /**
+ * @type {import('node:sqlite').StatementSync}
+ */
+ #insertValueQuery;
+ /**
+ * @type {import('node:sqlite').StatementSync}
+ */
+ #deleteExpiredValuesQuery;
+ /**
+ * @type {import('node:sqlite').StatementSync}
+ */
+ #deleteByUrlQuery;
+ /**
+ * @type {import('node:sqlite').StatementSync}
+ */
+ #countEntriesQuery;
+ /**
+ * @type {import('node:sqlite').StatementSync | null}
+ */
+ #deleteOldValuesQuery;
+ /**
+ * @param {import('../../types/cache-interceptor.d.ts').default.SqliteCacheStoreOpts | undefined} opts
+ */
+ constructor(opts) {
+ if (opts) {
+ if (typeof opts !== "object") {
+ throw new TypeError("SqliteCacheStore options must be an object");
+ }
+ if (opts.maxEntrySize !== void 0) {
+ if (typeof opts.maxEntrySize !== "number" || !Number.isInteger(opts.maxEntrySize) || opts.maxEntrySize < 0) {
+ throw new TypeError("SqliteCacheStore options.maxEntrySize must be a non-negative integer");
+ }
+ if (opts.maxEntrySize > MAX_ENTRY_SIZE) {
+ throw new TypeError("SqliteCacheStore options.maxEntrySize must be less than 2gb");
+ }
+ this.#maxEntrySize = opts.maxEntrySize;
+ }
+ if (opts.maxCount !== void 0) {
+ if (typeof opts.maxCount !== "number" || !Number.isInteger(opts.maxCount) || opts.maxCount < 0) {
+ throw new TypeError("SqliteCacheStore options.maxCount must be a non-negative integer");
+ }
+ this.#maxCount = opts.maxCount;
+ }
+ }
+ if (!DatabaseSync) {
+ DatabaseSync = __require("node:sqlite").DatabaseSync;
+ }
+ this.#db = new DatabaseSync(opts?.location ?? ":memory:");
+ this.#db.exec(`
+ PRAGMA journal_mode = WAL;
+ PRAGMA synchronous = NORMAL;
+ PRAGMA temp_store = memory;
+ PRAGMA optimize;
+
+ CREATE TABLE IF NOT EXISTS cacheInterceptorV${VERSION9} (
+ -- Data specific to us
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
+ url TEXT NOT NULL,
+ method TEXT NOT NULL,
+
+ -- Data returned to the interceptor
+ body BUF NULL,
+ deleteAt INTEGER NOT NULL,
+ statusCode INTEGER NOT NULL,
+ statusMessage TEXT NOT NULL,
+ headers TEXT NULL,
+ cacheControlDirectives TEXT NULL,
+ etag TEXT NULL,
+ vary TEXT NULL,
+ cachedAt INTEGER NOT NULL,
+ staleAt INTEGER NOT NULL
+ );
+
+ CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION9}_getValuesQuery ON cacheInterceptorV${VERSION9}(url, method, deleteAt);
+ CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION9}_deleteByUrlQuery ON cacheInterceptorV${VERSION9}(deleteAt);
+ `);
+ this.#getValuesQuery = this.#db.prepare(`
+ SELECT
+ id,
+ body,
+ deleteAt,
+ statusCode,
+ statusMessage,
+ headers,
+ etag,
+ cacheControlDirectives,
+ vary,
+ cachedAt,
+ staleAt
+ FROM cacheInterceptorV${VERSION9}
+ WHERE
+ url = ?
+ AND method = ?
+ ORDER BY
+ deleteAt ASC
+ `);
+ this.#updateValueQuery = this.#db.prepare(`
+ UPDATE cacheInterceptorV${VERSION9} SET
+ body = ?,
+ deleteAt = ?,
+ statusCode = ?,
+ statusMessage = ?,
+ headers = ?,
+ etag = ?,
+ cacheControlDirectives = ?,
+ cachedAt = ?,
+ staleAt = ?
+ WHERE
+ id = ?
+ `);
+ this.#insertValueQuery = this.#db.prepare(`
+ INSERT INTO cacheInterceptorV${VERSION9} (
+ url,
+ method,
+ body,
+ deleteAt,
+ statusCode,
+ statusMessage,
+ headers,
+ etag,
+ cacheControlDirectives,
+ vary,
+ cachedAt,
+ staleAt
+ ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
+ `);
+ this.#deleteByUrlQuery = this.#db.prepare(
+ `DELETE FROM cacheInterceptorV${VERSION9} WHERE url = ?`
+ );
+ this.#countEntriesQuery = this.#db.prepare(
+ `SELECT COUNT(*) AS total FROM cacheInterceptorV${VERSION9}`
+ );
+ this.#deleteExpiredValuesQuery = this.#db.prepare(
+ `DELETE FROM cacheInterceptorV${VERSION9} WHERE deleteAt <= ?`
+ );
+ this.#deleteOldValuesQuery = this.#maxCount === Infinity ? null : this.#db.prepare(`
+ DELETE FROM cacheInterceptorV${VERSION9}
+ WHERE id IN (
+ SELECT
+ id
+ FROM cacheInterceptorV${VERSION9}
+ ORDER BY cachedAt DESC
+ LIMIT ?
+ )
+ `);
+ }
+ close() {
+ this.#db.close();
+ }
+ /**
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
+ * @returns {(import('../../types/cache-interceptor.d.ts').default.GetResult & { body?: Buffer }) | undefined}
+ */
+ get(key) {
+ assertCacheKey(key);
+ const value2 = this.#findValue(key);
+ return value2 ? {
+ body: value2.body ? Buffer.from(value2.body.buffer, value2.body.byteOffset, value2.body.byteLength) : void 0,
+ statusCode: value2.statusCode,
+ statusMessage: value2.statusMessage,
+ headers: value2.headers ? JSON.parse(value2.headers) : void 0,
+ etag: value2.etag ? value2.etag : void 0,
+ vary: value2.vary ? JSON.parse(value2.vary) : void 0,
+ cacheControlDirectives: value2.cacheControlDirectives ? JSON.parse(value2.cacheControlDirectives) : void 0,
+ cachedAt: value2.cachedAt,
+ staleAt: value2.staleAt,
+ deleteAt: value2.deleteAt
+ } : void 0;
+ }
+ /**
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheValue & { body: null | Buffer | Array}} value
+ */
+ set(key, value2) {
+ assertCacheKey(key);
+ const url2 = this.#makeValueUrl(key);
+ const body = Array.isArray(value2.body) ? Buffer.concat(value2.body) : value2.body;
+ const size = body?.byteLength;
+ if (size && size > this.#maxEntrySize) {
+ return;
+ }
+ const existingValue = this.#findValue(key, true);
+ if (existingValue) {
+ this.#updateValueQuery.run(
+ body,
+ value2.deleteAt,
+ value2.statusCode,
+ value2.statusMessage,
+ value2.headers ? JSON.stringify(value2.headers) : null,
+ value2.etag ? value2.etag : null,
+ value2.cacheControlDirectives ? JSON.stringify(value2.cacheControlDirectives) : null,
+ value2.cachedAt,
+ value2.staleAt,
+ existingValue.id
+ );
+ } else {
+ this.#prune();
+ this.#insertValueQuery.run(
+ url2,
+ key.method,
+ body,
+ value2.deleteAt,
+ value2.statusCode,
+ value2.statusMessage,
+ value2.headers ? JSON.stringify(value2.headers) : null,
+ value2.etag ? value2.etag : null,
+ value2.cacheControlDirectives ? JSON.stringify(value2.cacheControlDirectives) : null,
+ value2.vary ? JSON.stringify(value2.vary) : null,
+ value2.cachedAt,
+ value2.staleAt
+ );
+ }
+ }
+ /**
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheValue} value
+ * @returns {Writable | undefined}
+ */
+ createWriteStream(key, value2) {
+ assertCacheKey(key);
+ assertCacheValue(value2);
+ let size = 0;
+ const body = [];
+ const store = this;
+ return new Writable({
+ decodeStrings: true,
+ write(chunk, encoding, callback) {
+ size += chunk.byteLength;
+ if (size < store.#maxEntrySize) {
+ body.push(chunk);
+ } else {
+ this.destroy();
+ }
+ callback();
+ },
+ final(callback) {
+ store.set(key, { ...value2, body });
+ callback();
+ }
+ });
+ }
+ /**
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
+ */
+ delete(key) {
+ if (typeof key !== "object") {
+ throw new TypeError(`expected key to be object, got ${typeof key}`);
+ }
+ this.#deleteByUrlQuery.run(this.#makeValueUrl(key));
+ }
+ #prune() {
+ if (Number.isFinite(this.#maxCount) && this.size <= this.#maxCount) {
+ return 0;
+ }
+ {
+ const removed = this.#deleteExpiredValuesQuery.run(Date.now()).changes;
+ if (removed) {
+ return removed;
+ }
+ }
+ {
+ const removed = this.#deleteOldValuesQuery?.run(Math.max(Math.floor(this.#maxCount * 0.1), 1)).changes;
+ if (removed) {
+ return removed;
+ }
+ }
+ return 0;
+ }
+ /**
+ * Counts the number of rows in the cache
+ * @returns {Number}
+ */
+ get size() {
+ const { total } = this.#countEntriesQuery.get();
+ return total;
+ }
+ /**
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
+ * @returns {string}
+ */
+ #makeValueUrl(key) {
+ return `${key.origin}/${key.path}`;
+ }
+ /**
+ * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
+ * @param {boolean} [canBeExpired=false]
+ * @returns {SqliteStoreValue | undefined}
+ */
+ #findValue(key, canBeExpired = false) {
+ const url2 = this.#makeValueUrl(key);
+ const { headers, method } = key;
+ const values = this.#getValuesQuery.all(url2, method);
+ if (values.length === 0) {
+ return void 0;
+ }
+ const now = Date.now();
+ for (const value2 of values) {
+ if (now >= value2.deleteAt && !canBeExpired) {
+ return void 0;
+ }
+ let matches = true;
+ if (value2.vary) {
+ const vary = JSON.parse(value2.vary);
+ for (const header in vary) {
+ if (!headerValueEquals(headers[header], vary[header])) {
+ matches = false;
+ break;
+ }
+ }
+ }
+ if (matches) {
+ return value2;
+ }
+ }
+ return void 0;
+ }
+ };
+ function headerValueEquals(lhs, rhs) {
+ if (lhs == null && rhs == null) {
+ return true;
+ }
+ if (lhs == null && rhs != null || lhs != null && rhs == null) {
+ return false;
+ }
+ if (Array.isArray(lhs) && Array.isArray(rhs)) {
+ if (lhs.length !== rhs.length) {
+ return false;
+ }
+ return lhs.every((x, i) => x === rhs[i]);
+ }
+ return lhs === rhs;
+ }
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/headers.js
+var require_headers2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/headers.js"(exports, module) {
+ "use strict";
+ var { kConstruct } = require_symbols6();
+ var { kEnumerableProperty } = require_util11();
+ var {
+ iteratorMixin,
+ isValidHeaderName,
+ isValidHeaderValue
+ } = require_util12();
+ var { webidl } = require_webidl2();
+ var assert2 = __require("node:assert");
+ var util3 = __require("node:util");
+ function isHTTPWhiteSpaceCharCode(code) {
+ return code === 10 || code === 13 || code === 9 || code === 32;
+ }
+ function headerValueNormalize(potentialValue) {
+ let i = 0;
+ let j = potentialValue.length;
+ while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(j - 1))) --j;
+ while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(i))) ++i;
+ return i === 0 && j === potentialValue.length ? potentialValue : potentialValue.substring(i, j);
+ }
+ function fill(headers, object2) {
+ if (Array.isArray(object2)) {
+ for (let i = 0; i < object2.length; ++i) {
+ const header = object2[i];
+ if (header.length !== 2) {
+ throw webidl.errors.exception({
+ header: "Headers constructor",
+ message: `expected name/value pair to be length 2, found ${header.length}.`
+ });
+ }
+ appendHeader(headers, header[0], header[1]);
+ }
+ } else if (typeof object2 === "object" && object2 !== null) {
+ const keys = Object.keys(object2);
+ for (let i = 0; i < keys.length; ++i) {
+ appendHeader(headers, keys[i], object2[keys[i]]);
+ }
+ } else {
+ throw webidl.errors.conversionFailed({
+ prefix: "Headers constructor",
+ argument: "Argument 1",
+ types: ["sequence>", "record"]
+ });
+ }
+ }
+ function appendHeader(headers, name, value2) {
+ value2 = headerValueNormalize(value2);
+ if (!isValidHeaderName(name)) {
+ throw webidl.errors.invalidArgument({
+ prefix: "Headers.append",
+ value: name,
+ type: "header name"
+ });
+ } else if (!isValidHeaderValue(value2)) {
+ throw webidl.errors.invalidArgument({
+ prefix: "Headers.append",
+ value: value2,
+ type: "header value"
+ });
+ }
+ if (getHeadersGuard(headers) === "immutable") {
+ throw new TypeError("immutable");
+ }
+ return getHeadersList(headers).append(name, value2, false);
+ }
+ function headersListSortAndCombine(target) {
+ const headersList = getHeadersList(target);
+ if (!headersList) {
+ return [];
+ }
+ if (headersList.sortedMap) {
+ return headersList.sortedMap;
+ }
+ const headers = [];
+ const names = headersList.toSortedArray();
+ const cookies = headersList.cookies;
+ if (cookies === null || cookies.length === 1) {
+ return headersList.sortedMap = names;
+ }
+ for (let i = 0; i < names.length; ++i) {
+ const { 0: name, 1: value2 } = names[i];
+ if (name === "set-cookie") {
+ for (let j = 0; j < cookies.length; ++j) {
+ headers.push([name, cookies[j]]);
+ }
+ } else {
+ headers.push([name, value2]);
+ }
+ }
+ return headersList.sortedMap = headers;
+ }
+ function compareHeaderName(a, b) {
+ return a[0] < b[0] ? -1 : 1;
+ }
+ var HeadersList = class _HeadersList {
+ /** @type {[string, string][]|null} */
+ cookies = null;
+ sortedMap;
+ headersMap;
+ constructor(init) {
+ if (init instanceof _HeadersList) {
+ this.headersMap = new Map(init.headersMap);
+ this.sortedMap = init.sortedMap;
+ this.cookies = init.cookies === null ? null : [...init.cookies];
+ } else {
+ this.headersMap = new Map(init);
+ this.sortedMap = null;
+ }
+ }
+ /**
+ * @see https://fetch.spec.whatwg.org/#header-list-contains
+ * @param {string} name
+ * @param {boolean} isLowerCase
+ */
+ contains(name, isLowerCase) {
+ return this.headersMap.has(isLowerCase ? name : name.toLowerCase());
+ }
+ clear() {
+ this.headersMap.clear();
+ this.sortedMap = null;
+ this.cookies = null;
+ }
+ /**
+ * @see https://fetch.spec.whatwg.org/#concept-header-list-append
+ * @param {string} name
+ * @param {string} value
+ * @param {boolean} isLowerCase
+ */
+ append(name, value2, isLowerCase) {
+ this.sortedMap = null;
+ const lowercaseName = isLowerCase ? name : name.toLowerCase();
+ const exists = this.headersMap.get(lowercaseName);
+ if (exists) {
+ const delimiter = lowercaseName === "cookie" ? "; " : ", ";
+ this.headersMap.set(lowercaseName, {
+ name: exists.name,
+ value: `${exists.value}${delimiter}${value2}`
+ });
+ } else {
+ this.headersMap.set(lowercaseName, { name, value: value2 });
+ }
+ if (lowercaseName === "set-cookie") {
+ (this.cookies ??= []).push(value2);
+ }
+ }
+ /**
+ * @see https://fetch.spec.whatwg.org/#concept-header-list-set
+ * @param {string} name
+ * @param {string} value
+ * @param {boolean} isLowerCase
+ */
+ set(name, value2, isLowerCase) {
+ this.sortedMap = null;
+ const lowercaseName = isLowerCase ? name : name.toLowerCase();
+ if (lowercaseName === "set-cookie") {
+ this.cookies = [value2];
+ }
+ this.headersMap.set(lowercaseName, { name, value: value2 });
+ }
+ /**
+ * @see https://fetch.spec.whatwg.org/#concept-header-list-delete
+ * @param {string} name
+ * @param {boolean} isLowerCase
+ */
+ delete(name, isLowerCase) {
+ this.sortedMap = null;
+ if (!isLowerCase) name = name.toLowerCase();
+ if (name === "set-cookie") {
+ this.cookies = null;
+ }
+ this.headersMap.delete(name);
+ }
+ /**
+ * @see https://fetch.spec.whatwg.org/#concept-header-list-get
+ * @param {string} name
+ * @param {boolean} isLowerCase
+ * @returns {string | null}
+ */
+ get(name, isLowerCase) {
+ return this.headersMap.get(isLowerCase ? name : name.toLowerCase())?.value ?? null;
+ }
+ *[Symbol.iterator]() {
+ for (const { 0: name, 1: { value: value2 } } of this.headersMap) {
+ yield [name, value2];
+ }
+ }
+ get entries() {
+ const headers = {};
+ if (this.headersMap.size !== 0) {
+ for (const { name, value: value2 } of this.headersMap.values()) {
+ headers[name] = value2;
+ }
+ }
+ return headers;
+ }
+ rawValues() {
+ return this.headersMap.values();
+ }
+ get entriesList() {
+ const headers = [];
+ if (this.headersMap.size !== 0) {
+ for (const { 0: lowerName, 1: { name, value: value2 } } of this.headersMap) {
+ if (lowerName === "set-cookie") {
+ for (const cookie of this.cookies) {
+ headers.push([name, cookie]);
+ }
+ } else {
+ headers.push([name, value2]);
+ }
+ }
+ }
+ return headers;
+ }
+ // https://fetch.spec.whatwg.org/#convert-header-names-to-a-sorted-lowercase-set
+ toSortedArray() {
+ const size = this.headersMap.size;
+ const array = new Array(size);
+ if (size <= 32) {
+ if (size === 0) {
+ return array;
+ }
+ const iterator2 = this.headersMap[Symbol.iterator]();
+ const firstValue = iterator2.next().value;
+ array[0] = [firstValue[0], firstValue[1].value];
+ assert2(firstValue[1].value !== null);
+ for (let i = 1, j = 0, right = 0, left = 0, pivot = 0, x, value2; i < size; ++i) {
+ value2 = iterator2.next().value;
+ x = array[i] = [value2[0], value2[1].value];
+ assert2(x[1] !== null);
+ left = 0;
+ right = i;
+ while (left < right) {
+ pivot = left + (right - left >> 1);
+ if (array[pivot][0] <= x[0]) {
+ left = pivot + 1;
+ } else {
+ right = pivot;
+ }
+ }
+ if (i !== pivot) {
+ j = i;
+ while (j > left) {
+ array[j] = array[--j];
+ }
+ array[left] = x;
+ }
+ }
+ if (!iterator2.next().done) {
+ throw new TypeError("Unreachable");
+ }
+ return array;
+ } else {
+ let i = 0;
+ for (const { 0: name, 1: { value: value2 } } of this.headersMap) {
+ array[i++] = [name, value2];
+ assert2(value2 !== null);
+ }
+ return array.sort(compareHeaderName);
+ }
+ }
+ };
+ var Headers2 = class _Headers {
+ #guard;
+ /**
+ * @type {HeadersList}
+ */
+ #headersList;
+ /**
+ * @param {HeadersInit|Symbol} [init]
+ * @returns
+ */
+ constructor(init = void 0) {
+ webidl.util.markAsUncloneable(this);
+ if (init === kConstruct) {
+ return;
+ }
+ this.#headersList = new HeadersList();
+ this.#guard = "none";
+ if (init !== void 0) {
+ init = webidl.converters.HeadersInit(init, "Headers constructor", "init");
+ fill(this, init);
+ }
+ }
+ // https://fetch.spec.whatwg.org/#dom-headers-append
+ append(name, value2) {
+ webidl.brandCheck(this, _Headers);
+ webidl.argumentLengthCheck(arguments, 2, "Headers.append");
+ const prefix = "Headers.append";
+ name = webidl.converters.ByteString(name, prefix, "name");
+ value2 = webidl.converters.ByteString(value2, prefix, "value");
+ return appendHeader(this, name, value2);
+ }
+ // https://fetch.spec.whatwg.org/#dom-headers-delete
+ delete(name) {
+ webidl.brandCheck(this, _Headers);
+ webidl.argumentLengthCheck(arguments, 1, "Headers.delete");
+ const prefix = "Headers.delete";
+ name = webidl.converters.ByteString(name, prefix, "name");
+ if (!isValidHeaderName(name)) {
+ throw webidl.errors.invalidArgument({
+ prefix: "Headers.delete",
+ value: name,
+ type: "header name"
+ });
+ }
+ if (this.#guard === "immutable") {
+ throw new TypeError("immutable");
+ }
+ if (!this.#headersList.contains(name, false)) {
+ return;
+ }
+ this.#headersList.delete(name, false);
+ }
+ // https://fetch.spec.whatwg.org/#dom-headers-get
+ get(name) {
+ webidl.brandCheck(this, _Headers);
+ webidl.argumentLengthCheck(arguments, 1, "Headers.get");
+ const prefix = "Headers.get";
+ name = webidl.converters.ByteString(name, prefix, "name");
+ if (!isValidHeaderName(name)) {
+ throw webidl.errors.invalidArgument({
+ prefix,
+ value: name,
+ type: "header name"
+ });
+ }
+ return this.#headersList.get(name, false);
+ }
+ // https://fetch.spec.whatwg.org/#dom-headers-has
+ has(name) {
+ webidl.brandCheck(this, _Headers);
+ webidl.argumentLengthCheck(arguments, 1, "Headers.has");
+ const prefix = "Headers.has";
+ name = webidl.converters.ByteString(name, prefix, "name");
+ if (!isValidHeaderName(name)) {
+ throw webidl.errors.invalidArgument({
+ prefix,
+ value: name,
+ type: "header name"
+ });
+ }
+ return this.#headersList.contains(name, false);
+ }
+ // https://fetch.spec.whatwg.org/#dom-headers-set
+ set(name, value2) {
+ webidl.brandCheck(this, _Headers);
+ webidl.argumentLengthCheck(arguments, 2, "Headers.set");
+ const prefix = "Headers.set";
+ name = webidl.converters.ByteString(name, prefix, "name");
+ value2 = webidl.converters.ByteString(value2, prefix, "value");
+ value2 = headerValueNormalize(value2);
+ if (!isValidHeaderName(name)) {
+ throw webidl.errors.invalidArgument({
+ prefix,
+ value: name,
+ type: "header name"
+ });
+ } else if (!isValidHeaderValue(value2)) {
+ throw webidl.errors.invalidArgument({
+ prefix,
+ value: value2,
+ type: "header value"
+ });
+ }
+ if (this.#guard === "immutable") {
+ throw new TypeError("immutable");
+ }
+ this.#headersList.set(name, value2, false);
+ }
+ // https://fetch.spec.whatwg.org/#dom-headers-getsetcookie
+ getSetCookie() {
+ webidl.brandCheck(this, _Headers);
+ const list = this.#headersList.cookies;
+ if (list) {
+ return [...list];
+ }
+ return [];
+ }
+ [util3.inspect.custom](depth, options) {
+ options.depth ??= depth;
+ return `Headers ${util3.formatWithOptions(options, this.#headersList.entries)}`;
+ }
+ static getHeadersGuard(o) {
+ return o.#guard;
+ }
+ static setHeadersGuard(o, guard) {
+ o.#guard = guard;
+ }
+ /**
+ * @param {Headers} o
+ */
+ static getHeadersList(o) {
+ return o.#headersList;
+ }
+ /**
+ * @param {Headers} target
+ * @param {HeadersList} list
+ */
+ static setHeadersList(target, list) {
+ target.#headersList = list;
+ }
+ };
+ var { getHeadersGuard, setHeadersGuard, getHeadersList, setHeadersList } = Headers2;
+ Reflect.deleteProperty(Headers2, "getHeadersGuard");
+ Reflect.deleteProperty(Headers2, "setHeadersGuard");
+ Reflect.deleteProperty(Headers2, "getHeadersList");
+ Reflect.deleteProperty(Headers2, "setHeadersList");
+ iteratorMixin("Headers", Headers2, headersListSortAndCombine, 0, 1);
+ Object.defineProperties(Headers2.prototype, {
+ append: kEnumerableProperty,
+ delete: kEnumerableProperty,
+ get: kEnumerableProperty,
+ has: kEnumerableProperty,
+ set: kEnumerableProperty,
+ getSetCookie: kEnumerableProperty,
+ [Symbol.toStringTag]: {
+ value: "Headers",
+ configurable: true
+ },
+ [util3.inspect.custom]: {
+ enumerable: false
+ }
+ });
+ webidl.converters.HeadersInit = function(V, prefix, argument) {
+ if (webidl.util.Type(V) === webidl.util.Types.OBJECT) {
+ const iterator2 = Reflect.get(V, Symbol.iterator);
+ if (!util3.types.isProxy(V) && iterator2 === Headers2.prototype.entries) {
+ try {
+ return getHeadersList(V).entriesList;
+ } catch {
+ }
+ }
+ if (typeof iterator2 === "function") {
+ return webidl.converters["sequence>"](V, prefix, argument, iterator2.bind(V));
+ }
+ return webidl.converters["record"](V, prefix, argument);
+ }
+ throw webidl.errors.conversionFailed({
+ prefix: "Headers constructor",
+ argument: "Argument 1",
+ types: ["sequence>", "record"]
+ });
+ };
+ module.exports = {
+ fill,
+ // for test.
+ compareHeaderName,
+ Headers: Headers2,
+ HeadersList,
+ getHeadersGuard,
+ setHeadersGuard,
+ setHeadersList,
+ getHeadersList
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/response.js
+var require_response2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/response.js"(exports, module) {
+ "use strict";
+ var { Headers: Headers2, HeadersList, fill, getHeadersGuard, setHeadersGuard, setHeadersList } = require_headers2();
+ var { extractBody, cloneBody, mixinBody, streamRegistry, bodyUnusable } = require_body2();
+ var util3 = require_util11();
+ var nodeUtil = __require("node:util");
+ var { kEnumerableProperty } = util3;
+ var {
+ isValidReasonPhrase,
+ isCancelled,
+ isAborted: isAborted4,
+ serializeJavascriptValueToJSONString,
+ isErrorLike,
+ isomorphicEncode,
+ environmentSettingsObject: relevantRealm
+ } = require_util12();
+ var {
+ redirectStatusSet,
+ nullBodyStatus
+ } = require_constants8();
+ var { webidl } = require_webidl2();
+ var { URLSerializer } = require_data_url();
+ var { kConstruct } = require_symbols6();
+ var assert2 = __require("node:assert");
+ var textEncoder = new TextEncoder("utf-8");
+ var Response2 = class _Response {
+ /** @type {Headers} */
+ #headers;
+ #state;
+ // Creates network error Response.
+ static error() {
+ const responseObject = fromInnerResponse(makeNetworkError(), "immutable");
+ return responseObject;
+ }
+ // https://fetch.spec.whatwg.org/#dom-response-json
+ static json(data, init = void 0) {
+ webidl.argumentLengthCheck(arguments, 1, "Response.json");
+ if (init !== null) {
+ init = webidl.converters.ResponseInit(init);
+ }
+ const bytes = textEncoder.encode(
+ serializeJavascriptValueToJSONString(data)
+ );
+ const body = extractBody(bytes);
+ const responseObject = fromInnerResponse(makeResponse({}), "response");
+ initializeResponse(responseObject, init, { body: body[0], type: "application/json" });
+ return responseObject;
+ }
+ // Creates a redirect Response that redirects to url with status status.
+ static redirect(url2, status = 302) {
+ webidl.argumentLengthCheck(arguments, 1, "Response.redirect");
+ url2 = webidl.converters.USVString(url2);
+ status = webidl.converters["unsigned short"](status);
+ let parsedURL;
+ try {
+ parsedURL = new URL(url2, relevantRealm.settingsObject.baseUrl);
+ } catch (err) {
+ throw new TypeError(`Failed to parse URL from ${url2}`, { cause: err });
+ }
+ if (!redirectStatusSet.has(status)) {
+ throw new RangeError(`Invalid status code ${status}`);
+ }
+ const responseObject = fromInnerResponse(makeResponse({}), "immutable");
+ responseObject.#state.status = status;
+ const value2 = isomorphicEncode(URLSerializer(parsedURL));
+ responseObject.#state.headersList.append("location", value2, true);
+ return responseObject;
+ }
+ // https://fetch.spec.whatwg.org/#dom-response
+ constructor(body = null, init = void 0) {
+ webidl.util.markAsUncloneable(this);
+ if (body === kConstruct) {
+ return;
+ }
+ if (body !== null) {
+ body = webidl.converters.BodyInit(body, "Response", "body");
+ }
+ init = webidl.converters.ResponseInit(init);
+ this.#state = makeResponse({});
+ this.#headers = new Headers2(kConstruct);
+ setHeadersGuard(this.#headers, "response");
+ setHeadersList(this.#headers, this.#state.headersList);
+ let bodyWithType = null;
+ if (body != null) {
+ const [extractedBody, type2] = extractBody(body);
+ bodyWithType = { body: extractedBody, type: type2 };
+ }
+ initializeResponse(this, init, bodyWithType);
+ }
+ // Returns response’s type, e.g., "cors".
+ get type() {
+ webidl.brandCheck(this, _Response);
+ return this.#state.type;
+ }
+ // Returns response’s URL, if it has one; otherwise the empty string.
+ get url() {
+ webidl.brandCheck(this, _Response);
+ const urlList = this.#state.urlList;
+ const url2 = urlList[urlList.length - 1] ?? null;
+ if (url2 === null) {
+ return "";
+ }
+ return URLSerializer(url2, true);
+ }
+ // Returns whether response was obtained through a redirect.
+ get redirected() {
+ webidl.brandCheck(this, _Response);
+ return this.#state.urlList.length > 1;
+ }
+ // Returns response’s status.
+ get status() {
+ webidl.brandCheck(this, _Response);
+ return this.#state.status;
+ }
+ // Returns whether response’s status is an ok status.
+ get ok() {
+ webidl.brandCheck(this, _Response);
+ return this.#state.status >= 200 && this.#state.status <= 299;
+ }
+ // Returns response’s status message.
+ get statusText() {
+ webidl.brandCheck(this, _Response);
+ return this.#state.statusText;
+ }
+ // Returns response’s headers as Headers.
+ get headers() {
+ webidl.brandCheck(this, _Response);
+ return this.#headers;
+ }
+ get body() {
+ webidl.brandCheck(this, _Response);
+ return this.#state.body ? this.#state.body.stream : null;
+ }
+ get bodyUsed() {
+ webidl.brandCheck(this, _Response);
+ return !!this.#state.body && util3.isDisturbed(this.#state.body.stream);
+ }
+ // Returns a clone of response.
+ clone() {
+ webidl.brandCheck(this, _Response);
+ if (bodyUnusable(this.#state)) {
+ throw webidl.errors.exception({
+ header: "Response.clone",
+ message: "Body has already been consumed."
+ });
+ }
+ const clonedResponse = cloneResponse(this.#state);
+ if (this.#state.body?.stream) {
+ streamRegistry.register(this, new WeakRef(this.#state.body.stream));
+ }
+ return fromInnerResponse(clonedResponse, getHeadersGuard(this.#headers));
+ }
+ [nodeUtil.inspect.custom](depth, options) {
+ if (options.depth === null) {
+ options.depth = 2;
+ }
+ options.colors ??= true;
+ const properties = {
+ 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 ${nodeUtil.formatWithOptions(options, properties)}`;
+ }
+ /**
+ * @param {Response} response
+ */
+ static getResponseHeaders(response) {
+ return response.#headers;
+ }
+ /**
+ * @param {Response} response
+ * @param {Headers} newHeaders
+ */
+ static setResponseHeaders(response, newHeaders) {
+ response.#headers = newHeaders;
+ }
+ /**
+ * @param {Response} response
+ */
+ static getResponseState(response) {
+ return response.#state;
+ }
+ /**
+ * @param {Response} response
+ * @param {any} newState
+ */
+ static setResponseState(response, newState) {
+ response.#state = newState;
+ }
+ };
+ var { getResponseHeaders, setResponseHeaders, getResponseState, setResponseState } = Response2;
+ Reflect.deleteProperty(Response2, "getResponseHeaders");
+ Reflect.deleteProperty(Response2, "setResponseHeaders");
+ Reflect.deleteProperty(Response2, "getResponseState");
+ Reflect.deleteProperty(Response2, "setResponseState");
+ mixinBody(Response2, getResponseState);
+ Object.defineProperties(Response2.prototype, {
+ type: kEnumerableProperty,
+ url: kEnumerableProperty,
+ status: kEnumerableProperty,
+ ok: kEnumerableProperty,
+ redirected: kEnumerableProperty,
+ statusText: kEnumerableProperty,
+ headers: kEnumerableProperty,
+ clone: kEnumerableProperty,
+ body: kEnumerableProperty,
+ bodyUsed: kEnumerableProperty,
+ [Symbol.toStringTag]: {
+ value: "Response",
+ configurable: true
+ }
+ });
+ Object.defineProperties(Response2, {
+ json: kEnumerableProperty,
+ redirect: kEnumerableProperty,
+ error: kEnumerableProperty
+ });
+ function cloneResponse(response) {
+ if (response.internalResponse) {
+ return filterResponse(
+ cloneResponse(response.internalResponse),
+ response.type
+ );
+ }
+ const newResponse = makeResponse({ ...response, body: null });
+ if (response.body != null) {
+ newResponse.body = cloneBody(response.body);
+ }
+ return newResponse;
+ }
+ function makeResponse(init) {
+ return {
+ aborted: false,
+ rangeRequested: false,
+ timingAllowPassed: false,
+ requestIncludesCredentials: false,
+ type: "default",
+ status: 200,
+ timingInfo: null,
+ cacheState: "",
+ statusText: "",
+ ...init,
+ headersList: init?.headersList ? new HeadersList(init?.headersList) : new HeadersList(),
+ urlList: init?.urlList ? [...init.urlList] : []
+ };
+ }
+ function makeNetworkError(reason) {
+ const isError = isErrorLike(reason);
+ return makeResponse({
+ type: "error",
+ status: 0,
+ error: isError ? reason : new Error(reason ? String(reason) : reason),
+ aborted: reason && reason.name === "AbortError"
+ });
+ }
+ function isNetworkError(response) {
+ return (
+ // A network error is a response whose type is "error",
+ response.type === "error" && // status is 0
+ response.status === 0
+ );
+ }
+ function makeFilteredResponse(response, state) {
+ state = {
+ internalResponse: response,
+ ...state
+ };
+ return new Proxy(response, {
+ get(target, p) {
+ return p in state ? state[p] : target[p];
+ },
+ set(target, p, value2) {
+ assert2(!(p in state));
+ target[p] = value2;
+ return true;
+ }
+ });
+ }
+ function filterResponse(response, type2) {
+ if (type2 === "basic") {
+ return makeFilteredResponse(response, {
+ type: "basic",
+ headersList: response.headersList
+ });
+ } else if (type2 === "cors") {
+ return makeFilteredResponse(response, {
+ type: "cors",
+ headersList: response.headersList
+ });
+ } else if (type2 === "opaque") {
+ return makeFilteredResponse(response, {
+ type: "opaque",
+ urlList: Object.freeze([]),
+ status: 0,
+ statusText: "",
+ body: null
+ });
+ } else if (type2 === "opaqueredirect") {
+ return makeFilteredResponse(response, {
+ type: "opaqueredirect",
+ status: 0,
+ statusText: "",
+ headersList: [],
+ body: null
+ });
+ } else {
+ assert2(false);
+ }
+ }
+ function makeAppropriateNetworkError(fetchParams, err = null) {
+ assert2(isCancelled(fetchParams));
+ return isAborted4(fetchParams) ? makeNetworkError(Object.assign(new DOMException("The operation was aborted.", "AbortError"), { cause: err })) : makeNetworkError(Object.assign(new DOMException("Request was cancelled."), { cause: err }));
+ }
+ function initializeResponse(response, init, body) {
+ if (init.status !== null && (init.status < 200 || init.status > 599)) {
+ throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');
+ }
+ if ("statusText" in init && init.statusText != null) {
+ if (!isValidReasonPhrase(String(init.statusText))) {
+ throw new TypeError("Invalid statusText");
+ }
+ }
+ if ("status" in init && init.status != null) {
+ getResponseState(response).status = init.status;
+ }
+ if ("statusText" in init && init.statusText != null) {
+ getResponseState(response).statusText = init.statusText;
+ }
+ if ("headers" in init && init.headers != null) {
+ fill(getResponseHeaders(response), init.headers);
+ }
+ if (body) {
+ if (nullBodyStatus.includes(response.status)) {
+ throw webidl.errors.exception({
+ header: "Response constructor",
+ message: `Invalid response status code ${response.status}`
+ });
+ }
+ getResponseState(response).body = body.body;
+ if (body.type != null && !getResponseState(response).headersList.contains("content-type", true)) {
+ getResponseState(response).headersList.append("content-type", body.type, true);
+ }
+ }
+ }
+ function fromInnerResponse(innerResponse, guard) {
+ const response = new Response2(kConstruct);
+ setResponseState(response, innerResponse);
+ const headers = new Headers2(kConstruct);
+ setResponseHeaders(response, headers);
+ setHeadersList(headers, innerResponse.headersList);
+ setHeadersGuard(headers, guard);
+ if (innerResponse.body?.stream) {
+ streamRegistry.register(response, new WeakRef(innerResponse.body.stream));
+ }
+ return response;
+ }
+ webidl.converters.XMLHttpRequestBodyInit = function(V, prefix, name) {
+ if (typeof V === "string") {
+ return webidl.converters.USVString(V, prefix, name);
+ }
+ if (webidl.is.Blob(V)) {
+ return V;
+ }
+ if (webidl.is.BufferSource(V)) {
+ return V;
+ }
+ if (webidl.is.FormData(V)) {
+ return V;
+ }
+ if (webidl.is.URLSearchParams(V)) {
+ return V;
+ }
+ return webidl.converters.DOMString(V, prefix, name);
+ };
+ webidl.converters.BodyInit = function(V, prefix, argument) {
+ if (webidl.is.ReadableStream(V)) {
+ return V;
+ }
+ if (V?.[Symbol.asyncIterator]) {
+ return V;
+ }
+ return webidl.converters.XMLHttpRequestBodyInit(V, prefix, argument);
+ };
+ webidl.converters.ResponseInit = webidl.dictionaryConverter([
+ {
+ key: "status",
+ converter: webidl.converters["unsigned short"],
+ defaultValue: () => 200
+ },
+ {
+ key: "statusText",
+ converter: webidl.converters.ByteString,
+ defaultValue: () => ""
+ },
+ {
+ key: "headers",
+ converter: webidl.converters.HeadersInit
+ }
+ ]);
+ webidl.is.Response = webidl.util.MakeTypeAssertion(Response2);
+ module.exports = {
+ isNetworkError,
+ makeNetworkError,
+ makeResponse,
+ makeAppropriateNetworkError,
+ filterResponse,
+ Response: Response2,
+ cloneResponse,
+ fromInnerResponse,
+ getResponseState
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/request.js
+var require_request4 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/request.js"(exports, module) {
+ "use strict";
+ var { extractBody, mixinBody, cloneBody, bodyUnusable } = require_body2();
+ var { Headers: Headers2, fill: fillHeaders, HeadersList, setHeadersGuard, getHeadersGuard, setHeadersList, getHeadersList } = require_headers2();
+ var util3 = require_util11();
+ var nodeUtil = __require("node:util");
+ var {
+ isValidHTTPToken,
+ sameOrigin,
+ environmentSettingsObject
+ } = require_util12();
+ var {
+ forbiddenMethodsSet,
+ corsSafeListedMethodsSet,
+ referrerPolicy,
+ requestRedirect,
+ requestMode,
+ requestCredentials,
+ requestCache,
+ requestDuplex
+ } = require_constants8();
+ var { kEnumerableProperty, normalizedMethodRecordsBase, normalizedMethodRecords } = util3;
+ var { webidl } = require_webidl2();
+ var { URLSerializer } = require_data_url();
+ var { kConstruct } = require_symbols6();
+ var assert2 = __require("node:assert");
+ var { getMaxListeners, setMaxListeners: setMaxListeners2, defaultMaxListeners } = __require("node:events");
+ var kAbortController = Symbol("abortController");
+ var requestFinalizer = new FinalizationRegistry(({ signal, abort }) => {
+ signal.removeEventListener("abort", abort);
+ });
+ var dependentControllerMap = /* @__PURE__ */ new WeakMap();
+ var abortSignalHasEventHandlerLeakWarning;
+ try {
+ abortSignalHasEventHandlerLeakWarning = getMaxListeners(new AbortController().signal) > 0;
+ } catch {
+ abortSignalHasEventHandlerLeakWarning = false;
+ }
+ function buildAbort(acRef) {
+ return abort;
+ function abort() {
+ const ac = acRef.deref();
+ if (ac !== void 0) {
+ requestFinalizer.unregister(abort);
+ this.removeEventListener("abort", abort);
+ ac.abort(this.reason);
+ const controllerList = dependentControllerMap.get(ac.signal);
+ if (controllerList !== void 0) {
+ if (controllerList.size !== 0) {
+ for (const ref of controllerList) {
+ const ctrl = ref.deref();
+ if (ctrl !== void 0) {
+ ctrl.abort(this.reason);
+ }
+ }
+ controllerList.clear();
+ }
+ dependentControllerMap.delete(ac.signal);
+ }
+ }
+ }
+ }
+ var patchMethodWarning = false;
+ var Request2 = class _Request {
+ /** @type {AbortSignal} */
+ #signal;
+ /** @type {import('../../dispatcher/dispatcher')} */
+ #dispatcher;
+ /** @type {Headers} */
+ #headers;
+ #state;
+ // https://fetch.spec.whatwg.org/#dom-request
+ constructor(input, init = void 0) {
+ webidl.util.markAsUncloneable(this);
+ if (input === kConstruct) {
+ return;
+ }
+ const prefix = "Request constructor";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ input = webidl.converters.RequestInfo(input);
+ init = webidl.converters.RequestInit(init);
+ let request2 = null;
+ let fallbackMode = null;
+ const baseUrl = environmentSettingsObject.settingsObject.baseUrl;
+ let signal = null;
+ if (typeof input === "string") {
+ this.#dispatcher = init.dispatcher;
+ let parsedURL;
+ try {
+ parsedURL = new URL(input, baseUrl);
+ } catch (err) {
+ throw new TypeError("Failed to parse URL from " + input, { cause: err });
+ }
+ if (parsedURL.username || parsedURL.password) {
+ throw new TypeError(
+ "Request cannot be constructed from a URL that includes credentials: " + input
+ );
+ }
+ request2 = makeRequest({ urlList: [parsedURL] });
+ fallbackMode = "cors";
+ } else {
+ assert2(webidl.is.Request(input));
+ request2 = input.#state;
+ signal = input.#signal;
+ this.#dispatcher = init.dispatcher || input.#dispatcher;
+ }
+ const origin = environmentSettingsObject.settingsObject.origin;
+ let window = "client";
+ if (request2.window?.constructor?.name === "EnvironmentSettingsObject" && sameOrigin(request2.window, origin)) {
+ window = request2.window;
+ }
+ if (init.window != null) {
+ throw new TypeError(`'window' option '${window}' must be null`);
+ }
+ if ("window" in init) {
+ window = "no-window";
+ }
+ request2 = makeRequest({
+ // URL request’s URL.
+ // undici implementation note: this is set as the first item in request's urlList in makeRequest
+ // method request’s method.
+ method: request2.method,
+ // header list A copy of request’s header list.
+ // undici implementation note: headersList is cloned in makeRequest
+ headersList: request2.headersList,
+ // unsafe-request flag Set.
+ unsafeRequest: request2.unsafeRequest,
+ // client This’s relevant settings object.
+ client: environmentSettingsObject.settingsObject,
+ // window window.
+ window,
+ // priority request’s priority.
+ priority: request2.priority,
+ // origin request’s origin. The propagation of the origin is only significant for navigation requests
+ // being handled by a service worker. In this scenario a request can have an origin that is different
+ // from the current client.
+ origin: request2.origin,
+ // referrer request’s referrer.
+ referrer: request2.referrer,
+ // referrer policy request’s referrer policy.
+ referrerPolicy: request2.referrerPolicy,
+ // mode request’s mode.
+ mode: request2.mode,
+ // credentials mode request’s credentials mode.
+ credentials: request2.credentials,
+ // cache mode request’s cache mode.
+ cache: request2.cache,
+ // redirect mode request’s redirect mode.
+ redirect: request2.redirect,
+ // integrity metadata request’s integrity metadata.
+ integrity: request2.integrity,
+ // keepalive request’s keepalive.
+ keepalive: request2.keepalive,
+ // reload-navigation flag request’s reload-navigation flag.
+ reloadNavigation: request2.reloadNavigation,
+ // history-navigation flag request’s history-navigation flag.
+ historyNavigation: request2.historyNavigation,
+ // URL list A clone of request’s URL list.
+ urlList: [...request2.urlList]
+ });
+ const initHasKey = Object.keys(init).length !== 0;
+ if (initHasKey) {
+ if (request2.mode === "navigate") {
+ request2.mode = "same-origin";
+ }
+ request2.reloadNavigation = false;
+ request2.historyNavigation = false;
+ request2.origin = "client";
+ request2.referrer = "client";
+ request2.referrerPolicy = "";
+ request2.url = request2.urlList[request2.urlList.length - 1];
+ request2.urlList = [request2.url];
+ }
+ if (init.referrer !== void 0) {
+ const referrer = init.referrer;
+ if (referrer === "") {
+ request2.referrer = "no-referrer";
+ } else {
+ let parsedReferrer;
+ try {
+ parsedReferrer = new URL(referrer, baseUrl);
+ } catch (err) {
+ throw new TypeError(`Referrer "${referrer}" is not a valid URL.`, { cause: err });
+ }
+ if (parsedReferrer.protocol === "about:" && parsedReferrer.hostname === "client" || origin && !sameOrigin(parsedReferrer, environmentSettingsObject.settingsObject.baseUrl)) {
+ request2.referrer = "client";
+ } else {
+ request2.referrer = parsedReferrer;
+ }
+ }
+ }
+ if (init.referrerPolicy !== void 0) {
+ request2.referrerPolicy = init.referrerPolicy;
+ }
+ let mode;
+ if (init.mode !== void 0) {
+ mode = init.mode;
+ } else {
+ mode = fallbackMode;
+ }
+ if (mode === "navigate") {
+ throw webidl.errors.exception({
+ header: "Request constructor",
+ message: "invalid request mode navigate."
+ });
+ }
+ if (mode != null) {
+ request2.mode = mode;
+ }
+ if (init.credentials !== void 0) {
+ request2.credentials = init.credentials;
+ }
+ if (init.cache !== void 0) {
+ request2.cache = init.cache;
+ }
+ if (request2.cache === "only-if-cached" && request2.mode !== "same-origin") {
+ throw new TypeError(
+ "'only-if-cached' can be set only with 'same-origin' mode"
+ );
+ }
+ if (init.redirect !== void 0) {
+ request2.redirect = init.redirect;
+ }
+ if (init.integrity != null) {
+ request2.integrity = String(init.integrity);
+ }
+ if (init.keepalive !== void 0) {
+ request2.keepalive = Boolean(init.keepalive);
+ }
+ if (init.method !== void 0) {
+ let method = init.method;
+ const mayBeNormalized = normalizedMethodRecords[method];
+ if (mayBeNormalized !== void 0) {
+ request2.method = mayBeNormalized;
+ } else {
+ if (!isValidHTTPToken(method)) {
+ throw new TypeError(`'${method}' is not a valid HTTP method.`);
+ }
+ const upperCase = method.toUpperCase();
+ if (forbiddenMethodsSet.has(upperCase)) {
+ throw new TypeError(`'${method}' HTTP method is unsupported.`);
+ }
+ method = normalizedMethodRecordsBase[upperCase] ?? method;
+ request2.method = method;
+ }
+ if (!patchMethodWarning && request2.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"
+ });
+ patchMethodWarning = true;
+ }
+ }
+ if (init.signal !== void 0) {
+ signal = init.signal;
+ }
+ this.#state = request2;
+ const ac = new AbortController();
+ this.#signal = ac.signal;
+ if (signal != null) {
+ if (signal.aborted) {
+ ac.abort(signal.reason);
+ } else {
+ this[kAbortController] = ac;
+ const acRef = new WeakRef(ac);
+ const abort = buildAbort(acRef);
+ if (abortSignalHasEventHandlerLeakWarning && getMaxListeners(signal) === defaultMaxListeners) {
+ setMaxListeners2(1500, signal);
+ }
+ util3.addAbortListener(signal, abort);
+ requestFinalizer.register(ac, { signal, abort }, abort);
+ }
+ }
+ this.#headers = new Headers2(kConstruct);
+ setHeadersList(this.#headers, request2.headersList);
+ setHeadersGuard(this.#headers, "request");
+ if (mode === "no-cors") {
+ if (!corsSafeListedMethodsSet.has(request2.method)) {
+ throw new TypeError(
+ `'${request2.method} is unsupported in no-cors mode.`
+ );
+ }
+ setHeadersGuard(this.#headers, "request-no-cors");
+ }
+ if (initHasKey) {
+ const headersList = getHeadersList(this.#headers);
+ const headers = init.headers !== void 0 ? init.headers : new HeadersList(headersList);
+ headersList.clear();
+ if (headers instanceof HeadersList) {
+ for (const { name, value: value2 } of headers.rawValues()) {
+ headersList.append(name, value2, false);
+ }
+ headersList.cookies = headers.cookies;
+ } else {
+ fillHeaders(this.#headers, headers);
+ }
+ }
+ const inputBody = webidl.is.Request(input) ? input.#state.body : null;
+ if ((init.body != null || inputBody != null) && (request2.method === "GET" || request2.method === "HEAD")) {
+ throw new TypeError("Request with GET/HEAD method cannot have body.");
+ }
+ let initBody = null;
+ if (init.body != null) {
+ const [extractedBody, contentType] = extractBody(
+ init.body,
+ request2.keepalive
+ );
+ initBody = extractedBody;
+ if (contentType && !getHeadersList(this.#headers).contains("content-type", true)) {
+ this.#headers.append("content-type", contentType, true);
+ }
+ }
+ const inputOrInitBody = initBody ?? inputBody;
+ if (inputOrInitBody != null && inputOrInitBody.source == null) {
+ if (initBody != null && init.duplex == null) {
+ throw new TypeError("RequestInit: duplex option is required when sending a body.");
+ }
+ if (request2.mode !== "same-origin" && request2.mode !== "cors") {
+ throw new TypeError(
+ 'If request is made from ReadableStream, mode should be "same-origin" or "cors"'
+ );
+ }
+ request2.useCORSPreflightFlag = true;
+ }
+ let finalBody = inputOrInitBody;
+ if (initBody == null && inputBody != null) {
+ if (bodyUnusable(input.#state)) {
+ throw new TypeError(
+ "Cannot construct a Request with a Request object that has already been used."
+ );
+ }
+ const identityTransform = new TransformStream();
+ inputBody.stream.pipeThrough(identityTransform);
+ finalBody = {
+ source: inputBody.source,
+ length: inputBody.length,
+ stream: identityTransform.readable
+ };
+ }
+ this.#state.body = finalBody;
+ }
+ // Returns request’s HTTP method, which is "GET" by default.
+ get method() {
+ webidl.brandCheck(this, _Request);
+ return this.#state.method;
+ }
+ // Returns the URL of request as a string.
+ get url() {
+ webidl.brandCheck(this, _Request);
+ return URLSerializer(this.#state.url);
+ }
+ // Returns a Headers object consisting of the headers associated with request.
+ // Note that headers added in the network layer by the user agent will not
+ // be accounted for in this object, e.g., the "Host" header.
+ get headers() {
+ webidl.brandCheck(this, _Request);
+ return this.#headers;
+ }
+ // Returns the kind of resource requested by request, e.g., "document"
+ // or "script".
+ get destination() {
+ webidl.brandCheck(this, _Request);
+ return this.#state.destination;
+ }
+ // Returns the referrer of request. Its value can be a same-origin URL if
+ // explicitly set in init, the empty string to indicate no referrer, and
+ // "about:client" when defaulting to the global’s default. This is used
+ // during fetching to determine the value of the `Referer` header of the
+ // request being made.
+ get referrer() {
+ webidl.brandCheck(this, _Request);
+ if (this.#state.referrer === "no-referrer") {
+ return "";
+ }
+ if (this.#state.referrer === "client") {
+ return "about:client";
+ }
+ return this.#state.referrer.toString();
+ }
+ // Returns the referrer policy associated with request.
+ // This is used during fetching to compute the value of the request’s
+ // referrer.
+ get referrerPolicy() {
+ webidl.brandCheck(this, _Request);
+ return this.#state.referrerPolicy;
+ }
+ // Returns the mode associated with request, which is a string indicating
+ // whether the request will use CORS, or will be restricted to same-origin
+ // URLs.
+ get mode() {
+ webidl.brandCheck(this, _Request);
+ return this.#state.mode;
+ }
+ // Returns the credentials mode associated with request,
+ // which is a string indicating whether credentials will be sent with the
+ // request always, never, or only when sent to a same-origin URL.
+ get credentials() {
+ webidl.brandCheck(this, _Request);
+ return this.#state.credentials;
+ }
+ // Returns the cache mode associated with request,
+ // which is a string indicating how the request will
+ // interact with the browser’s cache when fetching.
+ get cache() {
+ webidl.brandCheck(this, _Request);
+ return this.#state.cache;
+ }
+ // Returns the redirect mode associated with request,
+ // which is a string indicating how redirects for the
+ // request will be handled during fetching. A request
+ // will follow redirects by default.
+ get redirect() {
+ webidl.brandCheck(this, _Request);
+ return this.#state.redirect;
+ }
+ // Returns request’s subresource integrity metadata, which is a
+ // cryptographic hash of the resource being fetched. Its value
+ // consists of multiple hashes separated by whitespace. [SRI]
+ get integrity() {
+ webidl.brandCheck(this, _Request);
+ return this.#state.integrity;
+ }
+ // Returns a boolean indicating whether or not request can outlive the
+ // global in which it was created.
+ get keepalive() {
+ webidl.brandCheck(this, _Request);
+ return this.#state.keepalive;
+ }
+ // Returns a boolean indicating whether or not request is for a reload
+ // navigation.
+ get isReloadNavigation() {
+ webidl.brandCheck(this, _Request);
+ return this.#state.reloadNavigation;
+ }
+ // Returns a boolean indicating whether or not request is for a history
+ // navigation (a.k.a. back-forward navigation).
+ get isHistoryNavigation() {
+ webidl.brandCheck(this, _Request);
+ return this.#state.historyNavigation;
+ }
+ // Returns the signal associated with request, which is an AbortSignal
+ // object indicating whether or not request has been aborted, and its
+ // abort event handler.
+ get signal() {
+ webidl.brandCheck(this, _Request);
+ return this.#signal;
+ }
+ get body() {
+ webidl.brandCheck(this, _Request);
+ return this.#state.body ? this.#state.body.stream : null;
+ }
+ get bodyUsed() {
+ webidl.brandCheck(this, _Request);
+ return !!this.#state.body && util3.isDisturbed(this.#state.body.stream);
+ }
+ get duplex() {
+ webidl.brandCheck(this, _Request);
+ return "half";
+ }
+ // Returns a clone of request.
+ clone() {
+ webidl.brandCheck(this, _Request);
+ if (bodyUnusable(this.#state)) {
+ throw new TypeError("unusable");
+ }
+ const clonedRequest = cloneRequest(this.#state);
+ const ac = new AbortController();
+ if (this.signal.aborted) {
+ ac.abort(this.signal.reason);
+ } else {
+ let list = dependentControllerMap.get(this.signal);
+ if (list === void 0) {
+ list = /* @__PURE__ */ new Set();
+ dependentControllerMap.set(this.signal, list);
+ }
+ const acRef = new WeakRef(ac);
+ list.add(acRef);
+ util3.addAbortListener(
+ ac.signal,
+ buildAbort(acRef)
+ );
+ }
+ return fromInnerRequest(clonedRequest, this.#dispatcher, ac.signal, getHeadersGuard(this.#headers));
+ }
+ [nodeUtil.inspect.custom](depth, options) {
+ if (options.depth === null) {
+ options.depth = 2;
+ }
+ options.colors ??= true;
+ const properties = {
+ 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 ${nodeUtil.formatWithOptions(options, properties)}`;
+ }
+ /**
+ * @param {Request} request
+ * @param {AbortSignal} newSignal
+ */
+ static setRequestSignal(request2, newSignal) {
+ request2.#signal = newSignal;
+ return request2;
+ }
+ /**
+ * @param {Request} request
+ */
+ static getRequestDispatcher(request2) {
+ return request2.#dispatcher;
+ }
+ /**
+ * @param {Request} request
+ * @param {import('../../dispatcher/dispatcher')} newDispatcher
+ */
+ static setRequestDispatcher(request2, newDispatcher) {
+ request2.#dispatcher = newDispatcher;
+ }
+ /**
+ * @param {Request} request
+ * @param {Headers} newHeaders
+ */
+ static setRequestHeaders(request2, newHeaders) {
+ request2.#headers = newHeaders;
+ }
+ /**
+ * @param {Request} request
+ */
+ static getRequestState(request2) {
+ return request2.#state;
+ }
+ /**
+ * @param {Request} request
+ * @param {any} newState
+ */
+ static setRequestState(request2, newState) {
+ request2.#state = newState;
+ }
+ };
+ var { setRequestSignal, getRequestDispatcher, setRequestDispatcher, setRequestHeaders, getRequestState, setRequestState } = Request2;
+ Reflect.deleteProperty(Request2, "setRequestSignal");
+ Reflect.deleteProperty(Request2, "getRequestDispatcher");
+ Reflect.deleteProperty(Request2, "setRequestDispatcher");
+ Reflect.deleteProperty(Request2, "setRequestHeaders");
+ Reflect.deleteProperty(Request2, "getRequestState");
+ Reflect.deleteProperty(Request2, "setRequestState");
+ mixinBody(Request2, getRequestState);
+ function makeRequest(init) {
+ return {
+ method: init.method ?? "GET",
+ localURLsOnly: init.localURLsOnly ?? false,
+ unsafeRequest: init.unsafeRequest ?? false,
+ body: init.body ?? null,
+ client: init.client ?? null,
+ reservedClient: init.reservedClient ?? null,
+ replacesClientId: init.replacesClientId ?? "",
+ window: init.window ?? "client",
+ keepalive: init.keepalive ?? false,
+ serviceWorkers: init.serviceWorkers ?? "all",
+ initiator: init.initiator ?? "",
+ destination: init.destination ?? "",
+ priority: init.priority ?? null,
+ origin: init.origin ?? "client",
+ policyContainer: init.policyContainer ?? "client",
+ referrer: init.referrer ?? "client",
+ referrerPolicy: init.referrerPolicy ?? "",
+ mode: init.mode ?? "no-cors",
+ useCORSPreflightFlag: init.useCORSPreflightFlag ?? false,
+ credentials: init.credentials ?? "same-origin",
+ useCredentials: init.useCredentials ?? false,
+ cache: init.cache ?? "default",
+ redirect: init.redirect ?? "follow",
+ integrity: init.integrity ?? "",
+ cryptoGraphicsNonceMetadata: init.cryptoGraphicsNonceMetadata ?? "",
+ parserMetadata: init.parserMetadata ?? "",
+ reloadNavigation: init.reloadNavigation ?? false,
+ historyNavigation: init.historyNavigation ?? false,
+ userActivation: init.userActivation ?? false,
+ taintedOrigin: init.taintedOrigin ?? false,
+ redirectCount: init.redirectCount ?? 0,
+ responseTainting: init.responseTainting ?? "basic",
+ preventNoCacheCacheControlHeaderModification: init.preventNoCacheCacheControlHeaderModification ?? false,
+ done: init.done ?? false,
+ timingAllowFailed: init.timingAllowFailed ?? false,
+ urlList: init.urlList,
+ url: init.urlList[0],
+ headersList: init.headersList ? new HeadersList(init.headersList) : new HeadersList()
+ };
+ }
+ function cloneRequest(request2) {
+ const newRequest = makeRequest({ ...request2, body: null });
+ if (request2.body != null) {
+ newRequest.body = cloneBody(request2.body);
+ }
+ return newRequest;
+ }
+ function fromInnerRequest(innerRequest, dispatcher, signal, guard) {
+ const request2 = new Request2(kConstruct);
+ setRequestState(request2, innerRequest);
+ setRequestDispatcher(request2, dispatcher);
+ setRequestSignal(request2, signal);
+ const headers = new Headers2(kConstruct);
+ setRequestHeaders(request2, headers);
+ setHeadersList(headers, innerRequest.headersList);
+ setHeadersGuard(headers, guard);
+ return request2;
+ }
+ Object.defineProperties(Request2.prototype, {
+ method: kEnumerableProperty,
+ url: kEnumerableProperty,
+ headers: kEnumerableProperty,
+ redirect: kEnumerableProperty,
+ clone: kEnumerableProperty,
+ signal: kEnumerableProperty,
+ duplex: kEnumerableProperty,
+ destination: kEnumerableProperty,
+ body: kEnumerableProperty,
+ bodyUsed: kEnumerableProperty,
+ isHistoryNavigation: kEnumerableProperty,
+ isReloadNavigation: kEnumerableProperty,
+ keepalive: kEnumerableProperty,
+ integrity: kEnumerableProperty,
+ cache: kEnumerableProperty,
+ credentials: kEnumerableProperty,
+ attribute: kEnumerableProperty,
+ referrerPolicy: kEnumerableProperty,
+ referrer: kEnumerableProperty,
+ mode: kEnumerableProperty,
+ [Symbol.toStringTag]: {
+ value: "Request",
+ configurable: true
+ }
+ });
+ webidl.is.Request = webidl.util.MakeTypeAssertion(Request2);
+ webidl.converters.RequestInfo = function(V) {
+ if (typeof V === "string") {
+ return webidl.converters.USVString(V);
+ }
+ if (webidl.is.Request(V)) {
+ return V;
+ }
+ return webidl.converters.USVString(V);
+ };
+ webidl.converters.RequestInit = webidl.dictionaryConverter([
+ {
+ key: "method",
+ converter: webidl.converters.ByteString
+ },
+ {
+ key: "headers",
+ converter: webidl.converters.HeadersInit
+ },
+ {
+ key: "body",
+ converter: webidl.nullableConverter(
+ webidl.converters.BodyInit
+ )
+ },
+ {
+ key: "referrer",
+ converter: webidl.converters.USVString
+ },
+ {
+ key: "referrerPolicy",
+ converter: webidl.converters.DOMString,
+ // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy
+ allowedValues: referrerPolicy
+ },
+ {
+ key: "mode",
+ converter: webidl.converters.DOMString,
+ // https://fetch.spec.whatwg.org/#concept-request-mode
+ allowedValues: requestMode
+ },
+ {
+ key: "credentials",
+ converter: webidl.converters.DOMString,
+ // https://fetch.spec.whatwg.org/#requestcredentials
+ allowedValues: requestCredentials
+ },
+ {
+ key: "cache",
+ converter: webidl.converters.DOMString,
+ // https://fetch.spec.whatwg.org/#requestcache
+ allowedValues: requestCache
+ },
+ {
+ key: "redirect",
+ converter: webidl.converters.DOMString,
+ // https://fetch.spec.whatwg.org/#requestredirect
+ allowedValues: requestRedirect
+ },
+ {
+ key: "integrity",
+ converter: webidl.converters.DOMString
+ },
+ {
+ key: "keepalive",
+ converter: webidl.converters.boolean
+ },
+ {
+ key: "signal",
+ converter: webidl.nullableConverter(
+ (signal) => webidl.converters.AbortSignal(
+ signal,
+ "RequestInit",
+ "signal"
+ )
+ )
+ },
+ {
+ key: "window",
+ converter: webidl.converters.any
+ },
+ {
+ key: "duplex",
+ converter: webidl.converters.DOMString,
+ allowedValues: requestDuplex
+ },
+ {
+ key: "dispatcher",
+ // undici specific option
+ converter: webidl.converters.any
+ }
+ ]);
+ module.exports = {
+ Request: Request2,
+ makeRequest,
+ fromInnerRequest,
+ cloneRequest,
+ getRequestDispatcher,
+ getRequestState
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js
+var require_subresource_integrity = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var validSRIHashAlgorithmTokenSet = /* @__PURE__ */ new Map([["sha256", 0], ["sha384", 1], ["sha512", 2]]);
+ var crypto2;
+ try {
+ crypto2 = __require("node:crypto");
+ const cryptoHashes = crypto2.getHashes();
+ if (cryptoHashes.length === 0) {
+ validSRIHashAlgorithmTokenSet.clear();
+ }
+ for (const algorithm of validSRIHashAlgorithmTokenSet.keys()) {
+ if (cryptoHashes.includes(algorithm) === false) {
+ validSRIHashAlgorithmTokenSet.delete(algorithm);
+ }
+ }
+ } catch {
+ validSRIHashAlgorithmTokenSet.clear();
+ }
+ var getSRIHashAlgorithmIndex = (
+ /** @type {GetSRIHashAlgorithmIndex} */
+ Map.prototype.get.bind(
+ validSRIHashAlgorithmTokenSet
+ )
+ );
+ var isValidSRIHashAlgorithm = (
+ /** @type {IsValidSRIHashAlgorithm} */
+ Map.prototype.has.bind(validSRIHashAlgorithmTokenSet)
+ );
+ var bytesMatch = crypto2 === void 0 || validSRIHashAlgorithmTokenSet.size === 0 ? () => true : (bytes, metadataList) => {
+ const parsedMetadata = parseMetadata(metadataList);
+ if (parsedMetadata.length === 0) {
+ return true;
+ }
+ const metadata = getStrongestMetadata(parsedMetadata);
+ for (const item of metadata) {
+ const algorithm = item.alg;
+ const expectedValue = item.val;
+ const actualValue = applyAlgorithmToBytes(algorithm, bytes);
+ if (caseSensitiveMatch(actualValue, expectedValue)) {
+ return true;
+ }
+ }
+ return false;
+ };
+ function getStrongestMetadata(metadataList) {
+ const result = [];
+ let strongest = null;
+ for (const item of metadataList) {
+ assert2(isValidSRIHashAlgorithm(item.alg), "Invalid SRI hash algorithm token");
+ if (result.length === 0) {
+ result.push(item);
+ strongest = item;
+ continue;
+ }
+ const currentAlgorithm = (
+ /** @type {Metadata} */
+ strongest.alg
+ );
+ const currentAlgorithmIndex = getSRIHashAlgorithmIndex(currentAlgorithm);
+ const newAlgorithm = item.alg;
+ const newAlgorithmIndex = getSRIHashAlgorithmIndex(newAlgorithm);
+ if (newAlgorithmIndex < currentAlgorithmIndex) {
+ continue;
+ } else if (newAlgorithmIndex > currentAlgorithmIndex) {
+ strongest = item;
+ result[0] = item;
+ result.length = 1;
+ } else {
+ result.push(item);
+ }
+ }
+ return result;
+ }
+ function parseMetadata(metadata) {
+ const result = [];
+ for (const item of metadata.split(" ")) {
+ const expressionAndOptions = item.split("?", 1);
+ const algorithmExpression = expressionAndOptions[0];
+ let base64Value = "";
+ const algorithmAndValue = [algorithmExpression.slice(0, 6), algorithmExpression.slice(7)];
+ const algorithm = algorithmAndValue[0];
+ if (!isValidSRIHashAlgorithm(algorithm)) {
+ continue;
+ }
+ if (algorithmAndValue[1]) {
+ base64Value = algorithmAndValue[1];
+ }
+ const metadata2 = {
+ alg: algorithm,
+ val: base64Value
+ };
+ result.push(metadata2);
+ }
+ return result;
+ }
+ var applyAlgorithmToBytes = (algorithm, bytes) => {
+ return crypto2.hash(algorithm, bytes, "base64");
+ };
+ function caseSensitiveMatch(actualValue, expectedValue) {
+ let actualValueLength = actualValue.length;
+ if (actualValueLength !== 0 && actualValue[actualValueLength - 1] === "=") {
+ actualValueLength -= 1;
+ }
+ if (actualValueLength !== 0 && actualValue[actualValueLength - 1] === "=") {
+ actualValueLength -= 1;
+ }
+ let expectedValueLength = expectedValue.length;
+ if (expectedValueLength !== 0 && expectedValue[expectedValueLength - 1] === "=") {
+ expectedValueLength -= 1;
+ }
+ if (expectedValueLength !== 0 && expectedValue[expectedValueLength - 1] === "=") {
+ expectedValueLength -= 1;
+ }
+ if (actualValueLength !== expectedValueLength) {
+ return false;
+ }
+ for (let i = 0; i < actualValueLength; ++i) {
+ if (actualValue[i] === expectedValue[i] || actualValue[i] === "+" && expectedValue[i] === "-" || actualValue[i] === "/" && expectedValue[i] === "_") {
+ continue;
+ }
+ return false;
+ }
+ return true;
+ }
+ module.exports = {
+ applyAlgorithmToBytes,
+ bytesMatch,
+ caseSensitiveMatch,
+ isValidSRIHashAlgorithm,
+ getStrongestMetadata,
+ parseMetadata
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/index.js
+var require_fetch2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/fetch/index.js"(exports, module) {
+ "use strict";
+ var {
+ makeNetworkError,
+ makeAppropriateNetworkError,
+ filterResponse,
+ makeResponse,
+ fromInnerResponse,
+ getResponseState
+ } = require_response2();
+ var { HeadersList } = require_headers2();
+ var { Request: Request2, cloneRequest, getRequestDispatcher, getRequestState } = require_request4();
+ var zlib = __require("node:zlib");
+ var {
+ makePolicyContainer,
+ clonePolicyContainer,
+ requestBadPort,
+ TAOCheck,
+ appendRequestOriginHeader,
+ responseLocationURL,
+ requestCurrentURL,
+ setRequestReferrerPolicyOnRedirect,
+ tryUpgradeRequestToAPotentiallyTrustworthyURL,
+ createOpaqueTimingInfo,
+ appendFetchMetadata,
+ corsCheck,
+ crossOriginResourcePolicyCheck,
+ determineRequestsReferrer,
+ coarsenedSharedCurrentTime,
+ sameOrigin,
+ isCancelled,
+ isAborted: isAborted4,
+ isErrorLike,
+ fullyReadBody,
+ readableStreamClose,
+ isomorphicEncode,
+ urlIsLocal,
+ urlIsHttpHttpsScheme,
+ urlHasHttpsScheme,
+ clampAndCoarsenConnectionTimingInfo,
+ simpleRangeHeaderValue,
+ buildContentRange,
+ createInflate,
+ extractMimeType
+ } = require_util12();
+ var assert2 = __require("node:assert");
+ var { safelyExtractBody, extractBody } = require_body2();
+ var {
+ redirectStatusSet,
+ nullBodyStatus,
+ safeMethodsSet,
+ requestBodyHeader,
+ subresourceSet
+ } = require_constants8();
+ var EE = __require("node:events");
+ var { Readable, pipeline: pipeline2, finished, isErrored, isReadable } = __require("node:stream");
+ var { addAbortListener, bufferToLowerCasedHeaderName } = require_util11();
+ var { dataURLProcessor, serializeAMimeType, minimizeSupportedMimeType } = require_data_url();
+ var { getGlobalDispatcher } = require_global4();
+ var { webidl } = require_webidl2();
+ var { STATUS_CODES } = __require("node:http");
+ var { bytesMatch } = require_subresource_integrity();
+ var { createDeferredPromise } = require_promise();
+ var hasZstd = typeof zlib.createZstdDecompress === "function";
+ var GET_OR_HEAD = ["GET", "HEAD"];
+ var defaultUserAgent = typeof __UNDICI_IS_NODE__ !== "undefined" || typeof esbuildDetection !== "undefined" ? "node" : "undici";
+ var resolveObjectURL;
+ var Fetch = class extends EE {
+ constructor(dispatcher) {
+ super();
+ this.dispatcher = dispatcher;
+ this.connection = null;
+ this.dump = false;
+ this.state = "ongoing";
+ }
+ terminate(reason) {
+ if (this.state !== "ongoing") {
+ return;
+ }
+ this.state = "terminated";
+ this.connection?.destroy(reason);
+ this.emit("terminated", reason);
+ }
+ // https://fetch.spec.whatwg.org/#fetch-controller-abort
+ abort(error41) {
+ if (this.state !== "ongoing") {
+ return;
+ }
+ this.state = "aborted";
+ if (!error41) {
+ error41 = new DOMException("The operation was aborted.", "AbortError");
+ }
+ this.serializedAbortReason = error41;
+ this.connection?.destroy(error41);
+ this.emit("terminated", error41);
+ }
+ };
+ function handleFetchDone(response) {
+ finalizeAndReportTiming(response, "fetch");
+ }
+ function fetch3(input, init = void 0) {
+ webidl.argumentLengthCheck(arguments, 1, "globalThis.fetch");
+ let p = createDeferredPromise();
+ let requestObject;
+ try {
+ requestObject = new Request2(input, init);
+ } catch (e) {
+ p.reject(e);
+ return p.promise;
+ }
+ const request2 = getRequestState(requestObject);
+ if (requestObject.signal.aborted) {
+ abortFetch(p, request2, null, requestObject.signal.reason);
+ return p.promise;
+ }
+ const globalObject = request2.client.globalObject;
+ if (globalObject?.constructor?.name === "ServiceWorkerGlobalScope") {
+ request2.serviceWorkers = "none";
+ }
+ let responseObject = null;
+ let locallyAborted = false;
+ let controller = null;
+ addAbortListener(
+ requestObject.signal,
+ () => {
+ locallyAborted = true;
+ assert2(controller != null);
+ controller.abort(requestObject.signal.reason);
+ const realResponse = responseObject?.deref();
+ abortFetch(p, request2, realResponse, requestObject.signal.reason);
+ }
+ );
+ const processResponse = (response) => {
+ if (locallyAborted) {
+ return;
+ }
+ if (response.aborted) {
+ abortFetch(p, request2, responseObject, controller.serializedAbortReason);
+ return;
+ }
+ if (response.type === "error") {
+ p.reject(new TypeError("fetch failed", { cause: response.error }));
+ return;
+ }
+ responseObject = new WeakRef(fromInnerResponse(response, "immutable"));
+ p.resolve(responseObject.deref());
+ p = null;
+ };
+ controller = fetching({
+ request: request2,
+ processResponseEndOfBody: handleFetchDone,
+ processResponse,
+ dispatcher: getRequestDispatcher(requestObject)
+ // undici
+ });
+ return p.promise;
+ }
+ function finalizeAndReportTiming(response, initiatorType = "other") {
+ if (response.type === "error" && response.aborted) {
+ return;
+ }
+ if (!response.urlList?.length) {
+ return;
+ }
+ const originalURL = response.urlList[0];
+ let timingInfo = response.timingInfo;
+ let cacheState = response.cacheState;
+ if (!urlIsHttpHttpsScheme(originalURL)) {
+ return;
+ }
+ if (timingInfo === null) {
+ return;
+ }
+ if (!response.timingAllowPassed) {
+ timingInfo = createOpaqueTimingInfo({
+ startTime: timingInfo.startTime
+ });
+ cacheState = "";
+ }
+ timingInfo.endTime = coarsenedSharedCurrentTime();
+ response.timingInfo = timingInfo;
+ markResourceTiming(
+ timingInfo,
+ originalURL.href,
+ initiatorType,
+ globalThis,
+ cacheState,
+ "",
+ // bodyType
+ response.status
+ );
+ }
+ var markResourceTiming = performance.markResourceTiming;
+ function abortFetch(p, request2, responseObject, error41) {
+ if (p) {
+ p.reject(error41);
+ }
+ if (request2.body?.stream != null && isReadable(request2.body.stream)) {
+ request2.body.stream.cancel(error41).catch((err) => {
+ if (err.code === "ERR_INVALID_STATE") {
+ return;
+ }
+ throw err;
+ });
+ }
+ if (responseObject == null) {
+ return;
+ }
+ const response = getResponseState(responseObject);
+ if (response.body?.stream != null && isReadable(response.body.stream)) {
+ response.body.stream.cancel(error41).catch((err) => {
+ if (err.code === "ERR_INVALID_STATE") {
+ return;
+ }
+ throw err;
+ });
+ }
+ }
+ function fetching({
+ request: request2,
+ processRequestBodyChunkLength,
+ processRequestEndOfBody,
+ processResponse,
+ processResponseEndOfBody,
+ processResponseConsumeBody,
+ useParallelQueue = false,
+ dispatcher = getGlobalDispatcher()
+ // undici
+ }) {
+ assert2(dispatcher);
+ let taskDestination = null;
+ let crossOriginIsolatedCapability = false;
+ if (request2.client != null) {
+ taskDestination = request2.client.globalObject;
+ crossOriginIsolatedCapability = request2.client.crossOriginIsolatedCapability;
+ }
+ const currentTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability);
+ const timingInfo = createOpaqueTimingInfo({
+ startTime: currentTime
+ });
+ const fetchParams = {
+ controller: new Fetch(dispatcher),
+ request: request2,
+ timingInfo,
+ processRequestBodyChunkLength,
+ processRequestEndOfBody,
+ processResponse,
+ processResponseConsumeBody,
+ processResponseEndOfBody,
+ taskDestination,
+ crossOriginIsolatedCapability
+ };
+ assert2(!request2.body || request2.body.stream);
+ if (request2.window === "client") {
+ request2.window = request2.client?.globalObject?.constructor?.name === "Window" ? request2.client : "no-window";
+ }
+ if (request2.origin === "client") {
+ request2.origin = request2.client.origin;
+ }
+ if (request2.policyContainer === "client") {
+ if (request2.client != null) {
+ request2.policyContainer = clonePolicyContainer(
+ request2.client.policyContainer
+ );
+ } else {
+ request2.policyContainer = makePolicyContainer();
+ }
+ }
+ if (!request2.headersList.contains("accept", true)) {
+ const value2 = "*/*";
+ request2.headersList.append("accept", value2, true);
+ }
+ if (!request2.headersList.contains("accept-language", true)) {
+ request2.headersList.append("accept-language", "*", true);
+ }
+ if (request2.priority === null) {
+ }
+ if (subresourceSet.has(request2.destination)) {
+ }
+ mainFetch(fetchParams, false);
+ return fetchParams.controller;
+ }
+ async function mainFetch(fetchParams, recursive) {
+ try {
+ const request2 = fetchParams.request;
+ let response = null;
+ if (request2.localURLsOnly && !urlIsLocal(requestCurrentURL(request2))) {
+ response = makeNetworkError("local URLs only");
+ }
+ tryUpgradeRequestToAPotentiallyTrustworthyURL(request2);
+ if (requestBadPort(request2) === "blocked") {
+ response = makeNetworkError("bad port");
+ }
+ if (request2.referrerPolicy === "") {
+ request2.referrerPolicy = request2.policyContainer.referrerPolicy;
+ }
+ if (request2.referrer !== "no-referrer") {
+ request2.referrer = determineRequestsReferrer(request2);
+ }
+ if (response === null) {
+ const currentURL = requestCurrentURL(request2);
+ if (
+ // - request’s current URL’s origin is same origin with request’s origin,
+ // and request’s response tainting is "basic"
+ sameOrigin(currentURL, request2.url) && request2.responseTainting === "basic" || // request’s current URL’s scheme is "data"
+ currentURL.protocol === "data:" || // - request’s mode is "navigate" or "websocket"
+ (request2.mode === "navigate" || request2.mode === "websocket")
+ ) {
+ request2.responseTainting = "basic";
+ response = await schemeFetch(fetchParams);
+ } else if (request2.mode === "same-origin") {
+ response = makeNetworkError('request mode cannot be "same-origin"');
+ } else if (request2.mode === "no-cors") {
+ if (request2.redirect !== "follow") {
+ response = makeNetworkError(
+ 'redirect mode cannot be "follow" for "no-cors" request'
+ );
+ } else {
+ request2.responseTainting = "opaque";
+ response = await schemeFetch(fetchParams);
+ }
+ } else if (!urlIsHttpHttpsScheme(requestCurrentURL(request2))) {
+ response = makeNetworkError("URL scheme must be a HTTP(S) scheme");
+ } else {
+ request2.responseTainting = "cors";
+ response = await httpFetch(fetchParams);
+ }
+ }
+ if (recursive) {
+ return response;
+ }
+ if (response.status !== 0 && !response.internalResponse) {
+ if (request2.responseTainting === "cors") {
+ }
+ if (request2.responseTainting === "basic") {
+ response = filterResponse(response, "basic");
+ } else if (request2.responseTainting === "cors") {
+ response = filterResponse(response, "cors");
+ } else if (request2.responseTainting === "opaque") {
+ response = filterResponse(response, "opaque");
+ } else {
+ assert2(false);
+ }
+ }
+ let internalResponse = response.status === 0 ? response : response.internalResponse;
+ if (internalResponse.urlList.length === 0) {
+ internalResponse.urlList.push(...request2.urlList);
+ }
+ if (!request2.timingAllowFailed) {
+ response.timingAllowPassed = true;
+ }
+ if (response.type === "opaque" && internalResponse.status === 206 && internalResponse.rangeRequested && !request2.headers.contains("range", true)) {
+ response = internalResponse = makeNetworkError();
+ }
+ if (response.status !== 0 && (request2.method === "HEAD" || request2.method === "CONNECT" || nullBodyStatus.includes(internalResponse.status))) {
+ internalResponse.body = null;
+ fetchParams.controller.dump = true;
+ }
+ if (request2.integrity) {
+ const processBodyError = (reason) => fetchFinale(fetchParams, makeNetworkError(reason));
+ if (request2.responseTainting === "opaque" || response.body == null) {
+ processBodyError(response.error);
+ return;
+ }
+ const processBody = (bytes) => {
+ if (!bytesMatch(bytes, request2.integrity)) {
+ processBodyError("integrity mismatch");
+ return;
+ }
+ response.body = safelyExtractBody(bytes)[0];
+ fetchFinale(fetchParams, response);
+ };
+ fullyReadBody(response.body, processBody, processBodyError);
+ } else {
+ fetchFinale(fetchParams, response);
+ }
+ } catch (err) {
+ fetchParams.controller.terminate(err);
+ }
+ }
+ function schemeFetch(fetchParams) {
+ if (isCancelled(fetchParams) && fetchParams.request.redirectCount === 0) {
+ return Promise.resolve(makeAppropriateNetworkError(fetchParams));
+ }
+ const { request: request2 } = fetchParams;
+ const { protocol: scheme } = requestCurrentURL(request2);
+ switch (scheme) {
+ case "about:": {
+ return Promise.resolve(makeNetworkError("about scheme is not supported"));
+ }
+ case "blob:": {
+ if (!resolveObjectURL) {
+ resolveObjectURL = __require("node:buffer").resolveObjectURL;
+ }
+ const blobURLEntry = requestCurrentURL(request2);
+ if (blobURLEntry.search.length !== 0) {
+ return Promise.resolve(makeNetworkError("NetworkError when attempting to fetch resource."));
+ }
+ const blob = resolveObjectURL(blobURLEntry.toString());
+ if (request2.method !== "GET" || !webidl.is.Blob(blob)) {
+ return Promise.resolve(makeNetworkError("invalid method"));
+ }
+ const response = makeResponse();
+ const fullLength = blob.size;
+ const serializedFullLength = isomorphicEncode(`${fullLength}`);
+ const type2 = blob.type;
+ if (!request2.headersList.contains("range", true)) {
+ const bodyWithType = extractBody(blob);
+ response.statusText = "OK";
+ response.body = bodyWithType[0];
+ response.headersList.set("content-length", serializedFullLength, true);
+ response.headersList.set("content-type", type2, true);
+ } else {
+ response.rangeRequested = true;
+ const rangeHeader = request2.headersList.get("range", true);
+ const rangeValue = simpleRangeHeaderValue(rangeHeader, true);
+ if (rangeValue === "failure") {
+ return Promise.resolve(makeNetworkError("failed to fetch the data URL"));
+ }
+ let { rangeStartValue: rangeStart, rangeEndValue: rangeEnd } = rangeValue;
+ if (rangeStart === null) {
+ rangeStart = fullLength - rangeEnd;
+ rangeEnd = rangeStart + rangeEnd - 1;
+ } else {
+ if (rangeStart >= fullLength) {
+ return Promise.resolve(makeNetworkError("Range start is greater than the blob's size."));
+ }
+ if (rangeEnd === null || rangeEnd >= fullLength) {
+ rangeEnd = fullLength - 1;
+ }
+ }
+ const slicedBlob = blob.slice(rangeStart, rangeEnd, type2);
+ const slicedBodyWithType = extractBody(slicedBlob);
+ response.body = slicedBodyWithType[0];
+ const serializedSlicedLength = isomorphicEncode(`${slicedBlob.size}`);
+ const contentRange = buildContentRange(rangeStart, rangeEnd, fullLength);
+ response.status = 206;
+ response.statusText = "Partial Content";
+ response.headersList.set("content-length", serializedSlicedLength, true);
+ response.headersList.set("content-type", type2, true);
+ response.headersList.set("content-range", contentRange, true);
+ }
+ return Promise.resolve(response);
+ }
+ case "data:": {
+ const currentURL = requestCurrentURL(request2);
+ const dataURLStruct = dataURLProcessor(currentURL);
+ if (dataURLStruct === "failure") {
+ return Promise.resolve(makeNetworkError("failed to fetch the data URL"));
+ }
+ const mimeType = serializeAMimeType(dataURLStruct.mimeType);
+ return Promise.resolve(makeResponse({
+ statusText: "OK",
+ headersList: [
+ ["content-type", { name: "Content-Type", value: mimeType }]
+ ],
+ body: safelyExtractBody(dataURLStruct.body)[0]
+ }));
+ }
+ case "file:": {
+ return Promise.resolve(makeNetworkError("not implemented... yet..."));
+ }
+ case "http:":
+ case "https:": {
+ return httpFetch(fetchParams).catch((err) => makeNetworkError(err));
+ }
+ default: {
+ return Promise.resolve(makeNetworkError("unknown scheme"));
+ }
+ }
+ }
+ function finalizeResponse(fetchParams, response) {
+ fetchParams.request.done = true;
+ if (fetchParams.processResponseDone != null) {
+ queueMicrotask(() => fetchParams.processResponseDone(response));
+ }
+ }
+ function fetchFinale(fetchParams, response) {
+ let timingInfo = fetchParams.timingInfo;
+ const processResponseEndOfBody = () => {
+ const unsafeEndTime = Date.now();
+ if (fetchParams.request.destination === "document") {
+ fetchParams.controller.fullTimingInfo = timingInfo;
+ }
+ fetchParams.controller.reportTimingSteps = () => {
+ if (!urlIsHttpHttpsScheme(fetchParams.request.url)) {
+ return;
+ }
+ timingInfo.endTime = unsafeEndTime;
+ let cacheState = response.cacheState;
+ const bodyInfo = response.bodyInfo;
+ if (!response.timingAllowPassed) {
+ timingInfo = createOpaqueTimingInfo(timingInfo);
+ cacheState = "";
+ }
+ let responseStatus = 0;
+ if (fetchParams.request.mode !== "navigator" || !response.hasCrossOriginRedirects) {
+ responseStatus = response.status;
+ const mimeType = extractMimeType(response.headersList);
+ if (mimeType !== "failure") {
+ bodyInfo.contentType = minimizeSupportedMimeType(mimeType);
+ }
+ }
+ if (fetchParams.request.initiatorType != null) {
+ markResourceTiming(timingInfo, fetchParams.request.url.href, fetchParams.request.initiatorType, globalThis, cacheState, bodyInfo, responseStatus);
+ }
+ };
+ const processResponseEndOfBodyTask = () => {
+ fetchParams.request.done = true;
+ if (fetchParams.processResponseEndOfBody != null) {
+ queueMicrotask(() => fetchParams.processResponseEndOfBody(response));
+ }
+ if (fetchParams.request.initiatorType != null) {
+ fetchParams.controller.reportTimingSteps();
+ }
+ };
+ queueMicrotask(() => processResponseEndOfBodyTask());
+ };
+ if (fetchParams.processResponse != null) {
+ queueMicrotask(() => {
+ fetchParams.processResponse(response);
+ fetchParams.processResponse = null;
+ });
+ }
+ const internalResponse = response.type === "error" ? response : response.internalResponse ?? response;
+ if (internalResponse.body == null) {
+ processResponseEndOfBody();
+ } else {
+ finished(internalResponse.body.stream, () => {
+ processResponseEndOfBody();
+ });
+ }
+ }
+ async function httpFetch(fetchParams) {
+ const request2 = fetchParams.request;
+ let response = null;
+ let actualResponse = null;
+ const timingInfo = fetchParams.timingInfo;
+ if (request2.serviceWorkers === "all") {
+ }
+ if (response === null) {
+ if (request2.redirect === "follow") {
+ request2.serviceWorkers = "none";
+ }
+ actualResponse = response = await httpNetworkOrCacheFetch(fetchParams);
+ if (request2.responseTainting === "cors" && corsCheck(request2, response) === "failure") {
+ return makeNetworkError("cors failure");
+ }
+ if (TAOCheck(request2, response) === "failure") {
+ request2.timingAllowFailed = true;
+ }
+ }
+ if ((request2.responseTainting === "opaque" || response.type === "opaque") && crossOriginResourcePolicyCheck(
+ request2.origin,
+ request2.client,
+ request2.destination,
+ actualResponse
+ ) === "blocked") {
+ return makeNetworkError("blocked");
+ }
+ if (redirectStatusSet.has(actualResponse.status)) {
+ if (request2.redirect !== "manual") {
+ fetchParams.controller.connection.destroy(void 0, false);
+ }
+ if (request2.redirect === "error") {
+ response = makeNetworkError("unexpected redirect");
+ } else if (request2.redirect === "manual") {
+ response = actualResponse;
+ } else if (request2.redirect === "follow") {
+ response = await httpRedirectFetch(fetchParams, response);
+ } else {
+ assert2(false);
+ }
+ }
+ response.timingInfo = timingInfo;
+ return response;
+ }
+ function httpRedirectFetch(fetchParams, response) {
+ const request2 = fetchParams.request;
+ const actualResponse = response.internalResponse ? response.internalResponse : response;
+ let locationURL;
+ try {
+ locationURL = responseLocationURL(
+ actualResponse,
+ requestCurrentURL(request2).hash
+ );
+ if (locationURL == null) {
+ return response;
+ }
+ } catch (err) {
+ return Promise.resolve(makeNetworkError(err));
+ }
+ if (!urlIsHttpHttpsScheme(locationURL)) {
+ return Promise.resolve(makeNetworkError("URL scheme must be a HTTP(S) scheme"));
+ }
+ if (request2.redirectCount === 20) {
+ return Promise.resolve(makeNetworkError("redirect count exceeded"));
+ }
+ request2.redirectCount += 1;
+ if (request2.mode === "cors" && (locationURL.username || locationURL.password) && !sameOrigin(request2, locationURL)) {
+ return Promise.resolve(makeNetworkError('cross origin not allowed for request mode "cors"'));
+ }
+ if (request2.responseTainting === "cors" && (locationURL.username || locationURL.password)) {
+ return Promise.resolve(makeNetworkError(
+ 'URL cannot contain credentials for request mode "cors"'
+ ));
+ }
+ if (actualResponse.status !== 303 && request2.body != null && request2.body.source == null) {
+ return Promise.resolve(makeNetworkError());
+ }
+ if ([301, 302].includes(actualResponse.status) && request2.method === "POST" || actualResponse.status === 303 && !GET_OR_HEAD.includes(request2.method)) {
+ request2.method = "GET";
+ request2.body = null;
+ for (const headerName of requestBodyHeader) {
+ request2.headersList.delete(headerName);
+ }
+ }
+ if (!sameOrigin(requestCurrentURL(request2), locationURL)) {
+ request2.headersList.delete("authorization", true);
+ request2.headersList.delete("proxy-authorization", true);
+ request2.headersList.delete("cookie", true);
+ request2.headersList.delete("host", true);
+ }
+ if (request2.body != null) {
+ assert2(request2.body.source != null);
+ request2.body = safelyExtractBody(request2.body.source)[0];
+ }
+ const timingInfo = fetchParams.timingInfo;
+ timingInfo.redirectEndTime = timingInfo.postRedirectStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability);
+ if (timingInfo.redirectStartTime === 0) {
+ timingInfo.redirectStartTime = timingInfo.startTime;
+ }
+ request2.urlList.push(locationURL);
+ setRequestReferrerPolicyOnRedirect(request2, actualResponse);
+ return mainFetch(fetchParams, true);
+ }
+ async function httpNetworkOrCacheFetch(fetchParams, isAuthenticationFetch = false, isNewConnectionFetch = false) {
+ const request2 = fetchParams.request;
+ let httpFetchParams = null;
+ let httpRequest = null;
+ let response = null;
+ const httpCache = null;
+ const revalidatingFlag = false;
+ if (request2.window === "no-window" && request2.redirect === "error") {
+ httpFetchParams = fetchParams;
+ httpRequest = request2;
+ } else {
+ httpRequest = cloneRequest(request2);
+ httpFetchParams = { ...fetchParams };
+ httpFetchParams.request = httpRequest;
+ }
+ const includeCredentials = request2.credentials === "include" || request2.credentials === "same-origin" && request2.responseTainting === "basic";
+ const contentLength = httpRequest.body ? httpRequest.body.length : null;
+ let contentLengthHeaderValue = null;
+ if (httpRequest.body == null && ["POST", "PUT"].includes(httpRequest.method)) {
+ contentLengthHeaderValue = "0";
+ }
+ if (contentLength != null) {
+ contentLengthHeaderValue = isomorphicEncode(`${contentLength}`);
+ }
+ if (contentLengthHeaderValue != null) {
+ httpRequest.headersList.append("content-length", contentLengthHeaderValue, true);
+ }
+ if (contentLength != null && httpRequest.keepalive) {
+ }
+ if (webidl.is.URL(httpRequest.referrer)) {
+ httpRequest.headersList.append("referer", isomorphicEncode(httpRequest.referrer.href), true);
+ }
+ appendRequestOriginHeader(httpRequest);
+ appendFetchMetadata(httpRequest);
+ if (!httpRequest.headersList.contains("user-agent", true)) {
+ httpRequest.headersList.append("user-agent", defaultUserAgent, true);
+ }
+ if (httpRequest.cache === "default" && (httpRequest.headersList.contains("if-modified-since", true) || httpRequest.headersList.contains("if-none-match", true) || httpRequest.headersList.contains("if-unmodified-since", true) || httpRequest.headersList.contains("if-match", true) || httpRequest.headersList.contains("if-range", true))) {
+ httpRequest.cache = "no-store";
+ }
+ if (httpRequest.cache === "no-cache" && !httpRequest.preventNoCacheCacheControlHeaderModification && !httpRequest.headersList.contains("cache-control", true)) {
+ httpRequest.headersList.append("cache-control", "max-age=0", true);
+ }
+ if (httpRequest.cache === "no-store" || httpRequest.cache === "reload") {
+ if (!httpRequest.headersList.contains("pragma", true)) {
+ httpRequest.headersList.append("pragma", "no-cache", true);
+ }
+ if (!httpRequest.headersList.contains("cache-control", true)) {
+ httpRequest.headersList.append("cache-control", "no-cache", true);
+ }
+ }
+ if (httpRequest.headersList.contains("range", true)) {
+ httpRequest.headersList.append("accept-encoding", "identity", true);
+ }
+ if (!httpRequest.headersList.contains("accept-encoding", true)) {
+ if (urlHasHttpsScheme(requestCurrentURL(httpRequest))) {
+ httpRequest.headersList.append("accept-encoding", "br, gzip, deflate", true);
+ } else {
+ httpRequest.headersList.append("accept-encoding", "gzip, deflate", true);
+ }
+ }
+ httpRequest.headersList.delete("host", true);
+ if (includeCredentials) {
+ }
+ if (httpCache == null) {
+ httpRequest.cache = "no-store";
+ }
+ if (httpRequest.cache !== "no-store" && httpRequest.cache !== "reload") {
+ }
+ if (response == null) {
+ if (httpRequest.cache === "only-if-cached") {
+ return makeNetworkError("only if cached");
+ }
+ const forwardResponse = await httpNetworkFetch(
+ httpFetchParams,
+ includeCredentials,
+ isNewConnectionFetch
+ );
+ if (!safeMethodsSet.has(httpRequest.method) && forwardResponse.status >= 200 && forwardResponse.status <= 399) {
+ }
+ if (revalidatingFlag && forwardResponse.status === 304) {
+ }
+ if (response == null) {
+ response = forwardResponse;
+ }
+ }
+ response.urlList = [...httpRequest.urlList];
+ if (httpRequest.headersList.contains("range", true)) {
+ response.rangeRequested = true;
+ }
+ response.requestIncludesCredentials = includeCredentials;
+ if (response.status === 407) {
+ if (request2.window === "no-window") {
+ return makeNetworkError();
+ }
+ if (isCancelled(fetchParams)) {
+ return makeAppropriateNetworkError(fetchParams);
+ }
+ return makeNetworkError("proxy authentication required");
+ }
+ if (
+ // response’s status is 421
+ response.status === 421 && // isNewConnectionFetch is false
+ !isNewConnectionFetch && // request’s body is null, or request’s body is non-null and request’s body’s source is non-null
+ (request2.body == null || request2.body.source != null)
+ ) {
+ if (isCancelled(fetchParams)) {
+ return makeAppropriateNetworkError(fetchParams);
+ }
+ fetchParams.controller.connection.destroy();
+ response = await httpNetworkOrCacheFetch(
+ fetchParams,
+ isAuthenticationFetch,
+ true
+ );
+ }
+ if (isAuthenticationFetch) {
+ }
+ return response;
+ }
+ async function httpNetworkFetch(fetchParams, includeCredentials = false, forceNewConnection = false) {
+ assert2(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed);
+ fetchParams.controller.connection = {
+ abort: null,
+ destroyed: false,
+ destroy(err, abort = true) {
+ if (!this.destroyed) {
+ this.destroyed = true;
+ if (abort) {
+ this.abort?.(err ?? new DOMException("The operation was aborted.", "AbortError"));
+ }
+ }
+ }
+ };
+ const request2 = fetchParams.request;
+ let response = null;
+ const timingInfo = fetchParams.timingInfo;
+ const httpCache = null;
+ if (httpCache == null) {
+ request2.cache = "no-store";
+ }
+ const newConnection = forceNewConnection ? "yes" : "no";
+ if (request2.mode === "websocket") {
+ } else {
+ }
+ let requestBody = null;
+ if (request2.body == null && fetchParams.processRequestEndOfBody) {
+ queueMicrotask(() => fetchParams.processRequestEndOfBody());
+ } else if (request2.body != null) {
+ const processBodyChunk = async function* (bytes) {
+ if (isCancelled(fetchParams)) {
+ return;
+ }
+ yield bytes;
+ fetchParams.processRequestBodyChunkLength?.(bytes.byteLength);
+ };
+ const processEndOfBody = () => {
+ if (isCancelled(fetchParams)) {
+ return;
+ }
+ if (fetchParams.processRequestEndOfBody) {
+ fetchParams.processRequestEndOfBody();
+ }
+ };
+ const processBodyError = (e) => {
+ if (isCancelled(fetchParams)) {
+ return;
+ }
+ if (e.name === "AbortError") {
+ fetchParams.controller.abort();
+ } else {
+ fetchParams.controller.terminate(e);
+ }
+ };
+ requestBody = (async function* () {
+ try {
+ for await (const bytes of request2.body.stream) {
+ yield* processBodyChunk(bytes);
+ }
+ processEndOfBody();
+ } catch (err) {
+ processBodyError(err);
+ }
+ })();
+ }
+ try {
+ const { body, status, statusText, headersList, socket } = await dispatch({ body: requestBody });
+ if (socket) {
+ response = makeResponse({ status, statusText, headersList, socket });
+ } else {
+ const iterator2 = body[Symbol.asyncIterator]();
+ fetchParams.controller.next = () => iterator2.next();
+ response = makeResponse({ status, statusText, headersList });
+ }
+ } catch (err) {
+ if (err.name === "AbortError") {
+ fetchParams.controller.connection.destroy();
+ return makeAppropriateNetworkError(fetchParams, err);
+ }
+ return makeNetworkError(err);
+ }
+ const pullAlgorithm = () => {
+ return fetchParams.controller.resume();
+ };
+ const cancelAlgorithm = (reason) => {
+ if (!isCancelled(fetchParams)) {
+ fetchParams.controller.abort(reason);
+ }
+ };
+ const stream = new ReadableStream(
+ {
+ start(controller) {
+ fetchParams.controller.controller = controller;
+ },
+ pull: pullAlgorithm,
+ cancel: cancelAlgorithm,
+ type: "bytes"
+ }
+ );
+ response.body = { stream, source: null, length: null };
+ if (!fetchParams.controller.resume) {
+ fetchParams.controller.on("terminated", onAborted);
+ }
+ fetchParams.controller.resume = async () => {
+ while (true) {
+ let bytes;
+ let isFailure;
+ try {
+ const { done, value: value2 } = await fetchParams.controller.next();
+ if (isAborted4(fetchParams)) {
+ break;
+ }
+ bytes = done ? void 0 : value2;
+ } catch (err) {
+ if (fetchParams.controller.ended && !timingInfo.encodedBodySize) {
+ bytes = void 0;
+ } else {
+ bytes = err;
+ isFailure = true;
+ }
+ }
+ if (bytes === void 0) {
+ readableStreamClose(fetchParams.controller.controller);
+ finalizeResponse(fetchParams, response);
+ return;
+ }
+ timingInfo.decodedBodySize += bytes?.byteLength ?? 0;
+ if (isFailure) {
+ fetchParams.controller.terminate(bytes);
+ return;
+ }
+ const buffer = new Uint8Array(bytes);
+ if (buffer.byteLength) {
+ fetchParams.controller.controller.enqueue(buffer);
+ }
+ if (isErrored(stream)) {
+ fetchParams.controller.terminate();
+ return;
+ }
+ if (fetchParams.controller.controller.desiredSize <= 0) {
+ return;
+ }
+ }
+ };
+ function onAborted(reason) {
+ if (isAborted4(fetchParams)) {
+ response.aborted = true;
+ if (isReadable(stream)) {
+ fetchParams.controller.controller.error(
+ fetchParams.controller.serializedAbortReason
+ );
+ }
+ } else {
+ if (isReadable(stream)) {
+ fetchParams.controller.controller.error(new TypeError("terminated", {
+ cause: isErrorLike(reason) ? reason : void 0
+ }));
+ }
+ }
+ fetchParams.controller.connection.destroy();
+ }
+ return response;
+ function dispatch({ body }) {
+ const url2 = requestCurrentURL(request2);
+ const agent2 = fetchParams.controller.dispatcher;
+ return new Promise((resolve, reject) => agent2.dispatch(
+ {
+ path: url2.pathname + url2.search,
+ origin: url2.origin,
+ method: request2.method,
+ body: agent2.isMockActive ? request2.body && (request2.body.source || request2.body.stream) : body,
+ headers: request2.headersList.entries,
+ maxRedirections: 0,
+ upgrade: request2.mode === "websocket" ? "websocket" : void 0
+ },
+ {
+ body: null,
+ abort: null,
+ onConnect(abort) {
+ const { connection } = fetchParams.controller;
+ timingInfo.finalConnectionTimingInfo = clampAndCoarsenConnectionTimingInfo(void 0, timingInfo.postRedirectStartTime, fetchParams.crossOriginIsolatedCapability);
+ if (connection.destroyed) {
+ abort(new DOMException("The operation was aborted.", "AbortError"));
+ } else {
+ fetchParams.controller.on("terminated", abort);
+ this.abort = connection.abort = abort;
+ }
+ timingInfo.finalNetworkRequestStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability);
+ },
+ onResponseStarted() {
+ timingInfo.finalNetworkResponseStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability);
+ },
+ onHeaders(status, rawHeaders, resume, statusText) {
+ if (status < 200) {
+ return false;
+ }
+ const headersList = new HeadersList();
+ for (let i = 0; i < rawHeaders.length; i += 2) {
+ headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString("latin1"), true);
+ }
+ const location = headersList.get("location", true);
+ this.body = new Readable({ read: resume });
+ const willFollow = location && request2.redirect === "follow" && redirectStatusSet.has(status);
+ const decoders = [];
+ if (request2.method !== "HEAD" && request2.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) {
+ const contentEncoding = headersList.get("content-encoding", true);
+ const codings = contentEncoding ? contentEncoding.toLowerCase().split(",") : [];
+ for (let i = codings.length - 1; i >= 0; --i) {
+ const coding = codings[i].trim();
+ if (coding === "x-gzip" || coding === "gzip") {
+ decoders.push(zlib.createGunzip({
+ // Be less strict when decoding compressed responses, since sometimes
+ // servers send slightly invalid responses that are still accepted
+ // by common browsers.
+ // Always using Z_SYNC_FLUSH is what cURL does.
+ flush: zlib.constants.Z_SYNC_FLUSH,
+ finishFlush: zlib.constants.Z_SYNC_FLUSH
+ }));
+ } else if (coding === "deflate") {
+ decoders.push(createInflate({
+ flush: zlib.constants.Z_SYNC_FLUSH,
+ finishFlush: zlib.constants.Z_SYNC_FLUSH
+ }));
+ } else if (coding === "br") {
+ decoders.push(zlib.createBrotliDecompress({
+ flush: zlib.constants.BROTLI_OPERATION_FLUSH,
+ finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
+ }));
+ } else if (coding === "zstd" && hasZstd) {
+ decoders.push(zlib.createZstdDecompress({
+ flush: zlib.constants.ZSTD_e_continue,
+ finishFlush: zlib.constants.ZSTD_e_end
+ }));
+ } else {
+ decoders.length = 0;
+ break;
+ }
+ }
+ }
+ const onError = this.onError.bind(this);
+ resolve({
+ status,
+ statusText,
+ headersList,
+ body: decoders.length ? pipeline2(this.body, ...decoders, (err) => {
+ if (err) {
+ this.onError(err);
+ }
+ }).on("error", onError) : this.body.on("error", onError)
+ });
+ return true;
+ },
+ onData(chunk) {
+ if (fetchParams.controller.dump) {
+ return;
+ }
+ const bytes = chunk;
+ timingInfo.encodedBodySize += bytes.byteLength;
+ return this.body.push(bytes);
+ },
+ onComplete() {
+ if (this.abort) {
+ fetchParams.controller.off("terminated", this.abort);
+ }
+ fetchParams.controller.ended = true;
+ this.body.push(null);
+ },
+ onError(error41) {
+ if (this.abort) {
+ fetchParams.controller.off("terminated", this.abort);
+ }
+ this.body?.destroy(error41);
+ fetchParams.controller.terminate(error41);
+ reject(error41);
+ },
+ onUpgrade(status, rawHeaders, socket) {
+ if (status !== 101) {
+ return;
+ }
+ const headersList = new HeadersList();
+ for (let i = 0; i < rawHeaders.length; i += 2) {
+ headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString("latin1"), true);
+ }
+ resolve({
+ status,
+ statusText: STATUS_CODES[status],
+ headersList,
+ socket
+ });
+ return true;
+ }
+ }
+ ));
+ }
+ }
+ module.exports = {
+ fetch: fetch3,
+ Fetch,
+ fetching,
+ finalizeAndReportTiming
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cache/util.js
+var require_util13 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cache/util.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var { URLSerializer } = require_data_url();
+ var { isValidHeaderName } = require_util12();
+ function urlEquals(A, B, excludeFragment = false) {
+ const serializedA = URLSerializer(A, excludeFragment);
+ const serializedB = URLSerializer(B, excludeFragment);
+ return serializedA === serializedB;
+ }
+ function getFieldValues(header) {
+ assert2(header !== null);
+ const values = [];
+ for (let value2 of header.split(",")) {
+ value2 = value2.trim();
+ if (isValidHeaderName(value2)) {
+ values.push(value2);
+ }
+ }
+ return values;
+ }
+ module.exports = {
+ urlEquals,
+ getFieldValues
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cache/cache.js
+var require_cache7 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cache/cache.js"(exports, module) {
+ "use strict";
+ var assert2 = __require("node:assert");
+ var { kConstruct } = require_symbols6();
+ var { urlEquals, getFieldValues } = require_util13();
+ var { kEnumerableProperty, isDisturbed } = require_util11();
+ var { webidl } = require_webidl2();
+ var { cloneResponse, fromInnerResponse, getResponseState } = require_response2();
+ var { Request: Request2, fromInnerRequest, getRequestState } = require_request4();
+ var { fetching } = require_fetch2();
+ var { urlIsHttpHttpsScheme, readAllBytes } = require_util12();
+ var { createDeferredPromise } = require_promise();
+ var Cache = class _Cache {
+ /**
+ * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list
+ * @type {requestResponseList}
+ */
+ #relevantRequestResponseList;
+ constructor() {
+ if (arguments[0] !== kConstruct) {
+ webidl.illegalConstructor();
+ }
+ webidl.util.markAsUncloneable(this);
+ this.#relevantRequestResponseList = arguments[1];
+ }
+ async match(request2, options = {}) {
+ webidl.brandCheck(this, _Cache);
+ const prefix = "Cache.match";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ request2 = webidl.converters.RequestInfo(request2);
+ options = webidl.converters.CacheQueryOptions(options, prefix, "options");
+ const p = this.#internalMatchAll(request2, options, 1);
+ if (p.length === 0) {
+ return;
+ }
+ return p[0];
+ }
+ async matchAll(request2 = void 0, options = {}) {
+ webidl.brandCheck(this, _Cache);
+ const prefix = "Cache.matchAll";
+ if (request2 !== void 0) request2 = webidl.converters.RequestInfo(request2);
+ options = webidl.converters.CacheQueryOptions(options, prefix, "options");
+ return this.#internalMatchAll(request2, options);
+ }
+ async add(request2) {
+ webidl.brandCheck(this, _Cache);
+ const prefix = "Cache.add";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ request2 = webidl.converters.RequestInfo(request2);
+ const requests = [request2];
+ const responseArrayPromise = this.addAll(requests);
+ return await responseArrayPromise;
+ }
+ async addAll(requests) {
+ webidl.brandCheck(this, _Cache);
+ const prefix = "Cache.addAll";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ const responsePromises = [];
+ const requestList = [];
+ for (let request2 of requests) {
+ if (request2 === void 0) {
+ throw webidl.errors.conversionFailed({
+ prefix,
+ argument: "Argument 1",
+ types: ["undefined is not allowed"]
+ });
+ }
+ request2 = webidl.converters.RequestInfo(request2);
+ if (typeof request2 === "string") {
+ continue;
+ }
+ const r = getRequestState(request2);
+ if (!urlIsHttpHttpsScheme(r.url) || r.method !== "GET") {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: "Expected http/s scheme when method is not GET."
+ });
+ }
+ }
+ const fetchControllers = [];
+ for (const request2 of requests) {
+ const r = getRequestState(new Request2(request2));
+ if (!urlIsHttpHttpsScheme(r.url)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: "Expected http/s scheme."
+ });
+ }
+ r.initiator = "fetch";
+ r.destination = "subresource";
+ requestList.push(r);
+ const responsePromise = createDeferredPromise();
+ fetchControllers.push(fetching({
+ request: r,
+ processResponse(response) {
+ if (response.type === "error" || response.status === 206 || response.status < 200 || response.status > 299) {
+ responsePromise.reject(webidl.errors.exception({
+ header: "Cache.addAll",
+ message: "Received an invalid status code or the request failed."
+ }));
+ } else if (response.headersList.contains("vary")) {
+ const fieldValues = getFieldValues(response.headersList.get("vary"));
+ for (const fieldValue of fieldValues) {
+ if (fieldValue === "*") {
+ responsePromise.reject(webidl.errors.exception({
+ header: "Cache.addAll",
+ message: "invalid vary field value"
+ }));
+ for (const controller of fetchControllers) {
+ controller.abort();
+ }
+ return;
+ }
+ }
+ }
+ },
+ processResponseEndOfBody(response) {
+ if (response.aborted) {
+ responsePromise.reject(new DOMException("aborted", "AbortError"));
+ return;
+ }
+ responsePromise.resolve(response);
+ }
+ }));
+ responsePromises.push(responsePromise.promise);
+ }
+ const p = Promise.all(responsePromises);
+ const responses = await p;
+ const operations = [];
+ let index = 0;
+ for (const response of responses) {
+ const operation = {
+ type: "put",
+ // 7.3.2
+ request: requestList[index],
+ // 7.3.3
+ response
+ // 7.3.4
+ };
+ operations.push(operation);
+ index++;
+ }
+ const cacheJobPromise = createDeferredPromise();
+ let errorData = null;
+ try {
+ this.#batchCacheOperations(operations);
+ } catch (e) {
+ errorData = e;
+ }
+ queueMicrotask(() => {
+ if (errorData === null) {
+ cacheJobPromise.resolve(void 0);
+ } else {
+ cacheJobPromise.reject(errorData);
+ }
+ });
+ return cacheJobPromise.promise;
+ }
+ async put(request2, response) {
+ webidl.brandCheck(this, _Cache);
+ const prefix = "Cache.put";
+ webidl.argumentLengthCheck(arguments, 2, prefix);
+ request2 = webidl.converters.RequestInfo(request2);
+ response = webidl.converters.Response(response, prefix, "response");
+ let innerRequest = null;
+ if (webidl.is.Request(request2)) {
+ innerRequest = getRequestState(request2);
+ } else {
+ innerRequest = getRequestState(new Request2(request2));
+ }
+ if (!urlIsHttpHttpsScheme(innerRequest.url) || innerRequest.method !== "GET") {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: "Expected an http/s scheme when method is not GET"
+ });
+ }
+ const innerResponse = getResponseState(response);
+ if (innerResponse.status === 206) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: "Got 206 status"
+ });
+ }
+ if (innerResponse.headersList.contains("vary")) {
+ const fieldValues = getFieldValues(innerResponse.headersList.get("vary"));
+ for (const fieldValue of fieldValues) {
+ if (fieldValue === "*") {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: "Got * vary field value"
+ });
+ }
+ }
+ }
+ if (innerResponse.body && (isDisturbed(innerResponse.body.stream) || innerResponse.body.stream.locked)) {
+ throw webidl.errors.exception({
+ header: prefix,
+ message: "Response body is locked or disturbed"
+ });
+ }
+ const clonedResponse = cloneResponse(innerResponse);
+ const bodyReadPromise = createDeferredPromise();
+ if (innerResponse.body != null) {
+ const stream = innerResponse.body.stream;
+ const reader = stream.getReader();
+ readAllBytes(reader, bodyReadPromise.resolve, bodyReadPromise.reject);
+ } else {
+ bodyReadPromise.resolve(void 0);
+ }
+ const operations = [];
+ const operation = {
+ type: "put",
+ // 14.
+ request: innerRequest,
+ // 15.
+ response: clonedResponse
+ // 16.
+ };
+ operations.push(operation);
+ const bytes = await bodyReadPromise.promise;
+ if (clonedResponse.body != null) {
+ clonedResponse.body.source = bytes;
+ }
+ const cacheJobPromise = createDeferredPromise();
+ let errorData = null;
+ try {
+ this.#batchCacheOperations(operations);
+ } catch (e) {
+ errorData = e;
+ }
+ queueMicrotask(() => {
+ if (errorData === null) {
+ cacheJobPromise.resolve();
+ } else {
+ cacheJobPromise.reject(errorData);
+ }
+ });
+ return cacheJobPromise.promise;
+ }
+ async delete(request2, options = {}) {
+ webidl.brandCheck(this, _Cache);
+ const prefix = "Cache.delete";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ request2 = webidl.converters.RequestInfo(request2);
+ options = webidl.converters.CacheQueryOptions(options, prefix, "options");
+ let r = null;
+ if (webidl.is.Request(request2)) {
+ r = getRequestState(request2);
+ if (r.method !== "GET" && !options.ignoreMethod) {
+ return false;
+ }
+ } else {
+ assert2(typeof request2 === "string");
+ r = getRequestState(new Request2(request2));
+ }
+ const operations = [];
+ const operation = {
+ type: "delete",
+ request: r,
+ options
+ };
+ operations.push(operation);
+ const cacheJobPromise = createDeferredPromise();
+ let errorData = null;
+ let requestResponses;
+ try {
+ requestResponses = this.#batchCacheOperations(operations);
+ } catch (e) {
+ errorData = e;
+ }
+ queueMicrotask(() => {
+ if (errorData === null) {
+ cacheJobPromise.resolve(!!requestResponses?.length);
+ } else {
+ cacheJobPromise.reject(errorData);
+ }
+ });
+ return cacheJobPromise.promise;
+ }
+ /**
+ * @see https://w3c.github.io/ServiceWorker/#dom-cache-keys
+ * @param {any} request
+ * @param {import('../../../types/cache').CacheQueryOptions} options
+ * @returns {Promise}
+ */
+ async keys(request2 = void 0, options = {}) {
+ webidl.brandCheck(this, _Cache);
+ const prefix = "Cache.keys";
+ if (request2 !== void 0) request2 = webidl.converters.RequestInfo(request2);
+ options = webidl.converters.CacheQueryOptions(options, prefix, "options");
+ let r = null;
+ if (request2 !== void 0) {
+ if (webidl.is.Request(request2)) {
+ r = getRequestState(request2);
+ if (r.method !== "GET" && !options.ignoreMethod) {
+ return [];
+ }
+ } else if (typeof request2 === "string") {
+ r = getRequestState(new Request2(request2));
+ }
+ }
+ const promise = createDeferredPromise();
+ const requests = [];
+ if (request2 === void 0) {
+ for (const requestResponse of this.#relevantRequestResponseList) {
+ requests.push(requestResponse[0]);
+ }
+ } else {
+ const requestResponses = this.#queryCache(r, options);
+ for (const requestResponse of requestResponses) {
+ requests.push(requestResponse[0]);
+ }
+ }
+ queueMicrotask(() => {
+ const requestList = [];
+ for (const request3 of requests) {
+ const requestObject = fromInnerRequest(
+ request3,
+ void 0,
+ new AbortController().signal,
+ "immutable"
+ );
+ requestList.push(requestObject);
+ }
+ promise.resolve(Object.freeze(requestList));
+ });
+ return promise.promise;
+ }
+ /**
+ * @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm
+ * @param {CacheBatchOperation[]} operations
+ * @returns {requestResponseList}
+ */
+ #batchCacheOperations(operations) {
+ const cache = this.#relevantRequestResponseList;
+ const backupCache = [...cache];
+ const addedItems = [];
+ const resultList = [];
+ try {
+ for (const operation of operations) {
+ if (operation.type !== "delete" && operation.type !== "put") {
+ throw webidl.errors.exception({
+ header: "Cache.#batchCacheOperations",
+ message: 'operation type does not match "delete" or "put"'
+ });
+ }
+ if (operation.type === "delete" && operation.response != null) {
+ throw webidl.errors.exception({
+ header: "Cache.#batchCacheOperations",
+ message: "delete operation should not have an associated response"
+ });
+ }
+ if (this.#queryCache(operation.request, operation.options, addedItems).length) {
+ throw new DOMException("???", "InvalidStateError");
+ }
+ let requestResponses;
+ if (operation.type === "delete") {
+ requestResponses = this.#queryCache(operation.request, operation.options);
+ if (requestResponses.length === 0) {
+ return [];
+ }
+ for (const requestResponse of requestResponses) {
+ const idx = cache.indexOf(requestResponse);
+ assert2(idx !== -1);
+ cache.splice(idx, 1);
+ }
+ } else if (operation.type === "put") {
+ if (operation.response == null) {
+ throw webidl.errors.exception({
+ header: "Cache.#batchCacheOperations",
+ message: "put operation should have an associated response"
+ });
+ }
+ const r = operation.request;
+ if (!urlIsHttpHttpsScheme(r.url)) {
+ throw webidl.errors.exception({
+ header: "Cache.#batchCacheOperations",
+ message: "expected http or https scheme"
+ });
+ }
+ if (r.method !== "GET") {
+ throw webidl.errors.exception({
+ header: "Cache.#batchCacheOperations",
+ message: "not get method"
+ });
+ }
+ if (operation.options != null) {
+ throw webidl.errors.exception({
+ header: "Cache.#batchCacheOperations",
+ message: "options must not be defined"
+ });
+ }
+ requestResponses = this.#queryCache(operation.request);
+ for (const requestResponse of requestResponses) {
+ const idx = cache.indexOf(requestResponse);
+ assert2(idx !== -1);
+ cache.splice(idx, 1);
+ }
+ cache.push([operation.request, operation.response]);
+ addedItems.push([operation.request, operation.response]);
+ }
+ resultList.push([operation.request, operation.response]);
+ }
+ return resultList;
+ } catch (e) {
+ this.#relevantRequestResponseList.length = 0;
+ this.#relevantRequestResponseList = backupCache;
+ throw e;
+ }
+ }
+ /**
+ * @see https://w3c.github.io/ServiceWorker/#query-cache
+ * @param {any} requestQuery
+ * @param {import('../../../types/cache').CacheQueryOptions} options
+ * @param {requestResponseList} targetStorage
+ * @returns {requestResponseList}
+ */
+ #queryCache(requestQuery, options, targetStorage) {
+ const resultList = [];
+ const storage = targetStorage ?? this.#relevantRequestResponseList;
+ for (const requestResponse of storage) {
+ const [cachedRequest, cachedResponse] = requestResponse;
+ if (this.#requestMatchesCachedItem(requestQuery, cachedRequest, cachedResponse, options)) {
+ resultList.push(requestResponse);
+ }
+ }
+ return resultList;
+ }
+ /**
+ * @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm
+ * @param {any} requestQuery
+ * @param {any} request
+ * @param {any | null} response
+ * @param {import('../../../types/cache').CacheQueryOptions | undefined} options
+ * @returns {boolean}
+ */
+ #requestMatchesCachedItem(requestQuery, request2, response = null, options) {
+ const queryURL = new URL(requestQuery.url);
+ const cachedURL = new URL(request2.url);
+ if (options?.ignoreSearch) {
+ cachedURL.search = "";
+ queryURL.search = "";
+ }
+ if (!urlEquals(queryURL, cachedURL, true)) {
+ return false;
+ }
+ if (response == null || options?.ignoreVary || !response.headersList.contains("vary")) {
+ return true;
+ }
+ const fieldValues = getFieldValues(response.headersList.get("vary"));
+ for (const fieldValue of fieldValues) {
+ if (fieldValue === "*") {
+ return false;
+ }
+ const requestValue = request2.headersList.get(fieldValue);
+ const queryValue = requestQuery.headersList.get(fieldValue);
+ if (requestValue !== queryValue) {
+ return false;
+ }
+ }
+ return true;
+ }
+ #internalMatchAll(request2, options, maxResponses = Infinity) {
+ let r = null;
+ if (request2 !== void 0) {
+ if (webidl.is.Request(request2)) {
+ r = getRequestState(request2);
+ if (r.method !== "GET" && !options.ignoreMethod) {
+ return [];
+ }
+ } else if (typeof request2 === "string") {
+ r = getRequestState(new Request2(request2));
+ }
+ }
+ const responses = [];
+ if (request2 === void 0) {
+ for (const requestResponse of this.#relevantRequestResponseList) {
+ responses.push(requestResponse[1]);
+ }
+ } else {
+ const requestResponses = this.#queryCache(r, options);
+ for (const requestResponse of requestResponses) {
+ responses.push(requestResponse[1]);
+ }
+ }
+ const responseList = [];
+ for (const response of responses) {
+ const responseObject = fromInnerResponse(response, "immutable");
+ responseList.push(responseObject.clone());
+ if (responseList.length >= maxResponses) {
+ break;
+ }
+ }
+ return Object.freeze(responseList);
+ }
+ };
+ Object.defineProperties(Cache.prototype, {
+ [Symbol.toStringTag]: {
+ value: "Cache",
+ configurable: true
+ },
+ match: kEnumerableProperty,
+ matchAll: kEnumerableProperty,
+ add: kEnumerableProperty,
+ addAll: kEnumerableProperty,
+ put: kEnumerableProperty,
+ delete: kEnumerableProperty,
+ keys: kEnumerableProperty
+ });
+ var cacheQueryOptionConverters = [
+ {
+ key: "ignoreSearch",
+ converter: webidl.converters.boolean,
+ defaultValue: () => false
+ },
+ {
+ key: "ignoreMethod",
+ converter: webidl.converters.boolean,
+ defaultValue: () => false
+ },
+ {
+ key: "ignoreVary",
+ converter: webidl.converters.boolean,
+ defaultValue: () => false
+ }
+ ];
+ webidl.converters.CacheQueryOptions = webidl.dictionaryConverter(cacheQueryOptionConverters);
+ webidl.converters.MultiCacheQueryOptions = webidl.dictionaryConverter([
+ ...cacheQueryOptionConverters,
+ {
+ key: "cacheName",
+ converter: webidl.converters.DOMString
+ }
+ ]);
+ webidl.converters.Response = webidl.interfaceConverter(
+ webidl.is.Response,
+ "Response"
+ );
+ webidl.converters["sequence"] = webidl.sequenceConverter(
+ webidl.converters.RequestInfo
+ );
+ module.exports = {
+ Cache
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cache/cachestorage.js
+var require_cachestorage2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cache/cachestorage.js"(exports, module) {
+ "use strict";
+ var { Cache } = require_cache7();
+ var { webidl } = require_webidl2();
+ var { kEnumerableProperty } = require_util11();
+ var { kConstruct } = require_symbols6();
+ var CacheStorage = class _CacheStorage {
+ /**
+ * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-name-to-cache-map
+ * @type {Map}
+ */
+ async has(cacheName) {
+ webidl.brandCheck(this, _CacheStorage);
+ const prefix = "CacheStorage.has";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ cacheName = webidl.converters.DOMString(cacheName, prefix, "cacheName");
+ return this.#caches.has(cacheName);
+ }
+ /**
+ * @see https://w3c.github.io/ServiceWorker/#dom-cachestorage-open
+ * @param {string} cacheName
+ * @returns {Promise}
+ */
+ async open(cacheName) {
+ webidl.brandCheck(this, _CacheStorage);
+ const prefix = "CacheStorage.open";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ cacheName = webidl.converters.DOMString(cacheName, prefix, "cacheName");
+ if (this.#caches.has(cacheName)) {
+ const cache2 = this.#caches.get(cacheName);
+ return new Cache(kConstruct, cache2);
+ }
+ const cache = [];
+ this.#caches.set(cacheName, cache);
+ return new Cache(kConstruct, cache);
+ }
+ /**
+ * @see https://w3c.github.io/ServiceWorker/#cache-storage-delete
+ * @param {string} cacheName
+ * @returns {Promise}
+ */
+ async delete(cacheName) {
+ webidl.brandCheck(this, _CacheStorage);
+ const prefix = "CacheStorage.delete";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ cacheName = webidl.converters.DOMString(cacheName, prefix, "cacheName");
+ return this.#caches.delete(cacheName);
+ }
+ /**
+ * @see https://w3c.github.io/ServiceWorker/#cache-storage-keys
+ * @returns {Promise}
+ */
+ async keys() {
+ webidl.brandCheck(this, _CacheStorage);
+ const keys = this.#caches.keys();
+ return [...keys];
+ }
+ };
+ Object.defineProperties(CacheStorage.prototype, {
+ [Symbol.toStringTag]: {
+ value: "CacheStorage",
+ configurable: true
+ },
+ match: kEnumerableProperty,
+ has: kEnumerableProperty,
+ open: kEnumerableProperty,
+ delete: kEnumerableProperty,
+ keys: kEnumerableProperty
+ });
+ module.exports = {
+ CacheStorage
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cookies/constants.js
+var require_constants9 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cookies/constants.js"(exports, module) {
+ "use strict";
+ var maxAttributeValueSize = 1024;
+ var maxNameValuePairSize = 4096;
+ module.exports = {
+ maxAttributeValueSize,
+ maxNameValuePairSize
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cookies/util.js
+var require_util14 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cookies/util.js"(exports, module) {
+ "use strict";
+ function isCTLExcludingHtab(value2) {
+ for (let i = 0; i < value2.length; ++i) {
+ const code = value2.charCodeAt(i);
+ if (code >= 0 && code <= 8 || code >= 10 && code <= 31 || code === 127) {
+ return true;
+ }
+ }
+ return false;
+ }
+ function validateCookieName(name) {
+ for (let i = 0; i < name.length; ++i) {
+ const code = name.charCodeAt(i);
+ if (code < 33 || // exclude CTLs (0-31), SP and HT
+ code > 126 || // exclude non-ascii and DEL
+ code === 34 || // "
+ code === 40 || // (
+ code === 41 || // )
+ code === 60 || // <
+ code === 62 || // >
+ code === 64 || // @
+ code === 44 || // ,
+ code === 59 || // ;
+ code === 58 || // :
+ code === 92 || // \
+ code === 47 || // /
+ code === 91 || // [
+ code === 93 || // ]
+ code === 63 || // ?
+ code === 61 || // =
+ code === 123 || // {
+ code === 125) {
+ throw new Error("Invalid cookie name");
+ }
+ }
+ }
+ function validateCookieValue(value2) {
+ let len = value2.length;
+ let i = 0;
+ if (value2[0] === '"') {
+ if (len === 1 || value2[len - 1] !== '"') {
+ throw new Error("Invalid cookie value");
+ }
+ --len;
+ ++i;
+ }
+ while (i < len) {
+ const code = value2.charCodeAt(i++);
+ if (code < 33 || // exclude CTLs (0-31)
+ code > 126 || // non-ascii and DEL (127)
+ code === 34 || // "
+ code === 44 || // ,
+ code === 59 || // ;
+ code === 92) {
+ throw new Error("Invalid cookie value");
+ }
+ }
+ }
+ function validateCookiePath(path3) {
+ for (let i = 0; i < path3.length; ++i) {
+ const code = path3.charCodeAt(i);
+ if (code < 32 || // exclude CTLs (0-31)
+ code === 127 || // DEL
+ code === 59) {
+ throw new Error("Invalid cookie path");
+ }
+ }
+ }
+ function validateCookieDomain(domain2) {
+ if (domain2.startsWith("-") || domain2.endsWith(".") || domain2.endsWith("-")) {
+ throw new Error("Invalid cookie domain");
+ }
+ }
+ var IMFDays = [
+ "Sun",
+ "Mon",
+ "Tue",
+ "Wed",
+ "Thu",
+ "Fri",
+ "Sat"
+ ];
+ var IMFMonths = [
+ "Jan",
+ "Feb",
+ "Mar",
+ "Apr",
+ "May",
+ "Jun",
+ "Jul",
+ "Aug",
+ "Sep",
+ "Oct",
+ "Nov",
+ "Dec"
+ ];
+ var IMFPaddedNumbers = Array(61).fill(0).map((_, i) => i.toString().padStart(2, "0"));
+ function toIMFDate(date2) {
+ if (typeof date2 === "number") {
+ date2 = new Date(date2);
+ }
+ return `${IMFDays[date2.getUTCDay()]}, ${IMFPaddedNumbers[date2.getUTCDate()]} ${IMFMonths[date2.getUTCMonth()]} ${date2.getUTCFullYear()} ${IMFPaddedNumbers[date2.getUTCHours()]}:${IMFPaddedNumbers[date2.getUTCMinutes()]}:${IMFPaddedNumbers[date2.getUTCSeconds()]} GMT`;
+ }
+ function validateCookieMaxAge(maxAge) {
+ if (maxAge < 0) {
+ throw new Error("Invalid cookie max-age");
+ }
+ }
+ function stringify(cookie) {
+ if (cookie.name.length === 0) {
+ return null;
+ }
+ validateCookieName(cookie.name);
+ validateCookieValue(cookie.value);
+ const out = [`${cookie.name}=${cookie.value}`];
+ if (cookie.name.startsWith("__Secure-")) {
+ cookie.secure = true;
+ }
+ if (cookie.name.startsWith("__Host-")) {
+ cookie.secure = true;
+ cookie.domain = null;
+ cookie.path = "/";
+ }
+ if (cookie.secure) {
+ out.push("Secure");
+ }
+ if (cookie.httpOnly) {
+ out.push("HttpOnly");
+ }
+ if (typeof cookie.maxAge === "number") {
+ validateCookieMaxAge(cookie.maxAge);
+ out.push(`Max-Age=${cookie.maxAge}`);
+ }
+ if (cookie.domain) {
+ validateCookieDomain(cookie.domain);
+ out.push(`Domain=${cookie.domain}`);
+ }
+ if (cookie.path) {
+ validateCookiePath(cookie.path);
+ out.push(`Path=${cookie.path}`);
+ }
+ if (cookie.expires && cookie.expires.toString() !== "Invalid Date") {
+ out.push(`Expires=${toIMFDate(cookie.expires)}`);
+ }
+ if (cookie.sameSite) {
+ out.push(`SameSite=${cookie.sameSite}`);
+ }
+ for (const part of cookie.unparsed) {
+ if (!part.includes("=")) {
+ throw new Error("Invalid unparsed");
+ }
+ const [key, ...value2] = part.split("=");
+ out.push(`${key.trim()}=${value2.join("=")}`);
+ }
+ return out.join("; ");
+ }
+ module.exports = {
+ isCTLExcludingHtab,
+ validateCookieName,
+ validateCookiePath,
+ validateCookieValue,
+ toIMFDate,
+ stringify
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cookies/parse.js
+var require_parse2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cookies/parse.js"(exports, module) {
+ "use strict";
+ var { maxNameValuePairSize, maxAttributeValueSize } = require_constants9();
+ var { isCTLExcludingHtab } = require_util14();
+ var { collectASequenceOfCodePointsFast } = require_data_url();
+ var assert2 = __require("node:assert");
+ var { unescape: qsUnescape } = __require("node:querystring");
+ function parseSetCookie(header) {
+ if (isCTLExcludingHtab(header)) {
+ return null;
+ }
+ let nameValuePair = "";
+ let unparsedAttributes = "";
+ let name = "";
+ let value2 = "";
+ if (header.includes(";")) {
+ const position = { position: 0 };
+ nameValuePair = collectASequenceOfCodePointsFast(";", header, position);
+ unparsedAttributes = header.slice(position.position);
+ } else {
+ nameValuePair = header;
+ }
+ if (!nameValuePair.includes("=")) {
+ value2 = nameValuePair;
+ } else {
+ const position = { position: 0 };
+ name = collectASequenceOfCodePointsFast(
+ "=",
+ nameValuePair,
+ position
+ );
+ value2 = nameValuePair.slice(position.position + 1);
+ }
+ name = name.trim();
+ value2 = value2.trim();
+ if (name.length + value2.length > maxNameValuePairSize) {
+ return null;
+ }
+ return {
+ name,
+ value: qsUnescape(value2),
+ ...parseUnparsedAttributes(unparsedAttributes)
+ };
+ }
+ function parseUnparsedAttributes(unparsedAttributes, cookieAttributeList = {}) {
+ if (unparsedAttributes.length === 0) {
+ return cookieAttributeList;
+ }
+ assert2(unparsedAttributes[0] === ";");
+ unparsedAttributes = unparsedAttributes.slice(1);
+ let cookieAv = "";
+ if (unparsedAttributes.includes(";")) {
+ cookieAv = collectASequenceOfCodePointsFast(
+ ";",
+ unparsedAttributes,
+ { position: 0 }
+ );
+ unparsedAttributes = unparsedAttributes.slice(cookieAv.length);
+ } else {
+ cookieAv = unparsedAttributes;
+ unparsedAttributes = "";
+ }
+ let attributeName = "";
+ let attributeValue = "";
+ if (cookieAv.includes("=")) {
+ const position = { position: 0 };
+ attributeName = collectASequenceOfCodePointsFast(
+ "=",
+ cookieAv,
+ position
+ );
+ attributeValue = cookieAv.slice(position.position + 1);
+ } else {
+ attributeName = cookieAv;
+ }
+ attributeName = attributeName.trim();
+ attributeValue = attributeValue.trim();
+ if (attributeValue.length > maxAttributeValueSize) {
+ return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList);
+ }
+ const attributeNameLowercase = attributeName.toLowerCase();
+ if (attributeNameLowercase === "expires") {
+ const expiryTime = new Date(attributeValue);
+ cookieAttributeList.expires = expiryTime;
+ } else if (attributeNameLowercase === "max-age") {
+ const charCode = attributeValue.charCodeAt(0);
+ if ((charCode < 48 || charCode > 57) && attributeValue[0] !== "-") {
+ return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList);
+ }
+ if (!/^\d+$/.test(attributeValue)) {
+ return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList);
+ }
+ const deltaSeconds = Number(attributeValue);
+ cookieAttributeList.maxAge = deltaSeconds;
+ } else if (attributeNameLowercase === "domain") {
+ let cookieDomain = attributeValue;
+ if (cookieDomain[0] === ".") {
+ cookieDomain = cookieDomain.slice(1);
+ }
+ cookieDomain = cookieDomain.toLowerCase();
+ cookieAttributeList.domain = cookieDomain;
+ } else if (attributeNameLowercase === "path") {
+ let cookiePath = "";
+ if (attributeValue.length === 0 || attributeValue[0] !== "/") {
+ cookiePath = "/";
+ } else {
+ cookiePath = attributeValue;
+ }
+ cookieAttributeList.path = cookiePath;
+ } else if (attributeNameLowercase === "secure") {
+ cookieAttributeList.secure = true;
+ } else if (attributeNameLowercase === "httponly") {
+ cookieAttributeList.httpOnly = true;
+ } else if (attributeNameLowercase === "samesite") {
+ let enforcement = "Default";
+ const attributeValueLowercase = attributeValue.toLowerCase();
+ if (attributeValueLowercase.includes("none")) {
+ enforcement = "None";
+ }
+ if (attributeValueLowercase.includes("strict")) {
+ enforcement = "Strict";
+ }
+ if (attributeValueLowercase.includes("lax")) {
+ enforcement = "Lax";
+ }
+ cookieAttributeList.sameSite = enforcement;
+ } else {
+ cookieAttributeList.unparsed ??= [];
+ cookieAttributeList.unparsed.push(`${attributeName}=${attributeValue}`);
+ }
+ return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList);
+ }
+ module.exports = {
+ parseSetCookie,
+ parseUnparsedAttributes
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cookies/index.js
+var require_cookies2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/cookies/index.js"(exports, module) {
+ "use strict";
+ var { parseSetCookie } = require_parse2();
+ var { stringify } = require_util14();
+ var { webidl } = require_webidl2();
+ var { Headers: Headers2 } = require_headers2();
+ var brandChecks = webidl.brandCheckMultiple([Headers2, globalThis.Headers].filter(Boolean));
+ function getCookies(headers) {
+ webidl.argumentLengthCheck(arguments, 1, "getCookies");
+ brandChecks(headers);
+ const cookie = headers.get("cookie");
+ const out = {};
+ if (!cookie) {
+ return out;
+ }
+ for (const piece of cookie.split(";")) {
+ const [name, ...value2] = piece.split("=");
+ out[name.trim()] = value2.join("=");
+ }
+ return out;
+ }
+ function deleteCookie(headers, name, attributes) {
+ brandChecks(headers);
+ const prefix = "deleteCookie";
+ webidl.argumentLengthCheck(arguments, 2, prefix);
+ name = webidl.converters.DOMString(name, prefix, "name");
+ attributes = webidl.converters.DeleteCookieAttributes(attributes);
+ setCookie(headers, {
+ name,
+ value: "",
+ expires: /* @__PURE__ */ new Date(0),
+ ...attributes
+ });
+ }
+ function getSetCookies(headers) {
+ webidl.argumentLengthCheck(arguments, 1, "getSetCookies");
+ brandChecks(headers);
+ const cookies = headers.getSetCookie();
+ if (!cookies) {
+ return [];
+ }
+ return cookies.map((pair) => parseSetCookie(pair));
+ }
+ function parseCookie(cookie) {
+ cookie = webidl.converters.DOMString(cookie);
+ return parseSetCookie(cookie);
+ }
+ function setCookie(headers, cookie) {
+ webidl.argumentLengthCheck(arguments, 2, "setCookie");
+ brandChecks(headers);
+ cookie = webidl.converters.Cookie(cookie);
+ const str = stringify(cookie);
+ if (str) {
+ headers.append("set-cookie", str, true);
+ }
+ }
+ webidl.converters.DeleteCookieAttributes = webidl.dictionaryConverter([
+ {
+ converter: webidl.nullableConverter(webidl.converters.DOMString),
+ key: "path",
+ defaultValue: () => null
+ },
+ {
+ converter: webidl.nullableConverter(webidl.converters.DOMString),
+ key: "domain",
+ defaultValue: () => null
+ }
+ ]);
+ webidl.converters.Cookie = webidl.dictionaryConverter([
+ {
+ converter: webidl.converters.DOMString,
+ key: "name"
+ },
+ {
+ converter: webidl.converters.DOMString,
+ key: "value"
+ },
+ {
+ converter: webidl.nullableConverter((value2) => {
+ if (typeof value2 === "number") {
+ return webidl.converters["unsigned long long"](value2);
+ }
+ return new Date(value2);
+ }),
+ key: "expires",
+ defaultValue: () => null
+ },
+ {
+ converter: webidl.nullableConverter(webidl.converters["long long"]),
+ key: "maxAge",
+ defaultValue: () => null
+ },
+ {
+ converter: webidl.nullableConverter(webidl.converters.DOMString),
+ key: "domain",
+ defaultValue: () => null
+ },
+ {
+ converter: webidl.nullableConverter(webidl.converters.DOMString),
+ key: "path",
+ defaultValue: () => null
+ },
+ {
+ converter: webidl.nullableConverter(webidl.converters.boolean),
+ key: "secure",
+ defaultValue: () => null
+ },
+ {
+ converter: webidl.nullableConverter(webidl.converters.boolean),
+ key: "httpOnly",
+ defaultValue: () => null
+ },
+ {
+ converter: webidl.converters.USVString,
+ key: "sameSite",
+ allowedValues: ["Strict", "Lax", "None"]
+ },
+ {
+ converter: webidl.sequenceConverter(webidl.converters.DOMString),
+ key: "unparsed",
+ defaultValue: () => []
+ }
+ ]);
+ module.exports = {
+ getCookies,
+ deleteCookie,
+ getSetCookies,
+ setCookie,
+ parseCookie
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/events.js
+var require_events2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/events.js"(exports, module) {
+ "use strict";
+ var { webidl } = require_webidl2();
+ var { kEnumerableProperty } = require_util11();
+ var { kConstruct } = require_symbols6();
+ var MessageEvent2 = class _MessageEvent extends Event {
+ #eventInit;
+ constructor(type2, eventInitDict = {}) {
+ if (type2 === kConstruct) {
+ super(arguments[1], arguments[2]);
+ webidl.util.markAsUncloneable(this);
+ return;
+ }
+ const prefix = "MessageEvent constructor";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ type2 = webidl.converters.DOMString(type2, prefix, "type");
+ eventInitDict = webidl.converters.MessageEventInit(eventInitDict, prefix, "eventInitDict");
+ super(type2, eventInitDict);
+ this.#eventInit = eventInitDict;
+ webidl.util.markAsUncloneable(this);
+ }
+ get data() {
+ webidl.brandCheck(this, _MessageEvent);
+ return this.#eventInit.data;
+ }
+ get origin() {
+ webidl.brandCheck(this, _MessageEvent);
+ return this.#eventInit.origin;
+ }
+ get lastEventId() {
+ webidl.brandCheck(this, _MessageEvent);
+ return this.#eventInit.lastEventId;
+ }
+ get source() {
+ webidl.brandCheck(this, _MessageEvent);
+ return this.#eventInit.source;
+ }
+ get ports() {
+ webidl.brandCheck(this, _MessageEvent);
+ if (!Object.isFrozen(this.#eventInit.ports)) {
+ Object.freeze(this.#eventInit.ports);
+ }
+ return this.#eventInit.ports;
+ }
+ initMessageEvent(type2, bubbles = false, cancelable = false, data = null, origin = "", lastEventId = "", source = null, ports = []) {
+ webidl.brandCheck(this, _MessageEvent);
+ webidl.argumentLengthCheck(arguments, 1, "MessageEvent.initMessageEvent");
+ return new _MessageEvent(type2, {
+ bubbles,
+ cancelable,
+ data,
+ origin,
+ lastEventId,
+ source,
+ ports
+ });
+ }
+ static createFastMessageEvent(type2, init) {
+ const messageEvent = new _MessageEvent(kConstruct, type2, init);
+ messageEvent.#eventInit = init;
+ messageEvent.#eventInit.data ??= null;
+ messageEvent.#eventInit.origin ??= "";
+ messageEvent.#eventInit.lastEventId ??= "";
+ messageEvent.#eventInit.source ??= null;
+ messageEvent.#eventInit.ports ??= [];
+ return messageEvent;
+ }
+ };
+ var { createFastMessageEvent } = MessageEvent2;
+ delete MessageEvent2.createFastMessageEvent;
+ var CloseEvent = class _CloseEvent extends Event {
+ #eventInit;
+ constructor(type2, eventInitDict = {}) {
+ const prefix = "CloseEvent constructor";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ type2 = webidl.converters.DOMString(type2, prefix, "type");
+ eventInitDict = webidl.converters.CloseEventInit(eventInitDict);
+ super(type2, eventInitDict);
+ this.#eventInit = eventInitDict;
+ webidl.util.markAsUncloneable(this);
+ }
+ get wasClean() {
+ webidl.brandCheck(this, _CloseEvent);
+ return this.#eventInit.wasClean;
+ }
+ get code() {
+ webidl.brandCheck(this, _CloseEvent);
+ return this.#eventInit.code;
+ }
+ get reason() {
+ webidl.brandCheck(this, _CloseEvent);
+ return this.#eventInit.reason;
+ }
+ };
+ var ErrorEvent2 = class _ErrorEvent extends Event {
+ #eventInit;
+ constructor(type2, eventInitDict) {
+ const prefix = "ErrorEvent constructor";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ super(type2, eventInitDict);
+ webidl.util.markAsUncloneable(this);
+ type2 = webidl.converters.DOMString(type2, prefix, "type");
+ eventInitDict = webidl.converters.ErrorEventInit(eventInitDict ?? {});
+ this.#eventInit = eventInitDict;
+ }
+ get message() {
+ webidl.brandCheck(this, _ErrorEvent);
+ return this.#eventInit.message;
+ }
+ get filename() {
+ webidl.brandCheck(this, _ErrorEvent);
+ return this.#eventInit.filename;
+ }
+ get lineno() {
+ webidl.brandCheck(this, _ErrorEvent);
+ return this.#eventInit.lineno;
+ }
+ get colno() {
+ webidl.brandCheck(this, _ErrorEvent);
+ return this.#eventInit.colno;
+ }
+ get error() {
+ webidl.brandCheck(this, _ErrorEvent);
+ return this.#eventInit.error;
+ }
+ };
+ Object.defineProperties(MessageEvent2.prototype, {
+ [Symbol.toStringTag]: {
+ value: "MessageEvent",
+ configurable: true
+ },
+ data: kEnumerableProperty,
+ origin: kEnumerableProperty,
+ lastEventId: kEnumerableProperty,
+ source: kEnumerableProperty,
+ ports: kEnumerableProperty,
+ initMessageEvent: kEnumerableProperty
+ });
+ Object.defineProperties(CloseEvent.prototype, {
+ [Symbol.toStringTag]: {
+ value: "CloseEvent",
+ configurable: true
+ },
+ reason: kEnumerableProperty,
+ code: kEnumerableProperty,
+ wasClean: kEnumerableProperty
+ });
+ Object.defineProperties(ErrorEvent2.prototype, {
+ [Symbol.toStringTag]: {
+ value: "ErrorEvent",
+ configurable: true
+ },
+ message: kEnumerableProperty,
+ filename: kEnumerableProperty,
+ lineno: kEnumerableProperty,
+ colno: kEnumerableProperty,
+ error: kEnumerableProperty
+ });
+ webidl.converters.MessagePort = webidl.interfaceConverter(
+ webidl.is.MessagePort,
+ "MessagePort"
+ );
+ webidl.converters["sequence"] = webidl.sequenceConverter(
+ webidl.converters.MessagePort
+ );
+ var eventInit = [
+ {
+ key: "bubbles",
+ converter: webidl.converters.boolean,
+ defaultValue: () => false
+ },
+ {
+ key: "cancelable",
+ converter: webidl.converters.boolean,
+ defaultValue: () => false
+ },
+ {
+ key: "composed",
+ converter: webidl.converters.boolean,
+ defaultValue: () => false
+ }
+ ];
+ webidl.converters.MessageEventInit = webidl.dictionaryConverter([
+ ...eventInit,
+ {
+ key: "data",
+ converter: webidl.converters.any,
+ defaultValue: () => null
+ },
+ {
+ key: "origin",
+ converter: webidl.converters.USVString,
+ defaultValue: () => ""
+ },
+ {
+ key: "lastEventId",
+ converter: webidl.converters.DOMString,
+ defaultValue: () => ""
+ },
+ {
+ key: "source",
+ // Node doesn't implement WindowProxy or ServiceWorker, so the only
+ // valid value for source is a MessagePort.
+ converter: webidl.nullableConverter(webidl.converters.MessagePort),
+ defaultValue: () => null
+ },
+ {
+ key: "ports",
+ converter: webidl.converters["sequence"],
+ defaultValue: () => []
+ }
+ ]);
+ webidl.converters.CloseEventInit = webidl.dictionaryConverter([
+ ...eventInit,
+ {
+ key: "wasClean",
+ converter: webidl.converters.boolean,
+ defaultValue: () => false
+ },
+ {
+ key: "code",
+ converter: webidl.converters["unsigned short"],
+ defaultValue: () => 0
+ },
+ {
+ key: "reason",
+ converter: webidl.converters.USVString,
+ defaultValue: () => ""
+ }
+ ]);
+ webidl.converters.ErrorEventInit = webidl.dictionaryConverter([
+ ...eventInit,
+ {
+ key: "message",
+ converter: webidl.converters.DOMString,
+ defaultValue: () => ""
+ },
+ {
+ key: "filename",
+ converter: webidl.converters.USVString,
+ defaultValue: () => ""
+ },
+ {
+ key: "lineno",
+ converter: webidl.converters["unsigned long"],
+ defaultValue: () => 0
+ },
+ {
+ key: "colno",
+ converter: webidl.converters["unsigned long"],
+ defaultValue: () => 0
+ },
+ {
+ key: "error",
+ converter: webidl.converters.any
+ }
+ ]);
+ module.exports = {
+ MessageEvent: MessageEvent2,
+ CloseEvent,
+ ErrorEvent: ErrorEvent2,
+ createFastMessageEvent
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/constants.js
+var require_constants10 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/constants.js"(exports, module) {
+ "use strict";
+ var uid = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
+ var staticPropertyDescriptors = {
+ enumerable: true,
+ writable: false,
+ configurable: false
+ };
+ var states = {
+ CONNECTING: 0,
+ OPEN: 1,
+ CLOSING: 2,
+ CLOSED: 3
+ };
+ var sentCloseFrameState = {
+ SENT: 1,
+ RECEIVED: 2
+ };
+ var opcodes = {
+ CONTINUATION: 0,
+ TEXT: 1,
+ BINARY: 2,
+ CLOSE: 8,
+ PING: 9,
+ PONG: 10
+ };
+ var maxUnsigned16Bit = 65535;
+ var parserStates = {
+ INFO: 0,
+ PAYLOADLENGTH_16: 2,
+ PAYLOADLENGTH_64: 3,
+ READ_DATA: 4
+ };
+ var emptyBuffer = Buffer.allocUnsafe(0);
+ var sendHints = {
+ text: 1,
+ typedArray: 2,
+ arrayBuffer: 3,
+ blob: 4
+ };
+ module.exports = {
+ uid,
+ sentCloseFrameState,
+ staticPropertyDescriptors,
+ states,
+ opcodes,
+ maxUnsigned16Bit,
+ parserStates,
+ emptyBuffer,
+ sendHints
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/util.js
+var require_util15 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/util.js"(exports, module) {
+ "use strict";
+ var { states, opcodes } = require_constants10();
+ var { isUtf8 } = __require("node:buffer");
+ var { collectASequenceOfCodePointsFast, removeHTTPWhitespace } = require_data_url();
+ function isConnecting(readyState) {
+ return readyState === states.CONNECTING;
+ }
+ function isEstablished(readyState) {
+ return readyState === states.OPEN;
+ }
+ function isClosing(readyState) {
+ return readyState === states.CLOSING;
+ }
+ function isClosed(readyState) {
+ return readyState === states.CLOSED;
+ }
+ function fireEvent(e, target, eventFactory = (type2, init) => new Event(type2, init), eventInitDict = {}) {
+ const event = eventFactory(e, eventInitDict);
+ target.dispatchEvent(event);
+ }
+ function websocketMessageReceived(handler2, type2, data) {
+ handler2.onMessage(type2, data);
+ }
+ function toArrayBuffer(buffer) {
+ if (buffer.byteLength === buffer.buffer.byteLength) {
+ return buffer.buffer;
+ }
+ return new Uint8Array(buffer).buffer;
+ }
+ function isValidSubprotocol(protocol) {
+ if (protocol.length === 0) {
+ return false;
+ }
+ for (let i = 0; i < protocol.length; ++i) {
+ const code = protocol.charCodeAt(i);
+ if (code < 33 || // CTL, contains SP (0x20) and HT (0x09)
+ code > 126 || code === 34 || // "
+ code === 40 || // (
+ code === 41 || // )
+ code === 44 || // ,
+ code === 47 || // /
+ code === 58 || // :
+ code === 59 || // ;
+ code === 60 || // <
+ code === 61 || // =
+ code === 62 || // >
+ code === 63 || // ?
+ code === 64 || // @
+ code === 91 || // [
+ code === 92 || // \
+ code === 93 || // ]
+ code === 123 || // {
+ code === 125) {
+ return false;
+ }
+ }
+ return true;
+ }
+ function isValidStatusCode(code) {
+ if (code >= 1e3 && code < 1015) {
+ return code !== 1004 && // reserved
+ code !== 1005 && // "MUST NOT be set as a status code"
+ code !== 1006;
+ }
+ return code >= 3e3 && code <= 4999;
+ }
+ function isControlFrame(opcode) {
+ return opcode === opcodes.CLOSE || opcode === opcodes.PING || opcode === opcodes.PONG;
+ }
+ function isContinuationFrame(opcode) {
+ return opcode === opcodes.CONTINUATION;
+ }
+ function isTextBinaryFrame(opcode) {
+ return opcode === opcodes.TEXT || opcode === opcodes.BINARY;
+ }
+ function isValidOpcode(opcode) {
+ return isTextBinaryFrame(opcode) || isContinuationFrame(opcode) || isControlFrame(opcode);
+ }
+ function parseExtensions(extensions) {
+ const position = { position: 0 };
+ const extensionList = /* @__PURE__ */ new Map();
+ while (position.position < extensions.length) {
+ const pair = collectASequenceOfCodePointsFast(";", extensions, position);
+ const [name, value2 = ""] = pair.split("=", 2);
+ extensionList.set(
+ removeHTTPWhitespace(name, true, false),
+ removeHTTPWhitespace(value2, false, true)
+ );
+ position.position++;
+ }
+ return extensionList;
+ }
+ function isValidClientWindowBits(value2) {
+ for (let i = 0; i < value2.length; i++) {
+ const byte = value2.charCodeAt(i);
+ if (byte < 48 || byte > 57) {
+ return false;
+ }
+ }
+ return true;
+ }
+ function getURLRecord(url2, baseURL) {
+ let urlRecord;
+ try {
+ urlRecord = new URL(url2, baseURL);
+ } catch (e) {
+ throw new DOMException(e, "SyntaxError");
+ }
+ if (urlRecord.protocol === "http:") {
+ urlRecord.protocol = "ws:";
+ } else if (urlRecord.protocol === "https:") {
+ urlRecord.protocol = "wss:";
+ }
+ if (urlRecord.protocol !== "ws:" && urlRecord.protocol !== "wss:") {
+ throw new DOMException("expected a ws: or wss: url", "SyntaxError");
+ }
+ if (urlRecord.hash.length || urlRecord.href.endsWith("#")) {
+ throw new DOMException("hash", "SyntaxError");
+ }
+ return urlRecord;
+ }
+ function validateCloseCodeAndReason(code, reason) {
+ if (code !== null) {
+ if (code !== 1e3 && (code < 3e3 || code > 4999)) {
+ throw new DOMException("invalid code", "InvalidAccessError");
+ }
+ }
+ if (reason !== null) {
+ const reasonBytesLength = Buffer.byteLength(reason);
+ if (reasonBytesLength > 123) {
+ throw new DOMException(`Reason must be less than 123 bytes; received ${reasonBytesLength}`, "SyntaxError");
+ }
+ }
+ }
+ var utf8Decode = (() => {
+ if (typeof process.versions.icu === "string") {
+ const fatalDecoder = new TextDecoder("utf-8", { fatal: true });
+ return fatalDecoder.decode.bind(fatalDecoder);
+ }
+ return function(buffer) {
+ if (isUtf8(buffer)) {
+ return buffer.toString("utf-8");
+ }
+ throw new TypeError("Invalid utf-8 received.");
+ };
+ })();
+ module.exports = {
+ isConnecting,
+ isEstablished,
+ isClosing,
+ isClosed,
+ fireEvent,
+ isValidSubprotocol,
+ isValidStatusCode,
+ websocketMessageReceived,
+ utf8Decode,
+ isControlFrame,
+ isContinuationFrame,
+ isTextBinaryFrame,
+ isValidOpcode,
+ parseExtensions,
+ isValidClientWindowBits,
+ toArrayBuffer,
+ getURLRecord,
+ validateCloseCodeAndReason
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/frame.js
+var require_frame2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/frame.js"(exports, module) {
+ "use strict";
+ var { maxUnsigned16Bit, opcodes } = require_constants10();
+ var BUFFER_SIZE = 8 * 1024;
+ var crypto2;
+ var buffer = null;
+ var bufIdx = BUFFER_SIZE;
+ try {
+ crypto2 = __require("node:crypto");
+ } catch {
+ crypto2 = {
+ // not full compatibility, but minimum.
+ randomFillSync: function randomFillSync(buffer2, _offset, _size2) {
+ for (let i = 0; i < buffer2.length; ++i) {
+ buffer2[i] = Math.random() * 255 | 0;
+ }
+ return buffer2;
+ }
+ };
+ }
+ function generateMask() {
+ if (bufIdx === BUFFER_SIZE) {
+ bufIdx = 0;
+ crypto2.randomFillSync(buffer ??= Buffer.allocUnsafeSlow(BUFFER_SIZE), 0, BUFFER_SIZE);
+ }
+ return [buffer[bufIdx++], buffer[bufIdx++], buffer[bufIdx++], buffer[bufIdx++]];
+ }
+ var WebsocketFrameSend = class {
+ /**
+ * @param {Buffer|undefined} data
+ */
+ constructor(data) {
+ this.frameData = data;
+ }
+ createFrame(opcode) {
+ const frameData = this.frameData;
+ const maskKey = generateMask();
+ const bodyLength = frameData?.byteLength ?? 0;
+ let payloadLength = bodyLength;
+ let offset = 6;
+ if (bodyLength > maxUnsigned16Bit) {
+ offset += 8;
+ payloadLength = 127;
+ } else if (bodyLength > 125) {
+ offset += 2;
+ payloadLength = 126;
+ }
+ const buffer2 = Buffer.allocUnsafe(bodyLength + offset);
+ buffer2[0] = buffer2[1] = 0;
+ buffer2[0] |= 128;
+ buffer2[0] = (buffer2[0] & 240) + opcode;
+ buffer2[offset - 4] = maskKey[0];
+ buffer2[offset - 3] = maskKey[1];
+ buffer2[offset - 2] = maskKey[2];
+ buffer2[offset - 1] = maskKey[3];
+ buffer2[1] = payloadLength;
+ if (payloadLength === 126) {
+ buffer2.writeUInt16BE(bodyLength, 2);
+ } else if (payloadLength === 127) {
+ buffer2[2] = buffer2[3] = 0;
+ buffer2.writeUIntBE(bodyLength, 4, 6);
+ }
+ buffer2[1] |= 128;
+ for (let i = 0; i < bodyLength; ++i) {
+ buffer2[offset + i] = frameData[i] ^ maskKey[i & 3];
+ }
+ return buffer2;
+ }
+ /**
+ * @param {Uint8Array} buffer
+ */
+ static createFastTextFrame(buffer2) {
+ const maskKey = generateMask();
+ const bodyLength = buffer2.length;
+ for (let i = 0; i < bodyLength; ++i) {
+ buffer2[i] ^= maskKey[i & 3];
+ }
+ let payloadLength = bodyLength;
+ let offset = 6;
+ if (bodyLength > maxUnsigned16Bit) {
+ offset += 8;
+ payloadLength = 127;
+ } else if (bodyLength > 125) {
+ offset += 2;
+ payloadLength = 126;
+ }
+ const head = Buffer.allocUnsafeSlow(offset);
+ head[0] = 128 | opcodes.TEXT;
+ head[1] = payloadLength | 128;
+ head[offset - 4] = maskKey[0];
+ head[offset - 3] = maskKey[1];
+ head[offset - 2] = maskKey[2];
+ head[offset - 1] = maskKey[3];
+ if (payloadLength === 126) {
+ head.writeUInt16BE(bodyLength, 2);
+ } else if (payloadLength === 127) {
+ head[2] = head[3] = 0;
+ head.writeUIntBE(bodyLength, 4, 6);
+ }
+ return [head, buffer2];
+ }
+ };
+ module.exports = {
+ WebsocketFrameSend,
+ generateMask
+ // for benchmark
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/connection.js
+var require_connection2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/connection.js"(exports, module) {
+ "use strict";
+ var { uid, states, sentCloseFrameState, emptyBuffer, opcodes } = require_constants10();
+ var { parseExtensions, isClosed, isClosing, isEstablished, validateCloseCodeAndReason } = require_util15();
+ var { makeRequest } = require_request4();
+ var { fetching } = require_fetch2();
+ var { Headers: Headers2, getHeadersList } = require_headers2();
+ var { getDecodeSplit } = require_util12();
+ var { WebsocketFrameSend } = require_frame2();
+ var assert2 = __require("node:assert");
+ var crypto2;
+ try {
+ crypto2 = __require("node:crypto");
+ } catch {
+ }
+ function establishWebSocketConnection(url2, protocols, client, handler2, options) {
+ const requestURL = url2;
+ requestURL.protocol = url2.protocol === "ws:" ? "http:" : "https:";
+ const request2 = makeRequest({
+ urlList: [requestURL],
+ client,
+ serviceWorkers: "none",
+ referrer: "no-referrer",
+ mode: "websocket",
+ credentials: "include",
+ cache: "no-store",
+ redirect: "error"
+ });
+ if (options.headers) {
+ const headersList = getHeadersList(new Headers2(options.headers));
+ request2.headersList = headersList;
+ }
+ const keyValue = crypto2.randomBytes(16).toString("base64");
+ request2.headersList.append("sec-websocket-key", keyValue, true);
+ request2.headersList.append("sec-websocket-version", "13", true);
+ for (const protocol of protocols) {
+ request2.headersList.append("sec-websocket-protocol", protocol, true);
+ }
+ const permessageDeflate = "permessage-deflate; client_max_window_bits";
+ request2.headersList.append("sec-websocket-extensions", permessageDeflate, true);
+ const controller = fetching({
+ request: request2,
+ useParallelQueue: true,
+ dispatcher: options.dispatcher,
+ processResponse(response) {
+ if (response.type === "error") {
+ handler2.readyState = states.CLOSED;
+ }
+ if (response.type === "error" || response.status !== 101) {
+ failWebsocketConnection(handler2, 1002, "Received network error or non-101 status code.", response.error);
+ return;
+ }
+ if (protocols.length !== 0 && !response.headersList.get("Sec-WebSocket-Protocol")) {
+ failWebsocketConnection(handler2, 1002, "Server did not respond with sent protocols.");
+ return;
+ }
+ if (response.headersList.get("Upgrade")?.toLowerCase() !== "websocket") {
+ failWebsocketConnection(handler2, 1002, 'Server did not set Upgrade header to "websocket".');
+ return;
+ }
+ if (response.headersList.get("Connection")?.toLowerCase() !== "upgrade") {
+ failWebsocketConnection(handler2, 1002, 'Server did not set Connection header to "upgrade".');
+ return;
+ }
+ const secWSAccept = response.headersList.get("Sec-WebSocket-Accept");
+ const digest = crypto2.createHash("sha1").update(keyValue + uid).digest("base64");
+ if (secWSAccept !== digest) {
+ failWebsocketConnection(handler2, 1002, "Incorrect hash received in Sec-WebSocket-Accept header.");
+ return;
+ }
+ const secExtension = response.headersList.get("Sec-WebSocket-Extensions");
+ let extensions;
+ if (secExtension !== null) {
+ extensions = parseExtensions(secExtension);
+ if (!extensions.has("permessage-deflate")) {
+ failWebsocketConnection(handler2, 1002, "Sec-WebSocket-Extensions header does not match.");
+ return;
+ }
+ }
+ const secProtocol = response.headersList.get("Sec-WebSocket-Protocol");
+ if (secProtocol !== null) {
+ const requestProtocols = getDecodeSplit("sec-websocket-protocol", request2.headersList);
+ if (!requestProtocols.includes(secProtocol)) {
+ failWebsocketConnection(handler2, 1002, "Protocol was not set in the opening handshake.");
+ return;
+ }
+ }
+ response.socket.on("data", handler2.onSocketData);
+ response.socket.on("close", handler2.onSocketClose);
+ response.socket.on("error", handler2.onSocketError);
+ handler2.wasEverConnected = true;
+ handler2.onConnectionEstablished(response, extensions);
+ }
+ });
+ return controller;
+ }
+ function closeWebSocketConnection(object2, code, reason, validate2 = false) {
+ code ??= null;
+ reason ??= "";
+ if (validate2) validateCloseCodeAndReason(code, reason);
+ if (isClosed(object2.readyState) || isClosing(object2.readyState)) {
+ } else if (!isEstablished(object2.readyState)) {
+ failWebsocketConnection(object2);
+ object2.readyState = states.CLOSING;
+ } else if (!object2.closeState.has(sentCloseFrameState.SENT) && !object2.closeState.has(sentCloseFrameState.RECEIVED)) {
+ const frame = new WebsocketFrameSend();
+ if (reason.length !== 0 && code === null) {
+ code = 1e3;
+ }
+ assert2(code === null || Number.isInteger(code));
+ if (code === null && reason.length === 0) {
+ frame.frameData = emptyBuffer;
+ } else if (code !== null && reason === null) {
+ frame.frameData = Buffer.allocUnsafe(2);
+ frame.frameData.writeUInt16BE(code, 0);
+ } else if (code !== null && reason !== null) {
+ frame.frameData = Buffer.allocUnsafe(2 + Buffer.byteLength(reason));
+ frame.frameData.writeUInt16BE(code, 0);
+ frame.frameData.write(reason, 2, "utf-8");
+ } else {
+ frame.frameData = emptyBuffer;
+ }
+ object2.socket.write(frame.createFrame(opcodes.CLOSE));
+ object2.closeState.add(sentCloseFrameState.SENT);
+ object2.readyState = states.CLOSING;
+ } else {
+ object2.readyState = states.CLOSING;
+ }
+ }
+ function failWebsocketConnection(handler2, code, reason, cause) {
+ if (isEstablished(handler2.readyState)) {
+ closeWebSocketConnection(handler2, code, reason, false);
+ }
+ handler2.controller.abort();
+ if (!handler2.socket) {
+ handler2.onSocketClose();
+ } else if (handler2.socket.destroyed === false) {
+ handler2.socket.destroy();
+ }
+ }
+ module.exports = {
+ establishWebSocketConnection,
+ failWebsocketConnection,
+ closeWebSocketConnection
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/permessage-deflate.js
+var require_permessage_deflate = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/permessage-deflate.js"(exports, module) {
+ "use strict";
+ var { createInflateRaw, Z_DEFAULT_WINDOWBITS } = __require("node:zlib");
+ var { isValidClientWindowBits } = require_util15();
+ var tail = Buffer.from([0, 0, 255, 255]);
+ var kBuffer = Symbol("kBuffer");
+ var kLength = Symbol("kLength");
+ var PerMessageDeflate = class {
+ /** @type {import('node:zlib').InflateRaw} */
+ #inflate;
+ #options = {};
+ constructor(extensions) {
+ this.#options.serverNoContextTakeover = extensions.has("server_no_context_takeover");
+ this.#options.serverMaxWindowBits = extensions.get("server_max_window_bits");
+ }
+ decompress(chunk, fin, callback) {
+ if (!this.#inflate) {
+ let windowBits = Z_DEFAULT_WINDOWBITS;
+ if (this.#options.serverMaxWindowBits) {
+ if (!isValidClientWindowBits(this.#options.serverMaxWindowBits)) {
+ callback(new Error("Invalid server_max_window_bits"));
+ return;
+ }
+ windowBits = Number.parseInt(this.#options.serverMaxWindowBits);
+ }
+ this.#inflate = createInflateRaw({ windowBits });
+ this.#inflate[kBuffer] = [];
+ this.#inflate[kLength] = 0;
+ this.#inflate.on("data", (data) => {
+ this.#inflate[kBuffer].push(data);
+ this.#inflate[kLength] += data.length;
+ });
+ this.#inflate.on("error", (err) => {
+ this.#inflate = null;
+ callback(err);
+ });
+ }
+ this.#inflate.write(chunk);
+ if (fin) {
+ this.#inflate.write(tail);
+ }
+ this.#inflate.flush(() => {
+ const full = Buffer.concat(this.#inflate[kBuffer], this.#inflate[kLength]);
+ this.#inflate[kBuffer].length = 0;
+ this.#inflate[kLength] = 0;
+ callback(null, full);
+ });
+ }
+ };
+ module.exports = { PerMessageDeflate };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/receiver.js
+var require_receiver2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/receiver.js"(exports, module) {
+ "use strict";
+ var { Writable } = __require("node:stream");
+ var assert2 = __require("node:assert");
+ var { parserStates, opcodes, states, emptyBuffer, sentCloseFrameState } = require_constants10();
+ var {
+ isValidStatusCode,
+ isValidOpcode,
+ websocketMessageReceived,
+ utf8Decode,
+ isControlFrame,
+ isTextBinaryFrame,
+ isContinuationFrame
+ } = require_util15();
+ var { failWebsocketConnection } = require_connection2();
+ var { WebsocketFrameSend } = require_frame2();
+ var { PerMessageDeflate } = require_permessage_deflate();
+ var ByteParser = class extends Writable {
+ #buffers = [];
+ #fragmentsBytes = 0;
+ #byteOffset = 0;
+ #loop = false;
+ #state = parserStates.INFO;
+ #info = {};
+ #fragments = [];
+ /** @type {Map} */
+ #extensions;
+ /** @type {import('./websocket').Handler} */
+ #handler;
+ constructor(handler2, extensions) {
+ super();
+ this.#handler = handler2;
+ this.#extensions = extensions == null ? /* @__PURE__ */ new Map() : extensions;
+ if (this.#extensions.has("permessage-deflate")) {
+ this.#extensions.set("permessage-deflate", new PerMessageDeflate(extensions));
+ }
+ }
+ /**
+ * @param {Buffer} chunk
+ * @param {() => void} callback
+ */
+ _write(chunk, _, callback) {
+ this.#buffers.push(chunk);
+ this.#byteOffset += chunk.length;
+ this.#loop = true;
+ this.run(callback);
+ }
+ /**
+ * Runs whenever a new chunk is received.
+ * Callback is called whenever there are no more chunks buffering,
+ * or not enough bytes are buffered to parse.
+ */
+ run(callback) {
+ while (this.#loop) {
+ if (this.#state === parserStates.INFO) {
+ if (this.#byteOffset < 2) {
+ return callback();
+ }
+ const buffer = this.consume(2);
+ const fin = (buffer[0] & 128) !== 0;
+ const opcode = buffer[0] & 15;
+ const masked = (buffer[1] & 128) === 128;
+ const fragmented = !fin && opcode !== opcodes.CONTINUATION;
+ const payloadLength = buffer[1] & 127;
+ const rsv1 = buffer[0] & 64;
+ const rsv2 = buffer[0] & 32;
+ const rsv3 = buffer[0] & 16;
+ if (!isValidOpcode(opcode)) {
+ failWebsocketConnection(this.#handler, 1002, "Invalid opcode received");
+ return callback();
+ }
+ if (masked) {
+ failWebsocketConnection(this.#handler, 1002, "Frame cannot be masked");
+ return callback();
+ }
+ if (rsv1 !== 0 && !this.#extensions.has("permessage-deflate")) {
+ failWebsocketConnection(this.#handler, 1002, "Expected RSV1 to be clear.");
+ return;
+ }
+ if (rsv2 !== 0 || rsv3 !== 0) {
+ failWebsocketConnection(this.#handler, 1002, "RSV1, RSV2, RSV3 must be clear");
+ return;
+ }
+ if (fragmented && !isTextBinaryFrame(opcode)) {
+ failWebsocketConnection(this.#handler, 1002, "Invalid frame type was fragmented.");
+ return;
+ }
+ if (isTextBinaryFrame(opcode) && this.#fragments.length > 0) {
+ failWebsocketConnection(this.#handler, 1002, "Expected continuation frame");
+ return;
+ }
+ if (this.#info.fragmented && fragmented) {
+ failWebsocketConnection(this.#handler, 1002, "Fragmented frame exceeded 125 bytes.");
+ return;
+ }
+ if ((payloadLength > 125 || fragmented) && isControlFrame(opcode)) {
+ failWebsocketConnection(this.#handler, 1002, "Control frame either too large or fragmented");
+ return;
+ }
+ if (isContinuationFrame(opcode) && this.#fragments.length === 0 && !this.#info.compressed) {
+ failWebsocketConnection(this.#handler, 1002, "Unexpected continuation frame");
+ return;
+ }
+ if (payloadLength <= 125) {
+ this.#info.payloadLength = payloadLength;
+ this.#state = parserStates.READ_DATA;
+ } else if (payloadLength === 126) {
+ this.#state = parserStates.PAYLOADLENGTH_16;
+ } else if (payloadLength === 127) {
+ this.#state = parserStates.PAYLOADLENGTH_64;
+ }
+ if (isTextBinaryFrame(opcode)) {
+ this.#info.binaryType = opcode;
+ this.#info.compressed = rsv1 !== 0;
+ }
+ this.#info.opcode = opcode;
+ this.#info.masked = masked;
+ this.#info.fin = fin;
+ this.#info.fragmented = fragmented;
+ } else if (this.#state === parserStates.PAYLOADLENGTH_16) {
+ if (this.#byteOffset < 2) {
+ return callback();
+ }
+ const buffer = this.consume(2);
+ this.#info.payloadLength = buffer.readUInt16BE(0);
+ this.#state = parserStates.READ_DATA;
+ } else if (this.#state === parserStates.PAYLOADLENGTH_64) {
+ if (this.#byteOffset < 8) {
+ return callback();
+ }
+ const buffer = this.consume(8);
+ const upper2 = buffer.readUInt32BE(0);
+ if (upper2 > 2 ** 31 - 1) {
+ failWebsocketConnection(this.#handler, 1009, "Received payload length > 2^31 bytes.");
+ return;
+ }
+ const lower2 = buffer.readUInt32BE(4);
+ this.#info.payloadLength = (upper2 << 8) + lower2;
+ this.#state = parserStates.READ_DATA;
+ } else if (this.#state === parserStates.READ_DATA) {
+ if (this.#byteOffset < this.#info.payloadLength) {
+ return callback();
+ }
+ const body = this.consume(this.#info.payloadLength);
+ if (isControlFrame(this.#info.opcode)) {
+ this.#loop = this.parseControlFrame(body);
+ this.#state = parserStates.INFO;
+ } else {
+ if (!this.#info.compressed) {
+ this.writeFragments(body);
+ if (!this.#info.fragmented && this.#info.fin) {
+ websocketMessageReceived(this.#handler, this.#info.binaryType, this.consumeFragments());
+ }
+ this.#state = parserStates.INFO;
+ } else {
+ this.#extensions.get("permessage-deflate").decompress(body, this.#info.fin, (error41, data) => {
+ if (error41) {
+ failWebsocketConnection(this.#handler, 1007, error41.message);
+ return;
+ }
+ this.writeFragments(data);
+ if (!this.#info.fin) {
+ this.#state = parserStates.INFO;
+ this.#loop = true;
+ this.run(callback);
+ return;
+ }
+ websocketMessageReceived(this.#handler, this.#info.binaryType, this.consumeFragments());
+ this.#loop = true;
+ this.#state = parserStates.INFO;
+ this.run(callback);
+ });
+ this.#loop = false;
+ break;
+ }
+ }
+ }
+ }
+ }
+ /**
+ * Take n bytes from the buffered Buffers
+ * @param {number} n
+ * @returns {Buffer}
+ */
+ consume(n) {
+ if (n > this.#byteOffset) {
+ throw new Error("Called consume() before buffers satiated.");
+ } else if (n === 0) {
+ return emptyBuffer;
+ }
+ this.#byteOffset -= n;
+ const first = this.#buffers[0];
+ if (first.length > n) {
+ this.#buffers[0] = first.subarray(n, first.length);
+ return first.subarray(0, n);
+ } else if (first.length === n) {
+ return this.#buffers.shift();
+ } else {
+ let offset = 0;
+ const buffer = Buffer.allocUnsafeSlow(n);
+ while (offset !== n) {
+ const next2 = this.#buffers[0];
+ const length = next2.length;
+ if (length + offset === n) {
+ buffer.set(this.#buffers.shift(), offset);
+ break;
+ } else if (length + offset > n) {
+ buffer.set(next2.subarray(0, n - offset), offset);
+ this.#buffers[0] = next2.subarray(n - offset);
+ break;
+ } else {
+ buffer.set(this.#buffers.shift(), offset);
+ offset += length;
+ }
+ }
+ return buffer;
+ }
+ }
+ writeFragments(fragment) {
+ this.#fragmentsBytes += fragment.length;
+ this.#fragments.push(fragment);
+ }
+ consumeFragments() {
+ const fragments = this.#fragments;
+ if (fragments.length === 1) {
+ this.#fragmentsBytes = 0;
+ return fragments.shift();
+ }
+ let offset = 0;
+ const output = Buffer.allocUnsafeSlow(this.#fragmentsBytes);
+ for (let i = 0; i < fragments.length; ++i) {
+ const buffer = fragments[i];
+ output.set(buffer, offset);
+ offset += buffer.length;
+ }
+ this.#fragments = [];
+ this.#fragmentsBytes = 0;
+ return output;
+ }
+ parseCloseBody(data) {
+ assert2(data.length !== 1);
+ let code;
+ if (data.length >= 2) {
+ code = data.readUInt16BE(0);
+ }
+ if (code !== void 0 && !isValidStatusCode(code)) {
+ return { code: 1002, reason: "Invalid status code", error: true };
+ }
+ let reason = data.subarray(2);
+ if (reason[0] === 239 && reason[1] === 187 && reason[2] === 191) {
+ reason = reason.subarray(3);
+ }
+ try {
+ reason = utf8Decode(reason);
+ } catch {
+ return { code: 1007, reason: "Invalid UTF-8", error: true };
+ }
+ return { code, reason, error: false };
+ }
+ /**
+ * Parses control frames.
+ * @param {Buffer} body
+ */
+ parseControlFrame(body) {
+ const { opcode, payloadLength } = this.#info;
+ if (opcode === opcodes.CLOSE) {
+ if (payloadLength === 1) {
+ failWebsocketConnection(this.#handler, 1002, "Received close frame with a 1-byte body.");
+ return false;
+ }
+ this.#info.closeInfo = this.parseCloseBody(body);
+ if (this.#info.closeInfo.error) {
+ const { code, reason } = this.#info.closeInfo;
+ failWebsocketConnection(this.#handler, code, reason);
+ return false;
+ }
+ if (!this.#handler.closeState.has(sentCloseFrameState.SENT) && !this.#handler.closeState.has(sentCloseFrameState.RECEIVED)) {
+ let body2 = emptyBuffer;
+ if (this.#info.closeInfo.code) {
+ body2 = Buffer.allocUnsafe(2);
+ body2.writeUInt16BE(this.#info.closeInfo.code, 0);
+ }
+ const closeFrame = new WebsocketFrameSend(body2);
+ this.#handler.socket.write(closeFrame.createFrame(opcodes.CLOSE));
+ this.#handler.closeState.add(sentCloseFrameState.SENT);
+ }
+ this.#handler.readyState = states.CLOSING;
+ this.#handler.closeState.add(sentCloseFrameState.RECEIVED);
+ return false;
+ } else if (opcode === opcodes.PING) {
+ if (!this.#handler.closeState.has(sentCloseFrameState.RECEIVED)) {
+ const frame = new WebsocketFrameSend(body);
+ this.#handler.socket.write(frame.createFrame(opcodes.PONG));
+ this.#handler.onPing(body);
+ }
+ } else if (opcode === opcodes.PONG) {
+ this.#handler.onPong(body);
+ }
+ return true;
+ }
+ get closingInfo() {
+ return this.#info.closeInfo;
+ }
+ };
+ module.exports = {
+ ByteParser
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/sender.js
+var require_sender = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/sender.js"(exports, module) {
+ "use strict";
+ var { WebsocketFrameSend } = require_frame2();
+ var { opcodes, sendHints } = require_constants10();
+ var FixedQueue = require_fixed_queue2();
+ var SendQueue = class {
+ /**
+ * @type {FixedQueue}
+ */
+ #queue = new FixedQueue();
+ /**
+ * @type {boolean}
+ */
+ #running = false;
+ /** @type {import('node:net').Socket} */
+ #socket;
+ constructor(socket) {
+ this.#socket = socket;
+ }
+ add(item, cb, hint) {
+ if (hint !== sendHints.blob) {
+ if (!this.#running) {
+ if (hint === sendHints.text) {
+ const { 0: head, 1: body } = WebsocketFrameSend.createFastTextFrame(item);
+ this.#socket.cork();
+ this.#socket.write(head);
+ this.#socket.write(body, cb);
+ this.#socket.uncork();
+ } else {
+ this.#socket.write(createFrame(item, hint), cb);
+ }
+ } else {
+ const node3 = {
+ promise: null,
+ callback: cb,
+ frame: createFrame(item, hint)
+ };
+ this.#queue.push(node3);
+ }
+ return;
+ }
+ const node2 = {
+ promise: item.arrayBuffer().then((ab) => {
+ node2.promise = null;
+ node2.frame = createFrame(ab, hint);
+ }),
+ callback: cb,
+ frame: null
+ };
+ this.#queue.push(node2);
+ if (!this.#running) {
+ this.#run();
+ }
+ }
+ async #run() {
+ this.#running = true;
+ const queue = this.#queue;
+ while (!queue.isEmpty()) {
+ const node2 = queue.shift();
+ if (node2.promise !== null) {
+ await node2.promise;
+ }
+ this.#socket.write(node2.frame, node2.callback);
+ node2.callback = node2.frame = null;
+ }
+ this.#running = false;
+ }
+ };
+ function createFrame(data, hint) {
+ return new WebsocketFrameSend(toBuffer(data, hint)).createFrame(hint === sendHints.text ? opcodes.TEXT : opcodes.BINARY);
+ }
+ function toBuffer(data, hint) {
+ switch (hint) {
+ case sendHints.text:
+ case sendHints.typedArray:
+ return new Uint8Array(data.buffer, data.byteOffset, data.byteLength);
+ case sendHints.arrayBuffer:
+ case sendHints.blob:
+ return new Uint8Array(data);
+ }
+ }
+ module.exports = { SendQueue };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/websocket.js
+var require_websocket2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/websocket.js"(exports, module) {
+ "use strict";
+ var { isArrayBuffer } = __require("node:util/types");
+ var { webidl } = require_webidl2();
+ var { URLSerializer } = require_data_url();
+ var { environmentSettingsObject } = require_util12();
+ var { staticPropertyDescriptors, states, sentCloseFrameState, sendHints, opcodes } = require_constants10();
+ var {
+ isConnecting,
+ isEstablished,
+ isClosing,
+ isClosed,
+ isValidSubprotocol,
+ fireEvent,
+ utf8Decode,
+ toArrayBuffer,
+ getURLRecord
+ } = require_util15();
+ var { establishWebSocketConnection, closeWebSocketConnection, failWebsocketConnection } = require_connection2();
+ var { ByteParser } = require_receiver2();
+ var { kEnumerableProperty } = require_util11();
+ var { getGlobalDispatcher } = require_global4();
+ var { ErrorEvent: ErrorEvent2, CloseEvent, createFastMessageEvent } = require_events2();
+ var { SendQueue } = require_sender();
+ var { WebsocketFrameSend } = require_frame2();
+ var { channels } = require_diagnostics();
+ var WebSocket = class _WebSocket extends EventTarget {
+ #events = {
+ open: null,
+ error: null,
+ close: null,
+ message: null
+ };
+ #bufferedAmount = 0;
+ #protocol = "";
+ #extensions = "";
+ /** @type {SendQueue} */
+ #sendQueue;
+ /** @type {Handler} */
+ #handler = {
+ onConnectionEstablished: (response, extensions) => this.#onConnectionEstablished(response, extensions),
+ onMessage: (opcode, data) => this.#onMessage(opcode, data),
+ onParserError: (err) => failWebsocketConnection(this.#handler, null, err.message),
+ onParserDrain: () => this.#onParserDrain(),
+ onSocketData: (chunk) => {
+ if (!this.#parser.write(chunk)) {
+ this.#handler.socket.pause();
+ }
+ },
+ onSocketError: (err) => {
+ this.#handler.readyState = states.CLOSING;
+ if (channels.socketError.hasSubscribers) {
+ channels.socketError.publish(err);
+ }
+ this.#handler.socket.destroy();
+ },
+ onSocketClose: () => this.#onSocketClose(),
+ onPing: (body) => {
+ if (channels.ping.hasSubscribers) {
+ channels.ping.publish({
+ payload: body,
+ websocket: this
+ });
+ }
+ },
+ onPong: (body) => {
+ if (channels.pong.hasSubscribers) {
+ channels.pong.publish({
+ payload: body,
+ websocket: this
+ });
+ }
+ },
+ readyState: states.CONNECTING,
+ socket: null,
+ closeState: /* @__PURE__ */ new Set(),
+ controller: null,
+ wasEverConnected: false
+ };
+ #url;
+ #binaryType;
+ /** @type {import('./receiver').ByteParser} */
+ #parser;
+ /**
+ * @param {string} url
+ * @param {string|string[]} protocols
+ */
+ constructor(url2, protocols = []) {
+ super();
+ webidl.util.markAsUncloneable(this);
+ const prefix = "WebSocket constructor";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ const options = webidl.converters["DOMString or sequence or WebSocketInit"](protocols, prefix, "options");
+ url2 = webidl.converters.USVString(url2);
+ protocols = options.protocols;
+ const baseURL = environmentSettingsObject.settingsObject.baseUrl;
+ const urlRecord = getURLRecord(url2, baseURL);
+ if (typeof protocols === "string") {
+ protocols = [protocols];
+ }
+ if (protocols.length !== new Set(protocols.map((p) => p.toLowerCase())).size) {
+ throw new DOMException("Invalid Sec-WebSocket-Protocol value", "SyntaxError");
+ }
+ if (protocols.length > 0 && !protocols.every((p) => isValidSubprotocol(p))) {
+ throw new DOMException("Invalid Sec-WebSocket-Protocol value", "SyntaxError");
+ }
+ this.#url = new URL(urlRecord.href);
+ const client = environmentSettingsObject.settingsObject;
+ this.#handler.controller = establishWebSocketConnection(
+ urlRecord,
+ protocols,
+ client,
+ this.#handler,
+ options
+ );
+ this.#handler.readyState = _WebSocket.CONNECTING;
+ this.#binaryType = "blob";
+ }
+ /**
+ * @see https://websockets.spec.whatwg.org/#dom-websocket-close
+ * @param {number|undefined} code
+ * @param {string|undefined} reason
+ */
+ close(code = void 0, reason = void 0) {
+ webidl.brandCheck(this, _WebSocket);
+ const prefix = "WebSocket.close";
+ if (code !== void 0) {
+ code = webidl.converters["unsigned short"](code, prefix, "code", webidl.attributes.Clamp);
+ }
+ if (reason !== void 0) {
+ reason = webidl.converters.USVString(reason);
+ }
+ code ??= null;
+ reason ??= "";
+ closeWebSocketConnection(this.#handler, code, reason, true);
+ }
+ /**
+ * @see https://websockets.spec.whatwg.org/#dom-websocket-send
+ * @param {NodeJS.TypedArray|ArrayBuffer|Blob|string} data
+ */
+ send(data) {
+ webidl.brandCheck(this, _WebSocket);
+ const prefix = "WebSocket.send";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ data = webidl.converters.WebSocketSendData(data, prefix, "data");
+ if (isConnecting(this.#handler.readyState)) {
+ throw new DOMException("Sent before connected.", "InvalidStateError");
+ }
+ if (!isEstablished(this.#handler.readyState) || isClosing(this.#handler.readyState)) {
+ return;
+ }
+ if (typeof data === "string") {
+ const buffer = Buffer.from(data);
+ this.#bufferedAmount += buffer.byteLength;
+ this.#sendQueue.add(buffer, () => {
+ this.#bufferedAmount -= buffer.byteLength;
+ }, sendHints.text);
+ } else if (isArrayBuffer(data)) {
+ this.#bufferedAmount += data.byteLength;
+ this.#sendQueue.add(data, () => {
+ this.#bufferedAmount -= data.byteLength;
+ }, sendHints.arrayBuffer);
+ } else if (ArrayBuffer.isView(data)) {
+ this.#bufferedAmount += data.byteLength;
+ this.#sendQueue.add(data, () => {
+ this.#bufferedAmount -= data.byteLength;
+ }, sendHints.typedArray);
+ } else if (webidl.is.Blob(data)) {
+ this.#bufferedAmount += data.size;
+ this.#sendQueue.add(data, () => {
+ this.#bufferedAmount -= data.size;
+ }, sendHints.blob);
+ }
+ }
+ get readyState() {
+ webidl.brandCheck(this, _WebSocket);
+ return this.#handler.readyState;
+ }
+ get bufferedAmount() {
+ webidl.brandCheck(this, _WebSocket);
+ return this.#bufferedAmount;
+ }
+ get url() {
+ webidl.brandCheck(this, _WebSocket);
+ return URLSerializer(this.#url);
+ }
+ get extensions() {
+ webidl.brandCheck(this, _WebSocket);
+ return this.#extensions;
+ }
+ get protocol() {
+ webidl.brandCheck(this, _WebSocket);
+ return this.#protocol;
+ }
+ get onopen() {
+ webidl.brandCheck(this, _WebSocket);
+ return this.#events.open;
+ }
+ set onopen(fn2) {
+ webidl.brandCheck(this, _WebSocket);
+ if (this.#events.open) {
+ this.removeEventListener("open", this.#events.open);
+ }
+ const listener = webidl.converters.EventHandlerNonNull(fn2);
+ if (listener !== null) {
+ this.addEventListener("open", listener);
+ this.#events.open = fn2;
+ } else {
+ this.#events.open = null;
+ }
+ }
+ get onerror() {
+ webidl.brandCheck(this, _WebSocket);
+ return this.#events.error;
+ }
+ set onerror(fn2) {
+ webidl.brandCheck(this, _WebSocket);
+ if (this.#events.error) {
+ this.removeEventListener("error", this.#events.error);
+ }
+ const listener = webidl.converters.EventHandlerNonNull(fn2);
+ if (listener !== null) {
+ this.addEventListener("error", listener);
+ this.#events.error = fn2;
+ } else {
+ this.#events.error = null;
+ }
+ }
+ get onclose() {
+ webidl.brandCheck(this, _WebSocket);
+ return this.#events.close;
+ }
+ set onclose(fn2) {
+ webidl.brandCheck(this, _WebSocket);
+ if (this.#events.close) {
+ this.removeEventListener("close", this.#events.close);
+ }
+ const listener = webidl.converters.EventHandlerNonNull(fn2);
+ if (listener !== null) {
+ this.addEventListener("close", listener);
+ this.#events.close = fn2;
+ } else {
+ this.#events.close = null;
+ }
+ }
+ get onmessage() {
+ webidl.brandCheck(this, _WebSocket);
+ return this.#events.message;
+ }
+ set onmessage(fn2) {
+ webidl.brandCheck(this, _WebSocket);
+ if (this.#events.message) {
+ this.removeEventListener("message", this.#events.message);
+ }
+ const listener = webidl.converters.EventHandlerNonNull(fn2);
+ if (listener !== null) {
+ this.addEventListener("message", listener);
+ this.#events.message = fn2;
+ } else {
+ this.#events.message = null;
+ }
+ }
+ get binaryType() {
+ webidl.brandCheck(this, _WebSocket);
+ return this.#binaryType;
+ }
+ set binaryType(type2) {
+ webidl.brandCheck(this, _WebSocket);
+ if (type2 !== "blob" && type2 !== "arraybuffer") {
+ this.#binaryType = "blob";
+ } else {
+ this.#binaryType = type2;
+ }
+ }
+ /**
+ * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol
+ */
+ #onConnectionEstablished(response, parsedExtensions) {
+ this.#handler.socket = response.socket;
+ const parser = new ByteParser(this.#handler, parsedExtensions);
+ parser.on("drain", () => this.#handler.onParserDrain());
+ parser.on("error", (err) => this.#handler.onParserError(err));
+ this.#parser = parser;
+ this.#sendQueue = new SendQueue(response.socket);
+ this.#handler.readyState = states.OPEN;
+ const extensions = response.headersList.get("sec-websocket-extensions");
+ if (extensions !== null) {
+ this.#extensions = extensions;
+ }
+ const protocol = response.headersList.get("sec-websocket-protocol");
+ if (protocol !== null) {
+ this.#protocol = protocol;
+ }
+ fireEvent("open", this);
+ if (channels.open.hasSubscribers) {
+ const headers = response.headersList.entries;
+ channels.open.publish({
+ address: response.socket.address(),
+ protocol: this.#protocol,
+ extensions: this.#extensions,
+ websocket: this,
+ handshakeResponse: {
+ status: response.status,
+ statusText: response.statusText,
+ headers
+ }
+ });
+ }
+ }
+ #onMessage(type2, data) {
+ if (this.#handler.readyState !== states.OPEN) {
+ return;
+ }
+ let dataForEvent;
+ if (type2 === opcodes.TEXT) {
+ try {
+ dataForEvent = utf8Decode(data);
+ } catch {
+ failWebsocketConnection(this.#handler, 1007, "Received invalid UTF-8 in text frame.");
+ return;
+ }
+ } else if (type2 === opcodes.BINARY) {
+ if (this.#binaryType === "blob") {
+ dataForEvent = new Blob([data]);
+ } else {
+ dataForEvent = toArrayBuffer(data);
+ }
+ }
+ fireEvent("message", this, createFastMessageEvent, {
+ origin: this.#url.origin,
+ data: dataForEvent
+ });
+ }
+ #onParserDrain() {
+ this.#handler.socket.resume();
+ }
+ /**
+ * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol
+ * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.4
+ */
+ #onSocketClose() {
+ const wasClean = this.#handler.closeState.has(sentCloseFrameState.SENT) && this.#handler.closeState.has(sentCloseFrameState.RECEIVED);
+ let code = 1005;
+ let reason = "";
+ const result = this.#parser?.closingInfo;
+ if (result && !result.error) {
+ code = result.code ?? 1005;
+ reason = result.reason;
+ }
+ this.#handler.readyState = states.CLOSED;
+ if (!this.#handler.closeState.has(sentCloseFrameState.RECEIVED)) {
+ code = 1006;
+ fireEvent("error", this, (type2, init) => new ErrorEvent2(type2, init), {
+ error: new TypeError(reason)
+ });
+ }
+ fireEvent("close", this, (type2, init) => new CloseEvent(type2, init), {
+ wasClean,
+ code,
+ reason
+ });
+ if (channels.close.hasSubscribers) {
+ channels.close.publish({
+ websocket: this,
+ code,
+ reason
+ });
+ }
+ }
+ /**
+ * @param {WebSocket} ws
+ * @param {Buffer|undefined} buffer
+ */
+ static ping(ws, buffer) {
+ if (Buffer.isBuffer(buffer)) {
+ if (buffer.length > 125) {
+ throw new TypeError("A PING frame cannot have a body larger than 125 bytes.");
+ }
+ } else if (buffer !== void 0) {
+ throw new TypeError("Expected buffer payload");
+ }
+ const readyState = ws.#handler.readyState;
+ if (isEstablished(readyState) && !isClosing(readyState) && !isClosed(readyState)) {
+ const frame = new WebsocketFrameSend(buffer);
+ ws.#handler.socket.write(frame.createFrame(opcodes.PING));
+ }
+ }
+ };
+ var { ping } = WebSocket;
+ Reflect.deleteProperty(WebSocket, "ping");
+ WebSocket.CONNECTING = WebSocket.prototype.CONNECTING = states.CONNECTING;
+ WebSocket.OPEN = WebSocket.prototype.OPEN = states.OPEN;
+ WebSocket.CLOSING = WebSocket.prototype.CLOSING = states.CLOSING;
+ WebSocket.CLOSED = WebSocket.prototype.CLOSED = states.CLOSED;
+ Object.defineProperties(WebSocket.prototype, {
+ CONNECTING: staticPropertyDescriptors,
+ OPEN: staticPropertyDescriptors,
+ CLOSING: staticPropertyDescriptors,
+ CLOSED: staticPropertyDescriptors,
+ url: kEnumerableProperty,
+ readyState: kEnumerableProperty,
+ bufferedAmount: kEnumerableProperty,
+ onopen: kEnumerableProperty,
+ onerror: kEnumerableProperty,
+ onclose: kEnumerableProperty,
+ close: kEnumerableProperty,
+ onmessage: kEnumerableProperty,
+ binaryType: kEnumerableProperty,
+ send: kEnumerableProperty,
+ extensions: kEnumerableProperty,
+ protocol: kEnumerableProperty,
+ [Symbol.toStringTag]: {
+ value: "WebSocket",
+ writable: false,
+ enumerable: false,
+ configurable: true
+ }
+ });
+ Object.defineProperties(WebSocket, {
+ CONNECTING: staticPropertyDescriptors,
+ OPEN: staticPropertyDescriptors,
+ CLOSING: staticPropertyDescriptors,
+ CLOSED: staticPropertyDescriptors
+ });
+ webidl.converters["sequence"] = webidl.sequenceConverter(
+ webidl.converters.DOMString
+ );
+ webidl.converters["DOMString or sequence"] = function(V, prefix, argument) {
+ if (webidl.util.Type(V) === webidl.util.Types.OBJECT && Symbol.iterator in V) {
+ return webidl.converters["sequence"](V);
+ }
+ return webidl.converters.DOMString(V, prefix, argument);
+ };
+ webidl.converters.WebSocketInit = webidl.dictionaryConverter([
+ {
+ key: "protocols",
+ converter: webidl.converters["DOMString or sequence"],
+ defaultValue: () => []
+ },
+ {
+ key: "dispatcher",
+ converter: webidl.converters.any,
+ defaultValue: () => getGlobalDispatcher()
+ },
+ {
+ key: "headers",
+ converter: webidl.nullableConverter(webidl.converters.HeadersInit)
+ }
+ ]);
+ webidl.converters["DOMString or sequence or WebSocketInit"] = function(V) {
+ if (webidl.util.Type(V) === webidl.util.Types.OBJECT && !(Symbol.iterator in V)) {
+ return webidl.converters.WebSocketInit(V);
+ }
+ return { protocols: webidl.converters["DOMString or sequence"](V) };
+ };
+ webidl.converters.WebSocketSendData = function(V) {
+ if (webidl.util.Type(V) === webidl.util.Types.OBJECT) {
+ if (webidl.is.Blob(V)) {
+ return V;
+ }
+ if (webidl.is.BufferSource(V)) {
+ return V;
+ }
+ }
+ return webidl.converters.USVString(V);
+ };
+ module.exports = {
+ WebSocket,
+ ping
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/stream/websocketerror.js
+var require_websocketerror = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/stream/websocketerror.js"(exports, module) {
+ "use strict";
+ var { webidl } = require_webidl2();
+ var { validateCloseCodeAndReason } = require_util15();
+ var { kConstruct } = require_symbols6();
+ var { kEnumerableProperty } = require_util11();
+ function createInheritableDOMException() {
+ class Test extends DOMException {
+ get reason() {
+ return "";
+ }
+ }
+ if (new Test().reason !== void 0) {
+ return DOMException;
+ }
+ return new Proxy(DOMException, {
+ construct(target, args2, newTarget) {
+ const instance = Reflect.construct(target, args2, target);
+ Object.setPrototypeOf(instance, newTarget.prototype);
+ return instance;
+ }
+ });
+ }
+ var WebSocketError = class _WebSocketError extends createInheritableDOMException() {
+ #closeCode;
+ #reason;
+ constructor(message = "", init = void 0) {
+ message = webidl.converters.DOMString(message, "WebSocketError", "message");
+ super(message, "WebSocketError");
+ if (init === kConstruct) {
+ return;
+ } else if (init !== null) {
+ init = webidl.converters.WebSocketCloseInfo(init);
+ }
+ let code = init.closeCode ?? null;
+ const reason = init.reason ?? "";
+ validateCloseCodeAndReason(code, reason);
+ if (reason.length !== 0 && code === null) {
+ code = 1e3;
+ }
+ this.#closeCode = code;
+ this.#reason = reason;
+ }
+ get closeCode() {
+ return this.#closeCode;
+ }
+ get reason() {
+ return this.#reason;
+ }
+ /**
+ * @param {string} message
+ * @param {number|null} code
+ * @param {string} reason
+ */
+ static createUnvalidatedWebSocketError(message, code, reason) {
+ const error41 = new _WebSocketError(message, kConstruct);
+ error41.#closeCode = code;
+ error41.#reason = reason;
+ return error41;
+ }
+ };
+ var { createUnvalidatedWebSocketError } = WebSocketError;
+ delete WebSocketError.createUnvalidatedWebSocketError;
+ Object.defineProperties(WebSocketError.prototype, {
+ closeCode: kEnumerableProperty,
+ reason: kEnumerableProperty,
+ [Symbol.toStringTag]: {
+ value: "WebSocketError",
+ writable: false,
+ enumerable: false,
+ configurable: true
+ }
+ });
+ webidl.is.WebSocketError = webidl.util.MakeTypeAssertion(WebSocketError);
+ module.exports = { WebSocketError, createUnvalidatedWebSocketError };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/stream/websocketstream.js
+var require_websocketstream = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/websocket/stream/websocketstream.js"(exports, module) {
+ "use strict";
+ var { createDeferredPromise } = require_promise();
+ var { environmentSettingsObject } = require_util12();
+ var { states, opcodes, sentCloseFrameState } = require_constants10();
+ var { webidl } = require_webidl2();
+ var { getURLRecord, isValidSubprotocol, isEstablished, utf8Decode } = require_util15();
+ var { establishWebSocketConnection, failWebsocketConnection, closeWebSocketConnection } = require_connection2();
+ var { channels } = require_diagnostics();
+ var { WebsocketFrameSend } = require_frame2();
+ var { ByteParser } = require_receiver2();
+ var { WebSocketError, createUnvalidatedWebSocketError } = require_websocketerror();
+ var { utf8DecodeBytes } = require_util12();
+ var { kEnumerableProperty } = require_util11();
+ var emittedExperimentalWarning = false;
+ var WebSocketStream = class {
+ // Each WebSocketStream object has an associated url , which is a URL record .
+ /** @type {URL} */
+ #url;
+ // Each WebSocketStream object has an associated opened promise , which is a promise.
+ /** @type {import('../../../util/promise').DeferredPromise} */
+ #openedPromise;
+ // Each WebSocketStream object has an associated closed promise , which is a promise.
+ /** @type {import('../../../util/promise').DeferredPromise} */
+ #closedPromise;
+ // Each WebSocketStream object has an associated readable stream , which is a ReadableStream .
+ /** @type {ReadableStream} */
+ #readableStream;
+ /** @type {ReadableStreamDefaultController} */
+ #readableStreamController;
+ // Each WebSocketStream object has an associated writable stream , which is a WritableStream .
+ /** @type {WritableStream} */
+ #writableStream;
+ // Each WebSocketStream object has an associated boolean handshake aborted , which is initially false.
+ #handshakeAborted = false;
+ /** @type {import('../websocket').Handler} */
+ #handler = {
+ // https://whatpr.org/websockets/48/7b748d3...d5570f3.html#feedback-to-websocket-stream-from-the-protocol
+ onConnectionEstablished: (response, extensions) => this.#onConnectionEstablished(response, extensions),
+ onMessage: (opcode, data) => this.#onMessage(opcode, data),
+ onParserError: (err) => failWebsocketConnection(this.#handler, null, err.message),
+ onParserDrain: () => this.#handler.socket.resume(),
+ onSocketData: (chunk) => {
+ if (!this.#parser.write(chunk)) {
+ this.#handler.socket.pause();
+ }
+ },
+ onSocketError: (err) => {
+ this.#handler.readyState = states.CLOSING;
+ if (channels.socketError.hasSubscribers) {
+ channels.socketError.publish(err);
+ }
+ this.#handler.socket.destroy();
+ },
+ onSocketClose: () => this.#onSocketClose(),
+ onPing: () => {
+ },
+ onPong: () => {
+ },
+ readyState: states.CONNECTING,
+ socket: null,
+ closeState: /* @__PURE__ */ new Set(),
+ controller: null,
+ wasEverConnected: false
+ };
+ /** @type {import('../receiver').ByteParser} */
+ #parser;
+ constructor(url2, options = void 0) {
+ if (!emittedExperimentalWarning) {
+ process.emitWarning("WebSocketStream is experimental! Expect it to change at any time.", {
+ code: "UNDICI-WSS"
+ });
+ emittedExperimentalWarning = true;
+ }
+ webidl.argumentLengthCheck(arguments, 1, "WebSocket");
+ url2 = webidl.converters.USVString(url2);
+ if (options !== null) {
+ options = webidl.converters.WebSocketStreamOptions(options);
+ }
+ const baseURL = environmentSettingsObject.settingsObject.baseUrl;
+ const urlRecord = getURLRecord(url2, baseURL);
+ const protocols = options.protocols;
+ if (protocols.length !== new Set(protocols.map((p) => p.toLowerCase())).size) {
+ throw new DOMException("Invalid Sec-WebSocket-Protocol value", "SyntaxError");
+ }
+ if (protocols.length > 0 && !protocols.every((p) => isValidSubprotocol(p))) {
+ throw new DOMException("Invalid Sec-WebSocket-Protocol value", "SyntaxError");
+ }
+ this.#url = urlRecord.toString();
+ this.#openedPromise = createDeferredPromise();
+ this.#closedPromise = createDeferredPromise();
+ if (options.signal != null) {
+ const signal = options.signal;
+ if (signal.aborted) {
+ this.#openedPromise.reject(signal.reason);
+ this.#closedPromise.reject(signal.reason);
+ return;
+ }
+ signal.addEventListener("abort", () => {
+ if (!isEstablished(this.#handler.readyState)) {
+ failWebsocketConnection(this.#handler);
+ this.#handler.readyState = states.CLOSING;
+ this.#openedPromise.reject(signal.reason);
+ this.#closedPromise.reject(signal.reason);
+ this.#handshakeAborted = true;
+ }
+ }, { once: true });
+ }
+ const client = environmentSettingsObject.settingsObject;
+ this.#handler.controller = establishWebSocketConnection(
+ urlRecord,
+ protocols,
+ client,
+ this.#handler,
+ options
+ );
+ }
+ // The url getter steps are to return this 's url , serialized .
+ get url() {
+ return this.#url.toString();
+ }
+ // The opened getter steps are to return this 's opened promise .
+ get opened() {
+ return this.#openedPromise.promise;
+ }
+ // The closed getter steps are to return this 's closed promise .
+ get closed() {
+ return this.#closedPromise.promise;
+ }
+ // The close( closeInfo ) method steps are:
+ close(closeInfo = void 0) {
+ if (closeInfo !== null) {
+ closeInfo = webidl.converters.WebSocketCloseInfo(closeInfo);
+ }
+ const code = closeInfo.closeCode ?? null;
+ const reason = closeInfo.reason;
+ closeWebSocketConnection(this.#handler, code, reason, true);
+ }
+ #write(chunk) {
+ chunk = webidl.converters.WebSocketStreamWrite(chunk);
+ const promise = createDeferredPromise();
+ let data = null;
+ let opcode = null;
+ if (webidl.is.BufferSource(chunk)) {
+ data = new Uint8Array(ArrayBuffer.isView(chunk) ? new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength) : chunk.slice());
+ opcode = opcodes.BINARY;
+ } else {
+ let string3;
+ try {
+ string3 = webidl.converters.DOMString(chunk);
+ } catch (e) {
+ promise.reject(e);
+ return promise.promise;
+ }
+ data = new TextEncoder().encode(string3);
+ opcode = opcodes.TEXT;
+ }
+ if (!this.#handler.closeState.has(sentCloseFrameState.SENT) && !this.#handler.closeState.has(sentCloseFrameState.RECEIVED)) {
+ const frame = new WebsocketFrameSend(data);
+ this.#handler.socket.write(frame.createFrame(opcode), () => {
+ promise.resolve(void 0);
+ });
+ }
+ return promise.promise;
+ }
+ /** @type {import('../websocket').Handler['onConnectionEstablished']} */
+ #onConnectionEstablished(response, parsedExtensions) {
+ this.#handler.socket = response.socket;
+ const parser = new ByteParser(this.#handler, parsedExtensions);
+ parser.on("drain", () => this.#handler.onParserDrain());
+ parser.on("error", (err) => this.#handler.onParserError(err));
+ this.#parser = parser;
+ this.#handler.readyState = states.OPEN;
+ const extensions = parsedExtensions ?? "";
+ const protocol = response.headersList.get("sec-websocket-protocol") ?? "";
+ const readable = new ReadableStream({
+ start: (controller) => {
+ this.#readableStreamController = controller;
+ },
+ pull(controller) {
+ let chunk;
+ while (controller.desiredSize > 0 && (chunk = response.socket.read()) !== null) {
+ controller.enqueue(chunk);
+ }
+ },
+ cancel: (reason) => this.#cancel(reason)
+ });
+ const writable = new WritableStream({
+ write: (chunk) => this.#write(chunk),
+ close: () => closeWebSocketConnection(this.#handler, null, null),
+ abort: (reason) => this.#closeUsingReason(reason)
+ });
+ this.#readableStream = readable;
+ this.#writableStream = writable;
+ this.#openedPromise.resolve({
+ extensions,
+ protocol,
+ readable,
+ writable
+ });
+ }
+ /** @type {import('../websocket').Handler['onMessage']} */
+ #onMessage(type2, data) {
+ if (this.#handler.readyState !== states.OPEN) {
+ return;
+ }
+ let chunk;
+ if (type2 === opcodes.TEXT) {
+ try {
+ chunk = utf8Decode(data);
+ } catch {
+ failWebsocketConnection(this.#handler, "Received invalid UTF-8 in text frame.");
+ return;
+ }
+ } else if (type2 === opcodes.BINARY) {
+ chunk = new Uint8Array(data.buffer, data.byteOffset, data.byteLength);
+ }
+ this.#readableStreamController.enqueue(chunk);
+ }
+ /** @type {import('../websocket').Handler['onSocketClose']} */
+ #onSocketClose() {
+ const wasClean = this.#handler.closeState.has(sentCloseFrameState.SENT) && this.#handler.closeState.has(sentCloseFrameState.RECEIVED);
+ this.#handler.readyState = states.CLOSED;
+ if (this.#handshakeAborted) {
+ return;
+ }
+ if (!this.#handler.wasEverConnected) {
+ this.#openedPromise.reject(new WebSocketError("Socket never opened"));
+ }
+ const result = this.#parser.closingInfo;
+ let code = result?.code ?? 1005;
+ if (!this.#handler.closeState.has(sentCloseFrameState.SENT) && !this.#handler.closeState.has(sentCloseFrameState.RECEIVED)) {
+ code = 1006;
+ }
+ const reason = result?.reason == null ? "" : utf8DecodeBytes(Buffer.from(result.reason));
+ if (wasClean) {
+ this.#readableStreamController.close();
+ if (!this.#writableStream.locked) {
+ this.#writableStream.abort(new DOMException("A closed WebSocketStream cannot be written to", "InvalidStateError"));
+ }
+ this.#closedPromise.resolve({
+ closeCode: code,
+ reason
+ });
+ } else {
+ const error41 = createUnvalidatedWebSocketError("unclean close", code, reason);
+ this.#readableStreamController.error(error41);
+ this.#writableStream.abort(error41);
+ this.#closedPromise.reject(error41);
+ }
+ }
+ #closeUsingReason(reason) {
+ let code = null;
+ let reasonString = "";
+ if (webidl.is.WebSocketError(reason)) {
+ code = reason.closeCode;
+ reasonString = reason.reason;
+ }
+ closeWebSocketConnection(this.#handler, code, reasonString);
+ }
+ // To cancel a WebSocketStream stream given reason , close using reason giving stream and reason .
+ #cancel(reason) {
+ this.#closeUsingReason(reason);
+ }
+ };
+ Object.defineProperties(WebSocketStream.prototype, {
+ url: kEnumerableProperty,
+ opened: kEnumerableProperty,
+ closed: kEnumerableProperty,
+ close: kEnumerableProperty,
+ [Symbol.toStringTag]: {
+ value: "WebSocketStream",
+ writable: false,
+ enumerable: false,
+ configurable: true
+ }
+ });
+ webidl.converters.WebSocketStreamOptions = webidl.dictionaryConverter([
+ {
+ key: "protocols",
+ converter: webidl.sequenceConverter(webidl.converters.USVString),
+ defaultValue: () => []
+ },
+ {
+ key: "signal",
+ converter: webidl.nullableConverter(webidl.converters.AbortSignal),
+ defaultValue: () => null
+ }
+ ]);
+ webidl.converters.WebSocketCloseInfo = webidl.dictionaryConverter([
+ {
+ key: "closeCode",
+ converter: (V) => webidl.converters["unsigned short"](V, webidl.attributes.EnforceRange)
+ },
+ {
+ key: "reason",
+ converter: webidl.converters.USVString,
+ defaultValue: () => ""
+ }
+ ]);
+ webidl.converters.WebSocketStreamWrite = function(V) {
+ if (typeof V === "string") {
+ return webidl.converters.USVString(V);
+ }
+ return webidl.converters.BufferSource(V);
+ };
+ module.exports = { WebSocketStream };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/eventsource/util.js
+var require_util16 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/eventsource/util.js"(exports, module) {
+ "use strict";
+ function isValidLastEventId(value2) {
+ return value2.indexOf("\0") === -1;
+ }
+ function isASCIINumber(value2) {
+ if (value2.length === 0) return false;
+ for (let i = 0; i < value2.length; i++) {
+ if (value2.charCodeAt(i) < 48 || value2.charCodeAt(i) > 57) return false;
+ }
+ return true;
+ }
+ module.exports = {
+ isValidLastEventId,
+ isASCIINumber
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/eventsource/eventsource-stream.js
+var require_eventsource_stream = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/eventsource/eventsource-stream.js"(exports, module) {
+ "use strict";
+ var { Transform } = __require("node:stream");
+ var { isASCIINumber, isValidLastEventId } = require_util16();
+ var BOM = [239, 187, 191];
+ var LF = 10;
+ var CR = 13;
+ var COLON = 58;
+ var SPACE2 = 32;
+ var EventSourceStream = class extends Transform {
+ /**
+ * @type {eventSourceSettings}
+ */
+ state;
+ /**
+ * Leading byte-order-mark check.
+ * @type {boolean}
+ */
+ checkBOM = true;
+ /**
+ * @type {boolean}
+ */
+ crlfCheck = false;
+ /**
+ * @type {boolean}
+ */
+ eventEndCheck = false;
+ /**
+ * @type {Buffer|null}
+ */
+ buffer = null;
+ pos = 0;
+ event = {
+ data: void 0,
+ event: void 0,
+ id: void 0,
+ retry: void 0
+ };
+ /**
+ * @param {object} options
+ * @param {boolean} [options.readableObjectMode]
+ * @param {eventSourceSettings} [options.eventSourceSettings]
+ * @param {(chunk: any, encoding?: BufferEncoding | undefined) => boolean} [options.push]
+ */
+ constructor(options = {}) {
+ options.readableObjectMode = true;
+ super(options);
+ this.state = options.eventSourceSettings || {};
+ if (options.push) {
+ this.push = options.push;
+ }
+ }
+ /**
+ * @param {Buffer} chunk
+ * @param {string} _encoding
+ * @param {Function} callback
+ * @returns {void}
+ */
+ _transform(chunk, _encoding, callback) {
+ if (chunk.length === 0) {
+ callback();
+ return;
+ }
+ if (this.buffer) {
+ this.buffer = Buffer.concat([this.buffer, chunk]);
+ } else {
+ this.buffer = chunk;
+ }
+ if (this.checkBOM) {
+ switch (this.buffer.length) {
+ case 1:
+ if (this.buffer[0] === BOM[0]) {
+ callback();
+ return;
+ }
+ this.checkBOM = false;
+ callback();
+ return;
+ case 2:
+ if (this.buffer[0] === BOM[0] && this.buffer[1] === BOM[1]) {
+ callback();
+ return;
+ }
+ this.checkBOM = false;
+ break;
+ case 3:
+ if (this.buffer[0] === BOM[0] && this.buffer[1] === BOM[1] && this.buffer[2] === BOM[2]) {
+ this.buffer = Buffer.alloc(0);
+ this.checkBOM = false;
+ callback();
+ return;
+ }
+ this.checkBOM = false;
+ break;
+ default:
+ if (this.buffer[0] === BOM[0] && this.buffer[1] === BOM[1] && this.buffer[2] === BOM[2]) {
+ this.buffer = this.buffer.subarray(3);
+ }
+ this.checkBOM = false;
+ break;
+ }
+ }
+ while (this.pos < this.buffer.length) {
+ if (this.eventEndCheck) {
+ if (this.crlfCheck) {
+ if (this.buffer[this.pos] === LF) {
+ this.buffer = this.buffer.subarray(this.pos + 1);
+ this.pos = 0;
+ this.crlfCheck = false;
+ continue;
+ }
+ this.crlfCheck = false;
+ }
+ if (this.buffer[this.pos] === LF || this.buffer[this.pos] === CR) {
+ if (this.buffer[this.pos] === CR) {
+ this.crlfCheck = true;
+ }
+ this.buffer = this.buffer.subarray(this.pos + 1);
+ this.pos = 0;
+ if (this.event.data !== void 0 || this.event.event || this.event.id !== void 0 || this.event.retry) {
+ this.processEvent(this.event);
+ }
+ this.clearEvent();
+ continue;
+ }
+ this.eventEndCheck = false;
+ continue;
+ }
+ if (this.buffer[this.pos] === LF || this.buffer[this.pos] === CR) {
+ if (this.buffer[this.pos] === CR) {
+ this.crlfCheck = true;
+ }
+ this.parseLine(this.buffer.subarray(0, this.pos), this.event);
+ this.buffer = this.buffer.subarray(this.pos + 1);
+ this.pos = 0;
+ this.eventEndCheck = true;
+ continue;
+ }
+ this.pos++;
+ }
+ callback();
+ }
+ /**
+ * @param {Buffer} line
+ * @param {EventSourceStreamEvent} event
+ */
+ parseLine(line, event) {
+ if (line.length === 0) {
+ return;
+ }
+ const colonPosition = line.indexOf(COLON);
+ if (colonPosition === 0) {
+ return;
+ }
+ let field = "";
+ let value2 = "";
+ if (colonPosition !== -1) {
+ field = line.subarray(0, colonPosition).toString("utf8");
+ let valueStart = colonPosition + 1;
+ if (line[valueStart] === SPACE2) {
+ ++valueStart;
+ }
+ value2 = line.subarray(valueStart).toString("utf8");
+ } else {
+ field = line.toString("utf8");
+ value2 = "";
+ }
+ switch (field) {
+ case "data":
+ if (event[field] === void 0) {
+ event[field] = value2;
+ } else {
+ event[field] += `
+${value2}`;
+ }
+ break;
+ case "retry":
+ if (isASCIINumber(value2)) {
+ event[field] = value2;
+ }
+ break;
+ case "id":
+ if (isValidLastEventId(value2)) {
+ event[field] = value2;
+ }
+ break;
+ case "event":
+ if (value2.length > 0) {
+ event[field] = value2;
+ }
+ break;
+ }
+ }
+ /**
+ * @param {EventSourceStreamEvent} event
+ */
+ processEvent(event) {
+ if (event.retry && isASCIINumber(event.retry)) {
+ this.state.reconnectionTime = parseInt(event.retry, 10);
+ }
+ if (event.id !== void 0 && isValidLastEventId(event.id)) {
+ this.state.lastEventId = event.id;
+ }
+ if (event.data !== void 0) {
+ this.push({
+ type: event.event || "message",
+ options: {
+ data: event.data,
+ lastEventId: this.state.lastEventId,
+ origin: this.state.origin
+ }
+ });
+ }
+ }
+ clearEvent() {
+ this.event = {
+ data: void 0,
+ event: void 0,
+ id: void 0,
+ retry: void 0
+ };
+ }
+ };
+ module.exports = {
+ EventSourceStream
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/eventsource/eventsource.js
+var require_eventsource = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/lib/web/eventsource/eventsource.js"(exports, module) {
+ "use strict";
+ var { pipeline: pipeline2 } = __require("node:stream");
+ var { fetching } = require_fetch2();
+ var { makeRequest } = require_request4();
+ var { webidl } = require_webidl2();
+ var { EventSourceStream } = require_eventsource_stream();
+ var { parseMIMEType } = require_data_url();
+ var { createFastMessageEvent } = require_events2();
+ var { isNetworkError } = require_response2();
+ var { kEnumerableProperty } = require_util11();
+ var { environmentSettingsObject } = require_util12();
+ var experimentalWarned = false;
+ var defaultReconnectionTime = 3e3;
+ var CONNECTING = 0;
+ var OPEN = 1;
+ var CLOSED = 2;
+ var ANONYMOUS = "anonymous";
+ var USE_CREDENTIALS = "use-credentials";
+ var EventSource2 = class _EventSource extends EventTarget {
+ #events = {
+ open: null,
+ error: null,
+ message: null
+ };
+ #url;
+ #withCredentials = false;
+ /**
+ * @type {ReadyState}
+ */
+ #readyState = CONNECTING;
+ #request = null;
+ #controller = null;
+ #dispatcher;
+ /**
+ * @type {import('./eventsource-stream').eventSourceSettings}
+ */
+ #state;
+ /**
+ * Creates a new EventSource object.
+ * @param {string} url
+ * @param {EventSourceInit} [eventSourceInitDict={}]
+ * @see https://html.spec.whatwg.org/multipage/server-sent-events.html#the-eventsource-interface
+ */
+ constructor(url2, eventSourceInitDict = {}) {
+ super();
+ webidl.util.markAsUncloneable(this);
+ const prefix = "EventSource constructor";
+ webidl.argumentLengthCheck(arguments, 1, prefix);
+ if (!experimentalWarned) {
+ experimentalWarned = true;
+ process.emitWarning("EventSource is experimental, expect them to change at any time.", {
+ code: "UNDICI-ES"
+ });
+ }
+ url2 = webidl.converters.USVString(url2);
+ eventSourceInitDict = webidl.converters.EventSourceInitDict(eventSourceInitDict, prefix, "eventSourceInitDict");
+ this.#dispatcher = eventSourceInitDict.node.dispatcher || eventSourceInitDict.dispatcher;
+ this.#state = {
+ lastEventId: "",
+ reconnectionTime: eventSourceInitDict.node.reconnectionTime
+ };
+ const settings = environmentSettingsObject;
+ let urlRecord;
+ try {
+ urlRecord = new URL(url2, settings.settingsObject.baseUrl);
+ this.#state.origin = urlRecord.origin;
+ } catch (e) {
+ throw new DOMException(e, "SyntaxError");
+ }
+ this.#url = urlRecord.href;
+ let corsAttributeState = ANONYMOUS;
+ if (eventSourceInitDict.withCredentials === true) {
+ corsAttributeState = USE_CREDENTIALS;
+ this.#withCredentials = true;
+ }
+ const initRequest = {
+ redirect: "follow",
+ keepalive: true,
+ // @see https://html.spec.whatwg.org/multipage/urls-and-fetching.html#cors-settings-attributes
+ mode: "cors",
+ credentials: corsAttributeState === "anonymous" ? "same-origin" : "omit",
+ referrer: "no-referrer"
+ };
+ initRequest.client = environmentSettingsObject.settingsObject;
+ initRequest.headersList = [["accept", { name: "accept", value: "text/event-stream" }]];
+ initRequest.cache = "no-store";
+ initRequest.initiator = "other";
+ initRequest.urlList = [new URL(this.#url)];
+ this.#request = makeRequest(initRequest);
+ this.#connect();
+ }
+ /**
+ * Returns the state of this EventSource object's connection. It can have the
+ * values described below.
+ * @returns {ReadyState}
+ * @readonly
+ */
+ get readyState() {
+ return this.#readyState;
+ }
+ /**
+ * Returns the URL providing the event stream.
+ * @readonly
+ * @returns {string}
+ */
+ get url() {
+ return this.#url;
+ }
+ /**
+ * Returns a boolean indicating whether the EventSource object was
+ * instantiated with CORS credentials set (true), or not (false, the default).
+ */
+ get withCredentials() {
+ return this.#withCredentials;
+ }
+ #connect() {
+ if (this.#readyState === CLOSED) return;
+ this.#readyState = CONNECTING;
+ const fetchParams = {
+ request: this.#request,
+ dispatcher: this.#dispatcher
+ };
+ const processEventSourceEndOfBody = (response) => {
+ if (!isNetworkError(response)) {
+ return this.#reconnect();
+ }
+ };
+ fetchParams.processResponseEndOfBody = processEventSourceEndOfBody;
+ fetchParams.processResponse = (response) => {
+ if (isNetworkError(response)) {
+ if (response.aborted) {
+ this.close();
+ this.dispatchEvent(new Event("error"));
+ return;
+ } else {
+ this.#reconnect();
+ return;
+ }
+ }
+ const contentType = response.headersList.get("content-type", true);
+ const mimeType = contentType !== null ? parseMIMEType(contentType) : "failure";
+ const contentTypeValid = mimeType !== "failure" && mimeType.essence === "text/event-stream";
+ if (response.status !== 200 || contentTypeValid === false) {
+ this.close();
+ this.dispatchEvent(new Event("error"));
+ return;
+ }
+ this.#readyState = OPEN;
+ this.dispatchEvent(new Event("open"));
+ this.#state.origin = response.urlList[response.urlList.length - 1].origin;
+ const eventSourceStream = new EventSourceStream({
+ eventSourceSettings: this.#state,
+ push: (event) => {
+ this.dispatchEvent(createFastMessageEvent(
+ event.type,
+ event.options
+ ));
+ }
+ });
+ pipeline2(
+ response.body.stream,
+ eventSourceStream,
+ (error41) => {
+ if (error41?.aborted === false) {
+ this.close();
+ this.dispatchEvent(new Event("error"));
+ }
+ }
+ );
+ };
+ this.#controller = fetching(fetchParams);
+ }
+ /**
+ * @see https://html.spec.whatwg.org/multipage/server-sent-events.html#sse-processing-model
+ * @returns {void}
+ */
+ #reconnect() {
+ if (this.#readyState === CLOSED) return;
+ this.#readyState = CONNECTING;
+ this.dispatchEvent(new Event("error"));
+ setTimeout(() => {
+ if (this.#readyState !== CONNECTING) return;
+ if (this.#state.lastEventId.length) {
+ this.#request.headersList.set("last-event-id", this.#state.lastEventId, true);
+ }
+ this.#connect();
+ }, this.#state.reconnectionTime)?.unref();
+ }
+ /**
+ * Closes the connection, if any, and sets the readyState attribute to
+ * CLOSED.
+ */
+ close() {
+ webidl.brandCheck(this, _EventSource);
+ if (this.#readyState === CLOSED) return;
+ this.#readyState = CLOSED;
+ this.#controller.abort();
+ this.#request = null;
+ }
+ get onopen() {
+ return this.#events.open;
+ }
+ set onopen(fn2) {
+ if (this.#events.open) {
+ this.removeEventListener("open", this.#events.open);
+ }
+ const listener = webidl.converters.EventHandlerNonNull(fn2);
+ if (listener !== null) {
+ this.addEventListener("open", listener);
+ this.#events.open = fn2;
+ } else {
+ this.#events.open = null;
+ }
+ }
+ get onmessage() {
+ return this.#events.message;
+ }
+ set onmessage(fn2) {
+ if (this.#events.message) {
+ this.removeEventListener("message", this.#events.message);
+ }
+ const listener = webidl.converters.EventHandlerNonNull(fn2);
+ if (listener !== null) {
+ this.addEventListener("message", listener);
+ this.#events.message = fn2;
+ } else {
+ this.#events.message = null;
+ }
+ }
+ get onerror() {
+ return this.#events.error;
+ }
+ set onerror(fn2) {
+ if (this.#events.error) {
+ this.removeEventListener("error", this.#events.error);
+ }
+ const listener = webidl.converters.EventHandlerNonNull(fn2);
+ if (listener !== null) {
+ this.addEventListener("error", listener);
+ this.#events.error = fn2;
+ } else {
+ this.#events.error = null;
+ }
+ }
+ };
+ var constantsPropertyDescriptors = {
+ CONNECTING: {
+ __proto__: null,
+ configurable: false,
+ enumerable: true,
+ value: CONNECTING,
+ writable: false
+ },
+ OPEN: {
+ __proto__: null,
+ configurable: false,
+ enumerable: true,
+ value: OPEN,
+ writable: false
+ },
+ CLOSED: {
+ __proto__: null,
+ configurable: false,
+ enumerable: true,
+ value: CLOSED,
+ writable: false
+ }
+ };
+ Object.defineProperties(EventSource2, constantsPropertyDescriptors);
+ Object.defineProperties(EventSource2.prototype, constantsPropertyDescriptors);
+ Object.defineProperties(EventSource2.prototype, {
+ close: kEnumerableProperty,
+ onerror: kEnumerableProperty,
+ onmessage: kEnumerableProperty,
+ onopen: kEnumerableProperty,
+ readyState: kEnumerableProperty,
+ url: kEnumerableProperty,
+ withCredentials: kEnumerableProperty
+ });
+ webidl.converters.EventSourceInitDict = webidl.dictionaryConverter([
+ {
+ key: "withCredentials",
+ converter: webidl.converters.boolean,
+ defaultValue: () => false
+ },
+ {
+ key: "dispatcher",
+ // undici only
+ converter: webidl.converters.any
+ },
+ {
+ key: "node",
+ // undici only
+ converter: webidl.dictionaryConverter([
+ {
+ key: "reconnectionTime",
+ converter: webidl.converters["unsigned long"],
+ defaultValue: () => defaultReconnectionTime
+ },
+ {
+ key: "dispatcher",
+ converter: webidl.converters.any
+ }
+ ]),
+ defaultValue: () => ({})
+ }
+ ]);
+ module.exports = {
+ EventSource: EventSource2,
+ defaultReconnectionTime
+ };
+ }
+});
+
+// ../node_modules/.pnpm/undici@7.16.0/node_modules/undici/index.js
+var require_undici2 = __commonJS({
+ "../node_modules/.pnpm/undici@7.16.0/node_modules/undici/index.js"(exports, module) {
+ "use strict";
+ var Client2 = require_client2();
+ var Dispatcher = require_dispatcher2();
+ var Pool = require_pool2();
+ var BalancedPool = require_balanced_pool2();
+ var Agent = require_agent2();
+ var ProxyAgent = require_proxy_agent2();
+ var EnvHttpProxyAgent = require_env_http_proxy_agent();
+ var RetryAgent = require_retry_agent();
+ var H2CClient = require_h2c_client();
+ var errors = require_errors2();
+ var util3 = require_util11();
+ var { InvalidArgumentError } = errors;
+ var api = require_api3();
+ var buildConnector = require_connect2();
+ var MockClient = require_mock_client2();
+ var { MockCallHistory, MockCallHistoryLog } = require_mock_call_history();
+ var MockAgent = require_mock_agent2();
+ var MockPool = require_mock_pool2();
+ var SnapshotAgent = require_snapshot_agent();
+ var mockErrors = require_mock_errors2();
+ var RetryHandler = require_retry_handler();
+ var { getGlobalDispatcher, setGlobalDispatcher } = require_global4();
+ var DecoratorHandler = require_decorator_handler();
+ var RedirectHandler = require_redirect_handler();
+ Object.assign(Dispatcher.prototype, api);
+ module.exports.Dispatcher = Dispatcher;
+ module.exports.Client = Client2;
+ module.exports.Pool = Pool;
+ module.exports.BalancedPool = BalancedPool;
+ module.exports.Agent = Agent;
+ module.exports.ProxyAgent = ProxyAgent;
+ module.exports.EnvHttpProxyAgent = EnvHttpProxyAgent;
+ module.exports.RetryAgent = RetryAgent;
+ module.exports.H2CClient = H2CClient;
+ module.exports.RetryHandler = RetryHandler;
+ module.exports.DecoratorHandler = DecoratorHandler;
+ module.exports.RedirectHandler = RedirectHandler;
+ module.exports.interceptors = {
+ redirect: require_redirect(),
+ responseError: require_response_error(),
+ retry: require_retry(),
+ dump: require_dump(),
+ dns: require_dns(),
+ cache: require_cache6(),
+ decompress: require_decompress()
+ };
+ module.exports.cacheStores = {
+ MemoryCacheStore: require_memory_cache_store()
+ };
+ var SqliteCacheStore = require_sqlite_cache_store();
+ module.exports.cacheStores.SqliteCacheStore = SqliteCacheStore;
+ module.exports.buildConnector = buildConnector;
+ module.exports.errors = errors;
+ module.exports.util = {
+ parseHeaders: util3.parseHeaders,
+ headerNameToString: util3.headerNameToString
+ };
+ function makeDispatcher(fn2) {
+ return (url2, opts, handler2) => {
+ if (typeof opts === "function") {
+ handler2 = opts;
+ opts = null;
+ }
+ if (!url2 || typeof url2 !== "string" && typeof url2 !== "object" && !(url2 instanceof URL)) {
+ throw new InvalidArgumentError("invalid url");
+ }
+ if (opts != null && typeof opts !== "object") {
+ throw new InvalidArgumentError("invalid opts");
+ }
+ if (opts && opts.path != null) {
+ if (typeof opts.path !== "string") {
+ throw new InvalidArgumentError("invalid opts.path");
+ }
+ let path3 = opts.path;
+ if (!opts.path.startsWith("/")) {
+ path3 = `/${path3}`;
+ }
+ url2 = new URL(util3.parseOrigin(url2).origin + path3);
+ } else {
+ if (!opts) {
+ opts = typeof url2 === "object" ? url2 : {};
+ }
+ url2 = util3.parseURL(url2);
+ }
+ const { agent: agent2, dispatcher = getGlobalDispatcher() } = opts;
+ if (agent2) {
+ throw new InvalidArgumentError("unsupported opts.agent. Did you mean opts.client?");
+ }
+ return fn2.call(dispatcher, {
+ ...opts,
+ origin: url2.origin,
+ path: url2.search ? `${url2.pathname}${url2.search}` : url2.pathname,
+ method: opts.method || (opts.body ? "PUT" : "GET")
+ }, handler2);
+ };
+ }
+ module.exports.setGlobalDispatcher = setGlobalDispatcher;
+ module.exports.getGlobalDispatcher = getGlobalDispatcher;
+ var fetchImpl = require_fetch2().fetch;
+ module.exports.fetch = function fetch3(init, options = void 0) {
+ return fetchImpl(init, options).catch((err) => {
+ if (err && typeof err === "object") {
+ Error.captureStackTrace(err);
+ }
+ throw err;
+ });
+ };
+ module.exports.Headers = require_headers2().Headers;
+ module.exports.Response = require_response2().Response;
+ module.exports.Request = require_request4().Request;
+ module.exports.FormData = require_formdata2().FormData;
+ var { setGlobalOrigin, getGlobalOrigin } = require_global3();
+ module.exports.setGlobalOrigin = setGlobalOrigin;
+ module.exports.getGlobalOrigin = getGlobalOrigin;
+ var { CacheStorage } = require_cachestorage2();
+ var { kConstruct } = require_symbols6();
+ module.exports.caches = new CacheStorage(kConstruct);
+ var { deleteCookie, getCookies, getSetCookies, setCookie, parseCookie } = require_cookies2();
+ module.exports.deleteCookie = deleteCookie;
+ module.exports.getCookies = getCookies;
+ module.exports.getSetCookies = getSetCookies;
+ module.exports.setCookie = setCookie;
+ module.exports.parseCookie = parseCookie;
+ var { parseMIMEType, serializeAMimeType } = require_data_url();
+ module.exports.parseMIMEType = parseMIMEType;
+ module.exports.serializeAMimeType = serializeAMimeType;
+ var { CloseEvent, ErrorEvent: ErrorEvent2, MessageEvent: MessageEvent2 } = require_events2();
+ var { WebSocket, ping } = require_websocket2();
+ module.exports.WebSocket = WebSocket;
+ module.exports.CloseEvent = CloseEvent;
+ module.exports.ErrorEvent = ErrorEvent2;
+ module.exports.MessageEvent = MessageEvent2;
+ module.exports.ping = ping;
+ module.exports.WebSocketStream = require_websocketstream().WebSocketStream;
+ module.exports.WebSocketError = require_websocketerror().WebSocketError;
+ module.exports.request = makeDispatcher(api.request);
+ module.exports.stream = makeDispatcher(api.stream);
+ module.exports.pipeline = makeDispatcher(api.pipeline);
+ module.exports.connect = makeDispatcher(api.connect);
+ module.exports.upgrade = makeDispatcher(api.upgrade);
+ module.exports.MockClient = MockClient;
+ module.exports.MockCallHistory = MockCallHistory;
+ module.exports.MockCallHistoryLog = MockCallHistoryLog;
+ module.exports.MockPool = MockPool;
+ module.exports.MockAgent = MockAgent;
+ module.exports.SnapshotAgent = SnapshotAgent;
+ module.exports.mockErrors = mockErrors;
+ var { EventSource: EventSource2 } = require_eventsource();
+ module.exports.EventSource = EventSource2;
+ function install() {
+ globalThis.fetch = module.exports.fetch;
+ globalThis.Headers = module.exports.Headers;
+ globalThis.Response = module.exports.Response;
+ globalThis.Request = module.exports.Request;
+ globalThis.FormData = module.exports.FormData;
+ globalThis.WebSocket = module.exports.WebSocket;
+ globalThis.CloseEvent = module.exports.CloseEvent;
+ globalThis.ErrorEvent = module.exports.ErrorEvent;
+ globalThis.MessageEvent = module.exports.MessageEvent;
+ globalThis.EventSource = module.exports.EventSource;
+ }
+ module.exports.install = install;
+ }
+});
+
+// ../node_modules/.pnpm/uri-templates@0.2.0/node_modules/uri-templates/uri-templates.js
+var require_uri_templates = __commonJS({
+ "../node_modules/.pnpm/uri-templates@0.2.0/node_modules/uri-templates/uri-templates.js"(exports, module) {
+ (function(global2, factory) {
+ if (typeof define === "function" && define.amd) {
+ define("uri-templates", [], factory);
+ } else if (typeof module !== "undefined" && module.exports) {
+ module.exports = factory();
+ } else {
+ global2.UriTemplate = factory();
+ }
+ })(exports, function() {
+ var uriTemplateGlobalModifiers = {
+ "+": true,
+ "#": true,
+ ".": true,
+ "/": true,
+ ";": true,
+ "?": true,
+ "&": true
+ };
+ var uriTemplateSuffices = {
+ "*": true
+ };
+ var urlEscapedChars = /[:/&?#]/;
+ function notReallyPercentEncode(string3) {
+ return encodeURI(string3).replace(/%25[0-9][0-9]/g, function(doubleEncoded) {
+ return "%" + doubleEncoded.substring(3);
+ });
+ }
+ function isPercentEncoded(string3) {
+ string3 = string3.replace(/%../g, "");
+ return encodeURIComponent(string3) === string3;
+ }
+ function uriTemplateSubstitution(spec) {
+ var modifier = "";
+ if (uriTemplateGlobalModifiers[spec.charAt(0)]) {
+ modifier = spec.charAt(0);
+ spec = spec.substring(1);
+ }
+ var separator2 = "";
+ var prefix = "";
+ var shouldEscape = true;
+ var showVariables = false;
+ var trimEmptyString = false;
+ if (modifier == "+") {
+ shouldEscape = false;
+ } else if (modifier == ".") {
+ prefix = ".";
+ separator2 = ".";
+ } else if (modifier == "/") {
+ prefix = "/";
+ separator2 = "/";
+ } else if (modifier == "#") {
+ prefix = "#";
+ shouldEscape = false;
+ } else if (modifier == ";") {
+ prefix = ";";
+ separator2 = ";", showVariables = true;
+ trimEmptyString = true;
+ } else if (modifier == "?") {
+ prefix = "?";
+ separator2 = "&", showVariables = true;
+ } else if (modifier == "&") {
+ prefix = "&";
+ separator2 = "&", showVariables = true;
+ }
+ var varNames = [];
+ var varList = spec.split(",");
+ var varSpecs = [];
+ var varSpecMap = {};
+ for (var i = 0; i < varList.length; i++) {
+ var varName = varList[i];
+ var truncate = null;
+ if (varName.indexOf(":") != -1) {
+ var parts = varName.split(":");
+ varName = parts[0];
+ truncate = parseInt(parts[1]);
+ }
+ var suffices = {};
+ while (uriTemplateSuffices[varName.charAt(varName.length - 1)]) {
+ suffices[varName.charAt(varName.length - 1)] = true;
+ varName = varName.substring(0, varName.length - 1);
+ }
+ var varSpec = {
+ truncate,
+ name: varName,
+ suffices
+ };
+ varSpecs.push(varSpec);
+ varSpecMap[varName] = varSpec;
+ varNames.push(varName);
+ }
+ var subFunction = function(valueFunction) {
+ var result = "";
+ var startIndex = 0;
+ for (var i2 = 0; i2 < varSpecs.length; i2++) {
+ var varSpec2 = varSpecs[i2];
+ var value2 = valueFunction(varSpec2.name);
+ if (value2 == null || Array.isArray(value2) && value2.length == 0 || typeof value2 == "object" && Object.keys(value2).length == 0) {
+ startIndex++;
+ continue;
+ }
+ if (i2 == startIndex) {
+ result += prefix;
+ } else {
+ result += separator2 || ",";
+ }
+ if (Array.isArray(value2)) {
+ if (showVariables) {
+ result += varSpec2.name + "=";
+ }
+ for (var j = 0; j < value2.length; j++) {
+ if (j > 0) {
+ result += varSpec2.suffices["*"] ? separator2 || "," : ",";
+ if (varSpec2.suffices["*"] && showVariables) {
+ result += varSpec2.name + "=";
+ }
+ }
+ result += shouldEscape ? encodeURIComponent(value2[j]).replace(/!/g, "%21") : notReallyPercentEncode(value2[j]);
+ }
+ } else if (typeof value2 == "object") {
+ if (showVariables && !varSpec2.suffices["*"]) {
+ result += varSpec2.name + "=";
+ }
+ var first = true;
+ for (var key in value2) {
+ if (!first) {
+ result += varSpec2.suffices["*"] ? separator2 || "," : ",";
+ }
+ first = false;
+ result += shouldEscape ? encodeURIComponent(key).replace(/!/g, "%21") : notReallyPercentEncode(key);
+ result += varSpec2.suffices["*"] ? "=" : ",";
+ result += shouldEscape ? encodeURIComponent(value2[key]).replace(/!/g, "%21") : notReallyPercentEncode(value2[key]);
+ }
+ } else {
+ if (showVariables) {
+ result += varSpec2.name;
+ if (!trimEmptyString || value2 != "") {
+ result += "=";
+ }
+ }
+ if (varSpec2.truncate != null) {
+ value2 = value2.substring(0, varSpec2.truncate);
+ }
+ result += shouldEscape ? encodeURIComponent(value2).replace(/!/g, "%21") : notReallyPercentEncode(value2);
+ }
+ }
+ return result;
+ };
+ var guessFunction = function(stringValue, resultObj, strict) {
+ if (prefix) {
+ stringValue = stringValue.substring(prefix.length);
+ }
+ if (varSpecs.length == 1 && varSpecs[0].suffices["*"]) {
+ var varSpec2 = varSpecs[0];
+ var varName2 = varSpec2.name;
+ var arrayValue = varSpec2.suffices["*"] ? stringValue.split(separator2 || ",") : [stringValue];
+ var hasEquals = shouldEscape && stringValue.indexOf("=") != -1;
+ for (var i2 = 1; i2 < arrayValue.length; i2++) {
+ var stringValue = arrayValue[i2];
+ if (hasEquals && stringValue.indexOf("=") == -1) {
+ arrayValue[i2 - 1] += (separator2 || ",") + stringValue;
+ arrayValue.splice(i2, 1);
+ i2--;
+ }
+ }
+ for (var i2 = 0; i2 < arrayValue.length; i2++) {
+ var stringValue = arrayValue[i2];
+ if (shouldEscape && stringValue.indexOf("=") != -1) {
+ hasEquals = true;
+ }
+ var innerArrayValue = stringValue.split(",");
+ if (innerArrayValue.length == 1) {
+ arrayValue[i2] = innerArrayValue[0];
+ } else {
+ arrayValue[i2] = innerArrayValue;
+ }
+ }
+ if (showVariables || hasEquals) {
+ var objectValue = resultObj[varName2] || {};
+ for (var j = 0; j < arrayValue.length; j++) {
+ var innerValue = stringValue;
+ if (showVariables && !innerValue) {
+ continue;
+ }
+ if (typeof arrayValue[j] == "string") {
+ var stringValue = arrayValue[j];
+ var innerVarName = stringValue.split("=", 1)[0];
+ var stringValue = stringValue.substring(innerVarName.length + 1);
+ if (shouldEscape) {
+ if (strict && !isPercentEncoded(stringValue)) {
+ return;
+ }
+ stringValue = decodeURIComponent(stringValue);
+ }
+ innerValue = stringValue;
+ } else {
+ var stringValue = arrayValue[j][0];
+ var innerVarName = stringValue.split("=", 1)[0];
+ var stringValue = stringValue.substring(innerVarName.length + 1);
+ if (shouldEscape) {
+ if (strict && !isPercentEncoded(stringValue)) {
+ return;
+ }
+ stringValue = decodeURIComponent(stringValue);
+ }
+ arrayValue[j][0] = stringValue;
+ innerValue = arrayValue[j];
+ }
+ if (shouldEscape) {
+ if (strict && !isPercentEncoded(innerVarName)) {
+ return;
+ }
+ innerVarName = decodeURIComponent(innerVarName);
+ }
+ if (objectValue[innerVarName] !== void 0) {
+ if (Array.isArray(objectValue[innerVarName])) {
+ objectValue[innerVarName].push(innerValue);
+ } else {
+ objectValue[innerVarName] = [objectValue[innerVarName], innerValue];
+ }
+ } else {
+ objectValue[innerVarName] = innerValue;
+ }
+ }
+ if (Object.keys(objectValue).length == 1 && objectValue[varName2] !== void 0) {
+ resultObj[varName2] = objectValue[varName2];
+ } else {
+ resultObj[varName2] = objectValue;
+ }
+ } else {
+ if (shouldEscape) {
+ for (var j = 0; j < arrayValue.length; j++) {
+ var innerArrayValue = arrayValue[j];
+ if (Array.isArray(innerArrayValue)) {
+ for (var k = 0; k < innerArrayValue.length; k++) {
+ if (strict && !isPercentEncoded(innerArrayValue[k])) {
+ return;
+ }
+ innerArrayValue[k] = decodeURIComponent(innerArrayValue[k]);
+ }
+ } else {
+ if (strict && !isPercentEncoded(innerArrayValue)) {
+ return;
+ }
+ arrayValue[j] = decodeURIComponent(innerArrayValue);
+ }
+ }
+ }
+ if (resultObj[varName2] !== void 0) {
+ if (Array.isArray(resultObj[varName2])) {
+ resultObj[varName2] = resultObj[varName2].concat(arrayValue);
+ } else {
+ resultObj[varName2] = [resultObj[varName2]].concat(arrayValue);
+ }
+ } else {
+ if (arrayValue.length == 1 && !varSpec2.suffices["*"]) {
+ resultObj[varName2] = arrayValue[0];
+ } else {
+ resultObj[varName2] = arrayValue;
+ }
+ }
+ }
+ } else {
+ var arrayValue = varSpecs.length == 1 ? [stringValue] : stringValue.split(separator2 || ",");
+ var specIndexMap = {};
+ for (var i2 = 0; i2 < arrayValue.length; i2++) {
+ var firstStarred = 0;
+ for (; firstStarred < varSpecs.length - 1 && firstStarred < i2; firstStarred++) {
+ if (varSpecs[firstStarred].suffices["*"]) {
+ break;
+ }
+ }
+ if (firstStarred == i2) {
+ specIndexMap[i2] = i2;
+ continue;
+ } else {
+ for (var lastStarred = varSpecs.length - 1; lastStarred > 0 && varSpecs.length - lastStarred < arrayValue.length - i2; lastStarred--) {
+ if (varSpecs[lastStarred].suffices["*"]) {
+ break;
+ }
+ }
+ if (varSpecs.length - lastStarred == arrayValue.length - i2) {
+ specIndexMap[i2] = lastStarred;
+ continue;
+ }
+ }
+ specIndexMap[i2] = firstStarred;
+ }
+ for (var i2 = 0; i2 < arrayValue.length; i2++) {
+ var stringValue = arrayValue[i2];
+ if (!stringValue && showVariables) {
+ continue;
+ }
+ var innerArrayValue = stringValue.split(",");
+ var hasEquals = false;
+ if (showVariables) {
+ var stringValue = innerArrayValue[0];
+ var varName2 = stringValue.split("=", 1)[0];
+ var stringValue = stringValue.substring(varName2.length + 1);
+ innerArrayValue[0] = stringValue;
+ var varSpec2 = varSpecMap[varName2] || varSpecs[0];
+ } else {
+ var varSpec2 = varSpecs[specIndexMap[i2]];
+ var varName2 = varSpec2.name;
+ }
+ for (var j = 0; j < innerArrayValue.length; j++) {
+ if (shouldEscape) {
+ if (strict && !isPercentEncoded(innerArrayValue[j])) {
+ return;
+ }
+ innerArrayValue[j] = decodeURIComponent(innerArrayValue[j]);
+ }
+ }
+ if ((showVariables || varSpec2.suffices["*"]) && resultObj[varName2] !== void 0) {
+ if (Array.isArray(resultObj[varName2])) {
+ resultObj[varName2] = resultObj[varName2].concat(innerArrayValue);
+ } else {
+ resultObj[varName2] = [resultObj[varName2]].concat(innerArrayValue);
+ }
+ } else {
+ if (innerArrayValue.length == 1 && !varSpec2.suffices["*"]) {
+ resultObj[varName2] = innerArrayValue[0];
+ } else {
+ resultObj[varName2] = innerArrayValue;
+ }
+ }
+ }
+ }
+ return 1;
+ };
+ return {
+ varNames,
+ prefix,
+ substitution: subFunction,
+ unSubstitution: guessFunction
+ };
+ }
+ function UriTemplate(template) {
+ if (!(this instanceof UriTemplate)) {
+ return new UriTemplate(template);
+ }
+ var parts = template.split("{");
+ var textParts = [parts.shift()];
+ var prefixes = [];
+ var substitutions = [];
+ var unSubstitutions = [];
+ var varNames = [];
+ while (parts.length > 0) {
+ var part = parts.shift();
+ var spec = part.split("}")[0];
+ var remainder = part.substring(spec.length + 1);
+ var funcs = uriTemplateSubstitution(spec);
+ substitutions.push(funcs.substitution);
+ unSubstitutions.push(funcs.unSubstitution);
+ prefixes.push(funcs.prefix);
+ textParts.push(remainder);
+ varNames = varNames.concat(funcs.varNames);
+ }
+ this.fill = function(valueFunction) {
+ if (valueFunction && typeof valueFunction !== "function") {
+ var value2 = valueFunction;
+ valueFunction = function(varName) {
+ return value2[varName];
+ };
+ }
+ var result = textParts[0];
+ for (var i = 0; i < substitutions.length; i++) {
+ var substitution = substitutions[i];
+ result += substitution(valueFunction);
+ result += textParts[i + 1];
+ }
+ return result;
+ };
+ this.fromUri = function(substituted, options) {
+ options = options || {};
+ var result = {};
+ for (var i = 0; i < textParts.length; i++) {
+ var part2 = textParts[i];
+ if (substituted.substring(0, part2.length) !== part2) {
+ return;
+ }
+ substituted = substituted.substring(part2.length);
+ if (i >= textParts.length - 1) {
+ if (substituted == "") {
+ break;
+ } else {
+ return;
+ }
+ }
+ var prefix = prefixes[i];
+ if (prefix && substituted.substring(0, prefix.length) !== prefix) {
+ continue;
+ }
+ var nextPart = textParts[i + 1];
+ var offset = i;
+ while (true) {
+ if (offset == textParts.length - 2) {
+ var endPart = substituted.substring(substituted.length - nextPart.length);
+ if (endPart !== nextPart) {
+ return;
+ }
+ var stringValue = substituted.substring(0, substituted.length - nextPart.length);
+ substituted = endPart;
+ } else if (nextPart) {
+ var nextPartPos = substituted.indexOf(nextPart);
+ var stringValue = substituted.substring(0, nextPartPos);
+ substituted = substituted.substring(nextPartPos);
+ } else if (prefixes[offset + 1]) {
+ var nextPartPos = substituted.indexOf(prefixes[offset + 1]);
+ if (nextPartPos === -1) nextPartPos = substituted.length;
+ var stringValue = substituted.substring(0, nextPartPos);
+ substituted = substituted.substring(nextPartPos);
+ } else if (textParts.length > offset + 2) {
+ offset++;
+ nextPart = textParts[offset + 1];
+ continue;
+ } else {
+ var stringValue = substituted;
+ substituted = "";
+ }
+ break;
+ }
+ if (!unSubstitutions[i](stringValue, result, options.strict)) {
+ return;
+ }
+ }
+ return result;
+ };
+ this.varNames = varNames;
+ this.template = template;
+ }
+ UriTemplate.prototype = {
+ toString: function() {
+ return this.template;
+ },
+ fillFromObject: function(obj) {
+ return this.fill(obj);
+ },
+ test: function(uri, options) {
+ return !!this.fromUri(uri, options);
+ }
+ };
+ return UriTemplate;
+ });
+ }
+});
+
+// ../node_modules/.pnpm/xsschema@0.3.5_arktype@2.1.25_effect@3.16.12_zod-to-json-schema@3.24.6_zod@3.25.76__zod@3.25.76/node_modules/xsschema/dist/arktype-C-GObzDh.js
+var arktype_C_GObzDh_exports = {};
+__export(arktype_C_GObzDh_exports, {
+ getToJsonSchemaFn: () => getToJsonSchemaFn
+});
+var getToJsonSchemaFn;
+var init_arktype_C_GObzDh = __esm({
+ "../node_modules/.pnpm/xsschema@0.3.5_arktype@2.1.25_effect@3.16.12_zod-to-json-schema@3.24.6_zod@3.25.76__zod@3.25.76/node_modules/xsschema/dist/arktype-C-GObzDh.js"() {
+ getToJsonSchemaFn = async () => (schema2) => schema2.toJsonSchema();
+ }
+});
+
+// ../node_modules/.pnpm/xsschema@0.3.5_arktype@2.1.25_effect@3.16.12_zod-to-json-schema@3.24.6_zod@3.25.76__zod@3.25.76/node_modules/xsschema/dist/effect--zg3C1LQ.js
+var effect_zg3C1LQ_exports = {};
+__export(effect_zg3C1LQ_exports, {
+ getToJsonSchemaFn: () => getToJsonSchemaFn2
+});
+var getToJsonSchemaFn2;
+var init_effect_zg3C1LQ = __esm({
+ "../node_modules/.pnpm/xsschema@0.3.5_arktype@2.1.25_effect@3.16.12_zod-to-json-schema@3.24.6_zod@3.25.76__zod@3.25.76/node_modules/xsschema/dist/effect--zg3C1LQ.js"() {
+ init_index_CAcLDIRJ();
+ getToJsonSchemaFn2 = async () => {
+ const { JSONSchema } = await tryImport(import("effect"), "effect");
+ return (schema2) => JSONSchema.make(schema2);
+ };
+ }
+});
+
+// ../node_modules/.pnpm/xsschema@0.3.5_arktype@2.1.25_effect@3.16.12_zod-to-json-schema@3.24.6_zod@3.25.76__zod@3.25.76/node_modules/xsschema/dist/sury-s6Akl-oc.js
+var sury_s6Akl_oc_exports = {};
+__export(sury_s6Akl_oc_exports, {
+ getToJsonSchemaFn: () => getToJsonSchemaFn3
+});
+var getToJsonSchemaFn3;
+var init_sury_s6Akl_oc = __esm({
+ "../node_modules/.pnpm/xsschema@0.3.5_arktype@2.1.25_effect@3.16.12_zod-to-json-schema@3.24.6_zod@3.25.76__zod@3.25.76/node_modules/xsschema/dist/sury-s6Akl-oc.js"() {
+ init_index_CAcLDIRJ();
+ getToJsonSchemaFn3 = async () => {
+ const { toJSONSchema: toJSONSchema2 } = await tryImport(import("sury"), "sury");
+ return (schema2) => toJSONSchema2(schema2);
+ };
+ }
+});
+
+// ../node_modules/.pnpm/xsschema@0.3.5_arktype@2.1.25_effect@3.16.12_zod-to-json-schema@3.24.6_zod@3.25.76__zod@3.25.76/node_modules/xsschema/dist/valibot-DBCeetIe.js
+var valibot_DBCeetIe_exports = {};
+__export(valibot_DBCeetIe_exports, {
+ getToJsonSchemaFn: () => getToJsonSchemaFn4
+});
+var getToJsonSchemaFn4;
+var init_valibot_DBCeetIe = __esm({
+ "../node_modules/.pnpm/xsschema@0.3.5_arktype@2.1.25_effect@3.16.12_zod-to-json-schema@3.24.6_zod@3.25.76__zod@3.25.76/node_modules/xsschema/dist/valibot-DBCeetIe.js"() {
+ init_index_CAcLDIRJ();
+ getToJsonSchemaFn4 = async () => {
+ const { toJsonSchema: toJsonSchema2 } = await tryImport(import("@valibot/to-json-schema"), "@valibot/to-json-schema");
+ return (schema2) => toJsonSchema2(schema2);
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/core.js
+// @__NO_SIDE_EFFECTS__
+function $constructor(name, initializer2, params) {
+ function init(inst, def) {
+ var _a;
+ Object.defineProperty(inst, "_zod", {
+ value: inst._zod ?? {},
+ enumerable: false
+ });
+ (_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
+ inst._zod.traits.add(name);
+ initializer2(inst, def);
+ for (const k in _.prototype) {
+ if (!(k in inst))
+ Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });
+ }
+ inst._zod.constr = _;
+ inst._zod.def = def;
+ }
+ const Parent = params?.Parent ?? Object;
+ class Definition extends Parent {
+ }
+ Object.defineProperty(Definition, "name", { value: name });
+ function _(def) {
+ var _a;
+ const inst = params?.Parent ? new Definition() : this;
+ init(inst, def);
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
+ for (const fn2 of inst._zod.deferred) {
+ fn2();
+ }
+ return inst;
+ }
+ Object.defineProperty(_, "init", { value: init });
+ Object.defineProperty(_, Symbol.hasInstance, {
+ value: (inst) => {
+ if (params?.Parent && inst instanceof params.Parent)
+ return true;
+ return inst?._zod?.traits?.has(name);
+ }
+ });
+ Object.defineProperty(_, "name", { value: name });
+ return _;
+}
+function config(newConfig) {
+ if (newConfig)
+ Object.assign(globalConfig, newConfig);
+ return globalConfig;
+}
+var NEVER4, $brand, $ZodAsyncError, globalConfig;
+var init_core = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/core.js"() {
+ NEVER4 = Object.freeze({
+ status: "aborted"
+ });
+ $brand = Symbol("zod_brand");
+ $ZodAsyncError = class extends Error {
+ constructor() {
+ super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
+ }
+ };
+ globalConfig = {};
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/util.js
+var util_exports = {};
+__export(util_exports, {
+ BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
+ Class: () => Class,
+ NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
+ aborted: () => aborted,
+ allowsEval: () => allowsEval,
+ assert: () => assert,
+ assertEqual: () => assertEqual,
+ assertIs: () => assertIs,
+ assertNever: () => assertNever,
+ assertNotEqual: () => assertNotEqual,
+ assignProp: () => assignProp,
+ cached: () => cached2,
+ captureStackTrace: () => captureStackTrace,
+ cleanEnum: () => cleanEnum,
+ cleanRegex: () => cleanRegex,
+ clone: () => clone,
+ createTransparentProxy: () => createTransparentProxy,
+ defineLazy: () => defineLazy,
+ esc: () => esc,
+ escapeRegex: () => escapeRegex,
+ extend: () => extend,
+ finalizeIssue: () => finalizeIssue,
+ floatSafeRemainder: () => floatSafeRemainder4,
+ getElementAtPath: () => getElementAtPath,
+ getEnumValues: () => getEnumValues,
+ getLengthableOrigin: () => getLengthableOrigin,
+ getParsedType: () => getParsedType4,
+ getSizableOrigin: () => getSizableOrigin,
+ isObject: () => isObject3,
+ isPlainObject: () => isPlainObject2,
+ issue: () => issue,
+ joinValues: () => joinValues,
+ jsonStringifyReplacer: () => jsonStringifyReplacer,
+ merge: () => merge,
+ normalizeParams: () => normalizeParams,
+ nullish: () => nullish,
+ numKeys: () => numKeys,
+ omit: () => omit2,
+ optionalKeys: () => optionalKeys,
+ partial: () => partial,
+ pick: () => pick,
+ prefixIssues: () => prefixIssues,
+ primitiveTypes: () => primitiveTypes,
+ promiseAllObject: () => promiseAllObject,
+ propertyKeyTypes: () => propertyKeyTypes,
+ randomString: () => randomString,
+ required: () => required,
+ stringifyPrimitive: () => stringifyPrimitive,
+ unwrapMessage: () => unwrapMessage
+});
+function assertEqual(val) {
+ return val;
+}
+function assertNotEqual(val) {
+ return val;
+}
+function assertIs(_arg) {
+}
+function assertNever(_x) {
+ throw new Error();
+}
+function assert(_) {
+}
+function getEnumValues(entries) {
+ const numericValues = Object.values(entries).filter((v) => typeof v === "number");
+ const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
+ return values;
+}
+function joinValues(array, separator2 = "|") {
+ return array.map((val) => stringifyPrimitive(val)).join(separator2);
+}
+function jsonStringifyReplacer(_, value2) {
+ if (typeof value2 === "bigint")
+ return value2.toString();
+ return value2;
+}
+function cached2(getter) {
+ const set = false;
+ return {
+ get value() {
+ if (!set) {
+ const value2 = getter();
+ Object.defineProperty(this, "value", { value: value2 });
+ return value2;
+ }
+ throw new Error("cached value already set");
+ }
+ };
+}
+function nullish(input) {
+ return input === null || input === void 0;
+}
+function cleanRegex(source) {
+ const start = source.startsWith("^") ? 1 : 0;
+ const end = source.endsWith("$") ? source.length - 1 : source.length;
+ return source.slice(start, end);
+}
+function floatSafeRemainder4(val, step) {
+ const valDecCount = (val.toString().split(".")[1] || "").length;
+ const stepDecCount = (step.toString().split(".")[1] || "").length;
+ const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
+ const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
+ const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
+ return valInt % stepInt / 10 ** decCount;
+}
+function defineLazy(object2, key, getter) {
+ const set = false;
+ Object.defineProperty(object2, key, {
+ get() {
+ if (!set) {
+ const value2 = getter();
+ object2[key] = value2;
+ return value2;
+ }
+ throw new Error("cached value already set");
+ },
+ set(v) {
+ Object.defineProperty(object2, key, {
+ value: v
+ // configurable: true,
+ });
+ },
+ configurable: true
+ });
+}
+function assignProp(target, prop, value2) {
+ Object.defineProperty(target, prop, {
+ value: value2,
+ writable: true,
+ enumerable: true,
+ configurable: true
+ });
+}
+function getElementAtPath(obj, path3) {
+ if (!path3)
+ return obj;
+ return path3.reduce((acc, key) => acc?.[key], obj);
+}
+function promiseAllObject(promisesObj) {
+ const keys = Object.keys(promisesObj);
+ const promises = keys.map((key) => promisesObj[key]);
+ return Promise.all(promises).then((results) => {
+ const resolvedObj = {};
+ for (let i = 0; i < keys.length; i++) {
+ resolvedObj[keys[i]] = results[i];
+ }
+ return resolvedObj;
+ });
+}
+function randomString(length = 10) {
+ const chars = "abcdefghijklmnopqrstuvwxyz";
+ let str = "";
+ for (let i = 0; i < length; i++) {
+ str += chars[Math.floor(Math.random() * chars.length)];
+ }
+ return str;
+}
+function esc(str) {
+ return JSON.stringify(str);
+}
+function isObject3(data) {
+ return typeof data === "object" && data !== null && !Array.isArray(data);
+}
+function isPlainObject2(o) {
+ if (isObject3(o) === false)
+ return false;
+ const ctor = o.constructor;
+ if (ctor === void 0)
+ return true;
+ const prot = ctor.prototype;
+ if (isObject3(prot) === false)
+ return false;
+ if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) {
+ return false;
+ }
+ return true;
+}
+function numKeys(data) {
+ let keyCount = 0;
+ for (const key in data) {
+ if (Object.prototype.hasOwnProperty.call(data, key)) {
+ keyCount++;
+ }
+ }
+ return keyCount;
+}
+function escapeRegex(str) {
+ return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+}
+function clone(inst, def, params) {
+ const cl = new inst._zod.constr(def ?? inst._zod.def);
+ if (!def || params?.parent)
+ cl._zod.parent = inst;
+ return cl;
+}
+function normalizeParams(_params) {
+ const params = _params;
+ if (!params)
+ return {};
+ if (typeof params === "string")
+ return { error: () => params };
+ if (params?.message !== void 0) {
+ if (params?.error !== void 0)
+ throw new Error("Cannot specify both `message` and `error` params");
+ params.error = params.message;
+ }
+ delete params.message;
+ if (typeof params.error === "string")
+ return { ...params, error: () => params.error };
+ return params;
+}
+function createTransparentProxy(getter) {
+ let target;
+ return new Proxy({}, {
+ get(_, prop, receiver) {
+ target ?? (target = getter());
+ return Reflect.get(target, prop, receiver);
+ },
+ set(_, prop, value2, receiver) {
+ target ?? (target = getter());
+ return Reflect.set(target, prop, value2, receiver);
+ },
+ has(_, prop) {
+ target ?? (target = getter());
+ return Reflect.has(target, prop);
+ },
+ deleteProperty(_, prop) {
+ target ?? (target = getter());
+ return Reflect.deleteProperty(target, prop);
+ },
+ ownKeys(_) {
+ target ?? (target = getter());
+ return Reflect.ownKeys(target);
+ },
+ getOwnPropertyDescriptor(_, prop) {
+ target ?? (target = getter());
+ return Reflect.getOwnPropertyDescriptor(target, prop);
+ },
+ defineProperty(_, prop, descriptor) {
+ target ?? (target = getter());
+ return Reflect.defineProperty(target, prop, descriptor);
+ }
+ });
+}
+function stringifyPrimitive(value2) {
+ if (typeof value2 === "bigint")
+ return value2.toString() + "n";
+ if (typeof value2 === "string")
+ return `"${value2}"`;
+ return `${value2}`;
+}
+function optionalKeys(shape) {
+ return Object.keys(shape).filter((k) => {
+ return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
+ });
+}
+function pick(schema2, mask) {
+ const newShape = {};
+ const currDef = schema2._zod.def;
+ for (const key in mask) {
+ if (!(key in currDef.shape)) {
+ throw new Error(`Unrecognized key: "${key}"`);
+ }
+ if (!mask[key])
+ continue;
+ newShape[key] = currDef.shape[key];
+ }
+ return clone(schema2, {
+ ...schema2._zod.def,
+ shape: newShape,
+ checks: []
+ });
+}
+function omit2(schema2, mask) {
+ const newShape = { ...schema2._zod.def.shape };
+ const currDef = schema2._zod.def;
+ for (const key in mask) {
+ if (!(key in currDef.shape)) {
+ throw new Error(`Unrecognized key: "${key}"`);
+ }
+ if (!mask[key])
+ continue;
+ delete newShape[key];
+ }
+ return clone(schema2, {
+ ...schema2._zod.def,
+ shape: newShape,
+ checks: []
+ });
+}
+function extend(schema2, shape) {
+ if (!isPlainObject2(shape)) {
+ throw new Error("Invalid input to extend: expected a plain object");
+ }
+ const def = {
+ ...schema2._zod.def,
+ get shape() {
+ const _shape = { ...schema2._zod.def.shape, ...shape };
+ assignProp(this, "shape", _shape);
+ return _shape;
+ },
+ checks: []
+ // delete existing checks
+ };
+ return clone(schema2, def);
+}
+function merge(a, b) {
+ return clone(a, {
+ ...a._zod.def,
+ get shape() {
+ const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
+ assignProp(this, "shape", _shape);
+ return _shape;
+ },
+ catchall: b._zod.def.catchall,
+ checks: []
+ // delete existing checks
+ });
+}
+function partial(Class2, schema2, mask) {
+ const oldShape = schema2._zod.def.shape;
+ const shape = { ...oldShape };
+ if (mask) {
+ for (const key in mask) {
+ if (!(key in oldShape)) {
+ throw new Error(`Unrecognized key: "${key}"`);
+ }
+ if (!mask[key])
+ continue;
+ shape[key] = Class2 ? new Class2({
+ type: "optional",
+ innerType: oldShape[key]
+ }) : oldShape[key];
+ }
+ } else {
+ for (const key in oldShape) {
+ shape[key] = Class2 ? new Class2({
+ type: "optional",
+ innerType: oldShape[key]
+ }) : oldShape[key];
+ }
+ }
+ return clone(schema2, {
+ ...schema2._zod.def,
+ shape,
+ checks: []
+ });
+}
+function required(Class2, schema2, mask) {
+ const oldShape = schema2._zod.def.shape;
+ const shape = { ...oldShape };
+ if (mask) {
+ for (const key in mask) {
+ if (!(key in shape)) {
+ throw new Error(`Unrecognized key: "${key}"`);
+ }
+ if (!mask[key])
+ continue;
+ shape[key] = new Class2({
+ type: "nonoptional",
+ innerType: oldShape[key]
+ });
+ }
+ } else {
+ for (const key in oldShape) {
+ shape[key] = new Class2({
+ type: "nonoptional",
+ innerType: oldShape[key]
+ });
+ }
+ }
+ return clone(schema2, {
+ ...schema2._zod.def,
+ shape,
+ // optional: [],
+ checks: []
+ });
+}
+function aborted(x, startIndex = 0) {
+ for (let i = startIndex; i < x.issues.length; i++) {
+ if (x.issues[i]?.continue !== true)
+ return true;
+ }
+ return false;
+}
+function prefixIssues(path3, issues) {
+ return issues.map((iss) => {
+ var _a;
+ (_a = iss).path ?? (_a.path = []);
+ iss.path.unshift(path3);
+ return iss;
+ });
+}
+function unwrapMessage(message) {
+ return typeof message === "string" ? message : message?.message;
+}
+function finalizeIssue(iss, ctx, config2) {
+ const full = { ...iss, path: iss.path ?? [] };
+ if (!iss.message) {
+ const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
+ full.message = message;
+ }
+ delete full.inst;
+ delete full.continue;
+ if (!ctx?.reportInput) {
+ delete full.input;
+ }
+ return full;
+}
+function getSizableOrigin(input) {
+ if (input instanceof Set)
+ return "set";
+ if (input instanceof Map)
+ return "map";
+ if (input instanceof File)
+ return "file";
+ return "unknown";
+}
+function getLengthableOrigin(input) {
+ if (Array.isArray(input))
+ return "array";
+ if (typeof input === "string")
+ return "string";
+ return "unknown";
+}
+function issue(...args2) {
+ const [iss, input, inst] = args2;
+ if (typeof iss === "string") {
+ return {
+ message: iss,
+ code: "custom",
+ input,
+ inst
+ };
+ }
+ return { ...iss };
+}
+function cleanEnum(obj) {
+ return Object.entries(obj).filter(([k, _]) => {
+ return Number.isNaN(Number.parseInt(k, 10));
+ }).map((el) => el[1]);
+}
+var captureStackTrace, allowsEval, getParsedType4, propertyKeyTypes, primitiveTypes, NUMBER_FORMAT_RANGES, BIGINT_FORMAT_RANGES, Class;
+var init_util2 = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/util.js"() {
+ captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {
+ };
+ allowsEval = cached2(() => {
+ if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
+ return false;
+ }
+ try {
+ const F = Function;
+ new F("");
+ return true;
+ } catch (_) {
+ return false;
+ }
+ });
+ getParsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "undefined":
+ return "undefined";
+ case "string":
+ return "string";
+ case "number":
+ return Number.isNaN(data) ? "nan" : "number";
+ case "boolean":
+ return "boolean";
+ case "function":
+ return "function";
+ case "bigint":
+ return "bigint";
+ case "symbol":
+ return "symbol";
+ case "object":
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
+ return "promise";
+ }
+ if (typeof Map !== "undefined" && data instanceof Map) {
+ return "map";
+ }
+ if (typeof Set !== "undefined" && data instanceof Set) {
+ return "set";
+ }
+ if (typeof Date !== "undefined" && data instanceof Date) {
+ return "date";
+ }
+ if (typeof File !== "undefined" && data instanceof File) {
+ return "file";
+ }
+ return "object";
+ default:
+ throw new Error(`Unknown data type: ${t}`);
+ }
+ };
+ propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
+ primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
+ NUMBER_FORMAT_RANGES = {
+ safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
+ int32: [-2147483648, 2147483647],
+ uint32: [0, 4294967295],
+ float32: [-34028234663852886e22, 34028234663852886e22],
+ float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
+ };
+ BIGINT_FORMAT_RANGES = {
+ int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
+ uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
+ };
+ Class = class {
+ constructor(..._args) {
+ }
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/errors.js
+function flattenError2(error41, mapper = (issue2) => issue2.message) {
+ const fieldErrors = {};
+ const formErrors = [];
+ for (const sub of error41.issues) {
+ if (sub.path.length > 0) {
+ fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
+ fieldErrors[sub.path[0]].push(mapper(sub));
+ } else {
+ formErrors.push(mapper(sub));
+ }
+ }
+ return { formErrors, fieldErrors };
+}
+function formatError(error41, _mapper) {
+ const mapper = _mapper || function(issue2) {
+ return issue2.message;
+ };
+ const fieldErrors = { _errors: [] };
+ const processError = (error42) => {
+ for (const issue2 of error42.issues) {
+ if (issue2.code === "invalid_union" && issue2.errors.length) {
+ issue2.errors.map((issues) => processError({ issues }));
+ } else if (issue2.code === "invalid_key") {
+ processError({ issues: issue2.issues });
+ } else if (issue2.code === "invalid_element") {
+ processError({ issues: issue2.issues });
+ } else if (issue2.path.length === 0) {
+ fieldErrors._errors.push(mapper(issue2));
+ } else {
+ let curr = fieldErrors;
+ let i = 0;
+ while (i < issue2.path.length) {
+ const el = issue2.path[i];
+ const terminal = i === issue2.path.length - 1;
+ if (!terminal) {
+ curr[el] = curr[el] || { _errors: [] };
+ } else {
+ curr[el] = curr[el] || { _errors: [] };
+ curr[el]._errors.push(mapper(issue2));
+ }
+ curr = curr[el];
+ i++;
+ }
+ }
+ }
+ };
+ processError(error41);
+ return fieldErrors;
+}
+function treeifyError(error41, _mapper) {
+ const mapper = _mapper || function(issue2) {
+ return issue2.message;
+ };
+ const result = { errors: [] };
+ const processError = (error42, path3 = []) => {
+ var _a, _b;
+ for (const issue2 of error42.issues) {
+ if (issue2.code === "invalid_union" && issue2.errors.length) {
+ issue2.errors.map((issues) => processError({ issues }, issue2.path));
+ } else if (issue2.code === "invalid_key") {
+ processError({ issues: issue2.issues }, issue2.path);
+ } else if (issue2.code === "invalid_element") {
+ processError({ issues: issue2.issues }, issue2.path);
+ } else {
+ const fullpath = [...path3, ...issue2.path];
+ if (fullpath.length === 0) {
+ result.errors.push(mapper(issue2));
+ continue;
+ }
+ let curr = result;
+ let i = 0;
+ while (i < fullpath.length) {
+ const el = fullpath[i];
+ const terminal = i === fullpath.length - 1;
+ if (typeof el === "string") {
+ curr.properties ?? (curr.properties = {});
+ (_a = curr.properties)[el] ?? (_a[el] = { errors: [] });
+ curr = curr.properties[el];
+ } else {
+ curr.items ?? (curr.items = []);
+ (_b = curr.items)[el] ?? (_b[el] = { errors: [] });
+ curr = curr.items[el];
+ }
+ if (terminal) {
+ curr.errors.push(mapper(issue2));
+ }
+ i++;
+ }
+ }
+ }
+ };
+ processError(error41);
+ return result;
+}
+function toDotPath(path3) {
+ const segs = [];
+ for (const seg of path3) {
+ if (typeof seg === "number")
+ segs.push(`[${seg}]`);
+ else if (typeof seg === "symbol")
+ segs.push(`[${JSON.stringify(String(seg))}]`);
+ else if (/[^\w$]/.test(seg))
+ segs.push(`[${JSON.stringify(seg)}]`);
+ else {
+ if (segs.length)
+ segs.push(".");
+ segs.push(seg);
+ }
+ }
+ return segs.join("");
+}
+function prettifyError(error41) {
+ const lines = [];
+ const issues = [...error41.issues].sort((a, b) => a.path.length - b.path.length);
+ for (const issue2 of issues) {
+ lines.push(`\u2716 ${issue2.message}`);
+ if (issue2.path?.length)
+ lines.push(` \u2192 at ${toDotPath(issue2.path)}`);
+ }
+ return lines.join("\n");
+}
+var initializer, $ZodError, $ZodRealError;
+var init_errors2 = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/errors.js"() {
+ init_core();
+ init_util2();
+ initializer = (inst, def) => {
+ inst.name = "$ZodError";
+ Object.defineProperty(inst, "_zod", {
+ value: inst._zod,
+ enumerable: false
+ });
+ Object.defineProperty(inst, "issues", {
+ value: def,
+ enumerable: false
+ });
+ Object.defineProperty(inst, "message", {
+ get() {
+ return JSON.stringify(def, jsonStringifyReplacer, 2);
+ },
+ enumerable: true
+ // configurable: false,
+ });
+ Object.defineProperty(inst, "toString", {
+ value: () => inst.message,
+ enumerable: false
+ });
+ };
+ $ZodError = $constructor("$ZodError", initializer);
+ $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/parse.js
+var _parse, parse2, _parseAsync, parseAsync, _safeParse, safeParse, _safeParseAsync, safeParseAsync;
+var init_parse = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/parse.js"() {
+ init_core();
+ init_errors2();
+ init_util2();
+ _parse = (_Err) => (schema2, value2, _ctx, _params) => {
+ const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
+ const result = schema2._zod.run({ value: value2, issues: [] }, ctx);
+ if (result instanceof Promise) {
+ throw new $ZodAsyncError();
+ }
+ if (result.issues.length) {
+ const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
+ captureStackTrace(e, _params?.callee);
+ throw e;
+ }
+ return result.value;
+ };
+ parse2 = /* @__PURE__ */ _parse($ZodRealError);
+ _parseAsync = (_Err) => async (schema2, value2, _ctx, params) => {
+ const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
+ let result = schema2._zod.run({ value: value2, issues: [] }, ctx);
+ if (result instanceof Promise)
+ result = await result;
+ if (result.issues.length) {
+ const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
+ captureStackTrace(e, params?.callee);
+ throw e;
+ }
+ return result.value;
+ };
+ parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
+ _safeParse = (_Err) => (schema2, value2, _ctx) => {
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
+ const result = schema2._zod.run({ value: value2, issues: [] }, ctx);
+ if (result instanceof Promise) {
+ throw new $ZodAsyncError();
+ }
+ return result.issues.length ? {
+ success: false,
+ error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
+ } : { success: true, data: result.value };
+ };
+ safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
+ _safeParseAsync = (_Err) => async (schema2, value2, _ctx) => {
+ const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
+ let result = schema2._zod.run({ value: value2, issues: [] }, ctx);
+ if (result instanceof Promise)
+ result = await result;
+ return result.issues.length ? {
+ success: false,
+ error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
+ } : { success: true, data: result.value };
+ };
+ safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/regexes.js
+var regexes_exports = {};
+__export(regexes_exports, {
+ _emoji: () => _emoji,
+ base64: () => base642,
+ base64url: () => base64url,
+ bigint: () => bigint,
+ boolean: () => boolean,
+ browserEmail: () => browserEmail,
+ cidrv4: () => cidrv4,
+ cidrv6: () => cidrv6,
+ cuid: () => cuid,
+ cuid2: () => cuid2,
+ date: () => date,
+ datetime: () => datetime,
+ domain: () => domain,
+ duration: () => duration,
+ e164: () => e164,
+ email: () => email2,
+ emoji: () => emoji,
+ extendedDuration: () => extendedDuration,
+ guid: () => guid,
+ hostname: () => hostname,
+ html5Email: () => html5Email,
+ integer: () => integer2,
+ ipv4: () => ipv4,
+ ipv6: () => ipv6,
+ ksuid: () => ksuid,
+ lowercase: () => lowercase,
+ nanoid: () => nanoid,
+ null: () => _null,
+ number: () => number2,
+ rfc5322Email: () => rfc5322Email,
+ string: () => string2,
+ time: () => time,
+ ulid: () => ulid,
+ undefined: () => _undefined,
+ unicodeEmail: () => unicodeEmail,
+ uppercase: () => uppercase,
+ uuid: () => uuid2,
+ uuid4: () => uuid4,
+ uuid6: () => uuid6,
+ uuid7: () => uuid7,
+ xid: () => xid
+});
+function emoji() {
+ return new RegExp(_emoji, "u");
+}
+function timeSource(args2) {
+ const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
+ const regex3 = typeof args2.precision === "number" ? args2.precision === -1 ? `${hhmm}` : args2.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args2.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
+ return regex3;
+}
+function time(args2) {
+ return new RegExp(`^${timeSource(args2)}$`);
+}
+function datetime(args2) {
+ const time2 = timeSource({ precision: args2.precision });
+ const opts = ["Z"];
+ if (args2.local)
+ opts.push("");
+ if (args2.offset)
+ opts.push(`([+-]\\d{2}:\\d{2})`);
+ const timeRegex4 = `${time2}(?:${opts.join("|")})`;
+ return new RegExp(`^${dateSource}T(?:${timeRegex4})$`);
+}
+var cuid, cuid2, ulid, xid, ksuid, nanoid, duration, extendedDuration, guid, uuid2, uuid4, uuid6, uuid7, email2, html5Email, rfc5322Email, unicodeEmail, browserEmail, _emoji, ipv4, ipv6, cidrv4, cidrv6, base642, base64url, hostname, domain, e164, dateSource, date, string2, bigint, integer2, number2, boolean, _null, _undefined, lowercase, uppercase;
+var init_regexes = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/regexes.js"() {
+ cuid = /^[cC][^\s-]{8,}$/;
+ cuid2 = /^[0-9a-z]+$/;
+ ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
+ xid = /^[0-9a-vA-V]{20}$/;
+ ksuid = /^[A-Za-z0-9]{27}$/;
+ nanoid = /^[a-zA-Z0-9_-]{21}$/;
+ duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
+ extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
+ guid = /^([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})$/;
+ uuid2 = (version2) => {
+ if (!version2)
+ return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;
+ return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version2}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
+ };
+ uuid4 = /* @__PURE__ */ uuid2(4);
+ uuid6 = /* @__PURE__ */ uuid2(6);
+ uuid7 = /* @__PURE__ */ uuid2(7);
+ email2 = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
+ html5Email = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
+ rfc5322Email = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
+ unicodeEmail = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u;
+ browserEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
+ _emoji = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
+ ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
+ ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/;
+ cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
+ cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
+ base642 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
+ base64url = /^[A-Za-z0-9_-]*$/;
+ hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
+ domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
+ e164 = /^\+(?:[0-9]){6,14}[0-9]$/;
+ dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
+ date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
+ string2 = (params) => {
+ const regex3 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
+ return new RegExp(`^${regex3}$`);
+ };
+ bigint = /^\d+n?$/;
+ integer2 = /^\d+$/;
+ number2 = /^-?\d+(?:\.\d+)?/i;
+ boolean = /true|false/i;
+ _null = /null/i;
+ _undefined = /undefined/i;
+ lowercase = /^[^A-Z]*$/;
+ uppercase = /^[^a-z]*$/;
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/checks.js
+function handleCheckPropertyResult(result, payload, property) {
+ if (result.issues.length) {
+ payload.issues.push(...prefixIssues(property, result.issues));
+ }
+}
+var $ZodCheck, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckBigIntFormat, $ZodCheckMaxSize, $ZodCheckMinSize, $ZodCheckSizeEquals, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckLengthEquals, $ZodCheckStringFormat, $ZodCheckRegex, $ZodCheckLowerCase, $ZodCheckUpperCase, $ZodCheckIncludes, $ZodCheckStartsWith, $ZodCheckEndsWith, $ZodCheckProperty, $ZodCheckMimeType, $ZodCheckOverwrite;
+var init_checks = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/checks.js"() {
+ init_core();
+ init_regexes();
+ init_util2();
+ $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
+ var _a;
+ inst._zod ?? (inst._zod = {});
+ inst._zod.def = def;
+ (_a = inst._zod).onattach ?? (_a.onattach = []);
+ });
+ numericOriginMap = {
+ number: "number",
+ bigint: "bigint",
+ object: "date"
+ };
+ $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def) => {
+ $ZodCheck.init(inst, def);
+ const origin = numericOriginMap[typeof def.value];
+ inst._zod.onattach.push((inst2) => {
+ const bag = inst2._zod.bag;
+ const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
+ if (def.value < curr) {
+ if (def.inclusive)
+ bag.maximum = def.value;
+ else
+ bag.exclusiveMaximum = def.value;
+ }
+ });
+ inst._zod.check = (payload) => {
+ if (def.inclusive ? payload.value <= def.value : payload.value < def.value) {
+ return;
+ }
+ payload.issues.push({
+ origin,
+ code: "too_big",
+ maximum: def.value,
+ input: payload.value,
+ inclusive: def.inclusive,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def) => {
+ $ZodCheck.init(inst, def);
+ const origin = numericOriginMap[typeof def.value];
+ inst._zod.onattach.push((inst2) => {
+ const bag = inst2._zod.bag;
+ const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
+ if (def.value > curr) {
+ if (def.inclusive)
+ bag.minimum = def.value;
+ else
+ bag.exclusiveMinimum = def.value;
+ }
+ });
+ inst._zod.check = (payload) => {
+ if (def.inclusive ? payload.value >= def.value : payload.value > def.value) {
+ return;
+ }
+ payload.issues.push({
+ origin,
+ code: "too_small",
+ minimum: def.value,
+ input: payload.value,
+ inclusive: def.inclusive,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
+ $ZodCheck.init(inst, def);
+ inst._zod.onattach.push((inst2) => {
+ var _a;
+ (_a = inst2._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
+ });
+ inst._zod.check = (payload) => {
+ if (typeof payload.value !== typeof def.value)
+ throw new Error("Cannot mix number and bigint in multiple_of check.");
+ const isMultiple = typeof payload.value === "bigint" ? payload.value % def.value === BigInt(0) : floatSafeRemainder4(payload.value, def.value) === 0;
+ if (isMultiple)
+ return;
+ payload.issues.push({
+ origin: typeof payload.value,
+ code: "not_multiple_of",
+ divisor: def.value,
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat", (inst, def) => {
+ $ZodCheck.init(inst, def);
+ def.format = def.format || "float64";
+ const isInt = def.format?.includes("int");
+ const origin = isInt ? "int" : "number";
+ const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];
+ inst._zod.onattach.push((inst2) => {
+ const bag = inst2._zod.bag;
+ bag.format = def.format;
+ bag.minimum = minimum;
+ bag.maximum = maximum;
+ if (isInt)
+ bag.pattern = integer2;
+ });
+ inst._zod.check = (payload) => {
+ const input = payload.value;
+ if (isInt) {
+ if (!Number.isInteger(input)) {
+ payload.issues.push({
+ expected: origin,
+ format: def.format,
+ code: "invalid_type",
+ input,
+ inst
+ });
+ return;
+ }
+ if (!Number.isSafeInteger(input)) {
+ if (input > 0) {
+ payload.issues.push({
+ input,
+ code: "too_big",
+ maximum: Number.MAX_SAFE_INTEGER,
+ note: "Integers must be within the safe integer range.",
+ inst,
+ origin,
+ continue: !def.abort
+ });
+ } else {
+ payload.issues.push({
+ input,
+ code: "too_small",
+ minimum: Number.MIN_SAFE_INTEGER,
+ note: "Integers must be within the safe integer range.",
+ inst,
+ origin,
+ continue: !def.abort
+ });
+ }
+ return;
+ }
+ }
+ if (input < minimum) {
+ payload.issues.push({
+ origin: "number",
+ input,
+ code: "too_small",
+ minimum,
+ inclusive: true,
+ inst,
+ continue: !def.abort
+ });
+ }
+ if (input > maximum) {
+ payload.issues.push({
+ origin: "number",
+ input,
+ code: "too_big",
+ maximum,
+ inst
+ });
+ }
+ };
+ });
+ $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat", (inst, def) => {
+ $ZodCheck.init(inst, def);
+ const [minimum, maximum] = BIGINT_FORMAT_RANGES[def.format];
+ inst._zod.onattach.push((inst2) => {
+ const bag = inst2._zod.bag;
+ bag.format = def.format;
+ bag.minimum = minimum;
+ bag.maximum = maximum;
+ });
+ inst._zod.check = (payload) => {
+ const input = payload.value;
+ if (input < minimum) {
+ payload.issues.push({
+ origin: "bigint",
+ input,
+ code: "too_small",
+ minimum,
+ inclusive: true,
+ inst,
+ continue: !def.abort
+ });
+ }
+ if (input > maximum) {
+ payload.issues.push({
+ origin: "bigint",
+ input,
+ code: "too_big",
+ maximum,
+ inst
+ });
+ }
+ };
+ });
+ $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
+ var _a;
+ $ZodCheck.init(inst, def);
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
+ const val = payload.value;
+ return !nullish(val) && val.size !== void 0;
+ });
+ inst._zod.onattach.push((inst2) => {
+ const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
+ if (def.maximum < curr)
+ inst2._zod.bag.maximum = def.maximum;
+ });
+ inst._zod.check = (payload) => {
+ const input = payload.value;
+ const size = input.size;
+ if (size <= def.maximum)
+ return;
+ payload.issues.push({
+ origin: getSizableOrigin(input),
+ code: "too_big",
+ maximum: def.maximum,
+ input,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
+ var _a;
+ $ZodCheck.init(inst, def);
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
+ const val = payload.value;
+ return !nullish(val) && val.size !== void 0;
+ });
+ inst._zod.onattach.push((inst2) => {
+ const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
+ if (def.minimum > curr)
+ inst2._zod.bag.minimum = def.minimum;
+ });
+ inst._zod.check = (payload) => {
+ const input = payload.value;
+ const size = input.size;
+ if (size >= def.minimum)
+ return;
+ payload.issues.push({
+ origin: getSizableOrigin(input),
+ code: "too_small",
+ minimum: def.minimum,
+ input,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
+ var _a;
+ $ZodCheck.init(inst, def);
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
+ const val = payload.value;
+ return !nullish(val) && val.size !== void 0;
+ });
+ inst._zod.onattach.push((inst2) => {
+ const bag = inst2._zod.bag;
+ bag.minimum = def.size;
+ bag.maximum = def.size;
+ bag.size = def.size;
+ });
+ inst._zod.check = (payload) => {
+ const input = payload.value;
+ const size = input.size;
+ if (size === def.size)
+ return;
+ const tooBig = size > def.size;
+ payload.issues.push({
+ origin: getSizableOrigin(input),
+ ...tooBig ? { code: "too_big", maximum: def.size } : { code: "too_small", minimum: def.size },
+ inclusive: true,
+ exact: true,
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
+ var _a;
+ $ZodCheck.init(inst, def);
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
+ const val = payload.value;
+ return !nullish(val) && val.length !== void 0;
+ });
+ inst._zod.onattach.push((inst2) => {
+ const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
+ if (def.maximum < curr)
+ inst2._zod.bag.maximum = def.maximum;
+ });
+ inst._zod.check = (payload) => {
+ const input = payload.value;
+ const length = input.length;
+ if (length <= def.maximum)
+ return;
+ const origin = getLengthableOrigin(input);
+ payload.issues.push({
+ origin,
+ code: "too_big",
+ maximum: def.maximum,
+ inclusive: true,
+ input,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
+ var _a;
+ $ZodCheck.init(inst, def);
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
+ const val = payload.value;
+ return !nullish(val) && val.length !== void 0;
+ });
+ inst._zod.onattach.push((inst2) => {
+ const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
+ if (def.minimum > curr)
+ inst2._zod.bag.minimum = def.minimum;
+ });
+ inst._zod.check = (payload) => {
+ const input = payload.value;
+ const length = input.length;
+ if (length >= def.minimum)
+ return;
+ const origin = getLengthableOrigin(input);
+ payload.issues.push({
+ origin,
+ code: "too_small",
+ minimum: def.minimum,
+ inclusive: true,
+ input,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
+ var _a;
+ $ZodCheck.init(inst, def);
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
+ const val = payload.value;
+ return !nullish(val) && val.length !== void 0;
+ });
+ inst._zod.onattach.push((inst2) => {
+ const bag = inst2._zod.bag;
+ bag.minimum = def.length;
+ bag.maximum = def.length;
+ bag.length = def.length;
+ });
+ inst._zod.check = (payload) => {
+ const input = payload.value;
+ const length = input.length;
+ if (length === def.length)
+ return;
+ const origin = getLengthableOrigin(input);
+ const tooBig = length > def.length;
+ payload.issues.push({
+ origin,
+ ...tooBig ? { code: "too_big", maximum: def.length } : { code: "too_small", minimum: def.length },
+ inclusive: true,
+ exact: true,
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
+ var _a, _b;
+ $ZodCheck.init(inst, def);
+ inst._zod.onattach.push((inst2) => {
+ const bag = inst2._zod.bag;
+ bag.format = def.format;
+ if (def.pattern) {
+ bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
+ bag.patterns.add(def.pattern);
+ }
+ });
+ if (def.pattern)
+ (_a = inst._zod).check ?? (_a.check = (payload) => {
+ def.pattern.lastIndex = 0;
+ if (def.pattern.test(payload.value))
+ return;
+ payload.issues.push({
+ origin: "string",
+ code: "invalid_format",
+ format: def.format,
+ input: payload.value,
+ ...def.pattern ? { pattern: def.pattern.toString() } : {},
+ inst,
+ continue: !def.abort
+ });
+ });
+ else
+ (_b = inst._zod).check ?? (_b.check = () => {
+ });
+ });
+ $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
+ $ZodCheckStringFormat.init(inst, def);
+ inst._zod.check = (payload) => {
+ def.pattern.lastIndex = 0;
+ if (def.pattern.test(payload.value))
+ return;
+ payload.issues.push({
+ origin: "string",
+ code: "invalid_format",
+ format: "regex",
+ input: payload.value,
+ pattern: def.pattern.toString(),
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckLowerCase = /* @__PURE__ */ $constructor("$ZodCheckLowerCase", (inst, def) => {
+ def.pattern ?? (def.pattern = lowercase);
+ $ZodCheckStringFormat.init(inst, def);
+ });
+ $ZodCheckUpperCase = /* @__PURE__ */ $constructor("$ZodCheckUpperCase", (inst, def) => {
+ def.pattern ?? (def.pattern = uppercase);
+ $ZodCheckStringFormat.init(inst, def);
+ });
+ $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst, def) => {
+ $ZodCheck.init(inst, def);
+ const escapedRegex = escapeRegex(def.includes);
+ const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
+ def.pattern = pattern;
+ inst._zod.onattach.push((inst2) => {
+ const bag = inst2._zod.bag;
+ bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
+ bag.patterns.add(pattern);
+ });
+ inst._zod.check = (payload) => {
+ if (payload.value.includes(def.includes, def.position))
+ return;
+ payload.issues.push({
+ origin: "string",
+ code: "invalid_format",
+ format: "includes",
+ includes: def.includes,
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => {
+ $ZodCheck.init(inst, def);
+ const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
+ def.pattern ?? (def.pattern = pattern);
+ inst._zod.onattach.push((inst2) => {
+ const bag = inst2._zod.bag;
+ bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
+ bag.patterns.add(pattern);
+ });
+ inst._zod.check = (payload) => {
+ if (payload.value.startsWith(def.prefix))
+ return;
+ payload.issues.push({
+ origin: "string",
+ code: "invalid_format",
+ format: "starts_with",
+ prefix: def.prefix,
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => {
+ $ZodCheck.init(inst, def);
+ const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
+ def.pattern ?? (def.pattern = pattern);
+ inst._zod.onattach.push((inst2) => {
+ const bag = inst2._zod.bag;
+ bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
+ bag.patterns.add(pattern);
+ });
+ inst._zod.check = (payload) => {
+ if (payload.value.endsWith(def.suffix))
+ return;
+ payload.issues.push({
+ origin: "string",
+ code: "invalid_format",
+ format: "ends_with",
+ suffix: def.suffix,
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCheckProperty = /* @__PURE__ */ $constructor("$ZodCheckProperty", (inst, def) => {
+ $ZodCheck.init(inst, def);
+ inst._zod.check = (payload) => {
+ const result = def.schema._zod.run({
+ value: payload.value[def.property],
+ issues: []
+ }, {});
+ if (result instanceof Promise) {
+ return result.then((result2) => handleCheckPropertyResult(result2, payload, def.property));
+ }
+ handleCheckPropertyResult(result, payload, def.property);
+ return;
+ };
+ });
+ $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (inst, def) => {
+ $ZodCheck.init(inst, def);
+ const mimeSet = new Set(def.mime);
+ inst._zod.onattach.push((inst2) => {
+ inst2._zod.bag.mime = def.mime;
+ });
+ inst._zod.check = (payload) => {
+ if (mimeSet.has(payload.value.type))
+ return;
+ payload.issues.push({
+ code: "invalid_value",
+ values: def.mime,
+ input: payload.value.type,
+ inst
+ });
+ };
+ });
+ $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def) => {
+ $ZodCheck.init(inst, def);
+ inst._zod.check = (payload) => {
+ payload.value = def.tx(payload.value);
+ };
+ });
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/doc.js
+var Doc;
+var init_doc = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/doc.js"() {
+ Doc = class {
+ constructor(args2 = []) {
+ this.content = [];
+ this.indent = 0;
+ if (this)
+ this.args = args2;
+ }
+ indented(fn2) {
+ this.indent += 1;
+ fn2(this);
+ this.indent -= 1;
+ }
+ write(arg) {
+ if (typeof arg === "function") {
+ arg(this, { execution: "sync" });
+ arg(this, { execution: "async" });
+ return;
+ }
+ const content = arg;
+ const lines = content.split("\n").filter((x) => x);
+ const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));
+ const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x);
+ for (const line of dedented) {
+ this.content.push(line);
+ }
+ }
+ compile() {
+ const F = Function;
+ const args2 = this?.args;
+ const content = this?.content ?? [``];
+ const lines = [...content.map((x) => ` ${x}`)];
+ return new F(...args2, lines.join("\n"));
+ }
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/versions.js
+var version;
+var init_versions = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/versions.js"() {
+ version = {
+ major: 4,
+ minor: 0,
+ patch: 0
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/schemas.js
+function isValidBase64(data) {
+ if (data === "")
+ return true;
+ if (data.length % 4 !== 0)
+ return false;
+ try {
+ atob(data);
+ return true;
+ } catch {
+ return false;
+ }
+}
+function isValidBase64URL(data) {
+ if (!base64url.test(data))
+ return false;
+ const base643 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
+ const padded = base643.padEnd(Math.ceil(base643.length / 4) * 4, "=");
+ return isValidBase64(padded);
+}
+function isValidJWT4(token, algorithm = null) {
+ try {
+ const tokensParts = token.split(".");
+ if (tokensParts.length !== 3)
+ return false;
+ const [header] = tokensParts;
+ if (!header)
+ return false;
+ const parsedHeader = JSON.parse(atob(header));
+ if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
+ return false;
+ if (!parsedHeader.alg)
+ return false;
+ if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))
+ return false;
+ return true;
+ } catch {
+ return false;
+ }
+}
+function handleArrayResult(result, final, index) {
+ if (result.issues.length) {
+ final.issues.push(...prefixIssues(index, result.issues));
+ }
+ final.value[index] = result.value;
+}
+function handleObjectResult(result, final, key) {
+ if (result.issues.length) {
+ final.issues.push(...prefixIssues(key, result.issues));
+ }
+ final.value[key] = result.value;
+}
+function handleOptionalObjectResult(result, final, key, input) {
+ if (result.issues.length) {
+ if (input[key] === void 0) {
+ if (key in input) {
+ final.value[key] = void 0;
+ } else {
+ final.value[key] = result.value;
+ }
+ } else {
+ final.issues.push(...prefixIssues(key, result.issues));
+ }
+ } else if (result.value === void 0) {
+ if (key in input)
+ final.value[key] = void 0;
+ } else {
+ final.value[key] = result.value;
+ }
+}
+function handleUnionResults(results, final, inst, ctx) {
+ for (const result of results) {
+ if (result.issues.length === 0) {
+ final.value = result.value;
+ return final;
+ }
+ }
+ final.issues.push({
+ code: "invalid_union",
+ input: final.value,
+ inst,
+ errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
+ });
+ return final;
+}
+function mergeValues4(a, b) {
+ if (a === b) {
+ return { valid: true, data: a };
+ }
+ if (a instanceof Date && b instanceof Date && +a === +b) {
+ return { valid: true, data: a };
+ }
+ if (isPlainObject2(a) && isPlainObject2(b)) {
+ const bKeys = Object.keys(b);
+ const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
+ const newObj = { ...a, ...b };
+ for (const key of sharedKeys) {
+ const sharedValue = mergeValues4(a[key], b[key]);
+ if (!sharedValue.valid) {
+ return {
+ valid: false,
+ mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
+ };
+ }
+ newObj[key] = sharedValue.data;
+ }
+ return { valid: true, data: newObj };
+ }
+ if (Array.isArray(a) && Array.isArray(b)) {
+ if (a.length !== b.length) {
+ return { valid: false, mergeErrorPath: [] };
+ }
+ const newArray = [];
+ for (let index = 0; index < a.length; index++) {
+ const itemA = a[index];
+ const itemB = b[index];
+ const sharedValue = mergeValues4(itemA, itemB);
+ if (!sharedValue.valid) {
+ return {
+ valid: false,
+ mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
+ };
+ }
+ newArray.push(sharedValue.data);
+ }
+ return { valid: true, data: newArray };
+ }
+ return { valid: false, mergeErrorPath: [] };
+}
+function handleIntersectionResults(result, left, right) {
+ if (left.issues.length) {
+ result.issues.push(...left.issues);
+ }
+ if (right.issues.length) {
+ result.issues.push(...right.issues);
+ }
+ if (aborted(result))
+ return result;
+ const merged = mergeValues4(left.value, right.value);
+ if (!merged.valid) {
+ throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
+ }
+ result.value = merged.data;
+ return result;
+}
+function handleTupleResult(result, final, index) {
+ if (result.issues.length) {
+ final.issues.push(...prefixIssues(index, result.issues));
+ }
+ final.value[index] = result.value;
+}
+function handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {
+ if (keyResult.issues.length) {
+ if (propertyKeyTypes.has(typeof key)) {
+ final.issues.push(...prefixIssues(key, keyResult.issues));
+ } else {
+ final.issues.push({
+ origin: "map",
+ code: "invalid_key",
+ input,
+ inst,
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config()))
+ });
+ }
+ }
+ if (valueResult.issues.length) {
+ if (propertyKeyTypes.has(typeof key)) {
+ final.issues.push(...prefixIssues(key, valueResult.issues));
+ } else {
+ final.issues.push({
+ origin: "map",
+ code: "invalid_element",
+ input,
+ inst,
+ key,
+ issues: valueResult.issues.map((iss) => finalizeIssue(iss, ctx, config()))
+ });
+ }
+ }
+ final.value.set(keyResult.value, valueResult.value);
+}
+function handleSetResult(result, final) {
+ if (result.issues.length) {
+ final.issues.push(...result.issues);
+ }
+ final.value.add(result.value);
+}
+function handleDefaultResult(payload, def) {
+ if (payload.value === void 0) {
+ payload.value = def.defaultValue;
+ }
+ return payload;
+}
+function handleNonOptionalResult(payload, inst) {
+ if (!payload.issues.length && payload.value === void 0) {
+ payload.issues.push({
+ code: "invalid_type",
+ expected: "nonoptional",
+ input: payload.value,
+ inst
+ });
+ }
+ return payload;
+}
+function handlePipeResult(left, def, ctx) {
+ if (aborted(left)) {
+ return left;
+ }
+ return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
+}
+function handleReadonlyResult(payload) {
+ payload.value = Object.freeze(payload.value);
+ return payload;
+}
+function handleRefineResult(result, payload, input, inst) {
+ if (!result) {
+ const _iss = {
+ code: "custom",
+ input,
+ inst,
+ // incorporates params.error into issue reporting
+ path: [...inst._zod.def.path ?? []],
+ // incorporates params.error into issue reporting
+ continue: !inst._zod.def.abort
+ // params: inst._zod.def.params,
+ };
+ if (inst._zod.def.params)
+ _iss.params = inst._zod.def.params;
+ payload.issues.push(issue(_iss));
+ }
+}
+var $ZodType, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, $ZodIPv6, $ZodCIDRv4, $ZodCIDRv6, $ZodBase64, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodCustomStringFormat, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodBigInt, $ZodBigIntFormat, $ZodSymbol, $ZodUndefined, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodVoid, $ZodDate, $ZodArray, $ZodObject, $ZodUnion, $ZodDiscriminatedUnion, $ZodIntersection, $ZodTuple, $ZodRecord, $ZodMap, $ZodSet, $ZodEnum, $ZodLiteral, $ZodFile, $ZodTransform, $ZodOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodSuccess, $ZodCatch, $ZodNaN, $ZodPipe, $ZodReadonly, $ZodTemplateLiteral, $ZodPromise, $ZodLazy, $ZodCustom;
+var init_schemas = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/schemas.js"() {
+ init_checks();
+ init_core();
+ init_doc();
+ init_parse();
+ init_regexes();
+ init_util2();
+ init_versions();
+ init_util2();
+ $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
+ var _a;
+ inst ?? (inst = {});
+ inst._zod.def = def;
+ inst._zod.bag = inst._zod.bag || {};
+ inst._zod.version = version;
+ const checks = [...inst._zod.def.checks ?? []];
+ if (inst._zod.traits.has("$ZodCheck")) {
+ checks.unshift(inst);
+ }
+ for (const ch of checks) {
+ for (const fn2 of ch._zod.onattach) {
+ fn2(inst);
+ }
+ }
+ if (checks.length === 0) {
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
+ inst._zod.deferred?.push(() => {
+ inst._zod.run = inst._zod.parse;
+ });
+ } else {
+ const runChecks = (payload, checks2, ctx) => {
+ let isAborted4 = aborted(payload);
+ let asyncResult;
+ for (const ch of checks2) {
+ if (ch._zod.def.when) {
+ const shouldRun = ch._zod.def.when(payload);
+ if (!shouldRun)
+ continue;
+ } else if (isAborted4) {
+ continue;
+ }
+ const currLen = payload.issues.length;
+ const _ = ch._zod.check(payload);
+ if (_ instanceof Promise && ctx?.async === false) {
+ throw new $ZodAsyncError();
+ }
+ if (asyncResult || _ instanceof Promise) {
+ asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
+ await _;
+ const nextLen = payload.issues.length;
+ if (nextLen === currLen)
+ return;
+ if (!isAborted4)
+ isAborted4 = aborted(payload, currLen);
+ });
+ } else {
+ const nextLen = payload.issues.length;
+ if (nextLen === currLen)
+ continue;
+ if (!isAborted4)
+ isAborted4 = aborted(payload, currLen);
+ }
+ }
+ if (asyncResult) {
+ return asyncResult.then(() => {
+ return payload;
+ });
+ }
+ return payload;
+ };
+ inst._zod.run = (payload, ctx) => {
+ const result = inst._zod.parse(payload, ctx);
+ if (result instanceof Promise) {
+ if (ctx.async === false)
+ throw new $ZodAsyncError();
+ return result.then((result2) => runChecks(result2, checks, ctx));
+ }
+ return runChecks(result, checks, ctx);
+ };
+ }
+ inst["~standard"] = {
+ validate: (value2) => {
+ try {
+ const r = safeParse(inst, value2);
+ return r.success ? { value: r.data } : { issues: r.error?.issues };
+ } catch (_) {
+ return safeParseAsync(inst, value2).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });
+ }
+ },
+ vendor: "zod",
+ version: 1
+ };
+ });
+ $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string2(inst._zod.bag);
+ inst._zod.parse = (payload, _) => {
+ if (def.coerce)
+ try {
+ payload.value = String(payload.value);
+ } catch (_2) {
+ }
+ if (typeof payload.value === "string")
+ return payload;
+ payload.issues.push({
+ expected: "string",
+ code: "invalid_type",
+ input: payload.value,
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, def) => {
+ $ZodCheckStringFormat.init(inst, def);
+ $ZodString.init(inst, def);
+ });
+ $ZodGUID = /* @__PURE__ */ $constructor("$ZodGUID", (inst, def) => {
+ def.pattern ?? (def.pattern = guid);
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
+ if (def.version) {
+ const versionMap = {
+ v1: 1,
+ v2: 2,
+ v3: 3,
+ v4: 4,
+ v5: 5,
+ v6: 6,
+ v7: 7,
+ v8: 8
+ };
+ const v = versionMap[def.version];
+ if (v === void 0)
+ throw new Error(`Invalid UUID version: "${def.version}"`);
+ def.pattern ?? (def.pattern = uuid2(v));
+ } else
+ def.pattern ?? (def.pattern = uuid2());
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {
+ def.pattern ?? (def.pattern = email2);
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
+ $ZodStringFormat.init(inst, def);
+ inst._zod.check = (payload) => {
+ try {
+ const orig = payload.value;
+ const url2 = new URL(orig);
+ const href = url2.href;
+ if (def.hostname) {
+ def.hostname.lastIndex = 0;
+ if (!def.hostname.test(url2.hostname)) {
+ payload.issues.push({
+ code: "invalid_format",
+ format: "url",
+ note: "Invalid hostname",
+ pattern: hostname.source,
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ }
+ }
+ if (def.protocol) {
+ def.protocol.lastIndex = 0;
+ if (!def.protocol.test(url2.protocol.endsWith(":") ? url2.protocol.slice(0, -1) : url2.protocol)) {
+ payload.issues.push({
+ code: "invalid_format",
+ format: "url",
+ note: "Invalid protocol",
+ pattern: def.protocol.source,
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ }
+ }
+ if (!orig.endsWith("/") && href.endsWith("/")) {
+ payload.value = href.slice(0, -1);
+ } else {
+ payload.value = href;
+ }
+ return;
+ } catch (_) {
+ payload.issues.push({
+ code: "invalid_format",
+ format: "url",
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ }
+ };
+ });
+ $ZodEmoji = /* @__PURE__ */ $constructor("$ZodEmoji", (inst, def) => {
+ def.pattern ?? (def.pattern = emoji());
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
+ def.pattern ?? (def.pattern = nanoid);
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {
+ def.pattern ?? (def.pattern = cuid);
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => {
+ def.pattern ?? (def.pattern = cuid2);
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => {
+ def.pattern ?? (def.pattern = ulid);
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => {
+ def.pattern ?? (def.pattern = xid);
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {
+ def.pattern ?? (def.pattern = ksuid);
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {
+ def.pattern ?? (def.pattern = datetime(def));
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
+ def.pattern ?? (def.pattern = date);
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
+ def.pattern ?? (def.pattern = time(def));
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {
+ def.pattern ?? (def.pattern = duration);
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
+ def.pattern ?? (def.pattern = ipv4);
+ $ZodStringFormat.init(inst, def);
+ inst._zod.onattach.push((inst2) => {
+ const bag = inst2._zod.bag;
+ bag.format = `ipv4`;
+ });
+ });
+ $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
+ def.pattern ?? (def.pattern = ipv6);
+ $ZodStringFormat.init(inst, def);
+ inst._zod.onattach.push((inst2) => {
+ const bag = inst2._zod.bag;
+ bag.format = `ipv6`;
+ });
+ inst._zod.check = (payload) => {
+ try {
+ new URL(`http://[${payload.value}]`);
+ } catch {
+ payload.issues.push({
+ code: "invalid_format",
+ format: "ipv6",
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ }
+ };
+ });
+ $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
+ def.pattern ?? (def.pattern = cidrv4);
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
+ def.pattern ?? (def.pattern = cidrv6);
+ $ZodStringFormat.init(inst, def);
+ inst._zod.check = (payload) => {
+ const [address, prefix] = payload.value.split("/");
+ try {
+ if (!prefix)
+ throw new Error();
+ const prefixNum = Number(prefix);
+ if (`${prefixNum}` !== prefix)
+ throw new Error();
+ if (prefixNum < 0 || prefixNum > 128)
+ throw new Error();
+ new URL(`http://[${address}]`);
+ } catch {
+ payload.issues.push({
+ code: "invalid_format",
+ format: "cidrv6",
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ }
+ };
+ });
+ $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
+ def.pattern ?? (def.pattern = base642);
+ $ZodStringFormat.init(inst, def);
+ inst._zod.onattach.push((inst2) => {
+ inst2._zod.bag.contentEncoding = "base64";
+ });
+ inst._zod.check = (payload) => {
+ if (isValidBase64(payload.value))
+ return;
+ payload.issues.push({
+ code: "invalid_format",
+ format: "base64",
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
+ def.pattern ?? (def.pattern = base64url);
+ $ZodStringFormat.init(inst, def);
+ inst._zod.onattach.push((inst2) => {
+ inst2._zod.bag.contentEncoding = "base64url";
+ });
+ inst._zod.check = (payload) => {
+ if (isValidBase64URL(payload.value))
+ return;
+ payload.issues.push({
+ code: "invalid_format",
+ format: "base64url",
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => {
+ def.pattern ?? (def.pattern = e164);
+ $ZodStringFormat.init(inst, def);
+ });
+ $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
+ $ZodStringFormat.init(inst, def);
+ inst._zod.check = (payload) => {
+ if (isValidJWT4(payload.value, def.alg))
+ return;
+ payload.issues.push({
+ code: "invalid_format",
+ format: "jwt",
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFormat", (inst, def) => {
+ $ZodStringFormat.init(inst, def);
+ inst._zod.check = (payload) => {
+ if (def.fn(payload.value))
+ return;
+ payload.issues.push({
+ code: "invalid_format",
+ format: def.format,
+ input: payload.value,
+ inst,
+ continue: !def.abort
+ });
+ };
+ });
+ $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.pattern = inst._zod.bag.pattern ?? number2;
+ inst._zod.parse = (payload, _ctx) => {
+ if (def.coerce)
+ try {
+ payload.value = Number(payload.value);
+ } catch (_) {
+ }
+ const input = payload.value;
+ if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) {
+ return payload;
+ }
+ const received = typeof input === "number" ? Number.isNaN(input) ? "NaN" : !Number.isFinite(input) ? "Infinity" : void 0 : void 0;
+ payload.issues.push({
+ expected: "number",
+ code: "invalid_type",
+ input,
+ inst,
+ ...received ? { received } : {}
+ });
+ return payload;
+ };
+ });
+ $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
+ $ZodCheckNumberFormat.init(inst, def);
+ $ZodNumber.init(inst, def);
+ });
+ $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.pattern = boolean;
+ inst._zod.parse = (payload, _ctx) => {
+ if (def.coerce)
+ try {
+ payload.value = Boolean(payload.value);
+ } catch (_) {
+ }
+ const input = payload.value;
+ if (typeof input === "boolean")
+ return payload;
+ payload.issues.push({
+ expected: "boolean",
+ code: "invalid_type",
+ input,
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.pattern = bigint;
+ inst._zod.parse = (payload, _ctx) => {
+ if (def.coerce)
+ try {
+ payload.value = BigInt(payload.value);
+ } catch (_) {
+ }
+ if (typeof payload.value === "bigint")
+ return payload;
+ payload.issues.push({
+ expected: "bigint",
+ code: "invalid_type",
+ input: payload.value,
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
+ $ZodCheckBigIntFormat.init(inst, def);
+ $ZodBigInt.init(inst, def);
+ });
+ $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, _ctx) => {
+ const input = payload.value;
+ if (typeof input === "symbol")
+ return payload;
+ payload.issues.push({
+ expected: "symbol",
+ code: "invalid_type",
+ input,
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.pattern = _undefined;
+ inst._zod.values = /* @__PURE__ */ new Set([void 0]);
+ inst._zod.optin = "optional";
+ inst._zod.optout = "optional";
+ inst._zod.parse = (payload, _ctx) => {
+ const input = payload.value;
+ if (typeof input === "undefined")
+ return payload;
+ payload.issues.push({
+ expected: "undefined",
+ code: "invalid_type",
+ input,
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.pattern = _null;
+ inst._zod.values = /* @__PURE__ */ new Set([null]);
+ inst._zod.parse = (payload, _ctx) => {
+ const input = payload.value;
+ if (input === null)
+ return payload;
+ payload.issues.push({
+ expected: "null",
+ code: "invalid_type",
+ input,
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodAny = /* @__PURE__ */ $constructor("$ZodAny", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload) => payload;
+ });
+ $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload) => payload;
+ });
+ $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, _ctx) => {
+ payload.issues.push({
+ expected: "never",
+ code: "invalid_type",
+ input: payload.value,
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, _ctx) => {
+ const input = payload.value;
+ if (typeof input === "undefined")
+ return payload;
+ payload.issues.push({
+ expected: "void",
+ code: "invalid_type",
+ input,
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, _ctx) => {
+ if (def.coerce) {
+ try {
+ payload.value = new Date(payload.value);
+ } catch (_err) {
+ }
+ }
+ const input = payload.value;
+ const isDate = input instanceof Date;
+ const isValidDate2 = isDate && !Number.isNaN(input.getTime());
+ if (isValidDate2)
+ return payload;
+ payload.issues.push({
+ expected: "date",
+ code: "invalid_type",
+ input,
+ ...isDate ? { received: "Invalid Date" } : {},
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, ctx) => {
+ const input = payload.value;
+ if (!Array.isArray(input)) {
+ payload.issues.push({
+ expected: "array",
+ code: "invalid_type",
+ input,
+ inst
+ });
+ return payload;
+ }
+ payload.value = Array(input.length);
+ const proms = [];
+ for (let i = 0; i < input.length; i++) {
+ const item = input[i];
+ const result = def.element._zod.run({
+ value: item,
+ issues: []
+ }, ctx);
+ if (result instanceof Promise) {
+ proms.push(result.then((result2) => handleArrayResult(result2, payload, i)));
+ } else {
+ handleArrayResult(result, payload, i);
+ }
+ }
+ if (proms.length) {
+ return Promise.all(proms).then(() => payload);
+ }
+ return payload;
+ };
+ });
+ $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
+ $ZodType.init(inst, def);
+ const _normalized = cached2(() => {
+ const keys = Object.keys(def.shape);
+ for (const k of keys) {
+ if (!(def.shape[k] instanceof $ZodType)) {
+ throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
+ }
+ }
+ const okeys = optionalKeys(def.shape);
+ return {
+ shape: def.shape,
+ keys,
+ keySet: new Set(keys),
+ numKeys: keys.length,
+ optionalKeys: new Set(okeys)
+ };
+ });
+ defineLazy(inst._zod, "propValues", () => {
+ const shape = def.shape;
+ const propValues = {};
+ for (const key in shape) {
+ const field = shape[key]._zod;
+ if (field.values) {
+ propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
+ for (const v of field.values)
+ propValues[key].add(v);
+ }
+ }
+ return propValues;
+ });
+ const generateFastpass = (shape) => {
+ const doc = new Doc(["shape", "payload", "ctx"]);
+ const normalized = _normalized.value;
+ const parseStr = (key) => {
+ const k = esc(key);
+ return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
+ };
+ doc.write(`const input = payload.value;`);
+ const ids = /* @__PURE__ */ Object.create(null);
+ let counter = 0;
+ for (const key of normalized.keys) {
+ ids[key] = `key_${counter++}`;
+ }
+ doc.write(`const newResult = {}`);
+ for (const key of normalized.keys) {
+ if (normalized.optionalKeys.has(key)) {
+ const id = ids[key];
+ doc.write(`const ${id} = ${parseStr(key)};`);
+ const k = esc(key);
+ doc.write(`
+ if (${id}.issues.length) {
+ if (input[${k}] === undefined) {
+ if (${k} in input) {
+ newResult[${k}] = undefined;
+ }
+ } else {
+ payload.issues = payload.issues.concat(
+ ${id}.issues.map((iss) => ({
+ ...iss,
+ path: iss.path ? [${k}, ...iss.path] : [${k}],
+ }))
+ );
+ }
+ } else if (${id}.value === undefined) {
+ if (${k} in input) newResult[${k}] = undefined;
+ } else {
+ newResult[${k}] = ${id}.value;
+ }
+ `);
+ } else {
+ const id = ids[key];
+ doc.write(`const ${id} = ${parseStr(key)};`);
+ doc.write(`
+ if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
+ ...iss,
+ path: iss.path ? [${esc(key)}, ...iss.path] : [${esc(key)}]
+ })));`);
+ doc.write(`newResult[${esc(key)}] = ${id}.value`);
+ }
+ }
+ doc.write(`payload.value = newResult;`);
+ doc.write(`return payload;`);
+ const fn2 = doc.compile();
+ return (payload, ctx) => fn2(shape, payload, ctx);
+ };
+ let fastpass;
+ const isObject4 = isObject3;
+ const jit = !globalConfig.jitless;
+ const allowsEval2 = allowsEval;
+ const fastEnabled = jit && allowsEval2.value;
+ const catchall = def.catchall;
+ let value2;
+ inst._zod.parse = (payload, ctx) => {
+ value2 ?? (value2 = _normalized.value);
+ const input = payload.value;
+ if (!isObject4(input)) {
+ payload.issues.push({
+ expected: "object",
+ code: "invalid_type",
+ input,
+ inst
+ });
+ return payload;
+ }
+ const proms = [];
+ if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
+ if (!fastpass)
+ fastpass = generateFastpass(def.shape);
+ payload = fastpass(payload, ctx);
+ } else {
+ payload.value = {};
+ const shape = value2.shape;
+ for (const key of value2.keys) {
+ const el = shape[key];
+ const r = el._zod.run({ value: input[key], issues: [] }, ctx);
+ const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
+ if (r instanceof Promise) {
+ proms.push(r.then((r2) => isOptional ? handleOptionalObjectResult(r2, payload, key, input) : handleObjectResult(r2, payload, key)));
+ } else if (isOptional) {
+ handleOptionalObjectResult(r, payload, key, input);
+ } else {
+ handleObjectResult(r, payload, key);
+ }
+ }
+ }
+ if (!catchall) {
+ return proms.length ? Promise.all(proms).then(() => payload) : payload;
+ }
+ const unrecognized = [];
+ const keySet = value2.keySet;
+ const _catchall = catchall._zod;
+ const t = _catchall.def.type;
+ for (const key of Object.keys(input)) {
+ if (keySet.has(key))
+ continue;
+ if (t === "never") {
+ unrecognized.push(key);
+ continue;
+ }
+ const r = _catchall.run({ value: input[key], issues: [] }, ctx);
+ if (r instanceof Promise) {
+ proms.push(r.then((r2) => handleObjectResult(r2, payload, key)));
+ } else {
+ handleObjectResult(r, payload, key);
+ }
+ }
+ if (unrecognized.length) {
+ payload.issues.push({
+ code: "unrecognized_keys",
+ keys: unrecognized,
+ input,
+ inst
+ });
+ }
+ if (!proms.length)
+ return payload;
+ return Promise.all(proms).then(() => {
+ return payload;
+ });
+ };
+ });
+ $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
+ $ZodType.init(inst, def);
+ defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
+ defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
+ defineLazy(inst._zod, "values", () => {
+ if (def.options.every((o) => o._zod.values)) {
+ return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
+ }
+ return void 0;
+ });
+ defineLazy(inst._zod, "pattern", () => {
+ if (def.options.every((o) => o._zod.pattern)) {
+ const patterns = def.options.map((o) => o._zod.pattern);
+ return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
+ }
+ return void 0;
+ });
+ inst._zod.parse = (payload, ctx) => {
+ let async = false;
+ const results = [];
+ for (const option of def.options) {
+ const result = option._zod.run({
+ value: payload.value,
+ issues: []
+ }, ctx);
+ if (result instanceof Promise) {
+ results.push(result);
+ async = true;
+ } else {
+ if (result.issues.length === 0)
+ return result;
+ results.push(result);
+ }
+ }
+ if (!async)
+ return handleUnionResults(results, payload, inst, ctx);
+ return Promise.all(results).then((results2) => {
+ return handleUnionResults(results2, payload, inst, ctx);
+ });
+ };
+ });
+ $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
+ $ZodUnion.init(inst, def);
+ const _super = inst._zod.parse;
+ defineLazy(inst._zod, "propValues", () => {
+ const propValues = {};
+ for (const option of def.options) {
+ const pv = option._zod.propValues;
+ if (!pv || Object.keys(pv).length === 0)
+ throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
+ for (const [k, v] of Object.entries(pv)) {
+ if (!propValues[k])
+ propValues[k] = /* @__PURE__ */ new Set();
+ for (const val of v) {
+ propValues[k].add(val);
+ }
+ }
+ }
+ return propValues;
+ });
+ const disc = cached2(() => {
+ const opts = def.options;
+ const map = /* @__PURE__ */ new Map();
+ for (const o of opts) {
+ const values = o._zod.propValues[def.discriminator];
+ if (!values || values.size === 0)
+ throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
+ for (const v of values) {
+ if (map.has(v)) {
+ throw new Error(`Duplicate discriminator value "${String(v)}"`);
+ }
+ map.set(v, o);
+ }
+ }
+ return map;
+ });
+ inst._zod.parse = (payload, ctx) => {
+ const input = payload.value;
+ if (!isObject3(input)) {
+ payload.issues.push({
+ code: "invalid_type",
+ expected: "object",
+ input,
+ inst
+ });
+ return payload;
+ }
+ const opt = disc.value.get(input?.[def.discriminator]);
+ if (opt) {
+ return opt._zod.run(payload, ctx);
+ }
+ if (def.unionFallback) {
+ return _super(payload, ctx);
+ }
+ payload.issues.push({
+ code: "invalid_union",
+ errors: [],
+ note: "No matching discriminator",
+ input,
+ path: [def.discriminator],
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, ctx) => {
+ const input = payload.value;
+ const left = def.left._zod.run({ value: input, issues: [] }, ctx);
+ const right = def.right._zod.run({ value: input, issues: [] }, ctx);
+ const async = left instanceof Promise || right instanceof Promise;
+ if (async) {
+ return Promise.all([left, right]).then(([left2, right2]) => {
+ return handleIntersectionResults(payload, left2, right2);
+ });
+ }
+ return handleIntersectionResults(payload, left, right);
+ };
+ });
+ $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
+ $ZodType.init(inst, def);
+ const items = def.items;
+ const optStart = items.length - [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
+ inst._zod.parse = (payload, ctx) => {
+ const input = payload.value;
+ if (!Array.isArray(input)) {
+ payload.issues.push({
+ input,
+ inst,
+ expected: "tuple",
+ code: "invalid_type"
+ });
+ return payload;
+ }
+ payload.value = [];
+ const proms = [];
+ if (!def.rest) {
+ const tooBig = input.length > items.length;
+ const tooSmall = input.length < optStart - 1;
+ if (tooBig || tooSmall) {
+ payload.issues.push({
+ input,
+ inst,
+ origin: "array",
+ ...tooBig ? { code: "too_big", maximum: items.length } : { code: "too_small", minimum: items.length }
+ });
+ return payload;
+ }
+ }
+ let i = -1;
+ for (const item of items) {
+ i++;
+ if (i >= input.length) {
+ if (i >= optStart)
+ continue;
+ }
+ const result = item._zod.run({
+ value: input[i],
+ issues: []
+ }, ctx);
+ if (result instanceof Promise) {
+ proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
+ } else {
+ handleTupleResult(result, payload, i);
+ }
+ }
+ if (def.rest) {
+ const rest = input.slice(items.length);
+ for (const el of rest) {
+ i++;
+ const result = def.rest._zod.run({
+ value: el,
+ issues: []
+ }, ctx);
+ if (result instanceof Promise) {
+ proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
+ } else {
+ handleTupleResult(result, payload, i);
+ }
+ }
+ }
+ if (proms.length)
+ return Promise.all(proms).then(() => payload);
+ return payload;
+ };
+ });
+ $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, ctx) => {
+ const input = payload.value;
+ if (!isPlainObject2(input)) {
+ payload.issues.push({
+ expected: "record",
+ code: "invalid_type",
+ input,
+ inst
+ });
+ return payload;
+ }
+ const proms = [];
+ if (def.keyType._zod.values) {
+ const values = def.keyType._zod.values;
+ payload.value = {};
+ for (const key of values) {
+ if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
+ const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
+ if (result instanceof Promise) {
+ proms.push(result.then((result2) => {
+ if (result2.issues.length) {
+ payload.issues.push(...prefixIssues(key, result2.issues));
+ }
+ payload.value[key] = result2.value;
+ }));
+ } else {
+ if (result.issues.length) {
+ payload.issues.push(...prefixIssues(key, result.issues));
+ }
+ payload.value[key] = result.value;
+ }
+ }
+ }
+ let unrecognized;
+ for (const key in input) {
+ if (!values.has(key)) {
+ unrecognized = unrecognized ?? [];
+ unrecognized.push(key);
+ }
+ }
+ if (unrecognized && unrecognized.length > 0) {
+ payload.issues.push({
+ code: "unrecognized_keys",
+ input,
+ inst,
+ keys: unrecognized
+ });
+ }
+ } else {
+ payload.value = {};
+ for (const key of Reflect.ownKeys(input)) {
+ if (key === "__proto__")
+ continue;
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
+ if (keyResult instanceof Promise) {
+ throw new Error("Async schemas not supported in object keys currently");
+ }
+ if (keyResult.issues.length) {
+ payload.issues.push({
+ origin: "record",
+ code: "invalid_key",
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
+ input: key,
+ path: [key],
+ inst
+ });
+ payload.value[keyResult.value] = keyResult.value;
+ continue;
+ }
+ const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
+ if (result instanceof Promise) {
+ proms.push(result.then((result2) => {
+ if (result2.issues.length) {
+ payload.issues.push(...prefixIssues(key, result2.issues));
+ }
+ payload.value[keyResult.value] = result2.value;
+ }));
+ } else {
+ if (result.issues.length) {
+ payload.issues.push(...prefixIssues(key, result.issues));
+ }
+ payload.value[keyResult.value] = result.value;
+ }
+ }
+ }
+ if (proms.length) {
+ return Promise.all(proms).then(() => payload);
+ }
+ return payload;
+ };
+ });
+ $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, ctx) => {
+ const input = payload.value;
+ if (!(input instanceof Map)) {
+ payload.issues.push({
+ expected: "map",
+ code: "invalid_type",
+ input,
+ inst
+ });
+ return payload;
+ }
+ const proms = [];
+ payload.value = /* @__PURE__ */ new Map();
+ for (const [key, value2] of input) {
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
+ const valueResult = def.valueType._zod.run({ value: value2, issues: [] }, ctx);
+ if (keyResult instanceof Promise || valueResult instanceof Promise) {
+ proms.push(Promise.all([keyResult, valueResult]).then(([keyResult2, valueResult2]) => {
+ handleMapResult(keyResult2, valueResult2, payload, key, input, inst, ctx);
+ }));
+ } else {
+ handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
+ }
+ }
+ if (proms.length)
+ return Promise.all(proms).then(() => payload);
+ return payload;
+ };
+ });
+ $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, ctx) => {
+ const input = payload.value;
+ if (!(input instanceof Set)) {
+ payload.issues.push({
+ input,
+ inst,
+ expected: "set",
+ code: "invalid_type"
+ });
+ return payload;
+ }
+ const proms = [];
+ payload.value = /* @__PURE__ */ new Set();
+ for (const item of input) {
+ const result = def.valueType._zod.run({ value: item, issues: [] }, ctx);
+ if (result instanceof Promise) {
+ proms.push(result.then((result2) => handleSetResult(result2, payload)));
+ } else
+ handleSetResult(result, payload);
+ }
+ if (proms.length)
+ return Promise.all(proms).then(() => payload);
+ return payload;
+ };
+ });
+ $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
+ $ZodType.init(inst, def);
+ const values = getEnumValues(def.entries);
+ inst._zod.values = new Set(values);
+ inst._zod.pattern = new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
+ inst._zod.parse = (payload, _ctx) => {
+ const input = payload.value;
+ if (inst._zod.values.has(input)) {
+ return payload;
+ }
+ payload.issues.push({
+ code: "invalid_value",
+ values,
+ input,
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.values = new Set(def.values);
+ inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? o.toString() : String(o)).join("|")})$`);
+ inst._zod.parse = (payload, _ctx) => {
+ const input = payload.value;
+ if (inst._zod.values.has(input)) {
+ return payload;
+ }
+ payload.issues.push({
+ code: "invalid_value",
+ values: def.values,
+ input,
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, _ctx) => {
+ const input = payload.value;
+ if (input instanceof File)
+ return payload;
+ payload.issues.push({
+ expected: "file",
+ code: "invalid_type",
+ input,
+ inst
+ });
+ return payload;
+ };
+ });
+ $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, _ctx) => {
+ const _out = def.transform(payload.value, payload);
+ if (_ctx.async) {
+ const output = _out instanceof Promise ? _out : Promise.resolve(_out);
+ return output.then((output2) => {
+ payload.value = output2;
+ return payload;
+ });
+ }
+ if (_out instanceof Promise) {
+ throw new $ZodAsyncError();
+ }
+ payload.value = _out;
+ return payload;
+ };
+ });
+ $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.optin = "optional";
+ inst._zod.optout = "optional";
+ defineLazy(inst._zod, "values", () => {
+ return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, void 0]) : void 0;
+ });
+ defineLazy(inst._zod, "pattern", () => {
+ const pattern = def.innerType._zod.pattern;
+ return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
+ });
+ inst._zod.parse = (payload, ctx) => {
+ if (def.innerType._zod.optin === "optional") {
+ return def.innerType._zod.run(payload, ctx);
+ }
+ if (payload.value === void 0) {
+ return payload;
+ }
+ return def.innerType._zod.run(payload, ctx);
+ };
+ });
+ $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => {
+ $ZodType.init(inst, def);
+ defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
+ defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
+ defineLazy(inst._zod, "pattern", () => {
+ const pattern = def.innerType._zod.pattern;
+ return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
+ });
+ defineLazy(inst._zod, "values", () => {
+ return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, null]) : void 0;
+ });
+ inst._zod.parse = (payload, ctx) => {
+ if (payload.value === null)
+ return payload;
+ return def.innerType._zod.run(payload, ctx);
+ };
+ });
+ $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.optin = "optional";
+ defineLazy(inst._zod, "values", () => def.innerType._zod.values);
+ inst._zod.parse = (payload, ctx) => {
+ if (payload.value === void 0) {
+ payload.value = def.defaultValue;
+ return payload;
+ }
+ const result = def.innerType._zod.run(payload, ctx);
+ if (result instanceof Promise) {
+ return result.then((result2) => handleDefaultResult(result2, def));
+ }
+ return handleDefaultResult(result, def);
+ };
+ });
+ $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.optin = "optional";
+ defineLazy(inst._zod, "values", () => def.innerType._zod.values);
+ inst._zod.parse = (payload, ctx) => {
+ if (payload.value === void 0) {
+ payload.value = def.defaultValue;
+ }
+ return def.innerType._zod.run(payload, ctx);
+ };
+ });
+ $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def) => {
+ $ZodType.init(inst, def);
+ defineLazy(inst._zod, "values", () => {
+ const v = def.innerType._zod.values;
+ return v ? new Set([...v].filter((x) => x !== void 0)) : void 0;
+ });
+ inst._zod.parse = (payload, ctx) => {
+ const result = def.innerType._zod.run(payload, ctx);
+ if (result instanceof Promise) {
+ return result.then((result2) => handleNonOptionalResult(result2, inst));
+ }
+ return handleNonOptionalResult(result, inst);
+ };
+ });
+ $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, ctx) => {
+ const result = def.innerType._zod.run(payload, ctx);
+ if (result instanceof Promise) {
+ return result.then((result2) => {
+ payload.value = result2.issues.length === 0;
+ return payload;
+ });
+ }
+ payload.value = result.issues.length === 0;
+ return payload;
+ };
+ });
+ $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.optin = "optional";
+ defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
+ defineLazy(inst._zod, "values", () => def.innerType._zod.values);
+ inst._zod.parse = (payload, ctx) => {
+ const result = def.innerType._zod.run(payload, ctx);
+ if (result instanceof Promise) {
+ return result.then((result2) => {
+ payload.value = result2.value;
+ if (result2.issues.length) {
+ payload.value = def.catchValue({
+ ...payload,
+ error: {
+ issues: result2.issues.map((iss) => finalizeIssue(iss, ctx, config()))
+ },
+ input: payload.value
+ });
+ payload.issues = [];
+ }
+ return payload;
+ });
+ }
+ payload.value = result.value;
+ if (result.issues.length) {
+ payload.value = def.catchValue({
+ ...payload,
+ error: {
+ issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
+ },
+ input: payload.value
+ });
+ payload.issues = [];
+ }
+ return payload;
+ };
+ });
+ $ZodNaN = /* @__PURE__ */ $constructor("$ZodNaN", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, _ctx) => {
+ if (typeof payload.value !== "number" || !Number.isNaN(payload.value)) {
+ payload.issues.push({
+ input: payload.value,
+ inst,
+ expected: "nan",
+ code: "invalid_type"
+ });
+ return payload;
+ }
+ return payload;
+ };
+ });
+ $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
+ $ZodType.init(inst, def);
+ defineLazy(inst._zod, "values", () => def.in._zod.values);
+ defineLazy(inst._zod, "optin", () => def.in._zod.optin);
+ defineLazy(inst._zod, "optout", () => def.out._zod.optout);
+ inst._zod.parse = (payload, ctx) => {
+ const left = def.in._zod.run(payload, ctx);
+ if (left instanceof Promise) {
+ return left.then((left2) => handlePipeResult(left2, def, ctx));
+ }
+ return handlePipeResult(left, def, ctx);
+ };
+ });
+ $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
+ $ZodType.init(inst, def);
+ defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
+ defineLazy(inst._zod, "values", () => def.innerType._zod.values);
+ defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
+ defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
+ inst._zod.parse = (payload, ctx) => {
+ const result = def.innerType._zod.run(payload, ctx);
+ if (result instanceof Promise) {
+ return result.then(handleReadonlyResult);
+ }
+ return handleReadonlyResult(result);
+ };
+ });
+ $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral", (inst, def) => {
+ $ZodType.init(inst, def);
+ const regexParts = [];
+ for (const part of def.parts) {
+ if (part instanceof $ZodType) {
+ if (!part._zod.pattern) {
+ throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
+ }
+ const source = part._zod.pattern instanceof RegExp ? part._zod.pattern.source : part._zod.pattern;
+ if (!source)
+ throw new Error(`Invalid template literal part: ${part._zod.traits}`);
+ const start = source.startsWith("^") ? 1 : 0;
+ const end = source.endsWith("$") ? source.length - 1 : source.length;
+ regexParts.push(source.slice(start, end));
+ } else if (part === null || primitiveTypes.has(typeof part)) {
+ regexParts.push(escapeRegex(`${part}`));
+ } else {
+ throw new Error(`Invalid template literal part: ${part}`);
+ }
+ }
+ inst._zod.pattern = new RegExp(`^${regexParts.join("")}$`);
+ inst._zod.parse = (payload, _ctx) => {
+ if (typeof payload.value !== "string") {
+ payload.issues.push({
+ input: payload.value,
+ inst,
+ expected: "template_literal",
+ code: "invalid_type"
+ });
+ return payload;
+ }
+ inst._zod.pattern.lastIndex = 0;
+ if (!inst._zod.pattern.test(payload.value)) {
+ payload.issues.push({
+ input: payload.value,
+ inst,
+ code: "invalid_format",
+ format: "template_literal",
+ pattern: inst._zod.pattern.source
+ });
+ return payload;
+ }
+ return payload;
+ };
+ });
+ $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, ctx) => {
+ return Promise.resolve(payload.value).then((inner) => def.innerType._zod.run({ value: inner, issues: [] }, ctx));
+ };
+ });
+ $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
+ $ZodType.init(inst, def);
+ defineLazy(inst._zod, "innerType", () => def.getter());
+ defineLazy(inst._zod, "pattern", () => inst._zod.innerType._zod.pattern);
+ defineLazy(inst._zod, "propValues", () => inst._zod.innerType._zod.propValues);
+ defineLazy(inst._zod, "optin", () => inst._zod.innerType._zod.optin);
+ defineLazy(inst._zod, "optout", () => inst._zod.innerType._zod.optout);
+ inst._zod.parse = (payload, ctx) => {
+ const inner = inst._zod.innerType;
+ return inner._zod.run(payload, ctx);
+ };
+ });
+ $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
+ $ZodCheck.init(inst, def);
+ $ZodType.init(inst, def);
+ inst._zod.parse = (payload, _) => {
+ return payload;
+ };
+ inst._zod.check = (payload) => {
+ const input = payload.value;
+ const r = def.fn(input);
+ if (r instanceof Promise) {
+ return r.then((r2) => handleRefineResult(r2, payload, input, inst));
+ }
+ handleRefineResult(r, payload, input, inst);
+ return;
+ };
+ });
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ar.js
+function ar_default() {
+ return {
+ localeError: error2()
+ };
+}
+var error2;
+var init_ar = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ar.js"() {
+ init_util2();
+ error2 = () => {
+ const Sizable = {
+ string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
+ file: { unit: "\u0628\u0627\u064A\u062A", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
+ array: { unit: "\u0639\u0646\u0635\u0631", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
+ set: { unit: "\u0639\u0646\u0635\u0631", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "number";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u0645\u062F\u062E\u0644",
+ email: "\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",
+ url: "\u0631\u0627\u0628\u0637",
+ emoji: "\u0625\u064A\u0645\u0648\u062C\u064A",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",
+ date: "\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",
+ time: "\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",
+ duration: "\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",
+ ipv4: "\u0639\u0646\u0648\u0627\u0646 IPv4",
+ ipv6: "\u0639\u0646\u0648\u0627\u0646 IPv6",
+ cidrv4: "\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",
+ cidrv6: "\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",
+ base64: "\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",
+ base64url: "\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",
+ json_string: "\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",
+ e164: "\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",
+ jwt: "JWT",
+ template_literal: "\u0645\u062F\u062E\u0644"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${issue2.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${stringifyPrimitive(issue2.values[0])}`;
+ return `\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return ` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${issue2.origin ?? "\u0627\u0644\u0642\u064A\u0645\u0629"} ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "\u0639\u0646\u0635\u0631"}`;
+ return `\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${issue2.origin ?? "\u0627\u0644\u0642\u064A\u0645\u0629"} ${adj} ${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${issue2.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${adj} ${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${issue2.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${adj} ${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${issue2.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${_issue.pattern}`;
+ return `${Nouns[_issue.format] ?? issue2.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`;
+ }
+ case "not_multiple_of":
+ return `\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `\u0645\u0639\u0631\u0641${issue2.keys.length > 1 ? "\u0627\u062A" : ""} \u063A\u0631\u064A\u0628${issue2.keys.length > 1 ? "\u0629" : ""}: ${joinValues(issue2.keys, "\u060C ")}`;
+ case "invalid_key":
+ return `\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${issue2.origin}`;
+ case "invalid_union":
+ return "\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";
+ case "invalid_element":
+ return `\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${issue2.origin}`;
+ default:
+ return "\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/az.js
+function az_default() {
+ return {
+ localeError: error3()
+ };
+}
+var error3;
+var init_az = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/az.js"() {
+ init_util2();
+ error3 = () => {
+ const Sizable = {
+ string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
+ file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
+ array: { unit: "element", verb: "olmal\u0131d\u0131r" },
+ set: { unit: "element", verb: "olmal\u0131d\u0131r" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "number";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "input",
+ email: "email address",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO datetime",
+ date: "ISO date",
+ time: "ISO time",
+ duration: "ISO duration",
+ ipv4: "IPv4 address",
+ ipv6: "IPv6 address",
+ cidrv4: "IPv4 range",
+ cidrv6: "IPv6 range",
+ base64: "base64-encoded string",
+ base64url: "base64url-encoded string",
+ json_string: "JSON string",
+ e164: "E.164 number",
+ jwt: "JWT",
+ template_literal: "input"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${issue2.expected}, daxil olan ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${stringifyPrimitive(issue2.values[0])}`;
+ return `Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${issue2.origin ?? "d\u0259y\u0259r"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "element"}`;
+ return `\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${issue2.origin ?? "d\u0259y\u0259r"} ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ return `\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${issue2.origin} ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Yanl\u0131\u015F m\u0259tn: "${_issue.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`;
+ if (_issue.format === "ends_with")
+ return `Yanl\u0131\u015F m\u0259tn: "${_issue.suffix}" il\u0259 bitm\u0259lidir`;
+ if (_issue.format === "includes")
+ return `Yanl\u0131\u015F m\u0259tn: "${_issue.includes}" daxil olmal\u0131d\u0131r`;
+ if (_issue.format === "regex")
+ return `Yanl\u0131\u015F m\u0259tn: ${_issue.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`;
+ return `Yanl\u0131\u015F ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Yanl\u0131\u015F \u0259d\u0259d: ${issue2.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;
+ case "unrecognized_keys":
+ return `Tan\u0131nmayan a\xE7ar${issue2.keys.length > 1 ? "lar" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `${issue2.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;
+ case "invalid_union":
+ return "Yanl\u0131\u015F d\u0259y\u0259r";
+ case "invalid_element":
+ return `${issue2.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;
+ default:
+ return `Yanl\u0131\u015F d\u0259y\u0259r`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/be.js
+function getBelarusianPlural(count, one, few, many) {
+ const absCount = Math.abs(count);
+ const lastDigit = absCount % 10;
+ const lastTwoDigits = absCount % 100;
+ if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
+ return many;
+ }
+ if (lastDigit === 1) {
+ return one;
+ }
+ if (lastDigit >= 2 && lastDigit <= 4) {
+ return few;
+ }
+ return many;
+}
+function be_default() {
+ return {
+ localeError: error4()
+ };
+}
+var error4;
+var init_be = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/be.js"() {
+ init_util2();
+ error4 = () => {
+ const Sizable = {
+ string: {
+ unit: {
+ one: "\u0441\u0456\u043C\u0432\u0430\u043B",
+ few: "\u0441\u0456\u043C\u0432\u0430\u043B\u044B",
+ many: "\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"
+ },
+ verb: "\u043C\u0435\u0446\u044C"
+ },
+ array: {
+ unit: {
+ one: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442",
+ few: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",
+ many: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"
+ },
+ verb: "\u043C\u0435\u0446\u044C"
+ },
+ set: {
+ unit: {
+ one: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442",
+ few: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",
+ many: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"
+ },
+ verb: "\u043C\u0435\u0446\u044C"
+ },
+ file: {
+ unit: {
+ one: "\u0431\u0430\u0439\u0442",
+ few: "\u0431\u0430\u0439\u0442\u044B",
+ many: "\u0431\u0430\u0439\u0442\u0430\u045E"
+ },
+ verb: "\u043C\u0435\u0446\u044C"
+ }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "\u043B\u0456\u043A";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "\u043C\u0430\u0441\u0456\u045E";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u0443\u0432\u043E\u0434",
+ email: "email \u0430\u0434\u0440\u0430\u0441",
+ url: "URL",
+ emoji: "\u044D\u043C\u043E\u0434\u0437\u0456",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",
+ date: "ISO \u0434\u0430\u0442\u0430",
+ time: "ISO \u0447\u0430\u0441",
+ duration: "ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",
+ ipv4: "IPv4 \u0430\u0434\u0440\u0430\u0441",
+ ipv6: "IPv6 \u0430\u0434\u0440\u0430\u0441",
+ cidrv4: "IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",
+ cidrv6: "IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",
+ base64: "\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",
+ base64url: "\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",
+ json_string: "JSON \u0440\u0430\u0434\u043E\u043A",
+ e164: "\u043D\u0443\u043C\u0430\u0440 E.164",
+ jwt: "JWT",
+ template_literal: "\u0443\u0432\u043E\u0434"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${issue2.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${stringifyPrimitive(issue2.values[0])}`;
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ const maxValue = Number(issue2.maximum);
+ const unit = getBelarusianPlural(maxValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);
+ return `\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${issue2.origin ?? "\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${sizing.verb} ${adj}${issue2.maximum.toString()} ${unit}`;
+ }
+ return `\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${issue2.origin ?? "\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ const minValue = Number(issue2.minimum);
+ const unit = getBelarusianPlural(minValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);
+ return `\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${issue2.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${sizing.verb} ${adj}${issue2.minimum.toString()} ${unit}`;
+ }
+ return `\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${issue2.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`;
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${issue2.keys.length > 1 ? "\u043A\u043B\u044E\u0447\u044B" : "\u043A\u043B\u044E\u0447"}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${issue2.origin}`;
+ case "invalid_union":
+ return "\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";
+ case "invalid_element":
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${issue2.origin}`;
+ default:
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ca.js
+function ca_default() {
+ return {
+ localeError: error5()
+ };
+}
+var error5;
+var init_ca = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ca.js"() {
+ init_util2();
+ error5 = () => {
+ const Sizable = {
+ string: { unit: "car\xE0cters", verb: "contenir" },
+ file: { unit: "bytes", verb: "contenir" },
+ array: { unit: "elements", verb: "contenir" },
+ set: { unit: "elements", verb: "contenir" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "number";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "entrada",
+ email: "adre\xE7a electr\xF2nica",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "data i hora ISO",
+ date: "data ISO",
+ time: "hora ISO",
+ duration: "durada ISO",
+ ipv4: "adre\xE7a IPv4",
+ ipv6: "adre\xE7a IPv6",
+ cidrv4: "rang IPv4",
+ cidrv6: "rang IPv6",
+ base64: "cadena codificada en base64",
+ base64url: "cadena codificada en base64url",
+ json_string: "cadena JSON",
+ e164: "n\xFAmero E.164",
+ jwt: "JWT",
+ template_literal: "entrada"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Tipus inv\xE0lid: s'esperava ${issue2.expected}, s'ha rebut ${parsedType4(issue2.input)}`;
+ // return `Tipus invàlid: s'esperava ${issue.expected}, s'ha rebut ${util.getParsedType(issue.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Valor inv\xE0lid: s'esperava ${stringifyPrimitive(issue2.values[0])}`;
+ return `Opci\xF3 inv\xE0lida: s'esperava una de ${joinValues(issue2.values, " o ")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "com a m\xE0xim" : "menys de";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Massa gran: s'esperava que ${issue2.origin ?? "el valor"} contingu\xE9s ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`;
+ return `Massa gran: s'esperava que ${issue2.origin ?? "el valor"} fos ${adj} ${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? "com a m\xEDnim" : "m\xE9s de";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Massa petit: s'esperava que ${issue2.origin} contingu\xE9s ${adj} ${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `Massa petit: s'esperava que ${issue2.origin} fos ${adj} ${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `Format inv\xE0lid: ha de comen\xE7ar amb "${_issue.prefix}"`;
+ }
+ if (_issue.format === "ends_with")
+ return `Format inv\xE0lid: ha d'acabar amb "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Format inv\xE0lid: ha d'incloure "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${_issue.pattern}`;
+ return `Format inv\xE0lid per a ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Clau${issue2.keys.length > 1 ? "s" : ""} no reconeguda${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Clau inv\xE0lida a ${issue2.origin}`;
+ case "invalid_union":
+ return "Entrada inv\xE0lida";
+ // Could also be "Tipus d'unió invàlid" but "Entrada invàlida" is more general
+ case "invalid_element":
+ return `Element inv\xE0lid a ${issue2.origin}`;
+ default:
+ return `Entrada inv\xE0lida`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/cs.js
+function cs_default() {
+ return {
+ localeError: error6()
+ };
+}
+var error6;
+var init_cs = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/cs.js"() {
+ init_util2();
+ error6 = () => {
+ const Sizable = {
+ string: { unit: "znak\u016F", verb: "m\xEDt" },
+ file: { unit: "bajt\u016F", verb: "m\xEDt" },
+ array: { unit: "prvk\u016F", verb: "m\xEDt" },
+ set: { unit: "prvk\u016F", verb: "m\xEDt" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "\u010D\xEDslo";
+ }
+ case "string": {
+ return "\u0159et\u011Bzec";
+ }
+ case "boolean": {
+ return "boolean";
+ }
+ case "bigint": {
+ return "bigint";
+ }
+ case "function": {
+ return "funkce";
+ }
+ case "symbol": {
+ return "symbol";
+ }
+ case "undefined": {
+ return "undefined";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "pole";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "regul\xE1rn\xED v\xFDraz",
+ email: "e-mailov\xE1 adresa",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "datum a \u010Das ve form\xE1tu ISO",
+ date: "datum ve form\xE1tu ISO",
+ time: "\u010Das ve form\xE1tu ISO",
+ duration: "doba trv\xE1n\xED ISO",
+ ipv4: "IPv4 adresa",
+ ipv6: "IPv6 adresa",
+ cidrv4: "rozsah IPv4",
+ cidrv6: "rozsah IPv6",
+ base64: "\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",
+ base64url: "\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",
+ json_string: "\u0159et\u011Bzec ve form\xE1tu JSON",
+ e164: "\u010D\xEDslo E.164",
+ jwt: "JWT",
+ template_literal: "vstup"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${issue2.expected}, obdr\u017Eeno ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${stringifyPrimitive(issue2.values[0])}`;
+ return `Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${issue2.origin ?? "hodnota"} mus\xED m\xEDt ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "prvk\u016F"}`;
+ }
+ return `Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${issue2.origin ?? "hodnota"} mus\xED b\xFDt ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${issue2.origin ?? "hodnota"} mus\xED m\xEDt ${adj}${issue2.minimum.toString()} ${sizing.unit ?? "prvk\u016F"}`;
+ }
+ return `Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${issue2.origin ?? "hodnota"} mus\xED b\xFDt ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${_issue.pattern}`;
+ return `Neplatn\xFD form\xE1t ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Nezn\xE1m\xE9 kl\xED\u010De: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Neplatn\xFD kl\xED\u010D v ${issue2.origin}`;
+ case "invalid_union":
+ return "Neplatn\xFD vstup";
+ case "invalid_element":
+ return `Neplatn\xE1 hodnota v ${issue2.origin}`;
+ default:
+ return `Neplatn\xFD vstup`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/de.js
+function de_default() {
+ return {
+ localeError: error7()
+ };
+}
+var error7;
+var init_de = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/de.js"() {
+ init_util2();
+ error7 = () => {
+ const Sizable = {
+ string: { unit: "Zeichen", verb: "zu haben" },
+ file: { unit: "Bytes", verb: "zu haben" },
+ array: { unit: "Elemente", verb: "zu haben" },
+ set: { unit: "Elemente", verb: "zu haben" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "Zahl";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "Array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "Eingabe",
+ email: "E-Mail-Adresse",
+ url: "URL",
+ emoji: "Emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO-Datum und -Uhrzeit",
+ date: "ISO-Datum",
+ time: "ISO-Uhrzeit",
+ duration: "ISO-Dauer",
+ ipv4: "IPv4-Adresse",
+ ipv6: "IPv6-Adresse",
+ cidrv4: "IPv4-Bereich",
+ cidrv6: "IPv6-Bereich",
+ base64: "Base64-codierter String",
+ base64url: "Base64-URL-codierter String",
+ json_string: "JSON-String",
+ e164: "E.164-Nummer",
+ jwt: "JWT",
+ template_literal: "Eingabe"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Ung\xFCltige Eingabe: erwartet ${issue2.expected}, erhalten ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Ung\xFCltige Eingabe: erwartet ${stringifyPrimitive(issue2.values[0])}`;
+ return `Ung\xFCltige Option: erwartet eine von ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Zu gro\xDF: erwartet, dass ${issue2.origin ?? "Wert"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "Elemente"} hat`;
+ return `Zu gro\xDF: erwartet, dass ${issue2.origin ?? "Wert"} ${adj}${issue2.maximum.toString()} ist`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Zu klein: erwartet, dass ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} hat`;
+ }
+ return `Zu klein: erwartet, dass ${issue2.origin} ${adj}${issue2.minimum.toString()} ist`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Ung\xFCltiger String: muss mit "${_issue.prefix}" beginnen`;
+ if (_issue.format === "ends_with")
+ return `Ung\xFCltiger String: muss mit "${_issue.suffix}" enden`;
+ if (_issue.format === "includes")
+ return `Ung\xFCltiger String: muss "${_issue.includes}" enthalten`;
+ if (_issue.format === "regex")
+ return `Ung\xFCltiger String: muss dem Muster ${_issue.pattern} entsprechen`;
+ return `Ung\xFCltig: ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Ung\xFCltige Zahl: muss ein Vielfaches von ${issue2.divisor} sein`;
+ case "unrecognized_keys":
+ return `${issue2.keys.length > 1 ? "Unbekannte Schl\xFCssel" : "Unbekannter Schl\xFCssel"}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Ung\xFCltiger Schl\xFCssel in ${issue2.origin}`;
+ case "invalid_union":
+ return "Ung\xFCltige Eingabe";
+ case "invalid_element":
+ return `Ung\xFCltiger Wert in ${issue2.origin}`;
+ default:
+ return `Ung\xFCltige Eingabe`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/en.js
+function en_default4() {
+ return {
+ localeError: error8()
+ };
+}
+var parsedType, error8;
+var init_en2 = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/en.js"() {
+ init_util2();
+ parsedType = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "number";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ error8 = () => {
+ const Sizable = {
+ string: { unit: "characters", verb: "to have" },
+ file: { unit: "bytes", verb: "to have" },
+ array: { unit: "items", verb: "to have" },
+ set: { unit: "items", verb: "to have" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const Nouns = {
+ regex: "input",
+ email: "email address",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO datetime",
+ date: "ISO date",
+ time: "ISO time",
+ duration: "ISO duration",
+ ipv4: "IPv4 address",
+ ipv6: "IPv6 address",
+ cidrv4: "IPv4 range",
+ cidrv6: "IPv6 range",
+ base64: "base64-encoded string",
+ base64url: "base64url-encoded string",
+ json_string: "JSON string",
+ e164: "E.164 number",
+ jwt: "JWT",
+ template_literal: "input"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Invalid input: expected ${issue2.expected}, received ${parsedType(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
+ return `Invalid option: expected one of ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Too big: expected ${issue2.origin ?? "value"} to have ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`;
+ return `Too big: expected ${issue2.origin ?? "value"} to be ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Too small: expected ${issue2.origin} to have ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `Too small: expected ${issue2.origin} to be ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `Invalid string: must start with "${_issue.prefix}"`;
+ }
+ if (_issue.format === "ends_with")
+ return `Invalid string: must end with "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Invalid string: must include "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Invalid string: must match pattern ${_issue.pattern}`;
+ return `Invalid ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Invalid number: must be a multiple of ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Unrecognized key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Invalid key in ${issue2.origin}`;
+ case "invalid_union":
+ return "Invalid input";
+ case "invalid_element":
+ return `Invalid value in ${issue2.origin}`;
+ default:
+ return `Invalid input`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/eo.js
+function eo_default() {
+ return {
+ localeError: error9()
+ };
+}
+var parsedType2, error9;
+var init_eo = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/eo.js"() {
+ init_util2();
+ parsedType2 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "nombro";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "tabelo";
+ }
+ if (data === null) {
+ return "senvalora";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ error9 = () => {
+ const Sizable = {
+ string: { unit: "karaktrojn", verb: "havi" },
+ file: { unit: "bajtojn", verb: "havi" },
+ array: { unit: "elementojn", verb: "havi" },
+ set: { unit: "elementojn", verb: "havi" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const Nouns = {
+ regex: "enigo",
+ email: "retadreso",
+ url: "URL",
+ emoji: "emo\u011Dio",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO-datotempo",
+ date: "ISO-dato",
+ time: "ISO-tempo",
+ duration: "ISO-da\u016Dro",
+ ipv4: "IPv4-adreso",
+ ipv6: "IPv6-adreso",
+ cidrv4: "IPv4-rango",
+ cidrv6: "IPv6-rango",
+ base64: "64-ume kodita karaktraro",
+ base64url: "URL-64-ume kodita karaktraro",
+ json_string: "JSON-karaktraro",
+ e164: "E.164-nombro",
+ jwt: "JWT",
+ template_literal: "enigo"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Nevalida enigo: atendi\u011Dis ${issue2.expected}, ricevi\u011Dis ${parsedType2(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Nevalida enigo: atendi\u011Dis ${stringifyPrimitive(issue2.values[0])}`;
+ return `Nevalida opcio: atendi\u011Dis unu el ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Tro granda: atendi\u011Dis ke ${issue2.origin ?? "valoro"} havu ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
+ return `Tro granda: atendi\u011Dis ke ${issue2.origin ?? "valoro"} havu ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Tro malgranda: atendi\u011Dis ke ${issue2.origin} havu ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `Tro malgranda: atendi\u011Dis ke ${issue2.origin} estu ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Nevalida karaktraro: devas komenci\u011Di per "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `Nevalida karaktraro: devas fini\u011Di per "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
+ return `Nevalida ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Nevalida nombro: devas esti oblo de ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Nekonata${issue2.keys.length > 1 ? "j" : ""} \u015Dlosilo${issue2.keys.length > 1 ? "j" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Nevalida \u015Dlosilo en ${issue2.origin}`;
+ case "invalid_union":
+ return "Nevalida enigo";
+ case "invalid_element":
+ return `Nevalida valoro en ${issue2.origin}`;
+ default:
+ return `Nevalida enigo`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/es.js
+function es_default() {
+ return {
+ localeError: error10()
+ };
+}
+var error10;
+var init_es = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/es.js"() {
+ init_util2();
+ error10 = () => {
+ const Sizable = {
+ string: { unit: "caracteres", verb: "tener" },
+ file: { unit: "bytes", verb: "tener" },
+ array: { unit: "elementos", verb: "tener" },
+ set: { unit: "elementos", verb: "tener" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "n\xFAmero";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "arreglo";
+ }
+ if (data === null) {
+ return "nulo";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "entrada",
+ email: "direcci\xF3n de correo electr\xF3nico",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "fecha y hora ISO",
+ date: "fecha ISO",
+ time: "hora ISO",
+ duration: "duraci\xF3n ISO",
+ ipv4: "direcci\xF3n IPv4",
+ ipv6: "direcci\xF3n IPv6",
+ cidrv4: "rango IPv4",
+ cidrv6: "rango IPv6",
+ base64: "cadena codificada en base64",
+ base64url: "URL codificada en base64",
+ json_string: "cadena JSON",
+ e164: "n\xFAmero E.164",
+ jwt: "JWT",
+ template_literal: "entrada"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Entrada inv\xE1lida: se esperaba ${issue2.expected}, recibido ${parsedType4(issue2.input)}`;
+ // return `Entrada inválida: se esperaba ${issue.expected}, recibido ${util.getParsedType(issue.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Entrada inv\xE1lida: se esperaba ${stringifyPrimitive(issue2.values[0])}`;
+ return `Opci\xF3n inv\xE1lida: se esperaba una de ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Demasiado grande: se esperaba que ${issue2.origin ?? "valor"} tuviera ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;
+ return `Demasiado grande: se esperaba que ${issue2.origin ?? "valor"} fuera ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Demasiado peque\xF1o: se esperaba que ${issue2.origin} tuviera ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `Demasiado peque\xF1o: se esperaba que ${issue2.origin} fuera ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Cadena inv\xE1lida: debe comenzar con "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `Cadena inv\xE1lida: debe terminar en "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Cadena inv\xE1lida: debe incluir "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${_issue.pattern}`;
+ return `Inv\xE1lido ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Llave${issue2.keys.length > 1 ? "s" : ""} desconocida${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Llave inv\xE1lida en ${issue2.origin}`;
+ case "invalid_union":
+ return "Entrada inv\xE1lida";
+ case "invalid_element":
+ return `Valor inv\xE1lido en ${issue2.origin}`;
+ default:
+ return `Entrada inv\xE1lida`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/fa.js
+function fa_default() {
+ return {
+ localeError: error11()
+ };
+}
+var error11;
+var init_fa = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/fa.js"() {
+ init_util2();
+ error11 = () => {
+ const Sizable = {
+ string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
+ file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
+ array: { unit: "\u0622\u06CC\u062A\u0645", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
+ set: { unit: "\u0622\u06CC\u062A\u0645", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "\u0639\u062F\u062F";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "\u0622\u0631\u0627\u06CC\u0647";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u0648\u0631\u0648\u062F\u06CC",
+ email: "\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",
+ url: "URL",
+ emoji: "\u0627\u06CC\u0645\u0648\u062C\u06CC",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",
+ date: "\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",
+ time: "\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",
+ duration: "\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",
+ ipv4: "IPv4 \u0622\u062F\u0631\u0633",
+ ipv6: "IPv6 \u0622\u062F\u0631\u0633",
+ cidrv4: "IPv4 \u062F\u0627\u0645\u0646\u0647",
+ cidrv6: "IPv6 \u062F\u0627\u0645\u0646\u0647",
+ base64: "base64-encoded \u0631\u0634\u062A\u0647",
+ base64url: "base64url-encoded \u0631\u0634\u062A\u0647",
+ json_string: "JSON \u0631\u0634\u062A\u0647",
+ e164: "E.164 \u0639\u062F\u062F",
+ jwt: "JWT",
+ template_literal: "\u0648\u0631\u0648\u062F\u06CC"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${issue2.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${parsedType4(issue2.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;
+ case "invalid_value":
+ if (issue2.values.length === 1) {
+ return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${stringifyPrimitive(issue2.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`;
+ }
+ return `\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${joinValues(issue2.values, "|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${issue2.origin ?? "\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`;
+ }
+ return `\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${issue2.origin ?? "\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${adj}${issue2.maximum.toString()} \u0628\u0627\u0634\u062F`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${issue2.origin} \u0628\u0627\u06CC\u062F ${adj}${issue2.minimum.toString()} ${sizing.unit} \u0628\u0627\u0634\u062F`;
+ }
+ return `\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${issue2.origin} \u0628\u0627\u06CC\u062F ${adj}${issue2.minimum.toString()} \u0628\u0627\u0634\u062F`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${_issue.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`;
+ }
+ if (_issue.format === "ends_with") {
+ return `\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${_issue.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`;
+ }
+ if (_issue.format === "includes") {
+ return `\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${_issue.includes}" \u0628\u0627\u0634\u062F`;
+ }
+ if (_issue.format === "regex") {
+ return `\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${_issue.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`;
+ }
+ return `${Nouns[_issue.format] ?? issue2.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`;
+ }
+ case "not_multiple_of":
+ return `\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${issue2.divisor} \u0628\u0627\u0634\u062F`;
+ case "unrecognized_keys":
+ return `\u06A9\u0644\u06CC\u062F${issue2.keys.length > 1 ? "\u0647\u0627\u06CC" : ""} \u0646\u0627\u0634\u0646\u0627\u0633: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${issue2.origin}`;
+ case "invalid_union":
+ return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631`;
+ case "invalid_element":
+ return `\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${issue2.origin}`;
+ default:
+ return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/fi.js
+function fi_default() {
+ return {
+ localeError: error12()
+ };
+}
+var error12;
+var init_fi = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/fi.js"() {
+ init_util2();
+ error12 = () => {
+ const Sizable = {
+ string: { unit: "merkki\xE4", subject: "merkkijonon" },
+ file: { unit: "tavua", subject: "tiedoston" },
+ array: { unit: "alkiota", subject: "listan" },
+ set: { unit: "alkiota", subject: "joukon" },
+ number: { unit: "", subject: "luvun" },
+ bigint: { unit: "", subject: "suuren kokonaisluvun" },
+ int: { unit: "", subject: "kokonaisluvun" },
+ date: { unit: "", subject: "p\xE4iv\xE4m\xE4\xE4r\xE4n" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "number";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "s\xE4\xE4nn\xF6llinen lauseke",
+ email: "s\xE4hk\xF6postiosoite",
+ url: "URL-osoite",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO-aikaleima",
+ date: "ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",
+ time: "ISO-aika",
+ duration: "ISO-kesto",
+ ipv4: "IPv4-osoite",
+ ipv6: "IPv6-osoite",
+ cidrv4: "IPv4-alue",
+ cidrv6: "IPv6-alue",
+ base64: "base64-koodattu merkkijono",
+ base64url: "base64url-koodattu merkkijono",
+ json_string: "JSON-merkkijono",
+ e164: "E.164-luku",
+ jwt: "JWT",
+ template_literal: "templaattimerkkijono"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Virheellinen tyyppi: odotettiin ${issue2.expected}, oli ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Virheellinen sy\xF6te: t\xE4ytyy olla ${stringifyPrimitive(issue2.values[0])}`;
+ return `Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Liian suuri: ${sizing.subject} t\xE4ytyy olla ${adj}${issue2.maximum.toString()} ${sizing.unit}`.trim();
+ }
+ return `Liian suuri: arvon t\xE4ytyy olla ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Liian pieni: ${sizing.subject} t\xE4ytyy olla ${adj}${issue2.minimum.toString()} ${sizing.unit}`.trim();
+ }
+ return `Liian pieni: arvon t\xE4ytyy olla ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Virheellinen sy\xF6te: t\xE4ytyy alkaa "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `Virheellinen sy\xF6te: t\xE4ytyy loppua "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${_issue.includes}"`;
+ if (_issue.format === "regex") {
+ return `Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${_issue.pattern}`;
+ }
+ return `Virheellinen ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Virheellinen luku: t\xE4ytyy olla luvun ${issue2.divisor} monikerta`;
+ case "unrecognized_keys":
+ return `${issue2.keys.length > 1 ? "Tuntemattomat avaimet" : "Tuntematon avain"}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return "Virheellinen avain tietueessa";
+ case "invalid_union":
+ return "Virheellinen unioni";
+ case "invalid_element":
+ return "Virheellinen arvo joukossa";
+ default:
+ return `Virheellinen sy\xF6te`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/fr.js
+function fr_default() {
+ return {
+ localeError: error13()
+ };
+}
+var error13;
+var init_fr = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/fr.js"() {
+ init_util2();
+ error13 = () => {
+ const Sizable = {
+ string: { unit: "caract\xE8res", verb: "avoir" },
+ file: { unit: "octets", verb: "avoir" },
+ array: { unit: "\xE9l\xE9ments", verb: "avoir" },
+ set: { unit: "\xE9l\xE9ments", verb: "avoir" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "nombre";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "tableau";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "entr\xE9e",
+ email: "adresse e-mail",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "date et heure ISO",
+ date: "date ISO",
+ time: "heure ISO",
+ duration: "dur\xE9e ISO",
+ ipv4: "adresse IPv4",
+ ipv6: "adresse IPv6",
+ cidrv4: "plage IPv4",
+ cidrv6: "plage IPv6",
+ base64: "cha\xEEne encod\xE9e en base64",
+ base64url: "cha\xEEne encod\xE9e en base64url",
+ json_string: "cha\xEEne JSON",
+ e164: "num\xE9ro E.164",
+ jwt: "JWT",
+ template_literal: "entr\xE9e"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Entr\xE9e invalide : ${issue2.expected} attendu, ${parsedType4(issue2.input)} re\xE7u`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Entr\xE9e invalide : ${stringifyPrimitive(issue2.values[0])} attendu`;
+ return `Option invalide : une valeur parmi ${joinValues(issue2.values, "|")} attendue`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
+ return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Cha\xEEne invalide : doit commencer par "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `Cha\xEEne invalide : doit se terminer par "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Cha\xEEne invalide : doit inclure "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Cha\xEEne invalide : doit correspondre au mod\xE8le ${_issue.pattern}`;
+ return `${Nouns[_issue.format] ?? issue2.format} invalide`;
+ }
+ case "not_multiple_of":
+ return `Nombre invalide : doit \xEAtre un multiple de ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Cl\xE9${issue2.keys.length > 1 ? "s" : ""} non reconnue${issue2.keys.length > 1 ? "s" : ""} : ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Cl\xE9 invalide dans ${issue2.origin}`;
+ case "invalid_union":
+ return "Entr\xE9e invalide";
+ case "invalid_element":
+ return `Valeur invalide dans ${issue2.origin}`;
+ default:
+ return `Entr\xE9e invalide`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/fr-CA.js
+function fr_CA_default() {
+ return {
+ localeError: error14()
+ };
+}
+var error14;
+var init_fr_CA = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/fr-CA.js"() {
+ init_util2();
+ error14 = () => {
+ const Sizable = {
+ string: { unit: "caract\xE8res", verb: "avoir" },
+ file: { unit: "octets", verb: "avoir" },
+ array: { unit: "\xE9l\xE9ments", verb: "avoir" },
+ set: { unit: "\xE9l\xE9ments", verb: "avoir" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "number";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "entr\xE9e",
+ email: "adresse courriel",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "date-heure ISO",
+ date: "date ISO",
+ time: "heure ISO",
+ duration: "dur\xE9e ISO",
+ ipv4: "adresse IPv4",
+ ipv6: "adresse IPv6",
+ cidrv4: "plage IPv4",
+ cidrv6: "plage IPv6",
+ base64: "cha\xEEne encod\xE9e en base64",
+ base64url: "cha\xEEne encod\xE9e en base64url",
+ json_string: "cha\xEEne JSON",
+ e164: "num\xE9ro E.164",
+ jwt: "JWT",
+ template_literal: "entr\xE9e"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Entr\xE9e invalide : attendu ${issue2.expected}, re\xE7u ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Entr\xE9e invalide : attendu ${stringifyPrimitive(issue2.values[0])}`;
+ return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "\u2264" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Trop grand : attendu que ${issue2.origin ?? "la valeur"} ait ${adj}${issue2.maximum.toString()} ${sizing.unit}`;
+ return `Trop grand : attendu que ${issue2.origin ?? "la valeur"} soit ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? "\u2265" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Trop petit : attendu que ${issue2.origin} ait ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `Trop petit : attendu que ${issue2.origin} soit ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `Cha\xEEne invalide : doit commencer par "${_issue.prefix}"`;
+ }
+ if (_issue.format === "ends_with")
+ return `Cha\xEEne invalide : doit se terminer par "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Cha\xEEne invalide : doit inclure "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Cha\xEEne invalide : doit correspondre au motif ${_issue.pattern}`;
+ return `${Nouns[_issue.format] ?? issue2.format} invalide`;
+ }
+ case "not_multiple_of":
+ return `Nombre invalide : doit \xEAtre un multiple de ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Cl\xE9${issue2.keys.length > 1 ? "s" : ""} non reconnue${issue2.keys.length > 1 ? "s" : ""} : ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Cl\xE9 invalide dans ${issue2.origin}`;
+ case "invalid_union":
+ return "Entr\xE9e invalide";
+ case "invalid_element":
+ return `Valeur invalide dans ${issue2.origin}`;
+ default:
+ return `Entr\xE9e invalide`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/he.js
+function he_default() {
+ return {
+ localeError: error15()
+ };
+}
+var error15;
+var init_he = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/he.js"() {
+ init_util2();
+ error15 = () => {
+ const Sizable = {
+ string: { unit: "\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
+ file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
+ array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
+ set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "number";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u05E7\u05DC\u05D8",
+ email: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",
+ url: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",
+ emoji: "\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",
+ date: "\u05EA\u05D0\u05E8\u05D9\u05DA ISO",
+ time: "\u05D6\u05DE\u05DF ISO",
+ duration: "\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",
+ ipv4: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",
+ ipv6: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",
+ cidrv4: "\u05D8\u05D5\u05D5\u05D7 IPv4",
+ cidrv6: "\u05D8\u05D5\u05D5\u05D7 IPv6",
+ base64: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",
+ base64url: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",
+ json_string: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",
+ e164: "\u05DE\u05E1\u05E4\u05E8 E.164",
+ jwt: "JWT",
+ template_literal: "\u05E7\u05DC\u05D8"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${issue2.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${parsedType4(issue2.input)}`;
+ // return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${stringifyPrimitive(issue2.values[0])}`;
+ return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${issue2.origin ?? "value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`;
+ return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${issue2.origin ?? "value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${issue2.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${issue2.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${_issue.pattern}`;
+ return `${Nouns[_issue.format] ?? issue2.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`;
+ }
+ case "not_multiple_of":
+ return `\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `\u05DE\u05E4\u05EA\u05D7${issue2.keys.length > 1 ? "\u05D5\u05EA" : ""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${issue2.keys.length > 1 ? "\u05D9\u05DD" : "\u05D4"}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${issue2.origin}`;
+ case "invalid_union":
+ return "\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";
+ case "invalid_element":
+ return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${issue2.origin}`;
+ default:
+ return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/hu.js
+function hu_default() {
+ return {
+ localeError: error16()
+ };
+}
+var error16;
+var init_hu = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/hu.js"() {
+ init_util2();
+ error16 = () => {
+ const Sizable = {
+ string: { unit: "karakter", verb: "legyen" },
+ file: { unit: "byte", verb: "legyen" },
+ array: { unit: "elem", verb: "legyen" },
+ set: { unit: "elem", verb: "legyen" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "sz\xE1m";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "t\xF6mb";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "bemenet",
+ email: "email c\xEDm",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO id\u0151b\xE9lyeg",
+ date: "ISO d\xE1tum",
+ time: "ISO id\u0151",
+ duration: "ISO id\u0151intervallum",
+ ipv4: "IPv4 c\xEDm",
+ ipv6: "IPv6 c\xEDm",
+ cidrv4: "IPv4 tartom\xE1ny",
+ cidrv6: "IPv6 tartom\xE1ny",
+ base64: "base64-k\xF3dolt string",
+ base64url: "base64url-k\xF3dolt string",
+ json_string: "JSON string",
+ e164: "E.164 sz\xE1m",
+ jwt: "JWT",
+ template_literal: "bemenet"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${issue2.expected}, a kapott \xE9rt\xE9k ${parsedType4(issue2.input)}`;
+ // return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
+ return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
+ return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `\xC9rv\xE9nytelen string: "${_issue.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`;
+ if (_issue.format === "ends_with")
+ return `\xC9rv\xE9nytelen string: "${_issue.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`;
+ if (_issue.format === "includes")
+ return `\xC9rv\xE9nytelen string: "${_issue.includes}" \xE9rt\xE9ket kell tartalmaznia`;
+ if (_issue.format === "regex")
+ return `\xC9rv\xE9nytelen string: ${_issue.pattern} mint\xE1nak kell megfelelnie`;
+ return `\xC9rv\xE9nytelen ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\xC9rv\xE9nytelen sz\xE1m: ${issue2.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;
+ case "unrecognized_keys":
+ return `Ismeretlen kulcs${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `\xC9rv\xE9nytelen kulcs ${issue2.origin}`;
+ case "invalid_union":
+ return "\xC9rv\xE9nytelen bemenet";
+ case "invalid_element":
+ return `\xC9rv\xE9nytelen \xE9rt\xE9k: ${issue2.origin}`;
+ default:
+ return `\xC9rv\xE9nytelen bemenet`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/id.js
+function id_default() {
+ return {
+ localeError: error17()
+ };
+}
+var error17;
+var init_id = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/id.js"() {
+ init_util2();
+ error17 = () => {
+ const Sizable = {
+ string: { unit: "karakter", verb: "memiliki" },
+ file: { unit: "byte", verb: "memiliki" },
+ array: { unit: "item", verb: "memiliki" },
+ set: { unit: "item", verb: "memiliki" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "number";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "input",
+ email: "alamat email",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "tanggal dan waktu format ISO",
+ date: "tanggal format ISO",
+ time: "jam format ISO",
+ duration: "durasi format ISO",
+ ipv4: "alamat IPv4",
+ ipv6: "alamat IPv6",
+ cidrv4: "rentang alamat IPv4",
+ cidrv6: "rentang alamat IPv6",
+ base64: "string dengan enkode base64",
+ base64url: "string dengan enkode base64url",
+ json_string: "string JSON",
+ e164: "angka E.164",
+ jwt: "JWT",
+ template_literal: "input"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Input tidak valid: diharapkan ${issue2.expected}, diterima ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Input tidak valid: diharapkan ${stringifyPrimitive(issue2.values[0])}`;
+ return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Terlalu besar: diharapkan ${issue2.origin ?? "value"} memiliki ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemen"}`;
+ return `Terlalu besar: diharapkan ${issue2.origin ?? "value"} menjadi ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Terlalu kecil: diharapkan ${issue2.origin} memiliki ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `Terlalu kecil: diharapkan ${issue2.origin} menjadi ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `String tidak valid: harus dimulai dengan "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `String tidak valid: harus berakhir dengan "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `String tidak valid: harus menyertakan "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `String tidak valid: harus sesuai pola ${_issue.pattern}`;
+ return `${Nouns[_issue.format] ?? issue2.format} tidak valid`;
+ }
+ case "not_multiple_of":
+ return `Angka tidak valid: harus kelipatan dari ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Kunci tidak dikenali ${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Kunci tidak valid di ${issue2.origin}`;
+ case "invalid_union":
+ return "Input tidak valid";
+ case "invalid_element":
+ return `Nilai tidak valid di ${issue2.origin}`;
+ default:
+ return `Input tidak valid`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/it.js
+function it_default() {
+ return {
+ localeError: error18()
+ };
+}
+var error18;
+var init_it = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/it.js"() {
+ init_util2();
+ error18 = () => {
+ const Sizable = {
+ string: { unit: "caratteri", verb: "avere" },
+ file: { unit: "byte", verb: "avere" },
+ array: { unit: "elementi", verb: "avere" },
+ set: { unit: "elementi", verb: "avere" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "numero";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "vettore";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "input",
+ email: "indirizzo email",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "data e ora ISO",
+ date: "data ISO",
+ time: "ora ISO",
+ duration: "durata ISO",
+ ipv4: "indirizzo IPv4",
+ ipv6: "indirizzo IPv6",
+ cidrv4: "intervallo IPv4",
+ cidrv6: "intervallo IPv6",
+ base64: "stringa codificata in base64",
+ base64url: "URL codificata in base64",
+ json_string: "stringa JSON",
+ e164: "numero E.164",
+ jwt: "JWT",
+ template_literal: "input"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Input non valido: atteso ${issue2.expected}, ricevuto ${parsedType4(issue2.input)}`;
+ // return `Input non valido: atteso ${issue.expected}, ricevuto ${util.getParsedType(issue.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Input non valido: atteso ${stringifyPrimitive(issue2.values[0])}`;
+ return `Opzione non valida: atteso uno tra ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Troppo grande: ${issue2.origin ?? "valore"} deve avere ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementi"}`;
+ return `Troppo grande: ${issue2.origin ?? "valore"} deve essere ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Troppo piccolo: ${issue2.origin} deve avere ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `Troppo piccolo: ${issue2.origin} deve essere ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Stringa non valida: deve iniziare con "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `Stringa non valida: deve terminare con "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Stringa non valida: deve includere "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
+ return `Invalid ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Chiav${issue2.keys.length > 1 ? "i" : "e"} non riconosciut${issue2.keys.length > 1 ? "e" : "a"}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Chiave non valida in ${issue2.origin}`;
+ case "invalid_union":
+ return "Input non valido";
+ case "invalid_element":
+ return `Valore non valido in ${issue2.origin}`;
+ default:
+ return `Input non valido`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ja.js
+function ja_default() {
+ return {
+ localeError: error19()
+ };
+}
+var error19;
+var init_ja = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ja.js"() {
+ init_util2();
+ error19 = () => {
+ const Sizable = {
+ string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
+ file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
+ array: { unit: "\u8981\u7D20", verb: "\u3067\u3042\u308B" },
+ set: { unit: "\u8981\u7D20", verb: "\u3067\u3042\u308B" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "\u6570\u5024";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "\u914D\u5217";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u5165\u529B\u5024",
+ email: "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",
+ url: "URL",
+ emoji: "\u7D75\u6587\u5B57",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO\u65E5\u6642",
+ date: "ISO\u65E5\u4ED8",
+ time: "ISO\u6642\u523B",
+ duration: "ISO\u671F\u9593",
+ ipv4: "IPv4\u30A2\u30C9\u30EC\u30B9",
+ ipv6: "IPv6\u30A2\u30C9\u30EC\u30B9",
+ cidrv4: "IPv4\u7BC4\u56F2",
+ cidrv6: "IPv6\u7BC4\u56F2",
+ base64: "base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",
+ base64url: "base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",
+ json_string: "JSON\u6587\u5B57\u5217",
+ e164: "E.164\u756A\u53F7",
+ jwt: "JWT",
+ template_literal: "\u5165\u529B\u5024"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u7121\u52B9\u306A\u5165\u529B: ${issue2.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${parsedType4(issue2.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u7121\u52B9\u306A\u5165\u529B: ${stringifyPrimitive(issue2.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`;
+ return `\u7121\u52B9\u306A\u9078\u629E: ${joinValues(issue2.values, "\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "\u4EE5\u4E0B\u3067\u3042\u308B" : "\u3088\u308A\u5C0F\u3055\u3044";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\u5927\u304D\u3059\u304E\u308B\u5024: ${issue2.origin ?? "\u5024"}\u306F${issue2.maximum.toString()}${sizing.unit ?? "\u8981\u7D20"}${adj}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
+ return `\u5927\u304D\u3059\u304E\u308B\u5024: ${issue2.origin ?? "\u5024"}\u306F${issue2.maximum.toString()}${adj}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? "\u4EE5\u4E0A\u3067\u3042\u308B" : "\u3088\u308A\u5927\u304D\u3044";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\u5C0F\u3055\u3059\u304E\u308B\u5024: ${issue2.origin}\u306F${issue2.minimum.toString()}${sizing.unit}${adj}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
+ return `\u5C0F\u3055\u3059\u304E\u308B\u5024: ${issue2.origin}\u306F${issue2.minimum.toString()}${adj}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `\u7121\u52B9\u306A\u6587\u5B57\u5217: "${_issue.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
+ if (_issue.format === "ends_with")
+ return `\u7121\u52B9\u306A\u6587\u5B57\u5217: "${_issue.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
+ if (_issue.format === "includes")
+ return `\u7121\u52B9\u306A\u6587\u5B57\u5217: "${_issue.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
+ if (_issue.format === "regex")
+ return `\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${_issue.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
+ return `\u7121\u52B9\u306A${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\u7121\u52B9\u306A\u6570\u5024: ${issue2.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;
+ case "unrecognized_keys":
+ return `\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${issue2.keys.length > 1 ? "\u7FA4" : ""}: ${joinValues(issue2.keys, "\u3001")}`;
+ case "invalid_key":
+ return `${issue2.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;
+ case "invalid_union":
+ return "\u7121\u52B9\u306A\u5165\u529B";
+ case "invalid_element":
+ return `${issue2.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;
+ default:
+ return `\u7121\u52B9\u306A\u5165\u529B`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/kh.js
+function kh_default() {
+ return {
+ localeError: error20()
+ };
+}
+var error20;
+var init_kh = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/kh.js"() {
+ init_util2();
+ error20 = () => {
+ const Sizable = {
+ string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
+ file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
+ array: { unit: "\u1792\u17B6\u178F\u17BB", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
+ set: { unit: "\u1792\u17B6\u178F\u17BB", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)" : "\u179B\u17C1\u1781";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "\u17A2\u17B6\u179A\u17C1 (Array)";
+ }
+ if (data === null) {
+ return "\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",
+ email: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",
+ url: "URL",
+ emoji: "\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",
+ date: "\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",
+ time: "\u1798\u17C9\u17C4\u1784 ISO",
+ duration: "\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",
+ ipv4: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",
+ ipv6: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",
+ cidrv4: "\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",
+ cidrv6: "\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",
+ base64: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",
+ base64url: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",
+ json_string: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",
+ e164: "\u179B\u17C1\u1781 E.164",
+ jwt: "JWT",
+ template_literal: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${stringifyPrimitive(issue2.values[0])}`;
+ return `\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin ?? "\u178F\u1798\u17D2\u179B\u17C3"} ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "\u1792\u17B6\u178F\u17BB"}`;
+ return `\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin ?? "\u178F\u1798\u17D2\u179B\u17C3"} ${adj} ${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin} ${adj} ${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${_issue.prefix}"`;
+ }
+ if (_issue.format === "ends_with")
+ return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${_issue.pattern}`;
+ return `\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${issue2.origin}`;
+ case "invalid_union":
+ return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C`;
+ case "invalid_element":
+ return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${issue2.origin}`;
+ default:
+ return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ko.js
+function ko_default() {
+ return {
+ localeError: error21()
+ };
+}
+var error21;
+var init_ko = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ko.js"() {
+ init_util2();
+ error21 = () => {
+ const Sizable = {
+ string: { unit: "\uBB38\uC790", verb: "to have" },
+ file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
+ array: { unit: "\uAC1C", verb: "to have" },
+ set: { unit: "\uAC1C", verb: "to have" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "number";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\uC785\uB825",
+ email: "\uC774\uBA54\uC77C \uC8FC\uC18C",
+ url: "URL",
+ emoji: "\uC774\uBAA8\uC9C0",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO \uB0A0\uC9DC\uC2DC\uAC04",
+ date: "ISO \uB0A0\uC9DC",
+ time: "ISO \uC2DC\uAC04",
+ duration: "ISO \uAE30\uAC04",
+ ipv4: "IPv4 \uC8FC\uC18C",
+ ipv6: "IPv6 \uC8FC\uC18C",
+ cidrv4: "IPv4 \uBC94\uC704",
+ cidrv6: "IPv6 \uBC94\uC704",
+ base64: "base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",
+ base64url: "base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",
+ json_string: "JSON \uBB38\uC790\uC5F4",
+ e164: "E.164 \uBC88\uD638",
+ jwt: "JWT",
+ template_literal: "\uC785\uB825"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${parsedType4(issue2.input)}\uC785\uB2C8\uB2E4`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${stringifyPrimitive(issue2.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`;
+ return `\uC798\uBABB\uB41C \uC635\uC158: ${joinValues(issue2.values, "\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "\uC774\uD558" : "\uBBF8\uB9CC";
+ const suffix2 = adj === "\uBBF8\uB9CC" ? "\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4" : "\uC5EC\uC57C \uD569\uB2C8\uB2E4";
+ const sizing = getSizing(issue2.origin);
+ const unit = sizing?.unit ?? "\uC694\uC18C";
+ if (sizing)
+ return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${issue2.maximum.toString()}${unit} ${adj}${suffix2}`;
+ return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${issue2.maximum.toString()} ${adj}${suffix2}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? "\uC774\uC0C1" : "\uCD08\uACFC";
+ const suffix2 = adj === "\uC774\uC0C1" ? "\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4" : "\uC5EC\uC57C \uD569\uB2C8\uB2E4";
+ const sizing = getSizing(issue2.origin);
+ const unit = sizing?.unit ?? "\uC694\uC18C";
+ if (sizing) {
+ return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${issue2.minimum.toString()}${unit} ${adj}${suffix2}`;
+ }
+ return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${issue2.minimum.toString()} ${adj}${suffix2}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`;
+ }
+ if (_issue.format === "ends_with")
+ return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`;
+ if (_issue.format === "includes")
+ return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`;
+ if (_issue.format === "regex")
+ return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${_issue.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`;
+ return `\uC798\uBABB\uB41C ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\uC798\uBABB\uB41C \uC22B\uC790: ${issue2.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;
+ case "unrecognized_keys":
+ return `\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `\uC798\uBABB\uB41C \uD0A4: ${issue2.origin}`;
+ case "invalid_union":
+ return `\uC798\uBABB\uB41C \uC785\uB825`;
+ case "invalid_element":
+ return `\uC798\uBABB\uB41C \uAC12: ${issue2.origin}`;
+ default:
+ return `\uC798\uBABB\uB41C \uC785\uB825`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/mk.js
+function mk_default() {
+ return {
+ localeError: error22()
+ };
+}
+var error22;
+var init_mk = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/mk.js"() {
+ init_util2();
+ error22 = () => {
+ const Sizable = {
+ string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
+ file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
+ array: { unit: "\u0441\u0442\u0430\u0432\u043A\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
+ set: { unit: "\u0441\u0442\u0430\u0432\u043A\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "\u0431\u0440\u043E\u0458";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "\u043D\u0438\u0437\u0430";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u0432\u043D\u0435\u0441",
+ email: "\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",
+ url: "URL",
+ emoji: "\u0435\u043C\u043E\u045F\u0438",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",
+ date: "ISO \u0434\u0430\u0442\u0443\u043C",
+ time: "ISO \u0432\u0440\u0435\u043C\u0435",
+ duration: "ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",
+ ipv4: "IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",
+ ipv6: "IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",
+ cidrv4: "IPv4 \u043E\u043F\u0441\u0435\u0433",
+ cidrv6: "IPv6 \u043E\u043F\u0441\u0435\u0433",
+ base64: "base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",
+ base64url: "base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",
+ json_string: "JSON \u043D\u0438\u0437\u0430",
+ e164: "E.164 \u0431\u0440\u043E\u0458",
+ jwt: "JWT",
+ template_literal: "\u0432\u043D\u0435\u0441"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${parsedType4(issue2.input)}`;
+ // return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
+ return `\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.origin ?? "\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`;
+ return `\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.origin ?? "\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.origin} \u0434\u0430 \u0438\u043C\u0430 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${_issue.prefix}"`;
+ }
+ if (_issue.format === "ends_with")
+ return `\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${_issue.pattern}`;
+ return `Invalid ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `${issue2.keys.length > 1 ? "\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438" : "\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${issue2.origin}`;
+ case "invalid_union":
+ return "\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";
+ case "invalid_element":
+ return `\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${issue2.origin}`;
+ default:
+ return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ms.js
+function ms_default() {
+ return {
+ localeError: error23()
+ };
+}
+var error23;
+var init_ms = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ms.js"() {
+ init_util2();
+ error23 = () => {
+ const Sizable = {
+ string: { unit: "aksara", verb: "mempunyai" },
+ file: { unit: "bait", verb: "mempunyai" },
+ array: { unit: "elemen", verb: "mempunyai" },
+ set: { unit: "elemen", verb: "mempunyai" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "nombor";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "input",
+ email: "alamat e-mel",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "tarikh masa ISO",
+ date: "tarikh ISO",
+ time: "masa ISO",
+ duration: "tempoh ISO",
+ ipv4: "alamat IPv4",
+ ipv6: "alamat IPv6",
+ cidrv4: "julat IPv4",
+ cidrv6: "julat IPv6",
+ base64: "string dikodkan base64",
+ base64url: "string dikodkan base64url",
+ json_string: "string JSON",
+ e164: "nombor E.164",
+ jwt: "JWT",
+ template_literal: "input"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Input tidak sah: dijangka ${issue2.expected}, diterima ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Input tidak sah: dijangka ${stringifyPrimitive(issue2.values[0])}`;
+ return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Terlalu besar: dijangka ${issue2.origin ?? "nilai"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemen"}`;
+ return `Terlalu besar: dijangka ${issue2.origin ?? "nilai"} adalah ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Terlalu kecil: dijangka ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `Terlalu kecil: dijangka ${issue2.origin} adalah ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `String tidak sah: mesti bermula dengan "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `String tidak sah: mesti berakhir dengan "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `String tidak sah: mesti mengandungi "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `String tidak sah: mesti sepadan dengan corak ${_issue.pattern}`;
+ return `${Nouns[_issue.format] ?? issue2.format} tidak sah`;
+ }
+ case "not_multiple_of":
+ return `Nombor tidak sah: perlu gandaan ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Kunci tidak dikenali: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Kunci tidak sah dalam ${issue2.origin}`;
+ case "invalid_union":
+ return "Input tidak sah";
+ case "invalid_element":
+ return `Nilai tidak sah dalam ${issue2.origin}`;
+ default:
+ return `Input tidak sah`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/nl.js
+function nl_default() {
+ return {
+ localeError: error24()
+ };
+}
+var error24;
+var init_nl = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/nl.js"() {
+ init_util2();
+ error24 = () => {
+ const Sizable = {
+ string: { unit: "tekens" },
+ file: { unit: "bytes" },
+ array: { unit: "elementen" },
+ set: { unit: "elementen" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "getal";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "invoer",
+ email: "emailadres",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO datum en tijd",
+ date: "ISO datum",
+ time: "ISO tijd",
+ duration: "ISO duur",
+ ipv4: "IPv4-adres",
+ ipv6: "IPv6-adres",
+ cidrv4: "IPv4-bereik",
+ cidrv6: "IPv6-bereik",
+ base64: "base64-gecodeerde tekst",
+ base64url: "base64 URL-gecodeerde tekst",
+ json_string: "JSON string",
+ e164: "E.164-nummer",
+ jwt: "JWT",
+ template_literal: "invoer"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Ongeldige invoer: verwacht ${issue2.expected}, ontving ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue2.values[0])}`;
+ return `Ongeldige optie: verwacht \xE9\xE9n van ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Te lang: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementen"} bevat`;
+ return `Te lang: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} is`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Te kort: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} bevat`;
+ }
+ return `Te kort: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `Ongeldige tekst: moet met "${_issue.prefix}" beginnen`;
+ }
+ if (_issue.format === "ends_with")
+ return `Ongeldige tekst: moet op "${_issue.suffix}" eindigen`;
+ if (_issue.format === "includes")
+ return `Ongeldige tekst: moet "${_issue.includes}" bevatten`;
+ if (_issue.format === "regex")
+ return `Ongeldige tekst: moet overeenkomen met patroon ${_issue.pattern}`;
+ return `Ongeldig: ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Ongeldig getal: moet een veelvoud van ${issue2.divisor} zijn`;
+ case "unrecognized_keys":
+ return `Onbekende key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Ongeldige key in ${issue2.origin}`;
+ case "invalid_union":
+ return "Ongeldige invoer";
+ case "invalid_element":
+ return `Ongeldige waarde in ${issue2.origin}`;
+ default:
+ return `Ongeldige invoer`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/no.js
+function no_default() {
+ return {
+ localeError: error25()
+ };
+}
+var error25;
+var init_no = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/no.js"() {
+ init_util2();
+ error25 = () => {
+ const Sizable = {
+ string: { unit: "tegn", verb: "\xE5 ha" },
+ file: { unit: "bytes", verb: "\xE5 ha" },
+ array: { unit: "elementer", verb: "\xE5 inneholde" },
+ set: { unit: "elementer", verb: "\xE5 inneholde" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "tall";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "liste";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "input",
+ email: "e-postadresse",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO dato- og klokkeslett",
+ date: "ISO-dato",
+ time: "ISO-klokkeslett",
+ duration: "ISO-varighet",
+ ipv4: "IPv4-omr\xE5de",
+ ipv6: "IPv6-omr\xE5de",
+ cidrv4: "IPv4-spekter",
+ cidrv6: "IPv6-spekter",
+ base64: "base64-enkodet streng",
+ base64url: "base64url-enkodet streng",
+ json_string: "JSON-streng",
+ e164: "E.164-nummer",
+ jwt: "JWT",
+ template_literal: "input"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Ugyldig input: forventet ${issue2.expected}, fikk ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Ugyldig verdi: forventet ${stringifyPrimitive(issue2.values[0])}`;
+ return `Ugyldig valg: forventet en av ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `For stor(t): forventet ${issue2.origin ?? "value"} til \xE5 ha ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementer"}`;
+ return `For stor(t): forventet ${issue2.origin ?? "value"} til \xE5 ha ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `For lite(n): forventet ${issue2.origin} til \xE5 ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `For lite(n): forventet ${issue2.origin} til \xE5 ha ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Ugyldig streng: m\xE5 starte med "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `Ugyldig streng: m\xE5 ende med "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Ugyldig streng: m\xE5 inneholde "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Ugyldig streng: m\xE5 matche m\xF8nsteret ${_issue.pattern}`;
+ return `Ugyldig ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Ugyldig tall: m\xE5 v\xE6re et multiplum av ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `${issue2.keys.length > 1 ? "Ukjente n\xF8kler" : "Ukjent n\xF8kkel"}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Ugyldig n\xF8kkel i ${issue2.origin}`;
+ case "invalid_union":
+ return "Ugyldig input";
+ case "invalid_element":
+ return `Ugyldig verdi i ${issue2.origin}`;
+ default:
+ return `Ugyldig input`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ota.js
+function ota_default() {
+ return {
+ localeError: error26()
+ };
+}
+var error26;
+var init_ota = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ota.js"() {
+ init_util2();
+ error26 = () => {
+ const Sizable = {
+ string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
+ file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
+ array: { unit: "unsur", verb: "olmal\u0131d\u0131r" },
+ set: { unit: "unsur", verb: "olmal\u0131d\u0131r" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "numara";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "saf";
+ }
+ if (data === null) {
+ return "gayb";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "giren",
+ email: "epostag\xE2h",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO heng\xE2m\u0131",
+ date: "ISO tarihi",
+ time: "ISO zaman\u0131",
+ duration: "ISO m\xFCddeti",
+ ipv4: "IPv4 ni\u015F\xE2n\u0131",
+ ipv6: "IPv6 ni\u015F\xE2n\u0131",
+ cidrv4: "IPv4 menzili",
+ cidrv6: "IPv6 menzili",
+ base64: "base64-\u015Fifreli metin",
+ base64url: "base64url-\u015Fifreli metin",
+ json_string: "JSON metin",
+ e164: "E.164 say\u0131s\u0131",
+ jwt: "JWT",
+ template_literal: "giren"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `F\xE2sit giren: umulan ${issue2.expected}, al\u0131nan ${parsedType4(issue2.input)}`;
+ // return `Fâsit giren: umulan ${issue.expected}, alınan ${util.getParsedType(issue.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `F\xE2sit giren: umulan ${stringifyPrimitive(issue2.values[0])}`;
+ return `F\xE2sit tercih: m\xFBteberler ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Fazla b\xFCy\xFCk: ${issue2.origin ?? "value"}, ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"} sahip olmal\u0131yd\u0131.`;
+ return `Fazla b\xFCy\xFCk: ${issue2.origin ?? "value"}, ${adj}${issue2.maximum.toString()} olmal\u0131yd\u0131.`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Fazla k\xFC\xE7\xFCk: ${issue2.origin}, ${adj}${issue2.minimum.toString()} ${sizing.unit} sahip olmal\u0131yd\u0131.`;
+ }
+ return `Fazla k\xFC\xE7\xFCk: ${issue2.origin}, ${adj}${issue2.minimum.toString()} olmal\u0131yd\u0131.`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `F\xE2sit metin: "${_issue.prefix}" ile ba\u015Flamal\u0131.`;
+ if (_issue.format === "ends_with")
+ return `F\xE2sit metin: "${_issue.suffix}" ile bitmeli.`;
+ if (_issue.format === "includes")
+ return `F\xE2sit metin: "${_issue.includes}" ihtiv\xE2 etmeli.`;
+ if (_issue.format === "regex")
+ return `F\xE2sit metin: ${_issue.pattern} nak\u015F\u0131na uymal\u0131.`;
+ return `F\xE2sit ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `F\xE2sit say\u0131: ${issue2.divisor} kat\u0131 olmal\u0131yd\u0131.`;
+ case "unrecognized_keys":
+ return `Tan\u0131nmayan anahtar ${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `${issue2.origin} i\xE7in tan\u0131nmayan anahtar var.`;
+ case "invalid_union":
+ return "Giren tan\u0131namad\u0131.";
+ case "invalid_element":
+ return `${issue2.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;
+ default:
+ return `K\u0131ymet tan\u0131namad\u0131.`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ps.js
+function ps_default() {
+ return {
+ localeError: error27()
+ };
+}
+var error27;
+var init_ps = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ps.js"() {
+ init_util2();
+ error27 = () => {
+ const Sizable = {
+ string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
+ file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
+ array: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
+ set: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "\u0639\u062F\u062F";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "\u0627\u0631\u06D0";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u0648\u0631\u0648\u062F\u064A",
+ email: "\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",
+ url: "\u06CC\u0648 \u0622\u0631 \u0627\u0644",
+ emoji: "\u0627\u06CC\u0645\u0648\u062C\u064A",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",
+ date: "\u0646\u06D0\u067C\u0647",
+ time: "\u0648\u062E\u062A",
+ duration: "\u0645\u0648\u062F\u0647",
+ ipv4: "\u062F IPv4 \u067E\u062A\u0647",
+ ipv6: "\u062F IPv6 \u067E\u062A\u0647",
+ cidrv4: "\u062F IPv4 \u0633\u0627\u062D\u0647",
+ cidrv6: "\u062F IPv6 \u0633\u0627\u062D\u0647",
+ base64: "base64-encoded \u0645\u062A\u0646",
+ base64url: "base64url-encoded \u0645\u062A\u0646",
+ json_string: "JSON \u0645\u062A\u0646",
+ e164: "\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",
+ jwt: "JWT",
+ template_literal: "\u0648\u0631\u0648\u062F\u064A"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${issue2.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${parsedType4(issue2.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;
+ case "invalid_value":
+ if (issue2.values.length === 1) {
+ return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${stringifyPrimitive(issue2.values[0])} \u0648\u0627\u06CC`;
+ }
+ return `\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${joinValues(issue2.values, "|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${issue2.origin ?? "\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`;
+ }
+ return `\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${issue2.origin ?? "\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${adj}${issue2.maximum.toString()} \u0648\u064A`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${issue2.origin} \u0628\u0627\u06CC\u062F ${adj}${issue2.minimum.toString()} ${sizing.unit} \u0648\u0644\u0631\u064A`;
+ }
+ return `\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${issue2.origin} \u0628\u0627\u06CC\u062F ${adj}${issue2.minimum.toString()} \u0648\u064A`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${_issue.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`;
+ }
+ if (_issue.format === "ends_with") {
+ return `\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${_issue.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`;
+ }
+ if (_issue.format === "includes") {
+ return `\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${_issue.includes}" \u0648\u0644\u0631\u064A`;
+ }
+ if (_issue.format === "regex") {
+ return `\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${_issue.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`;
+ }
+ return `${Nouns[_issue.format] ?? issue2.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`;
+ }
+ case "not_multiple_of":
+ return `\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${issue2.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;
+ case "unrecognized_keys":
+ return `\u0646\u0627\u0633\u0645 ${issue2.keys.length > 1 ? "\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647" : "\u06A9\u0644\u06CC\u0689"}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${issue2.origin} \u06A9\u06D0`;
+ case "invalid_union":
+ return `\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A`;
+ case "invalid_element":
+ return `\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${issue2.origin} \u06A9\u06D0`;
+ default:
+ return `\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/pl.js
+function pl_default() {
+ return {
+ localeError: error28()
+ };
+}
+var error28;
+var init_pl = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/pl.js"() {
+ init_util2();
+ error28 = () => {
+ const Sizable = {
+ string: { unit: "znak\xF3w", verb: "mie\u0107" },
+ file: { unit: "bajt\xF3w", verb: "mie\u0107" },
+ array: { unit: "element\xF3w", verb: "mie\u0107" },
+ set: { unit: "element\xF3w", verb: "mie\u0107" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "liczba";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "tablica";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "wyra\u017Cenie",
+ email: "adres email",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "data i godzina w formacie ISO",
+ date: "data w formacie ISO",
+ time: "godzina w formacie ISO",
+ duration: "czas trwania ISO",
+ ipv4: "adres IPv4",
+ ipv6: "adres IPv6",
+ cidrv4: "zakres IPv4",
+ cidrv6: "zakres IPv6",
+ base64: "ci\u0105g znak\xF3w zakodowany w formacie base64",
+ base64url: "ci\u0105g znak\xF3w zakodowany w formacie base64url",
+ json_string: "ci\u0105g znak\xF3w w formacie JSON",
+ e164: "liczba E.164",
+ jwt: "JWT",
+ template_literal: "wej\u015Bcie"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${issue2.expected}, otrzymano ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${stringifyPrimitive(issue2.values[0])}`;
+ return `Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${issue2.origin ?? "warto\u015B\u0107"} b\u0119dzie mie\u0107 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "element\xF3w"}`;
+ }
+ return `Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${issue2.origin ?? "warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${issue2.origin ?? "warto\u015B\u0107"} b\u0119dzie mie\u0107 ${adj}${issue2.minimum.toString()} ${sizing.unit ?? "element\xF3w"}`;
+ }
+ return `Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${issue2.origin ?? "warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${_issue.pattern}`;
+ return `Nieprawid\u0142ow(y/a/e) ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Nierozpoznane klucze${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Nieprawid\u0142owy klucz w ${issue2.origin}`;
+ case "invalid_union":
+ return "Nieprawid\u0142owe dane wej\u015Bciowe";
+ case "invalid_element":
+ return `Nieprawid\u0142owa warto\u015B\u0107 w ${issue2.origin}`;
+ default:
+ return `Nieprawid\u0142owe dane wej\u015Bciowe`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/pt.js
+function pt_default() {
+ return {
+ localeError: error29()
+ };
+}
+var error29;
+var init_pt = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/pt.js"() {
+ init_util2();
+ error29 = () => {
+ const Sizable = {
+ string: { unit: "caracteres", verb: "ter" },
+ file: { unit: "bytes", verb: "ter" },
+ array: { unit: "itens", verb: "ter" },
+ set: { unit: "itens", verb: "ter" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "n\xFAmero";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "nulo";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "padr\xE3o",
+ email: "endere\xE7o de e-mail",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "data e hora ISO",
+ date: "data ISO",
+ time: "hora ISO",
+ duration: "dura\xE7\xE3o ISO",
+ ipv4: "endere\xE7o IPv4",
+ ipv6: "endere\xE7o IPv6",
+ cidrv4: "faixa de IPv4",
+ cidrv6: "faixa de IPv6",
+ base64: "texto codificado em base64",
+ base64url: "URL codificada em base64",
+ json_string: "texto JSON",
+ e164: "n\xFAmero E.164",
+ jwt: "JWT",
+ template_literal: "entrada"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Tipo inv\xE1lido: esperado ${issue2.expected}, recebido ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Entrada inv\xE1lida: esperado ${stringifyPrimitive(issue2.values[0])}`;
+ return `Op\xE7\xE3o inv\xE1lida: esperada uma das ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Muito grande: esperado que ${issue2.origin ?? "valor"} tivesse ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;
+ return `Muito grande: esperado que ${issue2.origin ?? "valor"} fosse ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Muito pequeno: esperado que ${issue2.origin} tivesse ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `Muito pequeno: esperado que ${issue2.origin} fosse ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Texto inv\xE1lido: deve come\xE7ar com "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `Texto inv\xE1lido: deve terminar com "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Texto inv\xE1lido: deve incluir "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Texto inv\xE1lido: deve corresponder ao padr\xE3o ${_issue.pattern}`;
+ return `${Nouns[_issue.format] ?? issue2.format} inv\xE1lido`;
+ }
+ case "not_multiple_of":
+ return `N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Chave${issue2.keys.length > 1 ? "s" : ""} desconhecida${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Chave inv\xE1lida em ${issue2.origin}`;
+ case "invalid_union":
+ return "Entrada inv\xE1lida";
+ case "invalid_element":
+ return `Valor inv\xE1lido em ${issue2.origin}`;
+ default:
+ return `Campo inv\xE1lido`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ru.js
+function getRussianPlural(count, one, few, many) {
+ const absCount = Math.abs(count);
+ const lastDigit = absCount % 10;
+ const lastTwoDigits = absCount % 100;
+ if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
+ return many;
+ }
+ if (lastDigit === 1) {
+ return one;
+ }
+ if (lastDigit >= 2 && lastDigit <= 4) {
+ return few;
+ }
+ return many;
+}
+function ru_default() {
+ return {
+ localeError: error30()
+ };
+}
+var error30;
+var init_ru = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ru.js"() {
+ init_util2();
+ error30 = () => {
+ const Sizable = {
+ string: {
+ unit: {
+ one: "\u0441\u0438\u043C\u0432\u043E\u043B",
+ few: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430",
+ many: "\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"
+ },
+ verb: "\u0438\u043C\u0435\u0442\u044C"
+ },
+ file: {
+ unit: {
+ one: "\u0431\u0430\u0439\u0442",
+ few: "\u0431\u0430\u0439\u0442\u0430",
+ many: "\u0431\u0430\u0439\u0442"
+ },
+ verb: "\u0438\u043C\u0435\u0442\u044C"
+ },
+ array: {
+ unit: {
+ one: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442",
+ few: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",
+ many: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"
+ },
+ verb: "\u0438\u043C\u0435\u0442\u044C"
+ },
+ set: {
+ unit: {
+ one: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442",
+ few: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",
+ many: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"
+ },
+ verb: "\u0438\u043C\u0435\u0442\u044C"
+ }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "\u0447\u0438\u0441\u043B\u043E";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "\u043C\u0430\u0441\u0441\u0438\u0432";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u0432\u0432\u043E\u0434",
+ email: "email \u0430\u0434\u0440\u0435\u0441",
+ url: "URL",
+ emoji: "\u044D\u043C\u043E\u0434\u0437\u0438",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",
+ date: "ISO \u0434\u0430\u0442\u0430",
+ time: "ISO \u0432\u0440\u0435\u043C\u044F",
+ duration: "ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",
+ ipv4: "IPv4 \u0430\u0434\u0440\u0435\u0441",
+ ipv6: "IPv6 \u0430\u0434\u0440\u0435\u0441",
+ cidrv4: "IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",
+ cidrv6: "IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",
+ base64: "\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",
+ base64url: "\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",
+ json_string: "JSON \u0441\u0442\u0440\u043E\u043A\u0430",
+ e164: "\u043D\u043E\u043C\u0435\u0440 E.164",
+ jwt: "JWT",
+ template_literal: "\u0432\u0432\u043E\u0434"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${stringifyPrimitive(issue2.values[0])}`;
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ const maxValue = Number(issue2.maximum);
+ const unit = getRussianPlural(maxValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);
+ return `\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${issue2.origin ?? "\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${adj}${issue2.maximum.toString()} ${unit}`;
+ }
+ return `\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${issue2.origin ?? "\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ const minValue = Number(issue2.minimum);
+ const unit = getRussianPlural(minValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);
+ return `\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${issue2.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${adj}${issue2.minimum.toString()} ${unit}`;
+ }
+ return `\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${issue2.origin} \u0431\u0443\u0434\u0435\u0442 ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`;
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${issue2.keys.length > 1 ? "\u044B\u0435" : "\u044B\u0439"} \u043A\u043B\u044E\u0447${issue2.keys.length > 1 ? "\u0438" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${issue2.origin}`;
+ case "invalid_union":
+ return "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";
+ case "invalid_element":
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${issue2.origin}`;
+ default:
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/sl.js
+function sl_default() {
+ return {
+ localeError: error31()
+ };
+}
+var error31;
+var init_sl = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/sl.js"() {
+ init_util2();
+ error31 = () => {
+ const Sizable = {
+ string: { unit: "znakov", verb: "imeti" },
+ file: { unit: "bajtov", verb: "imeti" },
+ array: { unit: "elementov", verb: "imeti" },
+ set: { unit: "elementov", verb: "imeti" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "\u0161tevilo";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "tabela";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "vnos",
+ email: "e-po\u0161tni naslov",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO datum in \u010Das",
+ date: "ISO datum",
+ time: "ISO \u010Das",
+ duration: "ISO trajanje",
+ ipv4: "IPv4 naslov",
+ ipv6: "IPv6 naslov",
+ cidrv4: "obseg IPv4",
+ cidrv6: "obseg IPv6",
+ base64: "base64 kodiran niz",
+ base64url: "base64url kodiran niz",
+ json_string: "JSON niz",
+ e164: "E.164 \u0161tevilka",
+ jwt: "JWT",
+ template_literal: "vnos"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Neveljaven vnos: pri\u010Dakovano ${issue2.expected}, prejeto ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Neveljaven vnos: pri\u010Dakovano ${stringifyPrimitive(issue2.values[0])}`;
+ return `Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Preveliko: pri\u010Dakovano, da bo ${issue2.origin ?? "vrednost"} imelo ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementov"}`;
+ return `Preveliko: pri\u010Dakovano, da bo ${issue2.origin ?? "vrednost"} ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Premajhno: pri\u010Dakovano, da bo ${issue2.origin} imelo ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `Premajhno: pri\u010Dakovano, da bo ${issue2.origin} ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `Neveljaven niz: mora se za\u010Deti z "${_issue.prefix}"`;
+ }
+ if (_issue.format === "ends_with")
+ return `Neveljaven niz: mora se kon\u010Dati z "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Neveljaven niz: mora vsebovati "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Neveljaven niz: mora ustrezati vzorcu ${_issue.pattern}`;
+ return `Neveljaven ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Neprepoznan${issue2.keys.length > 1 ? "i klju\u010Di" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Neveljaven klju\u010D v ${issue2.origin}`;
+ case "invalid_union":
+ return "Neveljaven vnos";
+ case "invalid_element":
+ return `Neveljavna vrednost v ${issue2.origin}`;
+ default:
+ return "Neveljaven vnos";
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/sv.js
+function sv_default() {
+ return {
+ localeError: error32()
+ };
+}
+var error32;
+var init_sv = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/sv.js"() {
+ init_util2();
+ error32 = () => {
+ const Sizable = {
+ string: { unit: "tecken", verb: "att ha" },
+ file: { unit: "bytes", verb: "att ha" },
+ array: { unit: "objekt", verb: "att inneh\xE5lla" },
+ set: { unit: "objekt", verb: "att inneh\xE5lla" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "antal";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "lista";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "regulj\xE4rt uttryck",
+ email: "e-postadress",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO-datum och tid",
+ date: "ISO-datum",
+ time: "ISO-tid",
+ duration: "ISO-varaktighet",
+ ipv4: "IPv4-intervall",
+ ipv6: "IPv6-intervall",
+ cidrv4: "IPv4-spektrum",
+ cidrv6: "IPv6-spektrum",
+ base64: "base64-kodad str\xE4ng",
+ base64url: "base64url-kodad str\xE4ng",
+ json_string: "JSON-str\xE4ng",
+ e164: "E.164-nummer",
+ jwt: "JWT",
+ template_literal: "mall-literal"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Ogiltig inmatning: f\xF6rv\xE4ntat ${issue2.expected}, fick ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Ogiltig inmatning: f\xF6rv\xE4ntat ${stringifyPrimitive(issue2.values[0])}`;
+ return `Ogiltigt val: f\xF6rv\xE4ntade en av ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `F\xF6r stor(t): f\xF6rv\xE4ntade ${issue2.origin ?? "v\xE4rdet"} att ha ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "element"}`;
+ }
+ return `F\xF6r stor(t): f\xF6rv\xE4ntat ${issue2.origin ?? "v\xE4rdet"} att ha ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `F\xF6r lite(t): f\xF6rv\xE4ntade ${issue2.origin ?? "v\xE4rdet"} att ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `F\xF6r lite(t): f\xF6rv\xE4ntade ${issue2.origin ?? "v\xE4rdet"} att ha ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${_issue.prefix}"`;
+ }
+ if (_issue.format === "ends_with")
+ return `Ogiltig str\xE4ng: m\xE5ste sluta med "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${_issue.pattern}"`;
+ return `Ogiltig(t) ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Ogiltigt tal: m\xE5ste vara en multipel av ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `${issue2.keys.length > 1 ? "Ok\xE4nda nycklar" : "Ok\xE4nd nyckel"}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Ogiltig nyckel i ${issue2.origin ?? "v\xE4rdet"}`;
+ case "invalid_union":
+ return "Ogiltig input";
+ case "invalid_element":
+ return `Ogiltigt v\xE4rde i ${issue2.origin ?? "v\xE4rdet"}`;
+ default:
+ return `Ogiltig input`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ta.js
+function ta_default() {
+ return {
+ localeError: error33()
+ };
+}
+var error33;
+var init_ta = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ta.js"() {
+ init_util2();
+ error33 = () => {
+ const Sizable = {
+ string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
+ file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
+ array: { unit: "\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
+ set: { unit: "\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1" : "\u0B8E\u0BA3\u0BCD";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "\u0B85\u0BA3\u0BBF";
+ }
+ if (data === null) {
+ return "\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",
+ email: "\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",
+ date: "ISO \u0BA4\u0BC7\u0BA4\u0BBF",
+ time: "ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",
+ duration: "ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",
+ ipv4: "IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",
+ ipv6: "IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",
+ cidrv4: "IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",
+ cidrv6: "IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",
+ base64: "base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",
+ base64url: "base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",
+ json_string: "JSON \u0B9A\u0BB0\u0BAE\u0BCD",
+ e164: "E.164 \u0B8E\u0BA3\u0BCD",
+ jwt: "JWT",
+ template_literal: "input"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${stringifyPrimitive(issue2.values[0])}`;
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${joinValues(issue2.values, "|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.origin ?? "\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
+ }
+ return `\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.origin ?? "\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${adj}${issue2.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
+ }
+ return `\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.origin} ${adj}${issue2.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${_issue.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
+ if (_issue.format === "ends_with")
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${_issue.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
+ if (_issue.format === "includes")
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${_issue.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
+ if (_issue.format === "regex")
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${_issue.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${issue2.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;
+ case "unrecognized_keys":
+ return `\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${issue2.keys.length > 1 ? "\u0B95\u0BB3\u0BCD" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `${issue2.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;
+ case "invalid_union":
+ return "\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";
+ case "invalid_element":
+ return `${issue2.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;
+ default:
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/th.js
+function th_default() {
+ return {
+ localeError: error34()
+ };
+}
+var error34;
+var init_th = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/th.js"() {
+ init_util2();
+ error34 = () => {
+ const Sizable = {
+ string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
+ file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
+ array: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
+ set: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)" : "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";
+ }
+ if (data === null) {
+ return "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",
+ email: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",
+ url: "URL",
+ emoji: "\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",
+ date: "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",
+ time: "\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",
+ duration: "\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",
+ ipv4: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",
+ ipv6: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",
+ cidrv4: "\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",
+ cidrv6: "\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",
+ base64: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",
+ base64url: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",
+ json_string: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",
+ e164: "\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",
+ jwt: "\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",
+ template_literal: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${stringifyPrimitive(issue2.values[0])}`;
+ return `\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19" : "\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${issue2.origin ?? "\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`;
+ return `\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${issue2.origin ?? "\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? "\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22" : "\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${issue2.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${issue2.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${_issue.prefix}"`;
+ }
+ if (_issue.format === "ends_with")
+ return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${_issue.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`;
+ if (_issue.format === "regex")
+ return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${_issue.pattern}`;
+ return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${issue2.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;
+ case "unrecognized_keys":
+ return `\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${issue2.origin}`;
+ case "invalid_union":
+ return "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";
+ case "invalid_element":
+ return `\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${issue2.origin}`;
+ default:
+ return `\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/tr.js
+function tr_default() {
+ return {
+ localeError: error35()
+ };
+}
+var parsedType3, error35;
+var init_tr = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/tr.js"() {
+ init_util2();
+ parsedType3 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "number";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ error35 = () => {
+ const Sizable = {
+ string: { unit: "karakter", verb: "olmal\u0131" },
+ file: { unit: "bayt", verb: "olmal\u0131" },
+ array: { unit: "\xF6\u011Fe", verb: "olmal\u0131" },
+ set: { unit: "\xF6\u011Fe", verb: "olmal\u0131" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const Nouns = {
+ regex: "girdi",
+ email: "e-posta adresi",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO tarih ve saat",
+ date: "ISO tarih",
+ time: "ISO saat",
+ duration: "ISO s\xFCre",
+ ipv4: "IPv4 adresi",
+ ipv6: "IPv6 adresi",
+ cidrv4: "IPv4 aral\u0131\u011F\u0131",
+ cidrv6: "IPv6 aral\u0131\u011F\u0131",
+ base64: "base64 ile \u015Fifrelenmi\u015F metin",
+ base64url: "base64url ile \u015Fifrelenmi\u015F metin",
+ json_string: "JSON dizesi",
+ e164: "E.164 say\u0131s\u0131",
+ jwt: "JWT",
+ template_literal: "\u015Eablon dizesi"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `Ge\xE7ersiz de\u011Fer: beklenen ${issue2.expected}, al\u0131nan ${parsedType3(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `Ge\xE7ersiz de\u011Fer: beklenen ${stringifyPrimitive(issue2.values[0])}`;
+ return `Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\xC7ok b\xFCy\xFCk: beklenen ${issue2.origin ?? "de\u011Fer"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xF6\u011Fe"}`;
+ return `\xC7ok b\xFCy\xFCk: beklenen ${issue2.origin ?? "de\u011Fer"} ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\xC7ok k\xFC\xE7\xFCk: beklenen ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ return `\xC7ok k\xFC\xE7\xFCk: beklenen ${issue2.origin} ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Ge\xE7ersiz metin: "${_issue.prefix}" ile ba\u015Flamal\u0131`;
+ if (_issue.format === "ends_with")
+ return `Ge\xE7ersiz metin: "${_issue.suffix}" ile bitmeli`;
+ if (_issue.format === "includes")
+ return `Ge\xE7ersiz metin: "${_issue.includes}" i\xE7ermeli`;
+ if (_issue.format === "regex")
+ return `Ge\xE7ersiz metin: ${_issue.pattern} desenine uymal\u0131`;
+ return `Ge\xE7ersiz ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `Ge\xE7ersiz say\u0131: ${issue2.divisor} ile tam b\xF6l\xFCnebilmeli`;
+ case "unrecognized_keys":
+ return `Tan\u0131nmayan anahtar${issue2.keys.length > 1 ? "lar" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `${issue2.origin} i\xE7inde ge\xE7ersiz anahtar`;
+ case "invalid_union":
+ return "Ge\xE7ersiz de\u011Fer";
+ case "invalid_element":
+ return `${issue2.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;
+ default:
+ return `Ge\xE7ersiz de\u011Fer`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ua.js
+function ua_default() {
+ return {
+ localeError: error36()
+ };
+}
+var error36;
+var init_ua = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ua.js"() {
+ init_util2();
+ error36 = () => {
+ const Sizable = {
+ string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
+ file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
+ array: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
+ set: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "\u0447\u0438\u0441\u043B\u043E";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "\u043C\u0430\u0441\u0438\u0432";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",
+ email: "\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",
+ url: "URL",
+ emoji: "\u0435\u043C\u043E\u0434\u0437\u0456",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",
+ date: "\u0434\u0430\u0442\u0430 ISO",
+ time: "\u0447\u0430\u0441 ISO",
+ duration: "\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",
+ ipv4: "\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",
+ ipv6: "\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",
+ cidrv4: "\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",
+ cidrv6: "\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",
+ base64: "\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",
+ base64url: "\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",
+ json_string: "\u0440\u044F\u0434\u043E\u043A JSON",
+ e164: "\u043D\u043E\u043C\u0435\u0440 E.164",
+ jwt: "JWT",
+ template_literal: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${parsedType4(issue2.input)}`;
+ // return `Неправильні вхідні дані: очікується ${issue.expected}, отримано ${util.getParsedType(issue.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${stringifyPrimitive(issue2.values[0])}`;
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${issue2.origin ?? "\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`;
+ return `\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${issue2.origin ?? "\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${issue2.origin} \u0431\u0443\u0434\u0435 ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`;
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${issue2.keys.length > 1 ? "\u0456" : ""}: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${issue2.origin}`;
+ case "invalid_union":
+ return "\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";
+ case "invalid_element":
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${issue2.origin}`;
+ default:
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ur.js
+function ur_default() {
+ return {
+ localeError: error37()
+ };
+}
+var error37;
+var init_ur = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/ur.js"() {
+ init_util2();
+ error37 = () => {
+ const Sizable = {
+ string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
+ file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
+ array: { unit: "\u0622\u0626\u0679\u0645\u0632", verb: "\u06C1\u0648\u0646\u0627" },
+ set: { unit: "\u0622\u0626\u0679\u0645\u0632", verb: "\u06C1\u0648\u0646\u0627" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "\u0646\u0645\u0628\u0631";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "\u0622\u0631\u06D2";
+ }
+ if (data === null) {
+ return "\u0646\u0644";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u0627\u0646 \u067E\u0679",
+ email: "\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",
+ url: "\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",
+ emoji: "\u0627\u06CC\u0645\u0648\u062C\u06CC",
+ uuid: "\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",
+ uuidv4: "\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",
+ uuidv6: "\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",
+ nanoid: "\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",
+ guid: "\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",
+ cuid: "\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",
+ cuid2: "\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",
+ ulid: "\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",
+ xid: "\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",
+ ksuid: "\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",
+ datetime: "\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",
+ date: "\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",
+ time: "\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",
+ duration: "\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",
+ ipv4: "\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",
+ ipv6: "\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",
+ cidrv4: "\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",
+ cidrv6: "\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",
+ base64: "\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",
+ base64url: "\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",
+ json_string: "\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",
+ e164: "\u0627\u06CC 164 \u0646\u0645\u0628\u0631",
+ jwt: "\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",
+ template_literal: "\u0627\u0646 \u067E\u0679"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${parsedType4(issue2.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${stringifyPrimitive(issue2.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;
+ return `\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${joinValues(issue2.values, "|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\u0628\u06C1\u062A \u0628\u0691\u0627: ${issue2.origin ?? "\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`;
+ return `\u0628\u06C1\u062A \u0628\u0691\u0627: ${issue2.origin ?? "\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${adj}${issue2.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${issue2.origin} \u06A9\u06D2 ${adj}${issue2.minimum.toString()} ${sizing.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`;
+ }
+ return `\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${issue2.origin} \u06A9\u0627 ${adj}${issue2.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${_issue.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;
+ }
+ if (_issue.format === "ends_with")
+ return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${_issue.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;
+ if (_issue.format === "includes")
+ return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${_issue.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;
+ if (_issue.format === "regex")
+ return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${_issue.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;
+ return `\u063A\u0644\u0637 ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${issue2.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;
+ case "unrecognized_keys":
+ return `\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${issue2.keys.length > 1 ? "\u0632" : ""}: ${joinValues(issue2.keys, "\u060C ")}`;
+ case "invalid_key":
+ return `${issue2.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;
+ case "invalid_union":
+ return "\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";
+ case "invalid_element":
+ return `${issue2.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;
+ default:
+ return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/vi.js
+function vi_default() {
+ return {
+ localeError: error38()
+ };
+}
+var error38;
+var init_vi = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/vi.js"() {
+ init_util2();
+ error38 = () => {
+ const Sizable = {
+ string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
+ file: { unit: "byte", verb: "c\xF3" },
+ array: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" },
+ set: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "s\u1ED1";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "m\u1EA3ng";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u0111\u1EA7u v\xE0o",
+ email: "\u0111\u1ECBa ch\u1EC9 email",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ng\xE0y gi\u1EDD ISO",
+ date: "ng\xE0y ISO",
+ time: "gi\u1EDD ISO",
+ duration: "kho\u1EA3ng th\u1EDDi gian ISO",
+ ipv4: "\u0111\u1ECBa ch\u1EC9 IPv4",
+ ipv6: "\u0111\u1ECBa ch\u1EC9 IPv6",
+ cidrv4: "d\u1EA3i IPv4",
+ cidrv6: "d\u1EA3i IPv6",
+ base64: "chu\u1ED7i m\xE3 h\xF3a base64",
+ base64url: "chu\u1ED7i m\xE3 h\xF3a base64url",
+ json_string: "chu\u1ED7i JSON",
+ e164: "s\u1ED1 E.164",
+ jwt: "JWT",
+ template_literal: "\u0111\u1EA7u v\xE0o"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${stringifyPrimitive(issue2.values[0])}`;
+ return `T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${issue2.origin ?? "gi\xE1 tr\u1ECB"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "ph\u1EA7n t\u1EED"}`;
+ return `Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${issue2.origin ?? "gi\xE1 tr\u1ECB"} ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${issue2.origin} ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${_issue.prefix}"`;
+ if (_issue.format === "ends_with")
+ return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${_issue.suffix}"`;
+ if (_issue.format === "includes")
+ return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${_issue.pattern}`;
+ return `${Nouns[_issue.format] ?? issue2.format} kh\xF4ng h\u1EE3p l\u1EC7`;
+ }
+ case "not_multiple_of":
+ return `S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${issue2.divisor}`;
+ case "unrecognized_keys":
+ return `Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${issue2.origin}`;
+ case "invalid_union":
+ return "\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";
+ case "invalid_element":
+ return `Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${issue2.origin}`;
+ default:
+ return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/zh-CN.js
+function zh_CN_default() {
+ return {
+ localeError: error39()
+ };
+}
+var error39;
+var init_zh_CN = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/zh-CN.js"() {
+ init_util2();
+ error39 = () => {
+ const Sizable = {
+ string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
+ file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
+ array: { unit: "\u9879", verb: "\u5305\u542B" },
+ set: { unit: "\u9879", verb: "\u5305\u542B" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "\u975E\u6570\u5B57(NaN)" : "\u6570\u5B57";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "\u6570\u7EC4";
+ }
+ if (data === null) {
+ return "\u7A7A\u503C(null)";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u8F93\u5165",
+ email: "\u7535\u5B50\u90AE\u4EF6",
+ url: "URL",
+ emoji: "\u8868\u60C5\u7B26\u53F7",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO\u65E5\u671F\u65F6\u95F4",
+ date: "ISO\u65E5\u671F",
+ time: "ISO\u65F6\u95F4",
+ duration: "ISO\u65F6\u957F",
+ ipv4: "IPv4\u5730\u5740",
+ ipv6: "IPv6\u5730\u5740",
+ cidrv4: "IPv4\u7F51\u6BB5",
+ cidrv6: "IPv6\u7F51\u6BB5",
+ base64: "base64\u7F16\u7801\u5B57\u7B26\u4E32",
+ base64url: "base64url\u7F16\u7801\u5B57\u7B26\u4E32",
+ json_string: "JSON\u5B57\u7B26\u4E32",
+ e164: "E.164\u53F7\u7801",
+ jwt: "JWT",
+ template_literal: "\u8F93\u5165"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${stringifyPrimitive(issue2.values[0])}`;
+ return `\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${issue2.origin ?? "\u503C"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u4E2A\u5143\u7D20"}`;
+ return `\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${issue2.origin ?? "\u503C"} ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${issue2.origin} ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with")
+ return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${_issue.prefix}" \u5F00\u5934`;
+ if (_issue.format === "ends_with")
+ return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${_issue.suffix}" \u7ED3\u5C3E`;
+ if (_issue.format === "includes")
+ return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${_issue.pattern}`;
+ return `\u65E0\u6548${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${issue2.divisor} \u7684\u500D\u6570`;
+ case "unrecognized_keys":
+ return `\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${joinValues(issue2.keys, ", ")}`;
+ case "invalid_key":
+ return `${issue2.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;
+ case "invalid_union":
+ return "\u65E0\u6548\u8F93\u5165";
+ case "invalid_element":
+ return `${issue2.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;
+ default:
+ return `\u65E0\u6548\u8F93\u5165`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/zh-TW.js
+function zh_TW_default() {
+ return {
+ localeError: error40()
+ };
+}
+var error40;
+var init_zh_TW = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/zh-TW.js"() {
+ init_util2();
+ error40 = () => {
+ const Sizable = {
+ string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
+ file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
+ array: { unit: "\u9805\u76EE", verb: "\u64C1\u6709" },
+ set: { unit: "\u9805\u76EE", verb: "\u64C1\u6709" }
+ };
+ function getSizing(origin) {
+ return Sizable[origin] ?? null;
+ }
+ const parsedType4 = (data) => {
+ const t = typeof data;
+ switch (t) {
+ case "number": {
+ return Number.isNaN(data) ? "NaN" : "number";
+ }
+ case "object": {
+ if (Array.isArray(data)) {
+ return "array";
+ }
+ if (data === null) {
+ return "null";
+ }
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
+ return data.constructor.name;
+ }
+ }
+ }
+ return t;
+ };
+ const Nouns = {
+ regex: "\u8F38\u5165",
+ email: "\u90F5\u4EF6\u5730\u5740",
+ url: "URL",
+ emoji: "emoji",
+ uuid: "UUID",
+ uuidv4: "UUIDv4",
+ uuidv6: "UUIDv6",
+ nanoid: "nanoid",
+ guid: "GUID",
+ cuid: "cuid",
+ cuid2: "cuid2",
+ ulid: "ULID",
+ xid: "XID",
+ ksuid: "KSUID",
+ datetime: "ISO \u65E5\u671F\u6642\u9593",
+ date: "ISO \u65E5\u671F",
+ time: "ISO \u6642\u9593",
+ duration: "ISO \u671F\u9593",
+ ipv4: "IPv4 \u4F4D\u5740",
+ ipv6: "IPv6 \u4F4D\u5740",
+ cidrv4: "IPv4 \u7BC4\u570D",
+ cidrv6: "IPv6 \u7BC4\u570D",
+ base64: "base64 \u7DE8\u78BC\u5B57\u4E32",
+ base64url: "base64url \u7DE8\u78BC\u5B57\u4E32",
+ json_string: "JSON \u5B57\u4E32",
+ e164: "E.164 \u6578\u503C",
+ jwt: "JWT",
+ template_literal: "\u8F38\u5165"
+ };
+ return (issue2) => {
+ switch (issue2.code) {
+ case "invalid_type":
+ return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${parsedType4(issue2.input)}`;
+ case "invalid_value":
+ if (issue2.values.length === 1)
+ return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${stringifyPrimitive(issue2.values[0])}`;
+ return `\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${joinValues(issue2.values, "|")}`;
+ case "too_big": {
+ const adj = issue2.inclusive ? "<=" : "<";
+ const sizing = getSizing(issue2.origin);
+ if (sizing)
+ return `\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${issue2.origin ?? "\u503C"} \u61C9\u70BA ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u500B\u5143\u7D20"}`;
+ return `\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${issue2.origin ?? "\u503C"} \u61C9\u70BA ${adj}${issue2.maximum.toString()}`;
+ }
+ case "too_small": {
+ const adj = issue2.inclusive ? ">=" : ">";
+ const sizing = getSizing(issue2.origin);
+ if (sizing) {
+ return `\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${issue2.origin} \u61C9\u70BA ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
+ }
+ return `\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${issue2.origin} \u61C9\u70BA ${adj}${issue2.minimum.toString()}`;
+ }
+ case "invalid_format": {
+ const _issue = issue2;
+ if (_issue.format === "starts_with") {
+ return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${_issue.prefix}" \u958B\u982D`;
+ }
+ if (_issue.format === "ends_with")
+ return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${_issue.suffix}" \u7D50\u5C3E`;
+ if (_issue.format === "includes")
+ return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${_issue.includes}"`;
+ if (_issue.format === "regex")
+ return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${_issue.pattern}`;
+ return `\u7121\u6548\u7684 ${Nouns[_issue.format] ?? issue2.format}`;
+ }
+ case "not_multiple_of":
+ return `\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${issue2.divisor} \u7684\u500D\u6578`;
+ case "unrecognized_keys":
+ return `\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${issue2.keys.length > 1 ? "\u5011" : ""}\uFF1A${joinValues(issue2.keys, "\u3001")}`;
+ case "invalid_key":
+ return `${issue2.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;
+ case "invalid_union":
+ return "\u7121\u6548\u7684\u8F38\u5165\u503C";
+ case "invalid_element":
+ return `${issue2.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;
+ default:
+ return `\u7121\u6548\u7684\u8F38\u5165\u503C`;
+ }
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/index.js
+var locales_exports = {};
+__export(locales_exports, {
+ ar: () => ar_default,
+ az: () => az_default,
+ be: () => be_default,
+ ca: () => ca_default,
+ cs: () => cs_default,
+ de: () => de_default,
+ en: () => en_default4,
+ eo: () => eo_default,
+ es: () => es_default,
+ fa: () => fa_default,
+ fi: () => fi_default,
+ fr: () => fr_default,
+ frCA: () => fr_CA_default,
+ he: () => he_default,
+ hu: () => hu_default,
+ id: () => id_default,
+ it: () => it_default,
+ ja: () => ja_default,
+ kh: () => kh_default,
+ ko: () => ko_default,
+ mk: () => mk_default,
+ ms: () => ms_default,
+ nl: () => nl_default,
+ no: () => no_default,
+ ota: () => ota_default,
+ pl: () => pl_default,
+ ps: () => ps_default,
+ pt: () => pt_default,
+ ru: () => ru_default,
+ sl: () => sl_default,
+ sv: () => sv_default,
+ ta: () => ta_default,
+ th: () => th_default,
+ tr: () => tr_default,
+ ua: () => ua_default,
+ ur: () => ur_default,
+ vi: () => vi_default,
+ zhCN: () => zh_CN_default,
+ zhTW: () => zh_TW_default
+});
+var init_locales = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/index.js"() {
+ init_ar();
+ init_az();
+ init_be();
+ init_ca();
+ init_cs();
+ init_de();
+ init_en2();
+ init_eo();
+ init_es();
+ init_fa();
+ init_fi();
+ init_fr();
+ init_fr_CA();
+ init_he();
+ init_hu();
+ init_id();
+ init_it();
+ init_ja();
+ init_kh();
+ init_ko();
+ init_mk();
+ init_ms();
+ init_nl();
+ init_no();
+ init_ota();
+ init_ps();
+ init_pl();
+ init_pt();
+ init_ru();
+ init_sl();
+ init_sv();
+ init_ta();
+ init_th();
+ init_tr();
+ init_ua();
+ init_ur();
+ init_vi();
+ init_zh_CN();
+ init_zh_TW();
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.js
+function registry2() {
+ return new $ZodRegistry();
+}
+var $output, $input, $ZodRegistry, globalRegistry;
+var init_registries = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.js"() {
+ $output = Symbol("ZodOutput");
+ $input = Symbol("ZodInput");
+ $ZodRegistry = class {
+ constructor() {
+ this._map = /* @__PURE__ */ new Map();
+ this._idmap = /* @__PURE__ */ new Map();
+ }
+ add(schema2, ..._meta) {
+ const meta = _meta[0];
+ this._map.set(schema2, meta);
+ if (meta && typeof meta === "object" && "id" in meta) {
+ if (this._idmap.has(meta.id)) {
+ throw new Error(`ID ${meta.id} already exists in the registry`);
+ }
+ this._idmap.set(meta.id, schema2);
+ }
+ return this;
+ }
+ clear() {
+ this._map = /* @__PURE__ */ new Map();
+ this._idmap = /* @__PURE__ */ new Map();
+ return this;
+ }
+ remove(schema2) {
+ const meta = this._map.get(schema2);
+ if (meta && typeof meta === "object" && "id" in meta) {
+ this._idmap.delete(meta.id);
+ }
+ this._map.delete(schema2);
+ return this;
+ }
+ get(schema2) {
+ const p = schema2._zod.parent;
+ if (p) {
+ const pm = { ...this.get(p) ?? {} };
+ delete pm.id;
+ return { ...pm, ...this._map.get(schema2) };
+ }
+ return this._map.get(schema2);
+ }
+ has(schema2) {
+ return this._map.has(schema2);
+ }
+ };
+ globalRegistry = /* @__PURE__ */ registry2();
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/api.js
+function _string(Class2, params) {
+ return new Class2({
+ type: "string",
+ ...normalizeParams(params)
+ });
+}
+function _coercedString(Class2, params) {
+ return new Class2({
+ type: "string",
+ coerce: true,
+ ...normalizeParams(params)
+ });
+}
+function _email(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "email",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _guid(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "guid",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _uuid(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "uuid",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _uuidv4(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "uuid",
+ check: "string_format",
+ abort: false,
+ version: "v4",
+ ...normalizeParams(params)
+ });
+}
+function _uuidv6(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "uuid",
+ check: "string_format",
+ abort: false,
+ version: "v6",
+ ...normalizeParams(params)
+ });
+}
+function _uuidv7(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "uuid",
+ check: "string_format",
+ abort: false,
+ version: "v7",
+ ...normalizeParams(params)
+ });
+}
+function _url2(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "url",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _emoji2(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "emoji",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _nanoid(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "nanoid",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _cuid(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "cuid",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _cuid2(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "cuid2",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _ulid(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "ulid",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _xid(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "xid",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _ksuid(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "ksuid",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _ipv4(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "ipv4",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _ipv6(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "ipv6",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _cidrv4(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "cidrv4",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _cidrv6(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "cidrv6",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _base64(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "base64",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _base64url(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "base64url",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _e164(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "e164",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _jwt(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "jwt",
+ check: "string_format",
+ abort: false,
+ ...normalizeParams(params)
+ });
+}
+function _isoDateTime(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "datetime",
+ check: "string_format",
+ offset: false,
+ local: false,
+ precision: null,
+ ...normalizeParams(params)
+ });
+}
+function _isoDate(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "date",
+ check: "string_format",
+ ...normalizeParams(params)
+ });
+}
+function _isoTime(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "time",
+ check: "string_format",
+ precision: null,
+ ...normalizeParams(params)
+ });
+}
+function _isoDuration(Class2, params) {
+ return new Class2({
+ type: "string",
+ format: "duration",
+ check: "string_format",
+ ...normalizeParams(params)
+ });
+}
+function _number(Class2, params) {
+ return new Class2({
+ type: "number",
+ checks: [],
+ ...normalizeParams(params)
+ });
+}
+function _coercedNumber(Class2, params) {
+ return new Class2({
+ type: "number",
+ coerce: true,
+ checks: [],
+ ...normalizeParams(params)
+ });
+}
+function _int(Class2, params) {
+ return new Class2({
+ type: "number",
+ check: "number_format",
+ abort: false,
+ format: "safeint",
+ ...normalizeParams(params)
+ });
+}
+function _float32(Class2, params) {
+ return new Class2({
+ type: "number",
+ check: "number_format",
+ abort: false,
+ format: "float32",
+ ...normalizeParams(params)
+ });
+}
+function _float64(Class2, params) {
+ return new Class2({
+ type: "number",
+ check: "number_format",
+ abort: false,
+ format: "float64",
+ ...normalizeParams(params)
+ });
+}
+function _int32(Class2, params) {
+ return new Class2({
+ type: "number",
+ check: "number_format",
+ abort: false,
+ format: "int32",
+ ...normalizeParams(params)
+ });
+}
+function _uint32(Class2, params) {
+ return new Class2({
+ type: "number",
+ check: "number_format",
+ abort: false,
+ format: "uint32",
+ ...normalizeParams(params)
+ });
+}
+function _boolean(Class2, params) {
+ return new Class2({
+ type: "boolean",
+ ...normalizeParams(params)
+ });
+}
+function _coercedBoolean(Class2, params) {
+ return new Class2({
+ type: "boolean",
+ coerce: true,
+ ...normalizeParams(params)
+ });
+}
+function _bigint(Class2, params) {
+ return new Class2({
+ type: "bigint",
+ ...normalizeParams(params)
+ });
+}
+function _coercedBigint(Class2, params) {
+ return new Class2({
+ type: "bigint",
+ coerce: true,
+ ...normalizeParams(params)
+ });
+}
+function _int64(Class2, params) {
+ return new Class2({
+ type: "bigint",
+ check: "bigint_format",
+ abort: false,
+ format: "int64",
+ ...normalizeParams(params)
+ });
+}
+function _uint64(Class2, params) {
+ return new Class2({
+ type: "bigint",
+ check: "bigint_format",
+ abort: false,
+ format: "uint64",
+ ...normalizeParams(params)
+ });
+}
+function _symbol(Class2, params) {
+ return new Class2({
+ type: "symbol",
+ ...normalizeParams(params)
+ });
+}
+function _undefined2(Class2, params) {
+ return new Class2({
+ type: "undefined",
+ ...normalizeParams(params)
+ });
+}
+function _null2(Class2, params) {
+ return new Class2({
+ type: "null",
+ ...normalizeParams(params)
+ });
+}
+function _any(Class2) {
+ return new Class2({
+ type: "any"
+ });
+}
+function _unknown(Class2) {
+ return new Class2({
+ type: "unknown"
+ });
+}
+function _never(Class2, params) {
+ return new Class2({
+ type: "never",
+ ...normalizeParams(params)
+ });
+}
+function _void(Class2, params) {
+ return new Class2({
+ type: "void",
+ ...normalizeParams(params)
+ });
+}
+function _date(Class2, params) {
+ return new Class2({
+ type: "date",
+ ...normalizeParams(params)
+ });
+}
+function _coercedDate(Class2, params) {
+ return new Class2({
+ type: "date",
+ coerce: true,
+ ...normalizeParams(params)
+ });
+}
+function _nan(Class2, params) {
+ return new Class2({
+ type: "nan",
+ ...normalizeParams(params)
+ });
+}
+function _lt(value2, params) {
+ return new $ZodCheckLessThan({
+ check: "less_than",
+ ...normalizeParams(params),
+ value: value2,
+ inclusive: false
+ });
+}
+function _lte(value2, params) {
+ return new $ZodCheckLessThan({
+ check: "less_than",
+ ...normalizeParams(params),
+ value: value2,
+ inclusive: true
+ });
+}
+function _gt(value2, params) {
+ return new $ZodCheckGreaterThan({
+ check: "greater_than",
+ ...normalizeParams(params),
+ value: value2,
+ inclusive: false
+ });
+}
+function _gte(value2, params) {
+ return new $ZodCheckGreaterThan({
+ check: "greater_than",
+ ...normalizeParams(params),
+ value: value2,
+ inclusive: true
+ });
+}
+function _positive(params) {
+ return _gt(0, params);
+}
+function _negative(params) {
+ return _lt(0, params);
+}
+function _nonpositive(params) {
+ return _lte(0, params);
+}
+function _nonnegative(params) {
+ return _gte(0, params);
+}
+function _multipleOf(value2, params) {
+ return new $ZodCheckMultipleOf({
+ check: "multiple_of",
+ ...normalizeParams(params),
+ value: value2
+ });
+}
+function _maxSize(maximum, params) {
+ return new $ZodCheckMaxSize({
+ check: "max_size",
+ ...normalizeParams(params),
+ maximum
+ });
+}
+function _minSize(minimum, params) {
+ return new $ZodCheckMinSize({
+ check: "min_size",
+ ...normalizeParams(params),
+ minimum
+ });
+}
+function _size(size, params) {
+ return new $ZodCheckSizeEquals({
+ check: "size_equals",
+ ...normalizeParams(params),
+ size
+ });
+}
+function _maxLength(maximum, params) {
+ const ch = new $ZodCheckMaxLength({
+ check: "max_length",
+ ...normalizeParams(params),
+ maximum
+ });
+ return ch;
+}
+function _minLength(minimum, params) {
+ return new $ZodCheckMinLength({
+ check: "min_length",
+ ...normalizeParams(params),
+ minimum
+ });
+}
+function _length(length, params) {
+ return new $ZodCheckLengthEquals({
+ check: "length_equals",
+ ...normalizeParams(params),
+ length
+ });
+}
+function _regex(pattern, params) {
+ return new $ZodCheckRegex({
+ check: "string_format",
+ format: "regex",
+ ...normalizeParams(params),
+ pattern
+ });
+}
+function _lowercase(params) {
+ return new $ZodCheckLowerCase({
+ check: "string_format",
+ format: "lowercase",
+ ...normalizeParams(params)
+ });
+}
+function _uppercase(params) {
+ return new $ZodCheckUpperCase({
+ check: "string_format",
+ format: "uppercase",
+ ...normalizeParams(params)
+ });
+}
+function _includes(includes2, params) {
+ return new $ZodCheckIncludes({
+ check: "string_format",
+ format: "includes",
+ ...normalizeParams(params),
+ includes: includes2
+ });
+}
+function _startsWith(prefix, params) {
+ return new $ZodCheckStartsWith({
+ check: "string_format",
+ format: "starts_with",
+ ...normalizeParams(params),
+ prefix
+ });
+}
+function _endsWith(suffix2, params) {
+ return new $ZodCheckEndsWith({
+ check: "string_format",
+ format: "ends_with",
+ ...normalizeParams(params),
+ suffix: suffix2
+ });
+}
+function _property(property, schema2, params) {
+ return new $ZodCheckProperty({
+ check: "property",
+ property,
+ schema: schema2,
+ ...normalizeParams(params)
+ });
+}
+function _mime(types, params) {
+ return new $ZodCheckMimeType({
+ check: "mime_type",
+ mime: types,
+ ...normalizeParams(params)
+ });
+}
+function _overwrite(tx) {
+ return new $ZodCheckOverwrite({
+ check: "overwrite",
+ tx
+ });
+}
+function _normalize(form) {
+ return _overwrite((input) => input.normalize(form));
+}
+function _trim() {
+ return _overwrite((input) => input.trim());
+}
+function _toLowerCase() {
+ return _overwrite((input) => input.toLowerCase());
+}
+function _toUpperCase() {
+ return _overwrite((input) => input.toUpperCase());
+}
+function _array(Class2, element, params) {
+ return new Class2({
+ type: "array",
+ element,
+ // get element() {
+ // return element;
+ // },
+ ...normalizeParams(params)
+ });
+}
+function _union(Class2, options, params) {
+ return new Class2({
+ type: "union",
+ options,
+ ...normalizeParams(params)
+ });
+}
+function _discriminatedUnion(Class2, discriminator, options, params) {
+ return new Class2({
+ type: "union",
+ options,
+ discriminator,
+ ...normalizeParams(params)
+ });
+}
+function _intersection(Class2, left, right) {
+ return new Class2({
+ type: "intersection",
+ left,
+ right
+ });
+}
+function _tuple(Class2, items, _paramsOrRest, _params) {
+ const hasRest = _paramsOrRest instanceof $ZodType;
+ const params = hasRest ? _params : _paramsOrRest;
+ const rest = hasRest ? _paramsOrRest : null;
+ return new Class2({
+ type: "tuple",
+ items,
+ rest,
+ ...normalizeParams(params)
+ });
+}
+function _record(Class2, keyType, valueType, params) {
+ return new Class2({
+ type: "record",
+ keyType,
+ valueType,
+ ...normalizeParams(params)
+ });
+}
+function _map(Class2, keyType, valueType, params) {
+ return new Class2({
+ type: "map",
+ keyType,
+ valueType,
+ ...normalizeParams(params)
+ });
+}
+function _set(Class2, valueType, params) {
+ return new Class2({
+ type: "set",
+ valueType,
+ ...normalizeParams(params)
+ });
+}
+function _enum(Class2, values, params) {
+ const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
+ return new Class2({
+ type: "enum",
+ entries,
+ ...normalizeParams(params)
+ });
+}
+function _nativeEnum(Class2, entries, params) {
+ return new Class2({
+ type: "enum",
+ entries,
+ ...normalizeParams(params)
+ });
+}
+function _literal(Class2, value2, params) {
+ return new Class2({
+ type: "literal",
+ values: Array.isArray(value2) ? value2 : [value2],
+ ...normalizeParams(params)
+ });
+}
+function _file(Class2, params) {
+ return new Class2({
+ type: "file",
+ ...normalizeParams(params)
+ });
+}
+function _transform(Class2, fn2) {
+ return new Class2({
+ type: "transform",
+ transform: fn2
+ });
+}
+function _optional(Class2, innerType) {
+ return new Class2({
+ type: "optional",
+ innerType
+ });
+}
+function _nullable(Class2, innerType) {
+ return new Class2({
+ type: "nullable",
+ innerType
+ });
+}
+function _default(Class2, innerType, defaultValue) {
+ return new Class2({
+ type: "default",
+ innerType,
+ get defaultValue() {
+ return typeof defaultValue === "function" ? defaultValue() : defaultValue;
+ }
+ });
+}
+function _nonoptional(Class2, innerType, params) {
+ return new Class2({
+ type: "nonoptional",
+ innerType,
+ ...normalizeParams(params)
+ });
+}
+function _success(Class2, innerType) {
+ return new Class2({
+ type: "success",
+ innerType
+ });
+}
+function _catch(Class2, innerType, catchValue) {
+ return new Class2({
+ type: "catch",
+ innerType,
+ catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
+ });
+}
+function _pipe(Class2, in_, out) {
+ return new Class2({
+ type: "pipe",
+ in: in_,
+ out
+ });
+}
+function _readonly(Class2, innerType) {
+ return new Class2({
+ type: "readonly",
+ innerType
+ });
+}
+function _templateLiteral(Class2, parts, params) {
+ return new Class2({
+ type: "template_literal",
+ parts,
+ ...normalizeParams(params)
+ });
+}
+function _lazy(Class2, getter) {
+ return new Class2({
+ type: "lazy",
+ getter
+ });
+}
+function _promise(Class2, innerType) {
+ return new Class2({
+ type: "promise",
+ innerType
+ });
+}
+function _custom(Class2, fn2, _params) {
+ const norm2 = normalizeParams(_params);
+ norm2.abort ?? (norm2.abort = true);
+ const schema2 = new Class2({
+ type: "custom",
+ check: "custom",
+ fn: fn2,
+ ...norm2
+ });
+ return schema2;
+}
+function _refine(Class2, fn2, _params) {
+ const schema2 = new Class2({
+ type: "custom",
+ check: "custom",
+ fn: fn2,
+ ...normalizeParams(_params)
+ });
+ return schema2;
+}
+function _stringbool(Classes, _params) {
+ const params = normalizeParams(_params);
+ let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
+ let falsyArray = params.falsy ?? ["false", "0", "no", "off", "n", "disabled"];
+ if (params.case !== "sensitive") {
+ truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
+ falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v);
+ }
+ const truthySet = new Set(truthyArray);
+ const falsySet = new Set(falsyArray);
+ const _Pipe = Classes.Pipe ?? $ZodPipe;
+ const _Boolean = Classes.Boolean ?? $ZodBoolean;
+ const _String = Classes.String ?? $ZodString;
+ const _Transform = Classes.Transform ?? $ZodTransform;
+ const tx = new _Transform({
+ type: "transform",
+ transform: (input, payload) => {
+ let data = input;
+ if (params.case !== "sensitive")
+ data = data.toLowerCase();
+ if (truthySet.has(data)) {
+ return true;
+ } else if (falsySet.has(data)) {
+ return false;
+ } else {
+ payload.issues.push({
+ code: "invalid_value",
+ expected: "stringbool",
+ values: [...truthySet, ...falsySet],
+ input: payload.value,
+ inst: tx
+ });
+ return {};
+ }
+ },
+ error: params.error
+ });
+ const innerPipe = new _Pipe({
+ type: "pipe",
+ in: new _String({ type: "string", error: params.error }),
+ out: tx,
+ error: params.error
+ });
+ const outerPipe = new _Pipe({
+ type: "pipe",
+ in: innerPipe,
+ out: new _Boolean({
+ type: "boolean",
+ error: params.error
+ }),
+ error: params.error
+ });
+ return outerPipe;
+}
+function _stringFormat(Class2, format2, fnOrRegex, _params = {}) {
+ const params = normalizeParams(_params);
+ const def = {
+ ...normalizeParams(_params),
+ check: "string_format",
+ type: "string",
+ format: format2,
+ fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
+ ...params
+ };
+ if (fnOrRegex instanceof RegExp) {
+ def.pattern = fnOrRegex;
+ }
+ const inst = new Class2(def);
+ return inst;
+}
+var TimePrecision;
+var init_api = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/api.js"() {
+ init_checks();
+ init_schemas();
+ init_util2();
+ TimePrecision = {
+ Any: null,
+ Minute: -1,
+ Second: 0,
+ Millisecond: 3,
+ Microsecond: 6
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/function.js
+function _function(params) {
+ return new $ZodFunction({
+ type: "function",
+ input: Array.isArray(params?.input) ? _tuple($ZodTuple, params?.input) : params?.input ?? _array($ZodArray, _unknown($ZodUnknown)),
+ output: params?.output ?? _unknown($ZodUnknown)
+ });
+}
+var $ZodFunction;
+var init_function = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/function.js"() {
+ init_api();
+ init_parse();
+ init_schemas();
+ init_schemas();
+ $ZodFunction = class {
+ constructor(def) {
+ this._def = def;
+ this.def = def;
+ }
+ implement(func) {
+ if (typeof func !== "function") {
+ throw new Error("implement() must be called with a function");
+ }
+ const impl = ((...args2) => {
+ const parsedArgs = this._def.input ? parse2(this._def.input, args2, void 0, { callee: impl }) : args2;
+ if (!Array.isArray(parsedArgs)) {
+ throw new Error("Invalid arguments schema: not an array or tuple schema.");
+ }
+ const output = func(...parsedArgs);
+ return this._def.output ? parse2(this._def.output, output, void 0, { callee: impl }) : output;
+ });
+ return impl;
+ }
+ implementAsync(func) {
+ if (typeof func !== "function") {
+ throw new Error("implement() must be called with a function");
+ }
+ const impl = (async (...args2) => {
+ const parsedArgs = this._def.input ? await parseAsync(this._def.input, args2, void 0, { callee: impl }) : args2;
+ if (!Array.isArray(parsedArgs)) {
+ throw new Error("Invalid arguments schema: not an array or tuple schema.");
+ }
+ const output = await func(...parsedArgs);
+ return this._def.output ? parseAsync(this._def.output, output, void 0, { callee: impl }) : output;
+ });
+ return impl;
+ }
+ input(...args2) {
+ const F = this.constructor;
+ if (Array.isArray(args2[0])) {
+ return new F({
+ type: "function",
+ input: new $ZodTuple({
+ type: "tuple",
+ items: args2[0],
+ rest: args2[1]
+ }),
+ output: this._def.output
+ });
+ }
+ return new F({
+ type: "function",
+ input: args2[0],
+ output: this._def.output
+ });
+ }
+ output(output) {
+ const F = this.constructor;
+ return new F({
+ type: "function",
+ input: this._def.input,
+ output
+ });
+ }
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/to-json-schema.js
+function toJSONSchema(input, _params) {
+ if (input instanceof $ZodRegistry) {
+ const gen2 = new JSONSchemaGenerator(_params);
+ const defs = {};
+ for (const entry of input._idmap.entries()) {
+ const [_, schema2] = entry;
+ gen2.process(schema2);
+ }
+ const schemas = {};
+ const external = {
+ registry: input,
+ uri: _params?.uri,
+ defs
+ };
+ for (const entry of input._idmap.entries()) {
+ const [key, schema2] = entry;
+ schemas[key] = gen2.emit(schema2, {
+ ..._params,
+ external
+ });
+ }
+ if (Object.keys(defs).length > 0) {
+ const defsSegment = gen2.target === "draft-2020-12" ? "$defs" : "definitions";
+ schemas.__shared = {
+ [defsSegment]: defs
+ };
+ }
+ return { schemas };
+ }
+ const gen = new JSONSchemaGenerator(_params);
+ gen.process(input);
+ return gen.emit(input, _params);
+}
+function isTransforming(_schema, _ctx) {
+ const ctx = _ctx ?? { seen: /* @__PURE__ */ new Set() };
+ if (ctx.seen.has(_schema))
+ return false;
+ ctx.seen.add(_schema);
+ const schema2 = _schema;
+ const def = schema2._zod.def;
+ switch (def.type) {
+ case "string":
+ case "number":
+ case "bigint":
+ case "boolean":
+ case "date":
+ case "symbol":
+ case "undefined":
+ case "null":
+ case "any":
+ case "unknown":
+ case "never":
+ case "void":
+ case "literal":
+ case "enum":
+ case "nan":
+ case "file":
+ case "template_literal":
+ return false;
+ case "array": {
+ return isTransforming(def.element, ctx);
+ }
+ case "object": {
+ for (const key in def.shape) {
+ if (isTransforming(def.shape[key], ctx))
+ return true;
+ }
+ return false;
+ }
+ case "union": {
+ for (const option of def.options) {
+ if (isTransforming(option, ctx))
+ return true;
+ }
+ return false;
+ }
+ case "intersection": {
+ return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
+ }
+ case "tuple": {
+ for (const item of def.items) {
+ if (isTransforming(item, ctx))
+ return true;
+ }
+ if (def.rest && isTransforming(def.rest, ctx))
+ return true;
+ return false;
+ }
+ case "record": {
+ return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
+ }
+ case "map": {
+ return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
+ }
+ case "set": {
+ return isTransforming(def.valueType, ctx);
+ }
+ // inner types
+ case "promise":
+ case "optional":
+ case "nonoptional":
+ case "nullable":
+ case "readonly":
+ return isTransforming(def.innerType, ctx);
+ case "lazy":
+ return isTransforming(def.getter(), ctx);
+ case "default": {
+ return isTransforming(def.innerType, ctx);
+ }
+ case "prefault": {
+ return isTransforming(def.innerType, ctx);
+ }
+ case "custom": {
+ return false;
+ }
+ case "transform": {
+ return true;
+ }
+ case "pipe": {
+ return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
+ }
+ case "success": {
+ return false;
+ }
+ case "catch": {
+ return false;
+ }
+ default:
+ def;
+ }
+ throw new Error(`Unknown schema type: ${def.type}`);
+}
+var JSONSchemaGenerator;
+var init_to_json_schema = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/to-json-schema.js"() {
+ init_registries();
+ init_util2();
+ JSONSchemaGenerator = class {
+ constructor(params) {
+ this.counter = 0;
+ this.metadataRegistry = params?.metadata ?? globalRegistry;
+ this.target = params?.target ?? "draft-2020-12";
+ this.unrepresentable = params?.unrepresentable ?? "throw";
+ this.override = params?.override ?? (() => {
+ });
+ this.io = params?.io ?? "output";
+ this.seen = /* @__PURE__ */ new Map();
+ }
+ process(schema2, _params = { path: [], schemaPath: [] }) {
+ var _a;
+ const def = schema2._zod.def;
+ const formatMap = {
+ guid: "uuid",
+ url: "uri",
+ datetime: "date-time",
+ json_string: "json-string",
+ regex: ""
+ // do not set
+ };
+ const seen = this.seen.get(schema2);
+ if (seen) {
+ seen.count++;
+ const isCycle = _params.schemaPath.includes(schema2);
+ if (isCycle) {
+ seen.cycle = _params.path;
+ }
+ return seen.schema;
+ }
+ const result = { schema: {}, count: 1, cycle: void 0, path: _params.path };
+ this.seen.set(schema2, result);
+ const overrideSchema = schema2._zod.toJSONSchema?.();
+ if (overrideSchema) {
+ result.schema = overrideSchema;
+ } else {
+ const params = {
+ ..._params,
+ schemaPath: [..._params.schemaPath, schema2],
+ path: _params.path
+ };
+ const parent = schema2._zod.parent;
+ if (parent) {
+ result.ref = parent;
+ this.process(parent, params);
+ this.seen.get(parent).isParent = true;
+ } else {
+ const _json = result.schema;
+ switch (def.type) {
+ case "string": {
+ const json3 = _json;
+ json3.type = "string";
+ const { minimum, maximum, format: format2, patterns, contentEncoding } = schema2._zod.bag;
+ if (typeof minimum === "number")
+ json3.minLength = minimum;
+ if (typeof maximum === "number")
+ json3.maxLength = maximum;
+ if (format2) {
+ json3.format = formatMap[format2] ?? format2;
+ if (json3.format === "")
+ delete json3.format;
+ }
+ if (contentEncoding)
+ json3.contentEncoding = contentEncoding;
+ if (patterns && patterns.size > 0) {
+ const regexes = [...patterns];
+ if (regexes.length === 1)
+ json3.pattern = regexes[0].source;
+ else if (regexes.length > 1) {
+ result.schema.allOf = [
+ ...regexes.map((regex3) => ({
+ ...this.target === "draft-7" ? { type: "string" } : {},
+ pattern: regex3.source
+ }))
+ ];
+ }
+ }
+ break;
+ }
+ case "number": {
+ const json3 = _json;
+ const { minimum, maximum, format: format2, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema2._zod.bag;
+ if (typeof format2 === "string" && format2.includes("int"))
+ json3.type = "integer";
+ else
+ json3.type = "number";
+ if (typeof exclusiveMinimum === "number")
+ json3.exclusiveMinimum = exclusiveMinimum;
+ if (typeof minimum === "number") {
+ json3.minimum = minimum;
+ if (typeof exclusiveMinimum === "number") {
+ if (exclusiveMinimum >= minimum)
+ delete json3.minimum;
+ else
+ delete json3.exclusiveMinimum;
+ }
+ }
+ if (typeof exclusiveMaximum === "number")
+ json3.exclusiveMaximum = exclusiveMaximum;
+ if (typeof maximum === "number") {
+ json3.maximum = maximum;
+ if (typeof exclusiveMaximum === "number") {
+ if (exclusiveMaximum <= maximum)
+ delete json3.maximum;
+ else
+ delete json3.exclusiveMaximum;
+ }
+ }
+ if (typeof multipleOf === "number")
+ json3.multipleOf = multipleOf;
+ break;
+ }
+ case "boolean": {
+ const json3 = _json;
+ json3.type = "boolean";
+ break;
+ }
+ case "bigint": {
+ if (this.unrepresentable === "throw") {
+ throw new Error("BigInt cannot be represented in JSON Schema");
+ }
+ break;
+ }
+ case "symbol": {
+ if (this.unrepresentable === "throw") {
+ throw new Error("Symbols cannot be represented in JSON Schema");
+ }
+ break;
+ }
+ case "null": {
+ _json.type = "null";
+ break;
+ }
+ case "any": {
+ break;
+ }
+ case "unknown": {
+ break;
+ }
+ case "undefined": {
+ if (this.unrepresentable === "throw") {
+ throw new Error("Undefined cannot be represented in JSON Schema");
+ }
+ break;
+ }
+ case "void": {
+ if (this.unrepresentable === "throw") {
+ throw new Error("Void cannot be represented in JSON Schema");
+ }
+ break;
+ }
+ case "never": {
+ _json.not = {};
+ break;
+ }
+ case "date": {
+ if (this.unrepresentable === "throw") {
+ throw new Error("Date cannot be represented in JSON Schema");
+ }
+ break;
+ }
+ case "array": {
+ const json3 = _json;
+ const { minimum, maximum } = schema2._zod.bag;
+ if (typeof minimum === "number")
+ json3.minItems = minimum;
+ if (typeof maximum === "number")
+ json3.maxItems = maximum;
+ json3.type = "array";
+ json3.items = this.process(def.element, { ...params, path: [...params.path, "items"] });
+ break;
+ }
+ case "object": {
+ const json3 = _json;
+ json3.type = "object";
+ json3.properties = {};
+ const shape = def.shape;
+ for (const key in shape) {
+ json3.properties[key] = this.process(shape[key], {
+ ...params,
+ path: [...params.path, "properties", key]
+ });
+ }
+ const allKeys = new Set(Object.keys(shape));
+ const requiredKeys = new Set([...allKeys].filter((key) => {
+ const v = def.shape[key]._zod;
+ if (this.io === "input") {
+ return v.optin === void 0;
+ } else {
+ return v.optout === void 0;
+ }
+ }));
+ if (requiredKeys.size > 0) {
+ json3.required = Array.from(requiredKeys);
+ }
+ if (def.catchall?._zod.def.type === "never") {
+ json3.additionalProperties = false;
+ } else if (!def.catchall) {
+ if (this.io === "output")
+ json3.additionalProperties = false;
+ } else if (def.catchall) {
+ json3.additionalProperties = this.process(def.catchall, {
+ ...params,
+ path: [...params.path, "additionalProperties"]
+ });
+ }
+ break;
+ }
+ case "union": {
+ const json3 = _json;
+ json3.anyOf = def.options.map((x, i) => this.process(x, {
+ ...params,
+ path: [...params.path, "anyOf", i]
+ }));
+ break;
+ }
+ case "intersection": {
+ const json3 = _json;
+ const a = this.process(def.left, {
+ ...params,
+ path: [...params.path, "allOf", 0]
+ });
+ const b = this.process(def.right, {
+ ...params,
+ path: [...params.path, "allOf", 1]
+ });
+ const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
+ const allOf = [
+ ...isSimpleIntersection(a) ? a.allOf : [a],
+ ...isSimpleIntersection(b) ? b.allOf : [b]
+ ];
+ json3.allOf = allOf;
+ break;
+ }
+ case "tuple": {
+ const json3 = _json;
+ json3.type = "array";
+ const prefixItems = def.items.map((x, i) => this.process(x, { ...params, path: [...params.path, "prefixItems", i] }));
+ if (this.target === "draft-2020-12") {
+ json3.prefixItems = prefixItems;
+ } else {
+ json3.items = prefixItems;
+ }
+ if (def.rest) {
+ const rest = this.process(def.rest, {
+ ...params,
+ path: [...params.path, "items"]
+ });
+ if (this.target === "draft-2020-12") {
+ json3.items = rest;
+ } else {
+ json3.additionalItems = rest;
+ }
+ }
+ if (def.rest) {
+ json3.items = this.process(def.rest, {
+ ...params,
+ path: [...params.path, "items"]
+ });
+ }
+ const { minimum, maximum } = schema2._zod.bag;
+ if (typeof minimum === "number")
+ json3.minItems = minimum;
+ if (typeof maximum === "number")
+ json3.maxItems = maximum;
+ break;
+ }
+ case "record": {
+ const json3 = _json;
+ json3.type = "object";
+ json3.propertyNames = this.process(def.keyType, { ...params, path: [...params.path, "propertyNames"] });
+ json3.additionalProperties = this.process(def.valueType, {
+ ...params,
+ path: [...params.path, "additionalProperties"]
+ });
+ break;
+ }
+ case "map": {
+ if (this.unrepresentable === "throw") {
+ throw new Error("Map cannot be represented in JSON Schema");
+ }
+ break;
+ }
+ case "set": {
+ if (this.unrepresentable === "throw") {
+ throw new Error("Set cannot be represented in JSON Schema");
+ }
+ break;
+ }
+ case "enum": {
+ const json3 = _json;
+ const values = getEnumValues(def.entries);
+ if (values.every((v) => typeof v === "number"))
+ json3.type = "number";
+ if (values.every((v) => typeof v === "string"))
+ json3.type = "string";
+ json3.enum = values;
+ break;
+ }
+ case "literal": {
+ const json3 = _json;
+ const vals = [];
+ for (const val of def.values) {
+ if (val === void 0) {
+ if (this.unrepresentable === "throw") {
+ throw new Error("Literal `undefined` cannot be represented in JSON Schema");
+ } else {
+ }
+ } else if (typeof val === "bigint") {
+ if (this.unrepresentable === "throw") {
+ throw new Error("BigInt literals cannot be represented in JSON Schema");
+ } else {
+ vals.push(Number(val));
+ }
+ } else {
+ vals.push(val);
+ }
+ }
+ if (vals.length === 0) {
+ } else if (vals.length === 1) {
+ const val = vals[0];
+ json3.type = val === null ? "null" : typeof val;
+ json3.const = val;
+ } else {
+ if (vals.every((v) => typeof v === "number"))
+ json3.type = "number";
+ if (vals.every((v) => typeof v === "string"))
+ json3.type = "string";
+ if (vals.every((v) => typeof v === "boolean"))
+ json3.type = "string";
+ if (vals.every((v) => v === null))
+ json3.type = "null";
+ json3.enum = vals;
+ }
+ break;
+ }
+ case "file": {
+ const json3 = _json;
+ const file = {
+ type: "string",
+ format: "binary",
+ contentEncoding: "binary"
+ };
+ const { minimum, maximum, mime } = schema2._zod.bag;
+ if (minimum !== void 0)
+ file.minLength = minimum;
+ if (maximum !== void 0)
+ file.maxLength = maximum;
+ if (mime) {
+ if (mime.length === 1) {
+ file.contentMediaType = mime[0];
+ Object.assign(json3, file);
+ } else {
+ json3.anyOf = mime.map((m) => {
+ const mFile = { ...file, contentMediaType: m };
+ return mFile;
+ });
+ }
+ } else {
+ Object.assign(json3, file);
+ }
+ break;
+ }
+ case "transform": {
+ if (this.unrepresentable === "throw") {
+ throw new Error("Transforms cannot be represented in JSON Schema");
+ }
+ break;
+ }
+ case "nullable": {
+ const inner = this.process(def.innerType, params);
+ _json.anyOf = [inner, { type: "null" }];
+ break;
+ }
+ case "nonoptional": {
+ this.process(def.innerType, params);
+ result.ref = def.innerType;
+ break;
+ }
+ case "success": {
+ const json3 = _json;
+ json3.type = "boolean";
+ break;
+ }
+ case "default": {
+ this.process(def.innerType, params);
+ result.ref = def.innerType;
+ _json.default = JSON.parse(JSON.stringify(def.defaultValue));
+ break;
+ }
+ case "prefault": {
+ this.process(def.innerType, params);
+ result.ref = def.innerType;
+ if (this.io === "input")
+ _json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
+ break;
+ }
+ case "catch": {
+ this.process(def.innerType, params);
+ result.ref = def.innerType;
+ let catchValue;
+ try {
+ catchValue = def.catchValue(void 0);
+ } catch {
+ throw new Error("Dynamic catch values are not supported in JSON Schema");
+ }
+ _json.default = catchValue;
+ break;
+ }
+ case "nan": {
+ if (this.unrepresentable === "throw") {
+ throw new Error("NaN cannot be represented in JSON Schema");
+ }
+ break;
+ }
+ case "template_literal": {
+ const json3 = _json;
+ const pattern = schema2._zod.pattern;
+ if (!pattern)
+ throw new Error("Pattern not found in template literal");
+ json3.type = "string";
+ json3.pattern = pattern.source;
+ break;
+ }
+ case "pipe": {
+ const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
+ this.process(innerType, params);
+ result.ref = innerType;
+ break;
+ }
+ case "readonly": {
+ this.process(def.innerType, params);
+ result.ref = def.innerType;
+ _json.readOnly = true;
+ break;
+ }
+ // passthrough types
+ case "promise": {
+ this.process(def.innerType, params);
+ result.ref = def.innerType;
+ break;
+ }
+ case "optional": {
+ this.process(def.innerType, params);
+ result.ref = def.innerType;
+ break;
+ }
+ case "lazy": {
+ const innerType = schema2._zod.innerType;
+ this.process(innerType, params);
+ result.ref = innerType;
+ break;
+ }
+ case "custom": {
+ if (this.unrepresentable === "throw") {
+ throw new Error("Custom types cannot be represented in JSON Schema");
+ }
+ break;
+ }
+ default: {
+ def;
+ }
+ }
+ }
+ }
+ const meta = this.metadataRegistry.get(schema2);
+ if (meta)
+ Object.assign(result.schema, meta);
+ if (this.io === "input" && isTransforming(schema2)) {
+ delete result.schema.examples;
+ delete result.schema.default;
+ }
+ if (this.io === "input" && result.schema._prefault)
+ (_a = result.schema).default ?? (_a.default = result.schema._prefault);
+ delete result.schema._prefault;
+ const _result = this.seen.get(schema2);
+ return _result.schema;
+ }
+ emit(schema2, _params) {
+ const params = {
+ cycles: _params?.cycles ?? "ref",
+ reused: _params?.reused ?? "inline",
+ // unrepresentable: _params?.unrepresentable ?? "throw",
+ // uri: _params?.uri ?? ((id) => `${id}`),
+ external: _params?.external ?? void 0
+ };
+ const root2 = this.seen.get(schema2);
+ if (!root2)
+ throw new Error("Unprocessed schema. This is a bug in Zod.");
+ const makeURI = (entry) => {
+ const defsSegment = this.target === "draft-2020-12" ? "$defs" : "definitions";
+ if (params.external) {
+ const externalId = params.external.registry.get(entry[0])?.id;
+ const uriGenerator = params.external.uri ?? ((id2) => id2);
+ if (externalId) {
+ return { ref: uriGenerator(externalId) };
+ }
+ const id = entry[1].defId ?? entry[1].schema.id ?? `schema${this.counter++}`;
+ entry[1].defId = id;
+ return { defId: id, ref: `${uriGenerator("__shared")}#/${defsSegment}/${id}` };
+ }
+ if (entry[1] === root2) {
+ return { ref: "#" };
+ }
+ const uriPrefix = `#`;
+ const defUriPrefix = `${uriPrefix}/${defsSegment}/`;
+ const defId = entry[1].schema.id ?? `__schema${this.counter++}`;
+ return { defId, ref: defUriPrefix + defId };
+ };
+ const extractToDef = (entry) => {
+ if (entry[1].schema.$ref) {
+ return;
+ }
+ const seen = entry[1];
+ const { ref, defId } = makeURI(entry);
+ seen.def = { ...seen.schema };
+ if (defId)
+ seen.defId = defId;
+ const schema3 = seen.schema;
+ for (const key in schema3) {
+ delete schema3[key];
+ }
+ schema3.$ref = ref;
+ };
+ if (params.cycles === "throw") {
+ for (const entry of this.seen.entries()) {
+ const seen = entry[1];
+ if (seen.cycle) {
+ throw new Error(`Cycle detected: #/${seen.cycle?.join("/")}/
+
+Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
+ }
+ }
+ }
+ for (const entry of this.seen.entries()) {
+ const seen = entry[1];
+ if (schema2 === entry[0]) {
+ extractToDef(entry);
+ continue;
+ }
+ if (params.external) {
+ const ext = params.external.registry.get(entry[0])?.id;
+ if (schema2 !== entry[0] && ext) {
+ extractToDef(entry);
+ continue;
+ }
+ }
+ const id = this.metadataRegistry.get(entry[0])?.id;
+ if (id) {
+ extractToDef(entry);
+ continue;
+ }
+ if (seen.cycle) {
+ extractToDef(entry);
+ continue;
+ }
+ if (seen.count > 1) {
+ if (params.reused === "ref") {
+ extractToDef(entry);
+ continue;
+ }
+ }
+ }
+ const flattenRef = (zodSchema, params2) => {
+ const seen = this.seen.get(zodSchema);
+ const schema3 = seen.def ?? seen.schema;
+ const _cached = { ...schema3 };
+ if (seen.ref === null) {
+ return;
+ }
+ const ref = seen.ref;
+ seen.ref = null;
+ if (ref) {
+ flattenRef(ref, params2);
+ const refSchema = this.seen.get(ref).schema;
+ if (refSchema.$ref && params2.target === "draft-7") {
+ schema3.allOf = schema3.allOf ?? [];
+ schema3.allOf.push(refSchema);
+ } else {
+ Object.assign(schema3, refSchema);
+ Object.assign(schema3, _cached);
+ }
+ }
+ if (!seen.isParent)
+ this.override({
+ zodSchema,
+ jsonSchema: schema3,
+ path: seen.path ?? []
+ });
+ };
+ for (const entry of [...this.seen.entries()].reverse()) {
+ flattenRef(entry[0], { target: this.target });
+ }
+ const result = {};
+ if (this.target === "draft-2020-12") {
+ result.$schema = "https://json-schema.org/draft/2020-12/schema";
+ } else if (this.target === "draft-7") {
+ result.$schema = "http://json-schema.org/draft-07/schema#";
+ } else {
+ console.warn(`Invalid target: ${this.target}`);
+ }
+ if (params.external?.uri) {
+ const id = params.external.registry.get(schema2)?.id;
+ if (!id)
+ throw new Error("Schema is missing an `id` property");
+ result.$id = params.external.uri(id);
+ }
+ Object.assign(result, root2.def);
+ const defs = params.external?.defs ?? {};
+ for (const entry of this.seen.entries()) {
+ const seen = entry[1];
+ if (seen.def && seen.defId) {
+ defs[seen.defId] = seen.def;
+ }
+ }
+ if (params.external) {
+ } else {
+ if (Object.keys(defs).length > 0) {
+ if (this.target === "draft-2020-12") {
+ result.$defs = defs;
+ } else {
+ result.definitions = defs;
+ }
+ }
+ }
+ try {
+ return JSON.parse(JSON.stringify(result));
+ } catch (_err) {
+ throw new Error("Error converting schema to JSON.");
+ }
+ }
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/json-schema.js
+var json_schema_exports = {};
+var init_json_schema = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/json-schema.js"() {
+ }
+});
+
+// ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/index.js
+var core_exports2 = {};
+__export(core_exports2, {
+ $ZodAny: () => $ZodAny,
+ $ZodArray: () => $ZodArray,
+ $ZodAsyncError: () => $ZodAsyncError,
+ $ZodBase64: () => $ZodBase64,
+ $ZodBase64URL: () => $ZodBase64URL,
+ $ZodBigInt: () => $ZodBigInt,
+ $ZodBigIntFormat: () => $ZodBigIntFormat,
+ $ZodBoolean: () => $ZodBoolean,
+ $ZodCIDRv4: () => $ZodCIDRv4,
+ $ZodCIDRv6: () => $ZodCIDRv6,
+ $ZodCUID: () => $ZodCUID,
+ $ZodCUID2: () => $ZodCUID2,
+ $ZodCatch: () => $ZodCatch,
+ $ZodCheck: () => $ZodCheck,
+ $ZodCheckBigIntFormat: () => $ZodCheckBigIntFormat,
+ $ZodCheckEndsWith: () => $ZodCheckEndsWith,
+ $ZodCheckGreaterThan: () => $ZodCheckGreaterThan,
+ $ZodCheckIncludes: () => $ZodCheckIncludes,
+ $ZodCheckLengthEquals: () => $ZodCheckLengthEquals,
+ $ZodCheckLessThan: () => $ZodCheckLessThan,
+ $ZodCheckLowerCase: () => $ZodCheckLowerCase,
+ $ZodCheckMaxLength: () => $ZodCheckMaxLength,
+ $ZodCheckMaxSize: () => $ZodCheckMaxSize,
+ $ZodCheckMimeType: () => $ZodCheckMimeType,
+ $ZodCheckMinLength: () => $ZodCheckMinLength,
+ $ZodCheckMinSize: () => $ZodCheckMinSize,
+ $ZodCheckMultipleOf: () => $ZodCheckMultipleOf,
+ $ZodCheckNumberFormat: () => $ZodCheckNumberFormat,
+ $ZodCheckOverwrite: () => $ZodCheckOverwrite,
+ $ZodCheckProperty: () => $ZodCheckProperty,
+ $ZodCheckRegex: () => $ZodCheckRegex,
+ $ZodCheckSizeEquals: () => $ZodCheckSizeEquals,
+ $ZodCheckStartsWith: () => $ZodCheckStartsWith,
+ $ZodCheckStringFormat: () => $ZodCheckStringFormat,
+ $ZodCheckUpperCase: () => $ZodCheckUpperCase,
+ $ZodCustom: () => $ZodCustom,
+ $ZodCustomStringFormat: () => $ZodCustomStringFormat,
+ $ZodDate: () => $ZodDate,
+ $ZodDefault: () => $ZodDefault,
+ $ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
+ $ZodE164: () => $ZodE164,
+ $ZodEmail: () => $ZodEmail,
+ $ZodEmoji: () => $ZodEmoji,
+ $ZodEnum: () => $ZodEnum,
+ $ZodError: () => $ZodError,
+ $ZodFile: () => $ZodFile,
+ $ZodFunction: () => $ZodFunction,
+ $ZodGUID: () => $ZodGUID,
+ $ZodIPv4: () => $ZodIPv4,
+ $ZodIPv6: () => $ZodIPv6,
+ $ZodISODate: () => $ZodISODate,
+ $ZodISODateTime: () => $ZodISODateTime,
+ $ZodISODuration: () => $ZodISODuration,
+ $ZodISOTime: () => $ZodISOTime,
+ $ZodIntersection: () => $ZodIntersection,
+ $ZodJWT: () => $ZodJWT,
+ $ZodKSUID: () => $ZodKSUID,
+ $ZodLazy: () => $ZodLazy,
+ $ZodLiteral: () => $ZodLiteral,
+ $ZodMap: () => $ZodMap,
+ $ZodNaN: () => $ZodNaN,
+ $ZodNanoID: () => $ZodNanoID,
+ $ZodNever: () => $ZodNever,
+ $ZodNonOptional: () => $ZodNonOptional,
+ $ZodNull: () => $ZodNull,
+ $ZodNullable: () => $ZodNullable,
+ $ZodNumber: () => $ZodNumber,
+ $ZodNumberFormat: () => $ZodNumberFormat,
+ $ZodObject: () => $ZodObject,
+ $ZodOptional: () => $ZodOptional,
+ $ZodPipe: () => $ZodPipe,
+ $ZodPrefault: () => $ZodPrefault,
+ $ZodPromise: () => $ZodPromise,
+ $ZodReadonly: () => $ZodReadonly,
+ $ZodRealError: () => $ZodRealError,
+ $ZodRecord: () => $ZodRecord,
+ $ZodRegistry: () => $ZodRegistry,
+ $ZodSet: () => $ZodSet,
+ $ZodString: () => $ZodString,
+ $ZodStringFormat: () => $ZodStringFormat,
+ $ZodSuccess: () => $ZodSuccess,
+ $ZodSymbol: () => $ZodSymbol,
+ $ZodTemplateLiteral: () => $ZodTemplateLiteral,
+ $ZodTransform: () => $ZodTransform,
+ $ZodTuple: () => $ZodTuple,
+ $ZodType: () => $ZodType,
+ $ZodULID: () => $ZodULID,
+ $ZodURL: () => $ZodURL,
+ $ZodUUID: () => $ZodUUID,
+ $ZodUndefined: () => $ZodUndefined,
+ $ZodUnion: () => $ZodUnion,
+ $ZodUnknown: () => $ZodUnknown,
+ $ZodVoid: () => $ZodVoid,
+ $ZodXID: () => $ZodXID,
+ $brand: () => $brand,
+ $constructor: () => $constructor,
+ $input: () => $input,
+ $output: () => $output,
+ Doc: () => Doc,
+ JSONSchema: () => json_schema_exports,
+ JSONSchemaGenerator: () => JSONSchemaGenerator,
+ NEVER: () => NEVER4,
+ TimePrecision: () => TimePrecision,
+ _any: () => _any,
+ _array: () => _array,
+ _base64: () => _base64,
+ _base64url: () => _base64url,
+ _bigint: () => _bigint,
+ _boolean: () => _boolean,
+ _catch: () => _catch,
+ _cidrv4: () => _cidrv4,
+ _cidrv6: () => _cidrv6,
+ _coercedBigint: () => _coercedBigint,
+ _coercedBoolean: () => _coercedBoolean,
+ _coercedDate: () => _coercedDate,
+ _coercedNumber: () => _coercedNumber,
+ _coercedString: () => _coercedString,
+ _cuid: () => _cuid,
+ _cuid2: () => _cuid2,
+ _custom: () => _custom,
+ _date: () => _date,
+ _default: () => _default,
+ _discriminatedUnion: () => _discriminatedUnion,
+ _e164: () => _e164,
+ _email: () => _email,
+ _emoji: () => _emoji2,
+ _endsWith: () => _endsWith,
+ _enum: () => _enum,
+ _file: () => _file,
+ _float32: () => _float32,
+ _float64: () => _float64,
+ _gt: () => _gt,
+ _gte: () => _gte,
+ _guid: () => _guid,
+ _includes: () => _includes,
+ _int: () => _int,
+ _int32: () => _int32,
+ _int64: () => _int64,
+ _intersection: () => _intersection,
+ _ipv4: () => _ipv4,
+ _ipv6: () => _ipv6,
+ _isoDate: () => _isoDate,
+ _isoDateTime: () => _isoDateTime,
+ _isoDuration: () => _isoDuration,
+ _isoTime: () => _isoTime,
+ _jwt: () => _jwt,
+ _ksuid: () => _ksuid,
+ _lazy: () => _lazy,
+ _length: () => _length,
+ _literal: () => _literal,
+ _lowercase: () => _lowercase,
+ _lt: () => _lt,
+ _lte: () => _lte,
+ _map: () => _map,
+ _max: () => _lte,
+ _maxLength: () => _maxLength,
+ _maxSize: () => _maxSize,
+ _mime: () => _mime,
+ _min: () => _gte,
+ _minLength: () => _minLength,
+ _minSize: () => _minSize,
+ _multipleOf: () => _multipleOf,
+ _nan: () => _nan,
+ _nanoid: () => _nanoid,
+ _nativeEnum: () => _nativeEnum,
+ _negative: () => _negative,
+ _never: () => _never,
+ _nonnegative: () => _nonnegative,
+ _nonoptional: () => _nonoptional,
+ _nonpositive: () => _nonpositive,
+ _normalize: () => _normalize,
+ _null: () => _null2,
+ _nullable: () => _nullable,
+ _number: () => _number,
+ _optional: () => _optional,
+ _overwrite: () => _overwrite,
+ _parse: () => _parse,
+ _parseAsync: () => _parseAsync,
+ _pipe: () => _pipe,
+ _positive: () => _positive,
+ _promise: () => _promise,
+ _property: () => _property,
+ _readonly: () => _readonly,
+ _record: () => _record,
+ _refine: () => _refine,
+ _regex: () => _regex,
+ _safeParse: () => _safeParse,
+ _safeParseAsync: () => _safeParseAsync,
+ _set: () => _set,
+ _size: () => _size,
+ _startsWith: () => _startsWith,
+ _string: () => _string,
+ _stringFormat: () => _stringFormat,
+ _stringbool: () => _stringbool,
+ _success: () => _success,
+ _symbol: () => _symbol,
+ _templateLiteral: () => _templateLiteral,
+ _toLowerCase: () => _toLowerCase,
+ _toUpperCase: () => _toUpperCase,
+ _transform: () => _transform,
+ _trim: () => _trim,
+ _tuple: () => _tuple,
+ _uint32: () => _uint32,
+ _uint64: () => _uint64,
+ _ulid: () => _ulid,
+ _undefined: () => _undefined2,
+ _union: () => _union,
+ _unknown: () => _unknown,
+ _uppercase: () => _uppercase,
+ _url: () => _url2,
+ _uuid: () => _uuid,
+ _uuidv4: () => _uuidv4,
+ _uuidv6: () => _uuidv6,
+ _uuidv7: () => _uuidv7,
+ _void: () => _void,
+ _xid: () => _xid,
+ clone: () => clone,
+ config: () => config,
+ flattenError: () => flattenError2,
+ formatError: () => formatError,
+ function: () => _function,
+ globalConfig: () => globalConfig,
+ globalRegistry: () => globalRegistry,
+ isValidBase64: () => isValidBase64,
+ isValidBase64URL: () => isValidBase64URL,
+ isValidJWT: () => isValidJWT4,
+ locales: () => locales_exports,
+ parse: () => parse2,
+ parseAsync: () => parseAsync,
+ prettifyError: () => prettifyError,
+ regexes: () => regexes_exports,
+ registry: () => registry2,
+ safeParse: () => safeParse,
+ safeParseAsync: () => safeParseAsync,
+ toDotPath: () => toDotPath,
+ toJSONSchema: () => toJSONSchema,
+ treeifyError: () => treeifyError,
+ util: () => util_exports,
+ version: () => version
+});
+var init_core2 = __esm({
+ "../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/index.js"() {
+ init_core();
+ init_parse();
+ init_errors2();
+ init_schemas();
+ init_checks();
+ init_versions();
+ init_util2();
+ init_regexes();
+ init_locales();
+ init_registries();
+ init_doc();
+ init_function();
+ init_api();
+ init_to_json_schema();
+ init_json_schema();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js
+var ignoreOverride2, jsonDescription, defaultOptions, getDefaultOptions;
+var init_Options = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js"() {
+ ignoreOverride2 = Symbol("Let zodToJsonSchema decide on which parser to use");
+ jsonDescription = (jsonSchema2, def) => {
+ if (def.description) {
+ try {
+ return {
+ ...jsonSchema2,
+ ...JSON.parse(def.description)
+ };
+ } catch {
+ }
+ }
+ return jsonSchema2;
+ };
+ defaultOptions = {
+ name: void 0,
+ $refStrategy: "root",
+ basePath: ["#"],
+ effectStrategy: "input",
+ pipeStrategy: "all",
+ dateStrategy: "format:date-time",
+ mapStrategy: "entries",
+ removeAdditionalStrategy: "passthrough",
+ allowedAdditionalProperties: true,
+ rejectedAdditionalProperties: false,
+ definitionPath: "definitions",
+ target: "jsonSchema7",
+ strictUnions: false,
+ definitions: {},
+ errorMessages: false,
+ markdownDescription: false,
+ patternStrategy: "escape",
+ applyRegexFlags: false,
+ emailStrategy: "format:email",
+ base64Strategy: "contentEncoding:base64",
+ nameStrategy: "ref",
+ openAiAnyTypeName: "OpenAiAnyType"
+ };
+ getDefaultOptions = (options) => typeof options === "string" ? {
+ ...defaultOptions,
+ name: options
+ } : {
+ ...defaultOptions,
+ ...options
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Refs.js
+var getRefs;
+var init_Refs = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Refs.js"() {
+ init_Options();
+ getRefs = (options) => {
+ const _options = getDefaultOptions(options);
+ const currentPath = _options.name !== void 0 ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
+ return {
+ ..._options,
+ flags: { hasReferencedOpenAiAnyType: false },
+ currentPath,
+ propertyPath: void 0,
+ seen: new Map(Object.entries(_options.definitions).map(([name, def]) => [
+ def._def,
+ {
+ def: def._def,
+ path: [..._options.basePath, _options.definitionPath, name],
+ // Resolution of references will be forced even though seen, so it's ok that the schema is undefined here for now.
+ jsonSchema: void 0
+ }
+ ]))
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
+function addErrorMessage(res, key, errorMessage, refs) {
+ if (!refs?.errorMessages)
+ return;
+ if (errorMessage) {
+ res.errorMessage = {
+ ...res.errorMessage,
+ [key]: errorMessage
+ };
+ }
+}
+function setResponseValueAndErrors(res, key, value2, errorMessage, refs) {
+ res[key] = value2;
+ addErrorMessage(res, key, errorMessage, refs);
+}
+var init_errorMessages = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/errorMessages.js"() {
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
+var getRelativePath;
+var init_getRelativePath = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js"() {
+ getRelativePath = (pathA, pathB) => {
+ let i = 0;
+ for (; i < pathA.length && i < pathB.length; i++) {
+ if (pathA[i] !== pathB[i])
+ break;
+ }
+ return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
+function parseAnyDef(refs) {
+ if (refs.target !== "openAi") {
+ return {};
+ }
+ const anyDefinitionPath = [
+ ...refs.basePath,
+ refs.definitionPath,
+ refs.openAiAnyTypeName
+ ];
+ refs.flags.hasReferencedOpenAiAnyType = true;
+ return {
+ $ref: refs.$refStrategy === "relative" ? getRelativePath(anyDefinitionPath, refs.currentPath) : anyDefinitionPath.join("/")
+ };
+}
+var init_any = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/any.js"() {
+ init_getRelativePath();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
+function parseArrayDef(def, refs) {
+ const res = {
+ type: "array"
+ };
+ if (def.type?._def && def.type?._def?.typeName !== ZodFirstPartyTypeKind2.ZodAny) {
+ res.items = parseDef(def.type._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "items"]
+ });
+ }
+ if (def.minLength) {
+ setResponseValueAndErrors(res, "minItems", def.minLength.value, def.minLength.message, refs);
+ }
+ if (def.maxLength) {
+ setResponseValueAndErrors(res, "maxItems", def.maxLength.value, def.maxLength.message, refs);
+ }
+ if (def.exactLength) {
+ setResponseValueAndErrors(res, "minItems", def.exactLength.value, def.exactLength.message, refs);
+ setResponseValueAndErrors(res, "maxItems", def.exactLength.value, def.exactLength.message, refs);
+ }
+ return res;
+}
+var init_array = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/array.js"() {
+ init_zod();
+ init_errorMessages();
+ init_parseDef();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
+function parseBigintDef(def, refs) {
+ const res = {
+ type: "integer",
+ format: "int64"
+ };
+ if (!def.checks)
+ return res;
+ for (const check of def.checks) {
+ switch (check.kind) {
+ case "min":
+ if (refs.target === "jsonSchema7") {
+ if (check.inclusive) {
+ setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
+ } else {
+ setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
+ }
+ } else {
+ if (!check.inclusive) {
+ res.exclusiveMinimum = true;
+ }
+ setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
+ }
+ break;
+ case "max":
+ if (refs.target === "jsonSchema7") {
+ if (check.inclusive) {
+ setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
+ } else {
+ setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
+ }
+ } else {
+ if (!check.inclusive) {
+ res.exclusiveMaximum = true;
+ }
+ setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
+ }
+ break;
+ case "multipleOf":
+ setResponseValueAndErrors(res, "multipleOf", check.value, check.message, refs);
+ break;
+ }
+ }
+ return res;
+}
+var init_bigint = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js"() {
+ init_errorMessages();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
+function parseBooleanDef() {
+ return {
+ type: "boolean"
+ };
+}
+var init_boolean = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js"() {
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
+function parseBrandedDef(_def, refs) {
+ return parseDef(_def.type._def, refs);
+}
+var init_branded = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js"() {
+ init_parseDef();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
+var parseCatchDef;
+var init_catch = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js"() {
+ init_parseDef();
+ parseCatchDef = (def, refs) => {
+ return parseDef(def.innerType._def, refs);
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
+function parseDateDef(def, refs, overrideDateStrategy) {
+ const strategy = overrideDateStrategy ?? refs.dateStrategy;
+ if (Array.isArray(strategy)) {
+ return {
+ anyOf: strategy.map((item, i) => parseDateDef(def, refs, item))
+ };
+ }
+ switch (strategy) {
+ case "string":
+ case "format:date-time":
+ return {
+ type: "string",
+ format: "date-time"
+ };
+ case "format:date":
+ return {
+ type: "string",
+ format: "date"
+ };
+ case "integer":
+ return integerDateParser(def, refs);
+ }
+}
+var integerDateParser;
+var init_date = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/date.js"() {
+ init_errorMessages();
+ integerDateParser = (def, refs) => {
+ const res = {
+ type: "integer",
+ format: "unix-time"
+ };
+ if (refs.target === "openApi3") {
+ return res;
+ }
+ for (const check of def.checks) {
+ switch (check.kind) {
+ case "min":
+ setResponseValueAndErrors(
+ res,
+ "minimum",
+ check.value,
+ // This is in milliseconds
+ check.message,
+ refs
+ );
+ break;
+ case "max":
+ setResponseValueAndErrors(
+ res,
+ "maximum",
+ check.value,
+ // This is in milliseconds
+ check.message,
+ refs
+ );
+ break;
+ }
+ }
+ return res;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
+function parseDefaultDef(_def, refs) {
+ return {
+ ...parseDef(_def.innerType._def, refs),
+ default: _def.defaultValue()
+ };
+}
+var init_default = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/default.js"() {
+ init_parseDef();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
+function parseEffectsDef(_def, refs) {
+ return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
+}
+var init_effects = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js"() {
+ init_parseDef();
+ init_any();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
+function parseEnumDef(def) {
+ return {
+ type: "string",
+ enum: Array.from(def.values)
+ };
+}
+var init_enum = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js"() {
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
+function parseIntersectionDef(def, refs) {
+ const allOf = [
+ parseDef(def.left._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "allOf", "0"]
+ }),
+ parseDef(def.right._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "allOf", "1"]
+ })
+ ].filter((x) => !!x);
+ let unevaluatedProperties = refs.target === "jsonSchema2019-09" ? { unevaluatedProperties: false } : void 0;
+ const mergedAllOf = [];
+ allOf.forEach((schema2) => {
+ if (isJsonSchema7AllOfType(schema2)) {
+ mergedAllOf.push(...schema2.allOf);
+ if (schema2.unevaluatedProperties === void 0) {
+ unevaluatedProperties = void 0;
+ }
+ } else {
+ let nestedSchema = schema2;
+ if ("additionalProperties" in schema2 && schema2.additionalProperties === false) {
+ const { additionalProperties, ...rest } = schema2;
+ nestedSchema = rest;
+ } else {
+ unevaluatedProperties = void 0;
+ }
+ mergedAllOf.push(nestedSchema);
+ }
+ });
+ return mergedAllOf.length ? {
+ allOf: mergedAllOf,
+ ...unevaluatedProperties
+ } : void 0;
+}
+var isJsonSchema7AllOfType;
+var init_intersection = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js"() {
+ init_parseDef();
+ isJsonSchema7AllOfType = (type2) => {
+ if ("type" in type2 && type2.type === "string")
+ return false;
+ return "allOf" in type2;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
+function parseLiteralDef(def, refs) {
+ const parsedType4 = typeof def.value;
+ if (parsedType4 !== "bigint" && parsedType4 !== "number" && parsedType4 !== "boolean" && parsedType4 !== "string") {
+ return {
+ type: Array.isArray(def.value) ? "array" : "object"
+ };
+ }
+ if (refs.target === "openApi3") {
+ return {
+ type: parsedType4 === "bigint" ? "integer" : parsedType4,
+ enum: [def.value]
+ };
+ }
+ return {
+ type: parsedType4 === "bigint" ? "integer" : parsedType4,
+ const: def.value
+ };
+}
+var init_literal = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js"() {
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
+function parseStringDef(def, refs) {
+ const res = {
+ type: "string"
+ };
+ if (def.checks) {
+ for (const check of def.checks) {
+ switch (check.kind) {
+ case "min":
+ setResponseValueAndErrors(res, "minLength", typeof res.minLength === "number" ? Math.max(res.minLength, check.value) : check.value, check.message, refs);
+ break;
+ case "max":
+ setResponseValueAndErrors(res, "maxLength", typeof res.maxLength === "number" ? Math.min(res.maxLength, check.value) : check.value, check.message, refs);
+ break;
+ case "email":
+ switch (refs.emailStrategy) {
+ case "format:email":
+ addFormat(res, "email", check.message, refs);
+ break;
+ case "format:idn-email":
+ addFormat(res, "idn-email", check.message, refs);
+ break;
+ case "pattern:zod":
+ addPattern(res, zodPatterns.email, check.message, refs);
+ break;
+ }
+ break;
+ case "url":
+ addFormat(res, "uri", check.message, refs);
+ break;
+ case "uuid":
+ addFormat(res, "uuid", check.message, refs);
+ break;
+ case "regex":
+ addPattern(res, check.regex, check.message, refs);
+ break;
+ case "cuid":
+ addPattern(res, zodPatterns.cuid, check.message, refs);
+ break;
+ case "cuid2":
+ addPattern(res, zodPatterns.cuid2, check.message, refs);
+ break;
+ case "startsWith":
+ addPattern(res, RegExp(`^${escapeLiteralCheckValue(check.value, refs)}`), check.message, refs);
+ break;
+ case "endsWith":
+ addPattern(res, RegExp(`${escapeLiteralCheckValue(check.value, refs)}$`), check.message, refs);
+ break;
+ case "datetime":
+ addFormat(res, "date-time", check.message, refs);
+ break;
+ case "date":
+ addFormat(res, "date", check.message, refs);
+ break;
+ case "time":
+ addFormat(res, "time", check.message, refs);
+ break;
+ case "duration":
+ addFormat(res, "duration", check.message, refs);
+ break;
+ case "length":
+ setResponseValueAndErrors(res, "minLength", typeof res.minLength === "number" ? Math.max(res.minLength, check.value) : check.value, check.message, refs);
+ setResponseValueAndErrors(res, "maxLength", typeof res.maxLength === "number" ? Math.min(res.maxLength, check.value) : check.value, check.message, refs);
+ break;
+ case "includes": {
+ addPattern(res, RegExp(escapeLiteralCheckValue(check.value, refs)), check.message, refs);
+ break;
+ }
+ case "ip": {
+ if (check.version !== "v6") {
+ addFormat(res, "ipv4", check.message, refs);
+ }
+ if (check.version !== "v4") {
+ addFormat(res, "ipv6", check.message, refs);
+ }
+ break;
+ }
+ case "base64url":
+ addPattern(res, zodPatterns.base64url, check.message, refs);
+ break;
+ case "jwt":
+ addPattern(res, zodPatterns.jwt, check.message, refs);
+ break;
+ case "cidr": {
+ if (check.version !== "v6") {
+ addPattern(res, zodPatterns.ipv4Cidr, check.message, refs);
+ }
+ if (check.version !== "v4") {
+ addPattern(res, zodPatterns.ipv6Cidr, check.message, refs);
+ }
+ break;
+ }
+ case "emoji":
+ addPattern(res, zodPatterns.emoji(), check.message, refs);
+ break;
+ case "ulid": {
+ addPattern(res, zodPatterns.ulid, check.message, refs);
+ break;
+ }
+ case "base64": {
+ switch (refs.base64Strategy) {
+ case "format:binary": {
+ addFormat(res, "binary", check.message, refs);
+ break;
+ }
+ case "contentEncoding:base64": {
+ setResponseValueAndErrors(res, "contentEncoding", "base64", check.message, refs);
+ break;
+ }
+ case "pattern:zod": {
+ addPattern(res, zodPatterns.base64, check.message, refs);
+ break;
+ }
+ }
+ break;
+ }
+ case "nanoid": {
+ addPattern(res, zodPatterns.nanoid, check.message, refs);
+ }
+ case "toLowerCase":
+ case "toUpperCase":
+ case "trim":
+ break;
+ default:
+ /* @__PURE__ */ ((_) => {
+ })(check);
+ }
+ }
+ }
+ return res;
+}
+function escapeLiteralCheckValue(literal, refs) {
+ return refs.patternStrategy === "escape" ? escapeNonAlphaNumeric(literal) : literal;
+}
+function escapeNonAlphaNumeric(source) {
+ let result = "";
+ for (let i = 0; i < source.length; i++) {
+ if (!ALPHA_NUMERIC2.has(source[i])) {
+ result += "\\";
+ }
+ result += source[i];
+ }
+ return result;
+}
+function addFormat(schema2, value2, message, refs) {
+ if (schema2.format || schema2.anyOf?.some((x) => x.format)) {
+ if (!schema2.anyOf) {
+ schema2.anyOf = [];
+ }
+ if (schema2.format) {
+ schema2.anyOf.push({
+ format: schema2.format,
+ ...schema2.errorMessage && refs.errorMessages && {
+ errorMessage: { format: schema2.errorMessage.format }
+ }
+ });
+ delete schema2.format;
+ if (schema2.errorMessage) {
+ delete schema2.errorMessage.format;
+ if (Object.keys(schema2.errorMessage).length === 0) {
+ delete schema2.errorMessage;
+ }
+ }
+ }
+ schema2.anyOf.push({
+ format: value2,
+ ...message && refs.errorMessages && { errorMessage: { format: message } }
+ });
+ } else {
+ setResponseValueAndErrors(schema2, "format", value2, message, refs);
+ }
+}
+function addPattern(schema2, regex3, message, refs) {
+ if (schema2.pattern || schema2.allOf?.some((x) => x.pattern)) {
+ if (!schema2.allOf) {
+ schema2.allOf = [];
+ }
+ if (schema2.pattern) {
+ schema2.allOf.push({
+ pattern: schema2.pattern,
+ ...schema2.errorMessage && refs.errorMessages && {
+ errorMessage: { pattern: schema2.errorMessage.pattern }
+ }
+ });
+ delete schema2.pattern;
+ if (schema2.errorMessage) {
+ delete schema2.errorMessage.pattern;
+ if (Object.keys(schema2.errorMessage).length === 0) {
+ delete schema2.errorMessage;
+ }
+ }
+ }
+ schema2.allOf.push({
+ pattern: stringifyRegExpWithFlags(regex3, refs),
+ ...message && refs.errorMessages && { errorMessage: { pattern: message } }
+ });
+ } else {
+ setResponseValueAndErrors(schema2, "pattern", stringifyRegExpWithFlags(regex3, refs), message, refs);
+ }
+}
+function stringifyRegExpWithFlags(regex3, refs) {
+ if (!refs.applyRegexFlags || !regex3.flags) {
+ return regex3.source;
+ }
+ const flags = {
+ i: regex3.flags.includes("i"),
+ m: regex3.flags.includes("m"),
+ s: regex3.flags.includes("s")
+ // `.` matches newlines
+ };
+ const source = flags.i ? regex3.source.toLowerCase() : regex3.source;
+ let pattern = "";
+ let isEscaped = false;
+ let inCharGroup = false;
+ let inCharRange = false;
+ for (let i = 0; i < source.length; i++) {
+ if (isEscaped) {
+ pattern += source[i];
+ isEscaped = false;
+ continue;
+ }
+ if (flags.i) {
+ if (inCharGroup) {
+ if (source[i].match(/[a-z]/)) {
+ if (inCharRange) {
+ pattern += source[i];
+ pattern += `${source[i - 2]}-${source[i]}`.toUpperCase();
+ inCharRange = false;
+ } else if (source[i + 1] === "-" && source[i + 2]?.match(/[a-z]/)) {
+ pattern += source[i];
+ inCharRange = true;
+ } else {
+ pattern += `${source[i]}${source[i].toUpperCase()}`;
+ }
+ continue;
+ }
+ } else if (source[i].match(/[a-z]/)) {
+ pattern += `[${source[i]}${source[i].toUpperCase()}]`;
+ continue;
+ }
+ }
+ if (flags.m) {
+ if (source[i] === "^") {
+ pattern += `(^|(?<=[\r
+]))`;
+ continue;
+ } else if (source[i] === "$") {
+ pattern += `($|(?=[\r
+]))`;
+ continue;
+ }
+ }
+ if (flags.s && source[i] === ".") {
+ pattern += inCharGroup ? `${source[i]}\r
+` : `[${source[i]}\r
+]`;
+ continue;
+ }
+ pattern += source[i];
+ if (source[i] === "\\") {
+ isEscaped = true;
+ } else if (inCharGroup && source[i] === "]") {
+ inCharGroup = false;
+ } else if (!inCharGroup && source[i] === "[") {
+ inCharGroup = true;
+ }
+ }
+ try {
+ new RegExp(pattern);
+ } catch {
+ console.warn(`Could not convert regex pattern at ${refs.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`);
+ return regex3.source;
+ }
+ return pattern;
+}
+var emojiRegex4, zodPatterns, ALPHA_NUMERIC2;
+var init_string = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/string.js"() {
+ init_errorMessages();
+ emojiRegex4 = void 0;
+ zodPatterns = {
+ /**
+ * `c` was changed to `[cC]` to replicate /i flag
+ */
+ cuid: /^[cC][^\s-]{8,}$/,
+ cuid2: /^[0-9a-z]+$/,
+ ulid: /^[0-9A-HJKMNP-TV-Z]{26}$/,
+ /**
+ * `a-z` was added to replicate /i flag
+ */
+ email: /^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,
+ /**
+ * Constructed a valid Unicode RegExp
+ *
+ * Lazily instantiate since this type of regex isn't supported
+ * in all envs (e.g. React Native).
+ *
+ * See:
+ * https://github.com/colinhacks/zod/issues/2433
+ * Fix in Zod:
+ * https://github.com/colinhacks/zod/commit/9340fd51e48576a75adc919bff65dbc4a5d4c99b
+ */
+ emoji: () => {
+ if (emojiRegex4 === void 0) {
+ emojiRegex4 = RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "u");
+ }
+ return emojiRegex4;
+ },
+ /**
+ * Unused
+ */
+ uuid: /^[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}$/,
+ /**
+ * Unused
+ */
+ ipv4: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,
+ ipv4Cidr: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,
+ /**
+ * Unused
+ */
+ ipv6: /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,
+ ipv6Cidr: /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,
+ base64: /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,
+ base64url: /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,
+ nanoid: /^[a-zA-Z0-9_-]{21}$/,
+ jwt: /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/
+ };
+ ALPHA_NUMERIC2 = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
+function parseRecordDef(def, refs) {
+ if (refs.target === "openAi") {
+ console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
+ }
+ if (refs.target === "openApi3" && def.keyType?._def.typeName === ZodFirstPartyTypeKind2.ZodEnum) {
+ return {
+ type: "object",
+ required: def.keyType._def.values,
+ properties: def.keyType._def.values.reduce((acc, key) => ({
+ ...acc,
+ [key]: parseDef(def.valueType._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "properties", key]
+ }) ?? parseAnyDef(refs)
+ }), {}),
+ additionalProperties: refs.rejectedAdditionalProperties
+ };
+ }
+ const schema2 = {
+ type: "object",
+ additionalProperties: parseDef(def.valueType._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "additionalProperties"]
+ }) ?? refs.allowedAdditionalProperties
+ };
+ if (refs.target === "openApi3") {
+ return schema2;
+ }
+ if (def.keyType?._def.typeName === ZodFirstPartyTypeKind2.ZodString && def.keyType._def.checks?.length) {
+ const { type: type2, ...keyType } = parseStringDef(def.keyType._def, refs);
+ return {
+ ...schema2,
+ propertyNames: keyType
+ };
+ } else if (def.keyType?._def.typeName === ZodFirstPartyTypeKind2.ZodEnum) {
+ return {
+ ...schema2,
+ propertyNames: {
+ enum: def.keyType._def.values
+ }
+ };
+ } else if (def.keyType?._def.typeName === ZodFirstPartyTypeKind2.ZodBranded && def.keyType._def.type._def.typeName === ZodFirstPartyTypeKind2.ZodString && def.keyType._def.type._def.checks?.length) {
+ const { type: type2, ...keyType } = parseBrandedDef(def.keyType._def, refs);
+ return {
+ ...schema2,
+ propertyNames: keyType
+ };
+ }
+ return schema2;
+}
+var init_record = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js"() {
+ init_zod();
+ init_parseDef();
+ init_string();
+ init_branded();
+ init_any();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
+function parseMapDef(def, refs) {
+ if (refs.mapStrategy === "record") {
+ return parseRecordDef(def, refs);
+ }
+ const keys = parseDef(def.keyType._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "items", "items", "0"]
+ }) || parseAnyDef(refs);
+ const values = parseDef(def.valueType._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "items", "items", "1"]
+ }) || parseAnyDef(refs);
+ return {
+ type: "array",
+ maxItems: 125,
+ items: {
+ type: "array",
+ items: [keys, values],
+ minItems: 2,
+ maxItems: 2
+ }
+ };
+}
+var init_map = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/map.js"() {
+ init_parseDef();
+ init_record();
+ init_any();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
+function parseNativeEnumDef(def) {
+ const object2 = def.values;
+ const actualKeys = Object.keys(def.values).filter((key) => {
+ return typeof object2[object2[key]] !== "number";
+ });
+ const actualValues = actualKeys.map((key) => object2[key]);
+ const parsedTypes = Array.from(new Set(actualValues.map((values) => typeof values)));
+ return {
+ type: parsedTypes.length === 1 ? parsedTypes[0] === "string" ? "string" : "number" : ["string", "number"],
+ enum: actualValues
+ };
+}
+var init_nativeEnum = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js"() {
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
+function parseNeverDef(refs) {
+ return refs.target === "openAi" ? void 0 : {
+ not: parseAnyDef({
+ ...refs,
+ currentPath: [...refs.currentPath, "not"]
+ })
+ };
+}
+var init_never = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/never.js"() {
+ init_any();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
+function parseNullDef(refs) {
+ return refs.target === "openApi3" ? {
+ enum: ["null"],
+ nullable: true
+ } : {
+ type: "null"
+ };
+}
+var init_null = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/null.js"() {
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
+function parseUnionDef(def, refs) {
+ if (refs.target === "openApi3")
+ return asAnyOf(def, refs);
+ const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
+ if (options.every((x) => x._def.typeName in primitiveMappings && (!x._def.checks || !x._def.checks.length))) {
+ const types = options.reduce((types2, x) => {
+ const type2 = primitiveMappings[x._def.typeName];
+ return type2 && !types2.includes(type2) ? [...types2, type2] : types2;
+ }, []);
+ return {
+ type: types.length > 1 ? types : types[0]
+ };
+ } else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) {
+ const types = options.reduce((acc, x) => {
+ const type2 = typeof x._def.value;
+ switch (type2) {
+ case "string":
+ case "number":
+ case "boolean":
+ return [...acc, type2];
+ case "bigint":
+ return [...acc, "integer"];
+ case "object":
+ if (x._def.value === null)
+ return [...acc, "null"];
+ case "symbol":
+ case "undefined":
+ case "function":
+ default:
+ return acc;
+ }
+ }, []);
+ if (types.length === options.length) {
+ const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i);
+ return {
+ type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
+ enum: options.reduce((acc, x) => {
+ return acc.includes(x._def.value) ? acc : [...acc, x._def.value];
+ }, [])
+ };
+ }
+ } else if (options.every((x) => x._def.typeName === "ZodEnum")) {
+ return {
+ type: "string",
+ enum: options.reduce((acc, x) => [
+ ...acc,
+ ...x._def.values.filter((x2) => !acc.includes(x2))
+ ], [])
+ };
+ }
+ return asAnyOf(def, refs);
+}
+var primitiveMappings, asAnyOf;
+var init_union = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/union.js"() {
+ init_parseDef();
+ primitiveMappings = {
+ ZodString: "string",
+ ZodNumber: "number",
+ ZodBigInt: "integer",
+ ZodBoolean: "boolean",
+ ZodNull: "null"
+ };
+ asAnyOf = (def, refs) => {
+ const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map((x, i) => parseDef(x._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "anyOf", `${i}`]
+ })).filter((x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0));
+ return anyOf.length ? { anyOf } : void 0;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
+function parseNullableDef(def, refs) {
+ if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
+ if (refs.target === "openApi3") {
+ return {
+ type: primitiveMappings[def.innerType._def.typeName],
+ nullable: true
+ };
+ }
+ return {
+ type: [
+ primitiveMappings[def.innerType._def.typeName],
+ "null"
+ ]
+ };
+ }
+ if (refs.target === "openApi3") {
+ const base2 = parseDef(def.innerType._def, {
+ ...refs,
+ currentPath: [...refs.currentPath]
+ });
+ if (base2 && "$ref" in base2)
+ return { allOf: [base2], nullable: true };
+ return base2 && { ...base2, nullable: true };
+ }
+ const base = parseDef(def.innerType._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "anyOf", "0"]
+ });
+ return base && { anyOf: [base, { type: "null" }] };
+}
+var init_nullable = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js"() {
+ init_parseDef();
+ init_union();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
+function parseNumberDef(def, refs) {
+ const res = {
+ type: "number"
+ };
+ if (!def.checks)
+ return res;
+ for (const check of def.checks) {
+ switch (check.kind) {
+ case "int":
+ res.type = "integer";
+ addErrorMessage(res, "type", check.message, refs);
+ break;
+ case "min":
+ if (refs.target === "jsonSchema7") {
+ if (check.inclusive) {
+ setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
+ } else {
+ setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
+ }
+ } else {
+ if (!check.inclusive) {
+ res.exclusiveMinimum = true;
+ }
+ setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
+ }
+ break;
+ case "max":
+ if (refs.target === "jsonSchema7") {
+ if (check.inclusive) {
+ setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
+ } else {
+ setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
+ }
+ } else {
+ if (!check.inclusive) {
+ res.exclusiveMaximum = true;
+ }
+ setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
+ }
+ break;
+ case "multipleOf":
+ setResponseValueAndErrors(res, "multipleOf", check.value, check.message, refs);
+ break;
+ }
+ }
+ return res;
+}
+var init_number = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/number.js"() {
+ init_errorMessages();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
+function parseObjectDef(def, refs) {
+ const forceOptionalIntoNullable = refs.target === "openAi";
+ const result = {
+ type: "object",
+ properties: {}
+ };
+ const required2 = [];
+ const shape = def.shape();
+ for (const propName in shape) {
+ let propDef = shape[propName];
+ if (propDef === void 0 || propDef._def === void 0) {
+ continue;
+ }
+ let propOptional = safeIsOptional(propDef);
+ if (propOptional && forceOptionalIntoNullable) {
+ if (propDef._def.typeName === "ZodOptional") {
+ propDef = propDef._def.innerType;
+ }
+ if (!propDef.isNullable()) {
+ propDef = propDef.nullable();
+ }
+ propOptional = false;
+ }
+ const parsedDef = parseDef(propDef._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "properties", propName],
+ propertyPath: [...refs.currentPath, "properties", propName]
+ });
+ if (parsedDef === void 0) {
+ continue;
+ }
+ result.properties[propName] = parsedDef;
+ if (!propOptional) {
+ required2.push(propName);
+ }
+ }
+ if (required2.length) {
+ result.required = required2;
+ }
+ const additionalProperties = decideAdditionalProperties(def, refs);
+ if (additionalProperties !== void 0) {
+ result.additionalProperties = additionalProperties;
+ }
+ return result;
+}
+function decideAdditionalProperties(def, refs) {
+ if (def.catchall._def.typeName !== "ZodNever") {
+ return parseDef(def.catchall._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "additionalProperties"]
+ });
+ }
+ switch (def.unknownKeys) {
+ case "passthrough":
+ return refs.allowedAdditionalProperties;
+ case "strict":
+ return refs.rejectedAdditionalProperties;
+ case "strip":
+ return refs.removeAdditionalStrategy === "strict" ? refs.allowedAdditionalProperties : refs.rejectedAdditionalProperties;
+ }
+}
+function safeIsOptional(schema2) {
+ try {
+ return schema2.isOptional();
+ } catch {
+ return true;
+ }
+}
+var init_object = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/object.js"() {
+ init_parseDef();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
+var parseOptionalDef;
+var init_optional = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js"() {
+ init_parseDef();
+ init_any();
+ parseOptionalDef = (def, refs) => {
+ if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
+ return parseDef(def.innerType._def, refs);
+ }
+ const innerSchema = parseDef(def.innerType._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "anyOf", "1"]
+ });
+ return innerSchema ? {
+ anyOf: [
+ {
+ not: parseAnyDef(refs)
+ },
+ innerSchema
+ ]
+ } : parseAnyDef(refs);
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
+var parsePipelineDef;
+var init_pipeline = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js"() {
+ init_parseDef();
+ parsePipelineDef = (def, refs) => {
+ if (refs.pipeStrategy === "input") {
+ return parseDef(def.in._def, refs);
+ } else if (refs.pipeStrategy === "output") {
+ return parseDef(def.out._def, refs);
+ }
+ const a = parseDef(def.in._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "allOf", "0"]
+ });
+ const b = parseDef(def.out._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
+ });
+ return {
+ allOf: [a, b].filter((x) => x !== void 0)
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
+function parsePromiseDef(def, refs) {
+ return parseDef(def.type._def, refs);
+}
+var init_promise = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js"() {
+ init_parseDef();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
+function parseSetDef(def, refs) {
+ const items = parseDef(def.valueType._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "items"]
+ });
+ const schema2 = {
+ type: "array",
+ uniqueItems: true,
+ items
+ };
+ if (def.minSize) {
+ setResponseValueAndErrors(schema2, "minItems", def.minSize.value, def.minSize.message, refs);
+ }
+ if (def.maxSize) {
+ setResponseValueAndErrors(schema2, "maxItems", def.maxSize.value, def.maxSize.message, refs);
+ }
+ return schema2;
+}
+var init_set = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/set.js"() {
+ init_errorMessages();
+ init_parseDef();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
+function parseTupleDef(def, refs) {
+ if (def.rest) {
+ return {
+ type: "array",
+ minItems: def.items.length,
+ items: def.items.map((x, i) => parseDef(x._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "items", `${i}`]
+ })).reduce((acc, x) => x === void 0 ? acc : [...acc, x], []),
+ additionalItems: parseDef(def.rest._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "additionalItems"]
+ })
+ };
+ } else {
+ return {
+ type: "array",
+ minItems: def.items.length,
+ maxItems: def.items.length,
+ items: def.items.map((x, i) => parseDef(x._def, {
+ ...refs,
+ currentPath: [...refs.currentPath, "items", `${i}`]
+ })).reduce((acc, x) => x === void 0 ? acc : [...acc, x], [])
+ };
+ }
+}
+var init_tuple = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js"() {
+ init_parseDef();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
+function parseUndefinedDef(refs) {
+ return {
+ not: parseAnyDef(refs)
+ };
+}
+var init_undefined = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js"() {
+ init_any();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
+function parseUnknownDef(refs) {
+ return parseAnyDef(refs);
+}
+var init_unknown = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js"() {
+ init_any();
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
+var parseReadonlyDef;
+var init_readonly = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js"() {
+ init_parseDef();
+ parseReadonlyDef = (def, refs) => {
+ return parseDef(def.innerType._def, refs);
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/selectParser.js
+var selectParser;
+var init_selectParser = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/selectParser.js"() {
+ init_zod();
+ init_any();
+ init_array();
+ init_bigint();
+ init_boolean();
+ init_branded();
+ init_catch();
+ init_date();
+ init_default();
+ init_effects();
+ init_enum();
+ init_intersection();
+ init_literal();
+ init_map();
+ init_nativeEnum();
+ init_never();
+ init_null();
+ init_nullable();
+ init_number();
+ init_object();
+ init_optional();
+ init_pipeline();
+ init_promise();
+ init_record();
+ init_set();
+ init_string();
+ init_tuple();
+ init_undefined();
+ init_union();
+ init_unknown();
+ init_readonly();
+ selectParser = (def, typeName, refs) => {
+ switch (typeName) {
+ case ZodFirstPartyTypeKind2.ZodString:
+ return parseStringDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodNumber:
+ return parseNumberDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodObject:
+ return parseObjectDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodBigInt:
+ return parseBigintDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodBoolean:
+ return parseBooleanDef();
+ case ZodFirstPartyTypeKind2.ZodDate:
+ return parseDateDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodUndefined:
+ return parseUndefinedDef(refs);
+ case ZodFirstPartyTypeKind2.ZodNull:
+ return parseNullDef(refs);
+ case ZodFirstPartyTypeKind2.ZodArray:
+ return parseArrayDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodUnion:
+ case ZodFirstPartyTypeKind2.ZodDiscriminatedUnion:
+ return parseUnionDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodIntersection:
+ return parseIntersectionDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodTuple:
+ return parseTupleDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodRecord:
+ return parseRecordDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodLiteral:
+ return parseLiteralDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodEnum:
+ return parseEnumDef(def);
+ case ZodFirstPartyTypeKind2.ZodNativeEnum:
+ return parseNativeEnumDef(def);
+ case ZodFirstPartyTypeKind2.ZodNullable:
+ return parseNullableDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodOptional:
+ return parseOptionalDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodMap:
+ return parseMapDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodSet:
+ return parseSetDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodLazy:
+ return () => def.getter()._def;
+ case ZodFirstPartyTypeKind2.ZodPromise:
+ return parsePromiseDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodNaN:
+ case ZodFirstPartyTypeKind2.ZodNever:
+ return parseNeverDef(refs);
+ case ZodFirstPartyTypeKind2.ZodEffects:
+ return parseEffectsDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodAny:
+ return parseAnyDef(refs);
+ case ZodFirstPartyTypeKind2.ZodUnknown:
+ return parseUnknownDef(refs);
+ case ZodFirstPartyTypeKind2.ZodDefault:
+ return parseDefaultDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodBranded:
+ return parseBrandedDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodReadonly:
+ return parseReadonlyDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodCatch:
+ return parseCatchDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodPipeline:
+ return parsePipelineDef(def, refs);
+ case ZodFirstPartyTypeKind2.ZodFunction:
+ case ZodFirstPartyTypeKind2.ZodVoid:
+ case ZodFirstPartyTypeKind2.ZodSymbol:
+ return void 0;
+ default:
+ return /* @__PURE__ */ ((_) => void 0)(typeName);
+ }
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseDef.js
+function parseDef(def, refs, forceResolution = false) {
+ const seenItem = refs.seen.get(def);
+ if (refs.override) {
+ const overrideResult = refs.override?.(def, refs, seenItem, forceResolution);
+ if (overrideResult !== ignoreOverride2) {
+ return overrideResult;
+ }
+ }
+ if (seenItem && !forceResolution) {
+ const seenSchema = get$ref(seenItem, refs);
+ if (seenSchema !== void 0) {
+ return seenSchema;
+ }
+ }
+ const newItem = { def, path: refs.currentPath, jsonSchema: void 0 };
+ refs.seen.set(def, newItem);
+ const jsonSchemaOrGetter = selectParser(def, def.typeName, refs);
+ const jsonSchema2 = typeof jsonSchemaOrGetter === "function" ? parseDef(jsonSchemaOrGetter(), refs) : jsonSchemaOrGetter;
+ if (jsonSchema2) {
+ addMeta(def, refs, jsonSchema2);
+ }
+ if (refs.postProcess) {
+ const postProcessResult = refs.postProcess(jsonSchema2, def, refs);
+ newItem.jsonSchema = jsonSchema2;
+ return postProcessResult;
+ }
+ newItem.jsonSchema = jsonSchema2;
+ return jsonSchema2;
+}
+var get$ref, addMeta;
+var init_parseDef = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseDef.js"() {
+ init_Options();
+ init_selectParser();
+ init_getRelativePath();
+ init_any();
+ get$ref = (item, refs) => {
+ switch (refs.$refStrategy) {
+ case "root":
+ return { $ref: item.path.join("/") };
+ case "relative":
+ return { $ref: getRelativePath(refs.currentPath, item.path) };
+ case "none":
+ case "seen": {
+ if (item.path.length < refs.currentPath.length && item.path.every((value2, index) => refs.currentPath[index] === value2)) {
+ console.warn(`Recursive reference detected at ${refs.currentPath.join("/")}! Defaulting to any`);
+ return parseAnyDef(refs);
+ }
+ return refs.$refStrategy === "seen" ? parseAnyDef(refs) : void 0;
+ }
+ }
+ };
+ addMeta = (def, refs, jsonSchema2) => {
+ if (def.description) {
+ jsonSchema2.description = def.description;
+ if (refs.markdownDescription) {
+ jsonSchema2.markdownDescription = def.description;
+ }
+ }
+ return jsonSchema2;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseTypes.js
+var init_parseTypes = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseTypes.js"() {
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
+var zodToJsonSchema;
+var init_zodToJsonSchema = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js"() {
+ init_parseDef();
+ init_Refs();
+ init_any();
+ zodToJsonSchema = (schema2, options) => {
+ const refs = getRefs(options);
+ let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema3]) => ({
+ ...acc,
+ [name2]: parseDef(schema3._def, {
+ ...refs,
+ currentPath: [...refs.basePath, refs.definitionPath, name2]
+ }, true) ?? parseAnyDef(refs)
+ }), {}) : void 0;
+ const name = typeof options === "string" ? options : options?.nameStrategy === "title" ? void 0 : options?.name;
+ const main2 = parseDef(schema2._def, name === void 0 ? refs : {
+ ...refs,
+ currentPath: [...refs.basePath, refs.definitionPath, name]
+ }, false) ?? parseAnyDef(refs);
+ const title = typeof options === "object" && options.name !== void 0 && options.nameStrategy === "title" ? options.name : void 0;
+ if (title !== void 0) {
+ main2.title = title;
+ }
+ if (refs.flags.hasReferencedOpenAiAnyType) {
+ if (!definitions) {
+ definitions = {};
+ }
+ if (!definitions[refs.openAiAnyTypeName]) {
+ definitions[refs.openAiAnyTypeName] = {
+ // Skipping "object" as no properties can be defined and additionalProperties must be "false"
+ type: ["string", "number", "integer", "boolean", "array", "null"],
+ items: {
+ $ref: refs.$refStrategy === "relative" ? "1" : [
+ ...refs.basePath,
+ refs.definitionPath,
+ refs.openAiAnyTypeName
+ ].join("/")
+ }
+ };
+ }
+ }
+ const combined = name === void 0 ? definitions ? {
+ ...main2,
+ [refs.definitionPath]: definitions
+ } : main2 : {
+ $ref: [
+ ...refs.$refStrategy === "relative" ? [] : refs.basePath,
+ refs.definitionPath,
+ name
+ ].join("/"),
+ [refs.definitionPath]: {
+ ...definitions,
+ [name]: main2
+ }
+ };
+ if (refs.target === "jsonSchema7") {
+ combined.$schema = "http://json-schema.org/draft-07/schema#";
+ } else if (refs.target === "jsonSchema2019-09" || refs.target === "openAi") {
+ combined.$schema = "https://json-schema.org/draft/2019-09/schema#";
+ }
+ if (refs.target === "openAi" && ("anyOf" in combined || "oneOf" in combined || "allOf" in combined || "type" in combined && Array.isArray(combined.type))) {
+ console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.");
+ }
+ return combined;
+ };
+ }
+});
+
+// ../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/index.js
+var esm_exports = {};
+__export(esm_exports, {
+ addErrorMessage: () => addErrorMessage,
+ default: () => esm_default,
+ defaultOptions: () => defaultOptions,
+ getDefaultOptions: () => getDefaultOptions,
+ getRefs: () => getRefs,
+ getRelativePath: () => getRelativePath,
+ ignoreOverride: () => ignoreOverride2,
+ jsonDescription: () => jsonDescription,
+ parseAnyDef: () => parseAnyDef,
+ parseArrayDef: () => parseArrayDef,
+ parseBigintDef: () => parseBigintDef,
+ parseBooleanDef: () => parseBooleanDef,
+ parseBrandedDef: () => parseBrandedDef,
+ parseCatchDef: () => parseCatchDef,
+ parseDateDef: () => parseDateDef,
+ parseDef: () => parseDef,
+ parseDefaultDef: () => parseDefaultDef,
+ parseEffectsDef: () => parseEffectsDef,
+ parseEnumDef: () => parseEnumDef,
+ parseIntersectionDef: () => parseIntersectionDef,
+ parseLiteralDef: () => parseLiteralDef,
+ parseMapDef: () => parseMapDef,
+ parseNativeEnumDef: () => parseNativeEnumDef,
+ parseNeverDef: () => parseNeverDef,
+ parseNullDef: () => parseNullDef,
+ parseNullableDef: () => parseNullableDef,
+ parseNumberDef: () => parseNumberDef,
+ parseObjectDef: () => parseObjectDef,
+ parseOptionalDef: () => parseOptionalDef,
+ parsePipelineDef: () => parsePipelineDef,
+ parsePromiseDef: () => parsePromiseDef,
+ parseReadonlyDef: () => parseReadonlyDef,
+ parseRecordDef: () => parseRecordDef,
+ parseSetDef: () => parseSetDef,
+ parseStringDef: () => parseStringDef,
+ parseTupleDef: () => parseTupleDef,
+ parseUndefinedDef: () => parseUndefinedDef,
+ parseUnionDef: () => parseUnionDef,
+ parseUnknownDef: () => parseUnknownDef,
+ primitiveMappings: () => primitiveMappings,
+ selectParser: () => selectParser,
+ setResponseValueAndErrors: () => setResponseValueAndErrors,
+ zodPatterns: () => zodPatterns,
+ zodToJsonSchema: () => zodToJsonSchema
+});
+var esm_default;
+var init_esm = __esm({
+ "../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/index.js"() {
+ init_Options();
+ init_Refs();
+ init_errorMessages();
+ init_getRelativePath();
+ init_parseDef();
+ init_parseTypes();
+ init_any();
+ init_array();
+ init_bigint();
+ init_boolean();
+ init_branded();
+ init_catch();
+ init_date();
+ init_default();
+ init_effects();
+ init_enum();
+ init_intersection();
+ init_literal();
+ init_map();
+ init_nativeEnum();
+ init_never();
+ init_null();
+ init_nullable();
+ init_number();
+ init_object();
+ init_optional();
+ init_pipeline();
+ init_promise();
+ init_readonly();
+ init_record();
+ init_set();
+ init_string();
+ init_tuple();
+ init_undefined();
+ init_union();
+ init_unknown();
+ init_selectParser();
+ init_zodToJsonSchema();
+ init_zodToJsonSchema();
+ esm_default = zodToJsonSchema;
+ }
+});
+
+// ../node_modules/.pnpm/xsschema@0.3.5_arktype@2.1.25_effect@3.16.12_zod-to-json-schema@3.24.6_zod@3.25.76__zod@3.25.76/node_modules/xsschema/dist/zod-Bw_60DVU.js
+var zod_Bw_60DVU_exports = {};
+__export(zod_Bw_60DVU_exports, {
+ getToJsonSchemaFn: () => getToJsonSchemaFn5
+});
+var getToJsonSchemaFn5;
+var init_zod_Bw_60DVU = __esm({
+ "../node_modules/.pnpm/xsschema@0.3.5_arktype@2.1.25_effect@3.16.12_zod-to-json-schema@3.24.6_zod@3.25.76__zod@3.25.76/node_modules/xsschema/dist/zod-Bw_60DVU.js"() {
+ init_index_CAcLDIRJ();
+ getToJsonSchemaFn5 = async () => {
+ let zodV4toJSONSchema = (_schema) => {
+ throw new Error(`xsschema: Missing zod v4 dependencies "zod". see ${missingDependenciesUrl}`);
+ };
+ let zodV3ToJSONSchema = (_schema) => {
+ throw new Error(`xsschema: Missing zod v3 dependencies "zod-to-json-schema". see ${missingDependenciesUrl}`);
+ };
+ try {
+ const { toJSONSchema: toJSONSchema2 } = await Promise.resolve().then(() => (init_core2(), core_exports2));
+ zodV4toJSONSchema = toJSONSchema2;
+ } catch (err) {
+ if (err instanceof Error)
+ console.error(err.message);
+ }
+ try {
+ const { zodToJsonSchema: zodToJsonSchema2 } = await Promise.resolve().then(() => (init_esm(), esm_exports));
+ zodV3ToJSONSchema = zodToJsonSchema2;
+ } catch (err) {
+ if (err instanceof Error)
+ console.error(err.message);
+ }
+ return async (schema2) => {
+ if ("_zod" in schema2)
+ return zodV4toJSONSchema(schema2);
+ else
+ return zodV3ToJSONSchema(schema2);
+ };
+ };
+ }
+});
+
+// ../node_modules/.pnpm/xsschema@0.3.5_arktype@2.1.25_effect@3.16.12_zod-to-json-schema@3.24.6_zod@3.25.76__zod@3.25.76/node_modules/xsschema/dist/index-CAcLDIRJ.js
+var missingDependenciesUrl, tryImport, getToJsonSchemaFn6, toJsonSchema;
+var init_index_CAcLDIRJ = __esm({
+ "../node_modules/.pnpm/xsschema@0.3.5_arktype@2.1.25_effect@3.16.12_zod-to-json-schema@3.24.6_zod@3.25.76__zod@3.25.76/node_modules/xsschema/dist/index-CAcLDIRJ.js"() {
+ missingDependenciesUrl = "https://xsai.js.org/docs/packages-top/xsschema#missing-dependencies";
+ tryImport = async (result, name) => {
+ try {
+ return await result;
+ } catch {
+ throw new Error(`xsschema: Missing dependencies "${name}". see ${missingDependenciesUrl}`);
+ }
+ };
+ getToJsonSchemaFn6 = async (vendor) => {
+ switch (vendor) {
+ case "arktype":
+ return Promise.resolve().then(() => (init_arktype_C_GObzDh(), arktype_C_GObzDh_exports)).then(async ({ getToJsonSchemaFn: getToJsonSchemaFn22 }) => getToJsonSchemaFn22());
+ case "effect":
+ return Promise.resolve().then(() => (init_effect_zg3C1LQ(), effect_zg3C1LQ_exports)).then(async ({ getToJsonSchemaFn: getToJsonSchemaFn22 }) => getToJsonSchemaFn22());
+ case "sury":
+ return Promise.resolve().then(() => (init_sury_s6Akl_oc(), sury_s6Akl_oc_exports)).then(async ({ getToJsonSchemaFn: getToJsonSchemaFn22 }) => getToJsonSchemaFn22());
+ case "valibot":
+ return Promise.resolve().then(() => (init_valibot_DBCeetIe(), valibot_DBCeetIe_exports)).then(async ({ getToJsonSchemaFn: getToJsonSchemaFn22 }) => getToJsonSchemaFn22());
+ case "zod":
+ return Promise.resolve().then(() => (init_zod_Bw_60DVU(), zod_Bw_60DVU_exports)).then(async ({ getToJsonSchemaFn: getToJsonSchemaFn22 }) => getToJsonSchemaFn22());
+ default:
+ throw new Error(`xsschema: Unsupported schema vendor "${vendor}". see https://xsai.js.org/docs/packages-top/xsschema#unsupported-schema-vendor`);
+ }
+ };
+ toJsonSchema = async (schema2) => getToJsonSchemaFn6(schema2["~standard"].vendor).then(async (toJsonSchema2) => toJsonSchema2(schema2));
+ }
+});
+
+// ../node_modules/.pnpm/fast-content-type-parse@3.0.0/node_modules/fast-content-type-parse/index.js
+var require_fast_content_type_parse = __commonJS({
+ "../node_modules/.pnpm/fast-content-type-parse@3.0.0/node_modules/fast-content-type-parse/index.js"(exports, module) {
+ "use strict";
+ var NullObject = function NullObject2() {
+ };
+ NullObject.prototype = /* @__PURE__ */ Object.create(null);
+ var paramRE = /; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu;
+ var quotedPairRE = /\\([\v\u0020-\u00ff])/gu;
+ var mediaTypeRE = /^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u;
+ var defaultContentType = { type: "", parameters: new NullObject() };
+ Object.freeze(defaultContentType.parameters);
+ Object.freeze(defaultContentType);
+ function parse4(header) {
+ if (typeof header !== "string") {
+ throw new TypeError("argument header is required and must be a string");
+ }
+ let index = header.indexOf(";");
+ const type2 = index !== -1 ? header.slice(0, index).trim() : header.trim();
+ if (mediaTypeRE.test(type2) === false) {
+ throw new TypeError("invalid media type");
+ }
+ const result = {
+ type: type2.toLowerCase(),
+ parameters: new NullObject()
+ };
+ if (index === -1) {
+ return result;
+ }
+ let key;
+ let match2;
+ let value2;
+ paramRE.lastIndex = index;
+ while (match2 = paramRE.exec(header)) {
+ if (match2.index !== index) {
+ throw new TypeError("invalid parameter format");
+ }
+ index += match2[0].length;
+ key = match2[1].toLowerCase();
+ value2 = match2[2];
+ if (value2[0] === '"') {
+ value2 = value2.slice(1, value2.length - 1);
+ quotedPairRE.test(value2) && (value2 = value2.replace(quotedPairRE, "$1"));
+ }
+ result.parameters[key] = value2;
+ }
+ if (index !== header.length) {
+ throw new TypeError("invalid parameter format");
+ }
+ return result;
+ }
+ function safeParse3(header) {
+ if (typeof header !== "string") {
+ return defaultContentType;
+ }
+ let index = header.indexOf(";");
+ const type2 = index !== -1 ? header.slice(0, index).trim() : header.trim();
+ if (mediaTypeRE.test(type2) === false) {
+ return defaultContentType;
+ }
+ const result = {
+ type: type2.toLowerCase(),
+ parameters: new NullObject()
+ };
+ if (index === -1) {
+ return result;
+ }
+ let key;
+ let match2;
+ let value2;
+ paramRE.lastIndex = index;
+ while (match2 = paramRE.exec(header)) {
+ if (match2.index !== index) {
+ return defaultContentType;
+ }
+ index += match2[0].length;
+ key = match2[1].toLowerCase();
+ value2 = match2[2];
+ if (value2[0] === '"') {
+ value2 = value2.slice(1, value2.length - 1);
+ quotedPairRE.test(value2) && (value2 = value2.replace(quotedPairRE, "$1"));
+ }
+ result.parameters[key] = value2;
+ }
+ if (index !== header.length) {
+ return defaultContentType;
+ }
+ return result;
+ }
+ module.exports.default = { parse: parse4, safeParse: safeParse3 };
+ module.exports.parse = parse4;
+ module.exports.safeParse = safeParse3;
+ module.exports.defaultContentType = defaultContentType;
+ }
+});
+
// entry.ts
var core3 = __toESM(require_core(), 1);
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/arrays.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/arrays.js
var liftArray = (data) => Array.isArray(data) ? data : [data];
var spliterate = (arr, predicate) => {
const result = [[], []];
@@ -25557,7 +70844,7 @@ var groupBy = (array, discriminant) => array.reduce((result, item) => {
}, {});
var arrayEquals = (l, r, opts) => l.length === r.length && l.every(opts?.isEqual ? (lItem, i) => opts.isEqual(lItem, r[i]) : (lItem, i) => lItem === r[i]);
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/domain.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/domain.js
var hasDomain = (data, kind) => domainOf(data) === kind;
var domainOf = (data) => {
const builtinType = typeof data;
@@ -25578,7 +70865,7 @@ var jsTypeOfDescriptions = {
function: "a function"
};
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/errors.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/errors.js
var InternalArktypeError = class extends Error {
};
var throwInternalError = (message) => throwError(message, InternalArktypeError);
@@ -25592,7 +70879,7 @@ var throwParseError = (message) => throwError(message, ParseError);
var noSuggest = (s) => ` ${s}`;
var ZeroWidthSpace = "\u200B";
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/flatMorph.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/flatMorph.js
var flatMorph = (o, flatMapEntry) => {
const result = {};
const inputIsArray = Array.isArray(o);
@@ -25615,7 +70902,7 @@ var flatMorph = (o, flatMapEntry) => {
return outputShouldBeArray ? Object.values(result) : result;
};
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/records.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/records.js
var entriesOf = Object.entries;
var isKeyOf = (k, o) => k in o;
var hasKey = (o, k) => k in o;
@@ -25664,7 +70951,7 @@ var enumValues = (tsEnum) => Object.values(tsEnum).filter((v) => {
return typeof tsEnum[v] !== "number";
});
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/objectKinds.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/objectKinds.js
var ecmascriptConstructors = {
Array,
Boolean,
@@ -25780,7 +71067,7 @@ var constructorExtends = (ctor, base) => {
return false;
};
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/clone.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/clone.js
var deepClone = (input) => _clone(input, /* @__PURE__ */ new Map());
var _clone = (input, seen) => {
if (typeof input !== "object" || input === null)
@@ -25807,7 +71094,7 @@ var _clone = (input, seen) => {
return cloned;
};
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/functions.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/functions.js
var cached = (thunk) => {
let result = unset;
return () => result === unset ? result = thunk() : result;
@@ -25841,24 +71128,24 @@ var envHasCsp = cached(() => {
}
});
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/generics.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/generics.js
var brand = noSuggest("brand");
var inferred = noSuggest("arkInferred");
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/hkt.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/hkt.js
var args = noSuggest("args");
var Hkt = class {
constructor() {
}
};
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/isomorphic.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/isomorphic.js
var fileName = () => {
try {
- const error2 = new Error();
- const stackLine = error2.stack?.split("\n")[2]?.trim() || "";
- const filePath2 = stackLine.match(/\(?(.+?)(?::\d+:\d+)?\)?$/)?.[1] || "unknown";
- return filePath2.replace(/^file:\/\//, "");
+ const error41 = new Error();
+ const stackLine = error41.stack?.split("\n")[2]?.trim() || "";
+ const filePath = stackLine.match(/\(?(.+?)(?::\d+:\d+)?\)?$/)?.[1] || "unknown";
+ return filePath.replace(/^file:\/\//, "");
} catch {
return "unknown";
}
@@ -25869,7 +71156,7 @@ var isomorphic = {
env
};
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/strings.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/strings.js
var capitalize = (s) => s[0].toUpperCase() + s.slice(1);
var anchoredRegex = (regex3) => new RegExp(anchoredSource(regex3), typeof regex3 === "string" ? "" : regex3.flags);
var anchoredSource = (regex3) => {
@@ -25887,7 +71174,7 @@ var whitespaceChars = {
" ": 1
};
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/numbers.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/numbers.js
var anchoredNegativeZeroPattern = /^-0\.?0*$/.source;
var positiveIntegerPattern = /[1-9]\d*/.source;
var looseDecimalPattern = /\.\d+/.source;
@@ -25950,7 +71237,7 @@ var tryParseWellFormedBigint = (def) => {
}
};
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/registry.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/registry.js
var arkUtilVersion = "0.53.0";
var initialRegistryContents = {
version: arkUtilVersion,
@@ -25990,10 +71277,10 @@ var baseNameFor = (value2) => {
return throwInternalError(`Unexpected attempt to register serializable value of type ${domainOf(value2)}`);
};
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/primitive.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/primitive.js
var serializePrimitive = (value2) => typeof value2 === "string" ? JSON.stringify(value2) : typeof value2 === "bigint" ? `${value2}n` : `${value2}`;
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/serialize.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/serialize.js
var snapshot = (data, opts = {}) => _serialize(data, {
onUndefined: `$ark.undefined`,
onBigInt: (n) => `$ark.bigint-${n}`,
@@ -26084,20 +71371,20 @@ var _serialize = (data, opts, seen) => {
return data;
}
};
-var describeCollapsibleDate = (date) => {
- const year = date.getFullYear();
- const month = date.getMonth();
- const dayOfMonth = date.getDate();
- const hours = date.getHours();
- const minutes = date.getMinutes();
- const seconds = date.getSeconds();
- const milliseconds = date.getMilliseconds();
+var describeCollapsibleDate = (date2) => {
+ const year = date2.getFullYear();
+ const month = date2.getMonth();
+ const dayOfMonth = date2.getDate();
+ const hours = date2.getHours();
+ const minutes = date2.getMinutes();
+ const seconds = date2.getSeconds();
+ const milliseconds = date2.getMilliseconds();
if (month === 0 && dayOfMonth === 1 && hours === 0 && minutes === 0 && seconds === 0 && milliseconds === 0)
return `${year}`;
const datePortion = `${months[month]} ${dayOfMonth}, ${year}`;
if (hours === 0 && minutes === 0 && seconds === 0 && milliseconds === 0)
return datePortion;
- let timePortion = date.toLocaleTimeString();
+ let timePortion = date2.toLocaleTimeString();
const suffix2 = timePortion.endsWith(" AM") || timePortion.endsWith(" PM") ? timePortion.slice(-3) : "";
if (suffix2)
timePortion = timePortion.slice(0, -suffix2.length);
@@ -26124,30 +71411,30 @@ var months = [
var timeWithUnnecessarySeconds = /:\d\d:00$/;
var pad = (value2, length) => String(value2).padStart(length, "0");
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/path.js
-var appendStringifiedKey = (path4, prop, ...[opts]) => {
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/path.js
+var appendStringifiedKey = (path3, prop, ...[opts]) => {
const stringifySymbol = opts?.stringifySymbol ?? printable;
- let propAccessChain = path4;
+ let propAccessChain = path3;
switch (typeof prop) {
case "string":
- propAccessChain = isDotAccessible(prop) ? path4 === "" ? prop : `${path4}.${prop}` : `${path4}[${JSON.stringify(prop)}]`;
+ propAccessChain = isDotAccessible(prop) ? path3 === "" ? prop : `${path3}.${prop}` : `${path3}[${JSON.stringify(prop)}]`;
break;
case "number":
- propAccessChain = `${path4}[${prop}]`;
+ propAccessChain = `${path3}[${prop}]`;
break;
case "symbol":
- propAccessChain = `${path4}[${stringifySymbol(prop)}]`;
+ propAccessChain = `${path3}[${stringifySymbol(prop)}]`;
break;
default:
if (opts?.stringifyNonKey)
- propAccessChain = `${path4}[${opts.stringifyNonKey(prop)}]`;
+ propAccessChain = `${path3}[${opts.stringifyNonKey(prop)}]`;
else {
throwParseError(`${printable(prop)} must be a PropertyKey or stringifyNonKey must be passed to options`);
}
}
return propAccessChain;
};
-var stringifyPath = (path4, ...opts) => path4.reduce((s, k) => appendStringifiedKey(s, k, ...opts), "");
+var stringifyPath = (path3, ...opts) => path3.reduce((s, k) => appendStringifiedKey(s, k, ...opts), "");
var ReadonlyPath = class extends ReadonlyArray {
// alternate strategy for caching since the base object is frozen
cache = {};
@@ -26174,15 +71461,15 @@ var ReadonlyPath = class extends ReadonlyArray {
return this.cache.stringifyAncestors;
let propString = "";
const result = [propString];
- for (const path4 of this) {
- propString = appendStringifiedKey(propString, path4);
+ for (const path3 of this) {
+ propString = appendStringifiedKey(propString, path3);
result.push(propString);
}
return this.cache.stringifyAncestors = result;
}
};
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/scanner.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/scanner.js
var Scanner = class {
chars;
i;
@@ -26267,10 +71554,10 @@ var Scanner = class {
var writeUnmatchedGroupCloseMessage = (char, unscanned) => `Unmatched ${char}${unscanned === "" ? "" : ` before ${unscanned}`}`;
var writeUnclosedGroupMessage = (missingChar) => `Missing ${missingChar}`;
-// node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/traits.js
+// ../node_modules/.pnpm/@ark+util@0.53.0/node_modules/@ark/util/out/traits.js
var implementedTraits = noSuggest("implementedTraits");
-// node_modules/.pnpm/@anthropic-ai+claude-agent-sdk@0.1.37_zod@3.25.76/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs
+// ../node_modules/.pnpm/@anthropic-ai+claude-agent-sdk@0.1.37_zod@3.25.76/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs
import { join as join3 } from "path";
import { fileURLToPath } from "url";
import { setMaxListeners } from "events";
@@ -26301,7 +71588,7 @@ var __toESM2 = (mod, isNodeMode, target) => {
return to;
};
var __commonJS2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
-var __export = (target, all) => {
+var __export2 = (target, all) => {
for (var name in all)
__defProp2(target, name, {
get: all[name],
@@ -26314,7 +71601,7 @@ var require_uri_all = __commonJS2((exports, module) => {
(function(global2, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : factory(global2.URI = global2.URI || {});
})(exports, function(exports2) {
- function merge() {
+ function merge3() {
for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
sets[_key] = arguments[_key];
}
@@ -26352,18 +71639,18 @@ var require_uri_all = __commonJS2((exports, module) => {
return obj;
}
function buildExps(isIRI2) {
- var ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$2 = merge(DIGIT$$, "[A-Fa-f]"), LF$$ = "[\\x0A]", SP$$ = "[\\x20]", PCT_ENCODED$2 = subexp(subexp("%[EFef]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%" + HEXDIG$$2 + HEXDIG$$2)), GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI2 ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", IPRIVATE$$ = isIRI2 ? "[\\uE000-\\uF8FF]" : "[]", UNRESERVED$$2 = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), USERINFO$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]")) + "*"), DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), H16$ = subexp(HEXDIG$$2 + "{1,4}"), LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), ZONEID$ = subexp(subexp(UNRESERVED$$2 + "|" + PCT_ENCODED$2) + "+"), IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$2 + "{2})") + ZONEID$), IPVFUTURE$ = subexp("[vV]" + HEXDIG$$2 + "+\\." + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]") + "+"), IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), REG_NAME$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$)) + "*"), HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")|" + REG_NAME$), PORT$ = subexp(DIGIT$$ + "*"), AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), PCHAR$ = subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@]")), SEGMENT$ = subexp(PCHAR$ + "*"), SEGMENT_NZ$ = subexp(PCHAR$ + "+"), SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\@]")) + "+"), PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), PATH_EMPTY$ = "(?!" + PCHAR$ + ")", PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"), FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
+ var ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$2 = merge3(DIGIT$$, "[A-Fa-f]"), LF$$ = "[\\x0A]", SP$$ = "[\\x20]", PCT_ENCODED$2 = subexp(subexp("%[EFef]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%" + HEXDIG$$2 + HEXDIG$$2)), GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge3(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI2 ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", IPRIVATE$$ = isIRI2 ? "[\\uE000-\\uF8FF]" : "[]", UNRESERVED$$2 = merge3(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), SCHEME$ = subexp(ALPHA$$ + merge3(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), USERINFO$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge3(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]")) + "*"), DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), H16$ = subexp(HEXDIG$$2 + "{1,4}"), LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), ZONEID$ = subexp(subexp(UNRESERVED$$2 + "|" + PCT_ENCODED$2) + "+"), IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$2 + "{2})") + ZONEID$), IPVFUTURE$ = subexp("[vV]" + HEXDIG$$2 + "+\\." + merge3(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]") + "+"), IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), REG_NAME$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge3(UNRESERVED$$2, SUB_DELIMS$$)) + "*"), HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")|" + REG_NAME$), PORT$ = subexp(DIGIT$$ + "*"), AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), PCHAR$ = subexp(PCT_ENCODED$2 + "|" + merge3(UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@]")), SEGMENT$ = subexp(PCHAR$ + "*"), SEGMENT_NZ$ = subexp(PCHAR$ + "+"), SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge3(UNRESERVED$$2, SUB_DELIMS$$, "[\\@]")) + "+"), PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), PATH_EMPTY$ = "(?!" + PCHAR$ + ")", PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), QUERY$ = subexp(subexp(PCHAR$ + "|" + merge3("[\\/\\?]", IPRIVATE$$)) + "*"), FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
return {
- NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
- NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
- NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
- NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
- NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
- NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
- NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
- ESCAPE: new RegExp(merge("[^]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
+ NOT_SCHEME: new RegExp(merge3("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
+ NOT_USERINFO: new RegExp(merge3("[^\\%\\:]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
+ NOT_HOST: new RegExp(merge3("[^\\%\\[\\]\\:]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
+ NOT_PATH: new RegExp(merge3("[^\\%\\/\\:\\@]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
+ NOT_PATH_NOSCHEME: new RegExp(merge3("[^\\%\\/\\@]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
+ NOT_QUERY: new RegExp(merge3("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
+ NOT_FRAGMENT: new RegExp(merge3("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
+ ESCAPE: new RegExp(merge3("[^]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
UNRESERVED: new RegExp(UNRESERVED$$2, "g"),
- OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$2, RESERVED$$), "g"),
+ OTHER_CHARS: new RegExp(merge3("[^\\%]", UNRESERVED$$2, RESERVED$$), "g"),
PCT_ENCODED: new RegExp(PCT_ENCODED$2, "g"),
IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$2 + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$")
@@ -26383,9 +71670,9 @@ var require_uri_all = __commonJS2((exports, module) => {
if (i && _arr.length === i)
break;
}
- } catch (err2) {
+ } catch (err) {
_d = true;
- _e = err2;
+ _e = err;
} finally {
try {
if (!_n && _i["return"])
@@ -26447,26 +71734,26 @@ var require_uri_all = __commonJS2((exports, module) => {
}
return result;
}
- function mapDomain(string2, fn2) {
- var parts = string2.split("@");
+ function mapDomain(string3, fn2) {
+ var parts = string3.split("@");
var result = "";
if (parts.length > 1) {
result = parts[0] + "@";
- string2 = parts[1];
+ string3 = parts[1];
}
- string2 = string2.replace(regexSeparators, ".");
- var labels = string2.split(".");
+ string3 = string3.replace(regexSeparators, ".");
+ var labels = string3.split(".");
var encoded = map(labels, fn2).join(".");
return result + encoded;
}
- function ucs2decode(string2) {
+ function ucs2decode(string3) {
var output = [];
var counter = 0;
- var length = string2.length;
+ var length = string3.length;
while (counter < length) {
- var value2 = string2.charCodeAt(counter++);
+ var value2 = string3.charCodeAt(counter++);
if (value2 >= 55296 && value2 <= 56319 && counter < length) {
- var extra = string2.charCodeAt(counter++);
+ var extra = string3.charCodeAt(counter++);
if ((extra & 64512) == 56320) {
output.push(((value2 & 1023) << 10) + (extra & 1023) + 65536);
} else {
@@ -26571,9 +71858,9 @@ var require_uri_all = __commonJS2((exports, module) => {
output.push(stringFromCharCode(_currentValue2));
}
}
- } catch (err2) {
+ } catch (err) {
_didIteratorError = true;
- _iteratorError = err2;
+ _iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator.return) {
@@ -26602,9 +71889,9 @@ var require_uri_all = __commonJS2((exports, module) => {
m = currentValue;
}
}
- } catch (err2) {
+ } catch (err) {
_didIteratorError2 = true;
- _iteratorError2 = err2;
+ _iteratorError2 = err;
} finally {
try {
if (!_iteratorNormalCompletion2 && _iterator2.return) {
@@ -26649,9 +71936,9 @@ var require_uri_all = __commonJS2((exports, module) => {
++handledCPCount;
}
}
- } catch (err2) {
+ } catch (err) {
_didIteratorError3 = true;
- _iteratorError3 = err2;
+ _iteratorError3 = err;
} finally {
try {
if (!_iteratorNormalCompletion3 && _iterator3.return) {
@@ -26669,13 +71956,13 @@ var require_uri_all = __commonJS2((exports, module) => {
return output.join("");
};
var toUnicode = function toUnicode2(input) {
- return mapDomain(input, function(string2) {
- return regexPunycode.test(string2) ? decode(string2.slice(4).toLowerCase()) : string2;
+ return mapDomain(input, function(string3) {
+ return regexPunycode.test(string3) ? decode(string3.slice(4).toLowerCase()) : string3;
});
};
var toASCII = function toASCII2(input) {
- return mapDomain(input, function(string2) {
- return regexNonASCII.test(string2) ? "xn--" + encode2(string2) : string2;
+ return mapDomain(input, function(string3) {
+ return regexNonASCII.test(string3) ? "xn--" + encode2(string3) : string3;
});
};
var punycode = {
@@ -26816,7 +72103,7 @@ var require_uri_all = __commonJS2((exports, module) => {
}
var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;
var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === void 0;
- function parse2(uriString) {
+ function parse4(uriString) {
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
var components = {};
var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
@@ -26987,8 +72274,8 @@ var require_uri_all = __commonJS2((exports, module) => {
var skipNormalization = arguments[3];
var target = {};
if (!skipNormalization) {
- base2 = parse2(serialize(base2, options), options);
- relative = parse2(serialize(relative, options), options);
+ base2 = parse4(serialize(base2, options), options);
+ relative = parse4(serialize(relative, options), options);
}
options = options || {};
if (!options.tolerant && relative.scheme) {
@@ -27039,24 +72326,24 @@ var require_uri_all = __commonJS2((exports, module) => {
}
function resolve(baseURI, relativeURI, options) {
var schemelessOptions = assign({ scheme: "null" }, options);
- return serialize(resolveComponents(parse2(baseURI, schemelessOptions), parse2(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
+ return serialize(resolveComponents(parse4(baseURI, schemelessOptions), parse4(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
}
function normalize2(uri, options) {
if (typeof uri === "string") {
- uri = serialize(parse2(uri, options), options);
+ uri = serialize(parse4(uri, options), options);
} else if (typeOf(uri) === "object") {
- uri = parse2(serialize(uri, options), options);
+ uri = parse4(serialize(uri, options), options);
}
return uri;
}
function equal(uriA, uriB, options) {
if (typeof uriA === "string") {
- uriA = serialize(parse2(uriA, options), options);
+ uriA = serialize(parse4(uriA, options), options);
} else if (typeOf(uriA) === "object") {
uriA = serialize(uriA, options);
}
if (typeof uriB === "string") {
- uriB = serialize(parse2(uriB, options), options);
+ uriB = serialize(parse4(uriB, options), options);
} else if (typeOf(uriB) === "object") {
uriB = serialize(uriB, options);
}
@@ -27068,10 +72355,10 @@ var require_uri_all = __commonJS2((exports, module) => {
function unescapeComponent(str, options) {
return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars);
}
- var handler = {
+ var handler2 = {
scheme: "http",
domainHost: true,
- parse: function parse3(components, options) {
+ parse: function parse5(components, options) {
if (!components.host) {
components.error = components.error || "HTTP URIs must have a host.";
}
@@ -27090,9 +72377,9 @@ var require_uri_all = __commonJS2((exports, module) => {
};
var handler$1 = {
scheme: "https",
- domainHost: handler.domainHost,
- parse: handler.parse,
- serialize: handler.serialize
+ domainHost: handler2.domainHost,
+ parse: handler2.parse,
+ serialize: handler2.serialize
};
function isSecure(wsComponents) {
return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
@@ -27100,7 +72387,7 @@ var require_uri_all = __commonJS2((exports, module) => {
var handler$2 = {
scheme: "ws",
domainHost: true,
- parse: function parse3(components, options) {
+ parse: function parse5(components, options) {
var wsComponents = components;
wsComponents.secure = isSecure(wsComponents);
wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
@@ -27117,8 +72404,8 @@ var require_uri_all = __commonJS2((exports, module) => {
wsComponents.secure = void 0;
}
if (wsComponents.resourceName) {
- var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path4 = _wsComponents$resourc2[0], query2 = _wsComponents$resourc2[1];
- wsComponents.path = path4 && path4 !== "/" ? path4 : void 0;
+ var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path3 = _wsComponents$resourc2[0], query2 = _wsComponents$resourc2[1];
+ wsComponents.path = path3 && path3 !== "/" ? path3 : void 0;
wsComponents.query = query2;
wsComponents.resourceName = void 0;
}
@@ -27139,12 +72426,12 @@ var require_uri_all = __commonJS2((exports, module) => {
var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$));
var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";
- var VCHAR$$ = merge(QTEXT$$, '[\\"\\\\]');
+ var VCHAR$$ = merge3(QTEXT$$, '[\\"\\\\]');
var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
var UNRESERVED = new RegExp(UNRESERVED$$, "g");
var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
- var NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
- var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
+ var NOT_LOCAL_PART = new RegExp(merge3("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
+ var NOT_HFNAME = new RegExp(merge3("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
var NOT_HFVALUE = NOT_HFNAME;
function decodeUnreserved(str) {
var decStr = pctDecChars(str);
@@ -27209,13 +72496,13 @@ var require_uri_all = __commonJS2((exports, module) => {
var toAddr = String(to[x]);
var atIdx = toAddr.lastIndexOf("@");
var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
- var domain = toAddr.slice(atIdx + 1);
+ var domain2 = toAddr.slice(atIdx + 1);
try {
- domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain);
+ domain2 = !options.iri ? punycode.toASCII(unescapeComponent(domain2, options).toLowerCase()) : punycode.toUnicode(domain2);
} catch (e) {
components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
}
- to[x] = localPart + "@" + domain;
+ to[x] = localPart + "@" + domain2;
}
components.path = to.join(",");
}
@@ -27276,7 +72563,7 @@ var require_uri_all = __commonJS2((exports, module) => {
var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
var handler$6 = {
scheme: "urn:uuid",
- parse: function parse3(urnComponents, options) {
+ parse: function parse5(urnComponents, options) {
var uuidComponents = urnComponents;
uuidComponents.uuid = uuidComponents.nss;
uuidComponents.nss = void 0;
@@ -27291,7 +72578,7 @@ var require_uri_all = __commonJS2((exports, module) => {
return urnComponents;
}
};
- SCHEMES[handler.scheme] = handler;
+ SCHEMES[handler2.scheme] = handler2;
SCHEMES[handler$1.scheme] = handler$1;
SCHEMES[handler$2.scheme] = handler$2;
SCHEMES[handler$3.scheme] = handler$3;
@@ -27301,7 +72588,7 @@ var require_uri_all = __commonJS2((exports, module) => {
exports2.SCHEMES = SCHEMES;
exports2.pctEncChar = pctEncChar;
exports2.pctDecChars = pctDecChars;
- exports2.parse = parse2;
+ exports2.parse = parse4;
exports2.removeDotSegments = removeDotSegments;
exports2.serialize = serialize;
exports2.resolveComponents = resolveComponents;
@@ -27400,18 +72687,18 @@ var require_util8 = __commonJS2((exports, module) => {
return to;
}
function checkDataType(dataType, data, strictNumbers, negate) {
- var EQUAL = negate ? " !== " : " === ", AND = negate ? " || " : " && ", OK2 = negate ? "!" : "", NOT = negate ? "" : "!";
+ var EQUAL = negate ? " !== " : " === ", AND = negate ? " || " : " && ", OK22 = negate ? "!" : "", NOT = negate ? "" : "!";
switch (dataType) {
case "null":
return data + EQUAL + "null";
case "array":
- return OK2 + "Array.isArray(" + data + ")";
+ return OK22 + "Array.isArray(" + data + ")";
case "object":
- return "(" + OK2 + data + AND + "typeof " + data + EQUAL + '"object"' + AND + NOT + "Array.isArray(" + data + "))";
+ return "(" + OK22 + data + AND + "typeof " + data + EQUAL + '"object"' + AND + NOT + "Array.isArray(" + data + "))";
case "integer":
- return "(typeof " + data + EQUAL + '"number"' + AND + NOT + "(" + data + " % 1)" + AND + data + EQUAL + data + (strictNumbers ? AND + OK2 + "isFinite(" + data + ")" : "") + ")";
+ return "(typeof " + data + EQUAL + '"number"' + AND + NOT + "(" + data + " % 1)" + AND + data + EQUAL + data + (strictNumbers ? AND + OK22 + "isFinite(" + data + ")" : "") + ")";
case "number":
- return "(typeof " + data + EQUAL + '"' + dataType + '"' + (strictNumbers ? AND + OK2 + "isFinite(" + data + ")" : "") + ")";
+ return "(typeof " + data + EQUAL + '"' + dataType + '"' + (strictNumbers ? AND + OK22 + "isFinite(" + data + ")" : "") + ")";
default:
return "typeof " + data + EQUAL + '"' + dataType + '"';
}
@@ -27504,13 +72791,13 @@ var require_util8 = __commonJS2((exports, module) => {
function toQuotedString(str) {
return "'" + escapeQuotes(str) + "'";
}
- function getPathExpr(currentPath, expr, jsonPointers, isNumber) {
- var path4 = jsonPointers ? "'/' + " + expr + (isNumber ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
- return joinPaths(currentPath, path4);
+ function getPathExpr(currentPath, expr, jsonPointers, isNumber2) {
+ var path3 = jsonPointers ? "'/' + " + expr + (isNumber2 ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber2 ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
+ return joinPaths(currentPath, path3);
}
function getPath(currentPath, prop, jsonPointers) {
- var path4 = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
- return joinPaths(currentPath, path4);
+ var path3 = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
+ return joinPaths(currentPath, path3);
}
var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
@@ -28484,9 +73771,9 @@ var require_compile = __commonJS2((exports, module) => {
endCompiling.call(this, schema2, root2, baseId);
}
function callValidate() {
- var validate = compilation.validate;
- var result = validate.apply(this, arguments);
- callValidate.errors = validate.errors;
+ var validate2 = compilation.validate;
+ var result = validate2.apply(this, arguments);
+ callValidate.errors = validate2.errors;
return result;
}
function localCompile(_schema, _root, localRefs2, baseId2) {
@@ -28520,30 +73807,30 @@ var require_compile = __commonJS2((exports, module) => {
sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode) + vars(defaults, defaultCode) + vars(customRules, customRuleCode) + sourceCode;
if (opts.processCode)
sourceCode = opts.processCode(sourceCode, _schema);
- var validate;
+ var validate2;
try {
var makeValidate = new Function("self", "RULES", "formats", "root", "refVal", "defaults", "customRules", "equal", "ucs2length", "ValidationError", sourceCode);
- validate = makeValidate(self2, RULES, formats, root2, refVal, defaults, customRules, equal, ucs2length, ValidationError);
- refVal[0] = validate;
+ validate2 = makeValidate(self2, RULES, formats, root2, refVal, defaults, customRules, equal, ucs2length, ValidationError);
+ refVal[0] = validate2;
} catch (e) {
self2.logger.error("Error compiling schema, function code:", sourceCode);
throw e;
}
- validate.schema = _schema;
- validate.errors = null;
- validate.refs = refs;
- validate.refVal = refVal;
- validate.root = isRoot ? validate : _root;
+ validate2.schema = _schema;
+ validate2.errors = null;
+ validate2.refs = refs;
+ validate2.refVal = refVal;
+ validate2.root = isRoot ? validate2 : _root;
if ($async)
- validate.$async = true;
+ validate2.$async = true;
if (opts.sourceCode === true) {
- validate.source = {
+ validate2.source = {
code: sourceCode,
patterns,
defaults
};
}
- return validate;
+ return validate2;
}
function resolveRef(baseId2, ref, isRoot) {
ref = resolve.url(baseId2, ref);
@@ -28640,27 +73927,27 @@ var require_compile = __commonJS2((exports, module) => {
}
}
var compile2 = rule.definition.compile, inline = rule.definition.inline, macro = rule.definition.macro;
- var validate;
+ var validate2;
if (compile2) {
- validate = compile2.call(self2, schema22, parentSchema, it);
+ validate2 = compile2.call(self2, schema22, parentSchema, it);
} else if (macro) {
- validate = macro.call(self2, schema22, parentSchema, it);
+ validate2 = macro.call(self2, schema22, parentSchema, it);
if (opts.validateSchema !== false)
- self2.validateSchema(validate, true);
+ self2.validateSchema(validate2, true);
} else if (inline) {
- validate = inline.call(self2, it, rule.keyword, schema22, parentSchema);
+ validate2 = inline.call(self2, it, rule.keyword, schema22, parentSchema);
} else {
- validate = rule.definition.validate;
- if (!validate)
+ validate2 = rule.definition.validate;
+ if (!validate2)
return;
}
- if (validate === void 0)
+ if (validate2 === void 0)
throw new Error('custom keyword "' + rule.keyword + '"failed to compile');
var index = customRules.length;
- customRules[index] = validate;
+ customRules[index] = validate2;
return {
code: "customRule" + index,
- validate
+ validate: validate2
};
}
}
@@ -28736,7 +74023,7 @@ var require_formats = __commonJS2((exports, module) => {
var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-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&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
var URITEMPLATE = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;
- var URL22 = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;
+ var URL2 = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;
var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
@@ -28753,7 +74040,7 @@ var require_formats = __commonJS2((exports, module) => {
uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
"uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
"uri-template": URITEMPLATE,
- url: URL22,
+ url: URL2,
email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,
hostname: HOSTNAME,
ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
@@ -28765,13 +74052,13 @@ var require_formats = __commonJS2((exports, module) => {
"relative-json-pointer": RELATIVE_JSON_POINTER
};
formats.full = {
- date,
- time,
+ date: date2,
+ time: time2,
"date-time": date_time,
uri,
"uri-reference": URIREF,
"uri-template": URITEMPLATE,
- url: URL22,
+ url: URL2,
email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
hostname: HOSTNAME,
ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
@@ -28785,7 +74072,7 @@ var require_formats = __commonJS2((exports, module) => {
function isLeapYear(year) {
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
}
- function date(str) {
+ function date2(str) {
var matches = str.match(DATE);
if (!matches)
return false;
@@ -28794,7 +74081,7 @@ var require_formats = __commonJS2((exports, module) => {
var day = +matches[3];
return month >= 1 && month <= 12 && day >= 1 && day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]);
}
- function time(str, full) {
+ function time2(str, full) {
var matches = str.match(TIME);
if (!matches)
return false;
@@ -28807,7 +74094,7 @@ var require_formats = __commonJS2((exports, module) => {
var DATE_TIME_SEPARATOR = /t|\s/i;
function date_time(str) {
var dateTime = str.split(DATE_TIME_SEPARATOR);
- return dateTime.length == 2 && date(dateTime[0]) && time(dateTime[1], true);
+ return dateTime.length == 2 && date2(dateTime[0]) && time2(dateTime[1], true);
}
var NOT_URI_FRAGMENT = /\/|:/;
function uri(str) {
@@ -32022,34 +77309,34 @@ var require_ajv = __commonJS2((exports, module) => {
var rules = require_rules();
var $dataMetaSchema = require_data();
var util3 = require_util8();
- module.exports = Ajv;
- Ajv.prototype.validate = validate;
- Ajv.prototype.compile = compile;
- Ajv.prototype.addSchema = addSchema;
- Ajv.prototype.addMetaSchema = addMetaSchema;
- Ajv.prototype.validateSchema = validateSchema;
- Ajv.prototype.getSchema = getSchema;
- Ajv.prototype.removeSchema = removeSchema;
- Ajv.prototype.addFormat = addFormat;
- Ajv.prototype.errorsText = errorsText;
- Ajv.prototype._addSchema = _addSchema;
- Ajv.prototype._compile = _compile;
- Ajv.prototype.compileAsync = require_async();
+ module.exports = Ajv2;
+ Ajv2.prototype.validate = validate2;
+ Ajv2.prototype.compile = compile;
+ Ajv2.prototype.addSchema = addSchema;
+ Ajv2.prototype.addMetaSchema = addMetaSchema;
+ Ajv2.prototype.validateSchema = validateSchema;
+ Ajv2.prototype.getSchema = getSchema;
+ Ajv2.prototype.removeSchema = removeSchema;
+ Ajv2.prototype.addFormat = addFormat2;
+ Ajv2.prototype.errorsText = errorsText;
+ Ajv2.prototype._addSchema = _addSchema;
+ Ajv2.prototype._compile = _compile;
+ Ajv2.prototype.compileAsync = require_async();
var customKeyword = require_keyword();
- Ajv.prototype.addKeyword = customKeyword.add;
- Ajv.prototype.getKeyword = customKeyword.get;
- Ajv.prototype.removeKeyword = customKeyword.remove;
- Ajv.prototype.validateKeyword = customKeyword.validate;
+ Ajv2.prototype.addKeyword = customKeyword.add;
+ Ajv2.prototype.getKeyword = customKeyword.get;
+ Ajv2.prototype.removeKeyword = customKeyword.remove;
+ Ajv2.prototype.validateKeyword = customKeyword.validate;
var errorClasses = require_error_classes();
- Ajv.ValidationError = errorClasses.Validation;
- Ajv.MissingRefError = errorClasses.MissingRef;
- Ajv.$dataMetaSchema = $dataMetaSchema;
+ Ajv2.ValidationError = errorClasses.Validation;
+ Ajv2.MissingRefError = errorClasses.MissingRef;
+ Ajv2.$dataMetaSchema = $dataMetaSchema;
var META_SCHEMA_ID = "http://json-schema.org/draft-07/schema";
var META_IGNORE_OPTIONS = ["removeAdditional", "useDefaults", "coerceTypes", "strictDefaults"];
var META_SUPPORT_DATA = ["/properties"];
- function Ajv(opts) {
- if (!(this instanceof Ajv))
- return new Ajv(opts);
+ function Ajv2(opts) {
+ if (!(this instanceof Ajv2))
+ return new Ajv2(opts);
opts = this._opts = util3.copy(opts) || {};
setLogger(this);
this._schemas = {};
@@ -32078,7 +77365,7 @@ var require_ajv = __commonJS2((exports, module) => {
this.addKeyword("nullable", { metaSchema: { type: "boolean" } });
addInitialSchemas(this);
}
- function validate(schemaKeyRef, data) {
+ function validate2(schemaKeyRef, data) {
var v;
if (typeof schemaKeyRef == "string") {
v = this.getSchema(schemaKeyRef);
@@ -32217,9 +77504,9 @@ var require_ajv = __commonJS2((exports, module) => {
throw new Error("schema should be object or boolean");
var serialize = this._opts.serialize;
var cacheKey = serialize ? serialize(schema2) : schema2;
- var cached2 = this._cache.get(cacheKey);
- if (cached2)
- return cached2;
+ var cached3 = this._cache.get(cacheKey);
+ if (cached3)
+ return cached3;
shouldAddSchema = shouldAddSchema || this._opts.addUsedSchema !== false;
var id = resolve.normalizeId(this._getId(schema2));
if (id && shouldAddSchema)
@@ -32322,10 +77609,10 @@ var require_ajv = __commonJS2((exports, module) => {
}
return text.slice(0, -separator2.length);
}
- function addFormat(name, format) {
- if (typeof format == "string")
- format = new RegExp(format);
- this._formats[name] = format;
+ function addFormat2(name, format2) {
+ if (typeof format2 == "string")
+ format2 = new RegExp(format2);
+ this._formats[name] = format2;
return this;
}
function addDefaultMetaSchema(self2) {
@@ -32354,8 +77641,8 @@ var require_ajv = __commonJS2((exports, module) => {
}
function addInitialFormats(self2) {
for (var name in self2._opts.formats) {
- var format = self2._opts.formats[name];
- self2.addFormat(name, format);
+ var format2 = self2._opts.formats[name];
+ self2.addFormat(name, format2);
}
}
function addInitialKeywords(self2) {
@@ -32377,7 +77664,7 @@ var require_ajv = __commonJS2((exports, module) => {
function setLogger(self2) {
var logger = self2._opts.logger;
if (logger === false) {
- self2.logger = { log: noop, warn: noop, error: noop };
+ self2.logger = { log: noop3, warn: noop3, error: noop3 };
} else {
if (logger === void 0)
logger = console;
@@ -32386,7 +77673,7 @@ var require_ajv = __commonJS2((exports, module) => {
self2.logger = logger;
}
}
- function noop() {
+ function noop3() {
}
});
var DEFAULT_MAX_LISTENERS = 50;
@@ -32449,29 +77736,29 @@ var NodeFsOperations = {
}
}
},
- appendFileSync(path4, data) {
- fs.appendFileSync(path4, data);
+ appendFileSync(path3, data) {
+ fs.appendFileSync(path3, data);
},
copyFileSync(src, dest) {
fs.copyFileSync(src, dest);
},
- unlinkSync(path4) {
- fs.unlinkSync(path4);
+ unlinkSync(path3) {
+ fs.unlinkSync(path3);
},
renameSync(oldPath, newPath) {
fs.renameSync(oldPath, newPath);
},
- linkSync(target, path4) {
- fs.linkSync(target, path4);
+ linkSync(target, path3) {
+ fs.linkSync(target, path3);
},
- symlinkSync(target, path4) {
- fs.symlinkSync(target, path4);
+ symlinkSync(target, path3) {
+ fs.symlinkSync(target, path3);
},
- readlinkSync(path4) {
- return fs.readlinkSync(path4);
+ readlinkSync(path3) {
+ return fs.readlinkSync(path3);
},
- realpathSync(path4) {
- return fs.realpathSync(path4);
+ realpathSync(path3) {
+ return fs.realpathSync(path3);
},
mkdirSync(dirPath) {
if (!fs.existsSync(dirPath)) {
@@ -32491,11 +77778,11 @@ var NodeFsOperations = {
rmdirSync(dirPath) {
fs.rmdirSync(dirPath);
},
- rmSync(path4, options) {
- fs.rmSync(path4, options);
+ rmSync(path3, options) {
+ fs.rmSync(path3, options);
},
- createWriteStream(path4) {
- return fs.createWriteStream(path4);
+ createWriteStream(path3) {
+ return fs.createWriteStream(path3);
}
};
var activeFs = NodeFsOperations;
@@ -32528,7 +77815,7 @@ var ProcessTransport = class {
const {
additionalDirectories = [],
agents: agents2,
- cwd: cwd4,
+ cwd: cwd2,
executable = isRunningWithBun() ? "bun" : "node",
executableArgs = [],
extraArgs = {},
@@ -32663,7 +77950,7 @@ var ProcessTransport = class {
this.logForDebugging(isNative ? `Spawning Claude Code native binary: ${spawnCommand} ${spawnArgs.join(" ")}` : `Spawning Claude Code process: ${spawnCommand} ${spawnArgs.join(" ")}`);
const stderrMode = env2.DEBUG || stderr ? "pipe" : "ignore";
this.child = spawn(spawnCommand, spawnArgs, {
- cwd: cwd4,
+ cwd: cwd2,
stdio: ["pipe", "pipe", stderrMode],
signal: this.abortController.signal,
env: env2
@@ -32684,12 +77971,12 @@ var ProcessTransport = class {
this.abortHandler = cleanup;
process.on("exit", this.processExitHandler);
this.abortController.signal.addEventListener("abort", this.abortHandler);
- this.child.on("error", (error2) => {
+ this.child.on("error", (error41) => {
this.ready = false;
if (this.abortController.signal.aborted) {
this.exitError = new AbortError("Claude Code process aborted by user");
} else {
- this.exitError = new Error(`Failed to spawn Claude Code process: ${error2.message}`);
+ this.exitError = new Error(`Failed to spawn Claude Code process: ${error41.message}`);
this.logForDebugging(this.exitError.message);
}
});
@@ -32698,17 +77985,17 @@ var ProcessTransport = class {
if (this.abortController.signal.aborted) {
this.exitError = new AbortError("Claude Code process aborted by user");
} else {
- const error2 = this.getProcessExitError(code, signal);
- if (error2) {
- this.exitError = error2;
- this.logForDebugging(error2.message);
+ const error41 = this.getProcessExitError(code, signal);
+ if (error41) {
+ this.exitError = error41;
+ this.logForDebugging(error41.message);
}
}
});
this.ready = true;
- } catch (error2) {
+ } catch (error41) {
this.ready = false;
- throw error2;
+ throw error41;
}
}
getProcessExitError(code, signal) {
@@ -32750,9 +78037,9 @@ var ProcessTransport = class {
if (!written && process.env.DEBUG_SDK) {
console.warn("[ProcessTransport] Write buffer full, data queued");
}
- } catch (error2) {
+ } catch (error41) {
this.ready = false;
- throw new Error(`Failed to write to process stdin: ${error2.message}`);
+ throw new Error(`Failed to write to process stdin: ${error41.message}`);
}
}
close() {
@@ -32768,8 +78055,8 @@ var ProcessTransport = class {
this.abortController.signal.removeEventListener("abort", this.abortHandler);
this.abortHandler = void 0;
}
- for (const { handler } of this.exitListeners) {
- this.child?.off("exit", handler);
+ for (const { handler: handler2 } of this.exitListeners) {
+ this.child?.off("exit", handler2);
}
this.exitListeners = [];
if (this.child && !this.child.killed) {
@@ -32798,8 +78085,8 @@ var ProcessTransport = class {
}
}
await this.waitForExit();
- } catch (error2) {
- throw error2;
+ } catch (error41) {
+ throw error41;
} finally {
rl.close();
}
@@ -32816,17 +78103,17 @@ var ProcessTransport = class {
if (!this.child)
return () => {
};
- const handler = (code, signal) => {
- const error2 = this.getProcessExitError(code, signal);
- callback(error2);
+ const handler2 = (code, signal) => {
+ const error41 = this.getProcessExitError(code, signal);
+ callback(error41);
};
- this.child.on("exit", handler);
- this.exitListeners.push({ callback, handler });
+ this.child.on("exit", handler2);
+ this.exitListeners.push({ callback, handler: handler2 });
return () => {
if (this.child) {
- this.child.off("exit", handler);
+ this.child.off("exit", handler2);
}
- const index = this.exitListeners.findIndex((l) => l.handler === handler);
+ const index = this.exitListeners.findIndex((l) => l.handler === handler2);
if (index !== -1) {
this.exitListeners.splice(index, 1);
}
@@ -32851,17 +78138,17 @@ var ProcessTransport = class {
reject(new AbortError("Operation aborted"));
return;
}
- const error2 = this.getProcessExitError(code, signal);
- if (error2) {
- reject(error2);
+ const error41 = this.getProcessExitError(code, signal);
+ if (error41) {
+ reject(error41);
} else {
resolve();
}
};
this.child.once("exit", exitHandler);
- const errorHandler = (error2) => {
+ const errorHandler = (error41) => {
this.child.off("exit", exitHandler);
- reject(error2);
+ reject(error41);
};
this.child.once("error", errorHandler);
this.child.once("exit", () => {
@@ -32929,13 +78216,13 @@ var Stream = class {
resolve({ done: true, value: void 0 });
}
}
- error(error2) {
- this.hasError = error2;
+ error(error41) {
+ this.hasError = error41;
if (this.readReject) {
const reject = this.readReject;
this.readResolve = void 0;
this.readReject = void 0;
- reject(error2);
+ reject(error41);
}
}
return() {
@@ -33596,10 +78883,10 @@ var Query = class {
this.initialization.catch(() => {
});
}
- setError(error2) {
- this.inputStream.error(error2);
+ setError(error41) {
+ this.inputStream.error(error41);
}
- cleanup(error2) {
+ cleanup(error41) {
if (this.cleanupPerformed)
return;
this.cleanupPerformed = true;
@@ -33607,8 +78894,8 @@ var Query = class {
this.transport.close();
this.pendingControlResponses.clear();
this.pendingMcpResponses.clear();
- if (error2) {
- this.inputStream.error(error2);
+ if (error41) {
+ this.inputStream.error(error41);
} else {
this.inputStream.done();
}
@@ -33634,9 +78921,9 @@ var Query = class {
try {
for await (const message of this.transport.readMessages()) {
if (message.type === "control_response") {
- const handler = this.pendingControlResponses.get(message.response.request_id);
- if (handler) {
- handler(message.response);
+ const handler2 = this.pendingControlResponses.get(message.response.request_id);
+ if (handler2) {
+ handler2(message.response);
}
continue;
} else if (message.type === "control_request") {
@@ -33660,63 +78947,63 @@ var Query = class {
}
this.inputStream.done();
this.cleanup();
- } catch (error2) {
- this.inputStream.error(error2);
- this.cleanup(error2);
+ } catch (error41) {
+ this.inputStream.error(error41);
+ this.cleanup(error41);
}
}
- async handleControlRequest(request) {
+ async handleControlRequest(request2) {
const controller = new AbortController();
- this.cancelControllers.set(request.request_id, controller);
+ this.cancelControllers.set(request2.request_id, controller);
try {
- const response = await this.processControlRequest(request, controller.signal);
+ const response = await this.processControlRequest(request2, controller.signal);
const controlResponse = {
type: "control_response",
response: {
subtype: "success",
- request_id: request.request_id,
+ request_id: request2.request_id,
response
}
};
await Promise.resolve(this.transport.write(JSON.stringify(controlResponse) + `
`));
- } catch (error2) {
+ } catch (error41) {
const controlErrorResponse = {
type: "control_response",
response: {
subtype: "error",
- request_id: request.request_id,
- error: error2.message || String(error2)
+ request_id: request2.request_id,
+ error: error41.message || String(error41)
}
};
await Promise.resolve(this.transport.write(JSON.stringify(controlErrorResponse) + `
`));
} finally {
- this.cancelControllers.delete(request.request_id);
+ this.cancelControllers.delete(request2.request_id);
}
}
- handleControlCancelRequest(request) {
- const controller = this.cancelControllers.get(request.request_id);
+ handleControlCancelRequest(request2) {
+ const controller = this.cancelControllers.get(request2.request_id);
if (controller) {
controller.abort();
- this.cancelControllers.delete(request.request_id);
+ this.cancelControllers.delete(request2.request_id);
}
}
- async processControlRequest(request, signal) {
- if (request.request.subtype === "can_use_tool") {
+ async processControlRequest(request2, signal) {
+ if (request2.request.subtype === "can_use_tool") {
if (!this.canUseTool) {
throw new Error("canUseTool callback is not provided.");
}
- return this.canUseTool(request.request.tool_name, request.request.input, {
+ return this.canUseTool(request2.request.tool_name, request2.request.input, {
signal,
- suggestions: request.request.permission_suggestions,
- toolUseID: request.request.tool_use_id
+ suggestions: request2.request.permission_suggestions,
+ toolUseID: request2.request.tool_use_id
});
- } else if (request.request.subtype === "hook_callback") {
- const result = await this.handleHookCallbacks(request.request.callback_id, request.request.input, request.request.tool_use_id, signal);
+ } else if (request2.request.subtype === "hook_callback") {
+ const result = await this.handleHookCallbacks(request2.request.callback_id, request2.request.input, request2.request.tool_use_id, signal);
return result;
- } else if (request.request.subtype === "mcp_message") {
- const mcpRequest = request.request;
+ } else if (request2.request.subtype === "mcp_message") {
+ const mcpRequest = request2.request;
const transport = this.sdkMcpTransports.get(mcpRequest.server_name);
if (!transport) {
throw new Error(`SDK MCP server not found: ${mcpRequest.server_name}`);
@@ -33731,7 +79018,7 @@ var Query = class {
return { mcp_response: { jsonrpc: "2.0", result: {}, id: 0 } };
}
}
- throw new Error("Unsupported control request subtype: " + request.request.subtype);
+ throw new Error("Unsupported control request subtype: " + request2.request.subtype);
}
async *readSdkMessages() {
for await (const message of this.inputStream) {
@@ -33792,19 +79079,19 @@ var Query = class {
});
}
async processPendingPermissionRequests(pendingPermissionRequests) {
- for (const request of pendingPermissionRequests) {
- if (request.request.subtype === "can_use_tool") {
- this.handleControlRequest(request).catch(() => {
+ for (const request2 of pendingPermissionRequests) {
+ if (request2.request.subtype === "can_use_tool") {
+ this.handleControlRequest(request2).catch(() => {
});
}
}
}
- request(request) {
+ request(request2) {
const requestId = Math.random().toString(36).substring(2, 15);
const sdkRequest = {
request_id: requestId,
type: "control_request",
- request
+ request: request2
};
return new Promise((resolve, reject) => {
this.pendingControlResponses.set(requestId, (response) => {
@@ -33876,9 +79163,9 @@ var Query = class {
}
logForDebugging(`[Query] Calling transport.endInput() to close stdin to CLI process`);
this.transport.endInput();
- } catch (error2) {
- if (!(error2 instanceof AbortError)) {
- throw error2;
+ } catch (error41) {
+ if (!(error41 instanceof AbortError)) {
+ throw error41;
}
}
}
@@ -33914,9 +79201,9 @@ var Query = class {
cleanup();
resolve(response);
};
- const rejectAndCleanup = (error2) => {
+ const rejectAndCleanup = (error41) => {
cleanup();
- reject(error2);
+ reject(error41);
};
this.pendingMcpResponses.set(key, {
resolve: resolveAndCleanup,
@@ -33933,7 +79220,7 @@ var Query = class {
}
};
var exports_external = {};
-__export(exports_external, {
+__export2(exports_external, {
void: () => voidType,
util: () => util,
unknown: () => unknownType,
@@ -34043,37 +79330,37 @@ __export(exports_external, {
BRAND: () => BRAND
});
var util;
-(function(util2) {
- util2.assertEqual = (_) => {
+(function(util22) {
+ util22.assertEqual = (_) => {
};
- function assertIs(_arg) {
+ function assertIs2(_arg) {
}
- util2.assertIs = assertIs;
- function assertNever(_x) {
+ util22.assertIs = assertIs2;
+ function assertNever2(_x) {
throw new Error();
}
- util2.assertNever = assertNever;
- util2.arrayToEnum = (items) => {
+ util22.assertNever = assertNever2;
+ util22.arrayToEnum = (items) => {
const obj = {};
for (const item of items) {
obj[item] = item;
}
return obj;
};
- util2.getValidEnumValues = (obj) => {
- const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
+ util22.getValidEnumValues = (obj) => {
+ const validKeys = util22.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
const filtered = {};
for (const k of validKeys) {
filtered[k] = obj[k];
}
- return util2.objectValues(filtered);
+ return util22.objectValues(filtered);
};
- util2.objectValues = (obj) => {
- return util2.objectKeys(obj).map(function(e) {
+ util22.objectValues = (obj) => {
+ return util22.objectKeys(obj).map(function(e) {
return obj[e];
});
};
- util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object2) => {
+ util22.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object2) => {
const keys = [];
for (const key in object2) {
if (Object.prototype.hasOwnProperty.call(object2, key)) {
@@ -34082,19 +79369,19 @@ var util;
}
return keys;
};
- util2.find = (arr, checker) => {
+ util22.find = (arr, checker) => {
for (const item of arr) {
if (checker(item))
return item;
}
return;
};
- util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
- function joinValues(array, separator2 = " | ") {
+ util22.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
+ function joinValues2(array, separator2 = " | ") {
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator2);
}
- util2.joinValues = joinValues;
- util2.jsonStringifyReplacer = (_, value2) => {
+ util22.joinValues = joinValues2;
+ util22.jsonStringifyReplacer = (_, value2) => {
if (typeof value2 === "bigint") {
return value2.toString();
}
@@ -34102,8 +79389,8 @@ var util;
};
})(util || (util = {}));
var objectUtil;
-(function(objectUtil2) {
- objectUtil2.mergeShapes = (first, second) => {
+(function(objectUtil22) {
+ objectUtil22.mergeShapes = (first, second) => {
return {
...first,
...second
@@ -34218,31 +79505,31 @@ var ZodError = class _ZodError extends Error {
this.issues = issues;
}
format(_mapper) {
- const mapper = _mapper || function(issue) {
- return issue.message;
+ const mapper = _mapper || function(issue2) {
+ return issue2.message;
};
const fieldErrors = { _errors: [] };
- const processError = (error2) => {
- for (const issue of error2.issues) {
- if (issue.code === "invalid_union") {
- issue.unionErrors.map(processError);
- } else if (issue.code === "invalid_return_type") {
- processError(issue.returnTypeError);
- } else if (issue.code === "invalid_arguments") {
- processError(issue.argumentsError);
- } else if (issue.path.length === 0) {
- fieldErrors._errors.push(mapper(issue));
+ const processError = (error41) => {
+ for (const issue2 of error41.issues) {
+ if (issue2.code === "invalid_union") {
+ issue2.unionErrors.map(processError);
+ } else if (issue2.code === "invalid_return_type") {
+ processError(issue2.returnTypeError);
+ } else if (issue2.code === "invalid_arguments") {
+ processError(issue2.argumentsError);
+ } else if (issue2.path.length === 0) {
+ fieldErrors._errors.push(mapper(issue2));
} else {
let curr = fieldErrors;
let i = 0;
- while (i < issue.path.length) {
- const el = issue.path[i];
- const terminal = i === issue.path.length - 1;
+ while (i < issue2.path.length) {
+ const el = issue2.path[i];
+ const terminal = i === issue2.path.length - 1;
if (!terminal) {
curr[el] = curr[el] || { _errors: [] };
} else {
curr[el] = curr[el] || { _errors: [] };
- curr[el]._errors.push(mapper(issue));
+ curr[el]._errors.push(mapper(issue2));
}
curr = curr[el];
i++;
@@ -34267,7 +79554,7 @@ var ZodError = class _ZodError extends Error {
get isEmpty() {
return this.issues.length === 0;
}
- flatten(mapper = (issue) => issue.message) {
+ flatten(mapper = (issue2) => issue2.message) {
const fieldErrors = {};
const formErrors = [];
for (const sub of this.issues) {
@@ -34286,33 +79573,33 @@ var ZodError = class _ZodError extends Error {
}
};
ZodError.create = (issues) => {
- const error2 = new ZodError(issues);
- return error2;
+ const error41 = new ZodError(issues);
+ return error41;
};
-var errorMap = (issue, _ctx) => {
+var errorMap = (issue2, _ctx) => {
let message;
- switch (issue.code) {
+ switch (issue2.code) {
case ZodIssueCode.invalid_type:
- if (issue.received === ZodParsedType.undefined) {
+ if (issue2.received === ZodParsedType.undefined) {
message = "Required";
} else {
- message = `Expected ${issue.expected}, received ${issue.received}`;
+ message = `Expected ${issue2.expected}, received ${issue2.received}`;
}
break;
case ZodIssueCode.invalid_literal:
- message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
+ message = `Invalid literal value, expected ${JSON.stringify(issue2.expected, util.jsonStringifyReplacer)}`;
break;
case ZodIssueCode.unrecognized_keys:
- message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
+ message = `Unrecognized key(s) in object: ${util.joinValues(issue2.keys, ", ")}`;
break;
case ZodIssueCode.invalid_union:
message = `Invalid input`;
break;
case ZodIssueCode.invalid_union_discriminator:
- message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
+ message = `Invalid discriminator value. Expected ${util.joinValues(issue2.options)}`;
break;
case ZodIssueCode.invalid_enum_value:
- message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
+ message = `Invalid enum value. Expected ${util.joinValues(issue2.options)}, received '${issue2.received}'`;
break;
case ZodIssueCode.invalid_arguments:
message = `Invalid function arguments`;
@@ -34324,50 +79611,50 @@ var errorMap = (issue, _ctx) => {
message = `Invalid date`;
break;
case ZodIssueCode.invalid_string:
- if (typeof issue.validation === "object") {
- if ("includes" in issue.validation) {
- message = `Invalid input: must include "${issue.validation.includes}"`;
- if (typeof issue.validation.position === "number") {
- message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
+ if (typeof issue2.validation === "object") {
+ if ("includes" in issue2.validation) {
+ message = `Invalid input: must include "${issue2.validation.includes}"`;
+ if (typeof issue2.validation.position === "number") {
+ message = `${message} at one or more positions greater than or equal to ${issue2.validation.position}`;
}
- } else if ("startsWith" in issue.validation) {
- message = `Invalid input: must start with "${issue.validation.startsWith}"`;
- } else if ("endsWith" in issue.validation) {
- message = `Invalid input: must end with "${issue.validation.endsWith}"`;
+ } else if ("startsWith" in issue2.validation) {
+ message = `Invalid input: must start with "${issue2.validation.startsWith}"`;
+ } else if ("endsWith" in issue2.validation) {
+ message = `Invalid input: must end with "${issue2.validation.endsWith}"`;
} else {
- util.assertNever(issue.validation);
+ util.assertNever(issue2.validation);
}
- } else if (issue.validation !== "regex") {
- message = `Invalid ${issue.validation}`;
+ } else if (issue2.validation !== "regex") {
+ message = `Invalid ${issue2.validation}`;
} else {
message = "Invalid";
}
break;
case ZodIssueCode.too_small:
- if (issue.type === "array")
- message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
- else if (issue.type === "string")
- message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
- else if (issue.type === "number")
- message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
- else if (issue.type === "bigint")
- message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
- else if (issue.type === "date")
- message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
+ if (issue2.type === "array")
+ message = `Array must contain ${issue2.exact ? "exactly" : issue2.inclusive ? `at least` : `more than`} ${issue2.minimum} element(s)`;
+ else if (issue2.type === "string")
+ message = `String must contain ${issue2.exact ? "exactly" : issue2.inclusive ? `at least` : `over`} ${issue2.minimum} character(s)`;
+ else if (issue2.type === "number")
+ message = `Number must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${issue2.minimum}`;
+ else if (issue2.type === "bigint")
+ message = `Number must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${issue2.minimum}`;
+ else if (issue2.type === "date")
+ message = `Date must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue2.minimum))}`;
else
message = "Invalid input";
break;
case ZodIssueCode.too_big:
- if (issue.type === "array")
- message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
- else if (issue.type === "string")
- message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
- else if (issue.type === "number")
- message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
- else if (issue.type === "bigint")
- message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
- else if (issue.type === "date")
- message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;
+ if (issue2.type === "array")
+ message = `Array must contain ${issue2.exact ? `exactly` : issue2.inclusive ? `at most` : `less than`} ${issue2.maximum} element(s)`;
+ else if (issue2.type === "string")
+ message = `String must contain ${issue2.exact ? `exactly` : issue2.inclusive ? `at most` : `under`} ${issue2.maximum} character(s)`;
+ else if (issue2.type === "number")
+ message = `Number must be ${issue2.exact ? `exactly` : issue2.inclusive ? `less than or equal to` : `less than`} ${issue2.maximum}`;
+ else if (issue2.type === "bigint")
+ message = `BigInt must be ${issue2.exact ? `exactly` : issue2.inclusive ? `less than or equal to` : `less than`} ${issue2.maximum}`;
+ else if (issue2.type === "date")
+ message = `Date must be ${issue2.exact ? `exactly` : issue2.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue2.maximum))}`;
else
message = "Invalid input";
break;
@@ -34378,14 +79665,14 @@ var errorMap = (issue, _ctx) => {
message = `Intersection results could not be merged`;
break;
case ZodIssueCode.not_multiple_of:
- message = `Number must be a multiple of ${issue.multipleOf}`;
+ message = `Number must be a multiple of ${issue2.multipleOf}`;
break;
case ZodIssueCode.not_finite:
message = "Number must be finite";
break;
default:
message = _ctx.defaultError;
- util.assertNever(issue);
+ util.assertNever(issue2);
}
return { message };
};
@@ -34398,8 +79685,8 @@ function getErrorMap() {
return overrideErrorMap;
}
var makeIssue = (params) => {
- const { data, path: path4, errorMaps, issueData } = params;
- const fullPath = [...path4, ...issueData.path || []];
+ const { data, path: path3, errorMaps, issueData } = params;
+ const fullPath = [...path3, ...issueData.path || []];
const fullIssue = {
...issueData,
path: fullPath
@@ -34425,7 +79712,7 @@ var makeIssue = (params) => {
var EMPTY_PATH = [];
function addIssueToContext(ctx, issueData) {
const overrideMap = getErrorMap();
- const issue = makeIssue({
+ const issue2 = makeIssue({
issueData,
data: ctx.data,
path: ctx.path,
@@ -34436,7 +79723,7 @@ function addIssueToContext(ctx, issueData) {
overrideMap === en_default ? void 0 : en_default
].filter((x) => !!x)
});
- ctx.common.issues.push(issue);
+ ctx.common.issues.push(issue2);
}
var ParseStatus = class _ParseStatus {
constructor() {
@@ -34502,16 +79789,16 @@ var isDirty = (x) => x.status === "dirty";
var isValid = (x) => x.status === "valid";
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
var errorUtil;
-(function(errorUtil2) {
- errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
- errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
+(function(errorUtil22) {
+ errorUtil22.errToObj = (message) => typeof message === "string" ? { message } : message || {};
+ errorUtil22.toString = (message) => typeof message === "string" ? message : message?.message;
})(errorUtil || (errorUtil = {}));
var ParseInputLazyPath = class {
- constructor(parent, value2, path4, key) {
+ constructor(parent, value2, path3, key) {
this._cachedPath = [];
this.parent = parent;
this.data = value2;
- this._path = path4;
+ this._path = path3;
this._key = key;
}
get path() {
@@ -34537,8 +79824,8 @@ var handleResult = (ctx, result) => {
get error() {
if (this._error)
return this._error;
- const error2 = new ZodError(ctx.common.issues);
- this._error = error2;
+ const error41 = new ZodError(ctx.common.issues);
+ this._error = error41;
return this._error;
}
};
@@ -34547,12 +79834,12 @@ var handleResult = (ctx, result) => {
function processCreateParams(params) {
if (!params)
return {};
- const { errorMap: errorMap2, invalid_type_error, required_error, description } = params;
- if (errorMap2 && (invalid_type_error || required_error)) {
+ const { errorMap: errorMap22, invalid_type_error, required_error, description } = params;
+ if (errorMap22 && (invalid_type_error || required_error)) {
throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
}
- if (errorMap2)
- return { errorMap: errorMap2, description };
+ if (errorMap22)
+ return { errorMap: errorMap22, description };
const customMap = (iss, ctx) => {
const { message } = params;
if (iss.code === "invalid_enum_value") {
@@ -34650,8 +79937,8 @@ var ZodType = class {
} : {
issues: ctx.common.issues
};
- } catch (err2) {
- if (err2?.message?.toLowerCase()?.includes("encountered")) {
+ } catch (err) {
+ if (err?.message?.toLowerCase()?.includes("encountered")) {
this["~standard"].async = true;
}
ctx.common = {
@@ -34890,11 +80177,11 @@ function datetimeRegex(args2) {
regex3 = `${regex3}(${opts.join("|")})`;
return new RegExp(`^${regex3}$`);
}
-function isValidIP(ip2, version) {
- if ((version === "v4" || !version) && ipv4Regex.test(ip2)) {
+function isValidIP(ip2, version2) {
+ if ((version2 === "v4" || !version2) && ipv4Regex.test(ip2)) {
return true;
}
- if ((version === "v6" || !version) && ipv6Regex.test(ip2)) {
+ if ((version2 === "v6" || !version2) && ipv6Regex.test(ip2)) {
return true;
}
return false;
@@ -34906,8 +80193,8 @@ function isValidJWT(jwt, alg) {
const [header] = jwt.split(".");
if (!header)
return false;
- const base642 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
- const decoded = JSON.parse(atob(base642));
+ const base643 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
+ const decoded = JSON.parse(atob(base643));
if (typeof decoded !== "object" || decoded === null)
return false;
if ("typ" in decoded && decoded?.typ !== "JWT")
@@ -34921,11 +80208,11 @@ function isValidJWT(jwt, alg) {
return false;
}
}
-function isValidCidr(ip2, version) {
- if ((version === "v4" || !version) && ipv4CidrRegex.test(ip2)) {
+function isValidCidr(ip2, version2) {
+ if ((version2 === "v4" || !version2) && ipv4CidrRegex.test(ip2)) {
return true;
}
- if ((version === "v6" || !version) && ipv6CidrRegex.test(ip2)) {
+ if ((version2 === "v6" || !version2) && ipv6CidrRegex.test(ip2)) {
return true;
}
return false;
@@ -34935,8 +80222,8 @@ var ZodString = class _ZodString extends ZodType {
if (this._def.coerce) {
input.data = String(input.data);
}
- const parsedType = this._getType(input);
- if (parsedType !== ZodParsedType.string) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType.string) {
const ctx2 = this._getOrReturnCtx(input);
addIssueToContext(ctx2, {
code: ZodIssueCode.invalid_type,
@@ -35492,8 +80779,8 @@ var ZodNumber = class _ZodNumber extends ZodType {
if (this._def.coerce) {
input.data = Number(input.data);
}
- const parsedType = this._getType(input);
- if (parsedType !== ZodParsedType.number) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType.number) {
const ctx2 = this._getOrReturnCtx(input);
addIssueToContext(ctx2, {
code: ZodIssueCode.invalid_type,
@@ -35727,8 +81014,8 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
return this._getInvalidInput(input);
}
}
- const parsedType = this._getType(input);
- if (parsedType !== ZodParsedType.bigint) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType.bigint) {
return this._getInvalidInput(input);
}
let ctx = void 0;
@@ -35890,8 +81177,8 @@ var ZodBoolean = class extends ZodType {
if (this._def.coerce) {
input.data = Boolean(input.data);
}
- const parsedType = this._getType(input);
- if (parsedType !== ZodParsedType.boolean) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType.boolean) {
const ctx = this._getOrReturnCtx(input);
addIssueToContext(ctx, {
code: ZodIssueCode.invalid_type,
@@ -35915,8 +81202,8 @@ var ZodDate = class _ZodDate extends ZodType {
if (this._def.coerce) {
input.data = new Date(input.data);
}
- const parsedType = this._getType(input);
- if (parsedType !== ZodParsedType.date) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType.date) {
const ctx2 = this._getOrReturnCtx(input);
addIssueToContext(ctx2, {
code: ZodIssueCode.invalid_type,
@@ -36021,8 +81308,8 @@ ZodDate.create = (params) => {
};
var ZodSymbol = class extends ZodType {
_parse(input) {
- const parsedType = this._getType(input);
- if (parsedType !== ZodParsedType.symbol) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType.symbol) {
const ctx = this._getOrReturnCtx(input);
addIssueToContext(ctx, {
code: ZodIssueCode.invalid_type,
@@ -36042,8 +81329,8 @@ ZodSymbol.create = (params) => {
};
var ZodUndefined = class extends ZodType {
_parse(input) {
- const parsedType = this._getType(input);
- if (parsedType !== ZodParsedType.undefined) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType.undefined) {
const ctx = this._getOrReturnCtx(input);
addIssueToContext(ctx, {
code: ZodIssueCode.invalid_type,
@@ -36063,8 +81350,8 @@ ZodUndefined.create = (params) => {
};
var ZodNull = class extends ZodType {
_parse(input) {
- const parsedType = this._getType(input);
- if (parsedType !== ZodParsedType.null) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType.null) {
const ctx = this._getOrReturnCtx(input);
addIssueToContext(ctx, {
code: ZodIssueCode.invalid_type,
@@ -36131,8 +81418,8 @@ ZodNever.create = (params) => {
};
var ZodVoid = class extends ZodType {
_parse(input) {
- const parsedType = this._getType(input);
- if (parsedType !== ZodParsedType.undefined) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType.undefined) {
const ctx = this._getOrReturnCtx(input);
addIssueToContext(ctx, {
code: ZodIssueCode.invalid_type,
@@ -36293,8 +81580,8 @@ var ZodObject = class _ZodObject extends ZodType {
return this._cached;
}
_parse(input) {
- const parsedType = this._getType(input);
- if (parsedType !== ZodParsedType.object) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType.object) {
const ctx2 = this._getOrReturnCtx(input);
addIssueToContext(ctx2, {
code: ZodIssueCode.invalid_type,
@@ -36384,9 +81671,9 @@ var ZodObject = class _ZodObject extends ZodType {
...this._def,
unknownKeys: "strict",
...message !== void 0 ? {
- errorMap: (issue, ctx) => {
- const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
- if (issue.code === "unrecognized_keys")
+ errorMap: (issue2, ctx) => {
+ const defaultError = this._def.errorMap?.(issue2, ctx).message ?? ctx.defaultError;
+ if (issue2.code === "unrecognized_keys")
return {
message: errorUtil.errToObj(message).message ?? defaultError
};
@@ -37098,25 +82385,25 @@ var ZodFunction = class _ZodFunction extends ZodType {
});
return INVALID;
}
- function makeArgsIssue(args2, error2) {
+ function makeArgsIssue(args2, error41) {
return makeIssue({
data: args2,
path: ctx.path,
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x) => !!x),
issueData: {
code: ZodIssueCode.invalid_arguments,
- argumentsError: error2
+ argumentsError: error41
}
});
}
- function makeReturnsIssue(returns, error2) {
+ function makeReturnsIssue(returns, error41) {
return makeIssue({
data: returns,
path: ctx.path,
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x) => !!x),
issueData: {
code: ZodIssueCode.invalid_return_type,
- returnTypeError: error2
+ returnTypeError: error41
}
});
}
@@ -37125,15 +82412,15 @@ var ZodFunction = class _ZodFunction extends ZodType {
if (this._def.returns instanceof ZodPromise) {
const me = this;
return OK(async function(...args2) {
- const error2 = new ZodError([]);
+ const error41 = new ZodError([]);
const parsedArgs = await me._def.args.parseAsync(args2, params).catch((e) => {
- error2.addIssue(makeArgsIssue(args2, e));
- throw error2;
+ error41.addIssue(makeArgsIssue(args2, e));
+ throw error41;
});
const result = await Reflect.apply(fn2, this, parsedArgs);
const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => {
- error2.addIssue(makeReturnsIssue(result, e));
- throw error2;
+ error41.addIssue(makeReturnsIssue(result, e));
+ throw error41;
});
return parsedReturns;
});
@@ -37510,8 +82797,8 @@ ZodEffects.createWithPreprocess = (preprocess, schema2, params) => {
};
var ZodOptional = class extends ZodType {
_parse(input) {
- const parsedType = this._getType(input);
- if (parsedType === ZodParsedType.undefined) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 === ZodParsedType.undefined) {
return OK(void 0);
}
return this._def.innerType._parse(input);
@@ -37529,8 +82816,8 @@ ZodOptional.create = (type2, params) => {
};
var ZodNullable = class extends ZodType {
_parse(input) {
- const parsedType = this._getType(input);
- if (parsedType === ZodParsedType.null) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 === ZodParsedType.null) {
return OK(null);
}
return this._def.innerType._parse(input);
@@ -37626,8 +82913,8 @@ ZodCatch.create = (type2, params) => {
};
var ZodNaN = class extends ZodType {
_parse(input) {
- const parsedType = this._getType(input);
- if (parsedType !== ZodParsedType.nan) {
+ const parsedType4 = this._getType(input);
+ if (parsedType4 !== ZodParsedType.nan) {
const ctx = this._getOrReturnCtx(input);
addIssueToContext(ctx, {
code: ZodIssueCode.invalid_type,
@@ -37768,43 +83055,43 @@ var late = {
object: ZodObject.lazycreate
};
var ZodFirstPartyTypeKind;
-(function(ZodFirstPartyTypeKind2) {
- ZodFirstPartyTypeKind2["ZodString"] = "ZodString";
- ZodFirstPartyTypeKind2["ZodNumber"] = "ZodNumber";
- ZodFirstPartyTypeKind2["ZodNaN"] = "ZodNaN";
- ZodFirstPartyTypeKind2["ZodBigInt"] = "ZodBigInt";
- ZodFirstPartyTypeKind2["ZodBoolean"] = "ZodBoolean";
- ZodFirstPartyTypeKind2["ZodDate"] = "ZodDate";
- ZodFirstPartyTypeKind2["ZodSymbol"] = "ZodSymbol";
- ZodFirstPartyTypeKind2["ZodUndefined"] = "ZodUndefined";
- ZodFirstPartyTypeKind2["ZodNull"] = "ZodNull";
- ZodFirstPartyTypeKind2["ZodAny"] = "ZodAny";
- ZodFirstPartyTypeKind2["ZodUnknown"] = "ZodUnknown";
- ZodFirstPartyTypeKind2["ZodNever"] = "ZodNever";
- ZodFirstPartyTypeKind2["ZodVoid"] = "ZodVoid";
- ZodFirstPartyTypeKind2["ZodArray"] = "ZodArray";
- ZodFirstPartyTypeKind2["ZodObject"] = "ZodObject";
- ZodFirstPartyTypeKind2["ZodUnion"] = "ZodUnion";
- ZodFirstPartyTypeKind2["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
- ZodFirstPartyTypeKind2["ZodIntersection"] = "ZodIntersection";
- ZodFirstPartyTypeKind2["ZodTuple"] = "ZodTuple";
- ZodFirstPartyTypeKind2["ZodRecord"] = "ZodRecord";
- ZodFirstPartyTypeKind2["ZodMap"] = "ZodMap";
- ZodFirstPartyTypeKind2["ZodSet"] = "ZodSet";
- ZodFirstPartyTypeKind2["ZodFunction"] = "ZodFunction";
- ZodFirstPartyTypeKind2["ZodLazy"] = "ZodLazy";
- ZodFirstPartyTypeKind2["ZodLiteral"] = "ZodLiteral";
- ZodFirstPartyTypeKind2["ZodEnum"] = "ZodEnum";
- ZodFirstPartyTypeKind2["ZodEffects"] = "ZodEffects";
- ZodFirstPartyTypeKind2["ZodNativeEnum"] = "ZodNativeEnum";
- ZodFirstPartyTypeKind2["ZodOptional"] = "ZodOptional";
- ZodFirstPartyTypeKind2["ZodNullable"] = "ZodNullable";
- ZodFirstPartyTypeKind2["ZodDefault"] = "ZodDefault";
- ZodFirstPartyTypeKind2["ZodCatch"] = "ZodCatch";
- ZodFirstPartyTypeKind2["ZodPromise"] = "ZodPromise";
- ZodFirstPartyTypeKind2["ZodBranded"] = "ZodBranded";
- ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";
- ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";
+(function(ZodFirstPartyTypeKind22) {
+ ZodFirstPartyTypeKind22["ZodString"] = "ZodString";
+ ZodFirstPartyTypeKind22["ZodNumber"] = "ZodNumber";
+ ZodFirstPartyTypeKind22["ZodNaN"] = "ZodNaN";
+ ZodFirstPartyTypeKind22["ZodBigInt"] = "ZodBigInt";
+ ZodFirstPartyTypeKind22["ZodBoolean"] = "ZodBoolean";
+ ZodFirstPartyTypeKind22["ZodDate"] = "ZodDate";
+ ZodFirstPartyTypeKind22["ZodSymbol"] = "ZodSymbol";
+ ZodFirstPartyTypeKind22["ZodUndefined"] = "ZodUndefined";
+ ZodFirstPartyTypeKind22["ZodNull"] = "ZodNull";
+ ZodFirstPartyTypeKind22["ZodAny"] = "ZodAny";
+ ZodFirstPartyTypeKind22["ZodUnknown"] = "ZodUnknown";
+ ZodFirstPartyTypeKind22["ZodNever"] = "ZodNever";
+ ZodFirstPartyTypeKind22["ZodVoid"] = "ZodVoid";
+ ZodFirstPartyTypeKind22["ZodArray"] = "ZodArray";
+ ZodFirstPartyTypeKind22["ZodObject"] = "ZodObject";
+ ZodFirstPartyTypeKind22["ZodUnion"] = "ZodUnion";
+ ZodFirstPartyTypeKind22["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
+ ZodFirstPartyTypeKind22["ZodIntersection"] = "ZodIntersection";
+ ZodFirstPartyTypeKind22["ZodTuple"] = "ZodTuple";
+ ZodFirstPartyTypeKind22["ZodRecord"] = "ZodRecord";
+ ZodFirstPartyTypeKind22["ZodMap"] = "ZodMap";
+ ZodFirstPartyTypeKind22["ZodSet"] = "ZodSet";
+ ZodFirstPartyTypeKind22["ZodFunction"] = "ZodFunction";
+ ZodFirstPartyTypeKind22["ZodLazy"] = "ZodLazy";
+ ZodFirstPartyTypeKind22["ZodLiteral"] = "ZodLiteral";
+ ZodFirstPartyTypeKind22["ZodEnum"] = "ZodEnum";
+ ZodFirstPartyTypeKind22["ZodEffects"] = "ZodEffects";
+ ZodFirstPartyTypeKind22["ZodNativeEnum"] = "ZodNativeEnum";
+ ZodFirstPartyTypeKind22["ZodOptional"] = "ZodOptional";
+ ZodFirstPartyTypeKind22["ZodNullable"] = "ZodNullable";
+ ZodFirstPartyTypeKind22["ZodDefault"] = "ZodDefault";
+ ZodFirstPartyTypeKind22["ZodCatch"] = "ZodCatch";
+ ZodFirstPartyTypeKind22["ZodPromise"] = "ZodPromise";
+ ZodFirstPartyTypeKind22["ZodBranded"] = "ZodBranded";
+ ZodFirstPartyTypeKind22["ZodPipeline"] = "ZodPipeline";
+ ZodFirstPartyTypeKind22["ZodReadonly"] = "ZodReadonly";
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
var instanceOfType = (cls, params = {
message: `Input not instance of ${cls.name}`
@@ -37894,14 +83181,14 @@ var JSONRPCResponseSchema = exports_external.object({
result: ResultSchema
}).strict();
var ErrorCode;
-(function(ErrorCode2) {
- ErrorCode2[ErrorCode2["ConnectionClosed"] = -32e3] = "ConnectionClosed";
- ErrorCode2[ErrorCode2["RequestTimeout"] = -32001] = "RequestTimeout";
- ErrorCode2[ErrorCode2["ParseError"] = -32700] = "ParseError";
- ErrorCode2[ErrorCode2["InvalidRequest"] = -32600] = "InvalidRequest";
- ErrorCode2[ErrorCode2["MethodNotFound"] = -32601] = "MethodNotFound";
- ErrorCode2[ErrorCode2["InvalidParams"] = -32602] = "InvalidParams";
- ErrorCode2[ErrorCode2["InternalError"] = -32603] = "InternalError";
+(function(ErrorCode22) {
+ ErrorCode22[ErrorCode22["ConnectionClosed"] = -32e3] = "ConnectionClosed";
+ ErrorCode22[ErrorCode22["RequestTimeout"] = -32001] = "RequestTimeout";
+ ErrorCode22[ErrorCode22["ParseError"] = -32700] = "ParseError";
+ ErrorCode22[ErrorCode22["InvalidRequest"] = -32600] = "InvalidRequest";
+ ErrorCode22[ErrorCode22["MethodNotFound"] = -32601] = "MethodNotFound";
+ ErrorCode22[ErrorCode22["InvalidParams"] = -32602] = "InvalidParams";
+ ErrorCode22[ErrorCode22["InternalError"] = -32603] = "InternalError";
})(ErrorCode || (ErrorCode = {}));
var JSONRPCErrorSchema = exports_external.object({
jsonrpc: exports_external.literal(JSONRPC_VERSION),
@@ -38417,12 +83704,12 @@ Completable.create = (type2, params) => {
function processCreateParams2(params) {
if (!params)
return {};
- const { errorMap: errorMap2, invalid_type_error, required_error, description } = params;
- if (errorMap2 && (invalid_type_error || required_error)) {
+ const { errorMap: errorMap22, invalid_type_error, required_error, description } = params;
+ if (errorMap22 && (invalid_type_error || required_error)) {
throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
}
- if (errorMap2)
- return { errorMap: errorMap2, description };
+ if (errorMap22)
+ return { errorMap: errorMap22, description };
const customMap = (iss, ctx) => {
var _a, _b;
const { message } = params;
@@ -38455,8 +83742,8 @@ function query({
let pathToClaudeCodeExecutable = rest.pathToClaudeCodeExecutable;
if (!pathToClaudeCodeExecutable) {
const filename = fileURLToPath(import.meta.url);
- const dirname22 = join3(filename, "..");
- pathToClaudeCodeExecutable = join3(dirname22, "cli.js");
+ const dirname2 = join3(filename, "..");
+ pathToClaudeCodeExecutable = join3(dirname2, "cli.js");
}
process.env.CLAUDE_AGENT_SDK_VERSION = "0.1.37";
const {
@@ -38466,7 +83753,7 @@ function query({
allowedTools = [],
canUseTool,
continue: continueConversation,
- cwd: cwd22,
+ cwd: cwd2,
disallowedTools = [],
env: env2,
executable = isRunningWithBun() ? "bun" : "node",
@@ -38503,15 +83790,15 @@ function query({
const allMcpServers = {};
const sdkMcpServers = /* @__PURE__ */ new Map();
if (mcpServers) {
- for (const [name, config] of Object.entries(mcpServers)) {
- if (config.type === "sdk" && "instance" in config) {
- sdkMcpServers.set(name, config.instance);
+ for (const [name, config2] of Object.entries(mcpServers)) {
+ if (config2.type === "sdk" && "instance" in config2) {
+ sdkMcpServers.set(name, config2.instance);
allMcpServers[name] = {
type: "sdk",
name
};
} else {
- allMcpServers[name] = config;
+ allMcpServers[name] = config2;
}
}
}
@@ -38520,7 +83807,7 @@ function query({
abortController,
additionalDirectories,
agents: agents2,
- cwd: cwd22,
+ cwd: cwd2,
executable,
executableArgs,
extraArgs,
@@ -38572,7 +83859,7 @@ function query({
// package.json
var package_default = {
name: "@pullfrog/action",
- version: "0.0.112",
+ version: "0.0.113",
type: "module",
files: [
"index.js",
@@ -38898,14 +84185,14 @@ var log = {
*/
toolCallToFile: ({
toolName,
- request,
+ request: request2,
result,
- error: error2
+ error: error41
}) => {
const logPath = getMcpLogPath();
- const params = { toolName, request };
- if (error2) {
- params.error = error2;
+ const params = { toolName, request: request2 };
+ if (error41) {
+ params.error = error41;
} else if (result) {
params.result = result;
}
@@ -38935,8 +84222,8 @@ function formatIndentedField(label, content) {
}
return formatted;
}
-function formatToolInput(request) {
- const requestFormatted = formatJsonValue(request);
+function formatToolInput(request2) {
+ const requestFormatted = formatJsonValue(request2);
if (requestFormatted === "{}") {
return "";
}
@@ -38953,15 +84240,15 @@ function formatToolResult(result) {
}
function formatToolCall({
toolName,
- request,
+ request: request2,
result,
- error: error2
+ error: error41
}) {
let logEntry = `\u2192 ${toolName}
`;
- logEntry += formatToolInput(request);
- if (error2) {
- logEntry += formatIndentedField("error", error2);
+ logEntry += formatToolInput(request2);
+ if (error41) {
+ logEntry += formatIndentedField("error", error41);
} else if (result) {
logEntry += formatToolResult(result);
}
@@ -39351,7 +84638,7 @@ function resolveOptions(options) {
};
}
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/registry.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/registry.js
var _registryName = "$ark";
var suffix = 2;
while (_registryName in globalThis)
@@ -39362,7 +84649,7 @@ var $ark = registry;
var reference = (name) => `${registryName}.${name}`;
var registeredReference = (value2) => reference(register(value2));
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/compile.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/compile.js
var CompiledFunction = class extends CastableBase {
argNames;
body = "";
@@ -39499,7 +84786,7 @@ var NodeCompiler = class extends CompiledFunction {
}
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/utils.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/utils.js
var makeRootAndArrayPropertiesMutable = (o) => (
// this cast should not be required, but it seems TS is referencing
// the wrong parameters here?
@@ -39509,7 +84796,7 @@ var arkKind = noSuggest("arkKind");
var hasArkKind = (value2, kind) => value2?.[arkKind] === kind;
var isNode = (value2) => hasArkKind(value2, "root") || hasArkKind(value2, "constraint");
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/implement.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/implement.js
var basisKinds = ["unit", "proto", "domain"];
var structuralKinds = [
"required",
@@ -39597,7 +84884,7 @@ var implementNode = (_) => {
return implementation23;
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/toJsonSchema.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/toJsonSchema.js
var ToJsonSchemaError = class extends Error {
name = "ToJsonSchemaError";
code;
@@ -39637,8 +84924,14 @@ var ToJsonSchema = {
defaultConfig
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/config.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/config.js
$ark.config ??= {};
+var configureSchema = (config2) => {
+ const result = Object.assign($ark.config, mergeConfigs($ark.config, config2));
+ if ($ark.resolvedConfig)
+ $ark.resolvedConfig = mergeConfigs($ark.resolvedConfig, result);
+ return result;
+};
var mergeConfigs = (base, merged) => {
if (!merged)
return base;
@@ -39695,7 +84988,7 @@ var mergeFallbacks = (base, merged) => {
};
var normalizeFallback = (fallback) => typeof fallback === "function" ? { default: fallback } : fallback ?? {};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/errors.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/errors.js
var ArkError = class _ArkError extends CastableBase {
[arkKind] = "error";
path;
@@ -39746,26 +85039,26 @@ var ArkError = class _ArkError extends CastableBase {
get expected() {
if (this.input.expected)
return this.input.expected;
- const config = this.meta?.expected ?? this.nodeConfig.expected;
- return typeof config === "function" ? config(this.input) : config;
+ const config2 = this.meta?.expected ?? this.nodeConfig.expected;
+ return typeof config2 === "function" ? config2(this.input) : config2;
}
get actual() {
if (this.input.actual)
return this.input.actual;
- const config = this.meta?.actual ?? this.nodeConfig.actual;
- return typeof config === "function" ? config(this.data) : config;
+ const config2 = this.meta?.actual ?? this.nodeConfig.actual;
+ return typeof config2 === "function" ? config2(this.data) : config2;
}
get problem() {
if (this.input.problem)
return this.input.problem;
- const config = this.meta?.problem ?? this.nodeConfig.problem;
- return typeof config === "function" ? config(this) : config;
+ const config2 = this.meta?.problem ?? this.nodeConfig.problem;
+ return typeof config2 === "function" ? config2(this) : config2;
}
get message() {
if (this.input.message)
return this.input.message;
- const config = this.meta?.message ?? this.nodeConfig.message;
- return typeof config === "function" ? config(this) : config;
+ const config2 = this.meta?.message ?? this.nodeConfig.message;
+ return typeof config2 === "function" ? config2(this) : config2;
}
get flat() {
return this.hasCode("intersection") ? [...this.errors] : [this];
@@ -39837,25 +85130,25 @@ var ArkErrors = class _ArkErrors extends ReadonlyArray {
/**
* Append an ArkError to this array, ignoring duplicates.
*/
- add(error2) {
- const existing = this.byPath[error2.propString];
+ add(error41) {
+ const existing = this.byPath[error41.propString];
if (existing) {
- if (error2 === existing)
+ if (error41 === existing)
return;
if (existing.hasCode("union") && existing.errors.length === 0)
return;
- const errorIntersection = error2.hasCode("union") && error2.errors.length === 0 ? error2 : new ArkError({
+ const errorIntersection = error41.hasCode("union") && error41.errors.length === 0 ? error41 : new ArkError({
code: "intersection",
- errors: existing.hasCode("intersection") ? [...existing.errors, error2] : [existing, error2]
+ errors: existing.hasCode("intersection") ? [...existing.errors, error41] : [existing, error41]
}, this.ctx);
const existingIndex = this.indexOf(existing);
this.mutable[existingIndex === -1 ? this.length : existingIndex] = errorIntersection;
- this.byPath[error2.propString] = errorIntersection;
- this.addAncestorPaths(error2);
+ this.byPath[error41.propString] = errorIntersection;
+ this.addAncestorPaths(error41);
} else {
- this.byPath[error2.propString] = error2;
- this.addAncestorPaths(error2);
- this.mutable.push(error2);
+ this.byPath[error41.propString] = error41;
+ this.addAncestorPaths(error41);
+ this.mutable.push(error41);
}
this.count++;
}
@@ -39877,15 +85170,15 @@ var ArkErrors = class _ArkErrors extends ReadonlyArray {
/**
* @internal
*/
- affectsPath(path4) {
+ affectsPath(path3) {
if (this.length === 0)
return false;
return (
// this would occur if there is an existing error at a prefix of path
// e.g. the path is ["foo", "bar"] and there is an error at ["foo"]
- path4.stringifyAncestors().some((s) => s in this.byPath) || // this would occur if there is an existing error at a suffix of path
+ path3.stringifyAncestors().some((s) => s in this.byPath) || // this would occur if there is an existing error at a suffix of path
// e.g. the path is ["foo"] and there is an error at ["foo", "bar"]
- path4.stringify() in this.byAncestorPath
+ path3.stringify() in this.byAncestorPath
);
}
/**
@@ -39906,9 +85199,9 @@ var ArkErrors = class _ArkErrors extends ReadonlyArray {
toString() {
return this.join("\n");
}
- addAncestorPaths(error2) {
- for (const propString of error2.path.stringifyAncestors()) {
- this.byAncestorPath[propString] = append(this.byAncestorPath[propString], error2);
+ addAncestorPaths(error41) {
+ for (const propString of error41.path.stringifyAncestors()) {
+ this.byAncestorPath[propString] = append(this.byAncestorPath[propString], error41);
}
}
};
@@ -39918,16 +85211,16 @@ var TraversalError = class extends Error {
if (errors.length === 1)
super(errors.summary);
else
- super("\n" + errors.map((error2) => ` \u2022 ${indent(error2)}`).join("\n"));
+ super("\n" + errors.map((error41) => ` \u2022 ${indent(error41)}`).join("\n"));
Object.defineProperty(this, "arkErrors", {
value: errors,
enumerable: false
});
}
};
-var indent = (error2) => error2.toString().split("\n").join("\n ");
+var indent = (error41) => error41.toString().split("\n").join("\n ");
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/traversal.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/traversal.js
var Traversal = class {
/**
* #### the path being validated or morphed
@@ -39958,9 +85251,9 @@ var Traversal = class {
queuedMorphs = [];
branches = [];
seen = {};
- constructor(root2, config) {
+ constructor(root2, config2) {
this.root = root2;
- this.config = config;
+ this.config = config2;
}
/**
* #### the data being validated or morphed
@@ -40061,34 +85354,34 @@ var Traversal = class {
return this.errorFromContext(input);
}
errorFromContext(errCtx) {
- const error2 = new ArkError(errCtx, this);
+ const error41 = new ArkError(errCtx, this);
if (this.currentBranch)
- this.currentBranch.error = error2;
+ this.currentBranch.error = error41;
else
- this.errors.add(error2);
- return error2;
+ this.errors.add(error41);
+ return error41;
}
applyQueuedMorphs() {
while (this.queuedMorphs.length) {
const queuedMorphs = this.queuedMorphs;
this.queuedMorphs = [];
- for (const { path: path4, morphs } of queuedMorphs) {
- if (this.errors.affectsPath(path4))
+ for (const { path: path3, morphs } of queuedMorphs) {
+ if (this.errors.affectsPath(path3))
continue;
- this.applyMorphsAtPath(path4, morphs);
+ this.applyMorphsAtPath(path3, morphs);
}
}
}
- applyMorphsAtPath(path4, morphs) {
- const key = path4.at(-1);
+ applyMorphsAtPath(path3, morphs) {
+ const key = path3.at(-1);
let parent;
if (key !== void 0) {
parent = this.root;
- for (let pathIndex = 0; pathIndex < path4.length - 1; pathIndex++)
- parent = parent[path4[pathIndex]];
+ for (let pathIndex = 0; pathIndex < path3.length - 1; pathIndex++)
+ parent = parent[path3[pathIndex]];
}
for (const morph of morphs) {
- this.path = [...path4];
+ this.path = [...path3];
const morphIsNode = isNode(morph);
const result = morph(parent === void 0 ? this.root : parent[key], this);
if (result instanceof ArkError) {
@@ -40119,7 +85412,7 @@ var traverseKey = (key, fn2, ctx) => {
return result;
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/node.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/node.js
var BaseNode = class extends Callable {
attachments;
$;
@@ -40209,10 +85502,10 @@ var BaseNode = class extends Callable {
};
case "optimistic":
this.contextFreeMorph = this.shallowMorphs[0];
- const clone = this.$.resolvedConfig.clone;
+ const clone2 = this.$.resolvedConfig.clone;
return (data, onFail) => {
if (this.allows(data)) {
- return this.contextFreeMorph(clone && (typeof data === "object" && data !== null || typeof data === "function") ? clone(data) : data);
+ return this.contextFreeMorph(clone2 && (typeof data === "object" && data !== null || typeof data === "function") ? clone2(data) : data);
}
const ctx = new Traversal(data, this.$.resolvedConfig);
this.traverseApply(data, ctx);
@@ -40463,15 +85756,15 @@ var NodeSelector = {
normalize: (selector) => typeof selector === "function" ? { boundary: "references", method: "filter", where: selector } : typeof selector === "string" ? isKeyOf(selector, NodeSelector.applyBoundary) ? { method: "filter", boundary: selector } : { boundary: "references", method: "filter", kind: selector } : { boundary: "references", method: "filter", ...selector }
};
var writeSelectAssertionMessage = (from, selector) => `${from} had no references matching ${printable(selector)}.`;
-var typePathToPropString = (path4) => stringifyPath(path4, {
+var typePathToPropString = (path3) => stringifyPath(path3, {
stringifyNonKey: (node2) => node2.expression
});
var referenceMatcher = /"(\$ark\.[^"]+)"/g;
var compileMeta = (metaJson) => JSON.stringify(metaJson).replaceAll(referenceMatcher, "$1");
-var flatRef = (path4, node2) => ({
- path: path4,
+var flatRef = (path3, node2) => ({
+ path: path3,
node: node2,
- propString: typePathToPropString(path4)
+ propString: typePathToPropString(path3)
});
var flatRefsAreEqual = (l, r) => l.propString === r.propString && l.node.equals(r.node);
var appendUniqueFlatRefs = (existing, refs) => appendUnique(existing, refs, {
@@ -40481,7 +85774,7 @@ var appendUniqueNodes = (existing, refs) => appendUnique(existing, refs, {
isEqual: (l, r) => l.equals(r)
});
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/disjoint.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/disjoint.js
var Disjoint = class _Disjoint extends Array {
static init(kind, l, r, ctx) {
return new _Disjoint({
@@ -40507,12 +85800,12 @@ var Disjoint = class _Disjoint extends Array {
}
describeReasons() {
if (this.length === 1) {
- const { path: path4, l, r } = this[0];
- const pathString = stringifyPath(path4);
+ const { path: path3, l, r } = this[0];
+ const pathString = stringifyPath(path3);
return writeUnsatisfiableExpressionError(`Intersection${pathString && ` at ${pathString}`} of ${describeReasons(l, r)}`);
}
return `The following intersections result in unsatisfiable types:
-\u2022 ${this.map(({ path: path4, l, r }) => `${path4}: ${describeReasons(l, r)}`).join("\n\u2022 ")}`;
+\u2022 ${this.map(({ path: path3, l, r }) => `${path3}: ${describeReasons(l, r)}`).join("\n\u2022 ")}`;
}
throw() {
return throwParseError(this.describeReasons());
@@ -40542,7 +85835,7 @@ var describeReasons = (l, r) => `${describeReason(l)} and ${describeReason(r)}`;
var describeReason = (value2) => isNode(value2) ? value2.expression : isArray(value2) ? value2.map(describeReason).join(" | ") || "never" : String(value2);
var writeUnsatisfiableExpressionError = (expression) => `${expression} results in an unsatisfiable type`;
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/intersections.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/shared/intersections.js
var intersectionCache = {};
var intersectNodesRoot = (l, r, $2) => intersectOrPipeNodes(l, r, {
$: $2,
@@ -40653,7 +85946,7 @@ var _pipeMorphed = (from, to, ctx) => {
});
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/constraint.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/constraint.js
var BaseConstraint = class extends BaseNode {
constructor(attachments, $2) {
super(attachments, $2);
@@ -40767,7 +86060,7 @@ var writeInvalidOperandMessage = (kind, expected, actual) => {
return `${capitalize(kind)} operand must be ${expected.description} (was ${actualDescription})`;
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/generic.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/generic.js
var parseGeneric = (paramDefs, bodyDef, $2) => new GenericRoot(paramDefs, bodyDef, $2, $2, null);
var LazyGenericBody = class extends Callable {
};
@@ -40837,7 +86130,7 @@ var GenericRoot = class extends Callable {
};
var writeUnsatisfiedParameterConstraintMessage = (name, constraint, arg) => `${name} must be assignable to ${constraint} (was ${arg})`;
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/predicate.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/predicate.js
var implementation = implementNode({
kind: "predicate",
hasAssociatedError: true,
@@ -40894,7 +86187,7 @@ var Predicate = {
Node: PredicateNode
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/divisor.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/divisor.js
var implementation2 = implementNode({
kind: "divisor",
collapsibleKey: "rule",
@@ -40946,7 +86239,7 @@ var greatestCommonDivisor = (l, r) => {
return greatestCommonDivisor2;
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/range.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/range.js
var BaseRange = class extends InternalPrimitiveConstraint {
boundOperandKind = operandKindsByBoundKind[this.kind];
compiledActual = this.boundOperandKind === "value" ? `data` : this.boundOperandKind === "length" ? `data.length` : `data.valueOf()`;
@@ -41029,7 +86322,7 @@ var compileComparator = (kind, exclusive) => `${isKeyOf(kind, boundKindPairsByLo
var dateLimitToString = (limit) => typeof limit === "string" ? limit : new Date(limit).toLocaleString();
var writeUnboundableMessage = (root2) => `Bounded expression ${root2} must be exactly one of number, string, Array, or Date`;
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/after.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/after.js
var implementation3 = implementNode({
kind: "after",
collapsibleKey: "rule",
@@ -41062,7 +86355,7 @@ var After = {
Node: AfterNode
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/before.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/before.js
var implementation4 = implementNode({
kind: "before",
collapsibleKey: "rule",
@@ -41096,7 +86389,7 @@ var Before = {
Node: BeforeNode
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/exactLength.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/exactLength.js
var implementation5 = implementNode({
kind: "exactLength",
collapsibleKey: "rule",
@@ -41143,7 +86436,7 @@ var ExactLength = {
Node: ExactLengthNode
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/max.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/max.js
var implementation6 = implementNode({
kind: "max",
collapsibleKey: "rule",
@@ -41182,7 +86475,7 @@ var Max = {
Node: MaxNode
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/maxLength.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/maxLength.js
var implementation7 = implementNode({
kind: "maxLength",
collapsibleKey: "rule",
@@ -41224,7 +86517,7 @@ var MaxLength = {
Node: MaxLengthNode
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/min.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/min.js
var implementation8 = implementNode({
kind: "min",
collapsibleKey: "rule",
@@ -41262,7 +86555,7 @@ var Min = {
Node: MinNode
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/minLength.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/minLength.js
var implementation9 = implementNode({
kind: "minLength",
collapsibleKey: "rule",
@@ -41307,7 +86600,7 @@ var MinLength = {
Node: MinLengthNode
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/kinds.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/kinds.js
var boundImplementationsByKind = {
min: Min.implementation,
max: Max.implementation,
@@ -41327,7 +86620,7 @@ var boundClassesByKind = {
before: Before.Node
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/pattern.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/refinements/pattern.js
var implementation10 = implementNode({
kind: "pattern",
collapsibleKey: "rule",
@@ -41373,7 +86666,7 @@ var Pattern = {
Node: PatternNode
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/parse.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/parse.js
var schemaKindOf = (schema2, allowedKinds) => {
const kind = discriminateRootKind(schema2);
if (allowedKinds && !allowedKinds.includes(kind)) {
@@ -41558,7 +86851,7 @@ var possiblyCollapse = (json3, toKey, allowPrimitive) => {
return json3;
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/prop.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/prop.js
var intersectProps = (l, r, ctx) => {
if (l.key !== r.key)
return null;
@@ -41625,7 +86918,7 @@ var BaseProp = class extends BaseConstraint {
};
var writeDefaultIntersectionMessage = (lValue, rValue) => `Invalid intersection of default values ${printable(lValue)} & ${printable(rValue)}`;
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/optional.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/optional.js
var implementation11 = implementNode({
kind: "optional",
hasAssociatedError: false,
@@ -41731,7 +87024,7 @@ var writeNonPrimitiveNonFunctionDefaultValueMessage = (key) => {
return `Non-primitive default ${keyDescription}must be specified as a function like () => ({my: 'object'})`;
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/root.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/root.js
var BaseRoot = class extends BaseNode {
constructor(attachments, $2) {
super(attachments, $2);
@@ -41895,10 +87188,10 @@ var BaseRoot = class extends BaseNode {
});
});
}
- get(...path4) {
- if (path4[0] === void 0)
+ get(...path3) {
+ if (path3[0] === void 0)
return this;
- return this.$.schema(this.applyStructuralOperation("get", path4));
+ return this.$.schema(this.applyStructuralOperation("get", path3));
}
extract(r) {
const rNode = this.$.parseDefinition(r);
@@ -42113,13 +87406,13 @@ var writeLiteralUnionEntriesMessage = (expression) => `Props cannot be extracted
${expression}`;
var writeNonStructuralOperandMessage = (operation, operand) => `${operation} operand must be an object (was ${operand})`;
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/utils.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/utils.js
var defineRightwardIntersections = (kind, implementation23) => flatMorph(schemaKindsRightOf(kind), (i, kind2) => [
kind2,
implementation23
]);
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/alias.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/alias.js
var normalizeAliasSchema = (schema2) => typeof schema2 === "string" ? { reference: schema2 } : schema2;
var neverIfDisjoint = (result) => result instanceof Disjoint ? $ark.intrinsic.never.internal : result;
var implementation12 = implementNode({
@@ -42226,7 +87519,7 @@ var Alias = {
Node: AliasNode
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/basis.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/basis.js
var InternalBasis = class extends BaseRoot {
traverseApply = (data, ctx) => {
if (!this.traverseAllows(data, ctx))
@@ -42252,7 +87545,7 @@ var InternalBasis = class extends BaseRoot {
}
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/domain.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/domain.js
var implementation13 = implementNode({
kind: "domain",
hasAssociatedError: true,
@@ -42262,7 +87555,7 @@ var implementation13 = implementNode({
numberAllowsNaN: {}
},
normalize: (schema2) => typeof schema2 === "string" ? { domain: schema2 } : hasKey(schema2, "numberAllowsNaN") && schema2.domain !== "number" ? throwParseError(Domain.writeBadAllowNanMessage(schema2.domain)) : schema2,
- applyConfig: (schema2, config) => schema2.numberAllowsNaN === void 0 && schema2.domain === "number" && config.numberAllowsNaN ? { ...schema2, numberAllowsNaN: true } : schema2,
+ applyConfig: (schema2, config2) => schema2.numberAllowsNaN === void 0 && schema2.domain === "number" && config2.numberAllowsNaN ? { ...schema2, numberAllowsNaN: true } : schema2,
defaults: {
description: (node2) => domainDescriptions[node2.domain],
actual: (data) => Number.isNaN(data) ? "NaN" : domainDescriptions[domainOf(data)]
@@ -42306,7 +87599,7 @@ var Domain = {
writeBadAllowNanMessage: (actual) => `numberAllowsNaN may only be specified with domain "number" (was ${actual})`
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/intersection.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/intersection.js
var implementation14 = implementNode({
kind: "intersection",
hasAssociatedError: true,
@@ -42431,8 +87724,8 @@ ${ctx.expected}`
...defineRightwardIntersections("intersection", (l, r, ctx) => {
if (l.children.length === 0)
return r;
- const { domain, proto, ...lInnerConstraints } = l.inner;
- const lBasis = proto ?? domain;
+ const { domain: domain2, proto, ...lInnerConstraints } = l.inner;
+ const lBasis = proto ?? domain2;
const basis = lBasis ? intersectOrPipeNodes(lBasis, r, ctx) : r;
return basis instanceof Disjoint ? basis : l?.basis?.equals(basis) ? (
// if the basis doesn't change, return the original intesection
@@ -42567,7 +87860,7 @@ var intersectIntersections = (l, r, ctx) => {
});
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/morph.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/morph.js
var implementation15 = implementNode({
kind: "morph",
hasAssociatedError: false,
@@ -42703,7 +87996,7 @@ var writeMorphIntersectionMessage = (lDescription, rDescription) => `The interse
Left: ${lDescription}
Right: ${rDescription}`;
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/proto.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/proto.js
var implementation16 = implementNode({
kind: "proto",
hasAssociatedError: true,
@@ -42722,8 +88015,8 @@ var implementation16 = implementNode({
throwParseError(Proto.writeBadInvalidDateMessage(normalized.proto));
return normalized;
},
- applyConfig: (schema2, config) => {
- if (schema2.dateAllowsInvalid === void 0 && schema2.proto === Date && config.dateAllowsInvalid)
+ applyConfig: (schema2, config2) => {
+ if (schema2.dateAllowsInvalid === void 0 && schema2.proto === Date && config2.dateAllowsInvalid)
return { ...schema2, dateAllowsInvalid: true };
return schema2;
},
@@ -42737,7 +88030,7 @@ var implementation16 = implementNode({
// exactly one of l or r must have allow invalid dates
l.dateAllowsInvalid ? r : l
) : constructorExtends(l.proto, r.proto) ? l : constructorExtends(r.proto, l.proto) ? r : Disjoint.init("proto", l, r),
- domain: (proto, domain) => domain.domain === "object" ? proto : Disjoint.init("domain", $ark.intrinsic.object.internal, domain)
+ domain: (proto, domain2) => domain2.domain === "object" ? proto : Disjoint.init("domain", $ark.intrinsic.object.internal, domain2)
}
});
var ProtoNode = class extends InternalBasis {
@@ -42779,7 +88072,7 @@ var Proto = {
writeInvalidSchemaMessage: (actual) => `instanceOf operand must be a function (was ${domainOf(actual)})`
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/union.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/union.js
var implementation17 = implementNode({
kind: "union",
hasAssociatedError: true,
@@ -42830,13 +88123,13 @@ var implementation17 = implementNode({
description: (node2) => node2.distribute((branch) => branch.description, describeBranches),
expected: (ctx) => {
const byPath = groupBy(ctx.errors, "propString");
- const pathDescriptions = Object.entries(byPath).map(([path4, errors]) => {
+ const pathDescriptions = Object.entries(byPath).map(([path3, errors]) => {
const branchesAtPath = [];
for (const errorAtPath of errors)
appendUnique(branchesAtPath, errorAtPath.expected);
const expected = describeBranches(branchesAtPath);
const actual = errors.every((e) => e.actual === errors[0].actual) ? errors[0].actual : printable(errors[0].data);
- return `${path4 && `${path4} `}must be ${expected}${actual && ` (was ${actual})`}`;
+ return `${path3 && `${path3} `}must be ${expected}${actual && ` (was ${actual})`}`;
});
return describeBranches(pathDescriptions);
},
@@ -43218,10 +88511,10 @@ var viableOrderedCandidates = (candidates, originalBranches) => {
});
return viableCandidates;
};
-var discriminantCaseToNode = (caseDiscriminant, path4, $2) => {
+var discriminantCaseToNode = (caseDiscriminant, path3, $2) => {
let node2 = caseDiscriminant === "undefined" ? $2.node("unit", { unit: void 0 }) : caseDiscriminant === "null" ? $2.node("unit", { unit: null }) : caseDiscriminant === "boolean" ? $2.units([true, false]) : caseDiscriminant;
- for (let i = path4.length - 1; i >= 0; i--) {
- const key = path4[i];
+ for (let i = path3.length - 1; i >= 0; i--) {
+ const key = path3[i];
node2 = $2.node("intersection", typeof key === "number" ? {
proto: "Array",
// create unknown for preceding elements (could be optimized with safe imports)
@@ -43233,7 +88526,7 @@ var discriminantCaseToNode = (caseDiscriminant, path4, $2) => {
}
return node2;
};
-var optionallyChainPropString = (path4) => path4.reduce((acc, k) => acc + compileLiteralPropAccess(k, true), "data");
+var optionallyChainPropString = (path3) => path3.reduce((acc, k) => acc + compileLiteralPropAccess(k, true), "data");
var serializedTypeOfDescriptions = registeredReference(jsTypeOfDescriptions);
var serializedPrintable = registeredReference(printable);
var Union = {
@@ -43363,7 +88656,7 @@ var writeOrderedIntersectionMessage = (lDescription, rDescription) => `The inter
Left: ${lDescription}
Right: ${rDescription}`;
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/unit.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/roots/unit.js
var implementation18 = implementNode({
kind: "unit",
hasAssociatedError: true,
@@ -43427,7 +88720,7 @@ var compileEqualityCheck = (unit, serializedValue, negated) => {
return `data ${negated ? "!" : "="}== ${serializedValue}`;
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/index.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/index.js
var implementation19 = implementNode({
kind: "index",
hasAssociatedError: false,
@@ -43504,7 +88797,7 @@ var Index = {
var writeEnumerableIndexBranches = (keys) => `Index keys ${keys.join(", ")} should be specified as named props.`;
var writeInvalidPropertyKeyMessage = (indexSchema) => `Indexed key definition '${indexSchema}' must be a string or symbol`;
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/required.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/required.js
var implementation20 = implementNode({
kind: "required",
hasAssociatedError: true,
@@ -43542,7 +88835,7 @@ var Required = {
Node: RequiredNode
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/sequence.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/sequence.js
var implementation21 = implementNode({
kind: "sequence",
hasAssociatedError: false,
@@ -43951,7 +89244,7 @@ var _intersectSequences = (s) => {
};
var elementIsRequired = (el) => el.kind === "prefix" || el.kind === "postfix";
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/structure.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/structure.js
var createStructuralWriter = (childStringProp) => (node2) => {
if (node2.props.length || node2.index) {
const parts = node2.index?.map((index) => index[childStringProp]) ?? [];
@@ -43983,11 +89276,11 @@ var implementation22 = implementNode({
kind: "structure",
hasAssociatedError: false,
normalize: (schema2) => schema2,
- applyConfig: (schema2, config) => {
- if (!schema2.undeclared && config.onUndeclaredKey !== "ignore") {
+ applyConfig: (schema2, config2) => {
+ if (!schema2.undeclared && config2.onUndeclaredKey !== "ignore") {
return {
...schema2,
- undeclared: config.onUndeclaredKey
+ undeclared: config2.onUndeclaredKey
};
}
return schema2;
@@ -44209,13 +89502,13 @@ var StructureNode = class extends BaseConstraint {
return throwParseError(writeInvalidKeysMessage(this.expression, invalidKeys));
}
}
- get(indexer, ...path4) {
+ get(indexer, ...path3) {
let value2;
- let required = false;
+ let required2 = false;
const key = indexerToKey(indexer);
if ((typeof key === "string" || typeof key === "symbol") && this.propsByKey[key]) {
value2 = this.propsByKey[key].value;
- required = this.propsByKey[key].required;
+ required2 = this.propsByKey[key].required;
}
if (this.index) {
for (const n of this.index) {
@@ -44232,7 +89525,7 @@ var StructureNode = class extends BaseConstraint {
if (index < this.sequence.prevariadic.length) {
const fixedElement = this.sequence.prevariadic[index].node;
value2 = value2?.and(fixedElement) ?? fixedElement;
- required ||= index < this.sequence.prefixLength;
+ required2 ||= index < this.sequence.prefixLength;
} else if (this.sequence.variadic) {
const nonFixedElement = this.$.node("union", this.sequence.variadicOrPostfix);
value2 = value2?.and(nonFixedElement) ?? nonFixedElement;
@@ -44245,8 +89538,8 @@ var StructureNode = class extends BaseConstraint {
}
return throwParseError(writeInvalidKeysMessage(this.expression, [key]));
}
- const result = value2.get(...path4);
- return required ? result : result.or($ark.intrinsic.undefined);
+ const result = value2.get(...path3);
+ return required2 ? result : result.or($ark.intrinsic.undefined);
}
pick(...keys) {
this.assertHasKeys(keys);
@@ -44257,7 +89550,7 @@ var StructureNode = class extends BaseConstraint {
return this.$.node("structure", this.filterKeys("omit", keys));
}
optionalize() {
- const { required, ...inner } = this.inner;
+ const { required: required2, ...inner } = this.inner;
return this.$.node("structure", {
...inner,
optional: this.props.map((prop) => prop.hasKind("required") ? this.$.node("optional", prop.inner) : prop)
@@ -44633,7 +89926,7 @@ var typeKeyToString = (k) => hasArkKind(k, "root") ? k.expression : printable(k)
var writeInvalidKeysMessage = (o, keys) => `Key${keys.length === 1 ? "" : "s"} ${keys.map(typeKeyToString).join(", ")} ${keys.length === 1 ? "does" : "do"} not exist on ${o}`;
var writeDuplicateKeyMessage = (key) => `Duplicate key ${compileSerializedValue(key)}`;
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/kinds.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/kinds.js
var nodeImplementationsByKind = {
...boundImplementationsByKind,
alias: Alias.implementation,
@@ -44686,7 +89979,7 @@ var nodeClassesByKind = {
structure: Structure.Node
};
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/module.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/module.js
var RootModule = class extends DynamicBase {
// ensure `[arkKind]` is non-enumerable so it doesn't get spread on import/export
get [arkKind]() {
@@ -44698,7 +89991,7 @@ var bindModule = (module, $2) => new RootModule(flatMorph(module, (alias, value2
hasArkKind(value2, "module") ? bindModule(value2, $2) : $2.bindReference(value2)
]));
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/scope.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/scope.js
var schemaBranchesOf = (schema2) => isArray(schema2) ? schema2 : "branches" in schema2 && isArray(schema2.branches) ? schema2.branches : void 0;
var throwMismatchedNodeRootError = (expected, actual) => throwParseError(`Node of kind ${actual} is not valid as a ${expected} definition`);
var writeDuplicateAliasError = (alias) => `#${alias} duplicates public alias ${alias}`;
@@ -44762,9 +90055,9 @@ var BaseScope = class {
resolved = false;
nodesByHash = {};
intrinsic;
- constructor(def, config) {
- this.config = mergeConfigs($ark.config, config);
- this.resolvedConfig = mergeConfigs($ark.resolvedConfig, config);
+ constructor(def, config2) {
+ this.config = mergeConfigs($ark.config, config2);
+ this.resolvedConfig = mergeConfigs($ark.resolvedConfig, config2);
this.name = this.resolvedConfig.name ?? `anonymousScope${Object.keys(scopesByName).length}`;
if (this.name in scopesByName)
throwParseError(`A Scope already named ${this.name} already exists`);
@@ -44914,11 +90207,11 @@ var BaseScope = class {
return $ark.ambient;
}
maybeResolve(name) {
- const cached2 = this.resolutions[name];
- if (cached2) {
- if (typeof cached2 !== "string")
- return this.bindReference(cached2);
- const v = nodesByRegisteredId[cached2];
+ const cached3 = this.resolutions[name];
+ if (cached3) {
+ if (typeof cached3 !== "string")
+ return this.bindReference(cached3);
+ const v = nodesByRegisteredId[cached3];
if (hasArkKind(v, "root"))
return this.resolutions[name] = v;
if (hasArkKind(v, "context")) {
@@ -44935,7 +90228,7 @@ var BaseScope = class {
nodesByRegisteredId[v.id] = node2;
return this.resolutions[name] = node2;
}
- return throwInternalError(`Unexpected nodesById entry for ${cached2}: ${printable(v)}`);
+ return throwInternalError(`Unexpected nodesById entry for ${cached3}: ${printable(v)}`);
}
let def = this.aliases[name] ?? this.ambient?.[name];
if (!def)
@@ -45083,7 +90376,7 @@ var maybeResolveSubalias = (base, name) => {
}
throwInternalError(`Unexpected resolution for alias '${name}': ${printable(resolution)}`);
};
-var schemaScope = (aliases, config) => new SchemaScope(aliases, config);
+var schemaScope = (aliases, config2) => new SchemaScope(aliases, config2);
var rootSchemaScope = new SchemaScope({});
var resolutionsOfModule = ($2, typeSet) => {
const result = {};
@@ -45109,12 +90402,12 @@ var node = rootSchemaScope.node;
var defineSchema = rootSchemaScope.defineSchema;
var genericNode = rootSchemaScope.generic;
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/shared.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/structure/shared.js
var arrayIndexSource = `^(?:0|[1-9]\\d*)$`;
var arrayIndexMatcher = new RegExp(arrayIndexSource);
var arrayIndexMatcherReference = registeredReference(arrayIndexMatcher);
-// node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/intrinsic.js
+// ../node_modules/.pnpm/@ark+schema@0.53.0/node_modules/@ark/schema/out/intrinsic.js
var intrinsicBases = schemaScope({
bigint: "bigint",
// since we know this won't be reduced, it can be safely cast to a union
@@ -45168,11 +90461,14 @@ var intrinsic = {
};
$ark.intrinsic = { ...intrinsic };
-// node_modules/.pnpm/arkregex@0.0.2/node_modules/arkregex/out/regex.js
+// ../node_modules/.pnpm/arkregex@0.0.2/node_modules/arkregex/out/regex.js
var regex = ((src, flags) => new RegExp(src, flags));
Object.assign(regex, { as: regex });
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operand/date.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/config.js
+var configure = configureSchema;
+
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operand/date.js
var isDateLiteral = (value2) => typeof value2 === "string" && value2[0] === "d" && (value2[1] === "'" || value2[1] === '"') && value2.at(-1) === value2[1];
var isValidDate = (d) => d.toString() !== "Invalid Date";
var extractDateLiteralSource = (literal) => literal.slice(2, -1);
@@ -45191,7 +90487,7 @@ var maybeParseDate = (source, errorOnFail) => {
return errorOnFail ? throwParseError(errorOnFail === true ? writeInvalidDateMessage(source) : errorOnFail) : void 0;
};
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operand/enclosed.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operand/enclosed.js
var parseEnclosed = (s, enclosing) => {
const enclosed = s.scanner.shiftUntilEscapable(untilLookaheadIsClosing[enclosingTokens[enclosing]]);
if (s.scanner.lookahead === "")
@@ -45210,8 +90506,8 @@ var parseEnclosed = (s, enclosing) => {
} else if (isKeyOf(enclosing, enclosingQuote))
s.root = s.ctx.$.node("unit", { unit: enclosed });
else {
- const date = tryParseDate(enclosed, writeInvalidDateMessage(enclosed));
- s.root = s.ctx.$.node("unit", { meta: enclosed, unit: date });
+ const date2 = tryParseDate(enclosed, writeInvalidDateMessage(enclosed));
+ s.root = s.ctx.$.node("unit", { meta: enclosed, unit: date2 });
}
};
var enclosingQuote = {
@@ -45245,12 +90541,12 @@ var enclosingCharDescriptions = {
};
var writeUnterminatedEnclosedMessage = (fragment, enclosingStart) => `${enclosingStart}${fragment} requires a closing ${enclosingCharDescriptions[enclosingTokens[enclosingStart]]}`;
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/ast/validate.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/ast/validate.js
var writePrefixedPrivateReferenceMessage = (name) => `Private type references should not include '#'. Use '${name}' instead.`;
var shallowOptionalMessage = "Optional definitions like 'string?' are only valid as properties in an object or tuple";
var shallowDefaultableMessage = "Defaultable definitions like 'number = 0' are only valid as properties in an object or tuple";
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/tokens.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/tokens.js
var terminatingChars = {
"<": 1,
">": 1,
@@ -45272,7 +90568,7 @@ var lookaheadIsFinalizing = (lookahead, unscanned) => lookahead === ">" ? unscan
unscanned[1] === "="
) : unscanned.trimStart() === "" || isKeyOf(unscanned.trimStart()[0], terminatingChars) : lookahead === "=" ? unscanned[0] !== "=" : lookahead === "," || lookahead === "?";
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operand/genericArgs.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operand/genericArgs.js
var parseGenericArgs = (name, g, s) => _parseGenericArgs(name, g, s, []);
var _parseGenericArgs = (name, g, s, argNodes) => {
const argState = s.parseUntilFinalizer();
@@ -45289,7 +90585,7 @@ var _parseGenericArgs = (name, g, s, argNodes) => {
};
var writeInvalidGenericArgCountMessage = (name, params, argDefs) => `${name}<${params.join(", ")}> requires exactly ${params.length} args (got ${argDefs.length}${argDefs.length === 0 ? "" : `: ${argDefs.join(", ")}`})`;
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operand/unenclosed.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operand/unenclosed.js
var parseUnenclosed = (s) => {
const token = s.scanner.shiftUntilLookahead(terminatingChars);
if (token === "keyof")
@@ -45337,10 +90633,10 @@ var writeMissingOperandMessage = (s) => {
var writeMissingRightOperandMessage = (token, unscanned = "") => `Token '${token}' requires a right operand${unscanned ? ` before '${unscanned}'` : ""}`;
var writeExpressionExpectedMessage = (unscanned) => `Expected an expression${unscanned ? ` before '${unscanned}'` : ""}`;
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operand/operand.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operand/operand.js
var parseOperand = (s) => s.scanner.lookahead === "" ? s.error(writeMissingOperandMessage(s)) : s.scanner.lookahead === "(" ? s.shiftedByOne().reduceGroupOpen() : s.scanner.lookaheadIsIn(enclosingChar) ? parseEnclosed(s, s.scanner.shift()) : s.scanner.lookaheadIsIn(whitespaceChars) ? parseOperand(s.shiftedByOne()) : s.scanner.lookahead === "d" ? s.scanner.nextLookahead in enclosingQuote ? parseEnclosed(s, `${s.scanner.shift()}${s.scanner.shift()}`) : parseUnenclosed(s) : parseUnenclosed(s);
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/reduce/shared.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/reduce/shared.js
var minComparators = {
">": true,
">=": true
@@ -45360,7 +90656,7 @@ var writeOpenRangeMessage = (min, comparator) => `Left bounds are only valid whe
var writeUnpairableComparatorMessage = (comparator) => `Left-bounded expressions must specify their limits using < or <= (was ${comparator})`;
var writeMultipleLeftBoundsMessage = (openLimit, openComparator, limit, comparator) => `An expression may have at most one left bound (parsed ${openLimit}${invertedComparators[openComparator]}, ${limit}${invertedComparators[comparator]})`;
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operator/bounds.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operator/bounds.js
var parseBound = (s, start) => {
const comparator = shiftComparator(s, start);
if (s.root.hasKind("unit")) {
@@ -45431,14 +90727,14 @@ var parseRightBound = (s, comparator) => {
};
var writeInvalidLimitMessage = (comparator, limit, boundKind) => `Comparator ${boundKind === "left" ? invertedComparators[comparator] : comparator} must be ${boundKind === "left" ? "preceded" : "followed"} by a corresponding literal (was ${limit})`;
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operator/brand.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operator/brand.js
var parseBrand = (s) => {
s.scanner.shiftUntilNonWhitespace();
const brandName = s.scanner.shiftUntilLookahead(terminatingChars);
s.root = s.root.brand(brandName);
};
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operator/divisor.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operator/divisor.js
var parseDivisor = (s) => {
s.scanner.shiftUntilNonWhitespace();
const divisorToken = s.scanner.shiftUntilLookahead(terminatingChars);
@@ -45451,7 +90747,7 @@ var parseDivisor = (s) => {
};
var writeInvalidDivisorMessage = (divisor) => `% operator must be followed by a non-zero integer literal (was ${divisor})`;
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operator/operator.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operator/operator.js
var parseOperator = (s) => {
const lookahead = s.scanner.shift();
return lookahead === "" ? s.finalize("") : lookahead === "[" ? s.scanner.shift() === "]" ? s.setRoot(s.root.array()) : s.error(incompleteArrayTokenMessage) : lookahead === "|" ? s.scanner.lookahead === ">" ? s.shiftedByOne().pushRootToBranch("|>") : s.pushRootToBranch(lookahead) : lookahead === "&" ? s.pushRootToBranch(lookahead) : lookahead === ")" ? s.finalizeGroup() : lookaheadIsFinalizing(lookahead, s.scanner.unscanned) ? s.finalize(lookahead) : isKeyOf(lookahead, comparatorStartChars) ? parseBound(s, lookahead) : lookahead === "%" ? parseDivisor(s) : lookahead === "#" ? parseBrand(s) : lookahead in whitespaceChars ? parseOperator(s) : s.error(writeUnexpectedCharacterMessage(lookahead));
@@ -45459,7 +90755,7 @@ var parseOperator = (s) => {
var writeUnexpectedCharacterMessage = (char, shouldBe = "") => `'${char}' is not allowed here${shouldBe && ` (should be ${shouldBe})`}`;
var incompleteArrayTokenMessage = `Missing expected ']'`;
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operator/default.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/shift/operator/default.js
var parseDefault = (s) => {
const baseNode = s.unsetRoot();
s.parseOperand();
@@ -45471,7 +90767,7 @@ var parseDefault = (s) => {
};
var writeNonLiteralDefaultMessage = (defaultDef) => `Default value '${defaultDef}' must be a literal value`;
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/string.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/string.js
var parseString = (def, ctx) => {
const aliasResolution = ctx.$.maybeResolveRoot(def);
if (aliasResolution)
@@ -45510,7 +90806,7 @@ var parseUntilFinalizer = (s) => {
};
var next = (s) => s.hasRoot() ? s.parseOperator() : s.parseOperand();
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/reduce/dynamic.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/parser/reduce/dynamic.js
var RuntimeState = class _RuntimeState {
root;
branches = {
@@ -45647,7 +90943,7 @@ var RuntimeState = class _RuntimeState {
}
};
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/generic.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/generic.js
var emptyGenericParameterMessage = "An empty string is not a valid generic parameter name";
var parseGenericParamName = (scanner, result, ctx) => {
scanner.shiftUntilNonWhitespace();
@@ -45676,7 +90972,7 @@ var _parseOptionalConstraint = (scanner, name, result, ctx) => {
return parseGenericParamName(scanner, result, ctx);
};
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/fn.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/fn.js
var InternalFnParser = class extends Callable {
constructor($2) {
const attach = {
@@ -45728,7 +91024,7 @@ var InternalTypedFn = class extends Callable {
var badFnReturnTypeMessage = `":" must be followed by exactly one return type e.g:
fn("string", ":", "number")(s => s.length)`;
-// node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/match.js
+// ../node_modules/.pnpm/arktype@2.1.25/node_modules/arktype/out/match.js
var InternalMatchParser = class extends Callable {
$;
constructor($2) {
@@ -45821,7 +91117,7 @@ var throwOnDefault = (errors) => errors.throw();
var chainedAtMessage = `A key matcher must be specified before the first case i.e. match.at('foo') or match.in