From f622615e8a77f378e3b54fbb2543473c460da4fc Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Mon, 19 Oct 2026 21:24:05 -0400 Subject: [PATCH 1/6] fix: keep the original baseline for temporary reasoning effort Fix the temporary-reset baseline, read assistant-shaped messages, merge guidance into the first system prompt, and replace Zod config parsing with a small validator. --- .changeset/quiet-resets.md | 5 + README.md | 2 + package.json | 3 - pnpm-lock.yaml | 8 - src/config.ts | 47 +++- src/index.test.ts | 560 +++++++++++++++---------------------- src/index.ts | 390 +++++++++++--------------- 7 files changed, 425 insertions(+), 590 deletions(-) create mode 100644 .changeset/quiet-resets.md diff --git a/.changeset/quiet-resets.md b/.changeset/quiet-resets.md new file mode 100644 index 0000000..6175dfd --- /dev/null +++ b/.changeset/quiet-resets.md @@ -0,0 +1,5 @@ +--- +"opencode-adaptive-thinking": patch +--- + +Reset a temporary reasoning effort to the level in effect before the first override, so repeated changes no longer reset to an intermediate level or skip the reset. Read session history once per tool call with a bounded query, cache provider variants, merge guidance into an existing first system prompt, and remove the runtime Zod dependency. diff --git a/README.md b/README.md index c4c1b76..c8c1191 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,8 @@ Example persisted change: The system prompt lists the valid levels for the current session. Cached session state is only used when it is still valid for the current model, so switching models will not advertise or reuse an invalid effort level. +Adaptive-thinking guidance is merged into the first existing system prompt instead of a separate system message, so strict chat templates that allow only one system message keep working. + ## Troubleshooting If the tool returns `no valid reasoning effort levels are available for this session`, check that the active model exposes variants in OpenCode. Some providers or models may not support reasoning-effort levels. diff --git a/package.json b/package.json index 25c2132..c5e347e 100644 --- a/package.json +++ b/package.json @@ -37,9 +37,6 @@ "verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run build", "version-packages": "changeset version" }, - "dependencies": { - "zod": "^4.4.3" - }, "devDependencies": { "@changesets/changelog-github": "^0.7.0", "@changesets/cli": "^2.31.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 54c6f2c..8698b75 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,9 +14,6 @@ importers: '@opencode-ai/sdk': specifier: '>=1' version: 1.17.13 - zod: - specifier: ^4.4.3 - version: 4.4.3 devDependencies: '@changesets/changelog-github': specifier: ^0.7.0 @@ -1318,9 +1315,6 @@ packages: zod@4.1.8: resolution: {integrity: sha512-5R1P+WwQqmmMIEACyzSvo4JXHY5WiAFHRMg+zBZKgKS+Q1viRa0C1hmUKtHltoIFKtIdki3pRxkmpP74jnNYHQ==} - zod@4.4.3: - resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==} - snapshots: '@ai-sdk/provider@3.0.8': @@ -2379,5 +2373,3 @@ snapshots: yaml@2.9.0: {} zod@4.1.8: {} - - zod@4.4.3: {} diff --git a/src/config.ts b/src/config.ts index bf83459..8213a1f 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,12 +1,18 @@ -import * as z from "zod/v4"; - export const defaultSystemPrompt = "You MUST manage reasoning effort actively. " + "Lower it before trivial or routine turns; raise it for ambiguity, debugging, risky changes, or multi-step synthesis. " + "Reassess at turn start, after meaningful new evidence, and when the task shifts. " + "NEVER leave the current level unchanged by inertia, and NEVER reply to a trivial turn before considering a downshift."; -export const configDefaults = { +export type Config = { + enabled: boolean; + quiet: boolean; + toolName: string; + toolDescription: string; + systemPrompt: string; +}; + +const defaults: Config = { enabled: true, quiet: false, toolName: "set_reasoning_effort", @@ -14,13 +20,28 @@ export const configDefaults = { systemPrompt: defaultSystemPrompt, }; -export const ConfigSchema = z - .object({ - enabled: z.boolean().default(configDefaults.enabled), - quiet: z.boolean().default(configDefaults.quiet), - toolName: z.string().default(configDefaults.toolName), - toolDescription: z.string().default(configDefaults.toolDescription), - systemPrompt: z.string().default(configDefaults.systemPrompt), - }) - .optional() - .default(configDefaults); +export const parseConfig = (options: unknown): { config: Config } | { error: string } => { + if (options === undefined) return { config: { ...defaults } }; + if (typeof options !== "object" || options === null || Array.isArray(options)) { + return { error: "options must be an object" }; + } + + const input = options as Record; + const config = { ...defaults }; + + for (const key of ["enabled", "quiet"] as const) { + const value = input[key]; + if (value === undefined) continue; + if (typeof value !== "boolean") return { error: `${key} must be a boolean` }; + config[key] = value; + } + + for (const key of ["toolName", "toolDescription", "systemPrompt"] as const) { + const value = input[key]; + if (value === undefined) continue; + if (typeof value !== "string") return { error: `${key} must be a string` }; + config[key] = value; + } + + return { config }; +}; diff --git a/src/index.test.ts b/src/index.test.ts index 991f46a..79f171f 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -1,418 +1,304 @@ import { describe, expect, test, vi } from "vitest"; import { AdaptiveThinkingPlugin } from "./index"; -const variants = { - none: {}, - low: {}, - medium: {}, - high: {}, - xhigh: {}, -}; - -const createClient = (sessionID: string, messages: Array = []) => { - const promptAsync = vi.fn(async () => ({ error: undefined })); +const variants = { none: {}, low: {}, medium: {}, high: {}, xhigh: {} }; - return { - client: { - session: { - messages: vi.fn(async () => ({ data: messages, error: undefined })), - promptAsync, - }, - provider: { - list: vi.fn(async () => ({ - data: { - all: [ - { - id: "provider", - models: { - model: { variants }, - }, - }, - ], - }, - error: undefined, - })), - }, - app: { - agents: vi.fn(async () => ({ data: [], error: undefined })), - log: vi.fn(), - }, - tui: { - showToast: vi.fn(), - }, - }, - toolContext: { - sessionID, - messageID: "message", - agent: "agent", - directory: "/tmp", - worktree: "/tmp", - abort: new AbortController().signal, - metadata: vi.fn(), - ask: vi.fn(), - }, - }; -}; - -const createMessage = (variant = "medium") => ({ +const message = (variant?: string, agent = "agent") => ({ info: { - id: "message", role: "user", - agent: "agent", - model: { - providerID: "provider", - modelID: "model", - variant, - }, + agent, + model: { providerID: "provider", modelID: "model", ...(variant ? { variant } : {}) }, }, parts: [], }); -const createAgentMessage = (agent: string) => ({ +const assistant = (variant?: string) => ({ info: { - id: `message-${agent}`, - role: "user", - agent, + role: "assistant", + agent: "agent", + providerID: "provider", + modelID: "model", + ...(variant ? { variant } : {}), }, parts: [], }); -const setReasoningEffort = async ( - plugin: Awaited>, - args: { level: string; persist: boolean }, - context: unknown, - toolName = "set_reasoning_effort", -) => plugin.tool![toolName]!.execute(args, context as never); +const createClient = ( + messages: Array = [], + modelVariants: Record = variants, + agents: Record = {}, +) => { + const prompts: Array = []; + const client = { + session: { + messages: vi.fn(async () => ({ data: messages, error: undefined })), + promptAsync: vi.fn(async ({ body }: any) => { + prompts.push(body); + messages.push(message(body.variant)); + return { error: undefined }; + }), + }, + provider: { + list: vi.fn(async () => ({ + data: { + all: [{ id: "provider", models: { model: { variants: modelVariants } } }], + }, + error: undefined, + })), + }, + app: { + agents: vi.fn(async () => ({ + data: Object.entries(agents).map(([name, variant]) => ({ name, variant })), + error: undefined, + })), + log: vi.fn(), + }, + tui: { showToast: vi.fn() }, + }; + return { client, prompts }; +}; -const touchTemporarySession = async (sessionID: string) => { - const { client, toolContext } = createClient(sessionID, [createMessage("medium")]); - const plugin = await AdaptiveThinkingPlugin({ client } as never); +const ctx = (sessionID: string, agent = "agent") => ({ sessionID, agent }); - await setReasoningEffort(plugin, { level: "low", persist: false }, toolContext); +const set = (plugin: any, level: string, persist: boolean, sessionID: string) => + plugin.tool.set_reasoning_effort.execute({ level, persist }, ctx(sessionID)); - return { client, plugin }; -}; +const idle = (plugin: any, sessionID: string) => + plugin.event({ event: { type: "session.idle", properties: { sessionID } } }); + +const transform = ( + plugin: any, + sessionID: string, + system: Array, + model: any = { variants }, +) => plugin["experimental.chat.system.transform"]({ sessionID, model }, { system }); describe("AdaptiveThinkingPlugin", () => { - test("uses defaults when no options are provided", async () => { - const sessionID = "default-options"; - const { client, toolContext } = createClient(sessionID, [createMessage("medium")]); - const plugin = await AdaptiveThinkingPlugin({ client } as never); - const system: string[] = []; - - await setReasoningEffort(plugin, { level: "high", persist: true }, toolContext); - await plugin["experimental.chat.system.transform"]!( - { - sessionID, - model: { variants }, - } as never, - { system }, - ); + test("applies defaults, persists a level and preserves agent and model", async () => { + const { client, prompts } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - expect(plugin.tool?.set_reasoning_effort?.description).toBe("Set your reasoning effort"); - expect(client.session.promptAsync).toHaveBeenCalledWith( - expect.objectContaining({ body: expect.objectContaining({ variant: "high" }) }), - ); + expect(plugin.tool.set_reasoning_effort.description).toBe("Set your reasoning effort"); + expect(await set(plugin, "high", true, "defaults")).toBe("Reasoning effort set to high"); + expect(prompts[0]).toMatchObject({ + agent: "agent", + variant: "high", + model: { providerID: "provider", modelID: "model" }, + }); + + const system: Array = []; + await transform(plugin, "defaults", system); expect(system[0]).toContain("You MUST manage reasoning effort actively"); + expect(system[0]).toContain("Current reasoning effort level: high."); + expect(system[0]).toContain( + "Valid reasoning effort levels for this session: none, low, medium, high, xhigh.", + ); expect(system[0]).toContain("set_reasoning_effort"); }); - test("preserves the calling agent and model when setting reasoning effort", async () => { - const sessionID = "preserve-agent-model"; - const { client, toolContext } = createClient(sessionID, [createMessage("medium")]); - toolContext.agent = "custom-worker"; - const plugin = await AdaptiveThinkingPlugin({ client } as never); - - await setReasoningEffort(plugin, { level: "high", persist: true }, toolContext); - - expect(client.session.promptAsync).toHaveBeenCalledWith( - expect.objectContaining({ - body: expect.objectContaining({ - agent: "custom-worker", - model: { providerID: "provider", modelID: "model" }, - variant: "high", - }), - }), - ); - }); + test("honors custom configuration and merges into an existing system prompt", async () => { + const { client } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { + toolName: "adjust_reasoning", + toolDescription: "Adjust it", + systemPrompt: "Prefer cheap.", + }); - test("returns no hooks when disabled", async () => { - const { client } = createClient("disabled-plugin"); - const plugin = await AdaptiveThinkingPlugin({ client } as never, { enabled: false }); + expect(plugin.tool.adjust_reasoning.description).toBe("Adjust it"); + expect(plugin.tool.set_reasoning_effort).toBeUndefined(); - expect(plugin).toEqual({}); + const system = ["Base prompt."]; + await transform(plugin, "custom", system); + expect(system).toHaveLength(1); + expect(system[0]?.startsWith("Base prompt.\n\nPrefer cheap.")).toBe(true); + expect(system[0]).not.toContain("You MUST manage"); + expect(system[0]).toContain("adjust_reasoning"); }); - test("logs configuration errors without creating hooks", async () => { - const { client } = createClient("invalid-config"); - const plugin = await AdaptiveThinkingPlugin({ client } as never, { enabled: "yes" }); + test("returns no hooks when disabled", async () => { + const { client } = createClient(); + expect(await AdaptiveThinkingPlugin({ client } as never, { enabled: false })).toEqual({}); + }); - expect(plugin).toEqual({}); - expect(client.tui.showToast).toHaveBeenCalledWith({ + test("reports invalid configuration and suppresses the toast when quiet", async () => { + const invalid = createClient(); + expect( + await AdaptiveThinkingPlugin({ client: invalid.client } as never, { enabled: "yes" }), + ).toEqual({}); + expect(invalid.client.tui.showToast).toHaveBeenCalledWith({ body: { variant: "error", - message: "Invalid Adaptive Thinking plugin configuration, see logs for details", + message: expect.stringContaining("Invalid Adaptive Thinking plugin configuration"), }, }); - expect(client.app.log).toHaveBeenCalledWith({ + expect(invalid.client.app.log).toHaveBeenCalledWith({ body: expect.objectContaining({ level: "error", - service: "opencode-adaptive-thinking", - message: expect.stringContaining("Invalid Adaptive Thinking plugin configuration"), + message: expect.stringContaining("enabled must be a boolean"), }), }); - }); - test("suppresses configuration error toast when quiet is enabled", async () => { - const { client } = createClient("quiet-invalid-config"); - const plugin = await AdaptiveThinkingPlugin({ client } as never, { + const quiet = createClient(); + await AdaptiveThinkingPlugin({ client: quiet.client } as never, { enabled: "yes", quiet: true, }); - - expect(plugin).toEqual({}); - expect(client.tui.showToast).not.toHaveBeenCalled(); - expect(client.app.log).toHaveBeenCalledWith({ - body: expect.objectContaining({ - level: "error", - service: "opencode-adaptive-thinking", - message: expect.stringContaining("Invalid Adaptive Thinking plugin configuration"), - }), - }); + expect(quiet.client.tui.showToast).not.toHaveBeenCalled(); }); - test("keeps log service name internal", async () => { - const sessionID = "fixed-service-name"; - const { client, toolContext } = createClient(sessionID); - client.session.messages.mockResolvedValueOnce({ - error: { data: { message: "unavailable" } }, - } as never); - const plugin = await AdaptiveThinkingPlugin({ client } as never, { - serviceName: "custom-service", - }); + test("rejects an invalid level without prompting", async () => { + const { client, prompts } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - await setReasoningEffort(plugin, { level: "low", persist: false }, toolContext); - - expect(client.app.log).toHaveBeenCalledWith({ - body: expect.objectContaining({ - service: "opencode-adaptive-thinking", - }), - }); + expect(await set(plugin, "extreme", true, "invalid-level")).toContain( + "Invalid reasoning effort level", + ); + expect(prompts).toHaveLength(0); }); - test("uses configured tool name and description", async () => { - const sessionID = "custom-tool"; - const { client, toolContext } = createClient(sessionID, [createMessage("medium")]); - const plugin = await AdaptiveThinkingPlugin({ client } as never, { - toolName: "adjust_reasoning", - toolDescription: "Adjust reasoning depth for the next response", - }); + test("reports models without reasoning variants", async () => { + const { client, prompts } = createClient([message("medium")], {}); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - expect(plugin.tool?.set_reasoning_effort).toBeUndefined(); - expect(plugin.tool?.adjust_reasoning?.description).toBe( - "Adjust reasoning depth for the next response", + expect(await set(plugin, "high", true, "no-variants")).toContain( + "no valid reasoning effort levels", ); + expect(prompts).toHaveLength(0); + }); - await setReasoningEffort( - plugin, - { level: "high", persist: true }, - toolContext, - "adjust_reasoning", - ); + test("resets a temporary level to the level from the session history", async () => { + const { client, prompts } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - expect(client.session.promptAsync).toHaveBeenCalledWith( - expect.objectContaining({ body: expect.objectContaining({ variant: "high" }) }), - ); - }); + await set(plugin, "low", false, "temporary"); + await idle(plugin, "temporary"); - test("uses configured system prompt guidance", async () => { - const sessionID = "custom-system-prompt"; - const { client } = createClient(sessionID, [createMessage("medium")]); - const plugin = await AdaptiveThinkingPlugin({ client } as never, { - systemPrompt: "Prefer the cheapest reasoning level that can safely complete the task.", + expect(prompts.map((prompt) => prompt.variant)).toEqual(["low", "medium"]); + expect(prompts[1]).toMatchObject({ + agent: "agent", + model: { providerID: "provider", modelID: "model" }, + parts: [{ synthetic: true, ignored: true }], }); - const system: string[] = []; - - await plugin["experimental.chat.system.transform"]!( - { - sessionID, - model: { variants }, - } as never, - { system }, - ); - - expect(system).toHaveLength(1); - expect(system[0]).toContain( - "Prefer the cheapest reasoning level that can safely complete the task.", - ); - expect(system[0]).not.toContain("You MUST manage reasoning effort actively"); }); - test("ignores cached reasoning effort when it is invalid for the current model", async () => { - const sessionID = "stale-cached-variant"; - const switchedModelVariants = { - low: {}, - medium: {}, - }; - const { client, toolContext } = createClient(sessionID, [createMessage("medium")]); - const plugin = await AdaptiveThinkingPlugin({ client } as never); - const system: string[] = []; - - await setReasoningEffort(plugin, { level: "high", persist: true }, toolContext); - await plugin["experimental.chat.system.transform"]!( - { - sessionID, - model: { variants: switchedModelVariants }, - } as never, - { system }, - ); + test("reads the model and variant from assistant messages", async () => { + const { client, prompts } = createClient([message("medium"), assistant("high")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - expect(system[0]).toContain("Current reasoning effort level: medium."); - expect(system[0]).toContain("Valid reasoning effort levels for this session: low, medium."); - expect(system[0]).not.toContain("Current reasoning effort level: high."); - }); + await set(plugin, "low", false, "assistant-shape"); + await idle(plugin, "assistant-shape"); - test("falls back to the newest agent variant when messages do not expose a model variant", async () => { - const sessionID = "newest-agent-fallback"; - const { client } = createClient(sessionID, [ - createAgentMessage("old-agent"), - createAgentMessage("new-agent"), - ]); - client.app.agents.mockResolvedValueOnce({ - data: [ - { name: "old-agent", variant: "high" }, - { name: "new-agent", variant: "low" }, - ], - error: undefined, - } as never); - const plugin = await AdaptiveThinkingPlugin({ client } as never); - const system: string[] = []; - - await plugin["experimental.chat.system.transform"]!( - { - sessionID, - model: { variants }, - } as never, - { system }, - ); + expect(prompts[0].model).toEqual({ providerID: "provider", modelID: "model" }); + expect(prompts.map((prompt) => prompt.variant)).toEqual(["low", "high"]); + }); - expect(system[0]).toContain("Current reasoning effort level: low."); + test("keeps the original baseline across repeated temporary changes", async () => { + const changed = createClient([message("medium")]); + const changedPlugin: any = await AdaptiveThinkingPlugin({ client: changed.client } as never); + await set(changedPlugin, "low", false, "repeat-different"); + await set(changedPlugin, "high", false, "repeat-different"); + await idle(changedPlugin, "repeat-different"); + + const repeated = createClient([message("medium")]); + const repeatedPlugin: any = await AdaptiveThinkingPlugin({ client: repeated.client } as never); + await set(repeatedPlugin, "low", false, "repeat-same"); + await set(repeatedPlugin, "low", false, "repeat-same"); + await idle(repeatedPlugin, "repeat-same"); + + expect(changed.prompts.map((prompt) => prompt.variant)).toEqual(["low", "high", "medium"]); + expect(repeated.prompts.map((prompt) => prompt.variant)).toEqual(["low", "low", "medium"]); }); - test("resets a temporary reasoning effort once and keeps the reset prompt ignored", async () => { - const sessionID = "temporary-reset"; - const { client, toolContext } = createClient(sessionID, [createMessage("medium")]); - const plugin = await AdaptiveThinkingPlugin({ client } as never); + test("keeps a temporary reset pending after a failed attempt", async () => { + const { client } = createClient([message("medium")]); + client.session.promptAsync + .mockResolvedValueOnce({ error: undefined }) + .mockResolvedValueOnce({ error: { data: { message: "unavailable" } } } as never) + .mockResolvedValueOnce({ error: undefined }); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + + await set(plugin, "low", false, "reset-retry"); + await idle(plugin, "reset-retry"); + await idle(plugin, "reset-retry"); + + expect(client.session.promptAsync.mock.calls.map(([call]: any) => call.body.variant)).toEqual([ + "low", + "medium", + "medium", + ]); + expect(client.app.log).toHaveBeenCalled(); + }); - await setReasoningEffort(plugin, { level: "low", persist: false }, toolContext); - await plugin.event!({ - event: { type: "session.idle", properties: { sessionID } }, - } as never); - await plugin.event!({ - event: { type: "session.idle", properties: { sessionID } }, + test("reports a provider lookup failure without prompting", async () => { + const { client, prompts } = createClient([message("medium")]); + client.provider.list.mockResolvedValueOnce({ + data: undefined, + error: { message: "down" }, } as never); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - expect(client.session.promptAsync).toHaveBeenCalledTimes(2); - const promptCalls = client.session.promptAsync.mock.calls as Array>; - const secondPrompt = promptCalls[1]?.[0]; - expect(secondPrompt).toMatchObject({ - body: { - agent: "agent", - model: { providerID: "provider", modelID: "model" }, - variant: "medium", - parts: [{ ignored: true, synthetic: true }], - }, - }); + expect(await set(plugin, "high", true, "provider-failure")).toContain( + "no valid reasoning effort levels", + ); + expect(prompts).toHaveLength(0); + expect(client.app.log).toHaveBeenCalled(); }); - test("evicts oldest session state when the cache is full", async () => { - const oldest = await touchTemporarySession("lru-oldest"); + test("does not reset a persisted level on idle", async () => { + const { client, prompts } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - for (let i = 0; i < 500; i++) { - await touchTemporarySession(`lru-session-${i}`); - } - - await oldest.plugin.event!({ - event: { type: "session.idle", properties: { sessionID: "lru-oldest" } }, - } as never); - - expect(oldest.client.session.promptAsync).toHaveBeenCalledTimes(1); + await set(plugin, "high", true, "persisted"); + await idle(plugin, "persisted"); + expect(prompts).toHaveLength(1); }); - test("does not reset persisted reasoning effort on idle", async () => { - const sessionID = "persisted-effort"; - const { client, toolContext } = createClient(sessionID, [createMessage("medium")]); - const plugin = await AdaptiveThinkingPlugin({ client } as never); - - await setReasoningEffort(plugin, { level: "high", persist: true }, toolContext); - await plugin.event!({ - event: { type: "session.idle", properties: { sessionID } }, + test("returns an error instead of throwing when messages cannot be read", async () => { + const { client } = createClient([message("medium")]); + client.session.messages.mockResolvedValueOnce({ + data: undefined, + error: { data: { message: "unavailable" } }, } as never); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - expect(client.session.promptAsync).toHaveBeenCalledTimes(1); + expect(await set(plugin, "high", true, "fetch-failure")).toContain( + "could not read the session", + ); + expect(client.app.log).toHaveBeenCalled(); }); - test("rejects invalid reasoning effort levels before prompting", async () => { - const sessionID = "invalid-level"; - const { client, toolContext } = createClient(sessionID, [createMessage("medium")]); - const plugin = await AdaptiveThinkingPlugin({ client } as never); + test("ignores a cached level that the current model does not support", async () => { + const { client } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + await set(plugin, "high", true, "stale-cache"); - const result = await setReasoningEffort( - plugin, - { level: "extreme", persist: true }, - toolContext, - ); - - expect(result).toContain("Invalid reasoning effort level"); - expect(client.session.promptAsync).not.toHaveBeenCalled(); + const system: Array = []; + await transform(plugin, "stale-cache", system, { variants: { low: {}, medium: {} } }); + expect(system[0]).toContain("Valid reasoning effort levels for this session: low, medium."); + expect(system[0]).not.toContain("Current reasoning effort level: high."); }); - test("handles provider lookup failure without prompting", async () => { - const sessionID = "provider-lookup-failure"; - const { client, toolContext } = createClient(sessionID, [createMessage("medium")]); - client.provider.list.mockResolvedValueOnce({ - error: { data: { message: "provider unavailable" } }, - } as never); - const plugin = await AdaptiveThinkingPlugin({ client } as never); - - const result = await setReasoningEffort(plugin, { level: "high", persist: true }, toolContext); + test("falls back to the agent variant when history has none", async () => { + const { client } = createClient([message(undefined, "worker")], variants, { worker: "low" }); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - expect(result).toContain("no valid reasoning effort levels"); - expect(client.session.promptAsync).not.toHaveBeenCalled(); - expect(client.app.log).toHaveBeenCalledWith({ - body: expect.objectContaining({ - level: "error", - message: expect.stringContaining("Failed to retrieve providers"), - }), - }); + const system: Array = []; + await transform(plugin, "agent-fallback", system, {}); + expect(system[0]).toContain("Current reasoning effort level: low."); }); - test("retries a failed temporary reset and clears it after a later success", async () => { - const sessionID = "recoverable-reset-failure"; - const { client, toolContext } = createClient(sessionID, [createMessage("medium")]); - client.session.promptAsync - .mockResolvedValueOnce({ error: undefined } as never) - .mockResolvedValueOnce({ error: { data: { message: "reset failed" } } } as never) - .mockResolvedValueOnce({ error: undefined } as never); - const plugin = await AdaptiveThinkingPlugin({ client } as never); - - await setReasoningEffort(plugin, { level: "low", persist: false }, toolContext); - await plugin.event!({ - event: { type: "session.idle", properties: { sessionID } }, - } as never); - await plugin.event!({ - event: { type: "session.idle", properties: { sessionID } }, - } as never); - await plugin.event!({ - event: { type: "session.idle", properties: { sessionID } }, - } as never); + test("evicts the oldest session state when the cache is full", async () => { + const oldest = createClient([message("medium")]); + const oldestPlugin: any = await AdaptiveThinkingPlugin({ client: oldest.client } as never); + await set(oldestPlugin, "low", false, "lru-0"); - expect(client.session.promptAsync).toHaveBeenCalledTimes(3); - expect(client.app.log).toHaveBeenCalledWith({ - body: expect.objectContaining({ - level: "error", - message: expect.stringContaining("Failed to reset reasoning effort"), - }), - }); + for (let i = 1; i <= 500; i++) { + const { client } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + await set(plugin, "low", false, `lru-${i}`); + } + + await idle(oldestPlugin, "lru-0"); + expect(oldest.prompts).toHaveLength(1); }); }); diff --git a/src/index.ts b/src/index.ts index 3b21c89..5f07ab5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,18 +1,18 @@ import { tool, type Plugin } from "@opencode-ai/plugin"; -import type { Agent, Message, Model, Part, Provider } from "@opencode-ai/sdk/v2"; -import { ConfigSchema } from "./config.js"; +import type { Message, Part, Provider } from "@opencode-ai/sdk/v2"; import type { OpencodeClient } from "@opencode-ai/sdk"; +import { parseConfig } from "./config.js"; const z = tool.schema; const serviceName = "opencode-adaptive-thinking"; const maxSessionStateSize = 500; +const historyLimit = 20; +type ModelInfo = { providerID: string; modelID: string }; +type SessionMessage = { info: Message; parts: Array }; type SessionState = { - currentVariant?: string; - persistedVariant?: string; - temporaryResetVariant?: string; - temporaryResetAgent?: string; - temporaryResetModel?: { providerID: string; modelID: string }; + variant?: string; + reset?: { level: string; agent: string; model?: ModelInfo }; }; class SessionStateCache { @@ -34,28 +34,32 @@ class SessionStateCache { update(entry); this.entries.set(sessionID, entry); - while (this.entries.size > this.maxSize) { - const oldestSessionID = this.entries.keys().next().value; - if (!oldestSessionID) break; - this.entries.delete(oldestSessionID); + if (this.entries.size > this.maxSize) { + const oldest = this.entries.keys().next().value; + if (oldest) this.entries.delete(oldest); } } } const state = new SessionStateCache(maxSessionStateSize); -type PromptAsyncOptions = Parameters[0]; -type PromptAsyncBody = NonNullable & { variant: string }; -type ModelInfo = { providerID: string; modelID: string }; +type PromptAsyncBody = NonNullable< + Parameters[0]["body"] +> & { variant: string }; export const AdaptiveThinkingPlugin: Plugin = async ({ client }, options) => { - const configParseResult = ConfigSchema.safeParse(options); - if (!configParseResult.success) { - const quiet = - typeof options === "object" && options !== null && "quiet" in options - ? options.quiet === true - : false; - if (!quiet) { + const logError = (message: string, error: unknown) => + client.app.log({ + body: { + service: serviceName, + level: "error", + message: `${message}: ${JSON.stringify(error)}`, + }, + }); + + const parsed = parseConfig(options); + if ("error" in parsed) { + if (options?.quiet !== true) { client.tui.showToast({ body: { variant: "error", @@ -63,154 +67,94 @@ export const AdaptiveThinkingPlugin: Plugin = async ({ client }, options) => { }, }); } - client.app.log({ - body: { - service: serviceName, - level: "error", - message: `Invalid Adaptive Thinking plugin configuration: ${configParseResult.error.message}`, - }, - }); + logError("Invalid Adaptive Thinking plugin configuration", parsed.error); return {}; } - const config = configParseResult.data; + const config = parsed.config; if (!config.enabled) return {}; - const getModelVariants = (model: Model | undefined): string[] => { - const variants = model?.variants; - if (!variants) return []; - return Object.keys(variants); + const getModelVariants = (model: unknown) => { + const variants = (model as { variants?: Record } | undefined)?.variants; + return Object.keys(variants ?? {}); }; - const sendVariantPrompt = async ( - sessionID: string, - variant: string, - text: string, - agent: string, - model?: ModelInfo, - ignored = true, - ) => { - const body: PromptAsyncBody = { - noReply: true, - parts: [ - { - type: "text", - text, - synthetic: true, - ignored, - }, - ], - agent, - variant, - }; + let providers: Array | undefined; - if (model) { - body.model = model; + const variantsFor = async (model: ModelInfo) => { + if (!providers) { + const response = await client.provider.list(); + if (response.error) { + logError("Failed to retrieve providers", response.error); + return []; + } + providers = (response.data?.all ?? []) as unknown as Array; } - - return client.session.promptAsync({ - path: { id: sessionID }, - body, - }); + const provider = providers.find((candidate) => candidate.id === model.providerID); + return getModelVariants(provider?.models[model.modelID]); }; - const resolveValidVariants = async (sessionID: string, model?: Model): Promise => { - const inputModelVariants = getModelVariants(model); - if (inputModelVariants.length > 0) return inputModelVariants; - - const messagesResponse = await client.session.messages({ + const fetchMessages = async (sessionID: string) => { + const response = await client.session.messages({ path: { id: sessionID }, + query: { limit: historyLimit }, }); - if (messagesResponse.error) { - client.app.log({ - body: { - service: serviceName, - level: "error", - message: `Failed to retrieve messages for session ${sessionID}: ${JSON.stringify(messagesResponse.error.data)}`, - }, - }); - return []; - } - const modelInfo = resolveLatestModelInfo(messagesResponse.data); - if (!modelInfo) return []; - - const providers = await client.provider.list(); - if (providers.error) { - client.app.log({ - body: { - service: serviceName, - level: "error", - message: `Failed to retrieve providers for session ${sessionID}: ${JSON.stringify(providers.error)}`, - }, - }); - return []; + if (response.error) { + logError(`Failed to retrieve messages for session ${sessionID}`, response.error); + return; } - const provider = providers.data?.all.find((p) => p.id === modelInfo.providerID) as - | Provider - | undefined; - if (!provider) return []; - - return getModelVariants(provider.models[modelInfo.modelID] as Model | undefined); + return (response.data ?? []) as Array; }; - const resolveLatestModelInfo = ( - data: unknown, - ): { providerID: string; modelID: string } | undefined => { - const messages = data as Array<{ info: Message; parts: Array }>; - for (let i = messages.length - 1; i >= 0; i--) { - const message = messages[i]!; - if ("model" in message.info) { - const { providerID, modelID } = message.info.model; - if (providerID && modelID) { - return { providerID, modelID }; - } - } - } - return; + const modelOf = (info: Message): ModelInfo => + "model" in info + ? { providerID: info.model.providerID, modelID: info.model.modelID } + : { providerID: info.providerID, modelID: info.modelID }; + + const latestModel = (messages: Array): ModelInfo | undefined => { + const last = messages.at(-1)?.info; + return last ? modelOf(last) : undefined; }; - const resolveCurrentVariant = async (sessionID: string): Promise => { - const messagesResponse = await client.session.messages({ - path: { id: sessionID }, - }); - if (messagesResponse.error) { - client.app.log({ - body: { - service: serviceName, - level: "error", - message: `Failed to retrieve messages for session ${sessionID}: ${JSON.stringify(messagesResponse.error.data)}`, - }, - }); - return; - } - let agentName: string | undefined; - const messages = messagesResponse.data as Array<{ info: Message; parts: Array }>; + const latestVariant = async (messages: Array) => { + let agent: string | undefined; for (let i = messages.length - 1; i >= 0; i--) { - const message = messages[i]!; - if ("model" in message.info && message.info.model.variant) { - return message.info.model.variant; - } - agentName ??= message.info.agent; + const info = messages[i]!.info; + const variant = "model" in info ? info.model.variant : info.variant; + if (variant) return variant; + agent ??= info.agent; } + if (!agent) return; - if (!agentName) return; - - const agentsResponse = await client.app.agents(); - if (agentsResponse.error) { - client.app.log({ - body: { - service: serviceName, - level: "error", - message: `Failed to retrieve agents for session ${sessionID}: ${JSON.stringify(agentsResponse.error)}`, - }, - }); + const response = await client.app.agents(); + if (response.error) { + logError("Failed to retrieve agents", response.error); return; } - const agents = agentsResponse.data; - const agent = agents?.find((a) => a.name === agentName) as Agent | undefined; - return agent?.variant; + const match = response.data?.find((candidate) => candidate.name === agent) as + | { variant?: string } + | undefined; + return match?.variant; }; + const sendVariantPrompt = ( + sessionID: string, + variant: string, + text: string, + agent: string, + model?: ModelInfo, + ) => + client.session.promptAsync({ + path: { id: sessionID }, + body: { + noReply: true, + parts: [{ type: "text", text, synthetic: true, ignored: true }], + agent, + variant, + ...(model ? { model } : {}), + } as PromptAsyncBody, + }); + return { tool: { [config.toolName]: tool({ @@ -230,52 +174,39 @@ export const AdaptiveThinkingPlugin: Plugin = async ({ client }, options) => { ), }, execute: async ({ level, persist }, { sessionID, agent }) => { - const validVariants = await resolveValidVariants(sessionID); - if (validVariants.length === 0) { + const messages = await fetchMessages(sessionID); + if (!messages) return "Failed to set reasoning effort: could not read the session"; + + const model = latestModel(messages); + const variants = model ? await variantsFor(model) : []; + if (variants.length === 0) { return "Failed to set reasoning effort: no valid reasoning effort levels are available for this session"; } - if (!validVariants.includes(level)) { - return `Invalid reasoning effort level: ${level}. Valid levels: ${validVariants.join(", ")}.`; + if (!variants.includes(level)) { + return `Invalid reasoning effort level: ${level}. Valid levels: ${variants.join(", ")}.`; } - const sessionState = state.get(sessionID); - const resetVariant = persist - ? undefined - : (sessionState?.persistedVariant ?? (await resolveCurrentVariant(sessionID))); - const currentModel = resolveLatestModelInfo( - (await client.session.messages({ path: { id: sessionID } })).data, - ); - - const promptResponse = await sendVariantPrompt( + const baseline = + state.get(sessionID)?.reset?.level ?? + state.get(sessionID)?.variant ?? + (await latestVariant(messages)); + const response = await sendVariantPrompt( sessionID, level, `Reasoning effort set to ${level}`, agent, - currentModel, + model, ); - if (promptResponse.error) { - return `Failed to set reasoning effort: ${JSON.stringify(promptResponse.error.data)}`; + if (response.error) { + return `Failed to set reasoning effort: ${JSON.stringify(response.error)}`; } state.update(sessionID, (entry) => { - entry.currentVariant = level; - if (persist) { - entry.persistedVariant = level; - delete entry.temporaryResetVariant; - delete entry.temporaryResetAgent; - delete entry.temporaryResetModel; - } else if (resetVariant && resetVariant !== level) { - entry.temporaryResetVariant = resetVariant; - entry.temporaryResetAgent = agent; - if (currentModel) { - entry.temporaryResetModel = currentModel; - } else { - delete entry.temporaryResetModel; - } + entry.variant = level; + if (persist || !baseline || baseline === level || !variants.includes(baseline)) { + delete entry.reset; } else { - delete entry.temporaryResetVariant; - delete entry.temporaryResetAgent; - delete entry.temporaryResetModel; + entry.reset ??= { level: baseline, agent, ...(model ? { model } : {}) }; } }); @@ -284,68 +215,69 @@ export const AdaptiveThinkingPlugin: Plugin = async ({ client }, options) => { }), }, event: async ({ event }) => { - if (event.type === "session.idle") { - const sessionID = event.properties.sessionID; - const sessionState = state.get(sessionID); - const resetVariant = sessionState?.temporaryResetVariant; - const resetAgent = sessionState?.temporaryResetAgent; - const resetModel = sessionState?.temporaryResetModel; - if (!resetVariant || !resetAgent) return; - - const promptResponse = await sendVariantPrompt( - sessionID, - resetVariant, - `Reasoning effort reset to ${resetVariant}.`, - resetAgent, - resetModel, - ); - if (promptResponse.error) { - client.app.log({ - body: { - service: serviceName, - level: "error", - message: `Failed to reset reasoning effort on session idle: ${JSON.stringify(promptResponse.error.data)}`, - }, - }); - return; - } - - state.update(sessionID, (entry) => { - entry.currentVariant = resetVariant; - delete entry.temporaryResetVariant; - delete entry.temporaryResetAgent; - delete entry.temporaryResetModel; - }); + if (event.type !== "session.idle") return; + + const sessionID = event.properties.sessionID; + const reset = state.get(sessionID)?.reset; + if (!reset) return; + + const response = await sendVariantPrompt( + sessionID, + reset.level, + `Reasoning effort reset to ${reset.level}.`, + reset.agent, + reset.model, + ); + if (response.error) { + logError("Failed to reset reasoning effort on session idle", response.error); return; } + + state.update(sessionID, (entry) => { + entry.variant = reset.level; + delete entry.reset; + }); }, "experimental.chat.system.transform": async ({ sessionID, model }, { system }) => { if (!sessionID) return; - const variants = await resolveValidVariants(sessionID, model as Model); - if (variants.length === 0) return; + let variants = getModelVariants(model); + let variant = state.get(sessionID)?.variant; + if (variant && !variants.includes(variant)) variant = undefined; - const sessionState = state.get(sessionID); - const cachedVariant = sessionState?.currentVariant ?? sessionState?.persistedVariant; - let variant = cachedVariant && variants.includes(cachedVariant) ? cachedVariant : undefined; - if (!variant) { - const resolvedVariant = await resolveCurrentVariant(sessionID); - if (resolvedVariant && variants.includes(resolvedVariant)) { - variant = resolvedVariant; - state.update(sessionID, (entry) => { - entry.currentVariant = resolvedVariant; - }); + if (variants.length === 0 || !variant) { + const messages = await fetchMessages(sessionID); + if (!messages) return; + + if (variants.length === 0) { + const info = latestModel(messages); + variants = info ? await variantsFor(info) : []; + if (variants.length === 0) return; + } + + if (!variant) { + const resolved = await latestVariant(messages); + if (resolved && variants.includes(resolved)) { + variant = resolved; + state.update(sessionID, (entry) => { + entry.variant = resolved; + }); + } } } - system.push( - config.systemPrompt.trim() + - " " + - (variant ? `Current reasoning effort level: ${variant}. ` : "") + - `Valid reasoning effort levels for this session: ${variants.join(", ")}. ` + - `To change your reasoning effort, use the \`${config.toolName}\` tool with one of the valid levels. ` + - "Only call it when the task complexity justifies changing levels.", - ); + const guidance = [ + config.systemPrompt.trim(), + variant ? `Current reasoning effort level: ${variant}.` : "", + `Valid reasoning effort levels for this session: ${variants.join(", ")}.`, + `To change your reasoning effort, use the \`${config.toolName}\` tool with one of the valid levels.`, + "Only call it when the task complexity justifies changing levels.", + ] + .filter(Boolean) + .join(" "); + + const existing = system[0]; + system[0] = existing ? `${existing}\n\n${guidance}` : guidance; }, }; }; From b9f9fef74fc9ef32f4fac6ddab6b4e1dfc57bdc3 Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Mon, 19 Oct 2026 21:24:47 -0400 Subject: [PATCH 2/6] feat: optional LLM classifier and guidance triggers Add an optional classifier (default opencode/big-pickle) and afterIdle/afterUserMessage triggers for the guidance. The classifier uses the same guidance, the last compaction summary or the current segment, and the current message last. Session state is bounded at 5,000 entries, expires after seven days, and is removed when a session is deleted. --- .changeset/llm-classifier.md | 5 + README.md | 28 ++++ src/config.ts | 64 ++++++++- src/index.test.ts | 268 +++++++++++++++++++++++++++++++++-- src/index.ts | 233 +++++++++++++++++++++++++++++- 5 files changed, 583 insertions(+), 15 deletions(-) create mode 100644 .changeset/llm-classifier.md diff --git a/.changeset/llm-classifier.md b/.changeset/llm-classifier.md new file mode 100644 index 0000000..bb3c108 --- /dev/null +++ b/.changeset/llm-classifier.md @@ -0,0 +1,5 @@ +--- +"opencode-adaptive-thinking": minor +--- + +Add optional `afterIdle` / `afterUserMessage` triggers for the guidance and an optional LLM classifier. The classifier uses the same guidance, the last compaction summary or the current segment as context, and the current message last. Session state is bounded at 5,000 entries, expires after seven days, and is removed when a session is deleted. diff --git a/README.md b/README.md index c8c1191..444b988 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,34 @@ The plugin accepts these optional settings: - `toolName`: name of the reasoning-effort tool exposed to agents. Defaults to `set_reasoning_effort`. - `toolDescription`: description for the reasoning-effort tool. Defaults to `Set your reasoning effort`. - `systemPrompt`: custom adaptive-thinking guidance injected into the system prompt. +- `triggers` (optional): when to inject the guidance and run the classifier. Fields: `afterIdle` and `afterUserMessage` (booleans). Omit `triggers` for the original behavior (guidance on every request); both `false` disables the guidance. +- `classifier` (optional): an LLM classifier that chooses the effort on real user messages. Disabled by default. Fields: `enabled` (boolean) and `model` (`{ providerID, modelID }`, default `opencode/big-pickle`). + +### Triggers and classifier + +`triggers` scopes when the guidance is injected: + +- `afterIdle`: first request after an idle or session start, when no user message is pending. +- `afterUserMessage`: first request after a real user message. + +Both are reset on `session.idle`. Omit `triggers` for the original behavior (guidance on every request). Both `false` disables the guidance. + +When `classifier.enabled` is true, the plugin asks the configured model for one valid effort level on real user messages. It uses the same guidance as its system prompt, then the last compaction summary (assistant message with `summary: true`) or the messages since session start/last idle, then the current message last. The call uses a temporary child session with tools disabled and a 5 s timeout; failures leave the level unchanged. The main session still receives the guidance at the triggers. + +```json +"triggers": { + "afterIdle": true, + "afterUserMessage": true +}, +"classifier": { + "enabled": true, + "model": { "providerID": "opencode", "modelID": "big-pickle" } +} +``` + +Synthetic and ignored messages are skipped. The classifier sends the user's request text and session context to the configured model; keep it disabled if that is not acceptable. + +Session state is kept in a 5,000-entry LRU and expires after seven days of inactivity; deleted sessions are removed. ### Example diff --git a/src/config.ts b/src/config.ts index 8213a1f..c4aba11 100644 --- a/src/config.ts +++ b/src/config.ts @@ -4,12 +4,24 @@ export const defaultSystemPrompt = "Reassess at turn start, after meaningful new evidence, and when the task shifts. " + "NEVER leave the current level unchanged by inertia, and NEVER reply to a trivial turn before considering a downshift."; +export type ClassifierConfig = { + enabled: boolean; + model: { providerID: string; modelID: string }; +}; + +export type TriggersConfig = { + afterIdle: boolean; + afterUserMessage: boolean; +}; + export type Config = { enabled: boolean; quiet: boolean; toolName: string; toolDescription: string; systemPrompt: string; + triggers?: TriggersConfig; + classifier: ClassifierConfig; }; const defaults: Config = { @@ -18,16 +30,25 @@ const defaults: Config = { toolName: "set_reasoning_effort", toolDescription: "Set your reasoning effort", systemPrompt: defaultSystemPrompt, + classifier: { + enabled: false, + model: { providerID: "opencode", modelID: "big-pickle" }, + }, }; +const cloneDefaults = (): Config => ({ + ...defaults, + classifier: { ...defaults.classifier, model: { ...defaults.classifier.model } }, +}); + export const parseConfig = (options: unknown): { config: Config } | { error: string } => { - if (options === undefined) return { config: { ...defaults } }; + if (options === undefined) return { config: cloneDefaults() }; if (typeof options !== "object" || options === null || Array.isArray(options)) { return { error: "options must be an object" }; } const input = options as Record; - const config = { ...defaults }; + const config = cloneDefaults(); for (const key of ["enabled", "quiet"] as const) { const value = input[key]; @@ -43,5 +64,44 @@ export const parseConfig = (options: unknown): { config: Config } | { error: str config[key] = value; } + const triggers = input.triggers; + if (triggers !== undefined) { + if (typeof triggers !== "object" || triggers === null || Array.isArray(triggers)) { + return { error: "triggers must be an object" }; + } + const value = triggers as Record; + const afterIdle = value.afterIdle === undefined ? false : value.afterIdle; + const afterUserMessage = value.afterUserMessage === undefined ? false : value.afterUserMessage; + if (typeof afterIdle !== "boolean" || typeof afterUserMessage !== "boolean") { + return { error: "triggers.afterIdle and triggers.afterUserMessage must be booleans" }; + } + config.triggers = { afterIdle, afterUserMessage }; + } + + const classifier = input.classifier; + if (classifier !== undefined) { + if (typeof classifier !== "object" || classifier === null || Array.isArray(classifier)) { + return { error: "classifier must be an object" }; + } + const value = classifier as Record; + + if (value.enabled !== undefined) { + if (typeof value.enabled !== "boolean") + return { error: "classifier.enabled must be a boolean" }; + config.classifier.enabled = value.enabled; + } + + if (value.model !== undefined) { + if (typeof value.model !== "object" || value.model === null || Array.isArray(value.model)) { + return { error: "classifier.model must be an object" }; + } + const model = value.model as Record; + if (typeof model.providerID !== "string" || typeof model.modelID !== "string") { + return { error: "classifier.model must have string providerID and modelID" }; + } + config.classifier.model = { providerID: model.providerID, modelID: model.modelID }; + } + } + return { config }; }; diff --git a/src/index.test.ts b/src/index.test.ts index 79f171f..78214be 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -37,6 +37,12 @@ const createClient = ( messages.push(message(body.variant)); return { error: undefined }; }), + create: vi.fn(async () => ({ data: { id: "classifier" }, error: undefined })), + prompt: vi.fn(async () => ({ + data: { parts: [{ type: "text", text: "high" }] }, + error: undefined, + })), + delete: vi.fn(async () => ({ data: true, error: undefined })), }, provider: { list: vi.fn(async () => ({ @@ -63,6 +69,20 @@ const ctx = (sessionID: string, agent = "agent") => ({ sessionID, agent }); const set = (plugin: any, level: string, persist: boolean, sessionID: string) => plugin.tool.set_reasoning_effort.execute({ level, persist }, ctx(sessionID)); +const say = async ( + plugin: any, + sessionID: string, + text: string, + extra: Record = {}, +) => { + const user = message().info; + await plugin["chat.message"]( + { sessionID, model: { providerID: "provider", modelID: "model" }, ...extra }, + { message: user, parts: [{ type: "text", text }] }, + ); + return user; +}; + const idle = (plugin: any, sessionID: string) => plugin.event({ event: { type: "session.idle", properties: { sessionID } } }); @@ -287,18 +307,244 @@ describe("AdaptiveThinkingPlugin", () => { expect(system[0]).toContain("Current reasoning effort level: low."); }); - test("evicts the oldest session state when the cache is full", async () => { - const oldest = createClient([message("medium")]); - const oldestPlugin: any = await AdaptiveThinkingPlugin({ client: oldest.client } as never); - await set(oldestPlugin, "low", false, "lru-0"); + test("drops session state when the session is deleted", async () => { + const { client, prompts } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + + await set(plugin, "low", false, "deleted-session"); + await plugin.event({ + event: { type: "session.deleted", properties: { info: { id: "deleted-session" } } }, + } as never); + await idle(plugin, "deleted-session"); + + expect(prompts).toHaveLength(1); + }); + + test("injects guidance once per user turn when afterUserMessage is set", async () => { + const { client } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { + triggers: { afterIdle: false, afterUserMessage: true }, + }); + + await say(plugin, "guidance-user", "hello"); + const first = new Array(); + await transform(plugin, "guidance-user", first); + expect(first).toHaveLength(1); + + const second = new Array(); + await transform(plugin, "guidance-user", second); + expect(second).toHaveLength(0); + }); + + test("injects guidance after idle when afterIdle is set", async () => { + const { client } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { + triggers: { afterIdle: true, afterUserMessage: false }, + }); + + const first = new Array(); + await transform(plugin, "guidance-idle", first); + expect(first).toHaveLength(1); + + const second = new Array(); + await transform(plugin, "guidance-idle", second); + expect(second).toHaveLength(0); + + await idle(plugin, "guidance-idle"); + const third = new Array(); + await transform(plugin, "guidance-idle", third); + expect(third).toHaveLength(1); + }); + + test("does not inject twice for a user message after idle", async () => { + const { client } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { + triggers: { afterIdle: true, afterUserMessage: true }, + }); + + await idle(plugin, "guidance-both"); + await say(plugin, "guidance-both", "hello"); + const system = new Array(); + await transform(plugin, "guidance-both", system); + expect(system).toHaveLength(1); + }); + + test("injects nothing when both triggers are false", async () => { + const { client } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { + triggers: { afterIdle: false, afterUserMessage: false }, + }); + + await say(plugin, "guidance-none", "hello"); + const system = new Array(); + await transform(plugin, "guidance-none", system); + expect(system).toHaveLength(0); + }); + + test("classifies user turns but not idle turns", async () => { + const { client } = createClient([message("medium")]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { + triggers: { afterIdle: true, afterUserMessage: true }, + classifier: { enabled: true }, + }); + + await transform(plugin, "classifier-idle", new Array()); + expect(client.session.create).not.toHaveBeenCalled(); + + await say(plugin, "classifier-user", "debug the flaky test"); + expect(client.session.create).toHaveBeenCalledTimes(1); + }); + + test("uses the last compaction summary in the classifier context", async () => { + const summary = "SUMMARY-CONTEXT"; + const { client } = createClient([ + message("medium"), + { + info: { role: "assistant", agent: "agent", summary: true, time: { created: 1 } }, + parts: [{ type: "text", text: summary }], + }, + ]); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { + classifier: { enabled: true }, + }); + + await say(plugin, "classifier-summary", "next step"); + const calls = client.session.prompt.mock.calls as unknown as Array<[any]>; + const call = calls.at(-1)?.[0]; + expect(call?.body.parts[0].text).toContain(summary); + expect(call?.body.parts[0].text).toContain("Current message:\nnext step"); + }); + + test("classifies each real user message", async () => { + const { client } = createClient(); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { + classifier: { enabled: true }, + }); + const input = { + sessionID: "classifier-initial", + model: { providerID: "provider", modelID: "model" }, + }; + + const first = message().info; + await plugin["chat.message"](input, { + message: first, + parts: [{ type: "text", text: "debug the flaky auth test" }], + }); + const second = message().info; + await plugin["chat.message"](input, { + message: second, + parts: [{ type: "text", text: "explain this function" }], + }); + + expect((first.model as { variant?: string }).variant).toBe("high"); + expect((second.model as { variant?: string }).variant).toBe("high"); + expect(client.session.create).toHaveBeenCalledTimes(2); + expect(client.session.create).toHaveBeenCalledWith({ + body: expect.objectContaining({ parentID: "classifier-initial" }), + }); + expect(client.session.prompt).toHaveBeenCalledWith( + expect.objectContaining({ + body: expect.objectContaining({ + model: { providerID: "opencode", modelID: "big-pickle" }, + tools: { "*": false }, + }), + }), + ); + expect(client.session.delete).toHaveBeenCalled(); + }); + + test("does not classify when disabled or with an explicit variant", async () => { + const { client } = createClient(); + const off: any = await AdaptiveThinkingPlugin({ client } as never); + await off["chat.message"]( + { sessionID: "classifier-off", model: { providerID: "provider", modelID: "model" } }, + { message: message().info, parts: [{ type: "text", text: "debug" }] }, + ); + expect(client.session.create).not.toHaveBeenCalled(); + + const on: any = await AdaptiveThinkingPlugin({ client } as never, { + classifier: { enabled: true }, + }); + const first = message().info; + await on["chat.message"]( + { + sessionID: "classifier-explicit", + model: { providerID: "provider", modelID: "model" }, + variant: "low", + }, + { message: first, parts: [{ type: "text", text: "debug" }] }, + ); + expect(client.session.create).not.toHaveBeenCalled(); + expect((first.model as { variant?: string }).variant).toBeUndefined(); + }); + + test("ignores synthetic user messages", async () => { + const { client } = createClient(); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { + classifier: { enabled: true }, + }); + const first = message().info; - for (let i = 1; i <= 500; i++) { - const { client } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - await set(plugin, "low", false, `lru-${i}`); - } + await plugin["chat.message"]( + { sessionID: "classifier-synthetic", model: { providerID: "provider", modelID: "model" } }, + { + message: first, + parts: [{ type: "text", text: "Continue if you have next steps.", synthetic: true }], + }, + ); - await idle(oldestPlugin, "lru-0"); - expect(oldest.prompts).toHaveLength(1); + expect(client.session.create).not.toHaveBeenCalled(); + expect((first.model as { variant?: string }).variant).toBeUndefined(); + }); + + test("ignores an invalid classifier answer", async () => { + const { client } = createClient(); + client.session.prompt.mockResolvedValueOnce({ + data: { parts: [{ type: "text", text: "unsure" }] }, + error: undefined, + } as never); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { + classifier: { enabled: true }, + }); + const first = message().info; + + await plugin["chat.message"]( + { sessionID: "classifier-invalid", model: { providerID: "provider", modelID: "model" } }, + { message: first, parts: [{ type: "text", text: "debug" }] }, + ); + + expect((first.model as { variant?: string }).variant).toBeUndefined(); + }); + + test("fails open when the classifier cannot be created", async () => { + const { client } = createClient(); + client.session.create.mockResolvedValueOnce({ + data: undefined, + error: { data: { message: "unavailable" } }, + } as never); + const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { + classifier: { enabled: true }, + }); + const first = message().info; + + await plugin["chat.message"]( + { sessionID: "classifier-failure", model: { providerID: "provider", modelID: "model" } }, + { message: first, parts: [{ type: "text", text: "debug" }] }, + ); + + expect((first.model as { variant?: string }).variant).toBeUndefined(); + expect(client.app.log).toHaveBeenCalledWith({ + body: expect.objectContaining({ level: "warn" }), + }); + }); + + test("rejects an invalid classifier configuration", async () => { + const { client } = createClient(); + const plugin = await AdaptiveThinkingPlugin({ client } as never, { + classifier: { enabled: "yes" }, + }); + + expect(plugin).toEqual({}); + expect(client.app.log).toHaveBeenCalled(); }); }); diff --git a/src/index.ts b/src/index.ts index 5f07ab5..66f2336 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,13 +5,19 @@ import { parseConfig } from "./config.js"; const z = tool.schema; const serviceName = "opencode-adaptive-thinking"; -const maxSessionStateSize = 500; +const maxSessionStateSize = 5000; +const stateTtlMs = 7 * 24 * 60 * 60 * 1000; const historyLimit = 20; +const classifierTimeout = 5000; type ModelInfo = { providerID: string; modelID: string }; type SessionMessage = { info: Message; parts: Array }; type SessionState = { variant?: string; + idlePending?: boolean; + userPending?: boolean; + lastIdleAt?: number; + touchedAt?: number; reset?: { level: string; agent: string; model?: ModelInfo }; }; @@ -24,14 +30,25 @@ class SessionStateCache { const entry = this.entries.get(sessionID); if (!entry) return; + if (entry.touchedAt && Date.now() - entry.touchedAt > stateTtlMs) { + this.entries.delete(sessionID); + return; + } + + entry.touchedAt = Date.now(); this.entries.delete(sessionID); this.entries.set(sessionID, entry); return entry; } + delete(sessionID: string) { + this.entries.delete(sessionID); + } + update(sessionID: string, update: (entry: SessionState) => void) { const entry = this.get(sessionID) ?? {}; update(entry); + entry.touchedAt = Date.now(); this.entries.set(sessionID, entry); if (this.entries.size > this.maxSize) { @@ -74,6 +91,31 @@ export const AdaptiveThinkingPlugin: Plugin = async ({ client }, options) => { const config = parsed.config; if (!config.enabled) return {}; + const classifierSessions = new Set(); + let classifierWarned = false; + + const warnClassifier = (message: string, error?: unknown) => { + if (classifierWarned) return; + classifierWarned = true; + client.app.log({ + body: { + service: serviceName, + level: "warn", + message: error === undefined ? message : `${message}: ${JSON.stringify(error)}`, + }, + }); + }; + + const promptText = (parts: Array) => { + if (parts.some((part) => part.type === "text" && (part.ignored || part.synthetic))) return; + const text = parts + .filter((part) => part.type === "text") + .map((part) => part.text) + .join("\n") + .trim(); + return text.length > 0 ? text : undefined; + }; + const getModelVariants = (model: unknown) => { const variants = (model as { variants?: Record } | undefined)?.variants; return Object.keys(variants ?? {}); @@ -137,6 +179,129 @@ export const AdaptiveThinkingPlugin: Plugin = async ({ client }, options) => { return match?.variant; }; + const messageText = (message: SessionMessage, includeSynthetic = false) => + message.parts + .map((part) => + part.type === "text" && !part.ignored && (includeSynthetic || !part.synthetic) + ? part.text + : "", + ) + .filter(Boolean) + .join("\n") + .trim(); + + const latestSummary = (messages: Array) => { + for (let i = messages.length - 1; i >= 0; i--) { + const info = messages[i]!.info; + if (info.role === "assistant" && info.summary === true) { + const text = messageText(messages[i]!, true); + if (text) return text; + } + } + }; + + const buildContext = async (sessionID: string) => { + const response = await client.session.messages({ path: { id: sessionID } }); + if (response.error) return ""; + const messages = (response.data ?? []) as Array; + const summary = latestSummary(messages); + if (summary) return summary; + const since = state.get(sessionID)?.lastIdleAt ?? 0; + return messages + .filter((message) => !since || message.info.time.created >= since) + .map((message) => { + const text = messageText(message); + return text ? `${message.info.role}: ${text}` : ""; + }) + .filter(Boolean) + .join("\n"); + }; + + const classifyWithModel = async ( + parentID: string, + text: string, + variants: Array, + model: ModelInfo, + current: string | undefined, + context: string, + ) => { + const created = await (async () => { + try { + return await client.session.create({ + body: { parentID, title: "Reasoning effort classifier" }, + }); + } catch { + return undefined; + } + })(); + if (!created || created.error || !created.data) { + warnClassifier("Failed to create the classifier session", created?.error); + return; + } + + const id = created.data.id; + classifierSessions.add(id); + try { + const pending = (async () => { + try { + return await client.session.prompt({ + path: { id }, + body: { + model, + system: [ + config.systemPrompt.trim(), + current ? `Current reasoning effort level: ${current}.` : "", + `Valid reasoning effort levels for this session: ${variants.join(", ")}.`, + `To change your reasoning effort, use the \`${config.toolName}\` tool with one of the valid levels.`, + "Only call it when the task complexity justifies changing levels.", + "Classifier task: choose exactly one of the valid levels for the current message and answer with that word only.", + ] + .filter(Boolean) + .join(" "), + tools: { "*": false }, + parts: [ + { + type: "text", + text: `Session context:\n${context || "(none)"}\n\nCurrent message:\n${text}`, + }, + ], + }, + }); + } catch { + return undefined; + } + })(); + const response = await Promise.race([ + pending, + new Promise((resolve) => + setTimeout(() => resolve(undefined), classifierTimeout), + ), + ]); + if (!response || response.error || !response.data) { + warnClassifier("The classifier request failed", response?.error); + return; + } + + const answer = response.data.parts + .filter((part) => part.type === "text") + .map((part) => part.text) + .join(" ") + .toLowerCase(); + let best: { index: number; level: string } | undefined; + for (const level of variants) { + const escaped = level.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); + const match = new RegExp(`\\b${escaped}\\b`, "i").exec(answer); + if (match && (!best || match.index < best.index)) best = { index: match.index, level }; + } + return best?.level; + } finally { + classifierSessions.delete(id); + try { + await client.session.delete({ path: { id } }); + } catch {} + } + }; + const sendVariantPrompt = ( sessionID: string, variant: string, @@ -174,6 +339,7 @@ export const AdaptiveThinkingPlugin: Plugin = async ({ client }, options) => { ), }, execute: async ({ level, persist }, { sessionID, agent }) => { + if (classifierSessions.has(sessionID)) return "Unavailable in this session."; const messages = await fetchMessages(sessionID); if (!messages) return "Failed to set reasoning effort: could not read the session"; @@ -214,10 +380,55 @@ export const AdaptiveThinkingPlugin: Plugin = async ({ client }, options) => { }, }), }, + "chat.message": async ({ sessionID, variant }, { message, parts }) => { + if (classifierSessions.has(sessionID)) return; + + const text = promptText(parts); + if (text === undefined) return; + + state.update(sessionID, (entry) => { + entry.userPending = true; + }); + + if (!config.classifier.enabled || variant) return; + if (config.triggers !== undefined && !config.triggers.afterUserMessage) return; + + const variants = await variantsFor(message.model); + if (variants.length === 0) return; + + const current = state.get(sessionID)?.variant; + const context = await buildContext(sessionID); + const level = await classifyWithModel( + sessionID, + text, + variants, + config.classifier.model, + current, + context, + ); + if (!level || !variants.includes(level)) return; + + (message.model as { variant?: string }).variant = level; + state.update(sessionID, (entry) => { + entry.variant = level; + }); + }, event: async ({ event }) => { + if (event.type === "session.deleted") { + state.delete(event.properties.info.id); + return; + } if (event.type !== "session.idle") return; const sessionID = event.properties.sessionID; + if (classifierSessions.has(sessionID)) return; + + state.update(sessionID, (entry) => { + entry.userPending = false; + entry.idlePending = true; + entry.lastIdleAt = Date.now(); + }); + const reset = state.get(sessionID)?.reset; if (!reset) return; @@ -239,7 +450,25 @@ export const AdaptiveThinkingPlugin: Plugin = async ({ client }, options) => { }); }, "experimental.chat.system.transform": async ({ sessionID, model }, { system }) => { - if (!sessionID) return; + if (!sessionID || classifierSessions.has(sessionID)) return; + + const session = state.get(sessionID); + const userPending = session?.userPending === true; + const idlePending = session?.idlePending ?? true; + + let inject: boolean; + if (config.triggers === undefined) inject = true; + else if (userPending) inject = config.triggers.afterUserMessage; + else if (idlePending) inject = config.triggers.afterIdle; + else inject = false; + + if (userPending || idlePending) { + state.update(sessionID, (entry) => { + entry.userPending = false; + entry.idlePending = false; + }); + } + if (!inject) return; let variants = getModelVariants(model); let variant = state.get(sessionID)?.variant; From 2ba85aa644b24542daf1cb3ab8f1f45b5890e45b Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Mon, 19 Oct 2026 21:25:13 -0400 Subject: [PATCH 3/6] build: ship dist --- dist/index.js | 11563 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 11563 insertions(+) create mode 100644 dist/index.js diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..518a84e --- /dev/null +++ b/dist/index.js @@ -0,0 +1,11563 @@ +//#region \0rolldown/runtime.js +var __defProp = Object.defineProperty; +var __exportAll = (all, no_symbols) => { + let target = {}; + for (var name in all) __defProp(target, name, { + get: all[name], + enumerable: true + }); + if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" }); + return target; +}; +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/core.js +/** A special constant with type `never` */ +const NEVER = Object.freeze({ status: "aborted" }); +function $constructor(name, initializer, 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); + initializer(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 fn of inst._zod.deferred) fn(); + 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 _; +} +const $brand = Symbol("zod_brand"); +var $ZodAsyncError = class extends Error { + constructor() { + super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`); + } +}; +var $ZodEncodeError = class extends Error { + constructor(name) { + super(`Encountered unidirectional transform during encode: ${name}`); + this.name = "ZodEncodeError"; + } +}; +const globalConfig = {}; +function config(newConfig) { + if (newConfig) Object.assign(globalConfig, newConfig); + return globalConfig; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/util.js +var util_exports = /* @__PURE__ */ __exportAll({ + 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, + base64ToUint8Array: () => base64ToUint8Array, + base64urlToUint8Array: () => base64urlToUint8Array, + cached: () => cached, + captureStackTrace: () => captureStackTrace, + cleanEnum: () => cleanEnum, + cleanRegex: () => cleanRegex, + clone: () => clone, + cloneDef: () => cloneDef, + createTransparentProxy: () => createTransparentProxy, + defineLazy: () => defineLazy, + esc: () => esc, + escapeRegex: () => escapeRegex, + extend: () => extend, + finalizeIssue: () => finalizeIssue, + floatSafeRemainder: () => floatSafeRemainder, + getElementAtPath: () => getElementAtPath, + getEnumValues: () => getEnumValues, + getLengthableOrigin: () => getLengthableOrigin, + getParsedType: () => getParsedType, + getSizableOrigin: () => getSizableOrigin, + hexToUint8Array: () => hexToUint8Array, + isObject: () => isObject, + isPlainObject: () => isPlainObject, + issue: () => issue, + joinValues: () => joinValues, + jsonStringifyReplacer: () => jsonStringifyReplacer, + merge: () => merge, + mergeDefs: () => mergeDefs, + normalizeParams: () => normalizeParams, + nullish: () => nullish$1, + numKeys: () => numKeys, + objectClone: () => objectClone, + omit: () => omit, + optionalKeys: () => optionalKeys, + partial: () => partial, + pick: () => pick, + prefixIssues: () => prefixIssues, + primitiveTypes: () => primitiveTypes, + promiseAllObject: () => promiseAllObject, + propertyKeyTypes: () => propertyKeyTypes, + randomString: () => randomString, + required: () => required, + safeExtend: () => safeExtend, + shallowClone: () => shallowClone, + stringifyPrimitive: () => stringifyPrimitive, + uint8ArrayToBase64: () => uint8ArrayToBase64, + uint8ArrayToBase64url: () => uint8ArrayToBase64url, + uint8ArrayToHex: () => uint8ArrayToHex, + 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"); + return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v); +} +function joinValues(array, separator = "|") { + return array.map((val) => stringifyPrimitive(val)).join(separator); +} +function jsonStringifyReplacer(_, value) { + if (typeof value === "bigint") return value.toString(); + return value; +} +function cached(getter) { + return { get value() { + { + const value = getter(); + Object.defineProperty(this, "value", { value }); + return value; + } + throw new Error("cached value already set"); + } }; +} +function nullish$1(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 floatSafeRemainder(val, step) { + const valDecCount = (val.toString().split(".")[1] || "").length; + const stepString = step.toString(); + let stepDecCount = (stepString.split(".")[1] || "").length; + if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) { + const match = stepString.match(/\d?e-(\d?)/); + if (match?.[1]) stepDecCount = Number.parseInt(match[1]); + } + const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount; + return Number.parseInt(val.toFixed(decCount).replace(".", "")) % Number.parseInt(step.toFixed(decCount).replace(".", "")) / 10 ** decCount; +} +const EVALUATING = Symbol("evaluating"); +function defineLazy(object, key, getter) { + let value = void 0; + Object.defineProperty(object, key, { + get() { + if (value === EVALUATING) return; + if (value === void 0) { + value = EVALUATING; + value = getter(); + } + return value; + }, + set(v) { + Object.defineProperty(object, key, { value: v }); + }, + configurable: true + }); +} +function objectClone(obj) { + return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj)); +} +function assignProp(target, prop, value) { + Object.defineProperty(target, prop, { + value, + writable: true, + enumerable: true, + configurable: true + }); +} +function mergeDefs(...defs) { + const mergedDescriptors = {}; + for (const def of defs) { + const descriptors = Object.getOwnPropertyDescriptors(def); + Object.assign(mergedDescriptors, descriptors); + } + return Object.defineProperties({}, mergedDescriptors); +} +function cloneDef(schema) { + return mergeDefs(schema._zod.def); +} +function getElementAtPath(obj, path) { + if (!path) return obj; + return path.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() * 26)]; + return str; +} +function esc(str) { + return JSON.stringify(str); +} +const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {}; +function isObject(data) { + return typeof data === "object" && data !== null && !Array.isArray(data); +} +const allowsEval = cached(() => { + if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false; + try { + new Function(""); + return true; + } catch (_) { + return false; + } +}); +function isPlainObject(o) { + if (isObject(o) === false) return false; + const ctor = o.constructor; + if (ctor === void 0) return true; + const prot = ctor.prototype; + if (isObject(prot) === false) return false; + if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) return false; + return true; +} +function shallowClone(o) { + if (isPlainObject(o)) return { ...o }; + if (Array.isArray(o)) return [...o]; + return o; +} +function numKeys(data) { + let keyCount = 0; + for (const key in data) if (Object.prototype.hasOwnProperty.call(data, key)) keyCount++; + return keyCount; +} +const getParsedType = (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}`); + } +}; +const propertyKeyTypes = /* @__PURE__ */ new Set([ + "string", + "number", + "symbol" +]); +const primitiveTypes = /* @__PURE__ */ new Set([ + "string", + "number", + "bigint", + "boolean", + "symbol", + "undefined" +]); +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, value, receiver) { + target ?? (target = getter()); + return Reflect.set(target, prop, value, 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(value) { + if (typeof value === "bigint") return value.toString() + "n"; + if (typeof value === "string") return `"${value}"`; + return `${value}`; +} +function optionalKeys(shape) { + return Object.keys(shape).filter((k) => { + return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional"; + }); +} +const 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] +}; +const BIGINT_FORMAT_RANGES = { + int64: [/* @__PURE__*/ BigInt("-9223372036854775808"), /* @__PURE__*/ BigInt("9223372036854775807")], + uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt("18446744073709551615")] +}; +function pick(schema, mask) { + const currDef = schema._zod.def; + return clone(schema, mergeDefs(schema._zod.def, { + get shape() { + const newShape = {}; + 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]; + } + assignProp(this, "shape", newShape); + return newShape; + }, + checks: [] + })); +} +function omit(schema, mask) { + const currDef = schema._zod.def; + return clone(schema, mergeDefs(schema._zod.def, { + get shape() { + const newShape = { ...schema._zod.def.shape }; + for (const key in mask) { + if (!(key in currDef.shape)) throw new Error(`Unrecognized key: "${key}"`); + if (!mask[key]) continue; + delete newShape[key]; + } + assignProp(this, "shape", newShape); + return newShape; + }, + checks: [] + })); +} +function extend(schema, shape) { + if (!isPlainObject(shape)) throw new Error("Invalid input to extend: expected a plain object"); + const checks = schema._zod.def.checks; + if (checks && checks.length > 0) throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead."); + return clone(schema, mergeDefs(schema._zod.def, { + get shape() { + const _shape = { + ...schema._zod.def.shape, + ...shape + }; + assignProp(this, "shape", _shape); + return _shape; + }, + checks: [] + })); +} +function safeExtend(schema, shape) { + if (!isPlainObject(shape)) throw new Error("Invalid input to safeExtend: expected a plain object"); + return clone(schema, { + ...schema._zod.def, + get shape() { + const _shape = { + ...schema._zod.def.shape, + ...shape + }; + assignProp(this, "shape", _shape); + return _shape; + }, + checks: schema._zod.def.checks + }); +} +function merge(a, b) { + return clone(a, mergeDefs(a._zod.def, { + get shape() { + const _shape = { + ...a._zod.def.shape, + ...b._zod.def.shape + }; + assignProp(this, "shape", _shape); + return _shape; + }, + get catchall() { + return b._zod.def.catchall; + }, + checks: [] + })); +} +function partial(Class, schema, mask) { + return clone(schema, mergeDefs(schema._zod.def, { + get shape() { + const oldShape = schema._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] = Class ? new Class({ + type: "optional", + innerType: oldShape[key] + }) : oldShape[key]; + } + else for (const key in oldShape) shape[key] = Class ? new Class({ + type: "optional", + innerType: oldShape[key] + }) : oldShape[key]; + assignProp(this, "shape", shape); + return shape; + }, + checks: [] + })); +} +function required(Class, schema, mask) { + return clone(schema, mergeDefs(schema._zod.def, { + get shape() { + const oldShape = schema._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 Class({ + type: "nonoptional", + innerType: oldShape[key] + }); + } + else for (const key in oldShape) shape[key] = new Class({ + type: "nonoptional", + innerType: oldShape[key] + }); + assignProp(this, "shape", shape); + return shape; + }, + checks: [] + })); +} +function aborted(x, startIndex = 0) { + if (x.aborted === true) return true; + for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true; + return false; +} +function prefixIssues(path, issues) { + return issues.map((iss) => { + var _a; + (_a = iss).path ?? (_a.path = []); + iss.path.unshift(path); + return iss; + }); +} +function unwrapMessage(message) { + return typeof message === "string" ? message : message?.message; +} +function finalizeIssue(iss, ctx, config) { + const full = { + ...iss, + path: iss.path ?? [] + }; + if (!iss.message) full.message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input"; + 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(...args) { + const [iss, input, inst] = args; + 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]); +} +function base64ToUint8Array(base64) { + const binaryString = atob(base64); + const bytes = new Uint8Array(binaryString.length); + for (let i = 0; i < binaryString.length; i++) bytes[i] = binaryString.charCodeAt(i); + return bytes; +} +function uint8ArrayToBase64(bytes) { + let binaryString = ""; + for (let i = 0; i < bytes.length; i++) binaryString += String.fromCharCode(bytes[i]); + return btoa(binaryString); +} +function base64urlToUint8Array(base64url) { + const base64 = base64url.replace(/-/g, "+").replace(/_/g, "/"); + return base64ToUint8Array(base64 + "=".repeat((4 - base64.length % 4) % 4)); +} +function uint8ArrayToBase64url(bytes) { + return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); +} +function hexToUint8Array(hex) { + const cleanHex = hex.replace(/^0x/, ""); + if (cleanHex.length % 2 !== 0) throw new Error("Invalid hex string length"); + const bytes = new Uint8Array(cleanHex.length / 2); + for (let i = 0; i < cleanHex.length; i += 2) bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16); + return bytes; +} +function uint8ArrayToHex(bytes) { + return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join(""); +} +var Class = class { + constructor(..._args) {} +}; +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/errors.js +const initializer$1 = (inst, def) => { + inst.name = "$ZodError"; + Object.defineProperty(inst, "_zod", { + value: inst._zod, + enumerable: false + }); + Object.defineProperty(inst, "issues", { + value: def, + enumerable: false + }); + inst.message = JSON.stringify(def, jsonStringifyReplacer, 2); + Object.defineProperty(inst, "toString", { + value: () => inst.message, + enumerable: false + }); +}; +const $ZodError = $constructor("$ZodError", initializer$1); +const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error }); +function flattenError(error, mapper = (issue) => issue.message) { + const fieldErrors = {}; + const formErrors = []; + for (const sub of error.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(error, _mapper) { + const mapper = _mapper || function(issue) { + return issue.message; + }; + const fieldErrors = { _errors: [] }; + const processError = (error) => { + for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues })); + else if (issue.code === "invalid_key") processError({ issues: issue.issues }); + else if (issue.code === "invalid_element") processError({ issues: issue.issues }); + else if (issue.path.length === 0) fieldErrors._errors.push(mapper(issue)); + else { + let curr = fieldErrors; + let i = 0; + while (i < issue.path.length) { + const el = issue.path[i]; + if (!(i === issue.path.length - 1)) curr[el] = curr[el] || { _errors: [] }; + else { + curr[el] = curr[el] || { _errors: [] }; + curr[el]._errors.push(mapper(issue)); + } + curr = curr[el]; + i++; + } + } + }; + processError(error); + return fieldErrors; +} +function treeifyError(error, _mapper) { + const mapper = _mapper || function(issue) { + return issue.message; + }; + const result = { errors: [] }; + const processError = (error, path = []) => { + var _a, _b; + for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }, issue.path)); + else if (issue.code === "invalid_key") processError({ issues: issue.issues }, issue.path); + else if (issue.code === "invalid_element") processError({ issues: issue.issues }, issue.path); + else { + const fullpath = [...path, ...issue.path]; + if (fullpath.length === 0) { + result.errors.push(mapper(issue)); + 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(issue)); + i++; + } + } + }; + processError(error); + return result; +} +/** Format a ZodError as a human-readable string in the following form. +* +* From +* +* ```ts +* ZodError { +* issues: [ +* { +* expected: 'string', +* code: 'invalid_type', +* path: [ 'username' ], +* message: 'Invalid input: expected string' +* }, +* { +* expected: 'number', +* code: 'invalid_type', +* path: [ 'favoriteNumbers', 1 ], +* message: 'Invalid input: expected number' +* } +* ]; +* } +* ``` +* +* to +* +* ``` +* username +* ✖ Expected number, received string at "username +* favoriteNumbers[0] +* ✖ Invalid input: expected number +* ``` +*/ +function toDotPath(_path) { + const segs = []; + const path = _path.map((seg) => typeof seg === "object" ? seg.key : seg); + for (const seg of path) 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(error) { + const lines = []; + const issues = [...error.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length); + for (const issue of issues) { + lines.push(`✖ ${issue.message}`); + if (issue.path?.length) lines.push(` → at ${toDotPath(issue.path)}`); + } + return lines.join("\n"); +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/parse.js +const _parse = (_Err) => (schema, value, _ctx, _params) => { + const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false }; + const result = schema._zod.run({ + value, + 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; +}; +const parse$1 = /* @__PURE__*/ _parse($ZodRealError); +const _parseAsync = (_Err) => async (schema, value, _ctx, params) => { + const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true }; + let result = schema._zod.run({ + value, + 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; +}; +const parseAsync$1 = /* @__PURE__*/ _parseAsync($ZodRealError); +const _safeParse = (_Err) => (schema, value, _ctx) => { + const ctx = _ctx ? { + ..._ctx, + async: false + } : { async: false }; + const result = schema._zod.run({ + value, + 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 + }; +}; +const safeParse$1 = /* @__PURE__*/ _safeParse($ZodRealError); +const _safeParseAsync = (_Err) => async (schema, value, _ctx) => { + const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true }; + let result = schema._zod.run({ + value, + 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 + }; +}; +const safeParseAsync$1 = /* @__PURE__*/ _safeParseAsync($ZodRealError); +const _encode = (_Err) => (schema, value, _ctx) => { + const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" }; + return _parse(_Err)(schema, value, ctx); +}; +const encode$1 = /* @__PURE__*/ _encode($ZodRealError); +const _decode = (_Err) => (schema, value, _ctx) => { + return _parse(_Err)(schema, value, _ctx); +}; +const decode$1 = /* @__PURE__*/ _decode($ZodRealError); +const _encodeAsync = (_Err) => async (schema, value, _ctx) => { + const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" }; + return _parseAsync(_Err)(schema, value, ctx); +}; +const encodeAsync$1 = /* @__PURE__*/ _encodeAsync($ZodRealError); +const _decodeAsync = (_Err) => async (schema, value, _ctx) => { + return _parseAsync(_Err)(schema, value, _ctx); +}; +const decodeAsync$1 = /* @__PURE__*/ _decodeAsync($ZodRealError); +const _safeEncode = (_Err) => (schema, value, _ctx) => { + const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" }; + return _safeParse(_Err)(schema, value, ctx); +}; +const safeEncode$1 = /* @__PURE__*/ _safeEncode($ZodRealError); +const _safeDecode = (_Err) => (schema, value, _ctx) => { + return _safeParse(_Err)(schema, value, _ctx); +}; +const safeDecode$1 = /* @__PURE__*/ _safeDecode($ZodRealError); +const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => { + const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" }; + return _safeParseAsync(_Err)(schema, value, ctx); +}; +const safeEncodeAsync$1 = /* @__PURE__*/ _safeEncodeAsync($ZodRealError); +const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => { + return _safeParseAsync(_Err)(schema, value, _ctx); +}; +const safeDecodeAsync$1 = /* @__PURE__*/ _safeDecodeAsync($ZodRealError); +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/regexes.js +var regexes_exports = /* @__PURE__ */ __exportAll({ + base64: () => base64$1, + base64url: () => base64url$1, + bigint: () => bigint$2, + boolean: () => boolean$2, + browserEmail: () => browserEmail, + cidrv4: () => cidrv4$1, + cidrv6: () => cidrv6$1, + cuid: () => cuid$1, + cuid2: () => cuid2$1, + date: () => date$3, + datetime: () => datetime$1, + domain: () => domain, + duration: () => duration$1, + e164: () => e164$1, + email: () => email$1, + emoji: () => emoji$1, + extendedDuration: () => extendedDuration, + guid: () => guid$1, + hex: () => hex$1, + hostname: () => hostname$1, + html5Email: () => html5Email, + idnEmail: () => idnEmail, + integer: () => integer, + ipv4: () => ipv4$1, + ipv6: () => ipv6$1, + ksuid: () => ksuid$1, + lowercase: () => lowercase, + md5_base64: () => md5_base64, + md5_base64url: () => md5_base64url, + md5_hex: () => md5_hex, + nanoid: () => nanoid$1, + null: () => _null$2, + number: () => number$2, + rfc5322Email: () => rfc5322Email, + sha1_base64: () => sha1_base64, + sha1_base64url: () => sha1_base64url, + sha1_hex: () => sha1_hex, + sha256_base64: () => sha256_base64, + sha256_base64url: () => sha256_base64url, + sha256_hex: () => sha256_hex, + sha384_base64: () => sha384_base64, + sha384_base64url: () => sha384_base64url, + sha384_hex: () => sha384_hex, + sha512_base64: () => sha512_base64, + sha512_base64url: () => sha512_base64url, + sha512_hex: () => sha512_hex, + string: () => string$2, + time: () => time$1, + ulid: () => ulid$1, + undefined: () => _undefined$2, + unicodeEmail: () => unicodeEmail, + uppercase: () => uppercase, + uuid: () => uuid$1, + uuid4: () => uuid4, + uuid6: () => uuid6, + uuid7: () => uuid7, + xid: () => xid$1 +}); +const cuid$1 = /^[cC][^\s-]{8,}$/; +const cuid2$1 = /^[0-9a-z]+$/; +const ulid$1 = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/; +const xid$1 = /^[0-9a-vA-V]{20}$/; +const ksuid$1 = /^[A-Za-z0-9]{27}$/; +const nanoid$1 = /^[a-zA-Z0-9_-]{21}$/; +/** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */ +const duration$1 = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/; +/** Implements ISO 8601-2 extensions like explicit +- prefixes, mixing weeks with other units, and fractional/negative components. */ +const 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)?)??$/; +/** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */ +const guid$1 = /^([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})$/; +/** Returns a regex for validating an RFC 9562/4122 UUID. +* +* @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */ +const uuid$1 = (version) => { + if (!version) 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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/; + return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`); +}; +const uuid4 = /*@__PURE__*/ uuid$1(4); +const uuid6 = /*@__PURE__*/ uuid$1(6); +const uuid7 = /*@__PURE__*/ uuid$1(7); +/** Practical email validation */ +const email$1 = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/; +/** Equivalent to the HTML5 input[type=email] validation implemented by browsers. Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email */ +const 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])?)*$/; +/** The classic emailregex.com regex for RFC 5322-compliant emails */ +const 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,}))$/; +/** A loose regex that allows Unicode characters, enforces length limits, and that's about it. */ +const unicodeEmail = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u; +const idnEmail = unicodeEmail; +const 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])?)*$/; +const _emoji$1 = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`; +function emoji$1() { + return new RegExp(_emoji$1, "u"); +} +const ipv4$1 = /^(?:(?: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])$/; +const ipv6$1 = /^(([0-9a-fA-F]{1,4}:){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}|:))$/; +const cidrv4$1 = /^((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])$/; +const cidrv6$1 = /^(([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])$/; +const base64$1 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/; +const base64url$1 = /^[A-Za-z0-9_-]*$/; +const hostname$1 = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/; +const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/; +const e164$1 = /^\+(?:[0-9]){6,14}[0-9]$/; +const 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])))`; +const date$3 = /*@__PURE__*/ new RegExp(`^${dateSource}$`); +function timeSource(args) { + const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`; + return typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`; +} +function time$1(args) { + return new RegExp(`^${timeSource(args)}$`); +} +function datetime$1(args) { + const time = timeSource({ precision: args.precision }); + const opts = ["Z"]; + if (args.local) opts.push(""); + if (args.offset) opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`); + const timeRegex = `${time}(?:${opts.join("|")})`; + return new RegExp(`^${dateSource}T(?:${timeRegex})$`); +} +const string$2 = (params) => { + const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`; + return new RegExp(`^${regex}$`); +}; +const bigint$2 = /^-?\d+n?$/; +const integer = /^-?\d+$/; +const number$2 = /^-?\d+(?:\.\d+)?/; +const boolean$2 = /^(?:true|false)$/i; +const _null$2 = /^null$/i; +const _undefined$2 = /^undefined$/i; +const lowercase = /^[^A-Z]*$/; +const uppercase = /^[^a-z]*$/; +const hex$1 = /^[0-9a-fA-F]*$/; +function fixedBase64(bodyLength, padding) { + return new RegExp(`^[A-Za-z0-9+/]{${bodyLength}}${padding}$`); +} +function fixedBase64url(length) { + return new RegExp(`^[A-Za-z0-9_-]{${length}}$`); +} +const md5_hex = /^[0-9a-fA-F]{32}$/; +const md5_base64 = /*@__PURE__*/ fixedBase64(22, "=="); +const md5_base64url = /*@__PURE__*/ fixedBase64url(22); +const sha1_hex = /^[0-9a-fA-F]{40}$/; +const sha1_base64 = /*@__PURE__*/ fixedBase64(27, "="); +const sha1_base64url = /*@__PURE__*/ fixedBase64url(27); +const sha256_hex = /^[0-9a-fA-F]{64}$/; +const sha256_base64 = /*@__PURE__*/ fixedBase64(43, "="); +const sha256_base64url = /*@__PURE__*/ fixedBase64url(43); +const sha384_hex = /^[0-9a-fA-F]{96}$/; +const sha384_base64 = /*@__PURE__*/ fixedBase64(64, ""); +const sha384_base64url = /*@__PURE__*/ fixedBase64url(64); +const sha512_hex = /^[0-9a-fA-F]{128}$/; +const sha512_base64 = /*@__PURE__*/ fixedBase64(86, "=="); +const sha512_base64url = /*@__PURE__*/ fixedBase64url(86); +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/checks.js +const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => { + var _a; + inst._zod ?? (inst._zod = {}); + inst._zod.def = def; + (_a = inst._zod).onattach ?? (_a.onattach = []); +}); +const numericOriginMap = { + number: "number", + bigint: "bigint", + object: "date" +}; +const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => { + $ZodCheck.init(inst, def); + const origin = numericOriginMap[typeof def.value]; + inst._zod.onattach.push((inst) => { + const bag = inst._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 + }); + }; +}); +const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => { + $ZodCheck.init(inst, def); + const origin = numericOriginMap[typeof def.value]; + inst._zod.onattach.push((inst) => { + const bag = inst._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 + }); + }; +}); +const $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => { + $ZodCheck.init(inst, def); + inst._zod.onattach.push((inst) => { + var _a; + (_a = inst._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."); + if (typeof payload.value === "bigint" ? payload.value % def.value === BigInt(0) : floatSafeRemainder(payload.value, def.value) === 0) return; + payload.issues.push({ + origin: typeof payload.value, + code: "not_multiple_of", + divisor: def.value, + input: payload.value, + inst, + continue: !def.abort + }); + }; +}); +const $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((inst) => { + const bag = inst._zod.bag; + bag.format = def.format; + bag.minimum = minimum; + bag.maximum = maximum; + if (isInt) bag.pattern = integer; + }); + 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", + continue: false, + 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 + }); + }; +}); +const $ZodCheckBigIntFormat = /*@__PURE__*/ $constructor("$ZodCheckBigIntFormat", (inst, def) => { + $ZodCheck.init(inst, def); + const [minimum, maximum] = BIGINT_FORMAT_RANGES[def.format]; + inst._zod.onattach.push((inst) => { + const bag = inst._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 + }); + }; +}); +const $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$1(val) && val.size !== void 0; + }); + inst._zod.onattach.push((inst) => { + const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY; + if (def.maximum < curr) inst._zod.bag.maximum = def.maximum; + }); + inst._zod.check = (payload) => { + const input = payload.value; + if (input.size <= def.maximum) return; + payload.issues.push({ + origin: getSizableOrigin(input), + code: "too_big", + maximum: def.maximum, + inclusive: true, + input, + inst, + continue: !def.abort + }); + }; +}); +const $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$1(val) && val.size !== void 0; + }); + inst._zod.onattach.push((inst) => { + const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY; + if (def.minimum > curr) inst._zod.bag.minimum = def.minimum; + }); + inst._zod.check = (payload) => { + const input = payload.value; + if (input.size >= def.minimum) return; + payload.issues.push({ + origin: getSizableOrigin(input), + code: "too_small", + minimum: def.minimum, + inclusive: true, + input, + inst, + continue: !def.abort + }); + }; +}); +const $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$1(val) && val.size !== void 0; + }); + inst._zod.onattach.push((inst) => { + const bag = inst._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 + }); + }; +}); +const $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$1(val) && val.length !== void 0; + }); + inst._zod.onattach.push((inst) => { + const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY; + if (def.maximum < curr) inst._zod.bag.maximum = def.maximum; + }); + inst._zod.check = (payload) => { + const input = payload.value; + if (input.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 + }); + }; +}); +const $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$1(val) && val.length !== void 0; + }); + inst._zod.onattach.push((inst) => { + const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY; + if (def.minimum > curr) inst._zod.bag.minimum = def.minimum; + }); + inst._zod.check = (payload) => { + const input = payload.value; + if (input.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 + }); + }; +}); +const $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$1(val) && val.length !== void 0; + }); + inst._zod.onattach.push((inst) => { + const bag = inst._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 + }); + }; +}); +const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => { + var _a, _b; + $ZodCheck.init(inst, def); + inst._zod.onattach.push((inst) => { + const bag = inst._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 = () => {}); +}); +const $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 + }); + }; +}); +const $ZodCheckLowerCase = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (inst, def) => { + def.pattern ?? (def.pattern = lowercase); + $ZodCheckStringFormat.init(inst, def); +}); +const $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (inst, def) => { + def.pattern ?? (def.pattern = uppercase); + $ZodCheckStringFormat.init(inst, def); +}); +const $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((inst) => { + const bag = inst._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 + }); + }; +}); +const $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((inst) => { + const bag = inst._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 + }); + }; +}); +const $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((inst) => { + const bag = inst._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 + }); + }; +}); +function handleCheckPropertyResult(result, payload, property) { + if (result.issues.length) payload.issues.push(...prefixIssues(property, result.issues)); +} +const $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((result) => handleCheckPropertyResult(result, payload, def.property)); + handleCheckPropertyResult(result, payload, def.property); + }; +}); +const $ZodCheckMimeType = /*@__PURE__*/ $constructor("$ZodCheckMimeType", (inst, def) => { + $ZodCheck.init(inst, def); + const mimeSet = new Set(def.mime); + inst._zod.onattach.push((inst) => { + inst._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, + continue: !def.abort + }); + }; +}); +const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst, def) => { + $ZodCheck.init(inst, def); + inst._zod.check = (payload) => { + payload.value = def.tx(payload.value); + }; +}); +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/doc.js +var Doc = class { + constructor(args = []) { + this.content = []; + this.indent = 0; + if (this) this.args = args; + } + indented(fn) { + this.indent += 1; + fn(this); + this.indent -= 1; + } + write(arg) { + if (typeof arg === "function") { + arg(this, { execution: "sync" }); + arg(this, { execution: "async" }); + return; + } + const lines = arg.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 args = this?.args; + const lines = [...(this?.content ?? [``]).map((x) => ` ${x}`)]; + return new F(...args, lines.join("\n")); + } +}; +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/versions.js +const version = { + major: 4, + minor: 1, + patch: 8 +}; +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/schemas.js +const $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 fn of ch._zod.onattach) fn(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, checks, ctx) => { + let isAborted = aborted(payload); + let asyncResult; + for (const ch of checks) { + if (ch._zod.def.when) { + if (!ch._zod.def.when(payload)) continue; + } else if (isAborted) 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 _; + if (payload.issues.length === currLen) return; + if (!isAborted) isAborted = aborted(payload, currLen); + }); + else { + if (payload.issues.length === currLen) continue; + if (!isAborted) isAborted = aborted(payload, currLen); + } + } + if (asyncResult) return asyncResult.then(() => { + return payload; + }); + return payload; + }; + const handleCanaryResult = (canary, payload, ctx) => { + if (aborted(canary)) { + canary.aborted = true; + return canary; + } + const checkResult = runChecks(payload, checks, ctx); + if (checkResult instanceof Promise) { + if (ctx.async === false) throw new $ZodAsyncError(); + return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx)); + } + return inst._zod.parse(checkResult, ctx); + }; + inst._zod.run = (payload, ctx) => { + if (ctx.skipChecks) return inst._zod.parse(payload, ctx); + if (ctx.direction === "backward") { + const canary = inst._zod.parse({ + value: payload.value, + issues: [] + }, { + ...ctx, + skipChecks: true + }); + if (canary instanceof Promise) return canary.then((canary) => { + return handleCanaryResult(canary, payload, ctx); + }); + return handleCanaryResult(canary, payload, ctx); + } + const result = inst._zod.parse(payload, ctx); + if (result instanceof Promise) { + if (ctx.async === false) throw new $ZodAsyncError(); + return result.then((result) => runChecks(result, checks, ctx)); + } + return runChecks(result, checks, ctx); + }; + } + inst["~standard"] = { + validate: (value) => { + try { + const r = safeParse$1(inst, value); + return r.success ? { value: r.data } : { issues: r.error?.issues }; + } catch (_) { + return safeParseAsync$1(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues }); + } + }, + vendor: "zod", + version: 1 + }; +}); +const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => { + $ZodType.init(inst, def); + inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$2(inst._zod.bag); + inst._zod.parse = (payload, _) => { + if (def.coerce) try { + payload.value = String(payload.value); + } catch (_) {} + if (typeof payload.value === "string") return payload; + payload.issues.push({ + expected: "string", + code: "invalid_type", + input: payload.value, + inst + }); + return payload; + }; +}); +const $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, def) => { + $ZodCheckStringFormat.init(inst, def); + $ZodString.init(inst, def); +}); +const $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => { + def.pattern ?? (def.pattern = guid$1); + $ZodStringFormat.init(inst, def); +}); +const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => { + if (def.version) { + const v = { + v1: 1, + v2: 2, + v3: 3, + v4: 4, + v5: 5, + v6: 6, + v7: 7, + v8: 8 + }[def.version]; + if (v === void 0) throw new Error(`Invalid UUID version: "${def.version}"`); + def.pattern ?? (def.pattern = uuid$1(v)); + } else def.pattern ?? (def.pattern = uuid$1()); + $ZodStringFormat.init(inst, def); +}); +const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => { + def.pattern ?? (def.pattern = email$1); + $ZodStringFormat.init(inst, def); +}); +const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => { + $ZodStringFormat.init(inst, def); + inst._zod.check = (payload) => { + try { + const trimmed = payload.value.trim(); + const url = new URL(trimmed); + if (def.hostname) { + def.hostname.lastIndex = 0; + if (!def.hostname.test(url.hostname)) payload.issues.push({ + code: "invalid_format", + format: "url", + note: "Invalid hostname", + pattern: hostname$1.source, + input: payload.value, + inst, + continue: !def.abort + }); + } + if (def.protocol) { + def.protocol.lastIndex = 0; + if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) payload.issues.push({ + code: "invalid_format", + format: "url", + note: "Invalid protocol", + pattern: def.protocol.source, + input: payload.value, + inst, + continue: !def.abort + }); + } + if (def.normalize) payload.value = url.href; + else payload.value = trimmed; + return; + } catch (_) { + payload.issues.push({ + code: "invalid_format", + format: "url", + input: payload.value, + inst, + continue: !def.abort + }); + } + }; +}); +const $ZodEmoji = /*@__PURE__*/ $constructor("$ZodEmoji", (inst, def) => { + def.pattern ?? (def.pattern = emoji$1()); + $ZodStringFormat.init(inst, def); +}); +const $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => { + def.pattern ?? (def.pattern = nanoid$1); + $ZodStringFormat.init(inst, def); +}); +const $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => { + def.pattern ?? (def.pattern = cuid$1); + $ZodStringFormat.init(inst, def); +}); +const $ZodCUID2 = /*@__PURE__*/ $constructor("$ZodCUID2", (inst, def) => { + def.pattern ?? (def.pattern = cuid2$1); + $ZodStringFormat.init(inst, def); +}); +const $ZodULID = /*@__PURE__*/ $constructor("$ZodULID", (inst, def) => { + def.pattern ?? (def.pattern = ulid$1); + $ZodStringFormat.init(inst, def); +}); +const $ZodXID = /*@__PURE__*/ $constructor("$ZodXID", (inst, def) => { + def.pattern ?? (def.pattern = xid$1); + $ZodStringFormat.init(inst, def); +}); +const $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => { + def.pattern ?? (def.pattern = ksuid$1); + $ZodStringFormat.init(inst, def); +}); +const $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => { + def.pattern ?? (def.pattern = datetime$1(def)); + $ZodStringFormat.init(inst, def); +}); +const $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => { + def.pattern ?? (def.pattern = date$3); + $ZodStringFormat.init(inst, def); +}); +const $ZodISOTime = /*@__PURE__*/ $constructor("$ZodISOTime", (inst, def) => { + def.pattern ?? (def.pattern = time$1(def)); + $ZodStringFormat.init(inst, def); +}); +const $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def) => { + def.pattern ?? (def.pattern = duration$1); + $ZodStringFormat.init(inst, def); +}); +const $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => { + def.pattern ?? (def.pattern = ipv4$1); + $ZodStringFormat.init(inst, def); + inst._zod.onattach.push((inst) => { + const bag = inst._zod.bag; + bag.format = `ipv4`; + }); +}); +const $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => { + def.pattern ?? (def.pattern = ipv6$1); + $ZodStringFormat.init(inst, def); + inst._zod.onattach.push((inst) => { + const bag = inst._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 + }); + } + }; +}); +const $ZodCIDRv4 = /*@__PURE__*/ $constructor("$ZodCIDRv4", (inst, def) => { + def.pattern ?? (def.pattern = cidrv4$1); + $ZodStringFormat.init(inst, def); +}); +const $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => { + def.pattern ?? (def.pattern = cidrv6$1); + $ZodStringFormat.init(inst, def); + inst._zod.check = (payload) => { + const parts = payload.value.split("/"); + try { + if (parts.length !== 2) throw new Error(); + const [address, prefix] = parts; + 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 + }); + } + }; +}); +function isValidBase64(data) { + if (data === "") return true; + if (data.length % 4 !== 0) return false; + try { + atob(data); + return true; + } catch { + return false; + } +} +const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => { + def.pattern ?? (def.pattern = base64$1); + $ZodStringFormat.init(inst, def); + inst._zod.onattach.push((inst) => { + inst._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 + }); + }; +}); +function isValidBase64URL(data) { + if (!base64url$1.test(data)) return false; + const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/"); + return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "=")); +} +const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => { + def.pattern ?? (def.pattern = base64url$1); + $ZodStringFormat.init(inst, def); + inst._zod.onattach.push((inst) => { + inst._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 + }); + }; +}); +const $ZodE164 = /*@__PURE__*/ $constructor("$ZodE164", (inst, def) => { + def.pattern ?? (def.pattern = e164$1); + $ZodStringFormat.init(inst, def); +}); +function isValidJWT(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; + } +} +const $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => { + $ZodStringFormat.init(inst, def); + inst._zod.check = (payload) => { + if (isValidJWT(payload.value, def.alg)) return; + payload.issues.push({ + code: "invalid_format", + format: "jwt", + input: payload.value, + inst, + continue: !def.abort + }); + }; +}); +const $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 + }); + }; +}); +const $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => { + $ZodType.init(inst, def); + inst._zod.pattern = inst._zod.bag.pattern ?? number$2; + 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; + }; +}); +const $ZodNumberFormat = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => { + $ZodCheckNumberFormat.init(inst, def); + $ZodNumber.init(inst, def); +}); +const $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => { + $ZodType.init(inst, def); + inst._zod.pattern = boolean$2; + 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; + }; +}); +const $ZodBigInt = /*@__PURE__*/ $constructor("$ZodBigInt", (inst, def) => { + $ZodType.init(inst, def); + inst._zod.pattern = bigint$2; + 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; + }; +}); +const $ZodBigIntFormat = /*@__PURE__*/ $constructor("$ZodBigInt", (inst, def) => { + $ZodCheckBigIntFormat.init(inst, def); + $ZodBigInt.init(inst, def); +}); +const $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; + }; +}); +const $ZodUndefined = /*@__PURE__*/ $constructor("$ZodUndefined", (inst, def) => { + $ZodType.init(inst, def); + inst._zod.pattern = _undefined$2; + 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; + }; +}); +const $ZodNull = /*@__PURE__*/ $constructor("$ZodNull", (inst, def) => { + $ZodType.init(inst, def); + inst._zod.pattern = _null$2; + 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; + }; +}); +const $ZodAny = /*@__PURE__*/ $constructor("$ZodAny", (inst, def) => { + $ZodType.init(inst, def); + inst._zod.parse = (payload) => payload; +}); +const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => { + $ZodType.init(inst, def); + inst._zod.parse = (payload) => payload; +}); +const $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; + }; +}); +const $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; + }; +}); +const $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; + if (isDate && !Number.isNaN(input.getTime())) return payload; + payload.issues.push({ + expected: "date", + code: "invalid_type", + input, + ...isDate ? { received: "Invalid Date" } : {}, + inst + }); + return payload; + }; +}); +function handleArrayResult(result, final, index) { + if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues)); + final.value[index] = result.value; +} +const $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((result) => handleArrayResult(result, payload, i))); + else handleArrayResult(result, payload, i); + } + if (proms.length) return Promise.all(proms).then(() => payload); + return payload; + }; +}); +function handlePropertyResult(result, final, key, input) { + if (result.issues.length) final.issues.push(...prefixIssues(key, result.issues)); + if (result.value === void 0) { + if (key in input) final.value[key] = void 0; + } else final.value[key] = result.value; +} +function normalizeDef(def) { + const keys = Object.keys(def.shape); + for (const k of keys) if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) throw new Error(`Invalid element at key "${k}": expected a Zod schema`); + const okeys = optionalKeys(def.shape); + return { + ...def, + keys, + keySet: new Set(keys), + numKeys: keys.length, + optionalKeys: new Set(okeys) + }; +} +function handleCatchall(proms, input, payload, ctx, def, inst) { + const unrecognized = []; + const keySet = def.keySet; + const _catchall = def.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((r) => handlePropertyResult(r, payload, key, input))); + else handlePropertyResult(r, payload, key, input); + } + 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; + }); +} +const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => { + $ZodType.init(inst, def); + const _normalized = cached(() => normalizeDef(def)); + 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 isObject$2 = isObject; + const catchall = def.catchall; + let value; + inst._zod.parse = (payload, ctx) => { + value ?? (value = _normalized.value); + const input = payload.value; + if (!isObject$2(input)) { + payload.issues.push({ + expected: "object", + code: "invalid_type", + input, + inst + }); + return payload; + } + payload.value = {}; + const proms = []; + const shape = value.shape; + for (const key of value.keys) { + const r = shape[key]._zod.run({ + value: input[key], + issues: [] + }, ctx); + if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input))); + else handlePropertyResult(r, payload, key, input); + } + if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload; + return handleCatchall(proms, input, payload, ctx, _normalized.value, inst); + }; +}); +const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => { + $ZodObject.init(inst, def); + const superParse = inst._zod.parse; + const _normalized = cached(() => normalizeDef(def)); + 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 = 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) { + const id = ids[key]; + const k = esc(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 ? [${k}, ...iss.path] : [${k}] + }))); + } + + + if (${id}.value === undefined) { + if (${k} in input) { + newResult[${k}] = undefined; + } + } else { + newResult[${k}] = ${id}.value; + } + + `); + } + doc.write(`payload.value = newResult;`); + doc.write(`return payload;`); + const fn = doc.compile(); + return (payload, ctx) => fn(shape, payload, ctx); + }; + let fastpass; + const isObject$1 = isObject; + const jit = !globalConfig.jitless; + const fastEnabled = jit && allowsEval.value; + const catchall = def.catchall; + let value; + inst._zod.parse = (payload, ctx) => { + value ?? (value = _normalized.value); + const input = payload.value; + if (!isObject$1(input)) { + payload.issues.push({ + expected: "object", + code: "invalid_type", + input, + inst + }); + return payload; + } + if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) { + if (!fastpass) fastpass = generateFastpass(def.shape); + payload = fastpass(payload, ctx); + if (!catchall) return payload; + return handleCatchall([], input, payload, ctx, value, inst); + } + return superParse(payload, ctx); + }; +}); +function handleUnionResults(results, final, inst, ctx) { + for (const result of results) if (result.issues.length === 0) { + final.value = result.value; + return final; + } + const nonaborted = results.filter((r) => !aborted(r)); + if (nonaborted.length === 1) { + final.value = nonaborted[0].value; + return nonaborted[0]; + } + final.issues.push({ + code: "invalid_union", + input: final.value, + inst, + errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config()))) + }); + return final; +} +const $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))); + }); + 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("|")})$`); + } + }); + const single = def.options.length === 1; + const first = def.options[0]._zod.run; + inst._zod.parse = (payload, ctx) => { + if (single) return first(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((results) => { + return handleUnionResults(results, payload, inst, ctx); + }); + }; +}); +const $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 = cached(() => { + 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 (!isObject(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", + discriminator: def.discriminator, + input, + path: [def.discriminator], + inst + }); + return payload; + }; +}); +const $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); + if (left instanceof Promise || right instanceof Promise) return Promise.all([left, right]).then(([left, right]) => { + return handleIntersectionResults(payload, left, right); + }); + return handleIntersectionResults(payload, left, right); + }; +}); +function mergeValues(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 (isPlainObject(a) && isPlainObject(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 = mergeValues(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 = mergeValues(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 = mergeValues(left.value, right.value); + if (!merged.valid) throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`); + result.value = merged.data; + return result; +} +const $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({ + ...tooBig ? { + code: "too_big", + maximum: items.length + } : { + code: "too_small", + minimum: items.length + }, + input, + inst, + origin: "array" + }); + 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((result) => handleTupleResult(result, 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((result) => handleTupleResult(result, payload, i))); + else handleTupleResult(result, payload, i); + } + } + if (proms.length) return Promise.all(proms).then(() => payload); + return payload; + }; +}); +function handleTupleResult(result, final, index) { + if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues)); + final.value[index] = result.value; +} +const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => { + $ZodType.init(inst, def); + inst._zod.parse = (payload, ctx) => { + const input = payload.value; + if (!isPlainObject(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((result) => { + if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues)); + payload.value[key] = result.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({ + code: "invalid_key", + origin: "record", + 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((result) => { + if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues)); + payload.value[keyResult.value] = result.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; + }; +}); +const $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, value] of input) { + const keyResult = def.keyType._zod.run({ + value: key, + issues: [] + }, ctx); + const valueResult = def.valueType._zod.run({ + value, + issues: [] + }, ctx); + if (keyResult instanceof Promise || valueResult instanceof Promise) proms.push(Promise.all([keyResult, valueResult]).then(([keyResult, valueResult]) => { + handleMapResult(keyResult, valueResult, 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; + }; +}); +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({ + code: "invalid_key", + origin: "map", + 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); +} +const $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((result) => handleSetResult(result, payload))); + else handleSetResult(result, payload); + } + if (proms.length) return Promise.all(proms).then(() => payload); + return payload; + }; +}); +function handleSetResult(result, final) { + if (result.issues.length) final.issues.push(...result.issues); + final.value.add(result.value); +} +const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => { + $ZodType.init(inst, def); + const values = getEnumValues(def.entries); + const valuesSet = new Set(values); + inst._zod.values = valuesSet; + 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 (valuesSet.has(input)) return payload; + payload.issues.push({ + code: "invalid_value", + values, + input, + inst + }); + return payload; + }; +}); +const $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => { + $ZodType.init(inst, def); + if (def.values.length === 0) throw new Error("Cannot create literal schema with no valid values"); + inst._zod.values = new Set(def.values); + inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(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; + }; +}); +const $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; + }; +}); +const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => { + $ZodType.init(inst, def); + inst._zod.parse = (payload, ctx) => { + if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name); + const _out = def.transform(payload.value, payload); + if (ctx.async) return (_out instanceof Promise ? _out : Promise.resolve(_out)).then((output) => { + payload.value = output; + return payload; + }); + if (_out instanceof Promise) throw new $ZodAsyncError(); + payload.value = _out; + return payload; + }; +}); +function handleOptionalResult(result, input) { + if (result.issues.length && input === void 0) return { + issues: [], + value: void 0 + }; + return result; +} +const $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") { + const result = def.innerType._zod.run(payload, ctx); + if (result instanceof Promise) return result.then((r) => handleOptionalResult(r, payload.value)); + return handleOptionalResult(result, payload.value); + } + if (payload.value === void 0) return payload; + return def.innerType._zod.run(payload, ctx); + }; +}); +const $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); + }; +}); +const $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 (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx); + if (payload.value === void 0) { + payload.value = def.defaultValue; + /** + * $ZodDefault returns the default value immediately in forward direction. + * It doesn't pass the default value into the validator ("prefault"). There's no reason to pass the default value through validation. The validity of the default is enforced by TypeScript statically. Otherwise, it's the responsibility of the user to ensure the default is valid. In the case of pipes with divergent in/out types, you can specify the default on the `in` schema of your ZodPipe to set a "prefault" for the pipe. */ + return payload; + } + const result = def.innerType._zod.run(payload, ctx); + if (result instanceof Promise) return result.then((result) => handleDefaultResult(result, def)); + return handleDefaultResult(result, def); + }; +}); +function handleDefaultResult(payload, def) { + if (payload.value === void 0) payload.value = def.defaultValue; + return payload; +} +const $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 (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx); + if (payload.value === void 0) payload.value = def.defaultValue; + return def.innerType._zod.run(payload, ctx); + }; +}); +const $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((result) => handleNonOptionalResult(result, inst)); + return handleNonOptionalResult(result, inst); + }; +}); +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; +} +const $ZodSuccess = /*@__PURE__*/ $constructor("$ZodSuccess", (inst, def) => { + $ZodType.init(inst, def); + inst._zod.parse = (payload, ctx) => { + if (ctx.direction === "backward") throw new $ZodEncodeError("ZodSuccess"); + const result = def.innerType._zod.run(payload, ctx); + if (result instanceof Promise) return result.then((result) => { + payload.value = result.issues.length === 0; + return payload; + }); + payload.value = result.issues.length === 0; + return payload; + }; +}); +const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (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, "values", () => def.innerType._zod.values); + inst._zod.parse = (payload, ctx) => { + if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx); + const result = def.innerType._zod.run(payload, ctx); + if (result instanceof Promise) return result.then((result) => { + 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; + }); + 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; + }; +}); +const $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; + }; +}); +const $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); + defineLazy(inst._zod, "propValues", () => def.in._zod.propValues); + inst._zod.parse = (payload, ctx) => { + if (ctx.direction === "backward") { + const right = def.out._zod.run(payload, ctx); + if (right instanceof Promise) return right.then((right) => handlePipeResult(right, def.in, ctx)); + return handlePipeResult(right, def.in, ctx); + } + const left = def.in._zod.run(payload, ctx); + if (left instanceof Promise) return left.then((left) => handlePipeResult(left, def.out, ctx)); + return handlePipeResult(left, def.out, ctx); + }; +}); +function handlePipeResult(left, next, ctx) { + if (left.issues.length) { + left.aborted = true; + return left; + } + return next._zod.run({ + value: left.value, + issues: left.issues + }, ctx); +} +const $ZodCodec = /*@__PURE__*/ $constructor("$ZodCodec", (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); + defineLazy(inst._zod, "propValues", () => def.in._zod.propValues); + inst._zod.parse = (payload, ctx) => { + if ((ctx.direction || "forward") === "forward") { + const left = def.in._zod.run(payload, ctx); + if (left instanceof Promise) return left.then((left) => handleCodecAResult(left, def, ctx)); + return handleCodecAResult(left, def, ctx); + } else { + const right = def.out._zod.run(payload, ctx); + if (right instanceof Promise) return right.then((right) => handleCodecAResult(right, def, ctx)); + return handleCodecAResult(right, def, ctx); + } + }; +}); +function handleCodecAResult(result, def, ctx) { + if (result.issues.length) { + result.aborted = true; + return result; + } + if ((ctx.direction || "forward") === "forward") { + const transformed = def.transform(result.value, result); + if (transformed instanceof Promise) return transformed.then((value) => handleCodecTxResult(result, value, def.out, ctx)); + return handleCodecTxResult(result, transformed, def.out, ctx); + } else { + const transformed = def.reverseTransform(result.value, result); + if (transformed instanceof Promise) return transformed.then((value) => handleCodecTxResult(result, value, def.in, ctx)); + return handleCodecTxResult(result, transformed, def.in, ctx); + } +} +function handleCodecTxResult(left, value, nextSchema, ctx) { + if (left.issues.length) { + left.aborted = true; + return left; + } + return nextSchema._zod.run({ + value, + issues: left.issues + }, ctx); +} +const $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) => { + if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx); + const result = def.innerType._zod.run(payload, ctx); + if (result instanceof Promise) return result.then(handleReadonlyResult); + return handleReadonlyResult(result); + }; +}); +function handleReadonlyResult(payload) { + payload.value = Object.freeze(payload.value); + return payload; +} +const $ZodTemplateLiteral = /*@__PURE__*/ $constructor("$ZodTemplateLiteral", (inst, def) => { + $ZodType.init(inst, def); + const regexParts = []; + for (const part of def.parts) if (typeof part === "object" && part !== null) { + 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: def.format ?? "template_literal", + pattern: inst._zod.pattern.source + }); + return payload; + } + return payload; + }; +}); +const $ZodFunction = /*@__PURE__*/ $constructor("$ZodFunction", (inst, def) => { + $ZodType.init(inst, def); + inst._def = def; + inst._zod.def = def; + inst.implement = (func) => { + if (typeof func !== "function") throw new Error("implement() must be called with a function"); + return function(...args) { + const parsedArgs = inst._def.input ? parse$1(inst._def.input, args) : args; + const result = Reflect.apply(func, this, parsedArgs); + if (inst._def.output) return parse$1(inst._def.output, result); + return result; + }; + }; + inst.implementAsync = (func) => { + if (typeof func !== "function") throw new Error("implementAsync() must be called with a function"); + return async function(...args) { + const parsedArgs = inst._def.input ? await parseAsync$1(inst._def.input, args) : args; + const result = await Reflect.apply(func, this, parsedArgs); + if (inst._def.output) return await parseAsync$1(inst._def.output, result); + return result; + }; + }; + inst._zod.parse = (payload, _ctx) => { + if (typeof payload.value !== "function") { + payload.issues.push({ + code: "invalid_type", + expected: "function", + input: payload.value, + inst + }); + return payload; + } + if (inst._def.output && inst._def.output._zod.def.type === "promise") payload.value = inst.implementAsync(payload.value); + else payload.value = inst.implement(payload.value); + return payload; + }; + inst.input = (...args) => { + const F = inst.constructor; + if (Array.isArray(args[0])) return new F({ + type: "function", + input: new $ZodTuple({ + type: "tuple", + items: args[0], + rest: args[1] + }), + output: inst._def.output + }); + return new F({ + type: "function", + input: args[0], + output: inst._def.output + }); + }; + inst.output = (output) => { + const F = inst.constructor; + return new F({ + type: "function", + input: inst._def.input, + output + }); + }; + return inst; +}); +const $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)); + }; +}); +const $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 ?? void 0); + defineLazy(inst._zod, "optout", () => inst._zod.innerType._zod.optout ?? void 0); + inst._zod.parse = (payload, ctx) => { + return inst._zod.innerType._zod.run(payload, ctx); + }; +}); +const $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((r) => handleRefineResult(r, payload, input, inst)); + handleRefineResult(r, payload, input, inst); + }; +}); +function handleRefineResult(result, payload, input, inst) { + if (!result) { + const _iss = { + code: "custom", + input, + inst, + path: [...inst._zod.def.path ?? []], + continue: !inst._zod.def.abort + }; + if (inst._zod.def.params) _iss.params = inst._zod.def.params; + payload.issues.push(issue(_iss)); + } +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ar.js +const error$43 = () => { + const Sizable = { + string: { + unit: "حرف", + verb: "أن يحوي" + }, + file: { + unit: "بايت", + verb: "أن يحوي" + }, + array: { + unit: "عنصر", + verb: "أن يحوي" + }, + set: { + unit: "عنصر", + verb: "أن يحوي" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const 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; + }; + const Nouns = { + regex: "مدخل", + email: "بريد إلكتروني", + url: "رابط", + emoji: "إيموجي", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "تاريخ ووقت بمعيار ISO", + date: "تاريخ بمعيار ISO", + time: "وقت بمعيار ISO", + duration: "مدة بمعيار ISO", + ipv4: "عنوان IPv4", + ipv6: "عنوان IPv6", + cidrv4: "مدى عناوين بصيغة IPv4", + cidrv6: "مدى عناوين بصيغة IPv6", + base64: "نَص بترميز base64-encoded", + base64url: "نَص بترميز base64url-encoded", + json_string: "نَص على هيئة JSON", + e164: "رقم هاتف بمعيار E.164", + jwt: "JWT", + template_literal: "مدخل" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue.expected}، ولكن تم إدخال ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue.values[0])}`; + return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return ` أكبر من اللازم: يفترض أن تكون ${issue.origin ?? "القيمة"} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? "عنصر"}`; + return `أكبر من اللازم: يفترض أن تكون ${issue.origin ?? "القيمة"} ${adj} ${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `أصغر من اللازم: يفترض لـ ${issue.origin} أن يكون ${adj} ${issue.minimum.toString()} ${sizing.unit}`; + return `أصغر من اللازم: يفترض لـ ${issue.origin} أن يكون ${adj} ${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `نَص غير مقبول: يجب أن يبدأ بـ "${issue.prefix}"`; + if (_issue.format === "ends_with") return `نَص غير مقبول: يجب أن ينتهي بـ "${_issue.suffix}"`; + if (_issue.format === "includes") return `نَص غير مقبول: يجب أن يتضمَّن "${_issue.includes}"`; + if (_issue.format === "regex") return `نَص غير مقبول: يجب أن يطابق النمط ${_issue.pattern}`; + return `${Nouns[_issue.format] ?? issue.format} غير مقبول`; + } + case "not_multiple_of": return `رقم غير مقبول: يجب أن يكون من مضاعفات ${issue.divisor}`; + case "unrecognized_keys": return `معرف${issue.keys.length > 1 ? "ات" : ""} غريب${issue.keys.length > 1 ? "ة" : ""}: ${joinValues(issue.keys, "، ")}`; + case "invalid_key": return `معرف غير مقبول في ${issue.origin}`; + case "invalid_union": return "مدخل غير مقبول"; + case "invalid_element": return `مدخل غير مقبول في ${issue.origin}`; + default: return "مدخل غير مقبول"; + } + }; +}; +function ar_default() { + return { localeError: error$43() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/az.js +const error$42 = () => { + const Sizable = { + string: { + unit: "simvol", + verb: "olmalıdır" + }, + file: { + unit: "bayt", + verb: "olmalıdır" + }, + array: { + unit: "element", + verb: "olmalıdır" + }, + set: { + unit: "element", + verb: "olmalıdır" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const 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; + }; + 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 (issue) => { + switch (issue.code) { + case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue.expected}, daxil olan ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue.values[0])}`; + return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Çox böyük: gözlənilən ${issue.origin ?? "dəyər"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "element"}`; + return `Çox böyük: gözlənilən ${issue.origin ?? "dəyər"} ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Çox kiçik: gözlənilən ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Çox kiçik: gözlənilən ${issue.origin} ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Yanlış mətn: "${_issue.prefix}" ilə başlamalıdır`; + if (_issue.format === "ends_with") return `Yanlış mətn: "${_issue.suffix}" ilə bitməlidir`; + if (_issue.format === "includes") return `Yanlış mətn: "${_issue.includes}" daxil olmalıdır`; + if (_issue.format === "regex") return `Yanlış mətn: ${_issue.pattern} şablonuna uyğun olmalıdır`; + return `Yanlış ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Yanlış ədəd: ${issue.divisor} ilə bölünə bilən olmalıdır`; + case "unrecognized_keys": return `Tanınmayan açar${issue.keys.length > 1 ? "lar" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `${issue.origin} daxilində yanlış açar`; + case "invalid_union": return "Yanlış dəyər"; + case "invalid_element": return `${issue.origin} daxilində yanlış dəyər`; + default: return `Yanlış dəyər`; + } + }; +}; +function az_default() { + return { localeError: error$42() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/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; +} +const error$41 = () => { + const Sizable = { + string: { + unit: { + one: "сімвал", + few: "сімвалы", + many: "сімвалаў" + }, + verb: "мець" + }, + array: { + unit: { + one: "элемент", + few: "элементы", + many: "элементаў" + }, + verb: "мець" + }, + set: { + unit: { + one: "элемент", + few: "элементы", + many: "элементаў" + }, + verb: "мець" + }, + file: { + unit: { + one: "байт", + few: "байты", + many: "байтаў" + }, + verb: "мець" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "лік"; + case "object": + if (Array.isArray(data)) return "масіў"; + if (data === null) return "null"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; + }; + const Nouns = { + regex: "увод", + email: "email адрас", + url: "URL", + emoji: "эмодзі", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "ISO дата і час", + date: "ISO дата", + time: "ISO час", + duration: "ISO працягласць", + ipv4: "IPv4 адрас", + ipv6: "IPv6 адрас", + cidrv4: "IPv4 дыяпазон", + cidrv6: "IPv6 дыяпазон", + base64: "радок у фармаце base64", + base64url: "радок у фармаце base64url", + json_string: "JSON радок", + e164: "нумар E.164", + jwt: "JWT", + template_literal: "увод" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Няправільны ўвод: чакаўся ${issue.expected}, атрымана ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue.values[0])}`; + return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) { + const unit = getBelarusianPlural(Number(issue.maximum), sizing.unit.one, sizing.unit.few, sizing.unit.many); + return `Занадта вялікі: чакалася, што ${issue.origin ?? "значэнне"} павінна ${sizing.verb} ${adj}${issue.maximum.toString()} ${unit}`; + } + return `Занадта вялікі: чакалася, што ${issue.origin ?? "значэнне"} павінна быць ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) { + const unit = getBelarusianPlural(Number(issue.minimum), sizing.unit.one, sizing.unit.few, sizing.unit.many); + return `Занадта малы: чакалася, што ${issue.origin} павінна ${sizing.verb} ${adj}${issue.minimum.toString()} ${unit}`; + } + return `Занадта малы: чакалася, што ${issue.origin} павінна быць ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Няправільны радок: павінен пачынацца з "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Няправільны радок: павінен заканчвацца на "${_issue.suffix}"`; + if (_issue.format === "includes") return `Няправільны радок: павінен змяшчаць "${_issue.includes}"`; + if (_issue.format === "regex") return `Няправільны радок: павінен адпавядаць шаблону ${_issue.pattern}`; + return `Няправільны ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Няправільны лік: павінен быць кратным ${issue.divisor}`; + case "unrecognized_keys": return `Нераспазнаны ${issue.keys.length > 1 ? "ключы" : "ключ"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Няправільны ключ у ${issue.origin}`; + case "invalid_union": return "Няправільны ўвод"; + case "invalid_element": return `Няправільнае значэнне ў ${issue.origin}`; + default: return `Няправільны ўвод`; + } + }; +}; +function be_default() { + return { localeError: error$41() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ca.js +const error$40 = () => { + const Sizable = { + string: { + unit: "caràcters", + 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 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; + }; + const Nouns = { + regex: "entrada", + email: "adreça electrònica", + 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ça IPv4", + ipv6: "adreça IPv6", + cidrv4: "rang IPv4", + cidrv6: "rang IPv6", + base64: "cadena codificada en base64", + base64url: "cadena codificada en base64url", + json_string: "cadena JSON", + e164: "número E.164", + jwt: "JWT", + template_literal: "entrada" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Tipus invàlid: s'esperava ${issue.expected}, s'ha rebut ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Valor invàlid: s'esperava ${stringifyPrimitive(issue.values[0])}`; + return `Opció invàlida: s'esperava una de ${joinValues(issue.values, " o ")}`; + case "too_big": { + const adj = issue.inclusive ? "com a màxim" : "menys de"; + const sizing = getSizing(issue.origin); + if (sizing) return `Massa gran: s'esperava que ${issue.origin ?? "el valor"} contingués ${adj} ${issue.maximum.toString()} ${sizing.unit ?? "elements"}`; + return `Massa gran: s'esperava que ${issue.origin ?? "el valor"} fos ${adj} ${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? "com a mínim" : "més de"; + const sizing = getSizing(issue.origin); + if (sizing) return `Massa petit: s'esperava que ${issue.origin} contingués ${adj} ${issue.minimum.toString()} ${sizing.unit}`; + return `Massa petit: s'esperava que ${issue.origin} fos ${adj} ${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Format invàlid: ha de començar amb "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Format invàlid: ha d'acabar amb "${_issue.suffix}"`; + if (_issue.format === "includes") return `Format invàlid: ha d'incloure "${_issue.includes}"`; + if (_issue.format === "regex") return `Format invàlid: ha de coincidir amb el patró ${_issue.pattern}`; + return `Format invàlid per a ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Número invàlid: ha de ser múltiple de ${issue.divisor}`; + case "unrecognized_keys": return `Clau${issue.keys.length > 1 ? "s" : ""} no reconeguda${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Clau invàlida a ${issue.origin}`; + case "invalid_union": return "Entrada invàlida"; + case "invalid_element": return `Element invàlid a ${issue.origin}`; + default: return `Entrada invàlida`; + } + }; +}; +function ca_default() { + return { localeError: error$40() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/cs.js +const error$39 = () => { + const Sizable = { + string: { + unit: "znaků", + verb: "mít" + }, + file: { + unit: "bajtů", + verb: "mít" + }, + array: { + unit: "prvků", + verb: "mít" + }, + set: { + unit: "prvků", + verb: "mít" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "číslo"; + case "string": return "řetězec"; + 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ární výraz", + email: "e-mailová 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 čas ve formátu ISO", + date: "datum ve formátu ISO", + time: "čas ve formátu ISO", + duration: "doba trvání ISO", + ipv4: "IPv4 adresa", + ipv6: "IPv6 adresa", + cidrv4: "rozsah IPv4", + cidrv6: "rozsah IPv6", + base64: "řetězec zakódovaný ve formátu base64", + base64url: "řetězec zakódovaný ve formátu base64url", + json_string: "řetězec ve formátu JSON", + e164: "číslo E.164", + jwt: "JWT", + template_literal: "vstup" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Neplatný vstup: očekáváno ${issue.expected}, obdrženo ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue.values[0])}`; + return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Hodnota je příliš velká: ${issue.origin ?? "hodnota"} musí mít ${adj}${issue.maximum.toString()} ${sizing.unit ?? "prvků"}`; + return `Hodnota je příliš velká: ${issue.origin ?? "hodnota"} musí být ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Hodnota je příliš malá: ${issue.origin ?? "hodnota"} musí mít ${adj}${issue.minimum.toString()} ${sizing.unit ?? "prvků"}`; + return `Hodnota je příliš malá: ${issue.origin ?? "hodnota"} musí být ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Neplatný řetězec: musí začínat na "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Neplatný řetězec: musí končit na "${_issue.suffix}"`; + if (_issue.format === "includes") return `Neplatný řetězec: musí obsahovat "${_issue.includes}"`; + if (_issue.format === "regex") return `Neplatný řetězec: musí odpovídat vzoru ${_issue.pattern}`; + return `Neplatný formát ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Neplatné číslo: musí být násobkem ${issue.divisor}`; + case "unrecognized_keys": return `Neznámé klíče: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Neplatný klíč v ${issue.origin}`; + case "invalid_union": return "Neplatný vstup"; + case "invalid_element": return `Neplatná hodnota v ${issue.origin}`; + default: return `Neplatný vstup`; + } + }; +}; +function cs_default() { + return { localeError: error$39() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/da.js +const error$38 = () => { + const Sizable = { + string: { + unit: "tegn", + verb: "havde" + }, + file: { + unit: "bytes", + verb: "havde" + }, + array: { + unit: "elementer", + verb: "indeholdt" + }, + set: { + unit: "elementer", + verb: "indeholdt" + } + }; + const TypeNames = { + string: "streng", + number: "tal", + boolean: "boolean", + array: "liste", + object: "objekt", + set: "sæt", + file: "fil" + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + function getTypeName(type) { + return TypeNames[type] ?? type; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "tal"; + 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 "objekt"; + } + return t; + }; + const Nouns = { + regex: "input", + email: "e-mailadresse", + 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 klokkeslæt", + date: "ISO-dato", + time: "ISO-klokkeslæt", + duration: "ISO-varighed", + ipv4: "IPv4-område", + ipv6: "IPv6-område", + cidrv4: "IPv4-spektrum", + cidrv6: "IPv6-spektrum", + base64: "base64-kodet streng", + base64url: "base64url-kodet streng", + json_string: "JSON-streng", + e164: "E.164-nummer", + jwt: "JWT", + template_literal: "input" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Ugyldigt input: forventede ${getTypeName(issue.expected)}, fik ${getTypeName(parsedType(issue.input))}`; + case "invalid_value": + if (issue.values.length === 1) return `Ugyldig værdi: forventede ${stringifyPrimitive(issue.values[0])}`; + return `Ugyldigt valg: forventede en af følgende ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + const origin = getTypeName(issue.origin); + if (sizing) return `For stor: forventede ${origin ?? "value"} ${sizing.verb} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? "elementer"}`; + return `For stor: forventede ${origin ?? "value"} havde ${adj} ${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + const origin = getTypeName(issue.origin); + if (sizing) return `For lille: forventede ${origin} ${sizing.verb} ${adj} ${issue.minimum.toString()} ${sizing.unit}`; + return `For lille: forventede ${origin} havde ${adj} ${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Ugyldig streng: skal starte med "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Ugyldig streng: skal ende med "${_issue.suffix}"`; + if (_issue.format === "includes") return `Ugyldig streng: skal indeholde "${_issue.includes}"`; + if (_issue.format === "regex") return `Ugyldig streng: skal matche mønsteret ${_issue.pattern}`; + return `Ugyldig ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Ugyldigt tal: skal være deleligt med ${issue.divisor}`; + case "unrecognized_keys": return `${issue.keys.length > 1 ? "Ukendte nøgler" : "Ukendt nøgle"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Ugyldig nøgle i ${issue.origin}`; + case "invalid_union": return "Ugyldigt input: matcher ingen af de tilladte typer"; + case "invalid_element": return `Ugyldig værdi i ${issue.origin}`; + default: return `Ugyldigt input`; + } + }; +}; +function da_default() { + return { localeError: error$38() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/de.js +const error$37 = () => { + 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 parsedType = (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 (issue) => { + switch (issue.code) { + case "invalid_type": return `Ungültige Eingabe: erwartet ${issue.expected}, erhalten ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue.values[0])}`; + return `Ungültige Option: erwartet eine von ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Zu groß: erwartet, dass ${issue.origin ?? "Wert"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "Elemente"} hat`; + return `Zu groß: erwartet, dass ${issue.origin ?? "Wert"} ${adj}${issue.maximum.toString()} ist`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Zu klein: erwartet, dass ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} hat`; + return `Zu klein: erwartet, dass ${issue.origin} ${adj}${issue.minimum.toString()} ist`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Ungültiger String: muss mit "${_issue.prefix}" beginnen`; + if (_issue.format === "ends_with") return `Ungültiger String: muss mit "${_issue.suffix}" enden`; + if (_issue.format === "includes") return `Ungültiger String: muss "${_issue.includes}" enthalten`; + if (_issue.format === "regex") return `Ungültiger String: muss dem Muster ${_issue.pattern} entsprechen`; + return `Ungültig: ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Ungültige Zahl: muss ein Vielfaches von ${issue.divisor} sein`; + case "unrecognized_keys": return `${issue.keys.length > 1 ? "Unbekannte Schlüssel" : "Unbekannter Schlüssel"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Ungültiger Schlüssel in ${issue.origin}`; + case "invalid_union": return "Ungültige Eingabe"; + case "invalid_element": return `Ungültiger Wert in ${issue.origin}`; + default: return `Ungültige Eingabe`; + } + }; +}; +function de_default() { + return { localeError: error$37() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/en.js +const parsedType$5 = (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 error$36 = () => { + 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 (issue) => { + switch (issue.code) { + case "invalid_type": return `Invalid input: expected ${issue.expected}, received ${parsedType$5(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue.values[0])}`; + return `Invalid option: expected one of ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Too big: expected ${issue.origin ?? "value"} to have ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elements"}`; + return `Too big: expected ${issue.origin ?? "value"} to be ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Too small: expected ${issue.origin} to have ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Too small: expected ${issue.origin} to be ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + 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] ?? issue.format}`; + } + case "not_multiple_of": return `Invalid number: must be a multiple of ${issue.divisor}`; + case "unrecognized_keys": return `Unrecognized key${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Invalid key in ${issue.origin}`; + case "invalid_union": return "Invalid input"; + case "invalid_element": return `Invalid value in ${issue.origin}`; + default: return `Invalid input`; + } + }; +}; +function en_default() { + return { localeError: error$36() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/eo.js +const parsedType$4 = (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; +}; +const error$35 = () => { + 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ĝio", + 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ŭro", + 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 (issue) => { + switch (issue.code) { + case "invalid_type": return `Nevalida enigo: atendiĝis ${issue.expected}, riceviĝis ${parsedType$4(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue.values[0])}`; + return `Nevalida opcio: atendiĝis unu el ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Tro granda: atendiĝis ke ${issue.origin ?? "valoro"} havu ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementojn"}`; + return `Tro granda: atendiĝis ke ${issue.origin ?? "valoro"} havu ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Tro malgranda: atendiĝis ke ${issue.origin} havu ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Tro malgranda: atendiĝis ke ${issue.origin} estu ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Nevalida karaktraro: devas finiĝi 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] ?? issue.format}`; + } + case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue.divisor}`; + case "unrecognized_keys": return `Nekonata${issue.keys.length > 1 ? "j" : ""} ŝlosilo${issue.keys.length > 1 ? "j" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Nevalida ŝlosilo en ${issue.origin}`; + case "invalid_union": return "Nevalida enigo"; + case "invalid_element": return `Nevalida valoro en ${issue.origin}`; + default: return `Nevalida enigo`; + } + }; +}; +function eo_default() { + return { localeError: error$35() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/es.js +const error$34 = () => { + const Sizable = { + string: { + unit: "caracteres", + verb: "tener" + }, + file: { + unit: "bytes", + verb: "tener" + }, + array: { + unit: "elementos", + verb: "tener" + }, + set: { + unit: "elementos", + verb: "tener" + } + }; + const TypeNames = { + string: "texto", + number: "número", + boolean: "booleano", + array: "arreglo", + object: "objeto", + set: "conjunto", + file: "archivo", + date: "fecha", + bigint: "número grande", + symbol: "símbolo", + undefined: "indefinido", + null: "nulo", + function: "función", + map: "mapa", + record: "registro", + tuple: "tupla", + enum: "enumeración", + union: "unión", + literal: "literal", + promise: "promesa", + void: "vacío", + never: "nunca", + unknown: "desconocido", + any: "cualquiera" + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + function getTypeName(type) { + return TypeNames[type] ?? type; + } + const 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) return data.constructor.name; + return "object"; + } + return t; + }; + const Nouns = { + regex: "entrada", + email: "dirección de correo electrónico", + 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ón ISO", + ipv4: "dirección IPv4", + ipv6: "dirección IPv6", + cidrv4: "rango IPv4", + cidrv6: "rango IPv6", + base64: "cadena codificada en base64", + base64url: "URL codificada en base64", + json_string: "cadena JSON", + e164: "número E.164", + jwt: "JWT", + template_literal: "entrada" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Entrada inválida: se esperaba ${getTypeName(issue.expected)}, recibido ${getTypeName(parsedType(issue.input))}`; + case "invalid_value": + if (issue.values.length === 1) return `Entrada inválida: se esperaba ${stringifyPrimitive(issue.values[0])}`; + return `Opción inválida: se esperaba una de ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + const origin = getTypeName(issue.origin); + if (sizing) return `Demasiado grande: se esperaba que ${origin ?? "valor"} tuviera ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementos"}`; + return `Demasiado grande: se esperaba que ${origin ?? "valor"} fuera ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + const origin = getTypeName(issue.origin); + if (sizing) return `Demasiado pequeño: se esperaba que ${origin} tuviera ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Demasiado pequeño: se esperaba que ${origin} fuera ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Cadena inválida: debe comenzar con "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Cadena inválida: debe terminar en "${_issue.suffix}"`; + if (_issue.format === "includes") return `Cadena inválida: debe incluir "${_issue.includes}"`; + if (_issue.format === "regex") return `Cadena inválida: debe coincidir con el patrón ${_issue.pattern}`; + return `Inválido ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Número inválido: debe ser múltiplo de ${issue.divisor}`; + case "unrecognized_keys": return `Llave${issue.keys.length > 1 ? "s" : ""} desconocida${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Llave inválida en ${getTypeName(issue.origin)}`; + case "invalid_union": return "Entrada inválida"; + case "invalid_element": return `Valor inválido en ${getTypeName(issue.origin)}`; + default: return `Entrada inválida`; + } + }; +}; +function es_default() { + return { localeError: error$34() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/fa.js +const error$33 = () => { + const Sizable = { + string: { + unit: "کاراکتر", + verb: "داشته باشد" + }, + file: { + unit: "بایت", + verb: "داشته باشد" + }, + array: { + unit: "آیتم", + verb: "داشته باشد" + }, + set: { + unit: "آیتم", + verb: "داشته باشد" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "عدد"; + case "object": + if (Array.isArray(data)) return "آرایه"; + if (data === null) return "null"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; + }; + const Nouns = { + regex: "ورودی", + email: "آدرس ایمیل", + url: "URL", + emoji: "ایموجی", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "تاریخ و زمان ایزو", + date: "تاریخ ایزو", + time: "زمان ایزو", + duration: "مدت زمان ایزو", + ipv4: "IPv4 آدرس", + ipv6: "IPv6 آدرس", + cidrv4: "IPv4 دامنه", + cidrv6: "IPv6 دامنه", + base64: "base64-encoded رشته", + base64url: "base64url-encoded رشته", + json_string: "JSON رشته", + e164: "E.164 عدد", + jwt: "JWT", + template_literal: "ورودی" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `ورودی نامعتبر: می‌بایست ${issue.expected} می‌بود، ${parsedType(issue.input)} دریافت شد`; + case "invalid_value": + if (issue.values.length === 1) return `ورودی نامعتبر: می‌بایست ${stringifyPrimitive(issue.values[0])} می‌بود`; + return `گزینه نامعتبر: می‌بایست یکی از ${joinValues(issue.values, "|")} می‌بود`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `خیلی بزرگ: ${issue.origin ?? "مقدار"} باید ${adj}${issue.maximum.toString()} ${sizing.unit ?? "عنصر"} باشد`; + return `خیلی بزرگ: ${issue.origin ?? "مقدار"} باید ${adj}${issue.maximum.toString()} باشد`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `خیلی کوچک: ${issue.origin} باید ${adj}${issue.minimum.toString()} ${sizing.unit} باشد`; + return `خیلی کوچک: ${issue.origin} باید ${adj}${issue.minimum.toString()} باشد`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `رشته نامعتبر: باید با "${_issue.prefix}" شروع شود`; + if (_issue.format === "ends_with") return `رشته نامعتبر: باید با "${_issue.suffix}" تمام شود`; + if (_issue.format === "includes") return `رشته نامعتبر: باید شامل "${_issue.includes}" باشد`; + if (_issue.format === "regex") return `رشته نامعتبر: باید با الگوی ${_issue.pattern} مطابقت داشته باشد`; + return `${Nouns[_issue.format] ?? issue.format} نامعتبر`; + } + case "not_multiple_of": return `عدد نامعتبر: باید مضرب ${issue.divisor} باشد`; + case "unrecognized_keys": return `کلید${issue.keys.length > 1 ? "های" : ""} ناشناس: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `کلید ناشناس در ${issue.origin}`; + case "invalid_union": return `ورودی نامعتبر`; + case "invalid_element": return `مقدار نامعتبر در ${issue.origin}`; + default: return `ورودی نامعتبر`; + } + }; +}; +function fa_default() { + return { localeError: error$33() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/fi.js +const error$32 = () => { + const Sizable = { + string: { + unit: "merkkiä", + 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äivämäärän" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const 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; + }; + const Nouns = { + regex: "säännöllinen lauseke", + email: "sähköpostiosoite", + 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äivämäärä", + 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 (issue) => { + switch (issue.code) { + case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue.expected}, oli ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue.values[0])}`; + return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Liian suuri: ${sizing.subject} täytyy olla ${adj}${issue.maximum.toString()} ${sizing.unit}`.trim(); + return `Liian suuri: arvon täytyy olla ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Liian pieni: ${sizing.subject} täytyy olla ${adj}${issue.minimum.toString()} ${sizing.unit}`.trim(); + return `Liian pieni: arvon täytyy olla ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Virheellinen syöte: täytyy alkaa "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Virheellinen syöte: täytyy loppua "${_issue.suffix}"`; + if (_issue.format === "includes") return `Virheellinen syöte: täytyy sisältää "${_issue.includes}"`; + if (_issue.format === "regex") return `Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${_issue.pattern}`; + return `Virheellinen ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Virheellinen luku: täytyy olla luvun ${issue.divisor} monikerta`; + case "unrecognized_keys": return `${issue.keys.length > 1 ? "Tuntemattomat avaimet" : "Tuntematon avain"}: ${joinValues(issue.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öte`; + } + }; +}; +function fi_default() { + return { localeError: error$32() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/fr.js +const error$31 = () => { + const Sizable = { + string: { + unit: "caractères", + verb: "avoir" + }, + file: { + unit: "octets", + verb: "avoir" + }, + array: { + unit: "éléments", + verb: "avoir" + }, + set: { + unit: "éléments", + verb: "avoir" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (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ée", + 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ée ISO", + ipv4: "adresse IPv4", + ipv6: "adresse IPv6", + cidrv4: "plage IPv4", + cidrv6: "plage IPv6", + base64: "chaîne encodée en base64", + base64url: "chaîne encodée en base64url", + json_string: "chaîne JSON", + e164: "numéro E.164", + jwt: "JWT", + template_literal: "entrée" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Entrée invalide : ${issue.expected} attendu, ${parsedType(issue.input)} reçu`; + case "invalid_value": + if (issue.values.length === 1) return `Entrée invalide : ${stringifyPrimitive(issue.values[0])} attendu`; + return `Option invalide : une valeur parmi ${joinValues(issue.values, "|")} attendue`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Trop grand : ${issue.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "élément(s)"}`; + return `Trop grand : ${issue.origin ?? "valeur"} doit être ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Trop petit : ${issue.origin} doit ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Trop petit : ${issue.origin} doit être ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Chaîne invalide : doit commencer par "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Chaîne invalide : doit se terminer par "${_issue.suffix}"`; + if (_issue.format === "includes") return `Chaîne invalide : doit inclure "${_issue.includes}"`; + if (_issue.format === "regex") return `Chaîne invalide : doit correspondre au modèle ${_issue.pattern}`; + return `${Nouns[_issue.format] ?? issue.format} invalide`; + } + case "not_multiple_of": return `Nombre invalide : doit être un multiple de ${issue.divisor}`; + case "unrecognized_keys": return `Clé${issue.keys.length > 1 ? "s" : ""} non reconnue${issue.keys.length > 1 ? "s" : ""} : ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Clé invalide dans ${issue.origin}`; + case "invalid_union": return "Entrée invalide"; + case "invalid_element": return `Valeur invalide dans ${issue.origin}`; + default: return `Entrée invalide`; + } + }; +}; +function fr_default() { + return { localeError: error$31() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/fr-CA.js +const error$30 = () => { + const Sizable = { + string: { + unit: "caractères", + verb: "avoir" + }, + file: { + unit: "octets", + verb: "avoir" + }, + array: { + unit: "éléments", + verb: "avoir" + }, + set: { + unit: "éléments", + verb: "avoir" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const 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; + }; + const Nouns = { + regex: "entrée", + 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ée ISO", + ipv4: "adresse IPv4", + ipv6: "adresse IPv6", + cidrv4: "plage IPv4", + cidrv6: "plage IPv6", + base64: "chaîne encodée en base64", + base64url: "chaîne encodée en base64url", + json_string: "chaîne JSON", + e164: "numéro E.164", + jwt: "JWT", + template_literal: "entrée" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Entrée invalide : attendu ${issue.expected}, reçu ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Entrée invalide : attendu ${stringifyPrimitive(issue.values[0])}`; + return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "≤" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Trop grand : attendu que ${issue.origin ?? "la valeur"} ait ${adj}${issue.maximum.toString()} ${sizing.unit}`; + return `Trop grand : attendu que ${issue.origin ?? "la valeur"} soit ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? "≥" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Trop petit : attendu que ${issue.origin} ait ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Trop petit : attendu que ${issue.origin} soit ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Chaîne invalide : doit commencer par "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Chaîne invalide : doit se terminer par "${_issue.suffix}"`; + if (_issue.format === "includes") return `Chaîne invalide : doit inclure "${_issue.includes}"`; + if (_issue.format === "regex") return `Chaîne invalide : doit correspondre au motif ${_issue.pattern}`; + return `${Nouns[_issue.format] ?? issue.format} invalide`; + } + case "not_multiple_of": return `Nombre invalide : doit être un multiple de ${issue.divisor}`; + case "unrecognized_keys": return `Clé${issue.keys.length > 1 ? "s" : ""} non reconnue${issue.keys.length > 1 ? "s" : ""} : ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Clé invalide dans ${issue.origin}`; + case "invalid_union": return "Entrée invalide"; + case "invalid_element": return `Valeur invalide dans ${issue.origin}`; + default: return `Entrée invalide`; + } + }; +}; +function fr_CA_default() { + return { localeError: error$30() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/he.js +const error$29 = () => { + const Sizable = { + string: { + unit: "אותיות", + verb: "לכלול" + }, + file: { + unit: "בייטים", + verb: "לכלול" + }, + array: { + unit: "פריטים", + verb: "לכלול" + }, + set: { + unit: "פריטים", + verb: "לכלול" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const 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; + }; + const Nouns = { + regex: "קלט", + email: "כתובת אימייל", + url: "כתובת רשת", + emoji: "אימוג'י", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "תאריך וזמן ISO", + date: "תאריך ISO", + time: "זמן ISO", + duration: "משך זמן ISO", + ipv4: "כתובת IPv4", + ipv6: "כתובת IPv6", + cidrv4: "טווח IPv4", + cidrv6: "טווח IPv6", + base64: "מחרוזת בבסיס 64", + base64url: "מחרוזת בבסיס 64 לכתובות רשת", + json_string: "מחרוזת JSON", + e164: "מספר E.164", + jwt: "JWT", + template_literal: "קלט" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `קלט לא תקין: צריך ${issue.expected}, התקבל ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `קלט לא תקין: צריך ${stringifyPrimitive(issue.values[0])}`; + return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `גדול מדי: ${issue.origin ?? "value"} צריך להיות ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elements"}`; + return `גדול מדי: ${issue.origin ?? "value"} צריך להיות ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `קטן מדי: ${issue.origin} צריך להיות ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `קטן מדי: ${issue.origin} צריך להיות ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `מחרוזת לא תקינה: חייבת להתחיל ב"${_issue.prefix}"`; + if (_issue.format === "ends_with") return `מחרוזת לא תקינה: חייבת להסתיים ב "${_issue.suffix}"`; + if (_issue.format === "includes") return `מחרוזת לא תקינה: חייבת לכלול "${_issue.includes}"`; + if (_issue.format === "regex") return `מחרוזת לא תקינה: חייבת להתאים לתבנית ${_issue.pattern}`; + return `${Nouns[_issue.format] ?? issue.format} לא תקין`; + } + case "not_multiple_of": return `מספר לא תקין: חייב להיות מכפלה של ${issue.divisor}`; + case "unrecognized_keys": return `מפתח${issue.keys.length > 1 ? "ות" : ""} לא מזוה${issue.keys.length > 1 ? "ים" : "ה"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `מפתח לא תקין ב${issue.origin}`; + case "invalid_union": return "קלט לא תקין"; + case "invalid_element": return `ערך לא תקין ב${issue.origin}`; + default: return `קלט לא תקין`; + } + }; +}; +function he_default() { + return { localeError: error$29() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/hu.js +const error$28 = () => { + 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 parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "szám"; + case "object": + if (Array.isArray(data)) return "tömb"; + 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ím", + 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őbélyeg", + date: "ISO dátum", + time: "ISO idő", + duration: "ISO időintervallum", + ipv4: "IPv4 cím", + ipv6: "IPv6 cím", + cidrv4: "IPv4 tartomány", + cidrv6: "IPv6 tartomány", + base64: "base64-kódolt string", + base64url: "base64url-kódolt string", + json_string: "JSON string", + e164: "E.164 szám", + jwt: "JWT", + template_literal: "bemenet" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue.expected}, a kapott érték ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue.values[0])}`; + return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Túl nagy: ${issue.origin ?? "érték"} mérete túl nagy ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elem"}`; + return `Túl nagy: a bemeneti érték ${issue.origin ?? "érték"} túl nagy: ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Túl kicsi: a bemeneti érték ${issue.origin} mérete túl kicsi ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Túl kicsi: a bemeneti érték ${issue.origin} túl kicsi ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Érvénytelen string: "${_issue.prefix}" értékkel kell kezdődnie`; + if (_issue.format === "ends_with") return `Érvénytelen string: "${_issue.suffix}" értékkel kell végződnie`; + if (_issue.format === "includes") return `Érvénytelen string: "${_issue.includes}" értéket kell tartalmaznia`; + if (_issue.format === "regex") return `Érvénytelen string: ${_issue.pattern} mintának kell megfelelnie`; + return `Érvénytelen ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Érvénytelen szám: ${issue.divisor} többszörösének kell lennie`; + case "unrecognized_keys": return `Ismeretlen kulcs${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Érvénytelen kulcs ${issue.origin}`; + case "invalid_union": return "Érvénytelen bemenet"; + case "invalid_element": return `Érvénytelen érték: ${issue.origin}`; + default: return `Érvénytelen bemenet`; + } + }; +}; +function hu_default() { + return { localeError: error$28() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/id.js +const error$27 = () => { + 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 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; + }; + 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 (issue) => { + switch (issue.code) { + case "invalid_type": return `Input tidak valid: diharapkan ${issue.expected}, diterima ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue.values[0])}`; + return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Terlalu besar: diharapkan ${issue.origin ?? "value"} memiliki ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elemen"}`; + return `Terlalu besar: diharapkan ${issue.origin ?? "value"} menjadi ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Terlalu kecil: diharapkan ${issue.origin} memiliki ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Terlalu kecil: diharapkan ${issue.origin} menjadi ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + 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] ?? issue.format} tidak valid`; + } + case "not_multiple_of": return `Angka tidak valid: harus kelipatan dari ${issue.divisor}`; + case "unrecognized_keys": return `Kunci tidak dikenali ${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Kunci tidak valid di ${issue.origin}`; + case "invalid_union": return "Input tidak valid"; + case "invalid_element": return `Nilai tidak valid di ${issue.origin}`; + default: return `Input tidak valid`; + } + }; +}; +function id_default() { + return { localeError: error$27() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/is.js +const parsedType$3 = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "númer"; + case "object": + if (Array.isArray(data)) return "fylki"; + if (data === null) return "null"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; +}; +const error$26 = () => { + const Sizable = { + string: { + unit: "stafi", + verb: "að hafa" + }, + file: { + unit: "bæti", + verb: "að hafa" + }, + array: { + unit: "hluti", + verb: "að hafa" + }, + set: { + unit: "hluti", + verb: "að hafa" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const Nouns = { + regex: "gildi", + email: "netfang", + url: "vefslóð", + emoji: "emoji", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "ISO dagsetning og tími", + date: "ISO dagsetning", + time: "ISO tími", + duration: "ISO tímalengd", + ipv4: "IPv4 address", + ipv6: "IPv6 address", + cidrv4: "IPv4 range", + cidrv6: "IPv6 range", + base64: "base64-encoded strengur", + base64url: "base64url-encoded strengur", + json_string: "JSON strengur", + e164: "E.164 tölugildi", + jwt: "JWT", + template_literal: "gildi" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Rangt gildi: Þú slóst inn ${parsedType$3(issue.input)} þar sem á að vera ${issue.expected}`; + case "invalid_value": + if (issue.values.length === 1) return `Rangt gildi: gert ráð fyrir ${stringifyPrimitive(issue.values[0])}`; + return `Ógilt val: má vera eitt af eftirfarandi ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Of stórt: gert er ráð fyrir að ${issue.origin ?? "gildi"} hafi ${adj}${issue.maximum.toString()} ${sizing.unit ?? "hluti"}`; + return `Of stórt: gert er ráð fyrir að ${issue.origin ?? "gildi"} sé ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Of lítið: gert er ráð fyrir að ${issue.origin} hafi ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Of lítið: gert er ráð fyrir að ${issue.origin} sé ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Ógildur strengur: verður að byrja á "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Ógildur strengur: verður að enda á "${_issue.suffix}"`; + if (_issue.format === "includes") return `Ógildur strengur: verður að innihalda "${_issue.includes}"`; + if (_issue.format === "regex") return `Ógildur strengur: verður að fylgja mynstri ${_issue.pattern}`; + return `Rangt ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Röng tala: verður að vera margfeldi af ${issue.divisor}`; + case "unrecognized_keys": return `Óþekkt ${issue.keys.length > 1 ? "ir lyklar" : "ur lykill"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Rangur lykill í ${issue.origin}`; + case "invalid_union": return "Rangt gildi"; + case "invalid_element": return `Rangt gildi í ${issue.origin}`; + default: return `Rangt gildi`; + } + }; +}; +function is_default() { + return { localeError: error$26() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/it.js +const error$25 = () => { + 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 parsedType = (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 (issue) => { + switch (issue.code) { + case "invalid_type": return `Input non valido: atteso ${issue.expected}, ricevuto ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue.values[0])}`; + return `Opzione non valida: atteso uno tra ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Troppo grande: ${issue.origin ?? "valore"} deve avere ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementi"}`; + return `Troppo grande: ${issue.origin ?? "valore"} deve essere ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Troppo piccolo: ${issue.origin} deve avere ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Troppo piccolo: ${issue.origin} deve essere ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + 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] ?? issue.format}`; + } + case "not_multiple_of": return `Numero non valido: deve essere un multiplo di ${issue.divisor}`; + case "unrecognized_keys": return `Chiav${issue.keys.length > 1 ? "i" : "e"} non riconosciut${issue.keys.length > 1 ? "e" : "a"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Chiave non valida in ${issue.origin}`; + case "invalid_union": return "Input non valido"; + case "invalid_element": return `Valore non valido in ${issue.origin}`; + default: return `Input non valido`; + } + }; +}; +function it_default() { + return { localeError: error$25() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ja.js +const error$24 = () => { + const Sizable = { + string: { + unit: "文字", + verb: "である" + }, + file: { + unit: "バイト", + verb: "である" + }, + array: { + unit: "要素", + verb: "である" + }, + set: { + unit: "要素", + verb: "である" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "数値"; + case "object": + if (Array.isArray(data)) return "配列"; + if (data === null) return "null"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; + }; + const Nouns = { + regex: "入力値", + email: "メールアドレス", + url: "URL", + emoji: "絵文字", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "ISO日時", + date: "ISO日付", + time: "ISO時刻", + duration: "ISO期間", + ipv4: "IPv4アドレス", + ipv6: "IPv6アドレス", + cidrv4: "IPv4範囲", + cidrv6: "IPv6範囲", + base64: "base64エンコード文字列", + base64url: "base64urlエンコード文字列", + json_string: "JSON文字列", + e164: "E.164番号", + jwt: "JWT", + template_literal: "入力値" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `無効な入力: ${issue.expected}が期待されましたが、${parsedType(issue.input)}が入力されました`; + case "invalid_value": + if (issue.values.length === 1) return `無効な入力: ${stringifyPrimitive(issue.values[0])}が期待されました`; + return `無効な選択: ${joinValues(issue.values, "、")}のいずれかである必要があります`; + case "too_big": { + const adj = issue.inclusive ? "以下である" : "より小さい"; + const sizing = getSizing(issue.origin); + if (sizing) return `大きすぎる値: ${issue.origin ?? "値"}は${issue.maximum.toString()}${sizing.unit ?? "要素"}${adj}必要があります`; + return `大きすぎる値: ${issue.origin ?? "値"}は${issue.maximum.toString()}${adj}必要があります`; + } + case "too_small": { + const adj = issue.inclusive ? "以上である" : "より大きい"; + const sizing = getSizing(issue.origin); + if (sizing) return `小さすぎる値: ${issue.origin}は${issue.minimum.toString()}${sizing.unit}${adj}必要があります`; + return `小さすぎる値: ${issue.origin}は${issue.minimum.toString()}${adj}必要があります`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `無効な文字列: "${_issue.prefix}"で始まる必要があります`; + if (_issue.format === "ends_with") return `無効な文字列: "${_issue.suffix}"で終わる必要があります`; + if (_issue.format === "includes") return `無効な文字列: "${_issue.includes}"を含む必要があります`; + if (_issue.format === "regex") return `無効な文字列: パターン${_issue.pattern}に一致する必要があります`; + return `無効な${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `無効な数値: ${issue.divisor}の倍数である必要があります`; + case "unrecognized_keys": return `認識されていないキー${issue.keys.length > 1 ? "群" : ""}: ${joinValues(issue.keys, "、")}`; + case "invalid_key": return `${issue.origin}内の無効なキー`; + case "invalid_union": return "無効な入力"; + case "invalid_element": return `${issue.origin}内の無効な値`; + default: return `無効な入力`; + } + }; +}; +function ja_default() { + return { localeError: error$24() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ka.js +const parsedType$2 = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "რიცხვი"; + case "object": + if (Array.isArray(data)) return "მასივი"; + if (data === null) return "null"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return { + string: "სტრინგი", + boolean: "ბულეანი", + undefined: "undefined", + bigint: "bigint", + symbol: "symbol", + function: "ფუნქცია" + }[t] ?? t; +}; +const error$23 = () => { + const Sizable = { + string: { + unit: "სიმბოლო", + verb: "უნდა შეიცავდეს" + }, + file: { + unit: "ბაიტი", + verb: "უნდა შეიცავდეს" + }, + array: { + unit: "ელემენტი", + verb: "უნდა შეიცავდეს" + }, + set: { + unit: "ელემენტი", + verb: "უნდა შეიცავდეს" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const Nouns = { + regex: "შეყვანა", + email: "ელ-ფოსტის მისამართი", + url: "URL", + emoji: "ემოჯი", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "თარიღი-დრო", + date: "თარიღი", + time: "დრო", + duration: "ხანგრძლივობა", + ipv4: "IPv4 მისამართი", + ipv6: "IPv6 მისამართი", + cidrv4: "IPv4 დიაპაზონი", + cidrv6: "IPv6 დიაპაზონი", + base64: "base64-კოდირებული სტრინგი", + base64url: "base64url-კოდირებული სტრინგი", + json_string: "JSON სტრინგი", + e164: "E.164 ნომერი", + jwt: "JWT", + template_literal: "შეყვანა" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `არასწორი შეყვანა: მოსალოდნელი ${issue.expected}, მიღებული ${parsedType$2(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `არასწორი შეყვანა: მოსალოდნელი ${stringifyPrimitive(issue.values[0])}`; + return `არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${joinValues(issue.values, "|")}-დან`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `ზედმეტად დიდი: მოსალოდნელი ${issue.origin ?? "მნიშვნელობა"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit}`; + return `ზედმეტად დიდი: მოსალოდნელი ${issue.origin ?? "მნიშვნელობა"} იყოს ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `ზედმეტად პატარა: მოსალოდნელი ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `ზედმეტად პატარა: მოსალოდნელი ${issue.origin} იყოს ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `არასწორი სტრინგი: უნდა იწყებოდეს "${_issue.prefix}"-ით`; + if (_issue.format === "ends_with") return `არასწორი სტრინგი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`; + if (_issue.format === "includes") return `არასწორი სტრინგი: უნდა შეიცავდეს "${_issue.includes}"-ს`; + if (_issue.format === "regex") return `არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`; + return `არასწორი ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `არასწორი რიცხვი: უნდა იყოს ${issue.divisor}-ის ჯერადი`; + case "unrecognized_keys": return `უცნობი გასაღებ${issue.keys.length > 1 ? "ები" : "ი"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `არასწორი გასაღები ${issue.origin}-ში`; + case "invalid_union": return "არასწორი შეყვანა"; + case "invalid_element": return `არასწორი მნიშვნელობა ${issue.origin}-ში`; + default: return `არასწორი შეყვანა`; + } + }; +}; +function ka_default() { + return { localeError: error$23() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/km.js +const error$22 = () => { + const Sizable = { + string: { + unit: "តួអក្សរ", + verb: "គួរមាន" + }, + file: { + unit: "បៃ", + verb: "គួរមាន" + }, + array: { + unit: "ធាតុ", + verb: "គួរមាន" + }, + set: { + unit: "ធាតុ", + verb: "គួរមាន" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "មិនមែនជាលេខ (NaN)" : "លេខ"; + 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: "ទិន្នន័យបញ្ចូល", + email: "អាសយដ្ឋានអ៊ីមែល", + url: "URL", + emoji: "សញ្ញាអារម្មណ៍", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "កាលបរិច្ឆេទ និងម៉ោង ISO", + date: "កាលបរិច្ឆេទ ISO", + time: "ម៉ោង ISO", + duration: "រយៈពេល ISO", + ipv4: "អាសយដ្ឋាន IPv4", + ipv6: "អាសយដ្ឋាន IPv6", + cidrv4: "ដែនអាសយដ្ឋាន IPv4", + cidrv6: "ដែនអាសយដ្ឋាន IPv6", + base64: "ខ្សែអក្សរអ៊ិកូដ base64", + base64url: "ខ្សែអក្សរអ៊ិកូដ base64url", + json_string: "ខ្សែអក្សរ JSON", + e164: "លេខ E.164", + jwt: "JWT", + template_literal: "ទិន្នន័យបញ្ចូល" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue.expected} ប៉ុន្តែទទួលបាន ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue.values[0])}`; + return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `ធំពេក៖ ត្រូវការ ${issue.origin ?? "តម្លៃ"} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? "ធាតុ"}`; + return `ធំពេក៖ ត្រូវការ ${issue.origin ?? "តម្លៃ"} ${adj} ${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `តូចពេក៖ ត្រូវការ ${issue.origin} ${adj} ${issue.minimum.toString()} ${sizing.unit}`; + return `តូចពេក៖ ត្រូវការ ${issue.origin} ${adj} ${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${_issue.suffix}"`; + if (_issue.format === "includes") return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${_issue.includes}"`; + if (_issue.format === "regex") return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${_issue.pattern}`; + return `មិនត្រឹមត្រូវ៖ ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${issue.divisor}`; + case "unrecognized_keys": return `រកឃើញសោមិនស្គាល់៖ ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `សោមិនត្រឹមត្រូវនៅក្នុង ${issue.origin}`; + case "invalid_union": return `ទិន្នន័យមិនត្រឹមត្រូវ`; + case "invalid_element": return `ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${issue.origin}`; + default: return `ទិន្នន័យមិនត្រឹមត្រូវ`; + } + }; +}; +function km_default() { + return { localeError: error$22() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/kh.js +/** @deprecated Use `km` instead. */ +function kh_default() { + return km_default(); +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ko.js +const error$21 = () => { + const Sizable = { + string: { + unit: "문자", + verb: "to have" + }, + file: { + unit: "바이트", + verb: "to have" + }, + array: { + unit: "개", + verb: "to have" + }, + set: { + unit: "개", + verb: "to have" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const 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; + }; + const Nouns = { + regex: "입력", + email: "이메일 주소", + url: "URL", + emoji: "이모지", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "ISO 날짜시간", + date: "ISO 날짜", + time: "ISO 시간", + duration: "ISO 기간", + ipv4: "IPv4 주소", + ipv6: "IPv6 주소", + cidrv4: "IPv4 범위", + cidrv6: "IPv6 범위", + base64: "base64 인코딩 문자열", + base64url: "base64url 인코딩 문자열", + json_string: "JSON 문자열", + e164: "E.164 번호", + jwt: "JWT", + template_literal: "입력" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue.expected}, 받은 타입은 ${parsedType(issue.input)}입니다`; + case "invalid_value": + if (issue.values.length === 1) return `잘못된 입력: 값은 ${stringifyPrimitive(issue.values[0])} 이어야 합니다`; + return `잘못된 옵션: ${joinValues(issue.values, "또는 ")} 중 하나여야 합니다`; + case "too_big": { + const adj = issue.inclusive ? "이하" : "미만"; + const suffix = adj === "미만" ? "이어야 합니다" : "여야 합니다"; + const sizing = getSizing(issue.origin); + const unit = sizing?.unit ?? "요소"; + if (sizing) return `${issue.origin ?? "값"}이 너무 큽니다: ${issue.maximum.toString()}${unit} ${adj}${suffix}`; + return `${issue.origin ?? "값"}이 너무 큽니다: ${issue.maximum.toString()} ${adj}${suffix}`; + } + case "too_small": { + const adj = issue.inclusive ? "이상" : "초과"; + const suffix = adj === "이상" ? "이어야 합니다" : "여야 합니다"; + const sizing = getSizing(issue.origin); + const unit = sizing?.unit ?? "요소"; + if (sizing) return `${issue.origin ?? "값"}이 너무 작습니다: ${issue.minimum.toString()}${unit} ${adj}${suffix}`; + return `${issue.origin ?? "값"}이 너무 작습니다: ${issue.minimum.toString()} ${adj}${suffix}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `잘못된 문자열: "${_issue.prefix}"(으)로 시작해야 합니다`; + if (_issue.format === "ends_with") return `잘못된 문자열: "${_issue.suffix}"(으)로 끝나야 합니다`; + if (_issue.format === "includes") return `잘못된 문자열: "${_issue.includes}"을(를) 포함해야 합니다`; + if (_issue.format === "regex") return `잘못된 문자열: 정규식 ${_issue.pattern} 패턴과 일치해야 합니다`; + return `잘못된 ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `잘못된 숫자: ${issue.divisor}의 배수여야 합니다`; + case "unrecognized_keys": return `인식할 수 없는 키: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `잘못된 키: ${issue.origin}`; + case "invalid_union": return `잘못된 입력`; + case "invalid_element": return `잘못된 값: ${issue.origin}`; + default: return `잘못된 입력`; + } + }; +}; +function ko_default() { + return { localeError: error$21() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/lt.js +const parsedType$1 = (data) => { + return parsedTypeFromType(typeof data, data); +}; +const parsedTypeFromType = (t, data = void 0) => { + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "skaičius"; + case "bigint": return "sveikasis skaičius"; + case "string": return "eilutė"; + case "boolean": return "loginė reikšmė"; + case "undefined": + case "void": return "neapibrėžta reikšmė"; + case "function": return "funkcija"; + case "symbol": return "simbolis"; + case "object": + if (data === void 0) return "nežinomas objektas"; + if (data === null) return "nulinė reikšmė"; + if (Array.isArray(data)) return "masyvas"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + return "objektas"; + case "null": return "nulinė reikšmė"; + } + return t; +}; +const capitalizeFirstCharacter = (text) => { + return text.charAt(0).toUpperCase() + text.slice(1); +}; +function getUnitTypeFromNumber(number) { + const abs = Math.abs(number); + const last = abs % 10; + const last2 = abs % 100; + if (last2 >= 11 && last2 <= 19 || last === 0) return "many"; + if (last === 1) return "one"; + return "few"; +} +const error$20 = () => { + const Sizable = { + string: { + unit: { + one: "simbolis", + few: "simboliai", + many: "simbolių" + }, + verb: { + smaller: { + inclusive: "turi būti ne ilgesnė kaip", + notInclusive: "turi būti trumpesnė kaip" + }, + bigger: { + inclusive: "turi būti ne trumpesnė kaip", + notInclusive: "turi būti ilgesnė kaip" + } + } + }, + file: { + unit: { + one: "baitas", + few: "baitai", + many: "baitų" + }, + verb: { + smaller: { + inclusive: "turi būti ne didesnis kaip", + notInclusive: "turi būti mažesnis kaip" + }, + bigger: { + inclusive: "turi būti ne mažesnis kaip", + notInclusive: "turi būti didesnis kaip" + } + } + }, + array: { + unit: { + one: "elementą", + few: "elementus", + many: "elementų" + }, + verb: { + smaller: { + inclusive: "turi turėti ne daugiau kaip", + notInclusive: "turi turėti mažiau kaip" + }, + bigger: { + inclusive: "turi turėti ne mažiau kaip", + notInclusive: "turi turėti daugiau kaip" + } + } + }, + set: { + unit: { + one: "elementą", + few: "elementus", + many: "elementų" + }, + verb: { + smaller: { + inclusive: "turi turėti ne daugiau kaip", + notInclusive: "turi turėti mažiau kaip" + }, + bigger: { + inclusive: "turi turėti ne mažiau kaip", + notInclusive: "turi turėti daugiau kaip" + } + } + } + }; + function getSizing(origin, unitType, inclusive, targetShouldBe) { + const result = Sizable[origin] ?? null; + if (result === null) return result; + return { + unit: result.unit[unitType], + verb: result.verb[targetShouldBe][inclusive ? "inclusive" : "notInclusive"] + }; + } + const Nouns = { + regex: "įvestis", + email: "el. pašto adresas", + url: "URL", + emoji: "jaustukas", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "ISO data ir laikas", + date: "ISO data", + time: "ISO laikas", + duration: "ISO trukmė", + ipv4: "IPv4 adresas", + ipv6: "IPv6 adresas", + cidrv4: "IPv4 tinklo prefiksas (CIDR)", + cidrv6: "IPv6 tinklo prefiksas (CIDR)", + base64: "base64 užkoduota eilutė", + base64url: "base64url užkoduota eilutė", + json_string: "JSON eilutė", + e164: "E.164 numeris", + jwt: "JWT", + template_literal: "įvestis" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Gautas tipas ${parsedType$1(issue.input)}, o tikėtasi - ${parsedTypeFromType(issue.expected)}`; + case "invalid_value": + if (issue.values.length === 1) return `Privalo būti ${stringifyPrimitive(issue.values[0])}`; + return `Privalo būti vienas iš ${joinValues(issue.values, "|")} pasirinkimų`; + case "too_big": { + const origin = parsedTypeFromType(issue.origin); + const sizing = getSizing(issue.origin, getUnitTypeFromNumber(Number(issue.maximum)), issue.inclusive ?? false, "smaller"); + if (sizing?.verb) return `${capitalizeFirstCharacter(origin ?? issue.origin ?? "reikšmė")} ${sizing.verb} ${issue.maximum.toString()} ${sizing.unit ?? "elementų"}`; + const adj = issue.inclusive ? "ne didesnis kaip" : "mažesnis kaip"; + return `${capitalizeFirstCharacter(origin ?? issue.origin ?? "reikšmė")} turi būti ${adj} ${issue.maximum.toString()} ${sizing?.unit}`; + } + case "too_small": { + const origin = parsedTypeFromType(issue.origin); + const sizing = getSizing(issue.origin, getUnitTypeFromNumber(Number(issue.minimum)), issue.inclusive ?? false, "bigger"); + if (sizing?.verb) return `${capitalizeFirstCharacter(origin ?? issue.origin ?? "reikšmė")} ${sizing.verb} ${issue.minimum.toString()} ${sizing.unit ?? "elementų"}`; + const adj = issue.inclusive ? "ne mažesnis kaip" : "didesnis kaip"; + return `${capitalizeFirstCharacter(origin ?? issue.origin ?? "reikšmė")} turi būti ${adj} ${issue.minimum.toString()} ${sizing?.unit}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Eilutė privalo prasidėti "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Eilutė privalo pasibaigti "${_issue.suffix}"`; + if (_issue.format === "includes") return `Eilutė privalo įtraukti "${_issue.includes}"`; + if (_issue.format === "regex") return `Eilutė privalo atitikti ${_issue.pattern}`; + return `Neteisingas ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Skaičius privalo būti ${issue.divisor} kartotinis.`; + case "unrecognized_keys": return `Neatpažint${issue.keys.length > 1 ? "i" : "as"} rakt${issue.keys.length > 1 ? "ai" : "as"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return "Rastas klaidingas raktas"; + case "invalid_union": return "Klaidinga įvestis"; + case "invalid_element": { + const origin = parsedTypeFromType(issue.origin); + return `${capitalizeFirstCharacter(origin ?? issue.origin ?? "reikšmė")} turi klaidingą įvestį`; + } + default: return "Klaidinga įvestis"; + } + }; +}; +function lt_default() { + return { localeError: error$20() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/mk.js +const error$19 = () => { + const Sizable = { + string: { + unit: "знаци", + verb: "да имаат" + }, + file: { + unit: "бајти", + verb: "да имаат" + }, + array: { + unit: "ставки", + verb: "да имаат" + }, + set: { + unit: "ставки", + verb: "да имаат" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "број"; + case "object": + if (Array.isArray(data)) return "низа"; + if (data === null) return "null"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; + }; + const Nouns = { + regex: "внес", + email: "адреса на е-пошта", + url: "URL", + emoji: "емоџи", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "ISO датум и време", + date: "ISO датум", + time: "ISO време", + duration: "ISO времетраење", + ipv4: "IPv4 адреса", + ipv6: "IPv6 адреса", + cidrv4: "IPv4 опсег", + cidrv6: "IPv6 опсег", + base64: "base64-енкодирана низа", + base64url: "base64url-енкодирана низа", + json_string: "JSON низа", + e164: "E.164 број", + jwt: "JWT", + template_literal: "внес" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Грешен внес: се очекува ${issue.expected}, примено ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue.values[0])}`; + return `Грешана опција: се очекува една ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Премногу голем: се очекува ${issue.origin ?? "вредноста"} да има ${adj}${issue.maximum.toString()} ${sizing.unit ?? "елементи"}`; + return `Премногу голем: се очекува ${issue.origin ?? "вредноста"} да биде ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Премногу мал: се очекува ${issue.origin} да има ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Премногу мал: се очекува ${issue.origin} да биде ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Неважечка низа: мора да започнува со "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Неважечка низа: мора да завршува со "${_issue.suffix}"`; + if (_issue.format === "includes") return `Неважечка низа: мора да вклучува "${_issue.includes}"`; + if (_issue.format === "regex") return `Неважечка низа: мора да одгоара на патернот ${_issue.pattern}`; + return `Invalid ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Грешен број: мора да биде делив со ${issue.divisor}`; + case "unrecognized_keys": return `${issue.keys.length > 1 ? "Непрепознаени клучеви" : "Непрепознаен клуч"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Грешен клуч во ${issue.origin}`; + case "invalid_union": return "Грешен внес"; + case "invalid_element": return `Грешна вредност во ${issue.origin}`; + default: return `Грешен внес`; + } + }; +}; +function mk_default() { + return { localeError: error$19() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ms.js +const error$18 = () => { + 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 parsedType = (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 (issue) => { + switch (issue.code) { + case "invalid_type": return `Input tidak sah: dijangka ${issue.expected}, diterima ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue.values[0])}`; + return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Terlalu besar: dijangka ${issue.origin ?? "nilai"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elemen"}`; + return `Terlalu besar: dijangka ${issue.origin ?? "nilai"} adalah ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Terlalu kecil: dijangka ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Terlalu kecil: dijangka ${issue.origin} adalah ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + 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] ?? issue.format} tidak sah`; + } + case "not_multiple_of": return `Nombor tidak sah: perlu gandaan ${issue.divisor}`; + case "unrecognized_keys": return `Kunci tidak dikenali: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Kunci tidak sah dalam ${issue.origin}`; + case "invalid_union": return "Input tidak sah"; + case "invalid_element": return `Nilai tidak sah dalam ${issue.origin}`; + default: return `Input tidak sah`; + } + }; +}; +function ms_default() { + return { localeError: error$18() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/nl.js +const error$17 = () => { + const Sizable = { + string: { unit: "tekens" }, + file: { unit: "bytes" }, + array: { unit: "elementen" }, + set: { unit: "elementen" } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (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 (issue) => { + switch (issue.code) { + case "invalid_type": return `Ongeldige invoer: verwacht ${issue.expected}, ontving ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue.values[0])}`; + return `Ongeldige optie: verwacht één van ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Te lang: verwacht dat ${issue.origin ?? "waarde"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementen"} bevat`; + return `Te lang: verwacht dat ${issue.origin ?? "waarde"} ${adj}${issue.maximum.toString()} is`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Te kort: verwacht dat ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} bevat`; + return `Te kort: verwacht dat ${issue.origin} ${adj}${issue.minimum.toString()} is`; + } + case "invalid_format": { + const _issue = issue; + 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] ?? issue.format}`; + } + case "not_multiple_of": return `Ongeldig getal: moet een veelvoud van ${issue.divisor} zijn`; + case "unrecognized_keys": return `Onbekende key${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Ongeldige key in ${issue.origin}`; + case "invalid_union": return "Ongeldige invoer"; + case "invalid_element": return `Ongeldige waarde in ${issue.origin}`; + default: return `Ongeldige invoer`; + } + }; +}; +function nl_default() { + return { localeError: error$17() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/no.js +const error$16 = () => { + const Sizable = { + string: { + unit: "tegn", + verb: "å ha" + }, + file: { + unit: "bytes", + verb: "å ha" + }, + array: { + unit: "elementer", + verb: "å inneholde" + }, + set: { + unit: "elementer", + verb: "å inneholde" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (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åde", + ipv6: "IPv6-område", + 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 (issue) => { + switch (issue.code) { + case "invalid_type": return `Ugyldig input: forventet ${issue.expected}, fikk ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue.values[0])}`; + return `Ugyldig valg: forventet en av ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `For stor(t): forventet ${issue.origin ?? "value"} til å ha ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementer"}`; + return `For stor(t): forventet ${issue.origin ?? "value"} til å ha ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `For lite(n): forventet ${issue.origin} til å ha ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `For lite(n): forventet ${issue.origin} til å ha ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Ugyldig streng: må starte med "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Ugyldig streng: må ende med "${_issue.suffix}"`; + if (_issue.format === "includes") return `Ugyldig streng: må inneholde "${_issue.includes}"`; + if (_issue.format === "regex") return `Ugyldig streng: må matche mønsteret ${_issue.pattern}`; + return `Ugyldig ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Ugyldig tall: må være et multiplum av ${issue.divisor}`; + case "unrecognized_keys": return `${issue.keys.length > 1 ? "Ukjente nøkler" : "Ukjent nøkkel"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Ugyldig nøkkel i ${issue.origin}`; + case "invalid_union": return "Ugyldig input"; + case "invalid_element": return `Ugyldig verdi i ${issue.origin}`; + default: return `Ugyldig input`; + } + }; +}; +function no_default() { + return { localeError: error$16() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ota.js +const error$15 = () => { + const Sizable = { + string: { + unit: "harf", + verb: "olmalıdır" + }, + file: { + unit: "bayt", + verb: "olmalıdır" + }, + array: { + unit: "unsur", + verb: "olmalıdır" + }, + set: { + unit: "unsur", + verb: "olmalıdır" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (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âh", + 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âmı", + date: "ISO tarihi", + time: "ISO zamanı", + duration: "ISO müddeti", + ipv4: "IPv4 nişânı", + ipv6: "IPv6 nişânı", + cidrv4: "IPv4 menzili", + cidrv6: "IPv6 menzili", + base64: "base64-şifreli metin", + base64url: "base64url-şifreli metin", + json_string: "JSON metin", + e164: "E.164 sayısı", + jwt: "JWT", + template_literal: "giren" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Fâsit giren: umulan ${issue.expected}, alınan ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Fâsit giren: umulan ${stringifyPrimitive(issue.values[0])}`; + return `Fâsit tercih: mûteberler ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Fazla büyük: ${issue.origin ?? "value"}, ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elements"} sahip olmalıydı.`; + return `Fazla büyük: ${issue.origin ?? "value"}, ${adj}${issue.maximum.toString()} olmalıydı.`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Fazla küçük: ${issue.origin}, ${adj}${issue.minimum.toString()} ${sizing.unit} sahip olmalıydı.`; + return `Fazla küçük: ${issue.origin}, ${adj}${issue.minimum.toString()} olmalıydı.`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Fâsit metin: "${_issue.prefix}" ile başlamalı.`; + if (_issue.format === "ends_with") return `Fâsit metin: "${_issue.suffix}" ile bitmeli.`; + if (_issue.format === "includes") return `Fâsit metin: "${_issue.includes}" ihtivâ etmeli.`; + if (_issue.format === "regex") return `Fâsit metin: ${_issue.pattern} nakşına uymalı.`; + return `Fâsit ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Fâsit sayı: ${issue.divisor} katı olmalıydı.`; + case "unrecognized_keys": return `Tanınmayan anahtar ${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `${issue.origin} için tanınmayan anahtar var.`; + case "invalid_union": return "Giren tanınamadı."; + case "invalid_element": return `${issue.origin} için tanınmayan kıymet var.`; + default: return `Kıymet tanınamadı.`; + } + }; +}; +function ota_default() { + return { localeError: error$15() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ps.js +const error$14 = () => { + const Sizable = { + string: { + unit: "توکي", + verb: "ولري" + }, + file: { + unit: "بایټس", + verb: "ولري" + }, + array: { + unit: "توکي", + verb: "ولري" + }, + set: { + unit: "توکي", + verb: "ولري" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "عدد"; + case "object": + if (Array.isArray(data)) return "ارې"; + if (data === null) return "null"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; + }; + const Nouns = { + regex: "ورودي", + email: "بریښنالیک", + url: "یو آر ال", + emoji: "ایموجي", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "نیټه او وخت", + date: "نېټه", + time: "وخت", + duration: "موده", + ipv4: "د IPv4 پته", + ipv6: "د IPv6 پته", + cidrv4: "د IPv4 ساحه", + cidrv6: "د IPv6 ساحه", + base64: "base64-encoded متن", + base64url: "base64url-encoded متن", + json_string: "JSON متن", + e164: "د E.164 شمېره", + jwt: "JWT", + template_literal: "ورودي" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `ناسم ورودي: باید ${issue.expected} وای, مګر ${parsedType(issue.input)} ترلاسه شو`; + case "invalid_value": + if (issue.values.length === 1) return `ناسم ورودي: باید ${stringifyPrimitive(issue.values[0])} وای`; + return `ناسم انتخاب: باید یو له ${joinValues(issue.values, "|")} څخه وای`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `ډیر لوی: ${issue.origin ?? "ارزښت"} باید ${adj}${issue.maximum.toString()} ${sizing.unit ?? "عنصرونه"} ولري`; + return `ډیر لوی: ${issue.origin ?? "ارزښت"} باید ${adj}${issue.maximum.toString()} وي`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `ډیر کوچنی: ${issue.origin} باید ${adj}${issue.minimum.toString()} ${sizing.unit} ولري`; + return `ډیر کوچنی: ${issue.origin} باید ${adj}${issue.minimum.toString()} وي`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `ناسم متن: باید د "${_issue.prefix}" سره پیل شي`; + if (_issue.format === "ends_with") return `ناسم متن: باید د "${_issue.suffix}" سره پای ته ورسيږي`; + if (_issue.format === "includes") return `ناسم متن: باید "${_issue.includes}" ولري`; + if (_issue.format === "regex") return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`; + return `${Nouns[_issue.format] ?? issue.format} ناسم دی`; + } + case "not_multiple_of": return `ناسم عدد: باید د ${issue.divisor} مضرب وي`; + case "unrecognized_keys": return `ناسم ${issue.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `ناسم کلیډ په ${issue.origin} کې`; + case "invalid_union": return `ناسمه ورودي`; + case "invalid_element": return `ناسم عنصر په ${issue.origin} کې`; + default: return `ناسمه ورودي`; + } + }; +}; +function ps_default() { + return { localeError: error$14() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/pl.js +const error$13 = () => { + const Sizable = { + string: { + unit: "znaków", + verb: "mieć" + }, + file: { + unit: "bajtów", + verb: "mieć" + }, + array: { + unit: "elementów", + verb: "mieć" + }, + set: { + unit: "elementów", + verb: "mieć" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (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żenie", + 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ąg znaków zakodowany w formacie base64", + base64url: "ciąg znaków zakodowany w formacie base64url", + json_string: "ciąg znaków w formacie JSON", + e164: "liczba E.164", + jwt: "JWT", + template_literal: "wejście" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue.expected}, otrzymano ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue.values[0])}`; + return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Za duża wartość: oczekiwano, że ${issue.origin ?? "wartość"} będzie mieć ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementów"}`; + return `Zbyt duż(y/a/e): oczekiwano, że ${issue.origin ?? "wartość"} będzie wynosić ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Za mała wartość: oczekiwano, że ${issue.origin ?? "wartość"} będzie mieć ${adj}${issue.minimum.toString()} ${sizing.unit ?? "elementów"}`; + return `Zbyt mał(y/a/e): oczekiwano, że ${issue.origin ?? "wartość"} będzie wynosić ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Nieprawidłowy ciąg znaków: musi zaczynać się od "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Nieprawidłowy ciąg znaków: musi kończyć się na "${_issue.suffix}"`; + if (_issue.format === "includes") return `Nieprawidłowy ciąg znaków: musi zawierać "${_issue.includes}"`; + if (_issue.format === "regex") return `Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${_issue.pattern}`; + return `Nieprawidłow(y/a/e) ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Nieprawidłowa liczba: musi być wielokrotnością ${issue.divisor}`; + case "unrecognized_keys": return `Nierozpoznane klucze${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Nieprawidłowy klucz w ${issue.origin}`; + case "invalid_union": return "Nieprawidłowe dane wejściowe"; + case "invalid_element": return `Nieprawidłowa wartość w ${issue.origin}`; + default: return `Nieprawidłowe dane wejściowe`; + } + }; +}; +function pl_default() { + return { localeError: error$13() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/pt.js +const error$12 = () => { + 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 parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "número"; + 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ão", + email: "endereço 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ção ISO", + ipv4: "endereço IPv4", + ipv6: "endereço 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úmero E.164", + jwt: "JWT", + template_literal: "entrada" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Tipo inválido: esperado ${issue.expected}, recebido ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Entrada inválida: esperado ${stringifyPrimitive(issue.values[0])}`; + return `Opção inválida: esperada uma das ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Muito grande: esperado que ${issue.origin ?? "valor"} tivesse ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementos"}`; + return `Muito grande: esperado que ${issue.origin ?? "valor"} fosse ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Muito pequeno: esperado que ${issue.origin} tivesse ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Muito pequeno: esperado que ${issue.origin} fosse ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Texto inválido: deve começar com "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Texto inválido: deve terminar com "${_issue.suffix}"`; + if (_issue.format === "includes") return `Texto inválido: deve incluir "${_issue.includes}"`; + if (_issue.format === "regex") return `Texto inválido: deve corresponder ao padrão ${_issue.pattern}`; + return `${Nouns[_issue.format] ?? issue.format} inválido`; + } + case "not_multiple_of": return `Número inválido: deve ser múltiplo de ${issue.divisor}`; + case "unrecognized_keys": return `Chave${issue.keys.length > 1 ? "s" : ""} desconhecida${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Chave inválida em ${issue.origin}`; + case "invalid_union": return "Entrada inválida"; + case "invalid_element": return `Valor inválido em ${issue.origin}`; + default: return `Campo inválido`; + } + }; +}; +function pt_default() { + return { localeError: error$12() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/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; +} +const error$11 = () => { + const Sizable = { + string: { + unit: { + one: "символ", + few: "символа", + many: "символов" + }, + verb: "иметь" + }, + file: { + unit: { + one: "байт", + few: "байта", + many: "байт" + }, + verb: "иметь" + }, + array: { + unit: { + one: "элемент", + few: "элемента", + many: "элементов" + }, + verb: "иметь" + }, + set: { + unit: { + one: "элемент", + few: "элемента", + many: "элементов" + }, + verb: "иметь" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "число"; + case "object": + if (Array.isArray(data)) return "массив"; + if (data === null) return "null"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; + }; + const Nouns = { + regex: "ввод", + email: "email адрес", + url: "URL", + emoji: "эмодзи", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "ISO дата и время", + date: "ISO дата", + time: "ISO время", + duration: "ISO длительность", + ipv4: "IPv4 адрес", + ipv6: "IPv6 адрес", + cidrv4: "IPv4 диапазон", + cidrv6: "IPv6 диапазон", + base64: "строка в формате base64", + base64url: "строка в формате base64url", + json_string: "JSON строка", + e164: "номер E.164", + jwt: "JWT", + template_literal: "ввод" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Неверный ввод: ожидалось ${issue.expected}, получено ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Неверный ввод: ожидалось ${stringifyPrimitive(issue.values[0])}`; + return `Неверный вариант: ожидалось одно из ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) { + const unit = getRussianPlural(Number(issue.maximum), sizing.unit.one, sizing.unit.few, sizing.unit.many); + return `Слишком большое значение: ожидалось, что ${issue.origin ?? "значение"} будет иметь ${adj}${issue.maximum.toString()} ${unit}`; + } + return `Слишком большое значение: ожидалось, что ${issue.origin ?? "значение"} будет ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) { + const unit = getRussianPlural(Number(issue.minimum), sizing.unit.one, sizing.unit.few, sizing.unit.many); + return `Слишком маленькое значение: ожидалось, что ${issue.origin} будет иметь ${adj}${issue.minimum.toString()} ${unit}`; + } + return `Слишком маленькое значение: ожидалось, что ${issue.origin} будет ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Неверная строка: должна начинаться с "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Неверная строка: должна заканчиваться на "${_issue.suffix}"`; + if (_issue.format === "includes") return `Неверная строка: должна содержать "${_issue.includes}"`; + if (_issue.format === "regex") return `Неверная строка: должна соответствовать шаблону ${_issue.pattern}`; + return `Неверный ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Неверное число: должно быть кратным ${issue.divisor}`; + case "unrecognized_keys": return `Нераспознанн${issue.keys.length > 1 ? "ые" : "ый"} ключ${issue.keys.length > 1 ? "и" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Неверный ключ в ${issue.origin}`; + case "invalid_union": return "Неверные входные данные"; + case "invalid_element": return `Неверное значение в ${issue.origin}`; + default: return `Неверные входные данные`; + } + }; +}; +function ru_default() { + return { localeError: error$11() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/sl.js +const error$10 = () => { + 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 parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "število"; + 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štni 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 čas", + date: "ISO datum", + time: "ISO čas", + 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 številka", + jwt: "JWT", + template_literal: "vnos" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Neveljaven vnos: pričakovano ${issue.expected}, prejeto ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue.values[0])}`; + return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Preveliko: pričakovano, da bo ${issue.origin ?? "vrednost"} imelo ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementov"}`; + return `Preveliko: pričakovano, da bo ${issue.origin ?? "vrednost"} ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Premajhno: pričakovano, da bo ${issue.origin} imelo ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Premajhno: pričakovano, da bo ${issue.origin} ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Neveljaven niz: mora se začeti z "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Neveljaven niz: mora se končati 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] ?? issue.format}`; + } + case "not_multiple_of": return `Neveljavno število: mora biti večkratnik ${issue.divisor}`; + case "unrecognized_keys": return `Neprepoznan${issue.keys.length > 1 ? "i ključi" : " ključ"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Neveljaven ključ v ${issue.origin}`; + case "invalid_union": return "Neveljaven vnos"; + case "invalid_element": return `Neveljavna vrednost v ${issue.origin}`; + default: return "Neveljaven vnos"; + } + }; +}; +function sl_default() { + return { localeError: error$10() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/sv.js +const error$9 = () => { + const Sizable = { + string: { + unit: "tecken", + verb: "att ha" + }, + file: { + unit: "bytes", + verb: "att ha" + }, + array: { + unit: "objekt", + verb: "att innehålla" + }, + set: { + unit: "objekt", + verb: "att innehålla" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (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ärt 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äng", + base64url: "base64url-kodad sträng", + json_string: "JSON-sträng", + e164: "E.164-nummer", + jwt: "JWT", + template_literal: "mall-literal" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Ogiltig inmatning: förväntat ${issue.expected}, fick ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue.values[0])}`; + return `Ogiltigt val: förväntade en av ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `För stor(t): förväntade ${issue.origin ?? "värdet"} att ha ${adj}${issue.maximum.toString()} ${sizing.unit ?? "element"}`; + return `För stor(t): förväntat ${issue.origin ?? "värdet"} att ha ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `För lite(t): förväntade ${issue.origin ?? "värdet"} att ha ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `För lite(t): förväntade ${issue.origin ?? "värdet"} att ha ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Ogiltig sträng: måste börja med "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Ogiltig sträng: måste sluta med "${_issue.suffix}"`; + if (_issue.format === "includes") return `Ogiltig sträng: måste innehålla "${_issue.includes}"`; + if (_issue.format === "regex") return `Ogiltig sträng: måste matcha mönstret "${_issue.pattern}"`; + return `Ogiltig(t) ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Ogiltigt tal: måste vara en multipel av ${issue.divisor}`; + case "unrecognized_keys": return `${issue.keys.length > 1 ? "Okända nycklar" : "Okänd nyckel"}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Ogiltig nyckel i ${issue.origin ?? "värdet"}`; + case "invalid_union": return "Ogiltig input"; + case "invalid_element": return `Ogiltigt värde i ${issue.origin ?? "värdet"}`; + default: return `Ogiltig input`; + } + }; +}; +function sv_default() { + return { localeError: error$9() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ta.js +const error$8 = () => { + const Sizable = { + string: { + unit: "எழுத்துக்கள்", + verb: "கொண்டிருக்க வேண்டும்" + }, + file: { + unit: "பைட்டுகள்", + verb: "கொண்டிருக்க வேண்டும்" + }, + array: { + unit: "உறுப்புகள்", + verb: "கொண்டிருக்க வேண்டும்" + }, + set: { + unit: "உறுப்புகள்", + verb: "கொண்டிருக்க வேண்டும்" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "எண் அல்லாதது" : "எண்"; + case "object": + if (Array.isArray(data)) return "அணி"; + if (data === null) return "வெறுமை"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; + }; + const Nouns = { + regex: "உள்ளீடு", + 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: "ISO தேதி நேரம்", + date: "ISO தேதி", + time: "ISO நேரம்", + duration: "ISO கால அளவு", + ipv4: "IPv4 முகவரி", + ipv6: "IPv6 முகவரி", + cidrv4: "IPv4 வரம்பு", + cidrv6: "IPv6 வரம்பு", + base64: "base64-encoded சரம்", + base64url: "base64url-encoded சரம்", + json_string: "JSON சரம்", + e164: "E.164 எண்", + jwt: "JWT", + template_literal: "input" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue.expected}, பெறப்பட்டது ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue.values[0])}`; + return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue.values, "|")} இல் ஒன்று`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${issue.origin ?? "மதிப்பு"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "உறுப்புகள்"} ஆக இருக்க வேண்டும்`; + return `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${issue.origin ?? "மதிப்பு"} ${adj}${issue.maximum.toString()} ஆக இருக்க வேண்டும்`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} ஆக இருக்க வேண்டும்`; + return `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${issue.origin} ${adj}${issue.minimum.toString()} ஆக இருக்க வேண்டும்`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `தவறான சரம்: "${_issue.prefix}" இல் தொடங்க வேண்டும்`; + if (_issue.format === "ends_with") return `தவறான சரம்: "${_issue.suffix}" இல் முடிவடைய வேண்டும்`; + if (_issue.format === "includes") return `தவறான சரம்: "${_issue.includes}" ஐ உள்ளடக்க வேண்டும்`; + if (_issue.format === "regex") return `தவறான சரம்: ${_issue.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`; + return `தவறான ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `தவறான எண்: ${issue.divisor} இன் பலமாக இருக்க வேண்டும்`; + case "unrecognized_keys": return `அடையாளம் தெரியாத விசை${issue.keys.length > 1 ? "கள்" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `${issue.origin} இல் தவறான விசை`; + case "invalid_union": return "தவறான உள்ளீடு"; + case "invalid_element": return `${issue.origin} இல் தவறான மதிப்பு`; + default: return `தவறான உள்ளீடு`; + } + }; +}; +function ta_default() { + return { localeError: error$8() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/th.js +const error$7 = () => { + const Sizable = { + string: { + unit: "ตัวอักษร", + verb: "ควรมี" + }, + file: { + unit: "ไบต์", + verb: "ควรมี" + }, + array: { + unit: "รายการ", + verb: "ควรมี" + }, + set: { + unit: "รายการ", + verb: "ควรมี" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "ไม่ใช่ตัวเลข (NaN)" : "ตัวเลข"; + 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: "ข้อมูลที่ป้อน", + email: "ที่อยู่อีเมล", + url: "URL", + emoji: "อิโมจิ", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "วันที่เวลาแบบ ISO", + date: "วันที่แบบ ISO", + time: "เวลาแบบ ISO", + duration: "ช่วงเวลาแบบ ISO", + ipv4: "ที่อยู่ IPv4", + ipv6: "ที่อยู่ IPv6", + cidrv4: "ช่วง IP แบบ IPv4", + cidrv6: "ช่วง IP แบบ IPv6", + base64: "ข้อความแบบ Base64", + base64url: "ข้อความแบบ Base64 สำหรับ URL", + json_string: "ข้อความแบบ JSON", + e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)", + jwt: "โทเคน JWT", + template_literal: "ข้อมูลที่ป้อน" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue.expected} แต่ได้รับ ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue.values[0])}`; + return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "ไม่เกิน" : "น้อยกว่า"; + const sizing = getSizing(issue.origin); + if (sizing) return `เกินกำหนด: ${issue.origin ?? "ค่า"} ควรมี${adj} ${issue.maximum.toString()} ${sizing.unit ?? "รายการ"}`; + return `เกินกำหนด: ${issue.origin ?? "ค่า"} ควรมี${adj} ${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? "อย่างน้อย" : "มากกว่า"; + const sizing = getSizing(issue.origin); + if (sizing) return `น้อยกว่ากำหนด: ${issue.origin} ควรมี${adj} ${issue.minimum.toString()} ${sizing.unit}`; + return `น้อยกว่ากำหนด: ${issue.origin} ควรมี${adj} ${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${_issue.suffix}"`; + if (_issue.format === "includes") return `รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${_issue.includes}" อยู่ในข้อความ`; + if (_issue.format === "regex") return `รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${_issue.pattern}`; + return `รูปแบบไม่ถูกต้อง: ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${issue.divisor} ได้ลงตัว`; + case "unrecognized_keys": return `พบคีย์ที่ไม่รู้จัก: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `คีย์ไม่ถูกต้องใน ${issue.origin}`; + case "invalid_union": return "ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้"; + case "invalid_element": return `ข้อมูลไม่ถูกต้องใน ${issue.origin}`; + default: return `ข้อมูลไม่ถูกต้อง`; + } + }; +}; +function th_default() { + return { localeError: error$7() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/tr.js +const 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; +}; +const error$6 = () => { + const Sizable = { + string: { + unit: "karakter", + verb: "olmalı" + }, + file: { + unit: "bayt", + verb: "olmalı" + }, + array: { + unit: "öğe", + verb: "olmalı" + }, + set: { + unit: "öğe", + verb: "olmalı" + } + }; + 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üre", + ipv4: "IPv4 adresi", + ipv6: "IPv6 adresi", + cidrv4: "IPv4 aralığı", + cidrv6: "IPv6 aralığı", + base64: "base64 ile şifrelenmiş metin", + base64url: "base64url ile şifrelenmiş metin", + json_string: "JSON dizesi", + e164: "E.164 sayısı", + jwt: "JWT", + template_literal: "Şablon dizesi" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Geçersiz değer: beklenen ${issue.expected}, alınan ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Geçersiz değer: beklenen ${stringifyPrimitive(issue.values[0])}`; + return `Geçersiz seçenek: aşağıdakilerden biri olmalı: ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Çok büyük: beklenen ${issue.origin ?? "değer"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "öğe"}`; + return `Çok büyük: beklenen ${issue.origin ?? "değer"} ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Çok küçük: beklenen ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Çok küçük: beklenen ${issue.origin} ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Geçersiz metin: "${_issue.prefix}" ile başlamalı`; + if (_issue.format === "ends_with") return `Geçersiz metin: "${_issue.suffix}" ile bitmeli`; + if (_issue.format === "includes") return `Geçersiz metin: "${_issue.includes}" içermeli`; + if (_issue.format === "regex") return `Geçersiz metin: ${_issue.pattern} desenine uymalı`; + return `Geçersiz ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Geçersiz sayı: ${issue.divisor} ile tam bölünebilmeli`; + case "unrecognized_keys": return `Tanınmayan anahtar${issue.keys.length > 1 ? "lar" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `${issue.origin} içinde geçersiz anahtar`; + case "invalid_union": return "Geçersiz değer"; + case "invalid_element": return `${issue.origin} içinde geçersiz değer`; + default: return `Geçersiz değer`; + } + }; +}; +function tr_default() { + return { localeError: error$6() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/uk.js +const error$5 = () => { + const Sizable = { + string: { + unit: "символів", + verb: "матиме" + }, + file: { + unit: "байтів", + verb: "матиме" + }, + array: { + unit: "елементів", + verb: "матиме" + }, + set: { + unit: "елементів", + verb: "матиме" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "число"; + case "object": + if (Array.isArray(data)) return "масив"; + if (data === null) return "null"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; + }; + const Nouns = { + regex: "вхідні дані", + email: "адреса електронної пошти", + url: "URL", + emoji: "емодзі", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "дата та час ISO", + date: "дата ISO", + time: "час ISO", + duration: "тривалість ISO", + ipv4: "адреса IPv4", + ipv6: "адреса IPv6", + cidrv4: "діапазон IPv4", + cidrv6: "діапазон IPv6", + base64: "рядок у кодуванні base64", + base64url: "рядок у кодуванні base64url", + json_string: "рядок JSON", + e164: "номер E.164", + jwt: "JWT", + template_literal: "вхідні дані" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Неправильні вхідні дані: очікується ${issue.expected}, отримано ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue.values[0])}`; + return `Неправильна опція: очікується одне з ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Занадто велике: очікується, що ${issue.origin ?? "значення"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "елементів"}`; + return `Занадто велике: очікується, що ${issue.origin ?? "значення"} буде ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Занадто мале: очікується, що ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Занадто мале: очікується, що ${issue.origin} буде ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Неправильний рядок: повинен починатися з "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Неправильний рядок: повинен закінчуватися на "${_issue.suffix}"`; + if (_issue.format === "includes") return `Неправильний рядок: повинен містити "${_issue.includes}"`; + if (_issue.format === "regex") return `Неправильний рядок: повинен відповідати шаблону ${_issue.pattern}`; + return `Неправильний ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Неправильне число: повинно бути кратним ${issue.divisor}`; + case "unrecognized_keys": return `Нерозпізнаний ключ${issue.keys.length > 1 ? "і" : ""}: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Неправильний ключ у ${issue.origin}`; + case "invalid_union": return "Неправильні вхідні дані"; + case "invalid_element": return `Неправильне значення у ${issue.origin}`; + default: return `Неправильні вхідні дані`; + } + }; +}; +function uk_default() { + return { localeError: error$5() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ua.js +/** @deprecated Use `uk` instead. */ +function ua_default() { + return uk_default(); +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ur.js +const error$4 = () => { + const Sizable = { + string: { + unit: "حروف", + verb: "ہونا" + }, + file: { + unit: "بائٹس", + verb: "ہونا" + }, + array: { + unit: "آئٹمز", + verb: "ہونا" + }, + set: { + unit: "آئٹمز", + verb: "ہونا" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "نمبر"; + case "object": + if (Array.isArray(data)) return "آرے"; + if (data === null) return "نل"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; + }; + const Nouns = { + regex: "ان پٹ", + email: "ای میل ایڈریس", + url: "یو آر ایل", + emoji: "ایموجی", + uuid: "یو یو آئی ڈی", + uuidv4: "یو یو آئی ڈی وی 4", + uuidv6: "یو یو آئی ڈی وی 6", + nanoid: "نینو آئی ڈی", + guid: "جی یو آئی ڈی", + cuid: "سی یو آئی ڈی", + cuid2: "سی یو آئی ڈی 2", + ulid: "یو ایل آئی ڈی", + xid: "ایکس آئی ڈی", + ksuid: "کے ایس یو آئی ڈی", + datetime: "آئی ایس او ڈیٹ ٹائم", + date: "آئی ایس او تاریخ", + time: "آئی ایس او وقت", + duration: "آئی ایس او مدت", + ipv4: "آئی پی وی 4 ایڈریس", + ipv6: "آئی پی وی 6 ایڈریس", + cidrv4: "آئی پی وی 4 رینج", + cidrv6: "آئی پی وی 6 رینج", + base64: "بیس 64 ان کوڈڈ سٹرنگ", + base64url: "بیس 64 یو آر ایل ان کوڈڈ سٹرنگ", + json_string: "جے ایس او این سٹرنگ", + e164: "ای 164 نمبر", + jwt: "جے ڈبلیو ٹی", + template_literal: "ان پٹ" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `غلط ان پٹ: ${issue.expected} متوقع تھا، ${parsedType(issue.input)} موصول ہوا`; + case "invalid_value": + if (issue.values.length === 1) return `غلط ان پٹ: ${stringifyPrimitive(issue.values[0])} متوقع تھا`; + return `غلط آپشن: ${joinValues(issue.values, "|")} میں سے ایک متوقع تھا`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `بہت بڑا: ${issue.origin ?? "ویلیو"} کے ${adj}${issue.maximum.toString()} ${sizing.unit ?? "عناصر"} ہونے متوقع تھے`; + return `بہت بڑا: ${issue.origin ?? "ویلیو"} کا ${adj}${issue.maximum.toString()} ہونا متوقع تھا`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `بہت چھوٹا: ${issue.origin} کے ${adj}${issue.minimum.toString()} ${sizing.unit} ہونے متوقع تھے`; + return `بہت چھوٹا: ${issue.origin} کا ${adj}${issue.minimum.toString()} ہونا متوقع تھا`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `غلط سٹرنگ: "${_issue.prefix}" سے شروع ہونا چاہیے`; + if (_issue.format === "ends_with") return `غلط سٹرنگ: "${_issue.suffix}" پر ختم ہونا چاہیے`; + if (_issue.format === "includes") return `غلط سٹرنگ: "${_issue.includes}" شامل ہونا چاہیے`; + if (_issue.format === "regex") return `غلط سٹرنگ: پیٹرن ${_issue.pattern} سے میچ ہونا چاہیے`; + return `غلط ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `غلط نمبر: ${issue.divisor} کا مضاعف ہونا چاہیے`; + case "unrecognized_keys": return `غیر تسلیم شدہ کی${issue.keys.length > 1 ? "ز" : ""}: ${joinValues(issue.keys, "، ")}`; + case "invalid_key": return `${issue.origin} میں غلط کی`; + case "invalid_union": return "غلط ان پٹ"; + case "invalid_element": return `${issue.origin} میں غلط ویلیو`; + default: return `غلط ان پٹ`; + } + }; +}; +function ur_default() { + return { localeError: error$4() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/vi.js +const error$3 = () => { + const Sizable = { + string: { + unit: "ký tự", + verb: "có" + }, + file: { + unit: "byte", + verb: "có" + }, + array: { + unit: "phần tử", + verb: "có" + }, + set: { + unit: "phần tử", + verb: "có" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "số"; + case "object": + if (Array.isArray(data)) return "mảng"; + if (data === null) return "null"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; + }; + const Nouns = { + regex: "đầu vào", + email: "địa chỉ 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ày giờ ISO", + date: "ngày ISO", + time: "giờ ISO", + duration: "khoảng thời gian ISO", + ipv4: "địa chỉ IPv4", + ipv6: "địa chỉ IPv6", + cidrv4: "dải IPv4", + cidrv6: "dải IPv6", + base64: "chuỗi mã hóa base64", + base64url: "chuỗi mã hóa base64url", + json_string: "chuỗi JSON", + e164: "số E.164", + jwt: "JWT", + template_literal: "đầu vào" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue.expected}, nhận được ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue.values[0])}`; + return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Quá lớn: mong đợi ${issue.origin ?? "giá trị"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "phần tử"}`; + return `Quá lớn: mong đợi ${issue.origin ?? "giá trị"} ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Quá nhỏ: mong đợi ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `Quá nhỏ: mong đợi ${issue.origin} ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Chuỗi không hợp lệ: phải bắt đầu bằng "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Chuỗi không hợp lệ: phải kết thúc bằng "${_issue.suffix}"`; + if (_issue.format === "includes") return `Chuỗi không hợp lệ: phải bao gồm "${_issue.includes}"`; + if (_issue.format === "regex") return `Chuỗi không hợp lệ: phải khớp với mẫu ${_issue.pattern}`; + return `${Nouns[_issue.format] ?? issue.format} không hợp lệ`; + } + case "not_multiple_of": return `Số không hợp lệ: phải là bội số của ${issue.divisor}`; + case "unrecognized_keys": return `Khóa không được nhận dạng: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Khóa không hợp lệ trong ${issue.origin}`; + case "invalid_union": return "Đầu vào không hợp lệ"; + case "invalid_element": return `Giá trị không hợp lệ trong ${issue.origin}`; + default: return `Đầu vào không hợp lệ`; + } + }; +}; +function vi_default() { + return { localeError: error$3() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/zh-CN.js +const error$2 = () => { + const Sizable = { + string: { + unit: "字符", + verb: "包含" + }, + file: { + unit: "字节", + verb: "包含" + }, + array: { + unit: "项", + verb: "包含" + }, + set: { + unit: "项", + verb: "包含" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "非数字(NaN)" : "数字"; + case "object": + if (Array.isArray(data)) return "数组"; + if (data === null) return "空值(null)"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; + }; + const Nouns = { + regex: "输入", + email: "电子邮件", + url: "URL", + emoji: "表情符号", + uuid: "UUID", + uuidv4: "UUIDv4", + uuidv6: "UUIDv6", + nanoid: "nanoid", + guid: "GUID", + cuid: "cuid", + cuid2: "cuid2", + ulid: "ULID", + xid: "XID", + ksuid: "KSUID", + datetime: "ISO日期时间", + date: "ISO日期", + time: "ISO时间", + duration: "ISO时长", + ipv4: "IPv4地址", + ipv6: "IPv6地址", + cidrv4: "IPv4网段", + cidrv6: "IPv6网段", + base64: "base64编码字符串", + base64url: "base64url编码字符串", + json_string: "JSON字符串", + e164: "E.164号码", + jwt: "JWT", + template_literal: "输入" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `无效输入:期望 ${issue.expected},实际接收 ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `无效输入:期望 ${stringifyPrimitive(issue.values[0])}`; + return `无效选项:期望以下之一 ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `数值过大:期望 ${issue.origin ?? "值"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "个元素"}`; + return `数值过大:期望 ${issue.origin ?? "值"} ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `数值过小:期望 ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `数值过小:期望 ${issue.origin} ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `无效字符串:必须以 "${_issue.prefix}" 开头`; + if (_issue.format === "ends_with") return `无效字符串:必须以 "${_issue.suffix}" 结尾`; + if (_issue.format === "includes") return `无效字符串:必须包含 "${_issue.includes}"`; + if (_issue.format === "regex") return `无效字符串:必须满足正则表达式 ${_issue.pattern}`; + return `无效${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `无效数字:必须是 ${issue.divisor} 的倍数`; + case "unrecognized_keys": return `出现未知的键(key): ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `${issue.origin} 中的键(key)无效`; + case "invalid_union": return "无效输入"; + case "invalid_element": return `${issue.origin} 中包含无效值(value)`; + default: return `无效输入`; + } + }; +}; +function zh_CN_default() { + return { localeError: error$2() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/zh-TW.js +const error$1 = () => { + const Sizable = { + string: { + unit: "字元", + verb: "擁有" + }, + file: { + unit: "位元組", + verb: "擁有" + }, + array: { + unit: "項目", + verb: "擁有" + }, + set: { + unit: "項目", + verb: "擁有" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const 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; + }; + const Nouns = { + regex: "輸入", + 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: "ISO 日期時間", + date: "ISO 日期", + time: "ISO 時間", + duration: "ISO 期間", + ipv4: "IPv4 位址", + ipv6: "IPv6 位址", + cidrv4: "IPv4 範圍", + cidrv6: "IPv6 範圍", + base64: "base64 編碼字串", + base64url: "base64url 編碼字串", + json_string: "JSON 字串", + e164: "E.164 數值", + jwt: "JWT", + template_literal: "輸入" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `無效的輸入值:預期為 ${issue.expected},但收到 ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `無效的輸入值:預期為 ${stringifyPrimitive(issue.values[0])}`; + return `無效的選項:預期為以下其中之一 ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `數值過大:預期 ${issue.origin ?? "值"} 應為 ${adj}${issue.maximum.toString()} ${sizing.unit ?? "個元素"}`; + return `數值過大:預期 ${issue.origin ?? "值"} 應為 ${adj}${issue.maximum.toString()}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `數值過小:預期 ${issue.origin} 應為 ${adj}${issue.minimum.toString()} ${sizing.unit}`; + return `數值過小:預期 ${issue.origin} 應為 ${adj}${issue.minimum.toString()}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `無效的字串:必須以 "${_issue.prefix}" 開頭`; + if (_issue.format === "ends_with") return `無效的字串:必須以 "${_issue.suffix}" 結尾`; + if (_issue.format === "includes") return `無效的字串:必須包含 "${_issue.includes}"`; + if (_issue.format === "regex") return `無效的字串:必須符合格式 ${_issue.pattern}`; + return `無效的 ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `無效的數字:必須為 ${issue.divisor} 的倍數`; + case "unrecognized_keys": return `無法識別的鍵值${issue.keys.length > 1 ? "們" : ""}:${joinValues(issue.keys, "、")}`; + case "invalid_key": return `${issue.origin} 中有無效的鍵值`; + case "invalid_union": return "無效的輸入值"; + case "invalid_element": return `${issue.origin} 中有無效的值`; + default: return `無效的輸入值`; + } + }; +}; +function zh_TW_default() { + return { localeError: error$1() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/yo.js +const error = () => { + const Sizable = { + string: { + unit: "àmi", + verb: "ní" + }, + file: { + unit: "bytes", + verb: "ní" + }, + array: { + unit: "nkan", + verb: "ní" + }, + set: { + unit: "nkan", + verb: "ní" + } + }; + function getSizing(origin) { + return Sizable[origin] ?? null; + } + const parsedType = (data) => { + const t = typeof data; + switch (t) { + case "number": return Number.isNaN(data) ? "NaN" : "nọ́mbà"; + case "object": + if (Array.isArray(data)) return "akopọ"; + if (data === null) return "null"; + if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; + } + return t; + }; + const Nouns = { + regex: "ẹ̀rọ ìbáwọlé", + email: "àdírẹ́sì ìmẹ́lì", + 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: "àkókò ISO", + date: "ọjọ́ ISO", + time: "àkókò ISO", + duration: "àkókò tó pé ISO", + ipv4: "àdírẹ́sì IPv4", + ipv6: "àdírẹ́sì IPv6", + cidrv4: "àgbègbè IPv4", + cidrv6: "àgbègbè IPv6", + base64: "ọ̀rọ̀ tí a kọ́ ní base64", + base64url: "ọ̀rọ̀ base64url", + json_string: "ọ̀rọ̀ JSON", + e164: "nọ́mbà E.164", + jwt: "JWT", + template_literal: "ẹ̀rọ ìbáwọlé" + }; + return (issue) => { + switch (issue.code) { + case "invalid_type": return `Ìbáwọlé aṣìṣe: a ní láti fi ${issue.expected}, àmọ̀ a rí ${parsedType(issue.input)}`; + case "invalid_value": + if (issue.values.length === 1) return `Ìbáwọlé aṣìṣe: a ní láti fi ${stringifyPrimitive(issue.values[0])}`; + return `Àṣàyàn aṣìṣe: yan ọ̀kan lára ${joinValues(issue.values, "|")}`; + case "too_big": { + const adj = issue.inclusive ? "<=" : "<"; + const sizing = getSizing(issue.origin); + if (sizing) return `Tó pọ̀ jù: a ní láti jẹ́ pé ${issue.origin ?? "iye"} ${sizing.verb} ${adj}${issue.maximum} ${sizing.unit}`; + return `Tó pọ̀ jù: a ní láti jẹ́ ${adj}${issue.maximum}`; + } + case "too_small": { + const adj = issue.inclusive ? ">=" : ">"; + const sizing = getSizing(issue.origin); + if (sizing) return `Kéré ju: a ní láti jẹ́ pé ${issue.origin} ${sizing.verb} ${adj}${issue.minimum} ${sizing.unit}`; + return `Kéré ju: a ní láti jẹ́ ${adj}${issue.minimum}`; + } + case "invalid_format": { + const _issue = issue; + if (_issue.format === "starts_with") return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${_issue.prefix}"`; + if (_issue.format === "ends_with") return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${_issue.suffix}"`; + if (_issue.format === "includes") return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${_issue.includes}"`; + if (_issue.format === "regex") return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${_issue.pattern}`; + return `Aṣìṣe: ${Nouns[_issue.format] ?? issue.format}`; + } + case "not_multiple_of": return `Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${issue.divisor}`; + case "unrecognized_keys": return `Bọtìnì àìmọ̀: ${joinValues(issue.keys, ", ")}`; + case "invalid_key": return `Bọtìnì aṣìṣe nínú ${issue.origin}`; + case "invalid_union": return "Ìbáwọlé aṣìṣe"; + case "invalid_element": return `Iye aṣìṣe nínú ${issue.origin}`; + default: return "Ìbáwọlé aṣìṣe"; + } + }; +}; +function yo_default() { + return { localeError: error() }; +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/index.js +var locales_exports = /* @__PURE__ */ __exportAll({ + ar: () => ar_default, + az: () => az_default, + be: () => be_default, + ca: () => ca_default, + cs: () => cs_default, + da: () => da_default, + de: () => de_default, + en: () => en_default, + 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, + is: () => is_default, + it: () => it_default, + ja: () => ja_default, + ka: () => ka_default, + kh: () => kh_default, + km: () => km_default, + ko: () => ko_default, + lt: () => lt_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, + uk: () => uk_default, + ur: () => ur_default, + vi: () => vi_default, + yo: () => yo_default, + zhCN: () => zh_CN_default, + zhTW: () => zh_TW_default +}); +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/registries.js +const $output = Symbol("ZodOutput"); +const $input = Symbol("ZodInput"); +var $ZodRegistry = class { + constructor() { + this._map = /* @__PURE__ */ new WeakMap(); + this._idmap = /* @__PURE__ */ new Map(); + } + add(schema, ..._meta) { + const meta = _meta[0]; + this._map.set(schema, 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, schema); + } + return this; + } + clear() { + this._map = /* @__PURE__ */ new WeakMap(); + this._idmap = /* @__PURE__ */ new Map(); + return this; + } + remove(schema) { + const meta = this._map.get(schema); + if (meta && typeof meta === "object" && "id" in meta) this._idmap.delete(meta.id); + this._map.delete(schema); + return this; + } + get(schema) { + const p = schema._zod.parent; + if (p) { + const pm = { ...this.get(p) ?? {} }; + delete pm.id; + const f = { + ...pm, + ...this._map.get(schema) + }; + return Object.keys(f).length ? f : void 0; + } + return this._map.get(schema); + } + has(schema) { + return this._map.has(schema); + } +}; +function registry() { + return new $ZodRegistry(); +} +const globalRegistry = /*@__PURE__*/ registry(); +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/api.js +function _string(Class, params) { + return new Class({ + type: "string", + ...normalizeParams(params) + }); +} +function _coercedString(Class, params) { + return new Class({ + type: "string", + coerce: true, + ...normalizeParams(params) + }); +} +function _email(Class, params) { + return new Class({ + type: "string", + format: "email", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _guid(Class, params) { + return new Class({ + type: "string", + format: "guid", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _uuid(Class, params) { + return new Class({ + type: "string", + format: "uuid", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _uuidv4(Class, params) { + return new Class({ + type: "string", + format: "uuid", + check: "string_format", + abort: false, + version: "v4", + ...normalizeParams(params) + }); +} +function _uuidv6(Class, params) { + return new Class({ + type: "string", + format: "uuid", + check: "string_format", + abort: false, + version: "v6", + ...normalizeParams(params) + }); +} +function _uuidv7(Class, params) { + return new Class({ + type: "string", + format: "uuid", + check: "string_format", + abort: false, + version: "v7", + ...normalizeParams(params) + }); +} +function _url(Class, params) { + return new Class({ + type: "string", + format: "url", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _emoji(Class, params) { + return new Class({ + type: "string", + format: "emoji", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _nanoid(Class, params) { + return new Class({ + type: "string", + format: "nanoid", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _cuid(Class, params) { + return new Class({ + type: "string", + format: "cuid", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _cuid2(Class, params) { + return new Class({ + type: "string", + format: "cuid2", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _ulid(Class, params) { + return new Class({ + type: "string", + format: "ulid", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _xid(Class, params) { + return new Class({ + type: "string", + format: "xid", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _ksuid(Class, params) { + return new Class({ + type: "string", + format: "ksuid", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _ipv4(Class, params) { + return new Class({ + type: "string", + format: "ipv4", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _ipv6(Class, params) { + return new Class({ + type: "string", + format: "ipv6", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _cidrv4(Class, params) { + return new Class({ + type: "string", + format: "cidrv4", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _cidrv6(Class, params) { + return new Class({ + type: "string", + format: "cidrv6", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _base64(Class, params) { + return new Class({ + type: "string", + format: "base64", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _base64url(Class, params) { + return new Class({ + type: "string", + format: "base64url", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _e164(Class, params) { + return new Class({ + type: "string", + format: "e164", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +function _jwt(Class, params) { + return new Class({ + type: "string", + format: "jwt", + check: "string_format", + abort: false, + ...normalizeParams(params) + }); +} +const TimePrecision = { + Any: null, + Minute: -1, + Second: 0, + Millisecond: 3, + Microsecond: 6 +}; +function _isoDateTime(Class, params) { + return new Class({ + type: "string", + format: "datetime", + check: "string_format", + offset: false, + local: false, + precision: null, + ...normalizeParams(params) + }); +} +function _isoDate(Class, params) { + return new Class({ + type: "string", + format: "date", + check: "string_format", + ...normalizeParams(params) + }); +} +function _isoTime(Class, params) { + return new Class({ + type: "string", + format: "time", + check: "string_format", + precision: null, + ...normalizeParams(params) + }); +} +function _isoDuration(Class, params) { + return new Class({ + type: "string", + format: "duration", + check: "string_format", + ...normalizeParams(params) + }); +} +function _number(Class, params) { + return new Class({ + type: "number", + checks: [], + ...normalizeParams(params) + }); +} +function _coercedNumber(Class, params) { + return new Class({ + type: "number", + coerce: true, + checks: [], + ...normalizeParams(params) + }); +} +function _int(Class, params) { + return new Class({ + type: "number", + check: "number_format", + abort: false, + format: "safeint", + ...normalizeParams(params) + }); +} +function _float32(Class, params) { + return new Class({ + type: "number", + check: "number_format", + abort: false, + format: "float32", + ...normalizeParams(params) + }); +} +function _float64(Class, params) { + return new Class({ + type: "number", + check: "number_format", + abort: false, + format: "float64", + ...normalizeParams(params) + }); +} +function _int32(Class, params) { + return new Class({ + type: "number", + check: "number_format", + abort: false, + format: "int32", + ...normalizeParams(params) + }); +} +function _uint32(Class, params) { + return new Class({ + type: "number", + check: "number_format", + abort: false, + format: "uint32", + ...normalizeParams(params) + }); +} +function _boolean(Class, params) { + return new Class({ + type: "boolean", + ...normalizeParams(params) + }); +} +function _coercedBoolean(Class, params) { + return new Class({ + type: "boolean", + coerce: true, + ...normalizeParams(params) + }); +} +function _bigint(Class, params) { + return new Class({ + type: "bigint", + ...normalizeParams(params) + }); +} +function _coercedBigint(Class, params) { + return new Class({ + type: "bigint", + coerce: true, + ...normalizeParams(params) + }); +} +function _int64(Class, params) { + return new Class({ + type: "bigint", + check: "bigint_format", + abort: false, + format: "int64", + ...normalizeParams(params) + }); +} +function _uint64(Class, params) { + return new Class({ + type: "bigint", + check: "bigint_format", + abort: false, + format: "uint64", + ...normalizeParams(params) + }); +} +function _symbol(Class, params) { + return new Class({ + type: "symbol", + ...normalizeParams(params) + }); +} +function _undefined$1(Class, params) { + return new Class({ + type: "undefined", + ...normalizeParams(params) + }); +} +function _null$1(Class, params) { + return new Class({ + type: "null", + ...normalizeParams(params) + }); +} +function _any(Class) { + return new Class({ type: "any" }); +} +function _unknown(Class) { + return new Class({ type: "unknown" }); +} +function _never(Class, params) { + return new Class({ + type: "never", + ...normalizeParams(params) + }); +} +function _void$1(Class, params) { + return new Class({ + type: "void", + ...normalizeParams(params) + }); +} +function _date(Class, params) { + return new Class({ + type: "date", + ...normalizeParams(params) + }); +} +function _coercedDate(Class, params) { + return new Class({ + type: "date", + coerce: true, + ...normalizeParams(params) + }); +} +function _nan(Class, params) { + return new Class({ + type: "nan", + ...normalizeParams(params) + }); +} +function _lt(value, params) { + return new $ZodCheckLessThan({ + check: "less_than", + ...normalizeParams(params), + value, + inclusive: false + }); +} +function _lte(value, params) { + return new $ZodCheckLessThan({ + check: "less_than", + ...normalizeParams(params), + value, + inclusive: true + }); +} +function _gt(value, params) { + return new $ZodCheckGreaterThan({ + check: "greater_than", + ...normalizeParams(params), + value, + inclusive: false + }); +} +function _gte(value, params) { + return new $ZodCheckGreaterThan({ + check: "greater_than", + ...normalizeParams(params), + value, + 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(value, params) { + return new $ZodCheckMultipleOf({ + check: "multiple_of", + ...normalizeParams(params), + value + }); +} +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) { + return new $ZodCheckMaxLength({ + check: "max_length", + ...normalizeParams(params), + maximum + }); +} +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(includes, params) { + return new $ZodCheckIncludes({ + check: "string_format", + format: "includes", + ...normalizeParams(params), + includes + }); +} +function _startsWith(prefix, params) { + return new $ZodCheckStartsWith({ + check: "string_format", + format: "starts_with", + ...normalizeParams(params), + prefix + }); +} +function _endsWith(suffix, params) { + return new $ZodCheckEndsWith({ + check: "string_format", + format: "ends_with", + ...normalizeParams(params), + suffix + }); +} +function _property(property, schema, params) { + return new $ZodCheckProperty({ + check: "property", + property, + schema, + ...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(Class, element, params) { + return new Class({ + type: "array", + element, + ...normalizeParams(params) + }); +} +function _union(Class, options, params) { + return new Class({ + type: "union", + options, + ...normalizeParams(params) + }); +} +function _discriminatedUnion(Class, discriminator, options, params) { + return new Class({ + type: "union", + options, + discriminator, + ...normalizeParams(params) + }); +} +function _intersection(Class, left, right) { + return new Class({ + type: "intersection", + left, + right + }); +} +function _tuple(Class, items, _paramsOrRest, _params) { + const hasRest = _paramsOrRest instanceof $ZodType; + return new Class({ + type: "tuple", + items, + rest: hasRest ? _paramsOrRest : null, + ...normalizeParams(hasRest ? _params : _paramsOrRest) + }); +} +function _record(Class, keyType, valueType, params) { + return new Class({ + type: "record", + keyType, + valueType, + ...normalizeParams(params) + }); +} +function _map(Class, keyType, valueType, params) { + return new Class({ + type: "map", + keyType, + valueType, + ...normalizeParams(params) + }); +} +function _set(Class, valueType, params) { + return new Class({ + type: "set", + valueType, + ...normalizeParams(params) + }); +} +function _enum$1(Class, values, params) { + return new Class({ + type: "enum", + entries: Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values, + ...normalizeParams(params) + }); +} +/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead. +* +* ```ts +* enum Colors { red, green, blue } +* z.enum(Colors); +* ``` +*/ +function _nativeEnum(Class, entries, params) { + return new Class({ + type: "enum", + entries, + ...normalizeParams(params) + }); +} +function _literal(Class, value, params) { + return new Class({ + type: "literal", + values: Array.isArray(value) ? value : [value], + ...normalizeParams(params) + }); +} +function _file(Class, params) { + return new Class({ + type: "file", + ...normalizeParams(params) + }); +} +function _transform(Class, fn) { + return new Class({ + type: "transform", + transform: fn + }); +} +function _optional(Class, innerType) { + return new Class({ + type: "optional", + innerType + }); +} +function _nullable(Class, innerType) { + return new Class({ + type: "nullable", + innerType + }); +} +function _default$1(Class, innerType, defaultValue) { + return new Class({ + type: "default", + innerType, + get defaultValue() { + return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue); + } + }); +} +function _nonoptional(Class, innerType, params) { + return new Class({ + type: "nonoptional", + innerType, + ...normalizeParams(params) + }); +} +function _success(Class, innerType) { + return new Class({ + type: "success", + innerType + }); +} +function _catch$1(Class, innerType, catchValue) { + return new Class({ + type: "catch", + innerType, + catchValue: typeof catchValue === "function" ? catchValue : () => catchValue + }); +} +function _pipe(Class, in_, out) { + return new Class({ + type: "pipe", + in: in_, + out + }); +} +function _readonly(Class, innerType) { + return new Class({ + type: "readonly", + innerType + }); +} +function _templateLiteral(Class, parts, params) { + return new Class({ + type: "template_literal", + parts, + ...normalizeParams(params) + }); +} +function _lazy(Class, getter) { + return new Class({ + type: "lazy", + getter + }); +} +function _promise(Class, innerType) { + return new Class({ + type: "promise", + innerType + }); +} +function _custom(Class, fn, _params) { + const norm = normalizeParams(_params); + norm.abort ?? (norm.abort = true); + return new Class({ + type: "custom", + check: "custom", + fn, + ...norm + }); +} +function _refine(Class, fn, _params) { + return new Class({ + type: "custom", + check: "custom", + fn, + ...normalizeParams(_params) + }); +} +function _superRefine(fn) { + const ch = _check((payload) => { + payload.addIssue = (issue$2) => { + if (typeof issue$2 === "string") payload.issues.push(issue(issue$2, payload.value, ch._zod.def)); + else { + const _issue = issue$2; + if (_issue.fatal) _issue.continue = false; + _issue.code ?? (_issue.code = "custom"); + _issue.input ?? (_issue.input = payload.value); + _issue.inst ?? (_issue.inst = ch); + _issue.continue ?? (_issue.continue = !ch._zod.def.abort); + payload.issues.push(issue(_issue)); + } + }; + return fn(payload.value, payload); + }); + return ch; +} +function _check(fn, params) { + const ch = new $ZodCheck({ + check: "custom", + ...normalizeParams(params) + }); + ch._zod.check = fn; + return ch; +} +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 _Codec = Classes.Codec ?? $ZodCodec; + const _Boolean = Classes.Boolean ?? $ZodBoolean; + const codec = new _Codec({ + type: "pipe", + in: new (Classes.String ?? $ZodString)({ + type: "string", + error: params.error + }), + out: new _Boolean({ + type: "boolean", + error: params.error + }), + 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: codec, + continue: false + }); + return {}; + } + }), + reverseTransform: ((input, _payload) => { + if (input === true) return truthyArray[0] || "true"; + else return falsyArray[0] || "false"; + }), + error: params.error + }); + return codec; +} +function _stringFormat(Class, format, fnOrRegex, _params = {}) { + const params = normalizeParams(_params); + const def = { + ...normalizeParams(_params), + check: "string_format", + type: "string", + format, + fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val), + ...params + }; + if (fnOrRegex instanceof RegExp) def.pattern = fnOrRegex; + return new Class(def); +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/to-json-schema.js +var 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(schema, _params = { + path: [], + schemaPath: [] + }) { + var _a; + const def = schema._zod.def; + const formatMap = { + guid: "uuid", + url: "uri", + datetime: "date-time", + json_string: "json-string", + regex: "" + }; + const seen = this.seen.get(schema); + if (seen) { + seen.count++; + if (_params.schemaPath.includes(schema)) seen.cycle = _params.path; + return seen.schema; + } + const result = { + schema: {}, + count: 1, + cycle: void 0, + path: _params.path + }; + this.seen.set(schema, result); + const overrideSchema = schema._zod.toJSONSchema?.(); + if (overrideSchema) result.schema = overrideSchema; + else { + const params = { + ..._params, + schemaPath: [..._params.schemaPath, schema], + path: _params.path + }; + const parent = schema._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 json = _json; + json.type = "string"; + const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag; + if (typeof minimum === "number") json.minLength = minimum; + if (typeof maximum === "number") json.maxLength = maximum; + if (format) { + json.format = formatMap[format] ?? format; + if (json.format === "") delete json.format; + } + if (contentEncoding) json.contentEncoding = contentEncoding; + if (patterns && patterns.size > 0) { + const regexes = [...patterns]; + if (regexes.length === 1) json.pattern = regexes[0].source; + else if (regexes.length > 1) result.schema.allOf = [...regexes.map((regex) => ({ + ...this.target === "draft-7" || this.target === "draft-4" || this.target === "openapi-3.0" ? { type: "string" } : {}, + pattern: regex.source + }))]; + } + break; + } + case "number": { + const json = _json; + const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag; + if (typeof format === "string" && format.includes("int")) json.type = "integer"; + else json.type = "number"; + if (typeof exclusiveMinimum === "number") if (this.target === "draft-4" || this.target === "openapi-3.0") { + json.minimum = exclusiveMinimum; + json.exclusiveMinimum = true; + } else json.exclusiveMinimum = exclusiveMinimum; + if (typeof minimum === "number") { + json.minimum = minimum; + if (typeof exclusiveMinimum === "number" && this.target !== "draft-4") if (exclusiveMinimum >= minimum) delete json.minimum; + else delete json.exclusiveMinimum; + } + if (typeof exclusiveMaximum === "number") if (this.target === "draft-4" || this.target === "openapi-3.0") { + json.maximum = exclusiveMaximum; + json.exclusiveMaximum = true; + } else json.exclusiveMaximum = exclusiveMaximum; + if (typeof maximum === "number") { + json.maximum = maximum; + if (typeof exclusiveMaximum === "number" && this.target !== "draft-4") if (exclusiveMaximum <= maximum) delete json.maximum; + else delete json.exclusiveMaximum; + } + if (typeof multipleOf === "number") json.multipleOf = multipleOf; + break; + } + case "boolean": { + const json = _json; + json.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": + if (this.target === "openapi-3.0") { + _json.type = "string"; + _json.nullable = true; + _json.enum = [null]; + } else _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 json = _json; + const { minimum, maximum } = schema._zod.bag; + if (typeof minimum === "number") json.minItems = minimum; + if (typeof maximum === "number") json.maxItems = maximum; + json.type = "array"; + json.items = this.process(def.element, { + ...params, + path: [...params.path, "items"] + }); + break; + } + case "object": { + const json = _json; + json.type = "object"; + json.properties = {}; + const shape = def.shape; + for (const key in shape) json.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) json.required = Array.from(requiredKeys); + if (def.catchall?._zod.def.type === "never") json.additionalProperties = false; + else if (!def.catchall) { + if (this.io === "output") json.additionalProperties = false; + } else if (def.catchall) json.additionalProperties = this.process(def.catchall, { + ...params, + path: [...params.path, "additionalProperties"] + }); + break; + } + case "union": { + const json = _json; + json.anyOf = def.options.map((x, i) => this.process(x, { + ...params, + path: [ + ...params.path, + "anyOf", + i + ] + })); + break; + } + case "intersection": { + const json = _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; + json.allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]]; + break; + } + case "tuple": { + const json = _json; + json.type = "array"; + const prefixPath = this.target === "draft-2020-12" ? "prefixItems" : "items"; + const restPath = this.target === "draft-2020-12" ? "items" : this.target === "openapi-3.0" ? "items" : "additionalItems"; + const prefixItems = def.items.map((x, i) => this.process(x, { + ...params, + path: [ + ...params.path, + prefixPath, + i + ] + })); + const rest = def.rest ? this.process(def.rest, { + ...params, + path: [ + ...params.path, + restPath, + ...this.target === "openapi-3.0" ? [def.items.length] : [] + ] + }) : null; + if (this.target === "draft-2020-12") { + json.prefixItems = prefixItems; + if (rest) json.items = rest; + } else if (this.target === "openapi-3.0") { + json.items = { anyOf: prefixItems }; + if (rest) json.items.anyOf.push(rest); + json.minItems = prefixItems.length; + if (!rest) json.maxItems = prefixItems.length; + } else { + json.items = prefixItems; + if (rest) json.additionalItems = rest; + } + const { minimum, maximum } = schema._zod.bag; + if (typeof minimum === "number") json.minItems = minimum; + if (typeof maximum === "number") json.maxItems = maximum; + break; + } + case "record": { + const json = _json; + json.type = "object"; + if (this.target === "draft-7" || this.target === "draft-2020-12") json.propertyNames = this.process(def.keyType, { + ...params, + path: [...params.path, "propertyNames"] + }); + json.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 json = _json; + const values = getEnumValues(def.entries); + if (values.every((v) => typeof v === "number")) json.type = "number"; + if (values.every((v) => typeof v === "string")) json.type = "string"; + json.enum = values; + break; + } + case "literal": { + const json = _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 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]; + json.type = val === null ? "null" : typeof val; + if (this.target === "draft-4" || this.target === "openapi-3.0") json.enum = [val]; + else json.const = val; + } else { + if (vals.every((v) => typeof v === "number")) json.type = "number"; + if (vals.every((v) => typeof v === "string")) json.type = "string"; + if (vals.every((v) => typeof v === "boolean")) json.type = "string"; + if (vals.every((v) => v === null)) json.type = "null"; + json.enum = vals; + } + break; + } + case "file": { + const json = _json; + const file = { + type: "string", + format: "binary", + contentEncoding: "binary" + }; + const { minimum, maximum, mime } = schema._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(json, file); + } else json.anyOf = mime.map((m) => { + return { + ...file, + contentMediaType: m + }; + }); + else Object.assign(json, 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); + if (this.target === "openapi-3.0") { + result.ref = def.innerType; + _json.nullable = true; + } else _json.anyOf = [inner, { type: "null" }]; + break; + } + case "nonoptional": + this.process(def.innerType, params); + result.ref = def.innerType; + break; + case "success": { + const json = _json; + json.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 json = _json; + const pattern = schema._zod.pattern; + if (!pattern) throw new Error("Pattern not found in template literal"); + json.type = "string"; + json.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; + 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 = schema._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; + case "function": + if (this.unrepresentable === "throw") throw new Error("Function types cannot be represented in JSON Schema"); + break; + default: + } + } + } + const meta = this.metadataRegistry.get(schema); + if (meta) Object.assign(result.schema, meta); + if (this.io === "input" && isTransforming(schema)) { + 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; + return this.seen.get(schema).schema; + } + emit(schema, _params) { + const params = { + cycles: _params?.cycles ?? "ref", + reused: _params?.reused ?? "inline", + external: _params?.external ?? void 0 + }; + const root = this.seen.get(schema); + if (!root) 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 ?? ((id) => id); + 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] === root) return { ref: "#" }; + const defUriPrefix = `#/${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 schema = seen.schema; + for (const key in schema) delete schema[key]; + schema.$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 (schema === entry[0]) { + extractToDef(entry); + continue; + } + if (params.external) { + const ext = params.external.registry.get(entry[0])?.id; + if (schema !== entry[0] && ext) { + extractToDef(entry); + continue; + } + } + if (this.metadataRegistry.get(entry[0])?.id) { + extractToDef(entry); + continue; + } + if (seen.cycle) { + extractToDef(entry); + continue; + } + if (seen.count > 1) { + if (params.reused === "ref") { + extractToDef(entry); + continue; + } + } + } + const flattenRef = (zodSchema, params) => { + const seen = this.seen.get(zodSchema); + const schema = seen.def ?? seen.schema; + const _cached = { ...schema }; + if (seen.ref === null) return; + const ref = seen.ref; + seen.ref = null; + if (ref) { + flattenRef(ref, params); + const refSchema = this.seen.get(ref).schema; + if (refSchema.$ref && (params.target === "draft-7" || params.target === "draft-4" || params.target === "openapi-3.0")) { + schema.allOf = schema.allOf ?? []; + schema.allOf.push(refSchema); + } else { + Object.assign(schema, refSchema); + Object.assign(schema, _cached); + } + } + if (!seen.isParent) this.override({ + zodSchema, + jsonSchema: schema, + 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 if (this.target === "draft-4") result.$schema = "http://json-schema.org/draft-04/schema#"; + else if (this.target === "openapi-3.0") {} else console.warn(`Invalid target: ${this.target}`); + if (params.external?.uri) { + const id = params.external.registry.get(schema)?.id; + if (!id) throw new Error("Schema is missing an `id` property"); + result.$id = params.external.uri(id); + } + Object.assign(result, root.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."); + } + } +}; +function toJSONSchema(input, _params) { + if (input instanceof $ZodRegistry) { + const gen = new JSONSchemaGenerator(_params); + const defs = {}; + for (const entry of input._idmap.entries()) { + const [_, schema] = entry; + gen.process(schema); + } + const schemas = {}; + const external = { + registry: input, + uri: _params?.uri, + defs + }; + for (const entry of input._idmap.entries()) { + const [key, schema] = entry; + schemas[key] = gen.emit(schema, { + ..._params, + external + }); + } + if (Object.keys(defs).length > 0) schemas.__shared = { [gen.target === "draft-2020-12" ? "$defs" : "definitions"]: 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 def = _schema._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); + 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; + case "function": return false; + default: + } + throw new Error(`Unknown schema type: ${def.type}`); +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/json-schema.js +var json_schema_exports = /* @__PURE__ */ __exportAll({}); +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/index.js +var core_exports = /* @__PURE__ */ __exportAll({ + $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, + $ZodCodec: () => $ZodCodec, + $ZodCustom: () => $ZodCustom, + $ZodCustomStringFormat: () => $ZodCustomStringFormat, + $ZodDate: () => $ZodDate, + $ZodDefault: () => $ZodDefault, + $ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion, + $ZodE164: () => $ZodE164, + $ZodEmail: () => $ZodEmail, + $ZodEmoji: () => $ZodEmoji, + $ZodEncodeError: () => $ZodEncodeError, + $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, + $ZodObjectJIT: () => $ZodObjectJIT, + $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: () => NEVER, + TimePrecision: () => TimePrecision, + _any: () => _any, + _array: () => _array, + _base64: () => _base64, + _base64url: () => _base64url, + _bigint: () => _bigint, + _boolean: () => _boolean, + _catch: () => _catch$1, + _check: () => _check, + _cidrv4: () => _cidrv4, + _cidrv6: () => _cidrv6, + _coercedBigint: () => _coercedBigint, + _coercedBoolean: () => _coercedBoolean, + _coercedDate: () => _coercedDate, + _coercedNumber: () => _coercedNumber, + _coercedString: () => _coercedString, + _cuid: () => _cuid, + _cuid2: () => _cuid2, + _custom: () => _custom, + _date: () => _date, + _decode: () => _decode, + _decodeAsync: () => _decodeAsync, + _default: () => _default$1, + _discriminatedUnion: () => _discriminatedUnion, + _e164: () => _e164, + _email: () => _email, + _emoji: () => _emoji, + _encode: () => _encode, + _encodeAsync: () => _encodeAsync, + _endsWith: () => _endsWith, + _enum: () => _enum$1, + _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: () => _null$1, + _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, + _safeDecode: () => _safeDecode, + _safeDecodeAsync: () => _safeDecodeAsync, + _safeEncode: () => _safeEncode, + _safeEncodeAsync: () => _safeEncodeAsync, + _safeParse: () => _safeParse, + _safeParseAsync: () => _safeParseAsync, + _set: () => _set, + _size: () => _size, + _startsWith: () => _startsWith, + _string: () => _string, + _stringFormat: () => _stringFormat, + _stringbool: () => _stringbool, + _success: () => _success, + _superRefine: () => _superRefine, + _symbol: () => _symbol, + _templateLiteral: () => _templateLiteral, + _toLowerCase: () => _toLowerCase, + _toUpperCase: () => _toUpperCase, + _transform: () => _transform, + _trim: () => _trim, + _tuple: () => _tuple, + _uint32: () => _uint32, + _uint64: () => _uint64, + _ulid: () => _ulid, + _undefined: () => _undefined$1, + _union: () => _union, + _unknown: () => _unknown, + _uppercase: () => _uppercase, + _url: () => _url, + _uuid: () => _uuid, + _uuidv4: () => _uuidv4, + _uuidv6: () => _uuidv6, + _uuidv7: () => _uuidv7, + _void: () => _void$1, + _xid: () => _xid, + clone: () => clone, + config: () => config, + decode: () => decode$1, + decodeAsync: () => decodeAsync$1, + encode: () => encode$1, + encodeAsync: () => encodeAsync$1, + flattenError: () => flattenError, + formatError: () => formatError, + globalConfig: () => globalConfig, + globalRegistry: () => globalRegistry, + isValidBase64: () => isValidBase64, + isValidBase64URL: () => isValidBase64URL, + isValidJWT: () => isValidJWT, + locales: () => locales_exports, + parse: () => parse$1, + parseAsync: () => parseAsync$1, + prettifyError: () => prettifyError, + regexes: () => regexes_exports, + registry: () => registry, + safeDecode: () => safeDecode$1, + safeDecodeAsync: () => safeDecodeAsync$1, + safeEncode: () => safeEncode$1, + safeEncodeAsync: () => safeEncodeAsync$1, + safeParse: () => safeParse$1, + safeParseAsync: () => safeParseAsync$1, + toDotPath: () => toDotPath, + toJSONSchema: () => toJSONSchema, + treeifyError: () => treeifyError, + util: () => util_exports, + version: () => version +}); +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/iso.js +var iso_exports = /* @__PURE__ */ __exportAll({ + ZodISODate: () => ZodISODate, + ZodISODateTime: () => ZodISODateTime, + ZodISODuration: () => ZodISODuration, + ZodISOTime: () => ZodISOTime, + date: () => date$2, + datetime: () => datetime, + duration: () => duration, + time: () => time +}); +const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => { + $ZodISODateTime.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function datetime(params) { + return _isoDateTime(ZodISODateTime, params); +} +const ZodISODate = /*@__PURE__*/ $constructor("ZodISODate", (inst, def) => { + $ZodISODate.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function date$2(params) { + return _isoDate(ZodISODate, params); +} +const ZodISOTime = /*@__PURE__*/ $constructor("ZodISOTime", (inst, def) => { + $ZodISOTime.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function time(params) { + return _isoTime(ZodISOTime, params); +} +const ZodISODuration = /*@__PURE__*/ $constructor("ZodISODuration", (inst, def) => { + $ZodISODuration.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function duration(params) { + return _isoDuration(ZodISODuration, params); +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/errors.js +const initializer = (inst, issues) => { + $ZodError.init(inst, issues); + inst.name = "ZodError"; + Object.defineProperties(inst, { + format: { value: (mapper) => formatError(inst, mapper) }, + flatten: { value: (mapper) => flattenError(inst, mapper) }, + addIssue: { value: (issue) => { + inst.issues.push(issue); + inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2); + } }, + addIssues: { value: (issues) => { + inst.issues.push(...issues); + inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2); + } }, + isEmpty: { get() { + return inst.issues.length === 0; + } } + }); +}; +const ZodError = $constructor("ZodError", initializer); +const ZodRealError = $constructor("ZodError", initializer, { Parent: Error }); +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/parse.js +const parse = /* @__PURE__ */ _parse(ZodRealError); +const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError); +const safeParse = /* @__PURE__ */ _safeParse(ZodRealError); +const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError); +const encode = /* @__PURE__ */ _encode(ZodRealError); +const decode = /* @__PURE__ */ _decode(ZodRealError); +const encodeAsync = /* @__PURE__ */ _encodeAsync(ZodRealError); +const decodeAsync = /* @__PURE__ */ _decodeAsync(ZodRealError); +const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError); +const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError); +const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError); +const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError); +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/schemas.js +const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => { + $ZodType.init(inst, def); + inst.def = def; + inst.type = def.type; + Object.defineProperty(inst, "_def", { value: def }); + inst.check = (...checks) => { + return inst.clone({ + ...def, + checks: [...def.checks ?? [], ...checks.map((ch) => typeof ch === "function" ? { _zod: { + check: ch, + def: { check: "custom" }, + onattach: [] + } } : ch)] + }); + }; + inst.clone = (def, params) => clone(inst, def, params); + inst.brand = () => inst; + inst.register = ((reg, meta) => { + reg.add(inst, meta); + return inst; + }); + inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse }); + inst.safeParse = (data, params) => safeParse(inst, data, params); + inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync }); + inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params); + inst.spa = inst.safeParseAsync; + inst.encode = (data, params) => encode(inst, data, params); + inst.decode = (data, params) => decode(inst, data, params); + inst.encodeAsync = async (data, params) => encodeAsync(inst, data, params); + inst.decodeAsync = async (data, params) => decodeAsync(inst, data, params); + inst.safeEncode = (data, params) => safeEncode(inst, data, params); + inst.safeDecode = (data, params) => safeDecode(inst, data, params); + inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params); + inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params); + inst.refine = (check, params) => inst.check(refine(check, params)); + inst.superRefine = (refinement) => inst.check(superRefine(refinement)); + inst.overwrite = (fn) => inst.check(_overwrite(fn)); + inst.optional = () => optional(inst); + inst.nullable = () => nullable(inst); + inst.nullish = () => optional(nullable(inst)); + inst.nonoptional = (params) => nonoptional(inst, params); + inst.array = () => array(inst); + inst.or = (arg) => union([inst, arg]); + inst.and = (arg) => intersection(inst, arg); + inst.transform = (tx) => pipe(inst, transform(tx)); + inst.default = (def) => _default(inst, def); + inst.prefault = (def) => prefault(inst, def); + inst.catch = (params) => _catch(inst, params); + inst.pipe = (target) => pipe(inst, target); + inst.readonly = () => readonly(inst); + inst.describe = (description) => { + const cl = inst.clone(); + globalRegistry.add(cl, { description }); + return cl; + }; + Object.defineProperty(inst, "description", { + get() { + return globalRegistry.get(inst)?.description; + }, + configurable: true + }); + inst.meta = (...args) => { + if (args.length === 0) return globalRegistry.get(inst); + const cl = inst.clone(); + globalRegistry.add(cl, args[0]); + return cl; + }; + inst.isOptional = () => inst.safeParse(void 0).success; + inst.isNullable = () => inst.safeParse(null).success; + return inst; +}); +/** @internal */ +const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => { + $ZodString.init(inst, def); + ZodType.init(inst, def); + const bag = inst._zod.bag; + inst.format = bag.format ?? null; + inst.minLength = bag.minimum ?? null; + inst.maxLength = bag.maximum ?? null; + inst.regex = (...args) => inst.check(_regex(...args)); + inst.includes = (...args) => inst.check(_includes(...args)); + inst.startsWith = (...args) => inst.check(_startsWith(...args)); + inst.endsWith = (...args) => inst.check(_endsWith(...args)); + inst.min = (...args) => inst.check(_minLength(...args)); + inst.max = (...args) => inst.check(_maxLength(...args)); + inst.length = (...args) => inst.check(_length(...args)); + inst.nonempty = (...args) => inst.check(_minLength(1, ...args)); + inst.lowercase = (params) => inst.check(_lowercase(params)); + inst.uppercase = (params) => inst.check(_uppercase(params)); + inst.trim = () => inst.check(_trim()); + inst.normalize = (...args) => inst.check(_normalize(...args)); + inst.toLowerCase = () => inst.check(_toLowerCase()); + inst.toUpperCase = () => inst.check(_toUpperCase()); +}); +const ZodString = /*@__PURE__*/ $constructor("ZodString", (inst, def) => { + $ZodString.init(inst, def); + _ZodString.init(inst, def); + inst.email = (params) => inst.check(_email(ZodEmail, params)); + inst.url = (params) => inst.check(_url(ZodURL, params)); + inst.jwt = (params) => inst.check(_jwt(ZodJWT, params)); + inst.emoji = (params) => inst.check(_emoji(ZodEmoji, params)); + inst.guid = (params) => inst.check(_guid(ZodGUID, params)); + inst.uuid = (params) => inst.check(_uuid(ZodUUID, params)); + inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params)); + inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params)); + inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params)); + inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params)); + inst.guid = (params) => inst.check(_guid(ZodGUID, params)); + inst.cuid = (params) => inst.check(_cuid(ZodCUID, params)); + inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params)); + inst.ulid = (params) => inst.check(_ulid(ZodULID, params)); + inst.base64 = (params) => inst.check(_base64(ZodBase64, params)); + inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params)); + inst.xid = (params) => inst.check(_xid(ZodXID, params)); + inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params)); + inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params)); + inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params)); + inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params)); + inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params)); + inst.e164 = (params) => inst.check(_e164(ZodE164, params)); + inst.datetime = (params) => inst.check(datetime(params)); + inst.date = (params) => inst.check(date$2(params)); + inst.time = (params) => inst.check(time(params)); + inst.duration = (params) => inst.check(duration(params)); +}); +function string$1(params) { + return _string(ZodString, params); +} +const ZodStringFormat = /*@__PURE__*/ $constructor("ZodStringFormat", (inst, def) => { + $ZodStringFormat.init(inst, def); + _ZodString.init(inst, def); +}); +const ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => { + $ZodEmail.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function email(params) { + return _email(ZodEmail, params); +} +const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => { + $ZodGUID.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function guid(params) { + return _guid(ZodGUID, params); +} +const ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => { + $ZodUUID.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function uuid(params) { + return _uuid(ZodUUID, params); +} +function uuidv4(params) { + return _uuidv4(ZodUUID, params); +} +function uuidv6(params) { + return _uuidv6(ZodUUID, params); +} +function uuidv7(params) { + return _uuidv7(ZodUUID, params); +} +const ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => { + $ZodURL.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function url(params) { + return _url(ZodURL, params); +} +function httpUrl(params) { + return _url(ZodURL, { + protocol: /^https?$/, + hostname: domain, + ...normalizeParams(params) + }); +} +const ZodEmoji = /*@__PURE__*/ $constructor("ZodEmoji", (inst, def) => { + $ZodEmoji.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function emoji(params) { + return _emoji(ZodEmoji, params); +} +const ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => { + $ZodNanoID.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function nanoid(params) { + return _nanoid(ZodNanoID, params); +} +const ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => { + $ZodCUID.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function cuid(params) { + return _cuid(ZodCUID, params); +} +const ZodCUID2 = /*@__PURE__*/ $constructor("ZodCUID2", (inst, def) => { + $ZodCUID2.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function cuid2(params) { + return _cuid2(ZodCUID2, params); +} +const ZodULID = /*@__PURE__*/ $constructor("ZodULID", (inst, def) => { + $ZodULID.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function ulid(params) { + return _ulid(ZodULID, params); +} +const ZodXID = /*@__PURE__*/ $constructor("ZodXID", (inst, def) => { + $ZodXID.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function xid(params) { + return _xid(ZodXID, params); +} +const ZodKSUID = /*@__PURE__*/ $constructor("ZodKSUID", (inst, def) => { + $ZodKSUID.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function ksuid(params) { + return _ksuid(ZodKSUID, params); +} +const ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => { + $ZodIPv4.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function ipv4(params) { + return _ipv4(ZodIPv4, params); +} +const ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => { + $ZodIPv6.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function ipv6(params) { + return _ipv6(ZodIPv6, params); +} +const ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => { + $ZodCIDRv4.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function cidrv4(params) { + return _cidrv4(ZodCIDRv4, params); +} +const ZodCIDRv6 = /*@__PURE__*/ $constructor("ZodCIDRv6", (inst, def) => { + $ZodCIDRv6.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function cidrv6(params) { + return _cidrv6(ZodCIDRv6, params); +} +const ZodBase64 = /*@__PURE__*/ $constructor("ZodBase64", (inst, def) => { + $ZodBase64.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function base64(params) { + return _base64(ZodBase64, params); +} +const ZodBase64URL = /*@__PURE__*/ $constructor("ZodBase64URL", (inst, def) => { + $ZodBase64URL.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function base64url(params) { + return _base64url(ZodBase64URL, params); +} +const ZodE164 = /*@__PURE__*/ $constructor("ZodE164", (inst, def) => { + $ZodE164.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function e164(params) { + return _e164(ZodE164, params); +} +const ZodJWT = /*@__PURE__*/ $constructor("ZodJWT", (inst, def) => { + $ZodJWT.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function jwt(params) { + return _jwt(ZodJWT, params); +} +const ZodCustomStringFormat = /*@__PURE__*/ $constructor("ZodCustomStringFormat", (inst, def) => { + $ZodCustomStringFormat.init(inst, def); + ZodStringFormat.init(inst, def); +}); +function stringFormat(format, fnOrRegex, _params = {}) { + return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params); +} +function hostname(_params) { + return _stringFormat(ZodCustomStringFormat, "hostname", hostname$1, _params); +} +function hex(_params) { + return _stringFormat(ZodCustomStringFormat, "hex", hex$1, _params); +} +function hash(alg, params) { + const format = `${alg}_${params?.enc ?? "hex"}`; + const regex = regexes_exports[format]; + if (!regex) throw new Error(`Unrecognized hash format: ${format}`); + return _stringFormat(ZodCustomStringFormat, format, regex, params); +} +const ZodNumber = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => { + $ZodNumber.init(inst, def); + ZodType.init(inst, def); + inst.gt = (value, params) => inst.check(_gt(value, params)); + inst.gte = (value, params) => inst.check(_gte(value, params)); + inst.min = (value, params) => inst.check(_gte(value, params)); + inst.lt = (value, params) => inst.check(_lt(value, params)); + inst.lte = (value, params) => inst.check(_lte(value, params)); + inst.max = (value, params) => inst.check(_lte(value, params)); + inst.int = (params) => inst.check(int(params)); + inst.safe = (params) => inst.check(int(params)); + inst.positive = (params) => inst.check(_gt(0, params)); + inst.nonnegative = (params) => inst.check(_gte(0, params)); + inst.negative = (params) => inst.check(_lt(0, params)); + inst.nonpositive = (params) => inst.check(_lte(0, params)); + inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params)); + inst.step = (value, params) => inst.check(_multipleOf(value, params)); + inst.finite = () => inst; + const bag = inst._zod.bag; + inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null; + inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null; + inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? .5); + inst.isFinite = true; + inst.format = bag.format ?? null; +}); +function number$1(params) { + return _number(ZodNumber, params); +} +const ZodNumberFormat = /*@__PURE__*/ $constructor("ZodNumberFormat", (inst, def) => { + $ZodNumberFormat.init(inst, def); + ZodNumber.init(inst, def); +}); +function int(params) { + return _int(ZodNumberFormat, params); +} +function float32(params) { + return _float32(ZodNumberFormat, params); +} +function float64(params) { + return _float64(ZodNumberFormat, params); +} +function int32(params) { + return _int32(ZodNumberFormat, params); +} +function uint32(params) { + return _uint32(ZodNumberFormat, params); +} +const ZodBoolean = /*@__PURE__*/ $constructor("ZodBoolean", (inst, def) => { + $ZodBoolean.init(inst, def); + ZodType.init(inst, def); +}); +function boolean$1(params) { + return _boolean(ZodBoolean, params); +} +const ZodBigInt = /*@__PURE__*/ $constructor("ZodBigInt", (inst, def) => { + $ZodBigInt.init(inst, def); + ZodType.init(inst, def); + inst.gte = (value, params) => inst.check(_gte(value, params)); + inst.min = (value, params) => inst.check(_gte(value, params)); + inst.gt = (value, params) => inst.check(_gt(value, params)); + inst.gte = (value, params) => inst.check(_gte(value, params)); + inst.min = (value, params) => inst.check(_gte(value, params)); + inst.lt = (value, params) => inst.check(_lt(value, params)); + inst.lte = (value, params) => inst.check(_lte(value, params)); + inst.max = (value, params) => inst.check(_lte(value, params)); + inst.positive = (params) => inst.check(_gt(BigInt(0), params)); + inst.negative = (params) => inst.check(_lt(BigInt(0), params)); + inst.nonpositive = (params) => inst.check(_lte(BigInt(0), params)); + inst.nonnegative = (params) => inst.check(_gte(BigInt(0), params)); + inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params)); + const bag = inst._zod.bag; + inst.minValue = bag.minimum ?? null; + inst.maxValue = bag.maximum ?? null; + inst.format = bag.format ?? null; +}); +function bigint$1(params) { + return _bigint(ZodBigInt, params); +} +const ZodBigIntFormat = /*@__PURE__*/ $constructor("ZodBigIntFormat", (inst, def) => { + $ZodBigIntFormat.init(inst, def); + ZodBigInt.init(inst, def); +}); +function int64(params) { + return _int64(ZodBigIntFormat, params); +} +function uint64(params) { + return _uint64(ZodBigIntFormat, params); +} +const ZodSymbol = /*@__PURE__*/ $constructor("ZodSymbol", (inst, def) => { + $ZodSymbol.init(inst, def); + ZodType.init(inst, def); +}); +function symbol(params) { + return _symbol(ZodSymbol, params); +} +const ZodUndefined = /*@__PURE__*/ $constructor("ZodUndefined", (inst, def) => { + $ZodUndefined.init(inst, def); + ZodType.init(inst, def); +}); +function _undefined(params) { + return _undefined$1(ZodUndefined, params); +} +const ZodNull = /*@__PURE__*/ $constructor("ZodNull", (inst, def) => { + $ZodNull.init(inst, def); + ZodType.init(inst, def); +}); +function _null(params) { + return _null$1(ZodNull, params); +} +const ZodAny = /*@__PURE__*/ $constructor("ZodAny", (inst, def) => { + $ZodAny.init(inst, def); + ZodType.init(inst, def); +}); +function any() { + return _any(ZodAny); +} +const ZodUnknown = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => { + $ZodUnknown.init(inst, def); + ZodType.init(inst, def); +}); +function unknown() { + return _unknown(ZodUnknown); +} +const ZodNever = /*@__PURE__*/ $constructor("ZodNever", (inst, def) => { + $ZodNever.init(inst, def); + ZodType.init(inst, def); +}); +function never(params) { + return _never(ZodNever, params); +} +const ZodVoid = /*@__PURE__*/ $constructor("ZodVoid", (inst, def) => { + $ZodVoid.init(inst, def); + ZodType.init(inst, def); +}); +function _void(params) { + return _void$1(ZodVoid, params); +} +const ZodDate = /*@__PURE__*/ $constructor("ZodDate", (inst, def) => { + $ZodDate.init(inst, def); + ZodType.init(inst, def); + inst.min = (value, params) => inst.check(_gte(value, params)); + inst.max = (value, params) => inst.check(_lte(value, params)); + const c = inst._zod.bag; + inst.minDate = c.minimum ? new Date(c.minimum) : null; + inst.maxDate = c.maximum ? new Date(c.maximum) : null; +}); +function date$1(params) { + return _date(ZodDate, params); +} +const ZodArray = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => { + $ZodArray.init(inst, def); + ZodType.init(inst, def); + inst.element = def.element; + inst.min = (minLength, params) => inst.check(_minLength(minLength, params)); + inst.nonempty = (params) => inst.check(_minLength(1, params)); + inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params)); + inst.length = (len, params) => inst.check(_length(len, params)); + inst.unwrap = () => inst.element; +}); +function array(element, params) { + return _array(ZodArray, element, params); +} +function keyof(schema) { + const shape = schema._zod.def.shape; + return _enum(Object.keys(shape)); +} +const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => { + $ZodObjectJIT.init(inst, def); + ZodType.init(inst, def); + defineLazy(inst, "shape", () => def.shape); + inst.keyof = () => _enum(Object.keys(inst._zod.def.shape)); + inst.catchall = (catchall) => inst.clone({ + ...inst._zod.def, + catchall + }); + inst.passthrough = () => inst.clone({ + ...inst._zod.def, + catchall: unknown() + }); + inst.loose = () => inst.clone({ + ...inst._zod.def, + catchall: unknown() + }); + inst.strict = () => inst.clone({ + ...inst._zod.def, + catchall: never() + }); + inst.strip = () => inst.clone({ + ...inst._zod.def, + catchall: void 0 + }); + inst.extend = (incoming) => { + return extend(inst, incoming); + }; + inst.safeExtend = (incoming) => { + return safeExtend(inst, incoming); + }; + inst.merge = (other) => merge(inst, other); + inst.pick = (mask) => pick(inst, mask); + inst.omit = (mask) => omit(inst, mask); + inst.partial = (...args) => partial(ZodOptional, inst, args[0]); + inst.required = (...args) => required(ZodNonOptional, inst, args[0]); +}); +function object(shape, params) { + const def = { + type: "object", + get shape() { + assignProp(this, "shape", shape ? objectClone(shape) : {}); + return this.shape; + }, + ...normalizeParams(params) + }; + return new ZodObject(def); +} +function strictObject(shape, params) { + return new ZodObject({ + type: "object", + get shape() { + assignProp(this, "shape", objectClone(shape)); + return this.shape; + }, + catchall: never(), + ...normalizeParams(params) + }); +} +function looseObject(shape, params) { + return new ZodObject({ + type: "object", + get shape() { + assignProp(this, "shape", objectClone(shape)); + return this.shape; + }, + catchall: unknown(), + ...normalizeParams(params) + }); +} +const ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => { + $ZodUnion.init(inst, def); + ZodType.init(inst, def); + inst.options = def.options; +}); +function union(options, params) { + return new ZodUnion({ + type: "union", + options, + ...normalizeParams(params) + }); +} +const ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (inst, def) => { + ZodUnion.init(inst, def); + $ZodDiscriminatedUnion.init(inst, def); +}); +function discriminatedUnion(discriminator, options, params) { + return new ZodDiscriminatedUnion({ + type: "union", + options, + discriminator, + ...normalizeParams(params) + }); +} +const ZodIntersection = /*@__PURE__*/ $constructor("ZodIntersection", (inst, def) => { + $ZodIntersection.init(inst, def); + ZodType.init(inst, def); +}); +function intersection(left, right) { + return new ZodIntersection({ + type: "intersection", + left, + right + }); +} +const ZodTuple = /*@__PURE__*/ $constructor("ZodTuple", (inst, def) => { + $ZodTuple.init(inst, def); + ZodType.init(inst, def); + inst.rest = (rest) => inst.clone({ + ...inst._zod.def, + rest + }); +}); +function tuple(items, _paramsOrRest, _params) { + const hasRest = _paramsOrRest instanceof $ZodType; + return new ZodTuple({ + type: "tuple", + items, + rest: hasRest ? _paramsOrRest : null, + ...normalizeParams(hasRest ? _params : _paramsOrRest) + }); +} +const ZodRecord = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => { + $ZodRecord.init(inst, def); + ZodType.init(inst, def); + inst.keyType = def.keyType; + inst.valueType = def.valueType; +}); +function record(keyType, valueType, params) { + return new ZodRecord({ + type: "record", + keyType, + valueType, + ...normalizeParams(params) + }); +} +function partialRecord(keyType, valueType, params) { + const k = clone(keyType); + k._zod.values = void 0; + return new ZodRecord({ + type: "record", + keyType: k, + valueType, + ...normalizeParams(params) + }); +} +const ZodMap = /*@__PURE__*/ $constructor("ZodMap", (inst, def) => { + $ZodMap.init(inst, def); + ZodType.init(inst, def); + inst.keyType = def.keyType; + inst.valueType = def.valueType; +}); +function map(keyType, valueType, params) { + return new ZodMap({ + type: "map", + keyType, + valueType, + ...normalizeParams(params) + }); +} +const ZodSet = /*@__PURE__*/ $constructor("ZodSet", (inst, def) => { + $ZodSet.init(inst, def); + ZodType.init(inst, def); + inst.min = (...args) => inst.check(_minSize(...args)); + inst.nonempty = (params) => inst.check(_minSize(1, params)); + inst.max = (...args) => inst.check(_maxSize(...args)); + inst.size = (...args) => inst.check(_size(...args)); +}); +function set(valueType, params) { + return new ZodSet({ + type: "set", + valueType, + ...normalizeParams(params) + }); +} +const ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => { + $ZodEnum.init(inst, def); + ZodType.init(inst, def); + inst.enum = def.entries; + inst.options = Object.values(def.entries); + const keys = new Set(Object.keys(def.entries)); + inst.extract = (values, params) => { + const newEntries = {}; + for (const value of values) if (keys.has(value)) newEntries[value] = def.entries[value]; + else throw new Error(`Key ${value} not found in enum`); + return new ZodEnum({ + ...def, + checks: [], + ...normalizeParams(params), + entries: newEntries + }); + }; + inst.exclude = (values, params) => { + const newEntries = { ...def.entries }; + for (const value of values) if (keys.has(value)) delete newEntries[value]; + else throw new Error(`Key ${value} not found in enum`); + return new ZodEnum({ + ...def, + checks: [], + ...normalizeParams(params), + entries: newEntries + }); + }; +}); +function _enum(values, params) { + const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values; + return new ZodEnum({ + type: "enum", + entries, + ...normalizeParams(params) + }); +} +/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead. +* +* ```ts +* enum Colors { red, green, blue } +* z.enum(Colors); +* ``` +*/ +function nativeEnum(entries, params) { + return new ZodEnum({ + type: "enum", + entries, + ...normalizeParams(params) + }); +} +const ZodLiteral = /*@__PURE__*/ $constructor("ZodLiteral", (inst, def) => { + $ZodLiteral.init(inst, def); + ZodType.init(inst, def); + inst.values = new Set(def.values); + Object.defineProperty(inst, "value", { get() { + if (def.values.length > 1) throw new Error("This schema contains multiple valid literal values. Use `.values` instead."); + return def.values[0]; + } }); +}); +function literal(value, params) { + return new ZodLiteral({ + type: "literal", + values: Array.isArray(value) ? value : [value], + ...normalizeParams(params) + }); +} +const ZodFile = /*@__PURE__*/ $constructor("ZodFile", (inst, def) => { + $ZodFile.init(inst, def); + ZodType.init(inst, def); + inst.min = (size, params) => inst.check(_minSize(size, params)); + inst.max = (size, params) => inst.check(_maxSize(size, params)); + inst.mime = (types, params) => inst.check(_mime(Array.isArray(types) ? types : [types], params)); +}); +function file(params) { + return _file(ZodFile, params); +} +const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => { + $ZodTransform.init(inst, def); + ZodType.init(inst, def); + inst._zod.parse = (payload, _ctx) => { + if (_ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name); + payload.addIssue = (issue$1) => { + if (typeof issue$1 === "string") payload.issues.push(issue(issue$1, payload.value, def)); + else { + const _issue = issue$1; + if (_issue.fatal) _issue.continue = false; + _issue.code ?? (_issue.code = "custom"); + _issue.input ?? (_issue.input = payload.value); + _issue.inst ?? (_issue.inst = inst); + payload.issues.push(issue(_issue)); + } + }; + const output = def.transform(payload.value, payload); + if (output instanceof Promise) return output.then((output) => { + payload.value = output; + return payload; + }); + payload.value = output; + return payload; + }; +}); +function transform(fn) { + return new ZodTransform({ + type: "transform", + transform: fn + }); +} +const ZodOptional = /*@__PURE__*/ $constructor("ZodOptional", (inst, def) => { + $ZodOptional.init(inst, def); + ZodType.init(inst, def); + inst.unwrap = () => inst._zod.def.innerType; +}); +function optional(innerType) { + return new ZodOptional({ + type: "optional", + innerType + }); +} +const ZodNullable = /*@__PURE__*/ $constructor("ZodNullable", (inst, def) => { + $ZodNullable.init(inst, def); + ZodType.init(inst, def); + inst.unwrap = () => inst._zod.def.innerType; +}); +function nullable(innerType) { + return new ZodNullable({ + type: "nullable", + innerType + }); +} +function nullish(innerType) { + return optional(nullable(innerType)); +} +const ZodDefault = /*@__PURE__*/ $constructor("ZodDefault", (inst, def) => { + $ZodDefault.init(inst, def); + ZodType.init(inst, def); + inst.unwrap = () => inst._zod.def.innerType; + inst.removeDefault = inst.unwrap; +}); +function _default(innerType, defaultValue) { + return new ZodDefault({ + type: "default", + innerType, + get defaultValue() { + return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue); + } + }); +} +const ZodPrefault = /*@__PURE__*/ $constructor("ZodPrefault", (inst, def) => { + $ZodPrefault.init(inst, def); + ZodType.init(inst, def); + inst.unwrap = () => inst._zod.def.innerType; +}); +function prefault(innerType, defaultValue) { + return new ZodPrefault({ + type: "prefault", + innerType, + get defaultValue() { + return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue); + } + }); +} +const ZodNonOptional = /*@__PURE__*/ $constructor("ZodNonOptional", (inst, def) => { + $ZodNonOptional.init(inst, def); + ZodType.init(inst, def); + inst.unwrap = () => inst._zod.def.innerType; +}); +function nonoptional(innerType, params) { + return new ZodNonOptional({ + type: "nonoptional", + innerType, + ...normalizeParams(params) + }); +} +const ZodSuccess = /*@__PURE__*/ $constructor("ZodSuccess", (inst, def) => { + $ZodSuccess.init(inst, def); + ZodType.init(inst, def); + inst.unwrap = () => inst._zod.def.innerType; +}); +function success(innerType) { + return new ZodSuccess({ + type: "success", + innerType + }); +} +const ZodCatch = /*@__PURE__*/ $constructor("ZodCatch", (inst, def) => { + $ZodCatch.init(inst, def); + ZodType.init(inst, def); + inst.unwrap = () => inst._zod.def.innerType; + inst.removeCatch = inst.unwrap; +}); +function _catch(innerType, catchValue) { + return new ZodCatch({ + type: "catch", + innerType, + catchValue: typeof catchValue === "function" ? catchValue : () => catchValue + }); +} +const ZodNaN = /*@__PURE__*/ $constructor("ZodNaN", (inst, def) => { + $ZodNaN.init(inst, def); + ZodType.init(inst, def); +}); +function nan(params) { + return _nan(ZodNaN, params); +} +const ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => { + $ZodPipe.init(inst, def); + ZodType.init(inst, def); + inst.in = def.in; + inst.out = def.out; +}); +function pipe(in_, out) { + return new ZodPipe({ + type: "pipe", + in: in_, + out + }); +} +const ZodCodec = /*@__PURE__*/ $constructor("ZodCodec", (inst, def) => { + ZodPipe.init(inst, def); + $ZodCodec.init(inst, def); +}); +function codec(in_, out, params) { + return new ZodCodec({ + type: "pipe", + in: in_, + out, + transform: params.decode, + reverseTransform: params.encode + }); +} +const ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => { + $ZodReadonly.init(inst, def); + ZodType.init(inst, def); + inst.unwrap = () => inst._zod.def.innerType; +}); +function readonly(innerType) { + return new ZodReadonly({ + type: "readonly", + innerType + }); +} +const ZodTemplateLiteral = /*@__PURE__*/ $constructor("ZodTemplateLiteral", (inst, def) => { + $ZodTemplateLiteral.init(inst, def); + ZodType.init(inst, def); +}); +function templateLiteral(parts, params) { + return new ZodTemplateLiteral({ + type: "template_literal", + parts, + ...normalizeParams(params) + }); +} +const ZodLazy = /*@__PURE__*/ $constructor("ZodLazy", (inst, def) => { + $ZodLazy.init(inst, def); + ZodType.init(inst, def); + inst.unwrap = () => inst._zod.def.getter(); +}); +function lazy(getter) { + return new ZodLazy({ + type: "lazy", + getter + }); +} +const ZodPromise = /*@__PURE__*/ $constructor("ZodPromise", (inst, def) => { + $ZodPromise.init(inst, def); + ZodType.init(inst, def); + inst.unwrap = () => inst._zod.def.innerType; +}); +function promise(innerType) { + return new ZodPromise({ + type: "promise", + innerType + }); +} +const ZodFunction = /*@__PURE__*/ $constructor("ZodFunction", (inst, def) => { + $ZodFunction.init(inst, def); + ZodType.init(inst, def); +}); +function _function(params) { + return new ZodFunction({ + type: "function", + input: Array.isArray(params?.input) ? tuple(params?.input) : params?.input ?? array(unknown()), + output: params?.output ?? unknown() + }); +} +const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => { + $ZodCustom.init(inst, def); + ZodType.init(inst, def); +}); +function check(fn) { + const ch = new $ZodCheck({ check: "custom" }); + ch._zod.check = fn; + return ch; +} +function custom(fn, _params) { + return _custom(ZodCustom, fn ?? (() => true), _params); +} +function refine(fn, _params = {}) { + return _refine(ZodCustom, fn, _params); +} +function superRefine(fn) { + return _superRefine(fn); +} +function _instanceof(cls, params = { error: `Input not instance of ${cls.name}` }) { + const inst = new ZodCustom({ + type: "custom", + check: "custom", + fn: (data) => data instanceof cls, + abort: true, + ...normalizeParams(params) + }); + inst._zod.bag.Class = cls; + return inst; +} +const stringbool = (...args) => _stringbool({ + Codec: ZodCodec, + Boolean: ZodBoolean, + String: ZodString +}, ...args); +function json(params) { + const jsonSchema = lazy(() => { + return union([ + string$1(params), + number$1(), + boolean$1(), + _null(), + array(jsonSchema), + record(string$1(), jsonSchema) + ]); + }); + return jsonSchema; +} +function preprocess(fn, schema) { + return pipe(transform(fn), schema); +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/compat.js +/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */ +const ZodIssueCode = { + invalid_type: "invalid_type", + too_big: "too_big", + too_small: "too_small", + invalid_format: "invalid_format", + not_multiple_of: "not_multiple_of", + unrecognized_keys: "unrecognized_keys", + invalid_union: "invalid_union", + invalid_key: "invalid_key", + invalid_element: "invalid_element", + invalid_value: "invalid_value", + custom: "custom" +}; +/** @deprecated Use `z.config(params)` instead. */ +function setErrorMap(map) { + config({ customError: map }); +} +/** @deprecated Use `z.config()` instead. */ +function getErrorMap() { + return config().customError; +} +/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */ +var ZodFirstPartyTypeKind; +ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}); +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/coerce.js +var coerce_exports = /* @__PURE__ */ __exportAll({ + bigint: () => bigint, + boolean: () => boolean, + date: () => date, + number: () => number, + string: () => string +}); +function string(params) { + return _coercedString(ZodString, params); +} +function number(params) { + return _coercedNumber(ZodNumber, params); +} +function boolean(params) { + return _coercedBoolean(ZodBoolean, params); +} +function bigint(params) { + return _coercedBigint(ZodBigInt, params); +} +function date(params) { + return _coercedDate(ZodDate, params); +} +//#endregion +//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/external.js +var external_exports = /* @__PURE__ */ __exportAll({ + $brand: () => $brand, + $input: () => $input, + $output: () => $output, + NEVER: () => NEVER, + TimePrecision: () => TimePrecision, + ZodAny: () => ZodAny, + ZodArray: () => ZodArray, + ZodBase64: () => ZodBase64, + ZodBase64URL: () => ZodBase64URL, + ZodBigInt: () => ZodBigInt, + ZodBigIntFormat: () => ZodBigIntFormat, + ZodBoolean: () => ZodBoolean, + ZodCIDRv4: () => ZodCIDRv4, + ZodCIDRv6: () => ZodCIDRv6, + ZodCUID: () => ZodCUID, + ZodCUID2: () => ZodCUID2, + ZodCatch: () => ZodCatch, + ZodCodec: () => ZodCodec, + ZodCustom: () => ZodCustom, + ZodCustomStringFormat: () => ZodCustomStringFormat, + ZodDate: () => ZodDate, + ZodDefault: () => ZodDefault, + ZodDiscriminatedUnion: () => ZodDiscriminatedUnion, + ZodE164: () => ZodE164, + ZodEmail: () => ZodEmail, + ZodEmoji: () => ZodEmoji, + ZodEnum: () => ZodEnum, + ZodError: () => ZodError, + ZodFile: () => ZodFile, + ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind, + ZodFunction: () => ZodFunction, + ZodGUID: () => ZodGUID, + ZodIPv4: () => ZodIPv4, + ZodIPv6: () => ZodIPv6, + ZodISODate: () => ZodISODate, + ZodISODateTime: () => ZodISODateTime, + ZodISODuration: () => ZodISODuration, + ZodISOTime: () => ZodISOTime, + ZodIntersection: () => ZodIntersection, + ZodIssueCode: () => ZodIssueCode, + 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, + 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, + _ZodString: () => _ZodString, + _default: () => _default, + _function: () => _function, + any: () => any, + array: () => array, + base64: () => base64, + base64url: () => base64url, + bigint: () => bigint$1, + boolean: () => boolean$1, + catch: () => _catch, + check: () => check, + cidrv4: () => cidrv4, + cidrv6: () => cidrv6, + clone: () => clone, + codec: () => codec, + coerce: () => coerce_exports, + config: () => config, + core: () => core_exports, + cuid: () => cuid, + cuid2: () => cuid2, + custom: () => custom, + date: () => date$1, + decode: () => decode, + decodeAsync: () => decodeAsync, + discriminatedUnion: () => discriminatedUnion, + e164: () => e164, + email: () => email, + emoji: () => emoji, + encode: () => encode, + encodeAsync: () => encodeAsync, + endsWith: () => _endsWith, + enum: () => _enum, + file: () => file, + flattenError: () => flattenError, + float32: () => float32, + float64: () => float64, + formatError: () => formatError, + function: () => _function, + getErrorMap: () => getErrorMap, + globalRegistry: () => globalRegistry, + gt: () => _gt, + gte: () => _gte, + guid: () => guid, + hash: () => hash, + hex: () => hex, + hostname: () => hostname, + httpUrl: () => httpUrl, + includes: () => _includes, + instanceof: () => _instanceof, + int: () => int, + int32: () => int32, + int64: () => int64, + intersection: () => intersection, + ipv4: () => ipv4, + ipv6: () => ipv6, + iso: () => iso_exports, + json: () => json, + jwt: () => jwt, + keyof: () => keyof, + ksuid: () => ksuid, + lazy: () => lazy, + length: () => _length, + literal: () => literal, + locales: () => locales_exports, + looseObject: () => looseObject, + lowercase: () => _lowercase, + lt: () => _lt, + lte: () => _lte, + map: () => map, + maxLength: () => _maxLength, + maxSize: () => _maxSize, + mime: () => _mime, + 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: () => _null, + nullable: () => nullable, + nullish: () => nullish, + number: () => number$1, + object: () => object, + optional: () => optional, + overwrite: () => _overwrite, + parse: () => parse, + parseAsync: () => parseAsync, + partialRecord: () => partialRecord, + pipe: () => pipe, + positive: () => _positive, + prefault: () => prefault, + preprocess: () => preprocess, + prettifyError: () => prettifyError, + promise: () => promise, + property: () => _property, + readonly: () => readonly, + record: () => record, + refine: () => refine, + regex: () => _regex, + regexes: () => regexes_exports, + registry: () => registry, + safeDecode: () => safeDecode, + safeDecodeAsync: () => safeDecodeAsync, + safeEncode: () => safeEncode, + safeEncodeAsync: () => safeEncodeAsync, + safeParse: () => safeParse, + safeParseAsync: () => safeParseAsync, + set: () => set, + setErrorMap: () => setErrorMap, + size: () => _size, + startsWith: () => _startsWith, + strictObject: () => strictObject, + string: () => string$1, + stringFormat: () => stringFormat, + stringbool: () => stringbool, + success: () => success, + superRefine: () => superRefine, + symbol: () => symbol, + templateLiteral: () => templateLiteral, + toJSONSchema: () => toJSONSchema, + toLowerCase: () => _toLowerCase, + toUpperCase: () => _toUpperCase, + transform: () => transform, + treeifyError: () => treeifyError, + trim: () => _trim, + tuple: () => tuple, + uint32: () => uint32, + uint64: () => uint64, + ulid: () => ulid, + undefined: () => _undefined, + union: () => union, + unknown: () => unknown, + uppercase: () => _uppercase, + url: () => url, + util: () => util_exports, + uuid: () => uuid, + uuidv4: () => uuidv4, + uuidv6: () => uuidv6, + uuidv7: () => uuidv7, + void: () => _void, + xid: () => xid +}); +config(en_default()); +//#endregion +//#region node_modules/.pnpm/@opencode-ai+plugin@1.17.13/node_modules/@opencode-ai/plugin/dist/tool.js +function tool(input) { + return input; +} +tool.schema = external_exports; +const defaults = { + enabled: true, + quiet: false, + toolName: "set_reasoning_effort", + toolDescription: "Set your reasoning effort", + systemPrompt: "You MUST manage reasoning effort actively. Lower it before trivial or routine turns; raise it for ambiguity, debugging, risky changes, or multi-step synthesis. Reassess at turn start, after meaningful new evidence, and when the task shifts. NEVER leave the current level unchanged by inertia, and NEVER reply to a trivial turn before considering a downshift.", + classifier: { + enabled: false, + model: { + providerID: "opencode", + modelID: "big-pickle" + } + } +}; +const cloneDefaults = () => ({ + ...defaults, + classifier: { + ...defaults.classifier, + model: { ...defaults.classifier.model } + } +}); +const parseConfig = (options) => { + if (options === void 0) return { config: cloneDefaults() }; + if (typeof options !== "object" || options === null || Array.isArray(options)) return { error: "options must be an object" }; + const input = options; + const config = cloneDefaults(); + for (const key of ["enabled", "quiet"]) { + const value = input[key]; + if (value === void 0) continue; + if (typeof value !== "boolean") return { error: `${key} must be a boolean` }; + config[key] = value; + } + for (const key of [ + "toolName", + "toolDescription", + "systemPrompt" + ]) { + const value = input[key]; + if (value === void 0) continue; + if (typeof value !== "string") return { error: `${key} must be a string` }; + config[key] = value; + } + const triggers = input.triggers; + if (triggers !== void 0) { + if (typeof triggers !== "object" || triggers === null || Array.isArray(triggers)) return { error: "triggers must be an object" }; + const value = triggers; + const afterIdle = value.afterIdle === void 0 ? false : value.afterIdle; + const afterUserMessage = value.afterUserMessage === void 0 ? false : value.afterUserMessage; + if (typeof afterIdle !== "boolean" || typeof afterUserMessage !== "boolean") return { error: "triggers.afterIdle and triggers.afterUserMessage must be booleans" }; + config.triggers = { + afterIdle, + afterUserMessage + }; + } + const classifier = input.classifier; + if (classifier !== void 0) { + if (typeof classifier !== "object" || classifier === null || Array.isArray(classifier)) return { error: "classifier must be an object" }; + const value = classifier; + if (value.enabled !== void 0) { + if (typeof value.enabled !== "boolean") return { error: "classifier.enabled must be a boolean" }; + config.classifier.enabled = value.enabled; + } + if (value.model !== void 0) { + if (typeof value.model !== "object" || value.model === null || Array.isArray(value.model)) return { error: "classifier.model must be an object" }; + const model = value.model; + if (typeof model.providerID !== "string" || typeof model.modelID !== "string") return { error: "classifier.model must have string providerID and modelID" }; + config.classifier.model = { + providerID: model.providerID, + modelID: model.modelID + }; + } + } + return { config }; +}; +//#endregion +//#region src/index.ts +const z = tool.schema; +const serviceName = "opencode-adaptive-thinking"; +const maxSessionStateSize = 5e3; +const stateTtlMs = 10080 * 60 * 1e3; +const historyLimit = 20; +const classifierTimeout = 5e3; +var SessionStateCache = class { + maxSize; + entries = /* @__PURE__ */ new Map(); + constructor(maxSize) { + this.maxSize = maxSize; + } + get(sessionID) { + const entry = this.entries.get(sessionID); + if (!entry) return; + if (entry.touchedAt && Date.now() - entry.touchedAt > stateTtlMs) { + this.entries.delete(sessionID); + return; + } + entry.touchedAt = Date.now(); + this.entries.delete(sessionID); + this.entries.set(sessionID, entry); + return entry; + } + delete(sessionID) { + this.entries.delete(sessionID); + } + update(sessionID, update) { + const entry = this.get(sessionID) ?? {}; + update(entry); + entry.touchedAt = Date.now(); + this.entries.set(sessionID, entry); + if (this.entries.size > this.maxSize) { + const oldest = this.entries.keys().next().value; + if (oldest) this.entries.delete(oldest); + } + } +}; +const state = new SessionStateCache(maxSessionStateSize); +const AdaptiveThinkingPlugin = async ({ client }, options) => { + const logError = (message, error) => client.app.log({ body: { + service: serviceName, + level: "error", + message: `${message}: ${JSON.stringify(error)}` + } }); + const parsed = parseConfig(options); + if ("error" in parsed) { + if (options?.quiet !== true) client.tui.showToast({ body: { + variant: "error", + message: "Invalid Adaptive Thinking plugin configuration, see logs for details" + } }); + logError("Invalid Adaptive Thinking plugin configuration", parsed.error); + return {}; + } + const config = parsed.config; + if (!config.enabled) return {}; + const classifierSessions = /* @__PURE__ */ new Set(); + let classifierWarned = false; + const warnClassifier = (message, error) => { + if (classifierWarned) return; + classifierWarned = true; + client.app.log({ body: { + service: serviceName, + level: "warn", + message: error === void 0 ? message : `${message}: ${JSON.stringify(error)}` + } }); + }; + const promptText = (parts) => { + if (parts.some((part) => part.type === "text" && (part.ignored || part.synthetic))) return; + const text = parts.filter((part) => part.type === "text").map((part) => part.text).join("\n").trim(); + return text.length > 0 ? text : void 0; + }; + const getModelVariants = (model) => { + const variants = model?.variants; + return Object.keys(variants ?? {}); + }; + let providers; + const variantsFor = async (model) => { + if (!providers) { + const response = await client.provider.list(); + if (response.error) { + logError("Failed to retrieve providers", response.error); + return []; + } + providers = response.data?.all ?? []; + } + const provider = providers.find((candidate) => candidate.id === model.providerID); + return getModelVariants(provider?.models[model.modelID]); + }; + const fetchMessages = async (sessionID) => { + const response = await client.session.messages({ + path: { id: sessionID }, + query: { limit: historyLimit } + }); + if (response.error) { + logError(`Failed to retrieve messages for session ${sessionID}`, response.error); + return; + } + return response.data ?? []; + }; + const modelOf = (info) => "model" in info ? { + providerID: info.model.providerID, + modelID: info.model.modelID + } : { + providerID: info.providerID, + modelID: info.modelID + }; + const latestModel = (messages) => { + const last = messages.at(-1)?.info; + return last ? modelOf(last) : void 0; + }; + const latestVariant = async (messages) => { + let agent; + for (let i = messages.length - 1; i >= 0; i--) { + const info = messages[i].info; + const variant = "model" in info ? info.model.variant : info.variant; + if (variant) return variant; + agent ??= info.agent; + } + if (!agent) return; + const response = await client.app.agents(); + if (response.error) { + logError("Failed to retrieve agents", response.error); + return; + } + return (response.data?.find((candidate) => candidate.name === agent))?.variant; + }; + const messageText = (message, includeSynthetic = false) => message.parts.map((part) => part.type === "text" && !part.ignored && (includeSynthetic || !part.synthetic) ? part.text : "").filter(Boolean).join("\n").trim(); + const latestSummary = (messages) => { + for (let i = messages.length - 1; i >= 0; i--) { + const info = messages[i].info; + if (info.role === "assistant" && info.summary === true) { + const text = messageText(messages[i], true); + if (text) return text; + } + } + }; + const buildContext = async (sessionID) => { + const response = await client.session.messages({ path: { id: sessionID } }); + if (response.error) return ""; + const messages = response.data ?? []; + const summary = latestSummary(messages); + if (summary) return summary; + const since = state.get(sessionID)?.lastIdleAt ?? 0; + return messages.filter((message) => !since || message.info.time.created >= since).map((message) => { + const text = messageText(message); + return text ? `${message.info.role}: ${text}` : ""; + }).filter(Boolean).join("\n"); + }; + const classifyWithModel = async (parentID, text, variants, model, current, context) => { + const created = await (async () => { + try { + return await client.session.create({ body: { + parentID, + title: "Reasoning effort classifier" + } }); + } catch { + return; + } + })(); + if (!created || created.error || !created.data) { + warnClassifier("Failed to create the classifier session", created?.error); + return; + } + const id = created.data.id; + classifierSessions.add(id); + try { + const pending = (async () => { + try { + return await client.session.prompt({ + path: { id }, + body: { + model, + system: [ + config.systemPrompt.trim(), + current ? `Current reasoning effort level: ${current}.` : "", + `Valid reasoning effort levels for this session: ${variants.join(", ")}.`, + `To change your reasoning effort, use the \`${config.toolName}\` tool with one of the valid levels.`, + "Only call it when the task complexity justifies changing levels.", + "Classifier task: choose exactly one of the valid levels for the current message and answer with that word only." + ].filter(Boolean).join(" "), + tools: { "*": false }, + parts: [{ + type: "text", + text: `Session context:\n${context || "(none)"}\n\nCurrent message:\n${text}` + }] + } + }); + } catch { + return; + } + })(); + const response = await Promise.race([pending, new Promise((resolve) => setTimeout(() => resolve(void 0), classifierTimeout))]); + if (!response || response.error || !response.data) { + warnClassifier("The classifier request failed", response?.error); + return; + } + const answer = response.data.parts.filter((part) => part.type === "text").map((part) => part.text).join(" ").toLowerCase(); + let best; + for (const level of variants) { + const escaped = level.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); + const match = new RegExp(`\\b${escaped}\\b`, "i").exec(answer); + if (match && (!best || match.index < best.index)) best = { + index: match.index, + level + }; + } + return best?.level; + } finally { + classifierSessions.delete(id); + try { + await client.session.delete({ path: { id } }); + } catch {} + } + }; + const sendVariantPrompt = (sessionID, variant, text, agent, model) => client.session.promptAsync({ + path: { id: sessionID }, + body: { + noReply: true, + parts: [{ + type: "text", + text, + synthetic: true, + ignored: true + }], + agent, + variant, + ...model ? { model } : {} + } + }); + return { + tool: { [config.toolName]: tool({ + description: config.toolDescription, + args: { + level: z.string().describe("The level of reasoning effort to apply. Higher levels may result in more accurate and thoughtful responses, but may also take more time and resources."), + persist: z.boolean().optional().default(false).describe("Whether to persist the setting for this session, otherwise it will only apply for the remainder of the current turn") + }, + execute: async ({ level, persist }, { sessionID, agent }) => { + if (classifierSessions.has(sessionID)) return "Unavailable in this session."; + const messages = await fetchMessages(sessionID); + if (!messages) return "Failed to set reasoning effort: could not read the session"; + const model = latestModel(messages); + const variants = model ? await variantsFor(model) : []; + if (variants.length === 0) return "Failed to set reasoning effort: no valid reasoning effort levels are available for this session"; + if (!variants.includes(level)) return `Invalid reasoning effort level: ${level}. Valid levels: ${variants.join(", ")}.`; + const baseline = state.get(sessionID)?.reset?.level ?? state.get(sessionID)?.variant ?? await latestVariant(messages); + const response = await sendVariantPrompt(sessionID, level, `Reasoning effort set to ${level}`, agent, model); + if (response.error) return `Failed to set reasoning effort: ${JSON.stringify(response.error)}`; + state.update(sessionID, (entry) => { + entry.variant = level; + if (persist || !baseline || baseline === level || !variants.includes(baseline)) delete entry.reset; + else entry.reset ??= { + level: baseline, + agent, + ...model ? { model } : {} + }; + }); + return `Reasoning effort set to ${level}`; + } + }) }, + "chat.message": async ({ sessionID, variant }, { message, parts }) => { + if (classifierSessions.has(sessionID)) return; + const text = promptText(parts); + if (text === void 0) return; + state.update(sessionID, (entry) => { + entry.userPending = true; + }); + if (!config.classifier.enabled || variant) return; + if (config.triggers !== void 0 && !config.triggers.afterUserMessage) return; + const variants = await variantsFor(message.model); + if (variants.length === 0) return; + const current = state.get(sessionID)?.variant; + const context = await buildContext(sessionID); + const level = await classifyWithModel(sessionID, text, variants, config.classifier.model, current, context); + if (!level || !variants.includes(level)) return; + message.model.variant = level; + state.update(sessionID, (entry) => { + entry.variant = level; + }); + }, + event: async ({ event }) => { + if (event.type === "session.deleted") { + state.delete(event.properties.info.id); + return; + } + if (event.type !== "session.idle") return; + const sessionID = event.properties.sessionID; + if (classifierSessions.has(sessionID)) return; + state.update(sessionID, (entry) => { + entry.userPending = false; + entry.idlePending = true; + entry.lastIdleAt = Date.now(); + }); + const reset = state.get(sessionID)?.reset; + if (!reset) return; + const response = await sendVariantPrompt(sessionID, reset.level, `Reasoning effort reset to ${reset.level}.`, reset.agent, reset.model); + if (response.error) { + logError("Failed to reset reasoning effort on session idle", response.error); + return; + } + state.update(sessionID, (entry) => { + entry.variant = reset.level; + delete entry.reset; + }); + }, + "experimental.chat.system.transform": async ({ sessionID, model }, { system }) => { + if (!sessionID || classifierSessions.has(sessionID)) return; + const session = state.get(sessionID); + const userPending = session?.userPending === true; + const idlePending = session?.idlePending ?? true; + let inject; + if (config.triggers === void 0) inject = true; + else if (userPending) inject = config.triggers.afterUserMessage; + else if (idlePending) inject = config.triggers.afterIdle; + else inject = false; + if (userPending || idlePending) state.update(sessionID, (entry) => { + entry.userPending = false; + entry.idlePending = false; + }); + if (!inject) return; + let variants = getModelVariants(model); + let variant = state.get(sessionID)?.variant; + if (variant && !variants.includes(variant)) variant = void 0; + if (variants.length === 0 || !variant) { + const messages = await fetchMessages(sessionID); + if (!messages) return; + if (variants.length === 0) { + const info = latestModel(messages); + variants = info ? await variantsFor(info) : []; + if (variants.length === 0) return; + } + if (!variant) { + const resolved = await latestVariant(messages); + if (resolved && variants.includes(resolved)) { + variant = resolved; + state.update(sessionID, (entry) => { + entry.variant = resolved; + }); + } + } + } + const guidance = [ + config.systemPrompt.trim(), + variant ? `Current reasoning effort level: ${variant}.` : "", + `Valid reasoning effort levels for this session: ${variants.join(", ")}.`, + `To change your reasoning effort, use the \`${config.toolName}\` tool with one of the valid levels.`, + "Only call it when the task complexity justifies changing levels." + ].filter(Boolean).join(" "); + const existing = system[0]; + system[0] = existing ? `${existing}\n\n${guidance}` : guidance; + } + }; +}; +//#endregion +export { AdaptiveThinkingPlugin }; From 782d53b36099c791068150e2b5a68e3004773e95 Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Mon, 2 Nov 2026 13:02:09 -0500 Subject: [PATCH 4/6] Port to the OpenCode V2 plugin API V1 plugin implementations do not run in OpenCode V2 (PluginModule.LoadError), so the V1 plugin function is replaced with Plugin.define({ id, setup }) and the hooks are mapped to the V2 domains: ctx.tool.transform (set_reasoning_effort), ctx.event.subscribe (triggers), and session hooks for the classifier/guidance. The classifier's per-request level is applied to the real provider request via event.options and scoped model.request/http.request overrides (mutating event.model never reaches the request on V2). Temporary tool changes restore the pre-tool session variant at idle and never undo user model/agent choices. 76 tests; verified on opencode 2.0.30 with wire-level probes. --- .changeset/adaptive-thinking-v2.md | 9 + .opencode/opencode.jsonc | 7 - README.md | 46 +- dist/index.js | 11889 ++------------------------- index.js | 2 + opencode.json | 4 + package.json | 8 +- pnpm-lock.yaml | 2518 +++++- rolldown.config.ts | 1 + src/index.test.ts | 2057 ++++- src/index.ts | 1094 ++- 11 files changed, 5289 insertions(+), 12346 deletions(-) create mode 100644 .changeset/adaptive-thinking-v2.md delete mode 100644 .opencode/opencode.jsonc create mode 100644 index.js create mode 100644 opencode.json diff --git a/.changeset/adaptive-thinking-v2.md b/.changeset/adaptive-thinking-v2.md new file mode 100644 index 0000000..15abd10 --- /dev/null +++ b/.changeset/adaptive-thinking-v2.md @@ -0,0 +1,9 @@ +--- +"opencode-adaptive-thinking": minor +--- + +Port the plugin to the OpenCode V2 plugin API. The implementation now default-exports a +`Plugin.define` definition, registers the reasoning-effort tool and hooks on the V2 +domains, and is distributed as a V2 server plugin. + +**OpenCode 1 is no longer supported**: this package does not load in OpenCode 1. diff --git a/.opencode/opencode.jsonc b/.opencode/opencode.jsonc deleted file mode 100644 index d4dfb99..0000000 --- a/.opencode/opencode.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$schema": "https://opencode.ai/config.json", - "plugin": [ - // "opencode-adaptive-thinking", - "opencode-adaptive-thinking@file://.", // Local plugin development - ], -} diff --git a/README.md b/README.md index 444b988..1fe4b98 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The plugin injects adaptive-thinking guidance into the system prompt and exposes ## Requirements -- OpenCode with plugin support compatible with `@opencode-ai/plugin` `^1.14.24`. +- OpenCode `2` with a plugin runtime compatible with `@opencode/plugin` `2.0.30`. - A selected model that exposes reasoning-effort variants such as `none`, `low`, `medium`, `high`, or `xhigh`. ## Installation @@ -26,18 +26,18 @@ Add the package to your OpenCode config plugin list: ```json { "$schema": "https://opencode.ai/config.json", - "plugin": ["opencode-adaptive-thinking"] + "plugins": ["opencode-adaptive-thinking"] } ``` -To customize behavior, use the tuple form shown in the configuration example below. +To customize behavior, use the object form shown in the configuration example below. ## Configuration The plugin accepts these optional settings: - `enabled`: enable or disable the plugin without removing it from config. Defaults to `true`. -- `quiet`: suppress toast notifications for configuration errors. Defaults to `false`. +- `quiet`: suppress the generic configuration error message. Details go to the server process output (stderr) and the last one is recorded under the `lastDiagnostic` storage key. Defaults to `false`. - `toolName`: name of the reasoning-effort tool exposed to agents. Defaults to `set_reasoning_effort`. - `toolDescription`: description for the reasoning-effort tool. Defaults to `Set your reasoning effort`. - `systemPrompt`: custom adaptive-thinking guidance injected into the system prompt. @@ -51,9 +51,13 @@ The plugin accepts these optional settings: - `afterIdle`: first request after an idle or session start, when no user message is pending. - `afterUserMessage`: first request after a real user message. -Both are reset on `session.idle`. Omit `triggers` for the original behavior (guidance on every request). Both `false` disables the guidance. +Both are reset when a session execution ends (success, failure, or interruption). Omit `triggers` for the original behavior (guidance on every request). Both `false` disables the guidance. -When `classifier.enabled` is true, the plugin asks the configured model for one valid effort level on real user messages. It uses the same guidance as its system prompt, then the last compaction summary (assistant message with `summary: true`) or the messages since session start/last idle, then the current message last. The call uses a temporary child session with tools disabled and a 5 s timeout; failures leave the level unchanged. The main session still receives the guidance at the triggers. +When `classifier.enabled` is true, the plugin asks the configured model for one valid effort level on real user messages. It uses the same guidance as its system prompt, then the last compaction summary or the messages since session start/last idle, then the current message last. The call is a stateless generation request with no tools and a 5 s timeout; it fails open, so the request keeps its current level and no error reaches the request or the TUI; classifier failures print to stderr only the first time, and every failure is recorded as the last diagnostic. A malformed successful answer is reported as an invalid classifier response. The chosen level is applied to the request that carries the user message and, unless a tool call or explicit variant choice changes it, re-derived for later primary requests in the same turn: the plugin copies the selected catalog variant's request settings into each such request's options and applies the variant's headers or body overrides through request-scoped hooks, on every transport attempt of that call. A variant declares a body override as `extraBody` in its catalog settings (the host exposes it as the variant's `body`); `headers` is applied as-is. The request model ref is stamped with the level so the assistant message records the variant that was actually used, but the level is never written to the session model. The plugin does not override later user or agent variant choices, and it does not claim a level when the catalog has no matching variant or the variant carries no applicable request settings. When the request model exposes variants, the main session still receives the guidance at the triggers. + +The `http.request` hook covers the documented HTTP path. A variant whose only mapping is a `body` override is not applied to `experimental.ws.*` requests. + +Classifier context comes from `session.context`, which returns the full session history. ```json "triggers": { @@ -66,26 +70,30 @@ When `classifier.enabled` is true, the plugin asks the configured model for one } ``` -Synthetic and ignored messages are skipped. The classifier sends the user's request text and session context to the configured model; keep it disabled if that is not acceptable. +Synthetic messages never reach the prompt hook, and synthetic transcript entries are excluded from the classifier context. The classifier sends the user's request text and session context to the configured model; keep it disabled if that is not acceptable. Session state is kept in a 5,000-entry LRU and expires after seven days of inactivity; deleted sessions are removed. -### Example +### Configuration example ```json { "$schema": "https://opencode.ai/config.json", - "plugin": [ - [ - "opencode-adaptive-thinking", - { + "plugins": [ + { + "package": "opencode-adaptive-thinking", + "options": { "enabled": true, "quiet": false, "toolName": "set_reasoning_effort", "toolDescription": "Set your reasoning effort", - "systemPrompt": "Actively choose the lowest reasoning effort that can safely complete the task. Raise effort for ambiguity, debugging, risky changes, or multi-step synthesis." + "systemPrompt": "Actively choose the lowest reasoning effort that can safely complete the task. Raise effort for ambiguity, debugging, risky changes, or multi-step synthesis.", + "triggers": { + "afterIdle": true, + "afterUserMessage": true + } } - ] + } ] } ``` @@ -95,7 +103,7 @@ Session state is kept in a 5,000-entry LRU and expires after seven days of inact Agents receive system guidance to actively choose the lowest reasoning effort that can safely complete the task. The plugin also exposes the configured tool, `set_reasoning_effort` by default, with these arguments: - `level`: one of the valid reasoning-effort variants for the current model. -- `persist`: when `true`, keep the selected effort for the session. When `false` or omitted, apply it temporarily and reset to the previous effort after `session.idle`. +- `persist`: when `true`, keep the selected effort for the session. When `false` or omitted, apply it temporarily and reset at session idle to the session's own variant from before the tool call (a classified level is request-scoped and is not the reset target). Example temporary change: @@ -115,17 +123,19 @@ Example persisted change: } ``` -The system prompt lists the valid levels for the current session. Cached session state is only used when it is still valid for the current model, so switching models will not advertise or reuse an invalid effort level. +The system prompt lists the valid levels for the current session. A remembered level is only reused when the current model still supports it, so switching models will not reuse an invalid effort level. Message lookups now read full session history; the former 20-message limit is gone, so long sessions cost more. -Adaptive-thinking guidance is merged into the first existing system prompt instead of a separate system message, so strict chat templates that allow only one system message keep working. +Adaptive-thinking guidance is appended to the existing system instructions as an additional text part instead of a separate system message, so strict chat templates that allow only one system message keep working. ## Troubleshooting +Plugin output is written to the server process console (stderr). It is not part of `opencode.log` or the structured `--print-logs` log stream; when the server's stderr is captured, it appears there as raw lines. Repeated warnings (classifier, model-switch, and request-body) print once; errors print every time; every failure updates `lastDiagnostic`. The plugin also records the most recent warning or error under the `lastDiagnostic` key in plugin storage as `{ at, level, message }`, so a failure can be inspected after the fact. Classifier failures fail open: the request proceeds without a classified level. + If the tool returns `no valid reasoning effort levels are available for this session`, check that the active model exposes variants in OpenCode. Some providers or models may not support reasoning-effort levels. If the tool returns `Invalid reasoning effort level`, use one of the levels listed in the system prompt for the current session. -If configuration errors appear, check the plugin options against the documented keys and value types. Set `quiet` to `true` to suppress configuration error toasts while still writing details to the OpenCode logs. +If configuration errors appear, check the plugin options against the documented keys and value types. Set `quiet` to `true` to suppress the generic configuration error message; details are written to the server process output (stderr), not to `opencode.log`. OpenCode 2 does not expose a TUI toast API to server plugins, so configuration errors are logged instead. ## Development diff --git a/dist/index.js b/dist/index.js index 518a84e..017edf5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,11135 +1,4 @@ -//#region \0rolldown/runtime.js -var __defProp = Object.defineProperty; -var __exportAll = (all, no_symbols) => { - let target = {}; - for (var name in all) __defProp(target, name, { - get: all[name], - enumerable: true - }); - if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" }); - return target; -}; -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/core.js -/** A special constant with type `never` */ -const NEVER = Object.freeze({ status: "aborted" }); -function $constructor(name, initializer, 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); - initializer(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 fn of inst._zod.deferred) fn(); - 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 _; -} -const $brand = Symbol("zod_brand"); -var $ZodAsyncError = class extends Error { - constructor() { - super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`); - } -}; -var $ZodEncodeError = class extends Error { - constructor(name) { - super(`Encountered unidirectional transform during encode: ${name}`); - this.name = "ZodEncodeError"; - } -}; -const globalConfig = {}; -function config(newConfig) { - if (newConfig) Object.assign(globalConfig, newConfig); - return globalConfig; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/util.js -var util_exports = /* @__PURE__ */ __exportAll({ - 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, - base64ToUint8Array: () => base64ToUint8Array, - base64urlToUint8Array: () => base64urlToUint8Array, - cached: () => cached, - captureStackTrace: () => captureStackTrace, - cleanEnum: () => cleanEnum, - cleanRegex: () => cleanRegex, - clone: () => clone, - cloneDef: () => cloneDef, - createTransparentProxy: () => createTransparentProxy, - defineLazy: () => defineLazy, - esc: () => esc, - escapeRegex: () => escapeRegex, - extend: () => extend, - finalizeIssue: () => finalizeIssue, - floatSafeRemainder: () => floatSafeRemainder, - getElementAtPath: () => getElementAtPath, - getEnumValues: () => getEnumValues, - getLengthableOrigin: () => getLengthableOrigin, - getParsedType: () => getParsedType, - getSizableOrigin: () => getSizableOrigin, - hexToUint8Array: () => hexToUint8Array, - isObject: () => isObject, - isPlainObject: () => isPlainObject, - issue: () => issue, - joinValues: () => joinValues, - jsonStringifyReplacer: () => jsonStringifyReplacer, - merge: () => merge, - mergeDefs: () => mergeDefs, - normalizeParams: () => normalizeParams, - nullish: () => nullish$1, - numKeys: () => numKeys, - objectClone: () => objectClone, - omit: () => omit, - optionalKeys: () => optionalKeys, - partial: () => partial, - pick: () => pick, - prefixIssues: () => prefixIssues, - primitiveTypes: () => primitiveTypes, - promiseAllObject: () => promiseAllObject, - propertyKeyTypes: () => propertyKeyTypes, - randomString: () => randomString, - required: () => required, - safeExtend: () => safeExtend, - shallowClone: () => shallowClone, - stringifyPrimitive: () => stringifyPrimitive, - uint8ArrayToBase64: () => uint8ArrayToBase64, - uint8ArrayToBase64url: () => uint8ArrayToBase64url, - uint8ArrayToHex: () => uint8ArrayToHex, - 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"); - return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v); -} -function joinValues(array, separator = "|") { - return array.map((val) => stringifyPrimitive(val)).join(separator); -} -function jsonStringifyReplacer(_, value) { - if (typeof value === "bigint") return value.toString(); - return value; -} -function cached(getter) { - return { get value() { - { - const value = getter(); - Object.defineProperty(this, "value", { value }); - return value; - } - throw new Error("cached value already set"); - } }; -} -function nullish$1(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 floatSafeRemainder(val, step) { - const valDecCount = (val.toString().split(".")[1] || "").length; - const stepString = step.toString(); - let stepDecCount = (stepString.split(".")[1] || "").length; - if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) { - const match = stepString.match(/\d?e-(\d?)/); - if (match?.[1]) stepDecCount = Number.parseInt(match[1]); - } - const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount; - return Number.parseInt(val.toFixed(decCount).replace(".", "")) % Number.parseInt(step.toFixed(decCount).replace(".", "")) / 10 ** decCount; -} -const EVALUATING = Symbol("evaluating"); -function defineLazy(object, key, getter) { - let value = void 0; - Object.defineProperty(object, key, { - get() { - if (value === EVALUATING) return; - if (value === void 0) { - value = EVALUATING; - value = getter(); - } - return value; - }, - set(v) { - Object.defineProperty(object, key, { value: v }); - }, - configurable: true - }); -} -function objectClone(obj) { - return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj)); -} -function assignProp(target, prop, value) { - Object.defineProperty(target, prop, { - value, - writable: true, - enumerable: true, - configurable: true - }); -} -function mergeDefs(...defs) { - const mergedDescriptors = {}; - for (const def of defs) { - const descriptors = Object.getOwnPropertyDescriptors(def); - Object.assign(mergedDescriptors, descriptors); - } - return Object.defineProperties({}, mergedDescriptors); -} -function cloneDef(schema) { - return mergeDefs(schema._zod.def); -} -function getElementAtPath(obj, path) { - if (!path) return obj; - return path.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() * 26)]; - return str; -} -function esc(str) { - return JSON.stringify(str); -} -const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {}; -function isObject(data) { - return typeof data === "object" && data !== null && !Array.isArray(data); -} -const allowsEval = cached(() => { - if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false; - try { - new Function(""); - return true; - } catch (_) { - return false; - } -}); -function isPlainObject(o) { - if (isObject(o) === false) return false; - const ctor = o.constructor; - if (ctor === void 0) return true; - const prot = ctor.prototype; - if (isObject(prot) === false) return false; - if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) return false; - return true; -} -function shallowClone(o) { - if (isPlainObject(o)) return { ...o }; - if (Array.isArray(o)) return [...o]; - return o; -} -function numKeys(data) { - let keyCount = 0; - for (const key in data) if (Object.prototype.hasOwnProperty.call(data, key)) keyCount++; - return keyCount; -} -const getParsedType = (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}`); - } -}; -const propertyKeyTypes = /* @__PURE__ */ new Set([ - "string", - "number", - "symbol" -]); -const primitiveTypes = /* @__PURE__ */ new Set([ - "string", - "number", - "bigint", - "boolean", - "symbol", - "undefined" -]); -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, value, receiver) { - target ?? (target = getter()); - return Reflect.set(target, prop, value, 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(value) { - if (typeof value === "bigint") return value.toString() + "n"; - if (typeof value === "string") return `"${value}"`; - return `${value}`; -} -function optionalKeys(shape) { - return Object.keys(shape).filter((k) => { - return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional"; - }); -} -const 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] -}; -const BIGINT_FORMAT_RANGES = { - int64: [/* @__PURE__*/ BigInt("-9223372036854775808"), /* @__PURE__*/ BigInt("9223372036854775807")], - uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt("18446744073709551615")] -}; -function pick(schema, mask) { - const currDef = schema._zod.def; - return clone(schema, mergeDefs(schema._zod.def, { - get shape() { - const newShape = {}; - 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]; - } - assignProp(this, "shape", newShape); - return newShape; - }, - checks: [] - })); -} -function omit(schema, mask) { - const currDef = schema._zod.def; - return clone(schema, mergeDefs(schema._zod.def, { - get shape() { - const newShape = { ...schema._zod.def.shape }; - for (const key in mask) { - if (!(key in currDef.shape)) throw new Error(`Unrecognized key: "${key}"`); - if (!mask[key]) continue; - delete newShape[key]; - } - assignProp(this, "shape", newShape); - return newShape; - }, - checks: [] - })); -} -function extend(schema, shape) { - if (!isPlainObject(shape)) throw new Error("Invalid input to extend: expected a plain object"); - const checks = schema._zod.def.checks; - if (checks && checks.length > 0) throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead."); - return clone(schema, mergeDefs(schema._zod.def, { - get shape() { - const _shape = { - ...schema._zod.def.shape, - ...shape - }; - assignProp(this, "shape", _shape); - return _shape; - }, - checks: [] - })); -} -function safeExtend(schema, shape) { - if (!isPlainObject(shape)) throw new Error("Invalid input to safeExtend: expected a plain object"); - return clone(schema, { - ...schema._zod.def, - get shape() { - const _shape = { - ...schema._zod.def.shape, - ...shape - }; - assignProp(this, "shape", _shape); - return _shape; - }, - checks: schema._zod.def.checks - }); -} -function merge(a, b) { - return clone(a, mergeDefs(a._zod.def, { - get shape() { - const _shape = { - ...a._zod.def.shape, - ...b._zod.def.shape - }; - assignProp(this, "shape", _shape); - return _shape; - }, - get catchall() { - return b._zod.def.catchall; - }, - checks: [] - })); -} -function partial(Class, schema, mask) { - return clone(schema, mergeDefs(schema._zod.def, { - get shape() { - const oldShape = schema._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] = Class ? new Class({ - type: "optional", - innerType: oldShape[key] - }) : oldShape[key]; - } - else for (const key in oldShape) shape[key] = Class ? new Class({ - type: "optional", - innerType: oldShape[key] - }) : oldShape[key]; - assignProp(this, "shape", shape); - return shape; - }, - checks: [] - })); -} -function required(Class, schema, mask) { - return clone(schema, mergeDefs(schema._zod.def, { - get shape() { - const oldShape = schema._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 Class({ - type: "nonoptional", - innerType: oldShape[key] - }); - } - else for (const key in oldShape) shape[key] = new Class({ - type: "nonoptional", - innerType: oldShape[key] - }); - assignProp(this, "shape", shape); - return shape; - }, - checks: [] - })); -} -function aborted(x, startIndex = 0) { - if (x.aborted === true) return true; - for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true; - return false; -} -function prefixIssues(path, issues) { - return issues.map((iss) => { - var _a; - (_a = iss).path ?? (_a.path = []); - iss.path.unshift(path); - return iss; - }); -} -function unwrapMessage(message) { - return typeof message === "string" ? message : message?.message; -} -function finalizeIssue(iss, ctx, config) { - const full = { - ...iss, - path: iss.path ?? [] - }; - if (!iss.message) full.message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input"; - 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(...args) { - const [iss, input, inst] = args; - 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]); -} -function base64ToUint8Array(base64) { - const binaryString = atob(base64); - const bytes = new Uint8Array(binaryString.length); - for (let i = 0; i < binaryString.length; i++) bytes[i] = binaryString.charCodeAt(i); - return bytes; -} -function uint8ArrayToBase64(bytes) { - let binaryString = ""; - for (let i = 0; i < bytes.length; i++) binaryString += String.fromCharCode(bytes[i]); - return btoa(binaryString); -} -function base64urlToUint8Array(base64url) { - const base64 = base64url.replace(/-/g, "+").replace(/_/g, "/"); - return base64ToUint8Array(base64 + "=".repeat((4 - base64.length % 4) % 4)); -} -function uint8ArrayToBase64url(bytes) { - return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); -} -function hexToUint8Array(hex) { - const cleanHex = hex.replace(/^0x/, ""); - if (cleanHex.length % 2 !== 0) throw new Error("Invalid hex string length"); - const bytes = new Uint8Array(cleanHex.length / 2); - for (let i = 0; i < cleanHex.length; i += 2) bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16); - return bytes; -} -function uint8ArrayToHex(bytes) { - return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join(""); -} -var Class = class { - constructor(..._args) {} -}; -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/errors.js -const initializer$1 = (inst, def) => { - inst.name = "$ZodError"; - Object.defineProperty(inst, "_zod", { - value: inst._zod, - enumerable: false - }); - Object.defineProperty(inst, "issues", { - value: def, - enumerable: false - }); - inst.message = JSON.stringify(def, jsonStringifyReplacer, 2); - Object.defineProperty(inst, "toString", { - value: () => inst.message, - enumerable: false - }); -}; -const $ZodError = $constructor("$ZodError", initializer$1); -const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error }); -function flattenError(error, mapper = (issue) => issue.message) { - const fieldErrors = {}; - const formErrors = []; - for (const sub of error.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(error, _mapper) { - const mapper = _mapper || function(issue) { - return issue.message; - }; - const fieldErrors = { _errors: [] }; - const processError = (error) => { - for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues })); - else if (issue.code === "invalid_key") processError({ issues: issue.issues }); - else if (issue.code === "invalid_element") processError({ issues: issue.issues }); - else if (issue.path.length === 0) fieldErrors._errors.push(mapper(issue)); - else { - let curr = fieldErrors; - let i = 0; - while (i < issue.path.length) { - const el = issue.path[i]; - if (!(i === issue.path.length - 1)) curr[el] = curr[el] || { _errors: [] }; - else { - curr[el] = curr[el] || { _errors: [] }; - curr[el]._errors.push(mapper(issue)); - } - curr = curr[el]; - i++; - } - } - }; - processError(error); - return fieldErrors; -} -function treeifyError(error, _mapper) { - const mapper = _mapper || function(issue) { - return issue.message; - }; - const result = { errors: [] }; - const processError = (error, path = []) => { - var _a, _b; - for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }, issue.path)); - else if (issue.code === "invalid_key") processError({ issues: issue.issues }, issue.path); - else if (issue.code === "invalid_element") processError({ issues: issue.issues }, issue.path); - else { - const fullpath = [...path, ...issue.path]; - if (fullpath.length === 0) { - result.errors.push(mapper(issue)); - 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(issue)); - i++; - } - } - }; - processError(error); - return result; -} -/** Format a ZodError as a human-readable string in the following form. -* -* From -* -* ```ts -* ZodError { -* issues: [ -* { -* expected: 'string', -* code: 'invalid_type', -* path: [ 'username' ], -* message: 'Invalid input: expected string' -* }, -* { -* expected: 'number', -* code: 'invalid_type', -* path: [ 'favoriteNumbers', 1 ], -* message: 'Invalid input: expected number' -* } -* ]; -* } -* ``` -* -* to -* -* ``` -* username -* ✖ Expected number, received string at "username -* favoriteNumbers[0] -* ✖ Invalid input: expected number -* ``` -*/ -function toDotPath(_path) { - const segs = []; - const path = _path.map((seg) => typeof seg === "object" ? seg.key : seg); - for (const seg of path) 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(error) { - const lines = []; - const issues = [...error.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length); - for (const issue of issues) { - lines.push(`✖ ${issue.message}`); - if (issue.path?.length) lines.push(` → at ${toDotPath(issue.path)}`); - } - return lines.join("\n"); -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/parse.js -const _parse = (_Err) => (schema, value, _ctx, _params) => { - const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false }; - const result = schema._zod.run({ - value, - 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; -}; -const parse$1 = /* @__PURE__*/ _parse($ZodRealError); -const _parseAsync = (_Err) => async (schema, value, _ctx, params) => { - const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true }; - let result = schema._zod.run({ - value, - 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; -}; -const parseAsync$1 = /* @__PURE__*/ _parseAsync($ZodRealError); -const _safeParse = (_Err) => (schema, value, _ctx) => { - const ctx = _ctx ? { - ..._ctx, - async: false - } : { async: false }; - const result = schema._zod.run({ - value, - 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 - }; -}; -const safeParse$1 = /* @__PURE__*/ _safeParse($ZodRealError); -const _safeParseAsync = (_Err) => async (schema, value, _ctx) => { - const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true }; - let result = schema._zod.run({ - value, - 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 - }; -}; -const safeParseAsync$1 = /* @__PURE__*/ _safeParseAsync($ZodRealError); -const _encode = (_Err) => (schema, value, _ctx) => { - const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" }; - return _parse(_Err)(schema, value, ctx); -}; -const encode$1 = /* @__PURE__*/ _encode($ZodRealError); -const _decode = (_Err) => (schema, value, _ctx) => { - return _parse(_Err)(schema, value, _ctx); -}; -const decode$1 = /* @__PURE__*/ _decode($ZodRealError); -const _encodeAsync = (_Err) => async (schema, value, _ctx) => { - const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" }; - return _parseAsync(_Err)(schema, value, ctx); -}; -const encodeAsync$1 = /* @__PURE__*/ _encodeAsync($ZodRealError); -const _decodeAsync = (_Err) => async (schema, value, _ctx) => { - return _parseAsync(_Err)(schema, value, _ctx); -}; -const decodeAsync$1 = /* @__PURE__*/ _decodeAsync($ZodRealError); -const _safeEncode = (_Err) => (schema, value, _ctx) => { - const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" }; - return _safeParse(_Err)(schema, value, ctx); -}; -const safeEncode$1 = /* @__PURE__*/ _safeEncode($ZodRealError); -const _safeDecode = (_Err) => (schema, value, _ctx) => { - return _safeParse(_Err)(schema, value, _ctx); -}; -const safeDecode$1 = /* @__PURE__*/ _safeDecode($ZodRealError); -const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => { - const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" }; - return _safeParseAsync(_Err)(schema, value, ctx); -}; -const safeEncodeAsync$1 = /* @__PURE__*/ _safeEncodeAsync($ZodRealError); -const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => { - return _safeParseAsync(_Err)(schema, value, _ctx); -}; -const safeDecodeAsync$1 = /* @__PURE__*/ _safeDecodeAsync($ZodRealError); -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/regexes.js -var regexes_exports = /* @__PURE__ */ __exportAll({ - base64: () => base64$1, - base64url: () => base64url$1, - bigint: () => bigint$2, - boolean: () => boolean$2, - browserEmail: () => browserEmail, - cidrv4: () => cidrv4$1, - cidrv6: () => cidrv6$1, - cuid: () => cuid$1, - cuid2: () => cuid2$1, - date: () => date$3, - datetime: () => datetime$1, - domain: () => domain, - duration: () => duration$1, - e164: () => e164$1, - email: () => email$1, - emoji: () => emoji$1, - extendedDuration: () => extendedDuration, - guid: () => guid$1, - hex: () => hex$1, - hostname: () => hostname$1, - html5Email: () => html5Email, - idnEmail: () => idnEmail, - integer: () => integer, - ipv4: () => ipv4$1, - ipv6: () => ipv6$1, - ksuid: () => ksuid$1, - lowercase: () => lowercase, - md5_base64: () => md5_base64, - md5_base64url: () => md5_base64url, - md5_hex: () => md5_hex, - nanoid: () => nanoid$1, - null: () => _null$2, - number: () => number$2, - rfc5322Email: () => rfc5322Email, - sha1_base64: () => sha1_base64, - sha1_base64url: () => sha1_base64url, - sha1_hex: () => sha1_hex, - sha256_base64: () => sha256_base64, - sha256_base64url: () => sha256_base64url, - sha256_hex: () => sha256_hex, - sha384_base64: () => sha384_base64, - sha384_base64url: () => sha384_base64url, - sha384_hex: () => sha384_hex, - sha512_base64: () => sha512_base64, - sha512_base64url: () => sha512_base64url, - sha512_hex: () => sha512_hex, - string: () => string$2, - time: () => time$1, - ulid: () => ulid$1, - undefined: () => _undefined$2, - unicodeEmail: () => unicodeEmail, - uppercase: () => uppercase, - uuid: () => uuid$1, - uuid4: () => uuid4, - uuid6: () => uuid6, - uuid7: () => uuid7, - xid: () => xid$1 -}); -const cuid$1 = /^[cC][^\s-]{8,}$/; -const cuid2$1 = /^[0-9a-z]+$/; -const ulid$1 = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/; -const xid$1 = /^[0-9a-vA-V]{20}$/; -const ksuid$1 = /^[A-Za-z0-9]{27}$/; -const nanoid$1 = /^[a-zA-Z0-9_-]{21}$/; -/** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */ -const duration$1 = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/; -/** Implements ISO 8601-2 extensions like explicit +- prefixes, mixing weeks with other units, and fractional/negative components. */ -const 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)?)??$/; -/** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */ -const guid$1 = /^([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})$/; -/** Returns a regex for validating an RFC 9562/4122 UUID. -* -* @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */ -const uuid$1 = (version) => { - if (!version) 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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/; - return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`); -}; -const uuid4 = /*@__PURE__*/ uuid$1(4); -const uuid6 = /*@__PURE__*/ uuid$1(6); -const uuid7 = /*@__PURE__*/ uuid$1(7); -/** Practical email validation */ -const email$1 = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/; -/** Equivalent to the HTML5 input[type=email] validation implemented by browsers. Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email */ -const 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])?)*$/; -/** The classic emailregex.com regex for RFC 5322-compliant emails */ -const 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,}))$/; -/** A loose regex that allows Unicode characters, enforces length limits, and that's about it. */ -const unicodeEmail = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u; -const idnEmail = unicodeEmail; -const 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])?)*$/; -const _emoji$1 = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`; -function emoji$1() { - return new RegExp(_emoji$1, "u"); -} -const ipv4$1 = /^(?:(?: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])$/; -const ipv6$1 = /^(([0-9a-fA-F]{1,4}:){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}|:))$/; -const cidrv4$1 = /^((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])$/; -const cidrv6$1 = /^(([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])$/; -const base64$1 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/; -const base64url$1 = /^[A-Za-z0-9_-]*$/; -const hostname$1 = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/; -const domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/; -const e164$1 = /^\+(?:[0-9]){6,14}[0-9]$/; -const 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])))`; -const date$3 = /*@__PURE__*/ new RegExp(`^${dateSource}$`); -function timeSource(args) { - const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`; - return typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`; -} -function time$1(args) { - return new RegExp(`^${timeSource(args)}$`); -} -function datetime$1(args) { - const time = timeSource({ precision: args.precision }); - const opts = ["Z"]; - if (args.local) opts.push(""); - if (args.offset) opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`); - const timeRegex = `${time}(?:${opts.join("|")})`; - return new RegExp(`^${dateSource}T(?:${timeRegex})$`); -} -const string$2 = (params) => { - const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`; - return new RegExp(`^${regex}$`); -}; -const bigint$2 = /^-?\d+n?$/; -const integer = /^-?\d+$/; -const number$2 = /^-?\d+(?:\.\d+)?/; -const boolean$2 = /^(?:true|false)$/i; -const _null$2 = /^null$/i; -const _undefined$2 = /^undefined$/i; -const lowercase = /^[^A-Z]*$/; -const uppercase = /^[^a-z]*$/; -const hex$1 = /^[0-9a-fA-F]*$/; -function fixedBase64(bodyLength, padding) { - return new RegExp(`^[A-Za-z0-9+/]{${bodyLength}}${padding}$`); -} -function fixedBase64url(length) { - return new RegExp(`^[A-Za-z0-9_-]{${length}}$`); -} -const md5_hex = /^[0-9a-fA-F]{32}$/; -const md5_base64 = /*@__PURE__*/ fixedBase64(22, "=="); -const md5_base64url = /*@__PURE__*/ fixedBase64url(22); -const sha1_hex = /^[0-9a-fA-F]{40}$/; -const sha1_base64 = /*@__PURE__*/ fixedBase64(27, "="); -const sha1_base64url = /*@__PURE__*/ fixedBase64url(27); -const sha256_hex = /^[0-9a-fA-F]{64}$/; -const sha256_base64 = /*@__PURE__*/ fixedBase64(43, "="); -const sha256_base64url = /*@__PURE__*/ fixedBase64url(43); -const sha384_hex = /^[0-9a-fA-F]{96}$/; -const sha384_base64 = /*@__PURE__*/ fixedBase64(64, ""); -const sha384_base64url = /*@__PURE__*/ fixedBase64url(64); -const sha512_hex = /^[0-9a-fA-F]{128}$/; -const sha512_base64 = /*@__PURE__*/ fixedBase64(86, "=="); -const sha512_base64url = /*@__PURE__*/ fixedBase64url(86); -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/checks.js -const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => { - var _a; - inst._zod ?? (inst._zod = {}); - inst._zod.def = def; - (_a = inst._zod).onattach ?? (_a.onattach = []); -}); -const numericOriginMap = { - number: "number", - bigint: "bigint", - object: "date" -}; -const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => { - $ZodCheck.init(inst, def); - const origin = numericOriginMap[typeof def.value]; - inst._zod.onattach.push((inst) => { - const bag = inst._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 - }); - }; -}); -const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => { - $ZodCheck.init(inst, def); - const origin = numericOriginMap[typeof def.value]; - inst._zod.onattach.push((inst) => { - const bag = inst._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 - }); - }; -}); -const $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => { - $ZodCheck.init(inst, def); - inst._zod.onattach.push((inst) => { - var _a; - (_a = inst._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."); - if (typeof payload.value === "bigint" ? payload.value % def.value === BigInt(0) : floatSafeRemainder(payload.value, def.value) === 0) return; - payload.issues.push({ - origin: typeof payload.value, - code: "not_multiple_of", - divisor: def.value, - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -const $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((inst) => { - const bag = inst._zod.bag; - bag.format = def.format; - bag.minimum = minimum; - bag.maximum = maximum; - if (isInt) bag.pattern = integer; - }); - 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", - continue: false, - 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 - }); - }; -}); -const $ZodCheckBigIntFormat = /*@__PURE__*/ $constructor("$ZodCheckBigIntFormat", (inst, def) => { - $ZodCheck.init(inst, def); - const [minimum, maximum] = BIGINT_FORMAT_RANGES[def.format]; - inst._zod.onattach.push((inst) => { - const bag = inst._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 - }); - }; -}); -const $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$1(val) && val.size !== void 0; - }); - inst._zod.onattach.push((inst) => { - const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY; - if (def.maximum < curr) inst._zod.bag.maximum = def.maximum; - }); - inst._zod.check = (payload) => { - const input = payload.value; - if (input.size <= def.maximum) return; - payload.issues.push({ - origin: getSizableOrigin(input), - code: "too_big", - maximum: def.maximum, - inclusive: true, - input, - inst, - continue: !def.abort - }); - }; -}); -const $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$1(val) && val.size !== void 0; - }); - inst._zod.onattach.push((inst) => { - const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY; - if (def.minimum > curr) inst._zod.bag.minimum = def.minimum; - }); - inst._zod.check = (payload) => { - const input = payload.value; - if (input.size >= def.minimum) return; - payload.issues.push({ - origin: getSizableOrigin(input), - code: "too_small", - minimum: def.minimum, - inclusive: true, - input, - inst, - continue: !def.abort - }); - }; -}); -const $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$1(val) && val.size !== void 0; - }); - inst._zod.onattach.push((inst) => { - const bag = inst._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 - }); - }; -}); -const $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$1(val) && val.length !== void 0; - }); - inst._zod.onattach.push((inst) => { - const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY; - if (def.maximum < curr) inst._zod.bag.maximum = def.maximum; - }); - inst._zod.check = (payload) => { - const input = payload.value; - if (input.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 - }); - }; -}); -const $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$1(val) && val.length !== void 0; - }); - inst._zod.onattach.push((inst) => { - const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY; - if (def.minimum > curr) inst._zod.bag.minimum = def.minimum; - }); - inst._zod.check = (payload) => { - const input = payload.value; - if (input.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 - }); - }; -}); -const $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$1(val) && val.length !== void 0; - }); - inst._zod.onattach.push((inst) => { - const bag = inst._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 - }); - }; -}); -const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => { - var _a, _b; - $ZodCheck.init(inst, def); - inst._zod.onattach.push((inst) => { - const bag = inst._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 = () => {}); -}); -const $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 - }); - }; -}); -const $ZodCheckLowerCase = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (inst, def) => { - def.pattern ?? (def.pattern = lowercase); - $ZodCheckStringFormat.init(inst, def); -}); -const $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (inst, def) => { - def.pattern ?? (def.pattern = uppercase); - $ZodCheckStringFormat.init(inst, def); -}); -const $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((inst) => { - const bag = inst._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 - }); - }; -}); -const $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((inst) => { - const bag = inst._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 - }); - }; -}); -const $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((inst) => { - const bag = inst._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 - }); - }; -}); -function handleCheckPropertyResult(result, payload, property) { - if (result.issues.length) payload.issues.push(...prefixIssues(property, result.issues)); -} -const $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((result) => handleCheckPropertyResult(result, payload, def.property)); - handleCheckPropertyResult(result, payload, def.property); - }; -}); -const $ZodCheckMimeType = /*@__PURE__*/ $constructor("$ZodCheckMimeType", (inst, def) => { - $ZodCheck.init(inst, def); - const mimeSet = new Set(def.mime); - inst._zod.onattach.push((inst) => { - inst._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, - continue: !def.abort - }); - }; -}); -const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst, def) => { - $ZodCheck.init(inst, def); - inst._zod.check = (payload) => { - payload.value = def.tx(payload.value); - }; -}); -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/doc.js -var Doc = class { - constructor(args = []) { - this.content = []; - this.indent = 0; - if (this) this.args = args; - } - indented(fn) { - this.indent += 1; - fn(this); - this.indent -= 1; - } - write(arg) { - if (typeof arg === "function") { - arg(this, { execution: "sync" }); - arg(this, { execution: "async" }); - return; - } - const lines = arg.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 args = this?.args; - const lines = [...(this?.content ?? [``]).map((x) => ` ${x}`)]; - return new F(...args, lines.join("\n")); - } -}; -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/versions.js -const version = { - major: 4, - minor: 1, - patch: 8 -}; -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/schemas.js -const $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 fn of ch._zod.onattach) fn(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, checks, ctx) => { - let isAborted = aborted(payload); - let asyncResult; - for (const ch of checks) { - if (ch._zod.def.when) { - if (!ch._zod.def.when(payload)) continue; - } else if (isAborted) 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 _; - if (payload.issues.length === currLen) return; - if (!isAborted) isAborted = aborted(payload, currLen); - }); - else { - if (payload.issues.length === currLen) continue; - if (!isAborted) isAborted = aborted(payload, currLen); - } - } - if (asyncResult) return asyncResult.then(() => { - return payload; - }); - return payload; - }; - const handleCanaryResult = (canary, payload, ctx) => { - if (aborted(canary)) { - canary.aborted = true; - return canary; - } - const checkResult = runChecks(payload, checks, ctx); - if (checkResult instanceof Promise) { - if (ctx.async === false) throw new $ZodAsyncError(); - return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx)); - } - return inst._zod.parse(checkResult, ctx); - }; - inst._zod.run = (payload, ctx) => { - if (ctx.skipChecks) return inst._zod.parse(payload, ctx); - if (ctx.direction === "backward") { - const canary = inst._zod.parse({ - value: payload.value, - issues: [] - }, { - ...ctx, - skipChecks: true - }); - if (canary instanceof Promise) return canary.then((canary) => { - return handleCanaryResult(canary, payload, ctx); - }); - return handleCanaryResult(canary, payload, ctx); - } - const result = inst._zod.parse(payload, ctx); - if (result instanceof Promise) { - if (ctx.async === false) throw new $ZodAsyncError(); - return result.then((result) => runChecks(result, checks, ctx)); - } - return runChecks(result, checks, ctx); - }; - } - inst["~standard"] = { - validate: (value) => { - try { - const r = safeParse$1(inst, value); - return r.success ? { value: r.data } : { issues: r.error?.issues }; - } catch (_) { - return safeParseAsync$1(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues }); - } - }, - vendor: "zod", - version: 1 - }; -}); -const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$2(inst._zod.bag); - inst._zod.parse = (payload, _) => { - if (def.coerce) try { - payload.value = String(payload.value); - } catch (_) {} - if (typeof payload.value === "string") return payload; - payload.issues.push({ - expected: "string", - code: "invalid_type", - input: payload.value, - inst - }); - return payload; - }; -}); -const $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, def) => { - $ZodCheckStringFormat.init(inst, def); - $ZodString.init(inst, def); -}); -const $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => { - def.pattern ?? (def.pattern = guid$1); - $ZodStringFormat.init(inst, def); -}); -const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => { - if (def.version) { - const v = { - v1: 1, - v2: 2, - v3: 3, - v4: 4, - v5: 5, - v6: 6, - v7: 7, - v8: 8 - }[def.version]; - if (v === void 0) throw new Error(`Invalid UUID version: "${def.version}"`); - def.pattern ?? (def.pattern = uuid$1(v)); - } else def.pattern ?? (def.pattern = uuid$1()); - $ZodStringFormat.init(inst, def); -}); -const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => { - def.pattern ?? (def.pattern = email$1); - $ZodStringFormat.init(inst, def); -}); -const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => { - $ZodStringFormat.init(inst, def); - inst._zod.check = (payload) => { - try { - const trimmed = payload.value.trim(); - const url = new URL(trimmed); - if (def.hostname) { - def.hostname.lastIndex = 0; - if (!def.hostname.test(url.hostname)) payload.issues.push({ - code: "invalid_format", - format: "url", - note: "Invalid hostname", - pattern: hostname$1.source, - input: payload.value, - inst, - continue: !def.abort - }); - } - if (def.protocol) { - def.protocol.lastIndex = 0; - if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) payload.issues.push({ - code: "invalid_format", - format: "url", - note: "Invalid protocol", - pattern: def.protocol.source, - input: payload.value, - inst, - continue: !def.abort - }); - } - if (def.normalize) payload.value = url.href; - else payload.value = trimmed; - return; - } catch (_) { - payload.issues.push({ - code: "invalid_format", - format: "url", - input: payload.value, - inst, - continue: !def.abort - }); - } - }; -}); -const $ZodEmoji = /*@__PURE__*/ $constructor("$ZodEmoji", (inst, def) => { - def.pattern ?? (def.pattern = emoji$1()); - $ZodStringFormat.init(inst, def); -}); -const $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => { - def.pattern ?? (def.pattern = nanoid$1); - $ZodStringFormat.init(inst, def); -}); -const $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => { - def.pattern ?? (def.pattern = cuid$1); - $ZodStringFormat.init(inst, def); -}); -const $ZodCUID2 = /*@__PURE__*/ $constructor("$ZodCUID2", (inst, def) => { - def.pattern ?? (def.pattern = cuid2$1); - $ZodStringFormat.init(inst, def); -}); -const $ZodULID = /*@__PURE__*/ $constructor("$ZodULID", (inst, def) => { - def.pattern ?? (def.pattern = ulid$1); - $ZodStringFormat.init(inst, def); -}); -const $ZodXID = /*@__PURE__*/ $constructor("$ZodXID", (inst, def) => { - def.pattern ?? (def.pattern = xid$1); - $ZodStringFormat.init(inst, def); -}); -const $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => { - def.pattern ?? (def.pattern = ksuid$1); - $ZodStringFormat.init(inst, def); -}); -const $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => { - def.pattern ?? (def.pattern = datetime$1(def)); - $ZodStringFormat.init(inst, def); -}); -const $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => { - def.pattern ?? (def.pattern = date$3); - $ZodStringFormat.init(inst, def); -}); -const $ZodISOTime = /*@__PURE__*/ $constructor("$ZodISOTime", (inst, def) => { - def.pattern ?? (def.pattern = time$1(def)); - $ZodStringFormat.init(inst, def); -}); -const $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def) => { - def.pattern ?? (def.pattern = duration$1); - $ZodStringFormat.init(inst, def); -}); -const $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => { - def.pattern ?? (def.pattern = ipv4$1); - $ZodStringFormat.init(inst, def); - inst._zod.onattach.push((inst) => { - const bag = inst._zod.bag; - bag.format = `ipv4`; - }); -}); -const $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => { - def.pattern ?? (def.pattern = ipv6$1); - $ZodStringFormat.init(inst, def); - inst._zod.onattach.push((inst) => { - const bag = inst._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 - }); - } - }; -}); -const $ZodCIDRv4 = /*@__PURE__*/ $constructor("$ZodCIDRv4", (inst, def) => { - def.pattern ?? (def.pattern = cidrv4$1); - $ZodStringFormat.init(inst, def); -}); -const $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => { - def.pattern ?? (def.pattern = cidrv6$1); - $ZodStringFormat.init(inst, def); - inst._zod.check = (payload) => { - const parts = payload.value.split("/"); - try { - if (parts.length !== 2) throw new Error(); - const [address, prefix] = parts; - 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 - }); - } - }; -}); -function isValidBase64(data) { - if (data === "") return true; - if (data.length % 4 !== 0) return false; - try { - atob(data); - return true; - } catch { - return false; - } -} -const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => { - def.pattern ?? (def.pattern = base64$1); - $ZodStringFormat.init(inst, def); - inst._zod.onattach.push((inst) => { - inst._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 - }); - }; -}); -function isValidBase64URL(data) { - if (!base64url$1.test(data)) return false; - const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/"); - return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "=")); -} -const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => { - def.pattern ?? (def.pattern = base64url$1); - $ZodStringFormat.init(inst, def); - inst._zod.onattach.push((inst) => { - inst._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 - }); - }; -}); -const $ZodE164 = /*@__PURE__*/ $constructor("$ZodE164", (inst, def) => { - def.pattern ?? (def.pattern = e164$1); - $ZodStringFormat.init(inst, def); -}); -function isValidJWT(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; - } -} -const $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => { - $ZodStringFormat.init(inst, def); - inst._zod.check = (payload) => { - if (isValidJWT(payload.value, def.alg)) return; - payload.issues.push({ - code: "invalid_format", - format: "jwt", - input: payload.value, - inst, - continue: !def.abort - }); - }; -}); -const $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 - }); - }; -}); -const $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.pattern = inst._zod.bag.pattern ?? number$2; - 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; - }; -}); -const $ZodNumberFormat = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => { - $ZodCheckNumberFormat.init(inst, def); - $ZodNumber.init(inst, def); -}); -const $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.pattern = boolean$2; - 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; - }; -}); -const $ZodBigInt = /*@__PURE__*/ $constructor("$ZodBigInt", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.pattern = bigint$2; - 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; - }; -}); -const $ZodBigIntFormat = /*@__PURE__*/ $constructor("$ZodBigInt", (inst, def) => { - $ZodCheckBigIntFormat.init(inst, def); - $ZodBigInt.init(inst, def); -}); -const $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; - }; -}); -const $ZodUndefined = /*@__PURE__*/ $constructor("$ZodUndefined", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.pattern = _undefined$2; - 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; - }; -}); -const $ZodNull = /*@__PURE__*/ $constructor("$ZodNull", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.pattern = _null$2; - 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; - }; -}); -const $ZodAny = /*@__PURE__*/ $constructor("$ZodAny", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.parse = (payload) => payload; -}); -const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.parse = (payload) => payload; -}); -const $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; - }; -}); -const $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; - }; -}); -const $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; - if (isDate && !Number.isNaN(input.getTime())) return payload; - payload.issues.push({ - expected: "date", - code: "invalid_type", - input, - ...isDate ? { received: "Invalid Date" } : {}, - inst - }); - return payload; - }; -}); -function handleArrayResult(result, final, index) { - if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues)); - final.value[index] = result.value; -} -const $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((result) => handleArrayResult(result, payload, i))); - else handleArrayResult(result, payload, i); - } - if (proms.length) return Promise.all(proms).then(() => payload); - return payload; - }; -}); -function handlePropertyResult(result, final, key, input) { - if (result.issues.length) final.issues.push(...prefixIssues(key, result.issues)); - if (result.value === void 0) { - if (key in input) final.value[key] = void 0; - } else final.value[key] = result.value; -} -function normalizeDef(def) { - const keys = Object.keys(def.shape); - for (const k of keys) if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) throw new Error(`Invalid element at key "${k}": expected a Zod schema`); - const okeys = optionalKeys(def.shape); - return { - ...def, - keys, - keySet: new Set(keys), - numKeys: keys.length, - optionalKeys: new Set(okeys) - }; -} -function handleCatchall(proms, input, payload, ctx, def, inst) { - const unrecognized = []; - const keySet = def.keySet; - const _catchall = def.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((r) => handlePropertyResult(r, payload, key, input))); - else handlePropertyResult(r, payload, key, input); - } - 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; - }); -} -const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => { - $ZodType.init(inst, def); - const _normalized = cached(() => normalizeDef(def)); - 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 isObject$2 = isObject; - const catchall = def.catchall; - let value; - inst._zod.parse = (payload, ctx) => { - value ?? (value = _normalized.value); - const input = payload.value; - if (!isObject$2(input)) { - payload.issues.push({ - expected: "object", - code: "invalid_type", - input, - inst - }); - return payload; - } - payload.value = {}; - const proms = []; - const shape = value.shape; - for (const key of value.keys) { - const r = shape[key]._zod.run({ - value: input[key], - issues: [] - }, ctx); - if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input))); - else handlePropertyResult(r, payload, key, input); - } - if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload; - return handleCatchall(proms, input, payload, ctx, _normalized.value, inst); - }; -}); -const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => { - $ZodObject.init(inst, def); - const superParse = inst._zod.parse; - const _normalized = cached(() => normalizeDef(def)); - 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 = 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) { - const id = ids[key]; - const k = esc(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 ? [${k}, ...iss.path] : [${k}] - }))); - } - - - if (${id}.value === undefined) { - if (${k} in input) { - newResult[${k}] = undefined; - } - } else { - newResult[${k}] = ${id}.value; - } - - `); - } - doc.write(`payload.value = newResult;`); - doc.write(`return payload;`); - const fn = doc.compile(); - return (payload, ctx) => fn(shape, payload, ctx); - }; - let fastpass; - const isObject$1 = isObject; - const jit = !globalConfig.jitless; - const fastEnabled = jit && allowsEval.value; - const catchall = def.catchall; - let value; - inst._zod.parse = (payload, ctx) => { - value ?? (value = _normalized.value); - const input = payload.value; - if (!isObject$1(input)) { - payload.issues.push({ - expected: "object", - code: "invalid_type", - input, - inst - }); - return payload; - } - if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) { - if (!fastpass) fastpass = generateFastpass(def.shape); - payload = fastpass(payload, ctx); - if (!catchall) return payload; - return handleCatchall([], input, payload, ctx, value, inst); - } - return superParse(payload, ctx); - }; -}); -function handleUnionResults(results, final, inst, ctx) { - for (const result of results) if (result.issues.length === 0) { - final.value = result.value; - return final; - } - const nonaborted = results.filter((r) => !aborted(r)); - if (nonaborted.length === 1) { - final.value = nonaborted[0].value; - return nonaborted[0]; - } - final.issues.push({ - code: "invalid_union", - input: final.value, - inst, - errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config()))) - }); - return final; -} -const $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))); - }); - 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("|")})$`); - } - }); - const single = def.options.length === 1; - const first = def.options[0]._zod.run; - inst._zod.parse = (payload, ctx) => { - if (single) return first(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((results) => { - return handleUnionResults(results, payload, inst, ctx); - }); - }; -}); -const $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 = cached(() => { - 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 (!isObject(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", - discriminator: def.discriminator, - input, - path: [def.discriminator], - inst - }); - return payload; - }; -}); -const $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); - if (left instanceof Promise || right instanceof Promise) return Promise.all([left, right]).then(([left, right]) => { - return handleIntersectionResults(payload, left, right); - }); - return handleIntersectionResults(payload, left, right); - }; -}); -function mergeValues(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 (isPlainObject(a) && isPlainObject(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 = mergeValues(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 = mergeValues(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 = mergeValues(left.value, right.value); - if (!merged.valid) throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`); - result.value = merged.data; - return result; -} -const $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({ - ...tooBig ? { - code: "too_big", - maximum: items.length - } : { - code: "too_small", - minimum: items.length - }, - input, - inst, - origin: "array" - }); - 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((result) => handleTupleResult(result, 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((result) => handleTupleResult(result, payload, i))); - else handleTupleResult(result, payload, i); - } - } - if (proms.length) return Promise.all(proms).then(() => payload); - return payload; - }; -}); -function handleTupleResult(result, final, index) { - if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues)); - final.value[index] = result.value; -} -const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.parse = (payload, ctx) => { - const input = payload.value; - if (!isPlainObject(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((result) => { - if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues)); - payload.value[key] = result.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({ - code: "invalid_key", - origin: "record", - 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((result) => { - if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues)); - payload.value[keyResult.value] = result.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; - }; -}); -const $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, value] of input) { - const keyResult = def.keyType._zod.run({ - value: key, - issues: [] - }, ctx); - const valueResult = def.valueType._zod.run({ - value, - issues: [] - }, ctx); - if (keyResult instanceof Promise || valueResult instanceof Promise) proms.push(Promise.all([keyResult, valueResult]).then(([keyResult, valueResult]) => { - handleMapResult(keyResult, valueResult, 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; - }; -}); -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({ - code: "invalid_key", - origin: "map", - 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); -} -const $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((result) => handleSetResult(result, payload))); - else handleSetResult(result, payload); - } - if (proms.length) return Promise.all(proms).then(() => payload); - return payload; - }; -}); -function handleSetResult(result, final) { - if (result.issues.length) final.issues.push(...result.issues); - final.value.add(result.value); -} -const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => { - $ZodType.init(inst, def); - const values = getEnumValues(def.entries); - const valuesSet = new Set(values); - inst._zod.values = valuesSet; - 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 (valuesSet.has(input)) return payload; - payload.issues.push({ - code: "invalid_value", - values, - input, - inst - }); - return payload; - }; -}); -const $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => { - $ZodType.init(inst, def); - if (def.values.length === 0) throw new Error("Cannot create literal schema with no valid values"); - inst._zod.values = new Set(def.values); - inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(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; - }; -}); -const $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; - }; -}); -const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.parse = (payload, ctx) => { - if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name); - const _out = def.transform(payload.value, payload); - if (ctx.async) return (_out instanceof Promise ? _out : Promise.resolve(_out)).then((output) => { - payload.value = output; - return payload; - }); - if (_out instanceof Promise) throw new $ZodAsyncError(); - payload.value = _out; - return payload; - }; -}); -function handleOptionalResult(result, input) { - if (result.issues.length && input === void 0) return { - issues: [], - value: void 0 - }; - return result; -} -const $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") { - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) return result.then((r) => handleOptionalResult(r, payload.value)); - return handleOptionalResult(result, payload.value); - } - if (payload.value === void 0) return payload; - return def.innerType._zod.run(payload, ctx); - }; -}); -const $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); - }; -}); -const $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 (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx); - if (payload.value === void 0) { - payload.value = def.defaultValue; - /** - * $ZodDefault returns the default value immediately in forward direction. - * It doesn't pass the default value into the validator ("prefault"). There's no reason to pass the default value through validation. The validity of the default is enforced by TypeScript statically. Otherwise, it's the responsibility of the user to ensure the default is valid. In the case of pipes with divergent in/out types, you can specify the default on the `in` schema of your ZodPipe to set a "prefault" for the pipe. */ - return payload; - } - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) return result.then((result) => handleDefaultResult(result, def)); - return handleDefaultResult(result, def); - }; -}); -function handleDefaultResult(payload, def) { - if (payload.value === void 0) payload.value = def.defaultValue; - return payload; -} -const $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 (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx); - if (payload.value === void 0) payload.value = def.defaultValue; - return def.innerType._zod.run(payload, ctx); - }; -}); -const $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((result) => handleNonOptionalResult(result, inst)); - return handleNonOptionalResult(result, inst); - }; -}); -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; -} -const $ZodSuccess = /*@__PURE__*/ $constructor("$ZodSuccess", (inst, def) => { - $ZodType.init(inst, def); - inst._zod.parse = (payload, ctx) => { - if (ctx.direction === "backward") throw new $ZodEncodeError("ZodSuccess"); - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) return result.then((result) => { - payload.value = result.issues.length === 0; - return payload; - }); - payload.value = result.issues.length === 0; - return payload; - }; -}); -const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (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, "values", () => def.innerType._zod.values); - inst._zod.parse = (payload, ctx) => { - if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx); - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) return result.then((result) => { - 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; - }); - 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; - }; -}); -const $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; - }; -}); -const $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); - defineLazy(inst._zod, "propValues", () => def.in._zod.propValues); - inst._zod.parse = (payload, ctx) => { - if (ctx.direction === "backward") { - const right = def.out._zod.run(payload, ctx); - if (right instanceof Promise) return right.then((right) => handlePipeResult(right, def.in, ctx)); - return handlePipeResult(right, def.in, ctx); - } - const left = def.in._zod.run(payload, ctx); - if (left instanceof Promise) return left.then((left) => handlePipeResult(left, def.out, ctx)); - return handlePipeResult(left, def.out, ctx); - }; -}); -function handlePipeResult(left, next, ctx) { - if (left.issues.length) { - left.aborted = true; - return left; - } - return next._zod.run({ - value: left.value, - issues: left.issues - }, ctx); -} -const $ZodCodec = /*@__PURE__*/ $constructor("$ZodCodec", (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); - defineLazy(inst._zod, "propValues", () => def.in._zod.propValues); - inst._zod.parse = (payload, ctx) => { - if ((ctx.direction || "forward") === "forward") { - const left = def.in._zod.run(payload, ctx); - if (left instanceof Promise) return left.then((left) => handleCodecAResult(left, def, ctx)); - return handleCodecAResult(left, def, ctx); - } else { - const right = def.out._zod.run(payload, ctx); - if (right instanceof Promise) return right.then((right) => handleCodecAResult(right, def, ctx)); - return handleCodecAResult(right, def, ctx); - } - }; -}); -function handleCodecAResult(result, def, ctx) { - if (result.issues.length) { - result.aborted = true; - return result; - } - if ((ctx.direction || "forward") === "forward") { - const transformed = def.transform(result.value, result); - if (transformed instanceof Promise) return transformed.then((value) => handleCodecTxResult(result, value, def.out, ctx)); - return handleCodecTxResult(result, transformed, def.out, ctx); - } else { - const transformed = def.reverseTransform(result.value, result); - if (transformed instanceof Promise) return transformed.then((value) => handleCodecTxResult(result, value, def.in, ctx)); - return handleCodecTxResult(result, transformed, def.in, ctx); - } -} -function handleCodecTxResult(left, value, nextSchema, ctx) { - if (left.issues.length) { - left.aborted = true; - return left; - } - return nextSchema._zod.run({ - value, - issues: left.issues - }, ctx); -} -const $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) => { - if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx); - const result = def.innerType._zod.run(payload, ctx); - if (result instanceof Promise) return result.then(handleReadonlyResult); - return handleReadonlyResult(result); - }; -}); -function handleReadonlyResult(payload) { - payload.value = Object.freeze(payload.value); - return payload; -} -const $ZodTemplateLiteral = /*@__PURE__*/ $constructor("$ZodTemplateLiteral", (inst, def) => { - $ZodType.init(inst, def); - const regexParts = []; - for (const part of def.parts) if (typeof part === "object" && part !== null) { - 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: def.format ?? "template_literal", - pattern: inst._zod.pattern.source - }); - return payload; - } - return payload; - }; -}); -const $ZodFunction = /*@__PURE__*/ $constructor("$ZodFunction", (inst, def) => { - $ZodType.init(inst, def); - inst._def = def; - inst._zod.def = def; - inst.implement = (func) => { - if (typeof func !== "function") throw new Error("implement() must be called with a function"); - return function(...args) { - const parsedArgs = inst._def.input ? parse$1(inst._def.input, args) : args; - const result = Reflect.apply(func, this, parsedArgs); - if (inst._def.output) return parse$1(inst._def.output, result); - return result; - }; - }; - inst.implementAsync = (func) => { - if (typeof func !== "function") throw new Error("implementAsync() must be called with a function"); - return async function(...args) { - const parsedArgs = inst._def.input ? await parseAsync$1(inst._def.input, args) : args; - const result = await Reflect.apply(func, this, parsedArgs); - if (inst._def.output) return await parseAsync$1(inst._def.output, result); - return result; - }; - }; - inst._zod.parse = (payload, _ctx) => { - if (typeof payload.value !== "function") { - payload.issues.push({ - code: "invalid_type", - expected: "function", - input: payload.value, - inst - }); - return payload; - } - if (inst._def.output && inst._def.output._zod.def.type === "promise") payload.value = inst.implementAsync(payload.value); - else payload.value = inst.implement(payload.value); - return payload; - }; - inst.input = (...args) => { - const F = inst.constructor; - if (Array.isArray(args[0])) return new F({ - type: "function", - input: new $ZodTuple({ - type: "tuple", - items: args[0], - rest: args[1] - }), - output: inst._def.output - }); - return new F({ - type: "function", - input: args[0], - output: inst._def.output - }); - }; - inst.output = (output) => { - const F = inst.constructor; - return new F({ - type: "function", - input: inst._def.input, - output - }); - }; - return inst; -}); -const $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)); - }; -}); -const $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 ?? void 0); - defineLazy(inst._zod, "optout", () => inst._zod.innerType._zod.optout ?? void 0); - inst._zod.parse = (payload, ctx) => { - return inst._zod.innerType._zod.run(payload, ctx); - }; -}); -const $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((r) => handleRefineResult(r, payload, input, inst)); - handleRefineResult(r, payload, input, inst); - }; -}); -function handleRefineResult(result, payload, input, inst) { - if (!result) { - const _iss = { - code: "custom", - input, - inst, - path: [...inst._zod.def.path ?? []], - continue: !inst._zod.def.abort - }; - if (inst._zod.def.params) _iss.params = inst._zod.def.params; - payload.issues.push(issue(_iss)); - } -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ar.js -const error$43 = () => { - const Sizable = { - string: { - unit: "حرف", - verb: "أن يحوي" - }, - file: { - unit: "بايت", - verb: "أن يحوي" - }, - array: { - unit: "عنصر", - verb: "أن يحوي" - }, - set: { - unit: "عنصر", - verb: "أن يحوي" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const 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; - }; - const Nouns = { - regex: "مدخل", - email: "بريد إلكتروني", - url: "رابط", - emoji: "إيموجي", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "تاريخ ووقت بمعيار ISO", - date: "تاريخ بمعيار ISO", - time: "وقت بمعيار ISO", - duration: "مدة بمعيار ISO", - ipv4: "عنوان IPv4", - ipv6: "عنوان IPv6", - cidrv4: "مدى عناوين بصيغة IPv4", - cidrv6: "مدى عناوين بصيغة IPv6", - base64: "نَص بترميز base64-encoded", - base64url: "نَص بترميز base64url-encoded", - json_string: "نَص على هيئة JSON", - e164: "رقم هاتف بمعيار E.164", - jwt: "JWT", - template_literal: "مدخل" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `مدخلات غير مقبولة: يفترض إدخال ${issue.expected}، ولكن تم إدخال ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue.values[0])}`; - return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return ` أكبر من اللازم: يفترض أن تكون ${issue.origin ?? "القيمة"} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? "عنصر"}`; - return `أكبر من اللازم: يفترض أن تكون ${issue.origin ?? "القيمة"} ${adj} ${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `أصغر من اللازم: يفترض لـ ${issue.origin} أن يكون ${adj} ${issue.minimum.toString()} ${sizing.unit}`; - return `أصغر من اللازم: يفترض لـ ${issue.origin} أن يكون ${adj} ${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `نَص غير مقبول: يجب أن يبدأ بـ "${issue.prefix}"`; - if (_issue.format === "ends_with") return `نَص غير مقبول: يجب أن ينتهي بـ "${_issue.suffix}"`; - if (_issue.format === "includes") return `نَص غير مقبول: يجب أن يتضمَّن "${_issue.includes}"`; - if (_issue.format === "regex") return `نَص غير مقبول: يجب أن يطابق النمط ${_issue.pattern}`; - return `${Nouns[_issue.format] ?? issue.format} غير مقبول`; - } - case "not_multiple_of": return `رقم غير مقبول: يجب أن يكون من مضاعفات ${issue.divisor}`; - case "unrecognized_keys": return `معرف${issue.keys.length > 1 ? "ات" : ""} غريب${issue.keys.length > 1 ? "ة" : ""}: ${joinValues(issue.keys, "، ")}`; - case "invalid_key": return `معرف غير مقبول في ${issue.origin}`; - case "invalid_union": return "مدخل غير مقبول"; - case "invalid_element": return `مدخل غير مقبول في ${issue.origin}`; - default: return "مدخل غير مقبول"; - } - }; -}; -function ar_default() { - return { localeError: error$43() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/az.js -const error$42 = () => { - const Sizable = { - string: { - unit: "simvol", - verb: "olmalıdır" - }, - file: { - unit: "bayt", - verb: "olmalıdır" - }, - array: { - unit: "element", - verb: "olmalıdır" - }, - set: { - unit: "element", - verb: "olmalıdır" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const 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; - }; - 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 (issue) => { - switch (issue.code) { - case "invalid_type": return `Yanlış dəyər: gözlənilən ${issue.expected}, daxil olan ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue.values[0])}`; - return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Çox böyük: gözlənilən ${issue.origin ?? "dəyər"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "element"}`; - return `Çox böyük: gözlənilən ${issue.origin ?? "dəyər"} ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Çox kiçik: gözlənilən ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Çox kiçik: gözlənilən ${issue.origin} ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Yanlış mətn: "${_issue.prefix}" ilə başlamalıdır`; - if (_issue.format === "ends_with") return `Yanlış mətn: "${_issue.suffix}" ilə bitməlidir`; - if (_issue.format === "includes") return `Yanlış mətn: "${_issue.includes}" daxil olmalıdır`; - if (_issue.format === "regex") return `Yanlış mətn: ${_issue.pattern} şablonuna uyğun olmalıdır`; - return `Yanlış ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Yanlış ədəd: ${issue.divisor} ilə bölünə bilən olmalıdır`; - case "unrecognized_keys": return `Tanınmayan açar${issue.keys.length > 1 ? "lar" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `${issue.origin} daxilində yanlış açar`; - case "invalid_union": return "Yanlış dəyər"; - case "invalid_element": return `${issue.origin} daxilində yanlış dəyər`; - default: return `Yanlış dəyər`; - } - }; -}; -function az_default() { - return { localeError: error$42() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/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; -} -const error$41 = () => { - const Sizable = { - string: { - unit: { - one: "сімвал", - few: "сімвалы", - many: "сімвалаў" - }, - verb: "мець" - }, - array: { - unit: { - one: "элемент", - few: "элементы", - many: "элементаў" - }, - verb: "мець" - }, - set: { - unit: { - one: "элемент", - few: "элементы", - many: "элементаў" - }, - verb: "мець" - }, - file: { - unit: { - one: "байт", - few: "байты", - many: "байтаў" - }, - verb: "мець" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "лік"; - case "object": - if (Array.isArray(data)) return "масіў"; - if (data === null) return "null"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; - }; - const Nouns = { - regex: "увод", - email: "email адрас", - url: "URL", - emoji: "эмодзі", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "ISO дата і час", - date: "ISO дата", - time: "ISO час", - duration: "ISO працягласць", - ipv4: "IPv4 адрас", - ipv6: "IPv6 адрас", - cidrv4: "IPv4 дыяпазон", - cidrv6: "IPv6 дыяпазон", - base64: "радок у фармаце base64", - base64url: "радок у фармаце base64url", - json_string: "JSON радок", - e164: "нумар E.164", - jwt: "JWT", - template_literal: "увод" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Няправільны ўвод: чакаўся ${issue.expected}, атрымана ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue.values[0])}`; - return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) { - const unit = getBelarusianPlural(Number(issue.maximum), sizing.unit.one, sizing.unit.few, sizing.unit.many); - return `Занадта вялікі: чакалася, што ${issue.origin ?? "значэнне"} павінна ${sizing.verb} ${adj}${issue.maximum.toString()} ${unit}`; - } - return `Занадта вялікі: чакалася, што ${issue.origin ?? "значэнне"} павінна быць ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) { - const unit = getBelarusianPlural(Number(issue.minimum), sizing.unit.one, sizing.unit.few, sizing.unit.many); - return `Занадта малы: чакалася, што ${issue.origin} павінна ${sizing.verb} ${adj}${issue.minimum.toString()} ${unit}`; - } - return `Занадта малы: чакалася, што ${issue.origin} павінна быць ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Няправільны радок: павінен пачынацца з "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Няправільны радок: павінен заканчвацца на "${_issue.suffix}"`; - if (_issue.format === "includes") return `Няправільны радок: павінен змяшчаць "${_issue.includes}"`; - if (_issue.format === "regex") return `Няправільны радок: павінен адпавядаць шаблону ${_issue.pattern}`; - return `Няправільны ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Няправільны лік: павінен быць кратным ${issue.divisor}`; - case "unrecognized_keys": return `Нераспазнаны ${issue.keys.length > 1 ? "ключы" : "ключ"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Няправільны ключ у ${issue.origin}`; - case "invalid_union": return "Няправільны ўвод"; - case "invalid_element": return `Няправільнае значэнне ў ${issue.origin}`; - default: return `Няправільны ўвод`; - } - }; -}; -function be_default() { - return { localeError: error$41() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ca.js -const error$40 = () => { - const Sizable = { - string: { - unit: "caràcters", - 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 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; - }; - const Nouns = { - regex: "entrada", - email: "adreça electrònica", - 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ça IPv4", - ipv6: "adreça IPv6", - cidrv4: "rang IPv4", - cidrv6: "rang IPv6", - base64: "cadena codificada en base64", - base64url: "cadena codificada en base64url", - json_string: "cadena JSON", - e164: "número E.164", - jwt: "JWT", - template_literal: "entrada" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Tipus invàlid: s'esperava ${issue.expected}, s'ha rebut ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Valor invàlid: s'esperava ${stringifyPrimitive(issue.values[0])}`; - return `Opció invàlida: s'esperava una de ${joinValues(issue.values, " o ")}`; - case "too_big": { - const adj = issue.inclusive ? "com a màxim" : "menys de"; - const sizing = getSizing(issue.origin); - if (sizing) return `Massa gran: s'esperava que ${issue.origin ?? "el valor"} contingués ${adj} ${issue.maximum.toString()} ${sizing.unit ?? "elements"}`; - return `Massa gran: s'esperava que ${issue.origin ?? "el valor"} fos ${adj} ${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? "com a mínim" : "més de"; - const sizing = getSizing(issue.origin); - if (sizing) return `Massa petit: s'esperava que ${issue.origin} contingués ${adj} ${issue.minimum.toString()} ${sizing.unit}`; - return `Massa petit: s'esperava que ${issue.origin} fos ${adj} ${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Format invàlid: ha de començar amb "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Format invàlid: ha d'acabar amb "${_issue.suffix}"`; - if (_issue.format === "includes") return `Format invàlid: ha d'incloure "${_issue.includes}"`; - if (_issue.format === "regex") return `Format invàlid: ha de coincidir amb el patró ${_issue.pattern}`; - return `Format invàlid per a ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Número invàlid: ha de ser múltiple de ${issue.divisor}`; - case "unrecognized_keys": return `Clau${issue.keys.length > 1 ? "s" : ""} no reconeguda${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Clau invàlida a ${issue.origin}`; - case "invalid_union": return "Entrada invàlida"; - case "invalid_element": return `Element invàlid a ${issue.origin}`; - default: return `Entrada invàlida`; - } - }; -}; -function ca_default() { - return { localeError: error$40() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/cs.js -const error$39 = () => { - const Sizable = { - string: { - unit: "znaků", - verb: "mít" - }, - file: { - unit: "bajtů", - verb: "mít" - }, - array: { - unit: "prvků", - verb: "mít" - }, - set: { - unit: "prvků", - verb: "mít" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "číslo"; - case "string": return "řetězec"; - 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ární výraz", - email: "e-mailová 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 čas ve formátu ISO", - date: "datum ve formátu ISO", - time: "čas ve formátu ISO", - duration: "doba trvání ISO", - ipv4: "IPv4 adresa", - ipv6: "IPv6 adresa", - cidrv4: "rozsah IPv4", - cidrv6: "rozsah IPv6", - base64: "řetězec zakódovaný ve formátu base64", - base64url: "řetězec zakódovaný ve formátu base64url", - json_string: "řetězec ve formátu JSON", - e164: "číslo E.164", - jwt: "JWT", - template_literal: "vstup" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Neplatný vstup: očekáváno ${issue.expected}, obdrženo ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue.values[0])}`; - return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Hodnota je příliš velká: ${issue.origin ?? "hodnota"} musí mít ${adj}${issue.maximum.toString()} ${sizing.unit ?? "prvků"}`; - return `Hodnota je příliš velká: ${issue.origin ?? "hodnota"} musí být ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Hodnota je příliš malá: ${issue.origin ?? "hodnota"} musí mít ${adj}${issue.minimum.toString()} ${sizing.unit ?? "prvků"}`; - return `Hodnota je příliš malá: ${issue.origin ?? "hodnota"} musí být ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Neplatný řetězec: musí začínat na "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Neplatný řetězec: musí končit na "${_issue.suffix}"`; - if (_issue.format === "includes") return `Neplatný řetězec: musí obsahovat "${_issue.includes}"`; - if (_issue.format === "regex") return `Neplatný řetězec: musí odpovídat vzoru ${_issue.pattern}`; - return `Neplatný formát ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Neplatné číslo: musí být násobkem ${issue.divisor}`; - case "unrecognized_keys": return `Neznámé klíče: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Neplatný klíč v ${issue.origin}`; - case "invalid_union": return "Neplatný vstup"; - case "invalid_element": return `Neplatná hodnota v ${issue.origin}`; - default: return `Neplatný vstup`; - } - }; -}; -function cs_default() { - return { localeError: error$39() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/da.js -const error$38 = () => { - const Sizable = { - string: { - unit: "tegn", - verb: "havde" - }, - file: { - unit: "bytes", - verb: "havde" - }, - array: { - unit: "elementer", - verb: "indeholdt" - }, - set: { - unit: "elementer", - verb: "indeholdt" - } - }; - const TypeNames = { - string: "streng", - number: "tal", - boolean: "boolean", - array: "liste", - object: "objekt", - set: "sæt", - file: "fil" - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - function getTypeName(type) { - return TypeNames[type] ?? type; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "tal"; - 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 "objekt"; - } - return t; - }; - const Nouns = { - regex: "input", - email: "e-mailadresse", - 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 klokkeslæt", - date: "ISO-dato", - time: "ISO-klokkeslæt", - duration: "ISO-varighed", - ipv4: "IPv4-område", - ipv6: "IPv6-område", - cidrv4: "IPv4-spektrum", - cidrv6: "IPv6-spektrum", - base64: "base64-kodet streng", - base64url: "base64url-kodet streng", - json_string: "JSON-streng", - e164: "E.164-nummer", - jwt: "JWT", - template_literal: "input" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Ugyldigt input: forventede ${getTypeName(issue.expected)}, fik ${getTypeName(parsedType(issue.input))}`; - case "invalid_value": - if (issue.values.length === 1) return `Ugyldig værdi: forventede ${stringifyPrimitive(issue.values[0])}`; - return `Ugyldigt valg: forventede en af følgende ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - const origin = getTypeName(issue.origin); - if (sizing) return `For stor: forventede ${origin ?? "value"} ${sizing.verb} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? "elementer"}`; - return `For stor: forventede ${origin ?? "value"} havde ${adj} ${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - const origin = getTypeName(issue.origin); - if (sizing) return `For lille: forventede ${origin} ${sizing.verb} ${adj} ${issue.minimum.toString()} ${sizing.unit}`; - return `For lille: forventede ${origin} havde ${adj} ${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Ugyldig streng: skal starte med "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Ugyldig streng: skal ende med "${_issue.suffix}"`; - if (_issue.format === "includes") return `Ugyldig streng: skal indeholde "${_issue.includes}"`; - if (_issue.format === "regex") return `Ugyldig streng: skal matche mønsteret ${_issue.pattern}`; - return `Ugyldig ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Ugyldigt tal: skal være deleligt med ${issue.divisor}`; - case "unrecognized_keys": return `${issue.keys.length > 1 ? "Ukendte nøgler" : "Ukendt nøgle"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Ugyldig nøgle i ${issue.origin}`; - case "invalid_union": return "Ugyldigt input: matcher ingen af de tilladte typer"; - case "invalid_element": return `Ugyldig værdi i ${issue.origin}`; - default: return `Ugyldigt input`; - } - }; -}; -function da_default() { - return { localeError: error$38() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/de.js -const error$37 = () => { - 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 parsedType = (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 (issue) => { - switch (issue.code) { - case "invalid_type": return `Ungültige Eingabe: erwartet ${issue.expected}, erhalten ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue.values[0])}`; - return `Ungültige Option: erwartet eine von ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Zu groß: erwartet, dass ${issue.origin ?? "Wert"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "Elemente"} hat`; - return `Zu groß: erwartet, dass ${issue.origin ?? "Wert"} ${adj}${issue.maximum.toString()} ist`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Zu klein: erwartet, dass ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} hat`; - return `Zu klein: erwartet, dass ${issue.origin} ${adj}${issue.minimum.toString()} ist`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Ungültiger String: muss mit "${_issue.prefix}" beginnen`; - if (_issue.format === "ends_with") return `Ungültiger String: muss mit "${_issue.suffix}" enden`; - if (_issue.format === "includes") return `Ungültiger String: muss "${_issue.includes}" enthalten`; - if (_issue.format === "regex") return `Ungültiger String: muss dem Muster ${_issue.pattern} entsprechen`; - return `Ungültig: ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Ungültige Zahl: muss ein Vielfaches von ${issue.divisor} sein`; - case "unrecognized_keys": return `${issue.keys.length > 1 ? "Unbekannte Schlüssel" : "Unbekannter Schlüssel"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Ungültiger Schlüssel in ${issue.origin}`; - case "invalid_union": return "Ungültige Eingabe"; - case "invalid_element": return `Ungültiger Wert in ${issue.origin}`; - default: return `Ungültige Eingabe`; - } - }; -}; -function de_default() { - return { localeError: error$37() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/en.js -const parsedType$5 = (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 error$36 = () => { - 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 (issue) => { - switch (issue.code) { - case "invalid_type": return `Invalid input: expected ${issue.expected}, received ${parsedType$5(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue.values[0])}`; - return `Invalid option: expected one of ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Too big: expected ${issue.origin ?? "value"} to have ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elements"}`; - return `Too big: expected ${issue.origin ?? "value"} to be ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Too small: expected ${issue.origin} to have ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Too small: expected ${issue.origin} to be ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - 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] ?? issue.format}`; - } - case "not_multiple_of": return `Invalid number: must be a multiple of ${issue.divisor}`; - case "unrecognized_keys": return `Unrecognized key${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Invalid key in ${issue.origin}`; - case "invalid_union": return "Invalid input"; - case "invalid_element": return `Invalid value in ${issue.origin}`; - default: return `Invalid input`; - } - }; -}; -function en_default() { - return { localeError: error$36() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/eo.js -const parsedType$4 = (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; -}; -const error$35 = () => { - 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ĝio", - 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ŭro", - 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 (issue) => { - switch (issue.code) { - case "invalid_type": return `Nevalida enigo: atendiĝis ${issue.expected}, riceviĝis ${parsedType$4(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Nevalida enigo: atendiĝis ${stringifyPrimitive(issue.values[0])}`; - return `Nevalida opcio: atendiĝis unu el ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Tro granda: atendiĝis ke ${issue.origin ?? "valoro"} havu ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementojn"}`; - return `Tro granda: atendiĝis ke ${issue.origin ?? "valoro"} havu ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Tro malgranda: atendiĝis ke ${issue.origin} havu ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Tro malgranda: atendiĝis ke ${issue.origin} estu ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Nevalida karaktraro: devas finiĝi 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] ?? issue.format}`; - } - case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue.divisor}`; - case "unrecognized_keys": return `Nekonata${issue.keys.length > 1 ? "j" : ""} ŝlosilo${issue.keys.length > 1 ? "j" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Nevalida ŝlosilo en ${issue.origin}`; - case "invalid_union": return "Nevalida enigo"; - case "invalid_element": return `Nevalida valoro en ${issue.origin}`; - default: return `Nevalida enigo`; - } - }; -}; -function eo_default() { - return { localeError: error$35() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/es.js -const error$34 = () => { - const Sizable = { - string: { - unit: "caracteres", - verb: "tener" - }, - file: { - unit: "bytes", - verb: "tener" - }, - array: { - unit: "elementos", - verb: "tener" - }, - set: { - unit: "elementos", - verb: "tener" - } - }; - const TypeNames = { - string: "texto", - number: "número", - boolean: "booleano", - array: "arreglo", - object: "objeto", - set: "conjunto", - file: "archivo", - date: "fecha", - bigint: "número grande", - symbol: "símbolo", - undefined: "indefinido", - null: "nulo", - function: "función", - map: "mapa", - record: "registro", - tuple: "tupla", - enum: "enumeración", - union: "unión", - literal: "literal", - promise: "promesa", - void: "vacío", - never: "nunca", - unknown: "desconocido", - any: "cualquiera" - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - function getTypeName(type) { - return TypeNames[type] ?? type; - } - const 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) return data.constructor.name; - return "object"; - } - return t; - }; - const Nouns = { - regex: "entrada", - email: "dirección de correo electrónico", - 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ón ISO", - ipv4: "dirección IPv4", - ipv6: "dirección IPv6", - cidrv4: "rango IPv4", - cidrv6: "rango IPv6", - base64: "cadena codificada en base64", - base64url: "URL codificada en base64", - json_string: "cadena JSON", - e164: "número E.164", - jwt: "JWT", - template_literal: "entrada" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Entrada inválida: se esperaba ${getTypeName(issue.expected)}, recibido ${getTypeName(parsedType(issue.input))}`; - case "invalid_value": - if (issue.values.length === 1) return `Entrada inválida: se esperaba ${stringifyPrimitive(issue.values[0])}`; - return `Opción inválida: se esperaba una de ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - const origin = getTypeName(issue.origin); - if (sizing) return `Demasiado grande: se esperaba que ${origin ?? "valor"} tuviera ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementos"}`; - return `Demasiado grande: se esperaba que ${origin ?? "valor"} fuera ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - const origin = getTypeName(issue.origin); - if (sizing) return `Demasiado pequeño: se esperaba que ${origin} tuviera ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Demasiado pequeño: se esperaba que ${origin} fuera ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Cadena inválida: debe comenzar con "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Cadena inválida: debe terminar en "${_issue.suffix}"`; - if (_issue.format === "includes") return `Cadena inválida: debe incluir "${_issue.includes}"`; - if (_issue.format === "regex") return `Cadena inválida: debe coincidir con el patrón ${_issue.pattern}`; - return `Inválido ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Número inválido: debe ser múltiplo de ${issue.divisor}`; - case "unrecognized_keys": return `Llave${issue.keys.length > 1 ? "s" : ""} desconocida${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Llave inválida en ${getTypeName(issue.origin)}`; - case "invalid_union": return "Entrada inválida"; - case "invalid_element": return `Valor inválido en ${getTypeName(issue.origin)}`; - default: return `Entrada inválida`; - } - }; -}; -function es_default() { - return { localeError: error$34() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/fa.js -const error$33 = () => { - const Sizable = { - string: { - unit: "کاراکتر", - verb: "داشته باشد" - }, - file: { - unit: "بایت", - verb: "داشته باشد" - }, - array: { - unit: "آیتم", - verb: "داشته باشد" - }, - set: { - unit: "آیتم", - verb: "داشته باشد" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "عدد"; - case "object": - if (Array.isArray(data)) return "آرایه"; - if (data === null) return "null"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; - }; - const Nouns = { - regex: "ورودی", - email: "آدرس ایمیل", - url: "URL", - emoji: "ایموجی", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "تاریخ و زمان ایزو", - date: "تاریخ ایزو", - time: "زمان ایزو", - duration: "مدت زمان ایزو", - ipv4: "IPv4 آدرس", - ipv6: "IPv6 آدرس", - cidrv4: "IPv4 دامنه", - cidrv6: "IPv6 دامنه", - base64: "base64-encoded رشته", - base64url: "base64url-encoded رشته", - json_string: "JSON رشته", - e164: "E.164 عدد", - jwt: "JWT", - template_literal: "ورودی" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `ورودی نامعتبر: می‌بایست ${issue.expected} می‌بود، ${parsedType(issue.input)} دریافت شد`; - case "invalid_value": - if (issue.values.length === 1) return `ورودی نامعتبر: می‌بایست ${stringifyPrimitive(issue.values[0])} می‌بود`; - return `گزینه نامعتبر: می‌بایست یکی از ${joinValues(issue.values, "|")} می‌بود`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `خیلی بزرگ: ${issue.origin ?? "مقدار"} باید ${adj}${issue.maximum.toString()} ${sizing.unit ?? "عنصر"} باشد`; - return `خیلی بزرگ: ${issue.origin ?? "مقدار"} باید ${adj}${issue.maximum.toString()} باشد`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `خیلی کوچک: ${issue.origin} باید ${adj}${issue.minimum.toString()} ${sizing.unit} باشد`; - return `خیلی کوچک: ${issue.origin} باید ${adj}${issue.minimum.toString()} باشد`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `رشته نامعتبر: باید با "${_issue.prefix}" شروع شود`; - if (_issue.format === "ends_with") return `رشته نامعتبر: باید با "${_issue.suffix}" تمام شود`; - if (_issue.format === "includes") return `رشته نامعتبر: باید شامل "${_issue.includes}" باشد`; - if (_issue.format === "regex") return `رشته نامعتبر: باید با الگوی ${_issue.pattern} مطابقت داشته باشد`; - return `${Nouns[_issue.format] ?? issue.format} نامعتبر`; - } - case "not_multiple_of": return `عدد نامعتبر: باید مضرب ${issue.divisor} باشد`; - case "unrecognized_keys": return `کلید${issue.keys.length > 1 ? "های" : ""} ناشناس: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `کلید ناشناس در ${issue.origin}`; - case "invalid_union": return `ورودی نامعتبر`; - case "invalid_element": return `مقدار نامعتبر در ${issue.origin}`; - default: return `ورودی نامعتبر`; - } - }; -}; -function fa_default() { - return { localeError: error$33() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/fi.js -const error$32 = () => { - const Sizable = { - string: { - unit: "merkkiä", - 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äivämäärän" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const 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; - }; - const Nouns = { - regex: "säännöllinen lauseke", - email: "sähköpostiosoite", - 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äivämäärä", - 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 (issue) => { - switch (issue.code) { - case "invalid_type": return `Virheellinen tyyppi: odotettiin ${issue.expected}, oli ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue.values[0])}`; - return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Liian suuri: ${sizing.subject} täytyy olla ${adj}${issue.maximum.toString()} ${sizing.unit}`.trim(); - return `Liian suuri: arvon täytyy olla ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Liian pieni: ${sizing.subject} täytyy olla ${adj}${issue.minimum.toString()} ${sizing.unit}`.trim(); - return `Liian pieni: arvon täytyy olla ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Virheellinen syöte: täytyy alkaa "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Virheellinen syöte: täytyy loppua "${_issue.suffix}"`; - if (_issue.format === "includes") return `Virheellinen syöte: täytyy sisältää "${_issue.includes}"`; - if (_issue.format === "regex") return `Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${_issue.pattern}`; - return `Virheellinen ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Virheellinen luku: täytyy olla luvun ${issue.divisor} monikerta`; - case "unrecognized_keys": return `${issue.keys.length > 1 ? "Tuntemattomat avaimet" : "Tuntematon avain"}: ${joinValues(issue.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öte`; - } - }; -}; -function fi_default() { - return { localeError: error$32() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/fr.js -const error$31 = () => { - const Sizable = { - string: { - unit: "caractères", - verb: "avoir" - }, - file: { - unit: "octets", - verb: "avoir" - }, - array: { - unit: "éléments", - verb: "avoir" - }, - set: { - unit: "éléments", - verb: "avoir" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (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ée", - 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ée ISO", - ipv4: "adresse IPv4", - ipv6: "adresse IPv6", - cidrv4: "plage IPv4", - cidrv6: "plage IPv6", - base64: "chaîne encodée en base64", - base64url: "chaîne encodée en base64url", - json_string: "chaîne JSON", - e164: "numéro E.164", - jwt: "JWT", - template_literal: "entrée" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Entrée invalide : ${issue.expected} attendu, ${parsedType(issue.input)} reçu`; - case "invalid_value": - if (issue.values.length === 1) return `Entrée invalide : ${stringifyPrimitive(issue.values[0])} attendu`; - return `Option invalide : une valeur parmi ${joinValues(issue.values, "|")} attendue`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Trop grand : ${issue.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "élément(s)"}`; - return `Trop grand : ${issue.origin ?? "valeur"} doit être ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Trop petit : ${issue.origin} doit ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Trop petit : ${issue.origin} doit être ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Chaîne invalide : doit commencer par "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Chaîne invalide : doit se terminer par "${_issue.suffix}"`; - if (_issue.format === "includes") return `Chaîne invalide : doit inclure "${_issue.includes}"`; - if (_issue.format === "regex") return `Chaîne invalide : doit correspondre au modèle ${_issue.pattern}`; - return `${Nouns[_issue.format] ?? issue.format} invalide`; - } - case "not_multiple_of": return `Nombre invalide : doit être un multiple de ${issue.divisor}`; - case "unrecognized_keys": return `Clé${issue.keys.length > 1 ? "s" : ""} non reconnue${issue.keys.length > 1 ? "s" : ""} : ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Clé invalide dans ${issue.origin}`; - case "invalid_union": return "Entrée invalide"; - case "invalid_element": return `Valeur invalide dans ${issue.origin}`; - default: return `Entrée invalide`; - } - }; -}; -function fr_default() { - return { localeError: error$31() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/fr-CA.js -const error$30 = () => { - const Sizable = { - string: { - unit: "caractères", - verb: "avoir" - }, - file: { - unit: "octets", - verb: "avoir" - }, - array: { - unit: "éléments", - verb: "avoir" - }, - set: { - unit: "éléments", - verb: "avoir" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const 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; - }; - const Nouns = { - regex: "entrée", - 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ée ISO", - ipv4: "adresse IPv4", - ipv6: "adresse IPv6", - cidrv4: "plage IPv4", - cidrv6: "plage IPv6", - base64: "chaîne encodée en base64", - base64url: "chaîne encodée en base64url", - json_string: "chaîne JSON", - e164: "numéro E.164", - jwt: "JWT", - template_literal: "entrée" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Entrée invalide : attendu ${issue.expected}, reçu ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Entrée invalide : attendu ${stringifyPrimitive(issue.values[0])}`; - return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "≤" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Trop grand : attendu que ${issue.origin ?? "la valeur"} ait ${adj}${issue.maximum.toString()} ${sizing.unit}`; - return `Trop grand : attendu que ${issue.origin ?? "la valeur"} soit ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? "≥" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Trop petit : attendu que ${issue.origin} ait ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Trop petit : attendu que ${issue.origin} soit ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Chaîne invalide : doit commencer par "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Chaîne invalide : doit se terminer par "${_issue.suffix}"`; - if (_issue.format === "includes") return `Chaîne invalide : doit inclure "${_issue.includes}"`; - if (_issue.format === "regex") return `Chaîne invalide : doit correspondre au motif ${_issue.pattern}`; - return `${Nouns[_issue.format] ?? issue.format} invalide`; - } - case "not_multiple_of": return `Nombre invalide : doit être un multiple de ${issue.divisor}`; - case "unrecognized_keys": return `Clé${issue.keys.length > 1 ? "s" : ""} non reconnue${issue.keys.length > 1 ? "s" : ""} : ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Clé invalide dans ${issue.origin}`; - case "invalid_union": return "Entrée invalide"; - case "invalid_element": return `Valeur invalide dans ${issue.origin}`; - default: return `Entrée invalide`; - } - }; -}; -function fr_CA_default() { - return { localeError: error$30() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/he.js -const error$29 = () => { - const Sizable = { - string: { - unit: "אותיות", - verb: "לכלול" - }, - file: { - unit: "בייטים", - verb: "לכלול" - }, - array: { - unit: "פריטים", - verb: "לכלול" - }, - set: { - unit: "פריטים", - verb: "לכלול" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const 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; - }; - const Nouns = { - regex: "קלט", - email: "כתובת אימייל", - url: "כתובת רשת", - emoji: "אימוג'י", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "תאריך וזמן ISO", - date: "תאריך ISO", - time: "זמן ISO", - duration: "משך זמן ISO", - ipv4: "כתובת IPv4", - ipv6: "כתובת IPv6", - cidrv4: "טווח IPv4", - cidrv6: "טווח IPv6", - base64: "מחרוזת בבסיס 64", - base64url: "מחרוזת בבסיס 64 לכתובות רשת", - json_string: "מחרוזת JSON", - e164: "מספר E.164", - jwt: "JWT", - template_literal: "קלט" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `קלט לא תקין: צריך ${issue.expected}, התקבל ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `קלט לא תקין: צריך ${stringifyPrimitive(issue.values[0])}`; - return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `גדול מדי: ${issue.origin ?? "value"} צריך להיות ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elements"}`; - return `גדול מדי: ${issue.origin ?? "value"} צריך להיות ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `קטן מדי: ${issue.origin} צריך להיות ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `קטן מדי: ${issue.origin} צריך להיות ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `מחרוזת לא תקינה: חייבת להתחיל ב"${_issue.prefix}"`; - if (_issue.format === "ends_with") return `מחרוזת לא תקינה: חייבת להסתיים ב "${_issue.suffix}"`; - if (_issue.format === "includes") return `מחרוזת לא תקינה: חייבת לכלול "${_issue.includes}"`; - if (_issue.format === "regex") return `מחרוזת לא תקינה: חייבת להתאים לתבנית ${_issue.pattern}`; - return `${Nouns[_issue.format] ?? issue.format} לא תקין`; - } - case "not_multiple_of": return `מספר לא תקין: חייב להיות מכפלה של ${issue.divisor}`; - case "unrecognized_keys": return `מפתח${issue.keys.length > 1 ? "ות" : ""} לא מזוה${issue.keys.length > 1 ? "ים" : "ה"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `מפתח לא תקין ב${issue.origin}`; - case "invalid_union": return "קלט לא תקין"; - case "invalid_element": return `ערך לא תקין ב${issue.origin}`; - default: return `קלט לא תקין`; - } - }; -}; -function he_default() { - return { localeError: error$29() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/hu.js -const error$28 = () => { - 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 parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "szám"; - case "object": - if (Array.isArray(data)) return "tömb"; - 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ím", - 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őbélyeg", - date: "ISO dátum", - time: "ISO idő", - duration: "ISO időintervallum", - ipv4: "IPv4 cím", - ipv6: "IPv6 cím", - cidrv4: "IPv4 tartomány", - cidrv6: "IPv6 tartomány", - base64: "base64-kódolt string", - base64url: "base64url-kódolt string", - json_string: "JSON string", - e164: "E.164 szám", - jwt: "JWT", - template_literal: "bemenet" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Érvénytelen bemenet: a várt érték ${issue.expected}, a kapott érték ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue.values[0])}`; - return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Túl nagy: ${issue.origin ?? "érték"} mérete túl nagy ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elem"}`; - return `Túl nagy: a bemeneti érték ${issue.origin ?? "érték"} túl nagy: ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Túl kicsi: a bemeneti érték ${issue.origin} mérete túl kicsi ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Túl kicsi: a bemeneti érték ${issue.origin} túl kicsi ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Érvénytelen string: "${_issue.prefix}" értékkel kell kezdődnie`; - if (_issue.format === "ends_with") return `Érvénytelen string: "${_issue.suffix}" értékkel kell végződnie`; - if (_issue.format === "includes") return `Érvénytelen string: "${_issue.includes}" értéket kell tartalmaznia`; - if (_issue.format === "regex") return `Érvénytelen string: ${_issue.pattern} mintának kell megfelelnie`; - return `Érvénytelen ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Érvénytelen szám: ${issue.divisor} többszörösének kell lennie`; - case "unrecognized_keys": return `Ismeretlen kulcs${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Érvénytelen kulcs ${issue.origin}`; - case "invalid_union": return "Érvénytelen bemenet"; - case "invalid_element": return `Érvénytelen érték: ${issue.origin}`; - default: return `Érvénytelen bemenet`; - } - }; -}; -function hu_default() { - return { localeError: error$28() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/id.js -const error$27 = () => { - 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 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; - }; - 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 (issue) => { - switch (issue.code) { - case "invalid_type": return `Input tidak valid: diharapkan ${issue.expected}, diterima ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue.values[0])}`; - return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Terlalu besar: diharapkan ${issue.origin ?? "value"} memiliki ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elemen"}`; - return `Terlalu besar: diharapkan ${issue.origin ?? "value"} menjadi ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Terlalu kecil: diharapkan ${issue.origin} memiliki ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Terlalu kecil: diharapkan ${issue.origin} menjadi ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - 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] ?? issue.format} tidak valid`; - } - case "not_multiple_of": return `Angka tidak valid: harus kelipatan dari ${issue.divisor}`; - case "unrecognized_keys": return `Kunci tidak dikenali ${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Kunci tidak valid di ${issue.origin}`; - case "invalid_union": return "Input tidak valid"; - case "invalid_element": return `Nilai tidak valid di ${issue.origin}`; - default: return `Input tidak valid`; - } - }; -}; -function id_default() { - return { localeError: error$27() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/is.js -const parsedType$3 = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "númer"; - case "object": - if (Array.isArray(data)) return "fylki"; - if (data === null) return "null"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; -}; -const error$26 = () => { - const Sizable = { - string: { - unit: "stafi", - verb: "að hafa" - }, - file: { - unit: "bæti", - verb: "að hafa" - }, - array: { - unit: "hluti", - verb: "að hafa" - }, - set: { - unit: "hluti", - verb: "að hafa" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const Nouns = { - regex: "gildi", - email: "netfang", - url: "vefslóð", - emoji: "emoji", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "ISO dagsetning og tími", - date: "ISO dagsetning", - time: "ISO tími", - duration: "ISO tímalengd", - ipv4: "IPv4 address", - ipv6: "IPv6 address", - cidrv4: "IPv4 range", - cidrv6: "IPv6 range", - base64: "base64-encoded strengur", - base64url: "base64url-encoded strengur", - json_string: "JSON strengur", - e164: "E.164 tölugildi", - jwt: "JWT", - template_literal: "gildi" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Rangt gildi: Þú slóst inn ${parsedType$3(issue.input)} þar sem á að vera ${issue.expected}`; - case "invalid_value": - if (issue.values.length === 1) return `Rangt gildi: gert ráð fyrir ${stringifyPrimitive(issue.values[0])}`; - return `Ógilt val: má vera eitt af eftirfarandi ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Of stórt: gert er ráð fyrir að ${issue.origin ?? "gildi"} hafi ${adj}${issue.maximum.toString()} ${sizing.unit ?? "hluti"}`; - return `Of stórt: gert er ráð fyrir að ${issue.origin ?? "gildi"} sé ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Of lítið: gert er ráð fyrir að ${issue.origin} hafi ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Of lítið: gert er ráð fyrir að ${issue.origin} sé ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Ógildur strengur: verður að byrja á "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Ógildur strengur: verður að enda á "${_issue.suffix}"`; - if (_issue.format === "includes") return `Ógildur strengur: verður að innihalda "${_issue.includes}"`; - if (_issue.format === "regex") return `Ógildur strengur: verður að fylgja mynstri ${_issue.pattern}`; - return `Rangt ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Röng tala: verður að vera margfeldi af ${issue.divisor}`; - case "unrecognized_keys": return `Óþekkt ${issue.keys.length > 1 ? "ir lyklar" : "ur lykill"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Rangur lykill í ${issue.origin}`; - case "invalid_union": return "Rangt gildi"; - case "invalid_element": return `Rangt gildi í ${issue.origin}`; - default: return `Rangt gildi`; - } - }; -}; -function is_default() { - return { localeError: error$26() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/it.js -const error$25 = () => { - 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 parsedType = (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 (issue) => { - switch (issue.code) { - case "invalid_type": return `Input non valido: atteso ${issue.expected}, ricevuto ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue.values[0])}`; - return `Opzione non valida: atteso uno tra ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Troppo grande: ${issue.origin ?? "valore"} deve avere ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementi"}`; - return `Troppo grande: ${issue.origin ?? "valore"} deve essere ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Troppo piccolo: ${issue.origin} deve avere ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Troppo piccolo: ${issue.origin} deve essere ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - 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] ?? issue.format}`; - } - case "not_multiple_of": return `Numero non valido: deve essere un multiplo di ${issue.divisor}`; - case "unrecognized_keys": return `Chiav${issue.keys.length > 1 ? "i" : "e"} non riconosciut${issue.keys.length > 1 ? "e" : "a"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Chiave non valida in ${issue.origin}`; - case "invalid_union": return "Input non valido"; - case "invalid_element": return `Valore non valido in ${issue.origin}`; - default: return `Input non valido`; - } - }; -}; -function it_default() { - return { localeError: error$25() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ja.js -const error$24 = () => { - const Sizable = { - string: { - unit: "文字", - verb: "である" - }, - file: { - unit: "バイト", - verb: "である" - }, - array: { - unit: "要素", - verb: "である" - }, - set: { - unit: "要素", - verb: "である" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "数値"; - case "object": - if (Array.isArray(data)) return "配列"; - if (data === null) return "null"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; - }; - const Nouns = { - regex: "入力値", - email: "メールアドレス", - url: "URL", - emoji: "絵文字", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "ISO日時", - date: "ISO日付", - time: "ISO時刻", - duration: "ISO期間", - ipv4: "IPv4アドレス", - ipv6: "IPv6アドレス", - cidrv4: "IPv4範囲", - cidrv6: "IPv6範囲", - base64: "base64エンコード文字列", - base64url: "base64urlエンコード文字列", - json_string: "JSON文字列", - e164: "E.164番号", - jwt: "JWT", - template_literal: "入力値" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `無効な入力: ${issue.expected}が期待されましたが、${parsedType(issue.input)}が入力されました`; - case "invalid_value": - if (issue.values.length === 1) return `無効な入力: ${stringifyPrimitive(issue.values[0])}が期待されました`; - return `無効な選択: ${joinValues(issue.values, "、")}のいずれかである必要があります`; - case "too_big": { - const adj = issue.inclusive ? "以下である" : "より小さい"; - const sizing = getSizing(issue.origin); - if (sizing) return `大きすぎる値: ${issue.origin ?? "値"}は${issue.maximum.toString()}${sizing.unit ?? "要素"}${adj}必要があります`; - return `大きすぎる値: ${issue.origin ?? "値"}は${issue.maximum.toString()}${adj}必要があります`; - } - case "too_small": { - const adj = issue.inclusive ? "以上である" : "より大きい"; - const sizing = getSizing(issue.origin); - if (sizing) return `小さすぎる値: ${issue.origin}は${issue.minimum.toString()}${sizing.unit}${adj}必要があります`; - return `小さすぎる値: ${issue.origin}は${issue.minimum.toString()}${adj}必要があります`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `無効な文字列: "${_issue.prefix}"で始まる必要があります`; - if (_issue.format === "ends_with") return `無効な文字列: "${_issue.suffix}"で終わる必要があります`; - if (_issue.format === "includes") return `無効な文字列: "${_issue.includes}"を含む必要があります`; - if (_issue.format === "regex") return `無効な文字列: パターン${_issue.pattern}に一致する必要があります`; - return `無効な${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `無効な数値: ${issue.divisor}の倍数である必要があります`; - case "unrecognized_keys": return `認識されていないキー${issue.keys.length > 1 ? "群" : ""}: ${joinValues(issue.keys, "、")}`; - case "invalid_key": return `${issue.origin}内の無効なキー`; - case "invalid_union": return "無効な入力"; - case "invalid_element": return `${issue.origin}内の無効な値`; - default: return `無効な入力`; - } - }; -}; -function ja_default() { - return { localeError: error$24() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ka.js -const parsedType$2 = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "რიცხვი"; - case "object": - if (Array.isArray(data)) return "მასივი"; - if (data === null) return "null"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return { - string: "სტრინგი", - boolean: "ბულეანი", - undefined: "undefined", - bigint: "bigint", - symbol: "symbol", - function: "ფუნქცია" - }[t] ?? t; -}; -const error$23 = () => { - const Sizable = { - string: { - unit: "სიმბოლო", - verb: "უნდა შეიცავდეს" - }, - file: { - unit: "ბაიტი", - verb: "უნდა შეიცავდეს" - }, - array: { - unit: "ელემენტი", - verb: "უნდა შეიცავდეს" - }, - set: { - unit: "ელემენტი", - verb: "უნდა შეიცავდეს" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const Nouns = { - regex: "შეყვანა", - email: "ელ-ფოსტის მისამართი", - url: "URL", - emoji: "ემოჯი", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "თარიღი-დრო", - date: "თარიღი", - time: "დრო", - duration: "ხანგრძლივობა", - ipv4: "IPv4 მისამართი", - ipv6: "IPv6 მისამართი", - cidrv4: "IPv4 დიაპაზონი", - cidrv6: "IPv6 დიაპაზონი", - base64: "base64-კოდირებული სტრინგი", - base64url: "base64url-კოდირებული სტრინგი", - json_string: "JSON სტრინგი", - e164: "E.164 ნომერი", - jwt: "JWT", - template_literal: "შეყვანა" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `არასწორი შეყვანა: მოსალოდნელი ${issue.expected}, მიღებული ${parsedType$2(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `არასწორი შეყვანა: მოსალოდნელი ${stringifyPrimitive(issue.values[0])}`; - return `არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${joinValues(issue.values, "|")}-დან`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `ზედმეტად დიდი: მოსალოდნელი ${issue.origin ?? "მნიშვნელობა"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit}`; - return `ზედმეტად დიდი: მოსალოდნელი ${issue.origin ?? "მნიშვნელობა"} იყოს ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `ზედმეტად პატარა: მოსალოდნელი ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `ზედმეტად პატარა: მოსალოდნელი ${issue.origin} იყოს ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `არასწორი სტრინგი: უნდა იწყებოდეს "${_issue.prefix}"-ით`; - if (_issue.format === "ends_with") return `არასწორი სტრინგი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`; - if (_issue.format === "includes") return `არასწორი სტრინგი: უნდა შეიცავდეს "${_issue.includes}"-ს`; - if (_issue.format === "regex") return `არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`; - return `არასწორი ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `არასწორი რიცხვი: უნდა იყოს ${issue.divisor}-ის ჯერადი`; - case "unrecognized_keys": return `უცნობი გასაღებ${issue.keys.length > 1 ? "ები" : "ი"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `არასწორი გასაღები ${issue.origin}-ში`; - case "invalid_union": return "არასწორი შეყვანა"; - case "invalid_element": return `არასწორი მნიშვნელობა ${issue.origin}-ში`; - default: return `არასწორი შეყვანა`; - } - }; -}; -function ka_default() { - return { localeError: error$23() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/km.js -const error$22 = () => { - const Sizable = { - string: { - unit: "តួអក្សរ", - verb: "គួរមាន" - }, - file: { - unit: "បៃ", - verb: "គួរមាន" - }, - array: { - unit: "ធាតុ", - verb: "គួរមាន" - }, - set: { - unit: "ធាតុ", - verb: "គួរមាន" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "មិនមែនជាលេខ (NaN)" : "លេខ"; - 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: "ទិន្នន័យបញ្ចូល", - email: "អាសយដ្ឋានអ៊ីមែល", - url: "URL", - emoji: "សញ្ញាអារម្មណ៍", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "កាលបរិច្ឆេទ និងម៉ោង ISO", - date: "កាលបរិច្ឆេទ ISO", - time: "ម៉ោង ISO", - duration: "រយៈពេល ISO", - ipv4: "អាសយដ្ឋាន IPv4", - ipv6: "អាសយដ្ឋាន IPv6", - cidrv4: "ដែនអាសយដ្ឋាន IPv4", - cidrv6: "ដែនអាសយដ្ឋាន IPv6", - base64: "ខ្សែអក្សរអ៊ិកូដ base64", - base64url: "ខ្សែអក្សរអ៊ិកូដ base64url", - json_string: "ខ្សែអក្សរ JSON", - e164: "លេខ E.164", - jwt: "JWT", - template_literal: "ទិន្នន័យបញ្ចូល" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue.expected} ប៉ុន្តែទទួលបាន ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue.values[0])}`; - return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `ធំពេក៖ ត្រូវការ ${issue.origin ?? "តម្លៃ"} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? "ធាតុ"}`; - return `ធំពេក៖ ត្រូវការ ${issue.origin ?? "តម្លៃ"} ${adj} ${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `តូចពេក៖ ត្រូវការ ${issue.origin} ${adj} ${issue.minimum.toString()} ${sizing.unit}`; - return `តូចពេក៖ ត្រូវការ ${issue.origin} ${adj} ${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${_issue.suffix}"`; - if (_issue.format === "includes") return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${_issue.includes}"`; - if (_issue.format === "regex") return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${_issue.pattern}`; - return `មិនត្រឹមត្រូវ៖ ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${issue.divisor}`; - case "unrecognized_keys": return `រកឃើញសោមិនស្គាល់៖ ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `សោមិនត្រឹមត្រូវនៅក្នុង ${issue.origin}`; - case "invalid_union": return `ទិន្នន័យមិនត្រឹមត្រូវ`; - case "invalid_element": return `ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${issue.origin}`; - default: return `ទិន្នន័យមិនត្រឹមត្រូវ`; - } - }; -}; -function km_default() { - return { localeError: error$22() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/kh.js -/** @deprecated Use `km` instead. */ -function kh_default() { - return km_default(); -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ko.js -const error$21 = () => { - const Sizable = { - string: { - unit: "문자", - verb: "to have" - }, - file: { - unit: "바이트", - verb: "to have" - }, - array: { - unit: "개", - verb: "to have" - }, - set: { - unit: "개", - verb: "to have" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const 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; - }; - const Nouns = { - regex: "입력", - email: "이메일 주소", - url: "URL", - emoji: "이모지", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "ISO 날짜시간", - date: "ISO 날짜", - time: "ISO 시간", - duration: "ISO 기간", - ipv4: "IPv4 주소", - ipv6: "IPv6 주소", - cidrv4: "IPv4 범위", - cidrv6: "IPv6 범위", - base64: "base64 인코딩 문자열", - base64url: "base64url 인코딩 문자열", - json_string: "JSON 문자열", - e164: "E.164 번호", - jwt: "JWT", - template_literal: "입력" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `잘못된 입력: 예상 타입은 ${issue.expected}, 받은 타입은 ${parsedType(issue.input)}입니다`; - case "invalid_value": - if (issue.values.length === 1) return `잘못된 입력: 값은 ${stringifyPrimitive(issue.values[0])} 이어야 합니다`; - return `잘못된 옵션: ${joinValues(issue.values, "또는 ")} 중 하나여야 합니다`; - case "too_big": { - const adj = issue.inclusive ? "이하" : "미만"; - const suffix = adj === "미만" ? "이어야 합니다" : "여야 합니다"; - const sizing = getSizing(issue.origin); - const unit = sizing?.unit ?? "요소"; - if (sizing) return `${issue.origin ?? "값"}이 너무 큽니다: ${issue.maximum.toString()}${unit} ${adj}${suffix}`; - return `${issue.origin ?? "값"}이 너무 큽니다: ${issue.maximum.toString()} ${adj}${suffix}`; - } - case "too_small": { - const adj = issue.inclusive ? "이상" : "초과"; - const suffix = adj === "이상" ? "이어야 합니다" : "여야 합니다"; - const sizing = getSizing(issue.origin); - const unit = sizing?.unit ?? "요소"; - if (sizing) return `${issue.origin ?? "값"}이 너무 작습니다: ${issue.minimum.toString()}${unit} ${adj}${suffix}`; - return `${issue.origin ?? "값"}이 너무 작습니다: ${issue.minimum.toString()} ${adj}${suffix}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `잘못된 문자열: "${_issue.prefix}"(으)로 시작해야 합니다`; - if (_issue.format === "ends_with") return `잘못된 문자열: "${_issue.suffix}"(으)로 끝나야 합니다`; - if (_issue.format === "includes") return `잘못된 문자열: "${_issue.includes}"을(를) 포함해야 합니다`; - if (_issue.format === "regex") return `잘못된 문자열: 정규식 ${_issue.pattern} 패턴과 일치해야 합니다`; - return `잘못된 ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `잘못된 숫자: ${issue.divisor}의 배수여야 합니다`; - case "unrecognized_keys": return `인식할 수 없는 키: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `잘못된 키: ${issue.origin}`; - case "invalid_union": return `잘못된 입력`; - case "invalid_element": return `잘못된 값: ${issue.origin}`; - default: return `잘못된 입력`; - } - }; -}; -function ko_default() { - return { localeError: error$21() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/lt.js -const parsedType$1 = (data) => { - return parsedTypeFromType(typeof data, data); -}; -const parsedTypeFromType = (t, data = void 0) => { - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "skaičius"; - case "bigint": return "sveikasis skaičius"; - case "string": return "eilutė"; - case "boolean": return "loginė reikšmė"; - case "undefined": - case "void": return "neapibrėžta reikšmė"; - case "function": return "funkcija"; - case "symbol": return "simbolis"; - case "object": - if (data === void 0) return "nežinomas objektas"; - if (data === null) return "nulinė reikšmė"; - if (Array.isArray(data)) return "masyvas"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - return "objektas"; - case "null": return "nulinė reikšmė"; - } - return t; -}; -const capitalizeFirstCharacter = (text) => { - return text.charAt(0).toUpperCase() + text.slice(1); -}; -function getUnitTypeFromNumber(number) { - const abs = Math.abs(number); - const last = abs % 10; - const last2 = abs % 100; - if (last2 >= 11 && last2 <= 19 || last === 0) return "many"; - if (last === 1) return "one"; - return "few"; -} -const error$20 = () => { - const Sizable = { - string: { - unit: { - one: "simbolis", - few: "simboliai", - many: "simbolių" - }, - verb: { - smaller: { - inclusive: "turi būti ne ilgesnė kaip", - notInclusive: "turi būti trumpesnė kaip" - }, - bigger: { - inclusive: "turi būti ne trumpesnė kaip", - notInclusive: "turi būti ilgesnė kaip" - } - } - }, - file: { - unit: { - one: "baitas", - few: "baitai", - many: "baitų" - }, - verb: { - smaller: { - inclusive: "turi būti ne didesnis kaip", - notInclusive: "turi būti mažesnis kaip" - }, - bigger: { - inclusive: "turi būti ne mažesnis kaip", - notInclusive: "turi būti didesnis kaip" - } - } - }, - array: { - unit: { - one: "elementą", - few: "elementus", - many: "elementų" - }, - verb: { - smaller: { - inclusive: "turi turėti ne daugiau kaip", - notInclusive: "turi turėti mažiau kaip" - }, - bigger: { - inclusive: "turi turėti ne mažiau kaip", - notInclusive: "turi turėti daugiau kaip" - } - } - }, - set: { - unit: { - one: "elementą", - few: "elementus", - many: "elementų" - }, - verb: { - smaller: { - inclusive: "turi turėti ne daugiau kaip", - notInclusive: "turi turėti mažiau kaip" - }, - bigger: { - inclusive: "turi turėti ne mažiau kaip", - notInclusive: "turi turėti daugiau kaip" - } - } - } - }; - function getSizing(origin, unitType, inclusive, targetShouldBe) { - const result = Sizable[origin] ?? null; - if (result === null) return result; - return { - unit: result.unit[unitType], - verb: result.verb[targetShouldBe][inclusive ? "inclusive" : "notInclusive"] - }; - } - const Nouns = { - regex: "įvestis", - email: "el. pašto adresas", - url: "URL", - emoji: "jaustukas", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "ISO data ir laikas", - date: "ISO data", - time: "ISO laikas", - duration: "ISO trukmė", - ipv4: "IPv4 adresas", - ipv6: "IPv6 adresas", - cidrv4: "IPv4 tinklo prefiksas (CIDR)", - cidrv6: "IPv6 tinklo prefiksas (CIDR)", - base64: "base64 užkoduota eilutė", - base64url: "base64url užkoduota eilutė", - json_string: "JSON eilutė", - e164: "E.164 numeris", - jwt: "JWT", - template_literal: "įvestis" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Gautas tipas ${parsedType$1(issue.input)}, o tikėtasi - ${parsedTypeFromType(issue.expected)}`; - case "invalid_value": - if (issue.values.length === 1) return `Privalo būti ${stringifyPrimitive(issue.values[0])}`; - return `Privalo būti vienas iš ${joinValues(issue.values, "|")} pasirinkimų`; - case "too_big": { - const origin = parsedTypeFromType(issue.origin); - const sizing = getSizing(issue.origin, getUnitTypeFromNumber(Number(issue.maximum)), issue.inclusive ?? false, "smaller"); - if (sizing?.verb) return `${capitalizeFirstCharacter(origin ?? issue.origin ?? "reikšmė")} ${sizing.verb} ${issue.maximum.toString()} ${sizing.unit ?? "elementų"}`; - const adj = issue.inclusive ? "ne didesnis kaip" : "mažesnis kaip"; - return `${capitalizeFirstCharacter(origin ?? issue.origin ?? "reikšmė")} turi būti ${adj} ${issue.maximum.toString()} ${sizing?.unit}`; - } - case "too_small": { - const origin = parsedTypeFromType(issue.origin); - const sizing = getSizing(issue.origin, getUnitTypeFromNumber(Number(issue.minimum)), issue.inclusive ?? false, "bigger"); - if (sizing?.verb) return `${capitalizeFirstCharacter(origin ?? issue.origin ?? "reikšmė")} ${sizing.verb} ${issue.minimum.toString()} ${sizing.unit ?? "elementų"}`; - const adj = issue.inclusive ? "ne mažesnis kaip" : "didesnis kaip"; - return `${capitalizeFirstCharacter(origin ?? issue.origin ?? "reikšmė")} turi būti ${adj} ${issue.minimum.toString()} ${sizing?.unit}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Eilutė privalo prasidėti "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Eilutė privalo pasibaigti "${_issue.suffix}"`; - if (_issue.format === "includes") return `Eilutė privalo įtraukti "${_issue.includes}"`; - if (_issue.format === "regex") return `Eilutė privalo atitikti ${_issue.pattern}`; - return `Neteisingas ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Skaičius privalo būti ${issue.divisor} kartotinis.`; - case "unrecognized_keys": return `Neatpažint${issue.keys.length > 1 ? "i" : "as"} rakt${issue.keys.length > 1 ? "ai" : "as"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return "Rastas klaidingas raktas"; - case "invalid_union": return "Klaidinga įvestis"; - case "invalid_element": { - const origin = parsedTypeFromType(issue.origin); - return `${capitalizeFirstCharacter(origin ?? issue.origin ?? "reikšmė")} turi klaidingą įvestį`; - } - default: return "Klaidinga įvestis"; - } - }; -}; -function lt_default() { - return { localeError: error$20() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/mk.js -const error$19 = () => { - const Sizable = { - string: { - unit: "знаци", - verb: "да имаат" - }, - file: { - unit: "бајти", - verb: "да имаат" - }, - array: { - unit: "ставки", - verb: "да имаат" - }, - set: { - unit: "ставки", - verb: "да имаат" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "број"; - case "object": - if (Array.isArray(data)) return "низа"; - if (data === null) return "null"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; - }; - const Nouns = { - regex: "внес", - email: "адреса на е-пошта", - url: "URL", - emoji: "емоџи", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "ISO датум и време", - date: "ISO датум", - time: "ISO време", - duration: "ISO времетраење", - ipv4: "IPv4 адреса", - ipv6: "IPv6 адреса", - cidrv4: "IPv4 опсег", - cidrv6: "IPv6 опсег", - base64: "base64-енкодирана низа", - base64url: "base64url-енкодирана низа", - json_string: "JSON низа", - e164: "E.164 број", - jwt: "JWT", - template_literal: "внес" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Грешен внес: се очекува ${issue.expected}, примено ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue.values[0])}`; - return `Грешана опција: се очекува една ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Премногу голем: се очекува ${issue.origin ?? "вредноста"} да има ${adj}${issue.maximum.toString()} ${sizing.unit ?? "елементи"}`; - return `Премногу голем: се очекува ${issue.origin ?? "вредноста"} да биде ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Премногу мал: се очекува ${issue.origin} да има ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Премногу мал: се очекува ${issue.origin} да биде ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Неважечка низа: мора да започнува со "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Неважечка низа: мора да завршува со "${_issue.suffix}"`; - if (_issue.format === "includes") return `Неважечка низа: мора да вклучува "${_issue.includes}"`; - if (_issue.format === "regex") return `Неважечка низа: мора да одгоара на патернот ${_issue.pattern}`; - return `Invalid ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Грешен број: мора да биде делив со ${issue.divisor}`; - case "unrecognized_keys": return `${issue.keys.length > 1 ? "Непрепознаени клучеви" : "Непрепознаен клуч"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Грешен клуч во ${issue.origin}`; - case "invalid_union": return "Грешен внес"; - case "invalid_element": return `Грешна вредност во ${issue.origin}`; - default: return `Грешен внес`; - } - }; -}; -function mk_default() { - return { localeError: error$19() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ms.js -const error$18 = () => { - 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 parsedType = (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 (issue) => { - switch (issue.code) { - case "invalid_type": return `Input tidak sah: dijangka ${issue.expected}, diterima ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue.values[0])}`; - return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Terlalu besar: dijangka ${issue.origin ?? "nilai"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elemen"}`; - return `Terlalu besar: dijangka ${issue.origin ?? "nilai"} adalah ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Terlalu kecil: dijangka ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Terlalu kecil: dijangka ${issue.origin} adalah ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - 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] ?? issue.format} tidak sah`; - } - case "not_multiple_of": return `Nombor tidak sah: perlu gandaan ${issue.divisor}`; - case "unrecognized_keys": return `Kunci tidak dikenali: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Kunci tidak sah dalam ${issue.origin}`; - case "invalid_union": return "Input tidak sah"; - case "invalid_element": return `Nilai tidak sah dalam ${issue.origin}`; - default: return `Input tidak sah`; - } - }; -}; -function ms_default() { - return { localeError: error$18() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/nl.js -const error$17 = () => { - const Sizable = { - string: { unit: "tekens" }, - file: { unit: "bytes" }, - array: { unit: "elementen" }, - set: { unit: "elementen" } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (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 (issue) => { - switch (issue.code) { - case "invalid_type": return `Ongeldige invoer: verwacht ${issue.expected}, ontving ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue.values[0])}`; - return `Ongeldige optie: verwacht één van ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Te lang: verwacht dat ${issue.origin ?? "waarde"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementen"} bevat`; - return `Te lang: verwacht dat ${issue.origin ?? "waarde"} ${adj}${issue.maximum.toString()} is`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Te kort: verwacht dat ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} bevat`; - return `Te kort: verwacht dat ${issue.origin} ${adj}${issue.minimum.toString()} is`; - } - case "invalid_format": { - const _issue = issue; - 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] ?? issue.format}`; - } - case "not_multiple_of": return `Ongeldig getal: moet een veelvoud van ${issue.divisor} zijn`; - case "unrecognized_keys": return `Onbekende key${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Ongeldige key in ${issue.origin}`; - case "invalid_union": return "Ongeldige invoer"; - case "invalid_element": return `Ongeldige waarde in ${issue.origin}`; - default: return `Ongeldige invoer`; - } - }; -}; -function nl_default() { - return { localeError: error$17() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/no.js -const error$16 = () => { - const Sizable = { - string: { - unit: "tegn", - verb: "å ha" - }, - file: { - unit: "bytes", - verb: "å ha" - }, - array: { - unit: "elementer", - verb: "å inneholde" - }, - set: { - unit: "elementer", - verb: "å inneholde" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (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åde", - ipv6: "IPv6-område", - 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 (issue) => { - switch (issue.code) { - case "invalid_type": return `Ugyldig input: forventet ${issue.expected}, fikk ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue.values[0])}`; - return `Ugyldig valg: forventet en av ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `For stor(t): forventet ${issue.origin ?? "value"} til å ha ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementer"}`; - return `For stor(t): forventet ${issue.origin ?? "value"} til å ha ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `For lite(n): forventet ${issue.origin} til å ha ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `For lite(n): forventet ${issue.origin} til å ha ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Ugyldig streng: må starte med "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Ugyldig streng: må ende med "${_issue.suffix}"`; - if (_issue.format === "includes") return `Ugyldig streng: må inneholde "${_issue.includes}"`; - if (_issue.format === "regex") return `Ugyldig streng: må matche mønsteret ${_issue.pattern}`; - return `Ugyldig ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Ugyldig tall: må være et multiplum av ${issue.divisor}`; - case "unrecognized_keys": return `${issue.keys.length > 1 ? "Ukjente nøkler" : "Ukjent nøkkel"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Ugyldig nøkkel i ${issue.origin}`; - case "invalid_union": return "Ugyldig input"; - case "invalid_element": return `Ugyldig verdi i ${issue.origin}`; - default: return `Ugyldig input`; - } - }; -}; -function no_default() { - return { localeError: error$16() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ota.js -const error$15 = () => { - const Sizable = { - string: { - unit: "harf", - verb: "olmalıdır" - }, - file: { - unit: "bayt", - verb: "olmalıdır" - }, - array: { - unit: "unsur", - verb: "olmalıdır" - }, - set: { - unit: "unsur", - verb: "olmalıdır" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (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âh", - 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âmı", - date: "ISO tarihi", - time: "ISO zamanı", - duration: "ISO müddeti", - ipv4: "IPv4 nişânı", - ipv6: "IPv6 nişânı", - cidrv4: "IPv4 menzili", - cidrv6: "IPv6 menzili", - base64: "base64-şifreli metin", - base64url: "base64url-şifreli metin", - json_string: "JSON metin", - e164: "E.164 sayısı", - jwt: "JWT", - template_literal: "giren" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Fâsit giren: umulan ${issue.expected}, alınan ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Fâsit giren: umulan ${stringifyPrimitive(issue.values[0])}`; - return `Fâsit tercih: mûteberler ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Fazla büyük: ${issue.origin ?? "value"}, ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elements"} sahip olmalıydı.`; - return `Fazla büyük: ${issue.origin ?? "value"}, ${adj}${issue.maximum.toString()} olmalıydı.`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Fazla küçük: ${issue.origin}, ${adj}${issue.minimum.toString()} ${sizing.unit} sahip olmalıydı.`; - return `Fazla küçük: ${issue.origin}, ${adj}${issue.minimum.toString()} olmalıydı.`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Fâsit metin: "${_issue.prefix}" ile başlamalı.`; - if (_issue.format === "ends_with") return `Fâsit metin: "${_issue.suffix}" ile bitmeli.`; - if (_issue.format === "includes") return `Fâsit metin: "${_issue.includes}" ihtivâ etmeli.`; - if (_issue.format === "regex") return `Fâsit metin: ${_issue.pattern} nakşına uymalı.`; - return `Fâsit ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Fâsit sayı: ${issue.divisor} katı olmalıydı.`; - case "unrecognized_keys": return `Tanınmayan anahtar ${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `${issue.origin} için tanınmayan anahtar var.`; - case "invalid_union": return "Giren tanınamadı."; - case "invalid_element": return `${issue.origin} için tanınmayan kıymet var.`; - default: return `Kıymet tanınamadı.`; - } - }; -}; -function ota_default() { - return { localeError: error$15() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ps.js -const error$14 = () => { - const Sizable = { - string: { - unit: "توکي", - verb: "ولري" - }, - file: { - unit: "بایټس", - verb: "ولري" - }, - array: { - unit: "توکي", - verb: "ولري" - }, - set: { - unit: "توکي", - verb: "ولري" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "عدد"; - case "object": - if (Array.isArray(data)) return "ارې"; - if (data === null) return "null"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; - }; - const Nouns = { - regex: "ورودي", - email: "بریښنالیک", - url: "یو آر ال", - emoji: "ایموجي", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "نیټه او وخت", - date: "نېټه", - time: "وخت", - duration: "موده", - ipv4: "د IPv4 پته", - ipv6: "د IPv6 پته", - cidrv4: "د IPv4 ساحه", - cidrv6: "د IPv6 ساحه", - base64: "base64-encoded متن", - base64url: "base64url-encoded متن", - json_string: "JSON متن", - e164: "د E.164 شمېره", - jwt: "JWT", - template_literal: "ورودي" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `ناسم ورودي: باید ${issue.expected} وای, مګر ${parsedType(issue.input)} ترلاسه شو`; - case "invalid_value": - if (issue.values.length === 1) return `ناسم ورودي: باید ${stringifyPrimitive(issue.values[0])} وای`; - return `ناسم انتخاب: باید یو له ${joinValues(issue.values, "|")} څخه وای`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `ډیر لوی: ${issue.origin ?? "ارزښت"} باید ${adj}${issue.maximum.toString()} ${sizing.unit ?? "عنصرونه"} ولري`; - return `ډیر لوی: ${issue.origin ?? "ارزښت"} باید ${adj}${issue.maximum.toString()} وي`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `ډیر کوچنی: ${issue.origin} باید ${adj}${issue.minimum.toString()} ${sizing.unit} ولري`; - return `ډیر کوچنی: ${issue.origin} باید ${adj}${issue.minimum.toString()} وي`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `ناسم متن: باید د "${_issue.prefix}" سره پیل شي`; - if (_issue.format === "ends_with") return `ناسم متن: باید د "${_issue.suffix}" سره پای ته ورسيږي`; - if (_issue.format === "includes") return `ناسم متن: باید "${_issue.includes}" ولري`; - if (_issue.format === "regex") return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`; - return `${Nouns[_issue.format] ?? issue.format} ناسم دی`; - } - case "not_multiple_of": return `ناسم عدد: باید د ${issue.divisor} مضرب وي`; - case "unrecognized_keys": return `ناسم ${issue.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `ناسم کلیډ په ${issue.origin} کې`; - case "invalid_union": return `ناسمه ورودي`; - case "invalid_element": return `ناسم عنصر په ${issue.origin} کې`; - default: return `ناسمه ورودي`; - } - }; -}; -function ps_default() { - return { localeError: error$14() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/pl.js -const error$13 = () => { - const Sizable = { - string: { - unit: "znaków", - verb: "mieć" - }, - file: { - unit: "bajtów", - verb: "mieć" - }, - array: { - unit: "elementów", - verb: "mieć" - }, - set: { - unit: "elementów", - verb: "mieć" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (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żenie", - 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ąg znaków zakodowany w formacie base64", - base64url: "ciąg znaków zakodowany w formacie base64url", - json_string: "ciąg znaków w formacie JSON", - e164: "liczba E.164", - jwt: "JWT", - template_literal: "wejście" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Nieprawidłowe dane wejściowe: oczekiwano ${issue.expected}, otrzymano ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue.values[0])}`; - return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Za duża wartość: oczekiwano, że ${issue.origin ?? "wartość"} będzie mieć ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementów"}`; - return `Zbyt duż(y/a/e): oczekiwano, że ${issue.origin ?? "wartość"} będzie wynosić ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Za mała wartość: oczekiwano, że ${issue.origin ?? "wartość"} będzie mieć ${adj}${issue.minimum.toString()} ${sizing.unit ?? "elementów"}`; - return `Zbyt mał(y/a/e): oczekiwano, że ${issue.origin ?? "wartość"} będzie wynosić ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Nieprawidłowy ciąg znaków: musi zaczynać się od "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Nieprawidłowy ciąg znaków: musi kończyć się na "${_issue.suffix}"`; - if (_issue.format === "includes") return `Nieprawidłowy ciąg znaków: musi zawierać "${_issue.includes}"`; - if (_issue.format === "regex") return `Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${_issue.pattern}`; - return `Nieprawidłow(y/a/e) ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Nieprawidłowa liczba: musi być wielokrotnością ${issue.divisor}`; - case "unrecognized_keys": return `Nierozpoznane klucze${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Nieprawidłowy klucz w ${issue.origin}`; - case "invalid_union": return "Nieprawidłowe dane wejściowe"; - case "invalid_element": return `Nieprawidłowa wartość w ${issue.origin}`; - default: return `Nieprawidłowe dane wejściowe`; - } - }; -}; -function pl_default() { - return { localeError: error$13() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/pt.js -const error$12 = () => { - 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 parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "número"; - 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ão", - email: "endereço 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ção ISO", - ipv4: "endereço IPv4", - ipv6: "endereço 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úmero E.164", - jwt: "JWT", - template_literal: "entrada" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Tipo inválido: esperado ${issue.expected}, recebido ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Entrada inválida: esperado ${stringifyPrimitive(issue.values[0])}`; - return `Opção inválida: esperada uma das ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Muito grande: esperado que ${issue.origin ?? "valor"} tivesse ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementos"}`; - return `Muito grande: esperado que ${issue.origin ?? "valor"} fosse ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Muito pequeno: esperado que ${issue.origin} tivesse ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Muito pequeno: esperado que ${issue.origin} fosse ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Texto inválido: deve começar com "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Texto inválido: deve terminar com "${_issue.suffix}"`; - if (_issue.format === "includes") return `Texto inválido: deve incluir "${_issue.includes}"`; - if (_issue.format === "regex") return `Texto inválido: deve corresponder ao padrão ${_issue.pattern}`; - return `${Nouns[_issue.format] ?? issue.format} inválido`; - } - case "not_multiple_of": return `Número inválido: deve ser múltiplo de ${issue.divisor}`; - case "unrecognized_keys": return `Chave${issue.keys.length > 1 ? "s" : ""} desconhecida${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Chave inválida em ${issue.origin}`; - case "invalid_union": return "Entrada inválida"; - case "invalid_element": return `Valor inválido em ${issue.origin}`; - default: return `Campo inválido`; - } - }; -}; -function pt_default() { - return { localeError: error$12() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/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; -} -const error$11 = () => { - const Sizable = { - string: { - unit: { - one: "символ", - few: "символа", - many: "символов" - }, - verb: "иметь" - }, - file: { - unit: { - one: "байт", - few: "байта", - many: "байт" - }, - verb: "иметь" - }, - array: { - unit: { - one: "элемент", - few: "элемента", - many: "элементов" - }, - verb: "иметь" - }, - set: { - unit: { - one: "элемент", - few: "элемента", - many: "элементов" - }, - verb: "иметь" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "число"; - case "object": - if (Array.isArray(data)) return "массив"; - if (data === null) return "null"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; - }; - const Nouns = { - regex: "ввод", - email: "email адрес", - url: "URL", - emoji: "эмодзи", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "ISO дата и время", - date: "ISO дата", - time: "ISO время", - duration: "ISO длительность", - ipv4: "IPv4 адрес", - ipv6: "IPv6 адрес", - cidrv4: "IPv4 диапазон", - cidrv6: "IPv6 диапазон", - base64: "строка в формате base64", - base64url: "строка в формате base64url", - json_string: "JSON строка", - e164: "номер E.164", - jwt: "JWT", - template_literal: "ввод" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Неверный ввод: ожидалось ${issue.expected}, получено ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Неверный ввод: ожидалось ${stringifyPrimitive(issue.values[0])}`; - return `Неверный вариант: ожидалось одно из ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) { - const unit = getRussianPlural(Number(issue.maximum), sizing.unit.one, sizing.unit.few, sizing.unit.many); - return `Слишком большое значение: ожидалось, что ${issue.origin ?? "значение"} будет иметь ${adj}${issue.maximum.toString()} ${unit}`; - } - return `Слишком большое значение: ожидалось, что ${issue.origin ?? "значение"} будет ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) { - const unit = getRussianPlural(Number(issue.minimum), sizing.unit.one, sizing.unit.few, sizing.unit.many); - return `Слишком маленькое значение: ожидалось, что ${issue.origin} будет иметь ${adj}${issue.minimum.toString()} ${unit}`; - } - return `Слишком маленькое значение: ожидалось, что ${issue.origin} будет ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Неверная строка: должна начинаться с "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Неверная строка: должна заканчиваться на "${_issue.suffix}"`; - if (_issue.format === "includes") return `Неверная строка: должна содержать "${_issue.includes}"`; - if (_issue.format === "regex") return `Неверная строка: должна соответствовать шаблону ${_issue.pattern}`; - return `Неверный ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Неверное число: должно быть кратным ${issue.divisor}`; - case "unrecognized_keys": return `Нераспознанн${issue.keys.length > 1 ? "ые" : "ый"} ключ${issue.keys.length > 1 ? "и" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Неверный ключ в ${issue.origin}`; - case "invalid_union": return "Неверные входные данные"; - case "invalid_element": return `Неверное значение в ${issue.origin}`; - default: return `Неверные входные данные`; - } - }; -}; -function ru_default() { - return { localeError: error$11() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/sl.js -const error$10 = () => { - 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 parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "število"; - 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štni 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 čas", - date: "ISO datum", - time: "ISO čas", - 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 številka", - jwt: "JWT", - template_literal: "vnos" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Neveljaven vnos: pričakovano ${issue.expected}, prejeto ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue.values[0])}`; - return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Preveliko: pričakovano, da bo ${issue.origin ?? "vrednost"} imelo ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementov"}`; - return `Preveliko: pričakovano, da bo ${issue.origin ?? "vrednost"} ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Premajhno: pričakovano, da bo ${issue.origin} imelo ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Premajhno: pričakovano, da bo ${issue.origin} ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Neveljaven niz: mora se začeti z "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Neveljaven niz: mora se končati 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] ?? issue.format}`; - } - case "not_multiple_of": return `Neveljavno število: mora biti večkratnik ${issue.divisor}`; - case "unrecognized_keys": return `Neprepoznan${issue.keys.length > 1 ? "i ključi" : " ključ"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Neveljaven ključ v ${issue.origin}`; - case "invalid_union": return "Neveljaven vnos"; - case "invalid_element": return `Neveljavna vrednost v ${issue.origin}`; - default: return "Neveljaven vnos"; - } - }; -}; -function sl_default() { - return { localeError: error$10() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/sv.js -const error$9 = () => { - const Sizable = { - string: { - unit: "tecken", - verb: "att ha" - }, - file: { - unit: "bytes", - verb: "att ha" - }, - array: { - unit: "objekt", - verb: "att innehålla" - }, - set: { - unit: "objekt", - verb: "att innehålla" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (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ärt 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äng", - base64url: "base64url-kodad sträng", - json_string: "JSON-sträng", - e164: "E.164-nummer", - jwt: "JWT", - template_literal: "mall-literal" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Ogiltig inmatning: förväntat ${issue.expected}, fick ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue.values[0])}`; - return `Ogiltigt val: förväntade en av ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `För stor(t): förväntade ${issue.origin ?? "värdet"} att ha ${adj}${issue.maximum.toString()} ${sizing.unit ?? "element"}`; - return `För stor(t): förväntat ${issue.origin ?? "värdet"} att ha ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `För lite(t): förväntade ${issue.origin ?? "värdet"} att ha ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `För lite(t): förväntade ${issue.origin ?? "värdet"} att ha ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Ogiltig sträng: måste börja med "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Ogiltig sträng: måste sluta med "${_issue.suffix}"`; - if (_issue.format === "includes") return `Ogiltig sträng: måste innehålla "${_issue.includes}"`; - if (_issue.format === "regex") return `Ogiltig sträng: måste matcha mönstret "${_issue.pattern}"`; - return `Ogiltig(t) ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Ogiltigt tal: måste vara en multipel av ${issue.divisor}`; - case "unrecognized_keys": return `${issue.keys.length > 1 ? "Okända nycklar" : "Okänd nyckel"}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Ogiltig nyckel i ${issue.origin ?? "värdet"}`; - case "invalid_union": return "Ogiltig input"; - case "invalid_element": return `Ogiltigt värde i ${issue.origin ?? "värdet"}`; - default: return `Ogiltig input`; - } - }; -}; -function sv_default() { - return { localeError: error$9() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ta.js -const error$8 = () => { - const Sizable = { - string: { - unit: "எழுத்துக்கள்", - verb: "கொண்டிருக்க வேண்டும்" - }, - file: { - unit: "பைட்டுகள்", - verb: "கொண்டிருக்க வேண்டும்" - }, - array: { - unit: "உறுப்புகள்", - verb: "கொண்டிருக்க வேண்டும்" - }, - set: { - unit: "உறுப்புகள்", - verb: "கொண்டிருக்க வேண்டும்" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "எண் அல்லாதது" : "எண்"; - case "object": - if (Array.isArray(data)) return "அணி"; - if (data === null) return "வெறுமை"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; - }; - const Nouns = { - regex: "உள்ளீடு", - 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: "ISO தேதி நேரம்", - date: "ISO தேதி", - time: "ISO நேரம்", - duration: "ISO கால அளவு", - ipv4: "IPv4 முகவரி", - ipv6: "IPv6 முகவரி", - cidrv4: "IPv4 வரம்பு", - cidrv6: "IPv6 வரம்பு", - base64: "base64-encoded சரம்", - base64url: "base64url-encoded சரம்", - json_string: "JSON சரம்", - e164: "E.164 எண்", - jwt: "JWT", - template_literal: "input" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue.expected}, பெறப்பட்டது ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue.values[0])}`; - return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue.values, "|")} இல் ஒன்று`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${issue.origin ?? "மதிப்பு"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "உறுப்புகள்"} ஆக இருக்க வேண்டும்`; - return `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${issue.origin ?? "மதிப்பு"} ${adj}${issue.maximum.toString()} ஆக இருக்க வேண்டும்`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} ஆக இருக்க வேண்டும்`; - return `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${issue.origin} ${adj}${issue.minimum.toString()} ஆக இருக்க வேண்டும்`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `தவறான சரம்: "${_issue.prefix}" இல் தொடங்க வேண்டும்`; - if (_issue.format === "ends_with") return `தவறான சரம்: "${_issue.suffix}" இல் முடிவடைய வேண்டும்`; - if (_issue.format === "includes") return `தவறான சரம்: "${_issue.includes}" ஐ உள்ளடக்க வேண்டும்`; - if (_issue.format === "regex") return `தவறான சரம்: ${_issue.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`; - return `தவறான ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `தவறான எண்: ${issue.divisor} இன் பலமாக இருக்க வேண்டும்`; - case "unrecognized_keys": return `அடையாளம் தெரியாத விசை${issue.keys.length > 1 ? "கள்" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `${issue.origin} இல் தவறான விசை`; - case "invalid_union": return "தவறான உள்ளீடு"; - case "invalid_element": return `${issue.origin} இல் தவறான மதிப்பு`; - default: return `தவறான உள்ளீடு`; - } - }; -}; -function ta_default() { - return { localeError: error$8() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/th.js -const error$7 = () => { - const Sizable = { - string: { - unit: "ตัวอักษร", - verb: "ควรมี" - }, - file: { - unit: "ไบต์", - verb: "ควรมี" - }, - array: { - unit: "รายการ", - verb: "ควรมี" - }, - set: { - unit: "รายการ", - verb: "ควรมี" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "ไม่ใช่ตัวเลข (NaN)" : "ตัวเลข"; - 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: "ข้อมูลที่ป้อน", - email: "ที่อยู่อีเมล", - url: "URL", - emoji: "อิโมจิ", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "วันที่เวลาแบบ ISO", - date: "วันที่แบบ ISO", - time: "เวลาแบบ ISO", - duration: "ช่วงเวลาแบบ ISO", - ipv4: "ที่อยู่ IPv4", - ipv6: "ที่อยู่ IPv6", - cidrv4: "ช่วง IP แบบ IPv4", - cidrv6: "ช่วง IP แบบ IPv6", - base64: "ข้อความแบบ Base64", - base64url: "ข้อความแบบ Base64 สำหรับ URL", - json_string: "ข้อความแบบ JSON", - e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)", - jwt: "โทเคน JWT", - template_literal: "ข้อมูลที่ป้อน" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue.expected} แต่ได้รับ ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue.values[0])}`; - return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "ไม่เกิน" : "น้อยกว่า"; - const sizing = getSizing(issue.origin); - if (sizing) return `เกินกำหนด: ${issue.origin ?? "ค่า"} ควรมี${adj} ${issue.maximum.toString()} ${sizing.unit ?? "รายการ"}`; - return `เกินกำหนด: ${issue.origin ?? "ค่า"} ควรมี${adj} ${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? "อย่างน้อย" : "มากกว่า"; - const sizing = getSizing(issue.origin); - if (sizing) return `น้อยกว่ากำหนด: ${issue.origin} ควรมี${adj} ${issue.minimum.toString()} ${sizing.unit}`; - return `น้อยกว่ากำหนด: ${issue.origin} ควรมี${adj} ${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${_issue.suffix}"`; - if (_issue.format === "includes") return `รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${_issue.includes}" อยู่ในข้อความ`; - if (_issue.format === "regex") return `รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${_issue.pattern}`; - return `รูปแบบไม่ถูกต้อง: ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${issue.divisor} ได้ลงตัว`; - case "unrecognized_keys": return `พบคีย์ที่ไม่รู้จัก: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `คีย์ไม่ถูกต้องใน ${issue.origin}`; - case "invalid_union": return "ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้"; - case "invalid_element": return `ข้อมูลไม่ถูกต้องใน ${issue.origin}`; - default: return `ข้อมูลไม่ถูกต้อง`; - } - }; -}; -function th_default() { - return { localeError: error$7() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/tr.js -const 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; -}; -const error$6 = () => { - const Sizable = { - string: { - unit: "karakter", - verb: "olmalı" - }, - file: { - unit: "bayt", - verb: "olmalı" - }, - array: { - unit: "öğe", - verb: "olmalı" - }, - set: { - unit: "öğe", - verb: "olmalı" - } - }; - 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üre", - ipv4: "IPv4 adresi", - ipv6: "IPv6 adresi", - cidrv4: "IPv4 aralığı", - cidrv6: "IPv6 aralığı", - base64: "base64 ile şifrelenmiş metin", - base64url: "base64url ile şifrelenmiş metin", - json_string: "JSON dizesi", - e164: "E.164 sayısı", - jwt: "JWT", - template_literal: "Şablon dizesi" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Geçersiz değer: beklenen ${issue.expected}, alınan ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Geçersiz değer: beklenen ${stringifyPrimitive(issue.values[0])}`; - return `Geçersiz seçenek: aşağıdakilerden biri olmalı: ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Çok büyük: beklenen ${issue.origin ?? "değer"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "öğe"}`; - return `Çok büyük: beklenen ${issue.origin ?? "değer"} ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Çok küçük: beklenen ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Çok küçük: beklenen ${issue.origin} ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Geçersiz metin: "${_issue.prefix}" ile başlamalı`; - if (_issue.format === "ends_with") return `Geçersiz metin: "${_issue.suffix}" ile bitmeli`; - if (_issue.format === "includes") return `Geçersiz metin: "${_issue.includes}" içermeli`; - if (_issue.format === "regex") return `Geçersiz metin: ${_issue.pattern} desenine uymalı`; - return `Geçersiz ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Geçersiz sayı: ${issue.divisor} ile tam bölünebilmeli`; - case "unrecognized_keys": return `Tanınmayan anahtar${issue.keys.length > 1 ? "lar" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `${issue.origin} içinde geçersiz anahtar`; - case "invalid_union": return "Geçersiz değer"; - case "invalid_element": return `${issue.origin} içinde geçersiz değer`; - default: return `Geçersiz değer`; - } - }; -}; -function tr_default() { - return { localeError: error$6() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/uk.js -const error$5 = () => { - const Sizable = { - string: { - unit: "символів", - verb: "матиме" - }, - file: { - unit: "байтів", - verb: "матиме" - }, - array: { - unit: "елементів", - verb: "матиме" - }, - set: { - unit: "елементів", - verb: "матиме" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "число"; - case "object": - if (Array.isArray(data)) return "масив"; - if (data === null) return "null"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; - }; - const Nouns = { - regex: "вхідні дані", - email: "адреса електронної пошти", - url: "URL", - emoji: "емодзі", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "дата та час ISO", - date: "дата ISO", - time: "час ISO", - duration: "тривалість ISO", - ipv4: "адреса IPv4", - ipv6: "адреса IPv6", - cidrv4: "діапазон IPv4", - cidrv6: "діапазон IPv6", - base64: "рядок у кодуванні base64", - base64url: "рядок у кодуванні base64url", - json_string: "рядок JSON", - e164: "номер E.164", - jwt: "JWT", - template_literal: "вхідні дані" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Неправильні вхідні дані: очікується ${issue.expected}, отримано ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue.values[0])}`; - return `Неправильна опція: очікується одне з ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Занадто велике: очікується, що ${issue.origin ?? "значення"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "елементів"}`; - return `Занадто велике: очікується, що ${issue.origin ?? "значення"} буде ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Занадто мале: очікується, що ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Занадто мале: очікується, що ${issue.origin} буде ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Неправильний рядок: повинен починатися з "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Неправильний рядок: повинен закінчуватися на "${_issue.suffix}"`; - if (_issue.format === "includes") return `Неправильний рядок: повинен містити "${_issue.includes}"`; - if (_issue.format === "regex") return `Неправильний рядок: повинен відповідати шаблону ${_issue.pattern}`; - return `Неправильний ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Неправильне число: повинно бути кратним ${issue.divisor}`; - case "unrecognized_keys": return `Нерозпізнаний ключ${issue.keys.length > 1 ? "і" : ""}: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Неправильний ключ у ${issue.origin}`; - case "invalid_union": return "Неправильні вхідні дані"; - case "invalid_element": return `Неправильне значення у ${issue.origin}`; - default: return `Неправильні вхідні дані`; - } - }; -}; -function uk_default() { - return { localeError: error$5() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ua.js -/** @deprecated Use `uk` instead. */ -function ua_default() { - return uk_default(); -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ur.js -const error$4 = () => { - const Sizable = { - string: { - unit: "حروف", - verb: "ہونا" - }, - file: { - unit: "بائٹس", - verb: "ہونا" - }, - array: { - unit: "آئٹمز", - verb: "ہونا" - }, - set: { - unit: "آئٹمز", - verb: "ہونا" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "نمبر"; - case "object": - if (Array.isArray(data)) return "آرے"; - if (data === null) return "نل"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; - }; - const Nouns = { - regex: "ان پٹ", - email: "ای میل ایڈریس", - url: "یو آر ایل", - emoji: "ایموجی", - uuid: "یو یو آئی ڈی", - uuidv4: "یو یو آئی ڈی وی 4", - uuidv6: "یو یو آئی ڈی وی 6", - nanoid: "نینو آئی ڈی", - guid: "جی یو آئی ڈی", - cuid: "سی یو آئی ڈی", - cuid2: "سی یو آئی ڈی 2", - ulid: "یو ایل آئی ڈی", - xid: "ایکس آئی ڈی", - ksuid: "کے ایس یو آئی ڈی", - datetime: "آئی ایس او ڈیٹ ٹائم", - date: "آئی ایس او تاریخ", - time: "آئی ایس او وقت", - duration: "آئی ایس او مدت", - ipv4: "آئی پی وی 4 ایڈریس", - ipv6: "آئی پی وی 6 ایڈریس", - cidrv4: "آئی پی وی 4 رینج", - cidrv6: "آئی پی وی 6 رینج", - base64: "بیس 64 ان کوڈڈ سٹرنگ", - base64url: "بیس 64 یو آر ایل ان کوڈڈ سٹرنگ", - json_string: "جے ایس او این سٹرنگ", - e164: "ای 164 نمبر", - jwt: "جے ڈبلیو ٹی", - template_literal: "ان پٹ" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `غلط ان پٹ: ${issue.expected} متوقع تھا، ${parsedType(issue.input)} موصول ہوا`; - case "invalid_value": - if (issue.values.length === 1) return `غلط ان پٹ: ${stringifyPrimitive(issue.values[0])} متوقع تھا`; - return `غلط آپشن: ${joinValues(issue.values, "|")} میں سے ایک متوقع تھا`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `بہت بڑا: ${issue.origin ?? "ویلیو"} کے ${adj}${issue.maximum.toString()} ${sizing.unit ?? "عناصر"} ہونے متوقع تھے`; - return `بہت بڑا: ${issue.origin ?? "ویلیو"} کا ${adj}${issue.maximum.toString()} ہونا متوقع تھا`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `بہت چھوٹا: ${issue.origin} کے ${adj}${issue.minimum.toString()} ${sizing.unit} ہونے متوقع تھے`; - return `بہت چھوٹا: ${issue.origin} کا ${adj}${issue.minimum.toString()} ہونا متوقع تھا`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `غلط سٹرنگ: "${_issue.prefix}" سے شروع ہونا چاہیے`; - if (_issue.format === "ends_with") return `غلط سٹرنگ: "${_issue.suffix}" پر ختم ہونا چاہیے`; - if (_issue.format === "includes") return `غلط سٹرنگ: "${_issue.includes}" شامل ہونا چاہیے`; - if (_issue.format === "regex") return `غلط سٹرنگ: پیٹرن ${_issue.pattern} سے میچ ہونا چاہیے`; - return `غلط ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `غلط نمبر: ${issue.divisor} کا مضاعف ہونا چاہیے`; - case "unrecognized_keys": return `غیر تسلیم شدہ کی${issue.keys.length > 1 ? "ز" : ""}: ${joinValues(issue.keys, "، ")}`; - case "invalid_key": return `${issue.origin} میں غلط کی`; - case "invalid_union": return "غلط ان پٹ"; - case "invalid_element": return `${issue.origin} میں غلط ویلیو`; - default: return `غلط ان پٹ`; - } - }; -}; -function ur_default() { - return { localeError: error$4() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/vi.js -const error$3 = () => { - const Sizable = { - string: { - unit: "ký tự", - verb: "có" - }, - file: { - unit: "byte", - verb: "có" - }, - array: { - unit: "phần tử", - verb: "có" - }, - set: { - unit: "phần tử", - verb: "có" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "số"; - case "object": - if (Array.isArray(data)) return "mảng"; - if (data === null) return "null"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; - }; - const Nouns = { - regex: "đầu vào", - email: "địa chỉ 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ày giờ ISO", - date: "ngày ISO", - time: "giờ ISO", - duration: "khoảng thời gian ISO", - ipv4: "địa chỉ IPv4", - ipv6: "địa chỉ IPv6", - cidrv4: "dải IPv4", - cidrv6: "dải IPv6", - base64: "chuỗi mã hóa base64", - base64url: "chuỗi mã hóa base64url", - json_string: "chuỗi JSON", - e164: "số E.164", - jwt: "JWT", - template_literal: "đầu vào" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Đầu vào không hợp lệ: mong đợi ${issue.expected}, nhận được ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue.values[0])}`; - return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Quá lớn: mong đợi ${issue.origin ?? "giá trị"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "phần tử"}`; - return `Quá lớn: mong đợi ${issue.origin ?? "giá trị"} ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Quá nhỏ: mong đợi ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `Quá nhỏ: mong đợi ${issue.origin} ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Chuỗi không hợp lệ: phải bắt đầu bằng "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Chuỗi không hợp lệ: phải kết thúc bằng "${_issue.suffix}"`; - if (_issue.format === "includes") return `Chuỗi không hợp lệ: phải bao gồm "${_issue.includes}"`; - if (_issue.format === "regex") return `Chuỗi không hợp lệ: phải khớp với mẫu ${_issue.pattern}`; - return `${Nouns[_issue.format] ?? issue.format} không hợp lệ`; - } - case "not_multiple_of": return `Số không hợp lệ: phải là bội số của ${issue.divisor}`; - case "unrecognized_keys": return `Khóa không được nhận dạng: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Khóa không hợp lệ trong ${issue.origin}`; - case "invalid_union": return "Đầu vào không hợp lệ"; - case "invalid_element": return `Giá trị không hợp lệ trong ${issue.origin}`; - default: return `Đầu vào không hợp lệ`; - } - }; -}; -function vi_default() { - return { localeError: error$3() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/zh-CN.js -const error$2 = () => { - const Sizable = { - string: { - unit: "字符", - verb: "包含" - }, - file: { - unit: "字节", - verb: "包含" - }, - array: { - unit: "项", - verb: "包含" - }, - set: { - unit: "项", - verb: "包含" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "非数字(NaN)" : "数字"; - case "object": - if (Array.isArray(data)) return "数组"; - if (data === null) return "空值(null)"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; - }; - const Nouns = { - regex: "输入", - email: "电子邮件", - url: "URL", - emoji: "表情符号", - uuid: "UUID", - uuidv4: "UUIDv4", - uuidv6: "UUIDv6", - nanoid: "nanoid", - guid: "GUID", - cuid: "cuid", - cuid2: "cuid2", - ulid: "ULID", - xid: "XID", - ksuid: "KSUID", - datetime: "ISO日期时间", - date: "ISO日期", - time: "ISO时间", - duration: "ISO时长", - ipv4: "IPv4地址", - ipv6: "IPv6地址", - cidrv4: "IPv4网段", - cidrv6: "IPv6网段", - base64: "base64编码字符串", - base64url: "base64url编码字符串", - json_string: "JSON字符串", - e164: "E.164号码", - jwt: "JWT", - template_literal: "输入" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `无效输入:期望 ${issue.expected},实际接收 ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `无效输入:期望 ${stringifyPrimitive(issue.values[0])}`; - return `无效选项:期望以下之一 ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `数值过大:期望 ${issue.origin ?? "值"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "个元素"}`; - return `数值过大:期望 ${issue.origin ?? "值"} ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `数值过小:期望 ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `数值过小:期望 ${issue.origin} ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `无效字符串:必须以 "${_issue.prefix}" 开头`; - if (_issue.format === "ends_with") return `无效字符串:必须以 "${_issue.suffix}" 结尾`; - if (_issue.format === "includes") return `无效字符串:必须包含 "${_issue.includes}"`; - if (_issue.format === "regex") return `无效字符串:必须满足正则表达式 ${_issue.pattern}`; - return `无效${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `无效数字:必须是 ${issue.divisor} 的倍数`; - case "unrecognized_keys": return `出现未知的键(key): ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `${issue.origin} 中的键(key)无效`; - case "invalid_union": return "无效输入"; - case "invalid_element": return `${issue.origin} 中包含无效值(value)`; - default: return `无效输入`; - } - }; -}; -function zh_CN_default() { - return { localeError: error$2() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/zh-TW.js -const error$1 = () => { - const Sizable = { - string: { - unit: "字元", - verb: "擁有" - }, - file: { - unit: "位元組", - verb: "擁有" - }, - array: { - unit: "項目", - verb: "擁有" - }, - set: { - unit: "項目", - verb: "擁有" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const 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; - }; - const Nouns = { - regex: "輸入", - 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: "ISO 日期時間", - date: "ISO 日期", - time: "ISO 時間", - duration: "ISO 期間", - ipv4: "IPv4 位址", - ipv6: "IPv6 位址", - cidrv4: "IPv4 範圍", - cidrv6: "IPv6 範圍", - base64: "base64 編碼字串", - base64url: "base64url 編碼字串", - json_string: "JSON 字串", - e164: "E.164 數值", - jwt: "JWT", - template_literal: "輸入" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `無效的輸入值:預期為 ${issue.expected},但收到 ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `無效的輸入值:預期為 ${stringifyPrimitive(issue.values[0])}`; - return `無效的選項:預期為以下其中之一 ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `數值過大:預期 ${issue.origin ?? "值"} 應為 ${adj}${issue.maximum.toString()} ${sizing.unit ?? "個元素"}`; - return `數值過大:預期 ${issue.origin ?? "值"} 應為 ${adj}${issue.maximum.toString()}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `數值過小:預期 ${issue.origin} 應為 ${adj}${issue.minimum.toString()} ${sizing.unit}`; - return `數值過小:預期 ${issue.origin} 應為 ${adj}${issue.minimum.toString()}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `無效的字串:必須以 "${_issue.prefix}" 開頭`; - if (_issue.format === "ends_with") return `無效的字串:必須以 "${_issue.suffix}" 結尾`; - if (_issue.format === "includes") return `無效的字串:必須包含 "${_issue.includes}"`; - if (_issue.format === "regex") return `無效的字串:必須符合格式 ${_issue.pattern}`; - return `無效的 ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `無效的數字:必須為 ${issue.divisor} 的倍數`; - case "unrecognized_keys": return `無法識別的鍵值${issue.keys.length > 1 ? "們" : ""}:${joinValues(issue.keys, "、")}`; - case "invalid_key": return `${issue.origin} 中有無效的鍵值`; - case "invalid_union": return "無效的輸入值"; - case "invalid_element": return `${issue.origin} 中有無效的值`; - default: return `無效的輸入值`; - } - }; -}; -function zh_TW_default() { - return { localeError: error$1() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/yo.js -const error = () => { - const Sizable = { - string: { - unit: "àmi", - verb: "ní" - }, - file: { - unit: "bytes", - verb: "ní" - }, - array: { - unit: "nkan", - verb: "ní" - }, - set: { - unit: "nkan", - verb: "ní" - } - }; - function getSizing(origin) { - return Sizable[origin] ?? null; - } - const parsedType = (data) => { - const t = typeof data; - switch (t) { - case "number": return Number.isNaN(data) ? "NaN" : "nọ́mbà"; - case "object": - if (Array.isArray(data)) return "akopọ"; - if (data === null) return "null"; - if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) return data.constructor.name; - } - return t; - }; - const Nouns = { - regex: "ẹ̀rọ ìbáwọlé", - email: "àdírẹ́sì ìmẹ́lì", - 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: "àkókò ISO", - date: "ọjọ́ ISO", - time: "àkókò ISO", - duration: "àkókò tó pé ISO", - ipv4: "àdírẹ́sì IPv4", - ipv6: "àdírẹ́sì IPv6", - cidrv4: "àgbègbè IPv4", - cidrv6: "àgbègbè IPv6", - base64: "ọ̀rọ̀ tí a kọ́ ní base64", - base64url: "ọ̀rọ̀ base64url", - json_string: "ọ̀rọ̀ JSON", - e164: "nọ́mbà E.164", - jwt: "JWT", - template_literal: "ẹ̀rọ ìbáwọlé" - }; - return (issue) => { - switch (issue.code) { - case "invalid_type": return `Ìbáwọlé aṣìṣe: a ní láti fi ${issue.expected}, àmọ̀ a rí ${parsedType(issue.input)}`; - case "invalid_value": - if (issue.values.length === 1) return `Ìbáwọlé aṣìṣe: a ní láti fi ${stringifyPrimitive(issue.values[0])}`; - return `Àṣàyàn aṣìṣe: yan ọ̀kan lára ${joinValues(issue.values, "|")}`; - case "too_big": { - const adj = issue.inclusive ? "<=" : "<"; - const sizing = getSizing(issue.origin); - if (sizing) return `Tó pọ̀ jù: a ní láti jẹ́ pé ${issue.origin ?? "iye"} ${sizing.verb} ${adj}${issue.maximum} ${sizing.unit}`; - return `Tó pọ̀ jù: a ní láti jẹ́ ${adj}${issue.maximum}`; - } - case "too_small": { - const adj = issue.inclusive ? ">=" : ">"; - const sizing = getSizing(issue.origin); - if (sizing) return `Kéré ju: a ní láti jẹ́ pé ${issue.origin} ${sizing.verb} ${adj}${issue.minimum} ${sizing.unit}`; - return `Kéré ju: a ní láti jẹ́ ${adj}${issue.minimum}`; - } - case "invalid_format": { - const _issue = issue; - if (_issue.format === "starts_with") return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${_issue.prefix}"`; - if (_issue.format === "ends_with") return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${_issue.suffix}"`; - if (_issue.format === "includes") return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${_issue.includes}"`; - if (_issue.format === "regex") return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${_issue.pattern}`; - return `Aṣìṣe: ${Nouns[_issue.format] ?? issue.format}`; - } - case "not_multiple_of": return `Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${issue.divisor}`; - case "unrecognized_keys": return `Bọtìnì àìmọ̀: ${joinValues(issue.keys, ", ")}`; - case "invalid_key": return `Bọtìnì aṣìṣe nínú ${issue.origin}`; - case "invalid_union": return "Ìbáwọlé aṣìṣe"; - case "invalid_element": return `Iye aṣìṣe nínú ${issue.origin}`; - default: return "Ìbáwọlé aṣìṣe"; - } - }; -}; -function yo_default() { - return { localeError: error() }; -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/index.js -var locales_exports = /* @__PURE__ */ __exportAll({ - ar: () => ar_default, - az: () => az_default, - be: () => be_default, - ca: () => ca_default, - cs: () => cs_default, - da: () => da_default, - de: () => de_default, - en: () => en_default, - 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, - is: () => is_default, - it: () => it_default, - ja: () => ja_default, - ka: () => ka_default, - kh: () => kh_default, - km: () => km_default, - ko: () => ko_default, - lt: () => lt_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, - uk: () => uk_default, - ur: () => ur_default, - vi: () => vi_default, - yo: () => yo_default, - zhCN: () => zh_CN_default, - zhTW: () => zh_TW_default -}); -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/registries.js -const $output = Symbol("ZodOutput"); -const $input = Symbol("ZodInput"); -var $ZodRegistry = class { - constructor() { - this._map = /* @__PURE__ */ new WeakMap(); - this._idmap = /* @__PURE__ */ new Map(); - } - add(schema, ..._meta) { - const meta = _meta[0]; - this._map.set(schema, 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, schema); - } - return this; - } - clear() { - this._map = /* @__PURE__ */ new WeakMap(); - this._idmap = /* @__PURE__ */ new Map(); - return this; - } - remove(schema) { - const meta = this._map.get(schema); - if (meta && typeof meta === "object" && "id" in meta) this._idmap.delete(meta.id); - this._map.delete(schema); - return this; - } - get(schema) { - const p = schema._zod.parent; - if (p) { - const pm = { ...this.get(p) ?? {} }; - delete pm.id; - const f = { - ...pm, - ...this._map.get(schema) - }; - return Object.keys(f).length ? f : void 0; - } - return this._map.get(schema); - } - has(schema) { - return this._map.has(schema); - } -}; -function registry() { - return new $ZodRegistry(); -} -const globalRegistry = /*@__PURE__*/ registry(); -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/api.js -function _string(Class, params) { - return new Class({ - type: "string", - ...normalizeParams(params) - }); -} -function _coercedString(Class, params) { - return new Class({ - type: "string", - coerce: true, - ...normalizeParams(params) - }); -} -function _email(Class, params) { - return new Class({ - type: "string", - format: "email", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _guid(Class, params) { - return new Class({ - type: "string", - format: "guid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _uuid(Class, params) { - return new Class({ - type: "string", - format: "uuid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _uuidv4(Class, params) { - return new Class({ - type: "string", - format: "uuid", - check: "string_format", - abort: false, - version: "v4", - ...normalizeParams(params) - }); -} -function _uuidv6(Class, params) { - return new Class({ - type: "string", - format: "uuid", - check: "string_format", - abort: false, - version: "v6", - ...normalizeParams(params) - }); -} -function _uuidv7(Class, params) { - return new Class({ - type: "string", - format: "uuid", - check: "string_format", - abort: false, - version: "v7", - ...normalizeParams(params) - }); -} -function _url(Class, params) { - return new Class({ - type: "string", - format: "url", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _emoji(Class, params) { - return new Class({ - type: "string", - format: "emoji", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _nanoid(Class, params) { - return new Class({ - type: "string", - format: "nanoid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _cuid(Class, params) { - return new Class({ - type: "string", - format: "cuid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _cuid2(Class, params) { - return new Class({ - type: "string", - format: "cuid2", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _ulid(Class, params) { - return new Class({ - type: "string", - format: "ulid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _xid(Class, params) { - return new Class({ - type: "string", - format: "xid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _ksuid(Class, params) { - return new Class({ - type: "string", - format: "ksuid", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _ipv4(Class, params) { - return new Class({ - type: "string", - format: "ipv4", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _ipv6(Class, params) { - return new Class({ - type: "string", - format: "ipv6", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _cidrv4(Class, params) { - return new Class({ - type: "string", - format: "cidrv4", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _cidrv6(Class, params) { - return new Class({ - type: "string", - format: "cidrv6", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _base64(Class, params) { - return new Class({ - type: "string", - format: "base64", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _base64url(Class, params) { - return new Class({ - type: "string", - format: "base64url", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _e164(Class, params) { - return new Class({ - type: "string", - format: "e164", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -function _jwt(Class, params) { - return new Class({ - type: "string", - format: "jwt", - check: "string_format", - abort: false, - ...normalizeParams(params) - }); -} -const TimePrecision = { - Any: null, - Minute: -1, - Second: 0, - Millisecond: 3, - Microsecond: 6 -}; -function _isoDateTime(Class, params) { - return new Class({ - type: "string", - format: "datetime", - check: "string_format", - offset: false, - local: false, - precision: null, - ...normalizeParams(params) - }); -} -function _isoDate(Class, params) { - return new Class({ - type: "string", - format: "date", - check: "string_format", - ...normalizeParams(params) - }); -} -function _isoTime(Class, params) { - return new Class({ - type: "string", - format: "time", - check: "string_format", - precision: null, - ...normalizeParams(params) - }); -} -function _isoDuration(Class, params) { - return new Class({ - type: "string", - format: "duration", - check: "string_format", - ...normalizeParams(params) - }); -} -function _number(Class, params) { - return new Class({ - type: "number", - checks: [], - ...normalizeParams(params) - }); -} -function _coercedNumber(Class, params) { - return new Class({ - type: "number", - coerce: true, - checks: [], - ...normalizeParams(params) - }); -} -function _int(Class, params) { - return new Class({ - type: "number", - check: "number_format", - abort: false, - format: "safeint", - ...normalizeParams(params) - }); -} -function _float32(Class, params) { - return new Class({ - type: "number", - check: "number_format", - abort: false, - format: "float32", - ...normalizeParams(params) - }); -} -function _float64(Class, params) { - return new Class({ - type: "number", - check: "number_format", - abort: false, - format: "float64", - ...normalizeParams(params) - }); -} -function _int32(Class, params) { - return new Class({ - type: "number", - check: "number_format", - abort: false, - format: "int32", - ...normalizeParams(params) - }); -} -function _uint32(Class, params) { - return new Class({ - type: "number", - check: "number_format", - abort: false, - format: "uint32", - ...normalizeParams(params) - }); -} -function _boolean(Class, params) { - return new Class({ - type: "boolean", - ...normalizeParams(params) - }); -} -function _coercedBoolean(Class, params) { - return new Class({ - type: "boolean", - coerce: true, - ...normalizeParams(params) - }); -} -function _bigint(Class, params) { - return new Class({ - type: "bigint", - ...normalizeParams(params) - }); -} -function _coercedBigint(Class, params) { - return new Class({ - type: "bigint", - coerce: true, - ...normalizeParams(params) - }); -} -function _int64(Class, params) { - return new Class({ - type: "bigint", - check: "bigint_format", - abort: false, - format: "int64", - ...normalizeParams(params) - }); -} -function _uint64(Class, params) { - return new Class({ - type: "bigint", - check: "bigint_format", - abort: false, - format: "uint64", - ...normalizeParams(params) - }); -} -function _symbol(Class, params) { - return new Class({ - type: "symbol", - ...normalizeParams(params) - }); -} -function _undefined$1(Class, params) { - return new Class({ - type: "undefined", - ...normalizeParams(params) - }); -} -function _null$1(Class, params) { - return new Class({ - type: "null", - ...normalizeParams(params) - }); -} -function _any(Class) { - return new Class({ type: "any" }); -} -function _unknown(Class) { - return new Class({ type: "unknown" }); -} -function _never(Class, params) { - return new Class({ - type: "never", - ...normalizeParams(params) - }); -} -function _void$1(Class, params) { - return new Class({ - type: "void", - ...normalizeParams(params) - }); -} -function _date(Class, params) { - return new Class({ - type: "date", - ...normalizeParams(params) - }); -} -function _coercedDate(Class, params) { - return new Class({ - type: "date", - coerce: true, - ...normalizeParams(params) - }); -} -function _nan(Class, params) { - return new Class({ - type: "nan", - ...normalizeParams(params) - }); -} -function _lt(value, params) { - return new $ZodCheckLessThan({ - check: "less_than", - ...normalizeParams(params), - value, - inclusive: false - }); -} -function _lte(value, params) { - return new $ZodCheckLessThan({ - check: "less_than", - ...normalizeParams(params), - value, - inclusive: true - }); -} -function _gt(value, params) { - return new $ZodCheckGreaterThan({ - check: "greater_than", - ...normalizeParams(params), - value, - inclusive: false - }); -} -function _gte(value, params) { - return new $ZodCheckGreaterThan({ - check: "greater_than", - ...normalizeParams(params), - value, - 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(value, params) { - return new $ZodCheckMultipleOf({ - check: "multiple_of", - ...normalizeParams(params), - value - }); -} -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) { - return new $ZodCheckMaxLength({ - check: "max_length", - ...normalizeParams(params), - maximum - }); -} -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(includes, params) { - return new $ZodCheckIncludes({ - check: "string_format", - format: "includes", - ...normalizeParams(params), - includes - }); -} -function _startsWith(prefix, params) { - return new $ZodCheckStartsWith({ - check: "string_format", - format: "starts_with", - ...normalizeParams(params), - prefix - }); -} -function _endsWith(suffix, params) { - return new $ZodCheckEndsWith({ - check: "string_format", - format: "ends_with", - ...normalizeParams(params), - suffix - }); -} -function _property(property, schema, params) { - return new $ZodCheckProperty({ - check: "property", - property, - schema, - ...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(Class, element, params) { - return new Class({ - type: "array", - element, - ...normalizeParams(params) - }); -} -function _union(Class, options, params) { - return new Class({ - type: "union", - options, - ...normalizeParams(params) - }); -} -function _discriminatedUnion(Class, discriminator, options, params) { - return new Class({ - type: "union", - options, - discriminator, - ...normalizeParams(params) - }); -} -function _intersection(Class, left, right) { - return new Class({ - type: "intersection", - left, - right - }); -} -function _tuple(Class, items, _paramsOrRest, _params) { - const hasRest = _paramsOrRest instanceof $ZodType; - return new Class({ - type: "tuple", - items, - rest: hasRest ? _paramsOrRest : null, - ...normalizeParams(hasRest ? _params : _paramsOrRest) - }); -} -function _record(Class, keyType, valueType, params) { - return new Class({ - type: "record", - keyType, - valueType, - ...normalizeParams(params) - }); -} -function _map(Class, keyType, valueType, params) { - return new Class({ - type: "map", - keyType, - valueType, - ...normalizeParams(params) - }); -} -function _set(Class, valueType, params) { - return new Class({ - type: "set", - valueType, - ...normalizeParams(params) - }); -} -function _enum$1(Class, values, params) { - return new Class({ - type: "enum", - entries: Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values, - ...normalizeParams(params) - }); -} -/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead. -* -* ```ts -* enum Colors { red, green, blue } -* z.enum(Colors); -* ``` -*/ -function _nativeEnum(Class, entries, params) { - return new Class({ - type: "enum", - entries, - ...normalizeParams(params) - }); -} -function _literal(Class, value, params) { - return new Class({ - type: "literal", - values: Array.isArray(value) ? value : [value], - ...normalizeParams(params) - }); -} -function _file(Class, params) { - return new Class({ - type: "file", - ...normalizeParams(params) - }); -} -function _transform(Class, fn) { - return new Class({ - type: "transform", - transform: fn - }); -} -function _optional(Class, innerType) { - return new Class({ - type: "optional", - innerType - }); -} -function _nullable(Class, innerType) { - return new Class({ - type: "nullable", - innerType - }); -} -function _default$1(Class, innerType, defaultValue) { - return new Class({ - type: "default", - innerType, - get defaultValue() { - return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue); - } - }); -} -function _nonoptional(Class, innerType, params) { - return new Class({ - type: "nonoptional", - innerType, - ...normalizeParams(params) - }); -} -function _success(Class, innerType) { - return new Class({ - type: "success", - innerType - }); -} -function _catch$1(Class, innerType, catchValue) { - return new Class({ - type: "catch", - innerType, - catchValue: typeof catchValue === "function" ? catchValue : () => catchValue - }); -} -function _pipe(Class, in_, out) { - return new Class({ - type: "pipe", - in: in_, - out - }); -} -function _readonly(Class, innerType) { - return new Class({ - type: "readonly", - innerType - }); -} -function _templateLiteral(Class, parts, params) { - return new Class({ - type: "template_literal", - parts, - ...normalizeParams(params) - }); -} -function _lazy(Class, getter) { - return new Class({ - type: "lazy", - getter - }); -} -function _promise(Class, innerType) { - return new Class({ - type: "promise", - innerType - }); -} -function _custom(Class, fn, _params) { - const norm = normalizeParams(_params); - norm.abort ?? (norm.abort = true); - return new Class({ - type: "custom", - check: "custom", - fn, - ...norm - }); -} -function _refine(Class, fn, _params) { - return new Class({ - type: "custom", - check: "custom", - fn, - ...normalizeParams(_params) - }); -} -function _superRefine(fn) { - const ch = _check((payload) => { - payload.addIssue = (issue$2) => { - if (typeof issue$2 === "string") payload.issues.push(issue(issue$2, payload.value, ch._zod.def)); - else { - const _issue = issue$2; - if (_issue.fatal) _issue.continue = false; - _issue.code ?? (_issue.code = "custom"); - _issue.input ?? (_issue.input = payload.value); - _issue.inst ?? (_issue.inst = ch); - _issue.continue ?? (_issue.continue = !ch._zod.def.abort); - payload.issues.push(issue(_issue)); - } - }; - return fn(payload.value, payload); - }); - return ch; -} -function _check(fn, params) { - const ch = new $ZodCheck({ - check: "custom", - ...normalizeParams(params) - }); - ch._zod.check = fn; - return ch; -} -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 _Codec = Classes.Codec ?? $ZodCodec; - const _Boolean = Classes.Boolean ?? $ZodBoolean; - const codec = new _Codec({ - type: "pipe", - in: new (Classes.String ?? $ZodString)({ - type: "string", - error: params.error - }), - out: new _Boolean({ - type: "boolean", - error: params.error - }), - 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: codec, - continue: false - }); - return {}; - } - }), - reverseTransform: ((input, _payload) => { - if (input === true) return truthyArray[0] || "true"; - else return falsyArray[0] || "false"; - }), - error: params.error - }); - return codec; -} -function _stringFormat(Class, format, fnOrRegex, _params = {}) { - const params = normalizeParams(_params); - const def = { - ...normalizeParams(_params), - check: "string_format", - type: "string", - format, - fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val), - ...params - }; - if (fnOrRegex instanceof RegExp) def.pattern = fnOrRegex; - return new Class(def); -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/to-json-schema.js -var 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(schema, _params = { - path: [], - schemaPath: [] - }) { - var _a; - const def = schema._zod.def; - const formatMap = { - guid: "uuid", - url: "uri", - datetime: "date-time", - json_string: "json-string", - regex: "" - }; - const seen = this.seen.get(schema); - if (seen) { - seen.count++; - if (_params.schemaPath.includes(schema)) seen.cycle = _params.path; - return seen.schema; - } - const result = { - schema: {}, - count: 1, - cycle: void 0, - path: _params.path - }; - this.seen.set(schema, result); - const overrideSchema = schema._zod.toJSONSchema?.(); - if (overrideSchema) result.schema = overrideSchema; - else { - const params = { - ..._params, - schemaPath: [..._params.schemaPath, schema], - path: _params.path - }; - const parent = schema._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 json = _json; - json.type = "string"; - const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag; - if (typeof minimum === "number") json.minLength = minimum; - if (typeof maximum === "number") json.maxLength = maximum; - if (format) { - json.format = formatMap[format] ?? format; - if (json.format === "") delete json.format; - } - if (contentEncoding) json.contentEncoding = contentEncoding; - if (patterns && patterns.size > 0) { - const regexes = [...patterns]; - if (regexes.length === 1) json.pattern = regexes[0].source; - else if (regexes.length > 1) result.schema.allOf = [...regexes.map((regex) => ({ - ...this.target === "draft-7" || this.target === "draft-4" || this.target === "openapi-3.0" ? { type: "string" } : {}, - pattern: regex.source - }))]; - } - break; - } - case "number": { - const json = _json; - const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag; - if (typeof format === "string" && format.includes("int")) json.type = "integer"; - else json.type = "number"; - if (typeof exclusiveMinimum === "number") if (this.target === "draft-4" || this.target === "openapi-3.0") { - json.minimum = exclusiveMinimum; - json.exclusiveMinimum = true; - } else json.exclusiveMinimum = exclusiveMinimum; - if (typeof minimum === "number") { - json.minimum = minimum; - if (typeof exclusiveMinimum === "number" && this.target !== "draft-4") if (exclusiveMinimum >= minimum) delete json.minimum; - else delete json.exclusiveMinimum; - } - if (typeof exclusiveMaximum === "number") if (this.target === "draft-4" || this.target === "openapi-3.0") { - json.maximum = exclusiveMaximum; - json.exclusiveMaximum = true; - } else json.exclusiveMaximum = exclusiveMaximum; - if (typeof maximum === "number") { - json.maximum = maximum; - if (typeof exclusiveMaximum === "number" && this.target !== "draft-4") if (exclusiveMaximum <= maximum) delete json.maximum; - else delete json.exclusiveMaximum; - } - if (typeof multipleOf === "number") json.multipleOf = multipleOf; - break; - } - case "boolean": { - const json = _json; - json.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": - if (this.target === "openapi-3.0") { - _json.type = "string"; - _json.nullable = true; - _json.enum = [null]; - } else _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 json = _json; - const { minimum, maximum } = schema._zod.bag; - if (typeof minimum === "number") json.minItems = minimum; - if (typeof maximum === "number") json.maxItems = maximum; - json.type = "array"; - json.items = this.process(def.element, { - ...params, - path: [...params.path, "items"] - }); - break; - } - case "object": { - const json = _json; - json.type = "object"; - json.properties = {}; - const shape = def.shape; - for (const key in shape) json.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) json.required = Array.from(requiredKeys); - if (def.catchall?._zod.def.type === "never") json.additionalProperties = false; - else if (!def.catchall) { - if (this.io === "output") json.additionalProperties = false; - } else if (def.catchall) json.additionalProperties = this.process(def.catchall, { - ...params, - path: [...params.path, "additionalProperties"] - }); - break; - } - case "union": { - const json = _json; - json.anyOf = def.options.map((x, i) => this.process(x, { - ...params, - path: [ - ...params.path, - "anyOf", - i - ] - })); - break; - } - case "intersection": { - const json = _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; - json.allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]]; - break; - } - case "tuple": { - const json = _json; - json.type = "array"; - const prefixPath = this.target === "draft-2020-12" ? "prefixItems" : "items"; - const restPath = this.target === "draft-2020-12" ? "items" : this.target === "openapi-3.0" ? "items" : "additionalItems"; - const prefixItems = def.items.map((x, i) => this.process(x, { - ...params, - path: [ - ...params.path, - prefixPath, - i - ] - })); - const rest = def.rest ? this.process(def.rest, { - ...params, - path: [ - ...params.path, - restPath, - ...this.target === "openapi-3.0" ? [def.items.length] : [] - ] - }) : null; - if (this.target === "draft-2020-12") { - json.prefixItems = prefixItems; - if (rest) json.items = rest; - } else if (this.target === "openapi-3.0") { - json.items = { anyOf: prefixItems }; - if (rest) json.items.anyOf.push(rest); - json.minItems = prefixItems.length; - if (!rest) json.maxItems = prefixItems.length; - } else { - json.items = prefixItems; - if (rest) json.additionalItems = rest; - } - const { minimum, maximum } = schema._zod.bag; - if (typeof minimum === "number") json.minItems = minimum; - if (typeof maximum === "number") json.maxItems = maximum; - break; - } - case "record": { - const json = _json; - json.type = "object"; - if (this.target === "draft-7" || this.target === "draft-2020-12") json.propertyNames = this.process(def.keyType, { - ...params, - path: [...params.path, "propertyNames"] - }); - json.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 json = _json; - const values = getEnumValues(def.entries); - if (values.every((v) => typeof v === "number")) json.type = "number"; - if (values.every((v) => typeof v === "string")) json.type = "string"; - json.enum = values; - break; - } - case "literal": { - const json = _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 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]; - json.type = val === null ? "null" : typeof val; - if (this.target === "draft-4" || this.target === "openapi-3.0") json.enum = [val]; - else json.const = val; - } else { - if (vals.every((v) => typeof v === "number")) json.type = "number"; - if (vals.every((v) => typeof v === "string")) json.type = "string"; - if (vals.every((v) => typeof v === "boolean")) json.type = "string"; - if (vals.every((v) => v === null)) json.type = "null"; - json.enum = vals; - } - break; - } - case "file": { - const json = _json; - const file = { - type: "string", - format: "binary", - contentEncoding: "binary" - }; - const { minimum, maximum, mime } = schema._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(json, file); - } else json.anyOf = mime.map((m) => { - return { - ...file, - contentMediaType: m - }; - }); - else Object.assign(json, 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); - if (this.target === "openapi-3.0") { - result.ref = def.innerType; - _json.nullable = true; - } else _json.anyOf = [inner, { type: "null" }]; - break; - } - case "nonoptional": - this.process(def.innerType, params); - result.ref = def.innerType; - break; - case "success": { - const json = _json; - json.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 json = _json; - const pattern = schema._zod.pattern; - if (!pattern) throw new Error("Pattern not found in template literal"); - json.type = "string"; - json.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; - 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 = schema._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; - case "function": - if (this.unrepresentable === "throw") throw new Error("Function types cannot be represented in JSON Schema"); - break; - default: - } - } - } - const meta = this.metadataRegistry.get(schema); - if (meta) Object.assign(result.schema, meta); - if (this.io === "input" && isTransforming(schema)) { - 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; - return this.seen.get(schema).schema; - } - emit(schema, _params) { - const params = { - cycles: _params?.cycles ?? "ref", - reused: _params?.reused ?? "inline", - external: _params?.external ?? void 0 - }; - const root = this.seen.get(schema); - if (!root) 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 ?? ((id) => id); - 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] === root) return { ref: "#" }; - const defUriPrefix = `#/${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 schema = seen.schema; - for (const key in schema) delete schema[key]; - schema.$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 (schema === entry[0]) { - extractToDef(entry); - continue; - } - if (params.external) { - const ext = params.external.registry.get(entry[0])?.id; - if (schema !== entry[0] && ext) { - extractToDef(entry); - continue; - } - } - if (this.metadataRegistry.get(entry[0])?.id) { - extractToDef(entry); - continue; - } - if (seen.cycle) { - extractToDef(entry); - continue; - } - if (seen.count > 1) { - if (params.reused === "ref") { - extractToDef(entry); - continue; - } - } - } - const flattenRef = (zodSchema, params) => { - const seen = this.seen.get(zodSchema); - const schema = seen.def ?? seen.schema; - const _cached = { ...schema }; - if (seen.ref === null) return; - const ref = seen.ref; - seen.ref = null; - if (ref) { - flattenRef(ref, params); - const refSchema = this.seen.get(ref).schema; - if (refSchema.$ref && (params.target === "draft-7" || params.target === "draft-4" || params.target === "openapi-3.0")) { - schema.allOf = schema.allOf ?? []; - schema.allOf.push(refSchema); - } else { - Object.assign(schema, refSchema); - Object.assign(schema, _cached); - } - } - if (!seen.isParent) this.override({ - zodSchema, - jsonSchema: schema, - 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 if (this.target === "draft-4") result.$schema = "http://json-schema.org/draft-04/schema#"; - else if (this.target === "openapi-3.0") {} else console.warn(`Invalid target: ${this.target}`); - if (params.external?.uri) { - const id = params.external.registry.get(schema)?.id; - if (!id) throw new Error("Schema is missing an `id` property"); - result.$id = params.external.uri(id); - } - Object.assign(result, root.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."); - } - } -}; -function toJSONSchema(input, _params) { - if (input instanceof $ZodRegistry) { - const gen = new JSONSchemaGenerator(_params); - const defs = {}; - for (const entry of input._idmap.entries()) { - const [_, schema] = entry; - gen.process(schema); - } - const schemas = {}; - const external = { - registry: input, - uri: _params?.uri, - defs - }; - for (const entry of input._idmap.entries()) { - const [key, schema] = entry; - schemas[key] = gen.emit(schema, { - ..._params, - external - }); - } - if (Object.keys(defs).length > 0) schemas.__shared = { [gen.target === "draft-2020-12" ? "$defs" : "definitions"]: 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 def = _schema._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); - 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; - case "function": return false; - default: - } - throw new Error(`Unknown schema type: ${def.type}`); -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/json-schema.js -var json_schema_exports = /* @__PURE__ */ __exportAll({}); -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/index.js -var core_exports = /* @__PURE__ */ __exportAll({ - $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, - $ZodCodec: () => $ZodCodec, - $ZodCustom: () => $ZodCustom, - $ZodCustomStringFormat: () => $ZodCustomStringFormat, - $ZodDate: () => $ZodDate, - $ZodDefault: () => $ZodDefault, - $ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion, - $ZodE164: () => $ZodE164, - $ZodEmail: () => $ZodEmail, - $ZodEmoji: () => $ZodEmoji, - $ZodEncodeError: () => $ZodEncodeError, - $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, - $ZodObjectJIT: () => $ZodObjectJIT, - $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: () => NEVER, - TimePrecision: () => TimePrecision, - _any: () => _any, - _array: () => _array, - _base64: () => _base64, - _base64url: () => _base64url, - _bigint: () => _bigint, - _boolean: () => _boolean, - _catch: () => _catch$1, - _check: () => _check, - _cidrv4: () => _cidrv4, - _cidrv6: () => _cidrv6, - _coercedBigint: () => _coercedBigint, - _coercedBoolean: () => _coercedBoolean, - _coercedDate: () => _coercedDate, - _coercedNumber: () => _coercedNumber, - _coercedString: () => _coercedString, - _cuid: () => _cuid, - _cuid2: () => _cuid2, - _custom: () => _custom, - _date: () => _date, - _decode: () => _decode, - _decodeAsync: () => _decodeAsync, - _default: () => _default$1, - _discriminatedUnion: () => _discriminatedUnion, - _e164: () => _e164, - _email: () => _email, - _emoji: () => _emoji, - _encode: () => _encode, - _encodeAsync: () => _encodeAsync, - _endsWith: () => _endsWith, - _enum: () => _enum$1, - _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: () => _null$1, - _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, - _safeDecode: () => _safeDecode, - _safeDecodeAsync: () => _safeDecodeAsync, - _safeEncode: () => _safeEncode, - _safeEncodeAsync: () => _safeEncodeAsync, - _safeParse: () => _safeParse, - _safeParseAsync: () => _safeParseAsync, - _set: () => _set, - _size: () => _size, - _startsWith: () => _startsWith, - _string: () => _string, - _stringFormat: () => _stringFormat, - _stringbool: () => _stringbool, - _success: () => _success, - _superRefine: () => _superRefine, - _symbol: () => _symbol, - _templateLiteral: () => _templateLiteral, - _toLowerCase: () => _toLowerCase, - _toUpperCase: () => _toUpperCase, - _transform: () => _transform, - _trim: () => _trim, - _tuple: () => _tuple, - _uint32: () => _uint32, - _uint64: () => _uint64, - _ulid: () => _ulid, - _undefined: () => _undefined$1, - _union: () => _union, - _unknown: () => _unknown, - _uppercase: () => _uppercase, - _url: () => _url, - _uuid: () => _uuid, - _uuidv4: () => _uuidv4, - _uuidv6: () => _uuidv6, - _uuidv7: () => _uuidv7, - _void: () => _void$1, - _xid: () => _xid, - clone: () => clone, - config: () => config, - decode: () => decode$1, - decodeAsync: () => decodeAsync$1, - encode: () => encode$1, - encodeAsync: () => encodeAsync$1, - flattenError: () => flattenError, - formatError: () => formatError, - globalConfig: () => globalConfig, - globalRegistry: () => globalRegistry, - isValidBase64: () => isValidBase64, - isValidBase64URL: () => isValidBase64URL, - isValidJWT: () => isValidJWT, - locales: () => locales_exports, - parse: () => parse$1, - parseAsync: () => parseAsync$1, - prettifyError: () => prettifyError, - regexes: () => regexes_exports, - registry: () => registry, - safeDecode: () => safeDecode$1, - safeDecodeAsync: () => safeDecodeAsync$1, - safeEncode: () => safeEncode$1, - safeEncodeAsync: () => safeEncodeAsync$1, - safeParse: () => safeParse$1, - safeParseAsync: () => safeParseAsync$1, - toDotPath: () => toDotPath, - toJSONSchema: () => toJSONSchema, - treeifyError: () => treeifyError, - util: () => util_exports, - version: () => version -}); -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/iso.js -var iso_exports = /* @__PURE__ */ __exportAll({ - ZodISODate: () => ZodISODate, - ZodISODateTime: () => ZodISODateTime, - ZodISODuration: () => ZodISODuration, - ZodISOTime: () => ZodISOTime, - date: () => date$2, - datetime: () => datetime, - duration: () => duration, - time: () => time -}); -const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => { - $ZodISODateTime.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function datetime(params) { - return _isoDateTime(ZodISODateTime, params); -} -const ZodISODate = /*@__PURE__*/ $constructor("ZodISODate", (inst, def) => { - $ZodISODate.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function date$2(params) { - return _isoDate(ZodISODate, params); -} -const ZodISOTime = /*@__PURE__*/ $constructor("ZodISOTime", (inst, def) => { - $ZodISOTime.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function time(params) { - return _isoTime(ZodISOTime, params); -} -const ZodISODuration = /*@__PURE__*/ $constructor("ZodISODuration", (inst, def) => { - $ZodISODuration.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function duration(params) { - return _isoDuration(ZodISODuration, params); -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/errors.js -const initializer = (inst, issues) => { - $ZodError.init(inst, issues); - inst.name = "ZodError"; - Object.defineProperties(inst, { - format: { value: (mapper) => formatError(inst, mapper) }, - flatten: { value: (mapper) => flattenError(inst, mapper) }, - addIssue: { value: (issue) => { - inst.issues.push(issue); - inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2); - } }, - addIssues: { value: (issues) => { - inst.issues.push(...issues); - inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2); - } }, - isEmpty: { get() { - return inst.issues.length === 0; - } } - }); -}; -const ZodError = $constructor("ZodError", initializer); -const ZodRealError = $constructor("ZodError", initializer, { Parent: Error }); -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/parse.js -const parse = /* @__PURE__ */ _parse(ZodRealError); -const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError); -const safeParse = /* @__PURE__ */ _safeParse(ZodRealError); -const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError); -const encode = /* @__PURE__ */ _encode(ZodRealError); -const decode = /* @__PURE__ */ _decode(ZodRealError); -const encodeAsync = /* @__PURE__ */ _encodeAsync(ZodRealError); -const decodeAsync = /* @__PURE__ */ _decodeAsync(ZodRealError); -const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError); -const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError); -const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError); -const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError); -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/schemas.js -const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => { - $ZodType.init(inst, def); - inst.def = def; - inst.type = def.type; - Object.defineProperty(inst, "_def", { value: def }); - inst.check = (...checks) => { - return inst.clone({ - ...def, - checks: [...def.checks ?? [], ...checks.map((ch) => typeof ch === "function" ? { _zod: { - check: ch, - def: { check: "custom" }, - onattach: [] - } } : ch)] - }); - }; - inst.clone = (def, params) => clone(inst, def, params); - inst.brand = () => inst; - inst.register = ((reg, meta) => { - reg.add(inst, meta); - return inst; - }); - inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse }); - inst.safeParse = (data, params) => safeParse(inst, data, params); - inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync }); - inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params); - inst.spa = inst.safeParseAsync; - inst.encode = (data, params) => encode(inst, data, params); - inst.decode = (data, params) => decode(inst, data, params); - inst.encodeAsync = async (data, params) => encodeAsync(inst, data, params); - inst.decodeAsync = async (data, params) => decodeAsync(inst, data, params); - inst.safeEncode = (data, params) => safeEncode(inst, data, params); - inst.safeDecode = (data, params) => safeDecode(inst, data, params); - inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params); - inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params); - inst.refine = (check, params) => inst.check(refine(check, params)); - inst.superRefine = (refinement) => inst.check(superRefine(refinement)); - inst.overwrite = (fn) => inst.check(_overwrite(fn)); - inst.optional = () => optional(inst); - inst.nullable = () => nullable(inst); - inst.nullish = () => optional(nullable(inst)); - inst.nonoptional = (params) => nonoptional(inst, params); - inst.array = () => array(inst); - inst.or = (arg) => union([inst, arg]); - inst.and = (arg) => intersection(inst, arg); - inst.transform = (tx) => pipe(inst, transform(tx)); - inst.default = (def) => _default(inst, def); - inst.prefault = (def) => prefault(inst, def); - inst.catch = (params) => _catch(inst, params); - inst.pipe = (target) => pipe(inst, target); - inst.readonly = () => readonly(inst); - inst.describe = (description) => { - const cl = inst.clone(); - globalRegistry.add(cl, { description }); - return cl; - }; - Object.defineProperty(inst, "description", { - get() { - return globalRegistry.get(inst)?.description; - }, - configurable: true - }); - inst.meta = (...args) => { - if (args.length === 0) return globalRegistry.get(inst); - const cl = inst.clone(); - globalRegistry.add(cl, args[0]); - return cl; - }; - inst.isOptional = () => inst.safeParse(void 0).success; - inst.isNullable = () => inst.safeParse(null).success; - return inst; -}); -/** @internal */ -const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => { - $ZodString.init(inst, def); - ZodType.init(inst, def); - const bag = inst._zod.bag; - inst.format = bag.format ?? null; - inst.minLength = bag.minimum ?? null; - inst.maxLength = bag.maximum ?? null; - inst.regex = (...args) => inst.check(_regex(...args)); - inst.includes = (...args) => inst.check(_includes(...args)); - inst.startsWith = (...args) => inst.check(_startsWith(...args)); - inst.endsWith = (...args) => inst.check(_endsWith(...args)); - inst.min = (...args) => inst.check(_minLength(...args)); - inst.max = (...args) => inst.check(_maxLength(...args)); - inst.length = (...args) => inst.check(_length(...args)); - inst.nonempty = (...args) => inst.check(_minLength(1, ...args)); - inst.lowercase = (params) => inst.check(_lowercase(params)); - inst.uppercase = (params) => inst.check(_uppercase(params)); - inst.trim = () => inst.check(_trim()); - inst.normalize = (...args) => inst.check(_normalize(...args)); - inst.toLowerCase = () => inst.check(_toLowerCase()); - inst.toUpperCase = () => inst.check(_toUpperCase()); -}); -const ZodString = /*@__PURE__*/ $constructor("ZodString", (inst, def) => { - $ZodString.init(inst, def); - _ZodString.init(inst, def); - inst.email = (params) => inst.check(_email(ZodEmail, params)); - inst.url = (params) => inst.check(_url(ZodURL, params)); - inst.jwt = (params) => inst.check(_jwt(ZodJWT, params)); - inst.emoji = (params) => inst.check(_emoji(ZodEmoji, params)); - inst.guid = (params) => inst.check(_guid(ZodGUID, params)); - inst.uuid = (params) => inst.check(_uuid(ZodUUID, params)); - inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params)); - inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params)); - inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params)); - inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params)); - inst.guid = (params) => inst.check(_guid(ZodGUID, params)); - inst.cuid = (params) => inst.check(_cuid(ZodCUID, params)); - inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params)); - inst.ulid = (params) => inst.check(_ulid(ZodULID, params)); - inst.base64 = (params) => inst.check(_base64(ZodBase64, params)); - inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params)); - inst.xid = (params) => inst.check(_xid(ZodXID, params)); - inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params)); - inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params)); - inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params)); - inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params)); - inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params)); - inst.e164 = (params) => inst.check(_e164(ZodE164, params)); - inst.datetime = (params) => inst.check(datetime(params)); - inst.date = (params) => inst.check(date$2(params)); - inst.time = (params) => inst.check(time(params)); - inst.duration = (params) => inst.check(duration(params)); -}); -function string$1(params) { - return _string(ZodString, params); -} -const ZodStringFormat = /*@__PURE__*/ $constructor("ZodStringFormat", (inst, def) => { - $ZodStringFormat.init(inst, def); - _ZodString.init(inst, def); -}); -const ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => { - $ZodEmail.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function email(params) { - return _email(ZodEmail, params); -} -const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => { - $ZodGUID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function guid(params) { - return _guid(ZodGUID, params); -} -const ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => { - $ZodUUID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function uuid(params) { - return _uuid(ZodUUID, params); -} -function uuidv4(params) { - return _uuidv4(ZodUUID, params); -} -function uuidv6(params) { - return _uuidv6(ZodUUID, params); -} -function uuidv7(params) { - return _uuidv7(ZodUUID, params); -} -const ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => { - $ZodURL.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function url(params) { - return _url(ZodURL, params); -} -function httpUrl(params) { - return _url(ZodURL, { - protocol: /^https?$/, - hostname: domain, - ...normalizeParams(params) - }); -} -const ZodEmoji = /*@__PURE__*/ $constructor("ZodEmoji", (inst, def) => { - $ZodEmoji.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function emoji(params) { - return _emoji(ZodEmoji, params); -} -const ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => { - $ZodNanoID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function nanoid(params) { - return _nanoid(ZodNanoID, params); -} -const ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => { - $ZodCUID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function cuid(params) { - return _cuid(ZodCUID, params); -} -const ZodCUID2 = /*@__PURE__*/ $constructor("ZodCUID2", (inst, def) => { - $ZodCUID2.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function cuid2(params) { - return _cuid2(ZodCUID2, params); -} -const ZodULID = /*@__PURE__*/ $constructor("ZodULID", (inst, def) => { - $ZodULID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function ulid(params) { - return _ulid(ZodULID, params); -} -const ZodXID = /*@__PURE__*/ $constructor("ZodXID", (inst, def) => { - $ZodXID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function xid(params) { - return _xid(ZodXID, params); -} -const ZodKSUID = /*@__PURE__*/ $constructor("ZodKSUID", (inst, def) => { - $ZodKSUID.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function ksuid(params) { - return _ksuid(ZodKSUID, params); -} -const ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => { - $ZodIPv4.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function ipv4(params) { - return _ipv4(ZodIPv4, params); -} -const ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => { - $ZodIPv6.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function ipv6(params) { - return _ipv6(ZodIPv6, params); -} -const ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => { - $ZodCIDRv4.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function cidrv4(params) { - return _cidrv4(ZodCIDRv4, params); -} -const ZodCIDRv6 = /*@__PURE__*/ $constructor("ZodCIDRv6", (inst, def) => { - $ZodCIDRv6.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function cidrv6(params) { - return _cidrv6(ZodCIDRv6, params); -} -const ZodBase64 = /*@__PURE__*/ $constructor("ZodBase64", (inst, def) => { - $ZodBase64.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function base64(params) { - return _base64(ZodBase64, params); -} -const ZodBase64URL = /*@__PURE__*/ $constructor("ZodBase64URL", (inst, def) => { - $ZodBase64URL.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function base64url(params) { - return _base64url(ZodBase64URL, params); -} -const ZodE164 = /*@__PURE__*/ $constructor("ZodE164", (inst, def) => { - $ZodE164.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function e164(params) { - return _e164(ZodE164, params); -} -const ZodJWT = /*@__PURE__*/ $constructor("ZodJWT", (inst, def) => { - $ZodJWT.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function jwt(params) { - return _jwt(ZodJWT, params); -} -const ZodCustomStringFormat = /*@__PURE__*/ $constructor("ZodCustomStringFormat", (inst, def) => { - $ZodCustomStringFormat.init(inst, def); - ZodStringFormat.init(inst, def); -}); -function stringFormat(format, fnOrRegex, _params = {}) { - return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params); -} -function hostname(_params) { - return _stringFormat(ZodCustomStringFormat, "hostname", hostname$1, _params); -} -function hex(_params) { - return _stringFormat(ZodCustomStringFormat, "hex", hex$1, _params); -} -function hash(alg, params) { - const format = `${alg}_${params?.enc ?? "hex"}`; - const regex = regexes_exports[format]; - if (!regex) throw new Error(`Unrecognized hash format: ${format}`); - return _stringFormat(ZodCustomStringFormat, format, regex, params); -} -const ZodNumber = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => { - $ZodNumber.init(inst, def); - ZodType.init(inst, def); - inst.gt = (value, params) => inst.check(_gt(value, params)); - inst.gte = (value, params) => inst.check(_gte(value, params)); - inst.min = (value, params) => inst.check(_gte(value, params)); - inst.lt = (value, params) => inst.check(_lt(value, params)); - inst.lte = (value, params) => inst.check(_lte(value, params)); - inst.max = (value, params) => inst.check(_lte(value, params)); - inst.int = (params) => inst.check(int(params)); - inst.safe = (params) => inst.check(int(params)); - inst.positive = (params) => inst.check(_gt(0, params)); - inst.nonnegative = (params) => inst.check(_gte(0, params)); - inst.negative = (params) => inst.check(_lt(0, params)); - inst.nonpositive = (params) => inst.check(_lte(0, params)); - inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params)); - inst.step = (value, params) => inst.check(_multipleOf(value, params)); - inst.finite = () => inst; - const bag = inst._zod.bag; - inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null; - inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null; - inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? .5); - inst.isFinite = true; - inst.format = bag.format ?? null; -}); -function number$1(params) { - return _number(ZodNumber, params); -} -const ZodNumberFormat = /*@__PURE__*/ $constructor("ZodNumberFormat", (inst, def) => { - $ZodNumberFormat.init(inst, def); - ZodNumber.init(inst, def); -}); -function int(params) { - return _int(ZodNumberFormat, params); -} -function float32(params) { - return _float32(ZodNumberFormat, params); -} -function float64(params) { - return _float64(ZodNumberFormat, params); -} -function int32(params) { - return _int32(ZodNumberFormat, params); -} -function uint32(params) { - return _uint32(ZodNumberFormat, params); -} -const ZodBoolean = /*@__PURE__*/ $constructor("ZodBoolean", (inst, def) => { - $ZodBoolean.init(inst, def); - ZodType.init(inst, def); -}); -function boolean$1(params) { - return _boolean(ZodBoolean, params); -} -const ZodBigInt = /*@__PURE__*/ $constructor("ZodBigInt", (inst, def) => { - $ZodBigInt.init(inst, def); - ZodType.init(inst, def); - inst.gte = (value, params) => inst.check(_gte(value, params)); - inst.min = (value, params) => inst.check(_gte(value, params)); - inst.gt = (value, params) => inst.check(_gt(value, params)); - inst.gte = (value, params) => inst.check(_gte(value, params)); - inst.min = (value, params) => inst.check(_gte(value, params)); - inst.lt = (value, params) => inst.check(_lt(value, params)); - inst.lte = (value, params) => inst.check(_lte(value, params)); - inst.max = (value, params) => inst.check(_lte(value, params)); - inst.positive = (params) => inst.check(_gt(BigInt(0), params)); - inst.negative = (params) => inst.check(_lt(BigInt(0), params)); - inst.nonpositive = (params) => inst.check(_lte(BigInt(0), params)); - inst.nonnegative = (params) => inst.check(_gte(BigInt(0), params)); - inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params)); - const bag = inst._zod.bag; - inst.minValue = bag.minimum ?? null; - inst.maxValue = bag.maximum ?? null; - inst.format = bag.format ?? null; -}); -function bigint$1(params) { - return _bigint(ZodBigInt, params); -} -const ZodBigIntFormat = /*@__PURE__*/ $constructor("ZodBigIntFormat", (inst, def) => { - $ZodBigIntFormat.init(inst, def); - ZodBigInt.init(inst, def); -}); -function int64(params) { - return _int64(ZodBigIntFormat, params); -} -function uint64(params) { - return _uint64(ZodBigIntFormat, params); -} -const ZodSymbol = /*@__PURE__*/ $constructor("ZodSymbol", (inst, def) => { - $ZodSymbol.init(inst, def); - ZodType.init(inst, def); -}); -function symbol(params) { - return _symbol(ZodSymbol, params); -} -const ZodUndefined = /*@__PURE__*/ $constructor("ZodUndefined", (inst, def) => { - $ZodUndefined.init(inst, def); - ZodType.init(inst, def); -}); -function _undefined(params) { - return _undefined$1(ZodUndefined, params); -} -const ZodNull = /*@__PURE__*/ $constructor("ZodNull", (inst, def) => { - $ZodNull.init(inst, def); - ZodType.init(inst, def); -}); -function _null(params) { - return _null$1(ZodNull, params); -} -const ZodAny = /*@__PURE__*/ $constructor("ZodAny", (inst, def) => { - $ZodAny.init(inst, def); - ZodType.init(inst, def); -}); -function any() { - return _any(ZodAny); -} -const ZodUnknown = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => { - $ZodUnknown.init(inst, def); - ZodType.init(inst, def); -}); -function unknown() { - return _unknown(ZodUnknown); -} -const ZodNever = /*@__PURE__*/ $constructor("ZodNever", (inst, def) => { - $ZodNever.init(inst, def); - ZodType.init(inst, def); -}); -function never(params) { - return _never(ZodNever, params); -} -const ZodVoid = /*@__PURE__*/ $constructor("ZodVoid", (inst, def) => { - $ZodVoid.init(inst, def); - ZodType.init(inst, def); -}); -function _void(params) { - return _void$1(ZodVoid, params); -} -const ZodDate = /*@__PURE__*/ $constructor("ZodDate", (inst, def) => { - $ZodDate.init(inst, def); - ZodType.init(inst, def); - inst.min = (value, params) => inst.check(_gte(value, params)); - inst.max = (value, params) => inst.check(_lte(value, params)); - const c = inst._zod.bag; - inst.minDate = c.minimum ? new Date(c.minimum) : null; - inst.maxDate = c.maximum ? new Date(c.maximum) : null; -}); -function date$1(params) { - return _date(ZodDate, params); -} -const ZodArray = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => { - $ZodArray.init(inst, def); - ZodType.init(inst, def); - inst.element = def.element; - inst.min = (minLength, params) => inst.check(_minLength(minLength, params)); - inst.nonempty = (params) => inst.check(_minLength(1, params)); - inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params)); - inst.length = (len, params) => inst.check(_length(len, params)); - inst.unwrap = () => inst.element; -}); -function array(element, params) { - return _array(ZodArray, element, params); -} -function keyof(schema) { - const shape = schema._zod.def.shape; - return _enum(Object.keys(shape)); -} -const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => { - $ZodObjectJIT.init(inst, def); - ZodType.init(inst, def); - defineLazy(inst, "shape", () => def.shape); - inst.keyof = () => _enum(Object.keys(inst._zod.def.shape)); - inst.catchall = (catchall) => inst.clone({ - ...inst._zod.def, - catchall - }); - inst.passthrough = () => inst.clone({ - ...inst._zod.def, - catchall: unknown() - }); - inst.loose = () => inst.clone({ - ...inst._zod.def, - catchall: unknown() - }); - inst.strict = () => inst.clone({ - ...inst._zod.def, - catchall: never() - }); - inst.strip = () => inst.clone({ - ...inst._zod.def, - catchall: void 0 - }); - inst.extend = (incoming) => { - return extend(inst, incoming); - }; - inst.safeExtend = (incoming) => { - return safeExtend(inst, incoming); - }; - inst.merge = (other) => merge(inst, other); - inst.pick = (mask) => pick(inst, mask); - inst.omit = (mask) => omit(inst, mask); - inst.partial = (...args) => partial(ZodOptional, inst, args[0]); - inst.required = (...args) => required(ZodNonOptional, inst, args[0]); -}); -function object(shape, params) { - const def = { - type: "object", - get shape() { - assignProp(this, "shape", shape ? objectClone(shape) : {}); - return this.shape; - }, - ...normalizeParams(params) - }; - return new ZodObject(def); -} -function strictObject(shape, params) { - return new ZodObject({ - type: "object", - get shape() { - assignProp(this, "shape", objectClone(shape)); - return this.shape; - }, - catchall: never(), - ...normalizeParams(params) - }); -} -function looseObject(shape, params) { - return new ZodObject({ - type: "object", - get shape() { - assignProp(this, "shape", objectClone(shape)); - return this.shape; - }, - catchall: unknown(), - ...normalizeParams(params) - }); -} -const ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => { - $ZodUnion.init(inst, def); - ZodType.init(inst, def); - inst.options = def.options; -}); -function union(options, params) { - return new ZodUnion({ - type: "union", - options, - ...normalizeParams(params) - }); -} -const ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (inst, def) => { - ZodUnion.init(inst, def); - $ZodDiscriminatedUnion.init(inst, def); -}); -function discriminatedUnion(discriminator, options, params) { - return new ZodDiscriminatedUnion({ - type: "union", - options, - discriminator, - ...normalizeParams(params) - }); -} -const ZodIntersection = /*@__PURE__*/ $constructor("ZodIntersection", (inst, def) => { - $ZodIntersection.init(inst, def); - ZodType.init(inst, def); -}); -function intersection(left, right) { - return new ZodIntersection({ - type: "intersection", - left, - right - }); -} -const ZodTuple = /*@__PURE__*/ $constructor("ZodTuple", (inst, def) => { - $ZodTuple.init(inst, def); - ZodType.init(inst, def); - inst.rest = (rest) => inst.clone({ - ...inst._zod.def, - rest - }); -}); -function tuple(items, _paramsOrRest, _params) { - const hasRest = _paramsOrRest instanceof $ZodType; - return new ZodTuple({ - type: "tuple", - items, - rest: hasRest ? _paramsOrRest : null, - ...normalizeParams(hasRest ? _params : _paramsOrRest) - }); -} -const ZodRecord = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => { - $ZodRecord.init(inst, def); - ZodType.init(inst, def); - inst.keyType = def.keyType; - inst.valueType = def.valueType; -}); -function record(keyType, valueType, params) { - return new ZodRecord({ - type: "record", - keyType, - valueType, - ...normalizeParams(params) - }); -} -function partialRecord(keyType, valueType, params) { - const k = clone(keyType); - k._zod.values = void 0; - return new ZodRecord({ - type: "record", - keyType: k, - valueType, - ...normalizeParams(params) - }); -} -const ZodMap = /*@__PURE__*/ $constructor("ZodMap", (inst, def) => { - $ZodMap.init(inst, def); - ZodType.init(inst, def); - inst.keyType = def.keyType; - inst.valueType = def.valueType; -}); -function map(keyType, valueType, params) { - return new ZodMap({ - type: "map", - keyType, - valueType, - ...normalizeParams(params) - }); -} -const ZodSet = /*@__PURE__*/ $constructor("ZodSet", (inst, def) => { - $ZodSet.init(inst, def); - ZodType.init(inst, def); - inst.min = (...args) => inst.check(_minSize(...args)); - inst.nonempty = (params) => inst.check(_minSize(1, params)); - inst.max = (...args) => inst.check(_maxSize(...args)); - inst.size = (...args) => inst.check(_size(...args)); -}); -function set(valueType, params) { - return new ZodSet({ - type: "set", - valueType, - ...normalizeParams(params) - }); -} -const ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => { - $ZodEnum.init(inst, def); - ZodType.init(inst, def); - inst.enum = def.entries; - inst.options = Object.values(def.entries); - const keys = new Set(Object.keys(def.entries)); - inst.extract = (values, params) => { - const newEntries = {}; - for (const value of values) if (keys.has(value)) newEntries[value] = def.entries[value]; - else throw new Error(`Key ${value} not found in enum`); - return new ZodEnum({ - ...def, - checks: [], - ...normalizeParams(params), - entries: newEntries - }); - }; - inst.exclude = (values, params) => { - const newEntries = { ...def.entries }; - for (const value of values) if (keys.has(value)) delete newEntries[value]; - else throw new Error(`Key ${value} not found in enum`); - return new ZodEnum({ - ...def, - checks: [], - ...normalizeParams(params), - entries: newEntries - }); - }; -}); -function _enum(values, params) { - const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values; - return new ZodEnum({ - type: "enum", - entries, - ...normalizeParams(params) - }); -} -/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead. -* -* ```ts -* enum Colors { red, green, blue } -* z.enum(Colors); -* ``` -*/ -function nativeEnum(entries, params) { - return new ZodEnum({ - type: "enum", - entries, - ...normalizeParams(params) - }); -} -const ZodLiteral = /*@__PURE__*/ $constructor("ZodLiteral", (inst, def) => { - $ZodLiteral.init(inst, def); - ZodType.init(inst, def); - inst.values = new Set(def.values); - Object.defineProperty(inst, "value", { get() { - if (def.values.length > 1) throw new Error("This schema contains multiple valid literal values. Use `.values` instead."); - return def.values[0]; - } }); -}); -function literal(value, params) { - return new ZodLiteral({ - type: "literal", - values: Array.isArray(value) ? value : [value], - ...normalizeParams(params) - }); -} -const ZodFile = /*@__PURE__*/ $constructor("ZodFile", (inst, def) => { - $ZodFile.init(inst, def); - ZodType.init(inst, def); - inst.min = (size, params) => inst.check(_minSize(size, params)); - inst.max = (size, params) => inst.check(_maxSize(size, params)); - inst.mime = (types, params) => inst.check(_mime(Array.isArray(types) ? types : [types], params)); -}); -function file(params) { - return _file(ZodFile, params); -} -const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => { - $ZodTransform.init(inst, def); - ZodType.init(inst, def); - inst._zod.parse = (payload, _ctx) => { - if (_ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name); - payload.addIssue = (issue$1) => { - if (typeof issue$1 === "string") payload.issues.push(issue(issue$1, payload.value, def)); - else { - const _issue = issue$1; - if (_issue.fatal) _issue.continue = false; - _issue.code ?? (_issue.code = "custom"); - _issue.input ?? (_issue.input = payload.value); - _issue.inst ?? (_issue.inst = inst); - payload.issues.push(issue(_issue)); - } - }; - const output = def.transform(payload.value, payload); - if (output instanceof Promise) return output.then((output) => { - payload.value = output; - return payload; - }); - payload.value = output; - return payload; - }; -}); -function transform(fn) { - return new ZodTransform({ - type: "transform", - transform: fn - }); -} -const ZodOptional = /*@__PURE__*/ $constructor("ZodOptional", (inst, def) => { - $ZodOptional.init(inst, def); - ZodType.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; -}); -function optional(innerType) { - return new ZodOptional({ - type: "optional", - innerType - }); -} -const ZodNullable = /*@__PURE__*/ $constructor("ZodNullable", (inst, def) => { - $ZodNullable.init(inst, def); - ZodType.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; -}); -function nullable(innerType) { - return new ZodNullable({ - type: "nullable", - innerType - }); -} -function nullish(innerType) { - return optional(nullable(innerType)); -} -const ZodDefault = /*@__PURE__*/ $constructor("ZodDefault", (inst, def) => { - $ZodDefault.init(inst, def); - ZodType.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; - inst.removeDefault = inst.unwrap; -}); -function _default(innerType, defaultValue) { - return new ZodDefault({ - type: "default", - innerType, - get defaultValue() { - return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue); - } - }); -} -const ZodPrefault = /*@__PURE__*/ $constructor("ZodPrefault", (inst, def) => { - $ZodPrefault.init(inst, def); - ZodType.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; -}); -function prefault(innerType, defaultValue) { - return new ZodPrefault({ - type: "prefault", - innerType, - get defaultValue() { - return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue); - } - }); -} -const ZodNonOptional = /*@__PURE__*/ $constructor("ZodNonOptional", (inst, def) => { - $ZodNonOptional.init(inst, def); - ZodType.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; -}); -function nonoptional(innerType, params) { - return new ZodNonOptional({ - type: "nonoptional", - innerType, - ...normalizeParams(params) - }); -} -const ZodSuccess = /*@__PURE__*/ $constructor("ZodSuccess", (inst, def) => { - $ZodSuccess.init(inst, def); - ZodType.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; -}); -function success(innerType) { - return new ZodSuccess({ - type: "success", - innerType - }); -} -const ZodCatch = /*@__PURE__*/ $constructor("ZodCatch", (inst, def) => { - $ZodCatch.init(inst, def); - ZodType.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; - inst.removeCatch = inst.unwrap; -}); -function _catch(innerType, catchValue) { - return new ZodCatch({ - type: "catch", - innerType, - catchValue: typeof catchValue === "function" ? catchValue : () => catchValue - }); -} -const ZodNaN = /*@__PURE__*/ $constructor("ZodNaN", (inst, def) => { - $ZodNaN.init(inst, def); - ZodType.init(inst, def); -}); -function nan(params) { - return _nan(ZodNaN, params); -} -const ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => { - $ZodPipe.init(inst, def); - ZodType.init(inst, def); - inst.in = def.in; - inst.out = def.out; -}); -function pipe(in_, out) { - return new ZodPipe({ - type: "pipe", - in: in_, - out - }); -} -const ZodCodec = /*@__PURE__*/ $constructor("ZodCodec", (inst, def) => { - ZodPipe.init(inst, def); - $ZodCodec.init(inst, def); -}); -function codec(in_, out, params) { - return new ZodCodec({ - type: "pipe", - in: in_, - out, - transform: params.decode, - reverseTransform: params.encode - }); -} -const ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => { - $ZodReadonly.init(inst, def); - ZodType.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; -}); -function readonly(innerType) { - return new ZodReadonly({ - type: "readonly", - innerType - }); -} -const ZodTemplateLiteral = /*@__PURE__*/ $constructor("ZodTemplateLiteral", (inst, def) => { - $ZodTemplateLiteral.init(inst, def); - ZodType.init(inst, def); -}); -function templateLiteral(parts, params) { - return new ZodTemplateLiteral({ - type: "template_literal", - parts, - ...normalizeParams(params) - }); -} -const ZodLazy = /*@__PURE__*/ $constructor("ZodLazy", (inst, def) => { - $ZodLazy.init(inst, def); - ZodType.init(inst, def); - inst.unwrap = () => inst._zod.def.getter(); -}); -function lazy(getter) { - return new ZodLazy({ - type: "lazy", - getter - }); -} -const ZodPromise = /*@__PURE__*/ $constructor("ZodPromise", (inst, def) => { - $ZodPromise.init(inst, def); - ZodType.init(inst, def); - inst.unwrap = () => inst._zod.def.innerType; -}); -function promise(innerType) { - return new ZodPromise({ - type: "promise", - innerType - }); -} -const ZodFunction = /*@__PURE__*/ $constructor("ZodFunction", (inst, def) => { - $ZodFunction.init(inst, def); - ZodType.init(inst, def); -}); -function _function(params) { - return new ZodFunction({ - type: "function", - input: Array.isArray(params?.input) ? tuple(params?.input) : params?.input ?? array(unknown()), - output: params?.output ?? unknown() - }); -} -const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => { - $ZodCustom.init(inst, def); - ZodType.init(inst, def); -}); -function check(fn) { - const ch = new $ZodCheck({ check: "custom" }); - ch._zod.check = fn; - return ch; -} -function custom(fn, _params) { - return _custom(ZodCustom, fn ?? (() => true), _params); -} -function refine(fn, _params = {}) { - return _refine(ZodCustom, fn, _params); -} -function superRefine(fn) { - return _superRefine(fn); -} -function _instanceof(cls, params = { error: `Input not instance of ${cls.name}` }) { - const inst = new ZodCustom({ - type: "custom", - check: "custom", - fn: (data) => data instanceof cls, - abort: true, - ...normalizeParams(params) - }); - inst._zod.bag.Class = cls; - return inst; -} -const stringbool = (...args) => _stringbool({ - Codec: ZodCodec, - Boolean: ZodBoolean, - String: ZodString -}, ...args); -function json(params) { - const jsonSchema = lazy(() => { - return union([ - string$1(params), - number$1(), - boolean$1(), - _null(), - array(jsonSchema), - record(string$1(), jsonSchema) - ]); - }); - return jsonSchema; -} -function preprocess(fn, schema) { - return pipe(transform(fn), schema); -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/compat.js -/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */ -const ZodIssueCode = { - invalid_type: "invalid_type", - too_big: "too_big", - too_small: "too_small", - invalid_format: "invalid_format", - not_multiple_of: "not_multiple_of", - unrecognized_keys: "unrecognized_keys", - invalid_union: "invalid_union", - invalid_key: "invalid_key", - invalid_element: "invalid_element", - invalid_value: "invalid_value", - custom: "custom" -}; -/** @deprecated Use `z.config(params)` instead. */ -function setErrorMap(map) { - config({ customError: map }); -} -/** @deprecated Use `z.config()` instead. */ -function getErrorMap() { - return config().customError; -} -/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */ -var ZodFirstPartyTypeKind; -ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}); -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/coerce.js -var coerce_exports = /* @__PURE__ */ __exportAll({ - bigint: () => bigint, - boolean: () => boolean, - date: () => date, - number: () => number, - string: () => string -}); -function string(params) { - return _coercedString(ZodString, params); -} -function number(params) { - return _coercedNumber(ZodNumber, params); -} -function boolean(params) { - return _coercedBoolean(ZodBoolean, params); -} -function bigint(params) { - return _coercedBigint(ZodBigInt, params); -} -function date(params) { - return _coercedDate(ZodDate, params); -} -//#endregion -//#region node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/classic/external.js -var external_exports = /* @__PURE__ */ __exportAll({ - $brand: () => $brand, - $input: () => $input, - $output: () => $output, - NEVER: () => NEVER, - TimePrecision: () => TimePrecision, - ZodAny: () => ZodAny, - ZodArray: () => ZodArray, - ZodBase64: () => ZodBase64, - ZodBase64URL: () => ZodBase64URL, - ZodBigInt: () => ZodBigInt, - ZodBigIntFormat: () => ZodBigIntFormat, - ZodBoolean: () => ZodBoolean, - ZodCIDRv4: () => ZodCIDRv4, - ZodCIDRv6: () => ZodCIDRv6, - ZodCUID: () => ZodCUID, - ZodCUID2: () => ZodCUID2, - ZodCatch: () => ZodCatch, - ZodCodec: () => ZodCodec, - ZodCustom: () => ZodCustom, - ZodCustomStringFormat: () => ZodCustomStringFormat, - ZodDate: () => ZodDate, - ZodDefault: () => ZodDefault, - ZodDiscriminatedUnion: () => ZodDiscriminatedUnion, - ZodE164: () => ZodE164, - ZodEmail: () => ZodEmail, - ZodEmoji: () => ZodEmoji, - ZodEnum: () => ZodEnum, - ZodError: () => ZodError, - ZodFile: () => ZodFile, - ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind, - ZodFunction: () => ZodFunction, - ZodGUID: () => ZodGUID, - ZodIPv4: () => ZodIPv4, - ZodIPv6: () => ZodIPv6, - ZodISODate: () => ZodISODate, - ZodISODateTime: () => ZodISODateTime, - ZodISODuration: () => ZodISODuration, - ZodISOTime: () => ZodISOTime, - ZodIntersection: () => ZodIntersection, - ZodIssueCode: () => ZodIssueCode, - 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, - 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, - _ZodString: () => _ZodString, - _default: () => _default, - _function: () => _function, - any: () => any, - array: () => array, - base64: () => base64, - base64url: () => base64url, - bigint: () => bigint$1, - boolean: () => boolean$1, - catch: () => _catch, - check: () => check, - cidrv4: () => cidrv4, - cidrv6: () => cidrv6, - clone: () => clone, - codec: () => codec, - coerce: () => coerce_exports, - config: () => config, - core: () => core_exports, - cuid: () => cuid, - cuid2: () => cuid2, - custom: () => custom, - date: () => date$1, - decode: () => decode, - decodeAsync: () => decodeAsync, - discriminatedUnion: () => discriminatedUnion, - e164: () => e164, - email: () => email, - emoji: () => emoji, - encode: () => encode, - encodeAsync: () => encodeAsync, - endsWith: () => _endsWith, - enum: () => _enum, - file: () => file, - flattenError: () => flattenError, - float32: () => float32, - float64: () => float64, - formatError: () => formatError, - function: () => _function, - getErrorMap: () => getErrorMap, - globalRegistry: () => globalRegistry, - gt: () => _gt, - gte: () => _gte, - guid: () => guid, - hash: () => hash, - hex: () => hex, - hostname: () => hostname, - httpUrl: () => httpUrl, - includes: () => _includes, - instanceof: () => _instanceof, - int: () => int, - int32: () => int32, - int64: () => int64, - intersection: () => intersection, - ipv4: () => ipv4, - ipv6: () => ipv6, - iso: () => iso_exports, - json: () => json, - jwt: () => jwt, - keyof: () => keyof, - ksuid: () => ksuid, - lazy: () => lazy, - length: () => _length, - literal: () => literal, - locales: () => locales_exports, - looseObject: () => looseObject, - lowercase: () => _lowercase, - lt: () => _lt, - lte: () => _lte, - map: () => map, - maxLength: () => _maxLength, - maxSize: () => _maxSize, - mime: () => _mime, - 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: () => _null, - nullable: () => nullable, - nullish: () => nullish, - number: () => number$1, - object: () => object, - optional: () => optional, - overwrite: () => _overwrite, - parse: () => parse, - parseAsync: () => parseAsync, - partialRecord: () => partialRecord, - pipe: () => pipe, - positive: () => _positive, - prefault: () => prefault, - preprocess: () => preprocess, - prettifyError: () => prettifyError, - promise: () => promise, - property: () => _property, - readonly: () => readonly, - record: () => record, - refine: () => refine, - regex: () => _regex, - regexes: () => regexes_exports, - registry: () => registry, - safeDecode: () => safeDecode, - safeDecodeAsync: () => safeDecodeAsync, - safeEncode: () => safeEncode, - safeEncodeAsync: () => safeEncodeAsync, - safeParse: () => safeParse, - safeParseAsync: () => safeParseAsync, - set: () => set, - setErrorMap: () => setErrorMap, - size: () => _size, - startsWith: () => _startsWith, - strictObject: () => strictObject, - string: () => string$1, - stringFormat: () => stringFormat, - stringbool: () => stringbool, - success: () => success, - superRefine: () => superRefine, - symbol: () => symbol, - templateLiteral: () => templateLiteral, - toJSONSchema: () => toJSONSchema, - toLowerCase: () => _toLowerCase, - toUpperCase: () => _toUpperCase, - transform: () => transform, - treeifyError: () => treeifyError, - trim: () => _trim, - tuple: () => tuple, - uint32: () => uint32, - uint64: () => uint64, - ulid: () => ulid, - undefined: () => _undefined, - union: () => union, - unknown: () => unknown, - uppercase: () => _uppercase, - url: () => url, - util: () => util_exports, - uuid: () => uuid, - uuidv4: () => uuidv4, - uuidv6: () => uuidv6, - uuidv7: () => uuidv7, - void: () => _void, - xid: () => xid -}); -config(en_default()); -//#endregion -//#region node_modules/.pnpm/@opencode-ai+plugin@1.17.13/node_modules/@opencode-ai/plugin/dist/tool.js -function tool(input) { - return input; -} -tool.schema = external_exports; +import { Plugin } from "@opencode/plugin"; const defaults = { enabled: true, quiet: false, @@ -11206,12 +75,16 @@ const parseConfig = (options) => { }; //#endregion //#region src/index.ts -const z = tool.schema; const serviceName = "opencode-adaptive-thinking"; const maxSessionStateSize = 5e3; const stateTtlMs = 10080 * 60 * 1e3; -const historyLimit = 20; const classifierTimeout = 5e3; +const idleEvents = [ + "session.execution.succeeded", + "session.execution.failed", + "session.execution.interrupted" +]; +const trackedEvents = ["session.deleted", ...idleEvents]; var SessionStateCache = class { maxSize; entries = /* @__PURE__ */ new Map(); @@ -11245,274 +118,437 @@ var SessionStateCache = class { } }; const state = new SessionStateCache(maxSessionStateSize); -const AdaptiveThinkingPlugin = async ({ client }, options) => { - const logError = (message, error) => client.app.log({ body: { - service: serviceName, - level: "error", - message: `${message}: ${JSON.stringify(error)}` - } }); - const parsed = parseConfig(options); - if ("error" in parsed) { - if (options?.quiet !== true) client.tui.showToast({ body: { - variant: "error", - message: "Invalid Adaptive Thinking plugin configuration, see logs for details" - } }); - logError("Invalid Adaptive Thinking plugin configuration", parsed.error); - return {}; +const describe = (error) => { + if (error instanceof Error) return `${error.name}: ${error.message}`; + try { + return JSON.stringify(error) ?? String(error); + } catch { + return String(error); + } +}; +const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value); +const requestRuntimeKeys = /* @__PURE__ */ new Set([ + "apiKey", + "authToken", + "accessToken", + "baseURL", + "body", + "chunkTimeout", + "compaction", + "disabled", + "encoding", + "fetch", + "headerTimeout", + "headers", + "timeout", + "transport" +]); +const unsafeKeys = /* @__PURE__ */ new Set([ + "__proto__", + "constructor", + "prototype" +]); +const isUnsafeKey = (key) => unsafeKeys.has(key); +const mergeRecords = (target, source) => { + const result = { ...target }; + for (const [key, value] of Object.entries(source)) { + if (isUnsafeKey(key)) continue; + const current = result[key]; + result[key] = isRecord(current) && isRecord(value) ? mergeRecords(current, value) : value; } - const config = parsed.config; - if (!config.enabled) return {}; - const classifierSessions = /* @__PURE__ */ new Set(); - let classifierWarned = false; - const warnClassifier = (message, error) => { - if (classifierWarned) return; - classifierWarned = true; - client.app.log({ body: { - service: serviceName, - level: "warn", - message: error === void 0 ? message : `${message}: ${JSON.stringify(error)}` - } }); - }; - const promptText = (parts) => { - if (parts.some((part) => part.type === "text" && (part.ignored || part.synthetic))) return; - const text = parts.filter((part) => part.type === "text").map((part) => part.text).join("\n").trim(); - return text.length > 0 ? text : void 0; - }; - const getModelVariants = (model) => { - const variants = model?.variants; - return Object.keys(variants ?? {}); - }; - let providers; - const variantsFor = async (model) => { - if (!providers) { - const response = await client.provider.list(); - if (response.error) { - logError("Failed to retrieve providers", response.error); - return []; - } - providers = response.data?.all ?? []; - } - const provider = providers.find((candidate) => candidate.id === model.providerID); - return getModelVariants(provider?.models[model.modelID]); - }; - const fetchMessages = async (sessionID) => { - const response = await client.session.messages({ - path: { id: sessionID }, - query: { limit: historyLimit } - }); - if (response.error) { - logError(`Failed to retrieve messages for session ${sessionID}`, response.error); - return; - } - return response.data ?? []; - }; - const modelOf = (info) => "model" in info ? { - providerID: info.model.providerID, - modelID: info.model.modelID - } : { - providerID: info.providerID, - modelID: info.modelID - }; - const latestModel = (messages) => { - const last = messages.at(-1)?.info; - return last ? modelOf(last) : void 0; - }; - const latestVariant = async (messages) => { - let agent; - for (let i = messages.length - 1; i >= 0; i--) { - const info = messages[i].info; - const variant = "model" in info ? info.model.variant : info.variant; - if (variant) return variant; - agent ??= info.agent; - } - if (!agent) return; - const response = await client.app.agents(); - if (response.error) { - logError("Failed to retrieve agents", response.error); + return result; +}; +const AdaptiveThinkingPlugin = Plugin.define({ + id: serviceName, + async setup(ctx) { + const recordDiagnostic = (level, message, error) => { + const text = error === void 0 ? message : `${message}: ${describe(error)}`; + try { + ctx.storage.set("lastDiagnostic", { + at: (/* @__PURE__ */ new Date()).toISOString(), + level, + message: text + }).catch(() => {}); + } catch {} + }; + const logError = (message, error) => { + console.error(`[${serviceName}] ${message}: ${describe(error)}`); + recordDiagnostic("error", message, error); + }; + const logWarn = (message, error) => { + console.warn(error === void 0 ? `[${serviceName}] ${message}` : `[${serviceName}] ${message}: ${describe(error)}`); + recordDiagnostic("warn", message, error); + }; + const options = ctx.options ?? {}; + const parsed = parseConfig(ctx.options); + if ("error" in parsed) { + if (options.quiet !== true) console.error(`[${serviceName}] Invalid Adaptive Thinking plugin configuration, see the server output for details`); + logError("Invalid Adaptive Thinking plugin configuration", parsed.error); return; } - return (response.data?.find((candidate) => candidate.name === agent))?.variant; - }; - const messageText = (message, includeSynthetic = false) => message.parts.map((part) => part.type === "text" && !part.ignored && (includeSynthetic || !part.synthetic) ? part.text : "").filter(Boolean).join("\n").trim(); - const latestSummary = (messages) => { - for (let i = messages.length - 1; i >= 0; i--) { - const info = messages[i].info; - if (info.role === "assistant" && info.summary === true) { - const text = messageText(messages[i], true); - if (text) return text; + const config = parsed.config; + if (!config.enabled) return; + let classifierWarned = false; + const warnClassifier = (message, error) => { + if (classifierWarned) { + recordDiagnostic("warn", message, error); + return; } - } - }; - const buildContext = async (sessionID) => { - const response = await client.session.messages({ path: { id: sessionID } }); - if (response.error) return ""; - const messages = response.data ?? []; - const summary = latestSummary(messages); - if (summary) return summary; - const since = state.get(sessionID)?.lastIdleAt ?? 0; - return messages.filter((message) => !since || message.info.time.created >= since).map((message) => { - const text = messageText(message); - return text ? `${message.info.role}: ${text}` : ""; - }).filter(Boolean).join("\n"); - }; - const classifyWithModel = async (parentID, text, variants, model, current, context) => { - const created = await (async () => { + classifierWarned = true; + logWarn(message, error); + }; + let switchWarned = false; + const warnSwitch = (message, error) => { + if (switchWarned) { + recordDiagnostic("error", message, error); + return; + } + switchWarned = true; + logError(message, error); + }; + let requestWarned = false; + const warnRequest = (message, error) => { + if (requestWarned) { + recordDiagnostic("warn", message, error); + return; + } + requestWarned = true; + logWarn(message, error); + }; + const generateText = ctx.experimental?.generate?.text ?? ctx.generate.text; + let models; + const modelRecords = async () => { + if (models) return models; + try { + const response = await ctx.model.list(); + if (!Array.isArray(response?.data)) { + logError("Failed to retrieve providers", "the provider list is not an array"); + return; + } + models = response.data.filter((record) => record !== null && typeof record === "object"); + return models; + } catch (error) { + logError("Failed to retrieve providers", error); + return; + } + }; + const modelRecord = async (model) => { + return (await modelRecords())?.find((candidate) => candidate.providerID === model.providerID && (candidate.modelID === model.modelID || candidate.id === model.modelID)); + }; + const variantRecord = async (model, level) => { + const record = await modelRecord(model); + return Array.isArray(record?.variants) ? record.variants.find((variant) => variant?.id === level) : void 0; + }; + const variantsFor = async (model) => { + const record = await modelRecord(model); + return (Array.isArray(record?.variants) ? record.variants : []).map((variant) => variant?.id).filter((id) => typeof id === "string"); + }; + const isSelectable = (variant, variants) => variant !== void 0 && (variants.includes(variant) || variant === "default"); + const fetchMessages = async (sessionID) => { try { - return await client.session.create({ body: { - parentID, - title: "Reasoning effort classifier" - } }); - } catch { + const messages = await ctx.session.context({ sessionID }); + if (!Array.isArray(messages)) { + logError(`Failed to retrieve messages for session ${sessionID}`, "the session context is not an array"); + return; + } + return messages; + } catch (error) { + logError(`Failed to retrieve messages for session ${sessionID}`, error); return; } - })(); - if (!created || created.error || !created.data) { - warnClassifier("Failed to create the classifier session", created?.error); - return; - } - const id = created.data.id; - classifierSessions.add(id); - try { + }; + const fetchSession = async (sessionID) => { + try { + return await ctx.session.get({ sessionID }); + } catch (error) { + logError(`Failed to retrieve session ${sessionID}`, error); + return; + } + }; + const sessionModel = async (sessionID) => { + const model = (await fetchSession(sessionID))?.model; + return model ? { + providerID: model.providerID, + modelID: model.id + } : void 0; + }; + const readSessionVariant = async (sessionID) => { + const session = await fetchSession(sessionID); + if (!session) return { kind: "unreadable" }; + return session.model?.variant === void 0 ? { kind: "read" } : { + kind: "read", + variant: session.model.variant + }; + }; + const latestModel = (messages) => { + for (let i = messages.length - 1; i >= 0; i--) { + const model = messages[i].model; + if (model) return { + providerID: model.providerID, + modelID: model.id + }; + } + }; + const latestVariant = (messages) => { + for (let i = messages.length - 1; i >= 0; i--) { + const variant = messages[i].model?.variant; + if (variant) return variant; + } + }; + const agentVariant = async (agent) => { + if (!agent) return; + try { + return (await ctx.agent.list()).data.find((candidate) => candidate.name === agent || candidate.id === agent)?.model?.variant; + } catch (error) { + logError("Failed to retrieve agents", error); + return; + } + }; + const messageText = (message) => { + if (message.type === "user") return message.text?.trim() || void 0; + if (message.type !== "assistant") return; + const text = (message.content ?? []).filter((part) => part.type === "text" && typeof part.text === "string").map((part) => part.text).join("\n").trim(); + return text.length > 0 ? text : void 0; + }; + const latestSummary = (messages) => { + for (let i = messages.length - 1; i >= 0; i--) { + const message = messages[i]; + if (message.type === "compaction" && message.summary) { + const text = message.summary.trim(); + if (text) return text; + } + } + }; + const buildContext = async (sessionID) => { + const messages = await fetchMessages(sessionID); + if (!messages) return ""; + const summary = latestSummary(messages); + if (summary) return summary; + const since = state.get(sessionID)?.lastIdleAt ?? 0; + return messages.filter((message) => !since || (message.time?.created ?? 0) >= since).map((message) => { + const text = messageText(message); + return text ? `${message.type}: ${text}` : ""; + }).filter(Boolean).join("\n"); + }; + const switchVariant = async (sessionID, model, variant) => { + try { + await ctx.session.switchModel({ + sessionID, + model: { + providerID: model.providerID, + id: model.modelID, + variant + } + }); + return; + } catch (error) { + warnSwitch(`Failed to set reasoning effort for session ${sessionID}`, error); + return describe(error); + } + }; + const classifyWithModel = async (text, variants, model, current, context) => { + const prompt = [ + config.systemPrompt.trim(), + current ? `Current reasoning effort level: ${current}.` : "", + `Valid reasoning effort levels for this session: ${variants.join(", ")}.`, + `To change your reasoning effort, use the \`${config.toolName}\` tool with one of the valid levels.`, + "Only call it when the task complexity justifies changing levels.", + "Classifier task: choose exactly one of the valid levels for the current message and answer with that word only.", + "", + `Session context:\n${context || "(none)"}`, + "", + `Current message:\n${text}` + ].filter(Boolean).join(" "); + const controller = new AbortController(); + let timer; + const timeout = new Promise((resolve) => { + timer = setTimeout(() => { + controller.abort(); + resolve({ kind: "timeout" }); + }, classifierTimeout); + }); const pending = (async () => { try { - return await client.session.prompt({ - path: { id }, - body: { - model, - system: [ - config.systemPrompt.trim(), - current ? `Current reasoning effort level: ${current}.` : "", - `Valid reasoning effort levels for this session: ${variants.join(", ")}.`, - `To change your reasoning effort, use the \`${config.toolName}\` tool with one of the valid levels.`, - "Only call it when the task complexity justifies changing levels.", - "Classifier task: choose exactly one of the valid levels for the current message and answer with that word only." - ].filter(Boolean).join(" "), - tools: { "*": false }, - parts: [{ - type: "text", - text: `Session context:\n${context || "(none)"}\n\nCurrent message:\n${text}` - }] - } - }); - } catch { - return; + return { + kind: "ok", + text: (await generateText({ + prompt, + model: { + providerID: model.providerID, + id: model.modelID + } + }, { signal: controller.signal }))?.text + }; + } catch (error) { + return { + kind: "error", + error + }; } })(); - const response = await Promise.race([pending, new Promise((resolve) => setTimeout(() => resolve(void 0), classifierTimeout))]); - if (!response || response.error || !response.data) { - warnClassifier("The classifier request failed", response?.error); + const answer = await Promise.race([pending, timeout]).finally(() => { + if (timer !== void 0) clearTimeout(timer); + }); + if (answer.kind === "timeout") { + warnClassifier("The classifier timed out"); + return; + } + if (answer.kind === "error") { + warnClassifier("The classifier request failed", answer.error); + return; + } + if (typeof answer.text !== "string") { + warnClassifier("The classifier returned an invalid response"); return; } - const answer = response.data.parts.filter((part) => part.type === "text").map((part) => part.text).join(" ").toLowerCase(); + const lowered = answer.text.toLowerCase(); let best; for (const level of variants) { const escaped = level.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); - const match = new RegExp(`\\b${escaped}\\b`, "i").exec(answer); + const match = new RegExp(`\\b${escaped}\\b`, "i").exec(lowered); if (match && (!best || match.index < best.index)) best = { index: match.index, level }; } - return best?.level; - } finally { - classifierSessions.delete(id); - try { - await client.session.delete({ path: { id } }); - } catch {} - } - }; - const sendVariantPrompt = (sessionID, variant, text, agent, model) => client.session.promptAsync({ - path: { id: sessionID }, - body: { - noReply: true, - parts: [{ - type: "text", - text, - synthetic: true, - ignored: true - }], - agent, - variant, - ...model ? { model } : {} - } - }); - return { - tool: { [config.toolName]: tool({ - description: config.toolDescription, - args: { - level: z.string().describe("The level of reasoning effort to apply. Higher levels may result in more accurate and thoughtful responses, but may also take more time and resources."), - persist: z.boolean().optional().default(false).describe("Whether to persist the setting for this session, otherwise it will only apply for the remainder of the current turn") - }, - execute: async ({ level, persist }, { sessionID, agent }) => { - if (classifierSessions.has(sessionID)) return "Unavailable in this session."; - const messages = await fetchMessages(sessionID); - if (!messages) return "Failed to set reasoning effort: could not read the session"; - const model = latestModel(messages); - const variants = model ? await variantsFor(model) : []; - if (variants.length === 0) return "Failed to set reasoning effort: no valid reasoning effort levels are available for this session"; - if (!variants.includes(level)) return `Invalid reasoning effort level: ${level}. Valid levels: ${variants.join(", ")}.`; - const baseline = state.get(sessionID)?.reset?.level ?? state.get(sessionID)?.variant ?? await latestVariant(messages); - const response = await sendVariantPrompt(sessionID, level, `Reasoning effort set to ${level}`, agent, model); - if (response.error) return `Failed to set reasoning effort: ${JSON.stringify(response.error)}`; + if (!best) { + warnClassifier("The classifier returned an invalid response"); + return; + } + return best.level; + }; + const applyRequestLevel = async (event, sessionID, model, level) => { + if (level === "default") return false; + const variant = await variantRecord(model, level); + if (!variant) return false; + let applied = false; + for (const [key, value] of Object.entries(variant.settings ?? {})) { + if (value === void 0 || requestRuntimeKeys.has(key) || isUnsafeKey(key)) continue; + event.options[key] = value; + applied = true; + } + const headers = variant.headers && Object.keys(variant.headers).length > 0 ? variant.headers : void 0; + const body = variant.body && Object.keys(variant.body).length > 0 ? variant.body : void 0; + if (headers || body) { state.update(sessionID, (entry) => { - entry.variant = level; - if (persist || !baseline || baseline === level || !variants.includes(baseline)) delete entry.reset; - else entry.reset ??= { - level: baseline, - agent, - ...model ? { model } : {} + entry.request = { + ...headers ? { headers } : {}, + ...body ? { body } : {} }; }); - return `Reasoning effort set to ${level}`; - } - }) }, - "chat.message": async ({ sessionID, variant }, { message, parts }) => { - if (classifierSessions.has(sessionID)) return; - const text = promptText(parts); - if (text === void 0) return; - state.update(sessionID, (entry) => { - entry.userPending = true; - }); - if (!config.classifier.enabled || variant) return; - if (config.triggers !== void 0 && !config.triggers.afterUserMessage) return; - const variants = await variantsFor(message.model); - if (variants.length === 0) return; - const current = state.get(sessionID)?.variant; - const context = await buildContext(sessionID); - const level = await classifyWithModel(sessionID, text, variants, config.classifier.model, current, context); - if (!level || !variants.includes(level)) return; - message.model.variant = level; - state.update(sessionID, (entry) => { - entry.variant = level; - }); - }, - event: async ({ event }) => { - if (event.type === "session.deleted") { - state.delete(event.properties.info.id); - return; + applied = true; } - if (event.type !== "session.idle") return; - const sessionID = event.properties.sessionID; - if (classifierSessions.has(sessionID)) return; - state.update(sessionID, (entry) => { - entry.userPending = false; - entry.idlePending = true; - entry.lastIdleAt = Date.now(); - }); + if (!applied) return false; + Object.assign(event.model, { variant: level }); + return true; + }; + const resetOnIdle = async (sessionID) => { const reset = state.get(sessionID)?.reset; if (!reset) return; - const response = await sendVariantPrompt(sessionID, reset.level, `Reasoning effort reset to ${reset.level}.`, reset.agent, reset.model); - if (response.error) { - logError("Failed to reset reasoning effort on session idle", response.error); + const session = await fetchSession(sessionID); + if (!session) return; + const current = session.model ? { + providerID: session.model.providerID, + modelID: session.model.id + } : void 0; + if (!current) { + logError("Failed to reset reasoning effort on session idle", "no model is available"); + return; + } + if (current.providerID !== reset.model.providerID || current.modelID !== reset.model.modelID) { + state.update(sessionID, (entry) => { + delete entry.reset; + delete entry.variant; + }); return; } + if (await switchVariant(sessionID, current, reset.level) !== void 0) return; state.update(sessionID, (entry) => { - entry.variant = reset.level; + if (reset.level === "default") delete entry.variant; + else entry.variant = reset.level; delete entry.reset; }); - }, - "experimental.chat.system.transform": async ({ sessionID, model }, { system }) => { - if (!sessionID || classifierSessions.has(sessionID)) return; + }; + await ctx.tool.transform((editor) => { + editor.add({ + name: config.toolName, + description: config.toolDescription, + input: { + type: "object", + properties: { + level: { + type: "string", + description: "The level of reasoning effort to apply. Higher levels may result in more accurate and thoughtful responses, but may also take more time and resources." + }, + persist: { + type: "boolean", + default: false, + description: "Whether to persist the setting for this session, otherwise it will only apply for the remainder of the current turn" + } + }, + required: ["level"] + }, + async execute(input, context) { + const args = input ?? {}; + const level = typeof args.level === "string" ? args.level : ""; + const persist = args.persist === true; + const sessionID = context.sessionID; + const messages = await fetchMessages(sessionID); + if (!messages) return { content: "Failed to set reasoning effort: could not read the session" }; + const model = latestModel(messages) ?? await sessionModel(sessionID); + if (!model) return { content: "Failed to set reasoning effort: no valid reasoning effort levels are available for this session" }; + const variants = await variantsFor(model); + if (variants.length === 0) return { content: "Failed to set reasoning effort: no valid reasoning effort levels are available for this session" }; + if (!variants.includes(level)) return { content: `Invalid reasoning effort level: ${level}. Valid levels: ${variants.join(", ")}.` }; + const sessionRead = await readSessionVariant(sessionID); + const previousSessionVariant = sessionRead.kind === "read" ? sessionRead.variant : void 0; + const baseline = state.get(sessionID)?.reset?.level ?? (sessionRead.kind === "read" ? previousSessionVariant ?? latestVariant(messages) ?? await agentVariant(context.agent) : void 0); + const error = await switchVariant(sessionID, model, level); + if (error !== void 0) return { content: `Failed to set reasoning effort: ${error}` }; + state.update(sessionID, (entry) => { + entry.variant = level; + if (persist || !baseline || baseline === level || !isSelectable(baseline, variants)) delete entry.reset; + else entry.reset ??= { + level: baseline, + model + }; + }); + return { content: `Reasoning effort set to ${level}` }; + } + }); + }); + await ctx.session.hook("prompt", (event) => { + const text = event.prompt.text.trim(); + if (text.length === 0) return; + state.update(event.sessionID, (entry) => { + entry.userPending = true; + if (config.classifier.enabled && (config.triggers === void 0 || config.triggers.afterUserMessage)) entry.classifyText = text; + }); + }); + await ctx.session.hook("context", async (event) => { + const sessionID = event.sessionID; + state.update(sessionID, (entry) => { + delete entry.request; + }); + const pendingText = state.get(sessionID)?.classifyText; + if (pendingText !== void 0 && config.classifier.enabled) { + state.update(sessionID, (entry) => { + delete entry.classifyText; + }); + const model = { + providerID: event.model.providerID, + modelID: event.model.id + }; + const variants = await variantsFor(model); + const explicit = event.model.variant; + const hasExplicitLevel = explicit !== void 0 && explicit !== "default" && variants.includes(explicit); + if (variants.length > 0 && !hasExplicitLevel) { + const current = state.get(sessionID)?.variant; + const context = await buildContext(sessionID); + const level = await classifyWithModel(pendingText, variants, config.classifier.model, current, context); + if (level && variants.includes(level)) await applyRequestLevel(event, sessionID, model, level); + } + } const session = state.get(sessionID); const userPending = session?.userPending === true; const idlePending = session?.idlePending ?? true; @@ -11526,27 +562,35 @@ const AdaptiveThinkingPlugin = async ({ client }, options) => { entry.idlePending = false; }); if (!inject) return; - let variants = getModelVariants(model); - let variant = state.get(sessionID)?.variant; - if (variant && !variants.includes(variant)) variant = void 0; - if (variants.length === 0 || !variant) { + let model = { + providerID: event.model.providerID, + modelID: event.model.id + }; + let variants = await variantsFor(model); + if (variants.length === 0) return; + let variant = event.model.variant; + if (variant !== void 0 && (variant === "default" || !variants.includes(variant))) variant = void 0; + if (!variant) { const messages = await fetchMessages(sessionID); if (!messages) return; - if (variants.length === 0) { - const info = latestModel(messages); - variants = info ? await variantsFor(info) : []; - if (variants.length === 0) return; - } - if (!variant) { - const resolved = await latestVariant(messages); - if (resolved && variants.includes(resolved)) { - variant = resolved; - state.update(sessionID, (entry) => { - entry.variant = resolved; - }); - } + const resolved = latestVariant(messages) ?? await agentVariant(event.agent); + if (resolved && resolved !== "default" && variants.includes(resolved)) variant = resolved; + } + if (variant) { + const level = variant; + if (event.model.variant === level || await applyRequestLevel(event, sessionID, model, level)) { + if (session?.variant !== level) state.update(sessionID, (entry) => { + entry.variant = level; + }); + } else { + variant = void 0; + if (session?.variant !== void 0) state.update(sessionID, (entry) => { + delete entry.variant; + }); } - } + } else if (session?.variant !== void 0) state.update(sessionID, (entry) => { + delete entry.variant; + }); const guidance = [ config.systemPrompt.trim(), variant ? `Current reasoning effort level: ${variant}.` : "", @@ -11554,10 +598,67 @@ const AdaptiveThinkingPlugin = async ({ client }, options) => { `To change your reasoning effort, use the \`${config.toolName}\` tool with one of the valid levels.`, "Only call it when the task complexity justifies changing levels." ].filter(Boolean).join(" "); - const existing = system[0]; - system[0] = existing ? `${existing}\n\n${guidance}` : guidance; - } - }; -}; + event.system.push({ + type: "text", + text: guidance + }); + }); + await ctx.session.hook("model.request", (event) => { + if (event.kind !== "primary") return; + const pending = state.get(event.sessionID)?.request; + if (!pending?.headers) return; + Object.assign(event.headers, pending.headers); + }); + await ctx.session.hook("http.request", async (event) => { + if (event.kind !== "primary") return; + const pending = state.get(event.sessionID)?.request; + if (!pending) return; + if (!pending.body) return; + try { + if (!event.request.body) return; + const parsed = JSON.parse(await event.request.clone().text()); + if (!isRecord(parsed)) return; + const headers = new Headers(event.request.headers); + headers.delete("content-length"); + event.request = new Request(event.request, { + method: event.request.method, + headers, + body: JSON.stringify(mergeRecords(parsed, pending.body)) + }); + } catch (error) { + warnRequest("Failed to apply the request-scoped reasoning variant body", error); + } + }); + const controller = new AbortController(); + const subscribe = ctx.event.subscribe; + (async () => { + try { + for await (const event of subscribe({ + signal: controller.signal, + types: trackedEvents + })) try { + if (event.type === "session.deleted") { + state.delete(event.data.sessionID); + continue; + } + if (!idleEvents.includes(event.type)) continue; + const sessionID = event.data.sessionID; + state.update(sessionID, (entry) => { + entry.userPending = false; + entry.idlePending = true; + entry.lastIdleAt = Date.now(); + delete entry.classifyText; + }); + await resetOnIdle(sessionID); + } catch (error) { + logError("Event handler failed", error); + } + } catch (error) { + if (!controller.signal.aborted) logError("Event subscription failed", error); + } + })(); + return () => controller.abort(); + } +}); //#endregion -export { AdaptiveThinkingPlugin }; +export { AdaptiveThinkingPlugin, AdaptiveThinkingPlugin as default }; diff --git a/index.js b/index.js new file mode 100644 index 0000000..1feeaaa --- /dev/null +++ b/index.js @@ -0,0 +1,2 @@ +// Local plugin directories resolve a root index.js; the published package entry stays dist/index.js. +export { AdaptiveThinkingPlugin, default } from "./dist/index.js"; diff --git a/opencode.json b/opencode.json new file mode 100644 index 0000000..da310cf --- /dev/null +++ b/opencode.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://opencode.ai/config.json", + "plugins": ["."] +} diff --git a/package.json b/package.json index c5e347e..2435ff9 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ }, "files": [ "dist", + "index.js", "README.md" ], "type": "module", @@ -37,6 +38,9 @@ "verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run build", "version-packages": "changeset version" }, + "dependencies": { + "@opencode/plugin": "~2.0.30" + }, "devDependencies": { "@changesets/changelog-github": "^0.7.0", "@changesets/cli": "^2.31.0", @@ -49,9 +53,5 @@ "typescript": "^6.0.3", "vitest": "^4.1.9" }, - "peerDependencies": { - "@opencode-ai/plugin": ">=1", - "@opencode-ai/sdk": ">=1" - }, "packageManager": "pnpm@11.8.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8698b75..d6a14a1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,12 +8,9 @@ importers: .: dependencies: - '@opencode-ai/plugin': - specifier: '>=1' - version: 1.17.13 - '@opencode-ai/sdk': - specifier: '>=1' - version: 1.17.13 + '@opencode/plugin': + specifier: ~2.0.30 + version: 2.0.32(@opentelemetry/semantic-conventions@1.44.0)(redis@6.3.1(@opentelemetry/api@1.9.0)) devDependencies: '@changesets/changelog-github': specifier: ^0.7.0 @@ -44,7 +41,7 @@ importers: version: 6.0.3 vitest: specifier: ^4.1.9 - version: 4.1.9(@types/node@26.1.0)(vite@8.1.3(@types/node@26.1.0)(yaml@2.9.0)) + version: 4.1.9(@opentelemetry/api@1.9.0)(@types/node@26.1.0)(vite@8.1.3(@types/node@26.1.0)(yaml@2.9.0)) packages: @@ -52,6 +49,99 @@ packages: resolution: {integrity: sha512-oGMAgGoQdBXbZqNG0Ze56CHjDZ1IDYOwGYxYjO5KLSlz5HiNQ9udIXsPZ61VWaHGZ5XW/jyjmr6t2xz2jGVwbQ==} engines: {node: '>=18'} + '@aws-crypto/crc32@5.2.0': + resolution: {integrity: sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==} + engines: {node: '>=16.0.0'} + + '@aws-crypto/sha256-browser@5.2.0': + resolution: {integrity: sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==} + + '@aws-crypto/sha256-js@5.2.0': + resolution: {integrity: sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==} + engines: {node: '>=16.0.0'} + + '@aws-crypto/supports-web-crypto@5.2.0': + resolution: {integrity: sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==} + + '@aws-crypto/util@5.2.0': + resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==} + + '@aws-sdk/client-cognito-identity@3.1057.0': + resolution: {integrity: sha512-5MliYkp2u0+2arTp5fZIaxl+xmm90LEKv/VeSxhfNQW4t0fvWJrNO429/jchWQenNoDRrOGE59VfbuZUfwFujg==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/core@3.979.1': + resolution: {integrity: sha512-ayOlV1VhLNMiq8PW9ZkVobG4gkldnUoHjG69yy2b8j+VYFlhz/uAL7ZdYQAoQ+eShtGUdNDnnG5rxDg6yUJrOg==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-cognito-identity@3.972.79': + resolution: {integrity: sha512-T64OD+bN7izbhAuPVu+FATwEvki3IsjXICjKrNlhuIijUXuWMfmMU5irN4ytQq2d31Z3rJp5L8sEjZ5L8wMAmg==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-env@3.972.80': + resolution: {integrity: sha512-uO5TiSvb6j1w9RTe5z28OaOmsrOxVQUPaC5+wZl50RfOXcrYD/KgnS8I9lfyGXc7sGbkCopK6VnhNIAoLqfewQ==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-http@3.972.82': + resolution: {integrity: sha512-vQzlDHlC24Yz42p+rT4NBoP/5VdetkBoujbOLq9h6QYWC8THuZSPYnXIR9OP3XcOrdMgPBBipOrdssfxnIiWUg==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-ini@3.973.25': + resolution: {integrity: sha512-b5xl71uCRdWsu7P1VeGpiGuCf6zfYETsSNOv8AmYVTrsgbvTJRXdmmOPVfxkvGGVNsiKkGctClQW3jAn0SZLug==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-login@3.972.87': + resolution: {integrity: sha512-C4ZFmcwM+Zj14Z8huVUk54Gv4uzT1ZdzG9cY3Gdh8FePakq7Bss1OFsgZjAhWFOkFOGpBvFBeu0OWjWf8HNKRQ==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-node@3.972.92': + resolution: {integrity: sha512-jC3zmOo7Qxlk+oBivvSsS1Ph7sFGm0QfuhqDGbqgRXi4cxUYMG+dWtBwS2XYYXgc8TIVXJiwgQ65sbNpbYupTA==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-process@3.972.80': + resolution: {integrity: sha512-xqfixO5aclje7tbQJDias+iNND5wp/3QZixCdZcVQpgWPTZ0V5DfTW9A804A5Z7ezu7sH3WRO+vzUjtiJBA8yg==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-sso@3.973.24': + resolution: {integrity: sha512-nlg3BKG03Cgzvv/dMnhxvDJPhAhQSpaN0RUdwgU7ziwkasoev7iI8el8Xy4Rd5sqzgaDUbV269fOXck5SargqA==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-provider-web-identity@3.972.86': + resolution: {integrity: sha512-zKTyLJBEyfQBVlYqT6Jt+mYV4r8kGbWM7dn6v4Y4MRARizhYafjDXP/iMu76UMRhToSPNmIKX1XAb24gtpBFIA==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/credential-providers@3.1057.0': + resolution: {integrity: sha512-rbrEHtz11g0kxsSkYr3fx2HABNNblp4AhB2MgPvJHgYOWfJ2eBviU7Mvoaef0PW8QH6lbZDfJcnM7eKvtvz3sw==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/nested-clients@3.997.54': + resolution: {integrity: sha512-/OczlavsS7U5sOodRO10Ug4R/AKFVZiXTstKipWe68EfjPkmdDFNXNl9FCJyXWkg1DG6RBm3qAuVB8FNW9O8KQ==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/signature-v4-multi-region@3.996.51': + resolution: {integrity: sha512-+aHvUugVBuMPXxgkPfWnTMyGdE/yWS8GHi5+qQ37HowS0YqzrbuaDLznj+Dtmtu5jgCdqz36gXmujOToUhNNWw==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/token-providers@3.1161.0': + resolution: {integrity: sha512-ypbXSofNcSHwf/KA40bFCXJb0MLaAKrfT7sot4dFaA+2lsuXNah4zLRJIAU7Qmvs9PFJ6rnY0bZFEC+mE7attA==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/types@3.975.0': + resolution: {integrity: sha512-WQlhs6juByzWOzj5fwxOx0mPJaEqMcG/sDpl3Id61B3XhKE63xY+0QWcnG+sWR/sCfprmreyUo1lM7IKZmHMzw==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/util-locate-window@3.965.10': + resolution: {integrity: sha512-ycwH6Zd2GhuSqdXX9ihbCjeGTB6xOJs+O3+Jb8/zDG9978XU80qs75dfkPJRMNKe5MvBZPuNeFpd4JZKPoUF4g==} + engines: {node: '>=20.0.0'} + + '@aws-sdk/xml-builder@3.972.42': + resolution: {integrity: sha512-smX8/gNP8Kjq+CWTBMZQLQ912vOQjiWExzwzvMO+eujPB5RY8IbtF0AGdUUXHKN7KoDWK9dIcuW0WG269kiP6w==} + engines: {node: '>=20.0.0'} + + '@aws/lambda-invoke-store@0.3.0': + resolution: {integrity: sha512-sl4Bm6yiMNYrZKkqqDFWN0UfnWhlS8ivKxrYl+6t0gCLrqr8y3B2IqZZbFRkfaVVp7C/baApyh71P+LeE1A2sQ==} + engines: {node: '>=18.0.0'} + '@babel/runtime@7.29.7': resolution: {integrity: sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==} engines: {node: '>=6.9.0'} @@ -117,6 +207,57 @@ packages: '@changesets/write@0.4.0': resolution: {integrity: sha512-CdTLvIOPiCNuH71pyDu3rA+Q0n65cmAbXnwWH84rKGiFumFzkmHNT8KHTMEchcxN+Kl8I54xGUhJ7l3E7X396Q==} + '@effect/opentelemetry@4.0.1': + resolution: {integrity: sha512-MZ7M1a1dxMqTqeNwIGSECjO7RrReEgeEwHo8BnbOqP+8IfVpdiJi/iPCmkFVWlAxanMl4qhsq69e0Hkul9t+bA==} + engines: {node: '>=18.0.0'} + peerDependencies: + '@opentelemetry/api': '>=1.9.0 <2.0.0' + '@opentelemetry/api-logs': '>=0.203.0 <0.300.0' + '@opentelemetry/resources': '>=2.0.0 <3.0.0' + '@opentelemetry/sdk-logs': '>=0.203.0 <0.300.0' + '@opentelemetry/sdk-metrics': '>=2.0.0 <3.0.0' + '@opentelemetry/sdk-trace-base': '>=2.0.0 <3.0.0' + '@opentelemetry/sdk-trace-node': '>=2.0.0 <3.0.0' + '@opentelemetry/sdk-trace-web': '>=2.0.0 <3.0.0' + '@opentelemetry/semantic-conventions': '>=1.33.0 <2.0.0' + effect: ^4.0.1 + peerDependenciesMeta: + '@opentelemetry/api': + optional: true + '@opentelemetry/api-logs': + optional: true + '@opentelemetry/resources': + optional: true + '@opentelemetry/sdk-logs': + optional: true + '@opentelemetry/sdk-metrics': + optional: true + '@opentelemetry/sdk-trace-base': + optional: true + '@opentelemetry/sdk-trace-node': + optional: true + '@opentelemetry/sdk-trace-web': + optional: true + + '@effect/platform-node-shared@4.0.1': + resolution: {integrity: sha512-VanaejudEhKJ4mpmqnEzdncVUhN6sGSO9ZDND54mRxAlZxj+4dYAWjDTYAy9o4tJo9aALeP2U8cVcOFzEdSeLg==} + engines: {node: '>=18.0.0'} + peerDependencies: + effect: ^4.0.1 + + '@effect/platform-node-shared@4.0.6': + resolution: {integrity: sha512-0PhyC4uG30xGtsajnxjkcBWfTjNRzUh4ZKl1Kvo/MNyCTb+W2O+fBzf7wCRCoqt+nLudiq4V7vX40Q8XIBuMaQ==} + engines: {node: '>=18.0.0'} + peerDependencies: + effect: ^4.0.6 + + '@effect/platform-node@4.0.1': + resolution: {integrity: sha512-FT0Fu5LO0/XP9zBpj0HqrtJNLluK4StNKqf6TSulUsjp8FPBsDVXGJiDuyoN5J2yVMT7tgvhxSwaDcObWVRIaQ==} + engines: {node: '>=18.0.0'} + peerDependencies: + effect: ^4.0.1 + redis: '>=5.0.0 <7.0.0' + '@emnapi/core@1.11.1': resolution: {integrity: sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==} @@ -126,6 +267,10 @@ packages: '@emnapi/wasi-threads@1.2.2': resolution: {integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==} + '@gar/promise-retry@1.0.3': + resolution: {integrity: sha512-GmzA9ckNokPypTg10pgpeHNQe7ph+iIKKmhKu3Ob9ANkswreCx7R3cKmY781K8QK3AqVL3xVh9A42JvIAbkkSA==} + engines: {node: ^20.17.0 || >=22.9.0} + '@inquirer/external-editor@1.0.3': resolution: {integrity: sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA==} engines: {node: '>=18'} @@ -135,6 +280,17 @@ packages: '@types/node': optional: true + '@isaacs/cliui@8.0.2': + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@isaacs/string-locale-compare@1.1.0': + resolution: {integrity: sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ==} + '@jridgewell/sourcemap-codec@1.5.5': resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} @@ -144,36 +300,6 @@ packages: '@manypkg/get-packages@1.1.3': resolution: {integrity: sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==} - '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.4': - resolution: {integrity: sha512-LCkGo6JDfaBhgST7UpPWgNgLINpcpabaHfyz5OBx75nUYxBsaEPxjnyNjWpeb/xBup/682QnBfRBy2/LvPutZQ==} - cpu: [arm64] - os: [darwin] - - '@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.4': - resolution: {integrity: sha512-zExlW9zUJKZH/tOtVMttwjKa4Xm/3KcNjnE3dPN92uCktwavMxpgCA3MoJK/DOnTWsQgo224OaST27/mPNAf+w==} - cpu: [x64] - os: [darwin] - - '@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.4': - resolution: {integrity: sha512-dgX0P/9wGPJeHFBG+ZmhgE6bmtMt7NP5CRBGyyktpopdk/mW4POnrpQsSLtKI1dwpc+pPLuXHDh6vvskyQE/sw==} - cpu: [arm64] - os: [linux] - - '@msgpackr-extract/msgpackr-extract-linux-arm@3.0.4': - resolution: {integrity: sha512-Tg3yX65f5GbtXLkrYEHE5oibZG9epyYWas7FogTTEJeDEF9JlXJzKgXaNhT3UXlTOeA+AfZpYZYZ0uPj7Cfquw==} - cpu: [arm] - os: [linux] - - '@msgpackr-extract/msgpackr-extract-linux-x64@3.0.4': - resolution: {integrity: sha512-8TNXMEjJc3QEy7R/x1INhgiU+XakDAFUzBhaz7+Rbrs8NH5UQeHQxxmzsSBJGyV6I1jW79undiQm8tOI+D+8FQ==} - cpu: [x64] - os: [linux] - - '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.4': - resolution: {integrity: sha512-CmCXPQrkbwExx3j946/PtHWHbYJiCRBRDl4BlkRQcJB/YOwQxJRTpoo7aTsortjgoJ1x7opzTSxn7C+ASSLVjQ==} - cpu: [x64] - os: [win32] - '@napi-rs/wasm-runtime@1.1.6': resolution: {integrity: sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==} peerDependencies: @@ -192,22 +318,181 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@opencode-ai/plugin@1.17.13': - resolution: {integrity: sha512-JjoIs6qTPl0IrXo+J1GTqX9lcb2h2dMoW6BWMR2IbTT3MY2FQ/lvBXDzkx0d3zVRaYN+NTmV4u8Nth396xq+sQ==} + '@npmcli/agent@4.0.2': + resolution: {integrity: sha512-EUEuWAxnL07Sp5/iC/1X6Xj+XThUvnbei9zfRWZdEXa7lss9RTHMhAHBeg+MZ5To9s/gGaSI+UwZTPdYMvKSeg==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@npmcli/arborist@9.4.0': + resolution: {integrity: sha512-4Bm8hNixJG/sii1PMnag0V9i/sGOX9VRzFrUiZMSBJpGlLR38f+Btl85d07G9GL56xO0l0OZjvrGNYsDYp0xKA==} + engines: {node: ^20.17.0 || >=22.9.0} + hasBin: true + + '@npmcli/config@10.8.1': + resolution: {integrity: sha512-MAYk9IlIGiyC0c9fnjdBSQfIFPZT0g1MfeSiD1UXTq2zJOLX55jS9/sETJHqw/7LN18JjITrhYfgCfapbmZHiQ==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@npmcli/fs@5.0.0': + resolution: {integrity: sha512-7OsC1gNORBEawOa5+j2pXN9vsicaIOH5cPXxoR6fJOmH6/EXpJB2CajXOu1fPRFun2m1lktEFX11+P89hqO/og==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@npmcli/git@7.0.2': + resolution: {integrity: sha512-oeolHDjExNAJAnlYP2qzNjMX/Xi9bmu78C9dIGr4xjobrSKbuMYCph8lTzn4vnW3NjIqVmw/f8BCfouqyJXlRg==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@npmcli/installed-package-contents@4.0.0': + resolution: {integrity: sha512-yNyAdkBxB72gtZ4GrwXCM0ZUedo9nIbOMKfGjt6Cu6DXf0p8y1PViZAKDC8q8kv/fufx0WTjRBdSlyrvnP7hmA==} + engines: {node: ^20.17.0 || >=22.9.0} + hasBin: true + + '@npmcli/map-workspaces@5.0.3': + resolution: {integrity: sha512-o2grssXo1e774E5OtEwwrgoszYRh0lqkJH+Pb9r78UcqdGJRDRfhpM8DvZPjzNLLNYeD/rNbjOKM3Ss5UABROw==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@npmcli/metavuln-calculator@9.0.3': + resolution: {integrity: sha512-94GLSYhLXF2t2LAC7pDwLaM4uCARzxShyAQKsirmlNcpidH89VA4/+K1LbJmRMgz5gy65E/QBBWQdUvGLe2Frg==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@npmcli/name-from-folder@4.0.0': + resolution: {integrity: sha512-qfrhVlOSqmKM8i6rkNdZzABj8MKEITGFAY+4teqBziksCQAOLutiAxM1wY2BKEd8KjUSpWmWCYxvXr0y4VTlPg==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@npmcli/node-gyp@5.0.0': + resolution: {integrity: sha512-uuG5HZFXLfyFKqg8QypsmgLQW7smiRjVc45bqD/ofZZcR/uxEjgQU8qDPv0s9TEeMUiAAU/GC5bR6++UdTirIQ==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@npmcli/package-json@7.0.5': + resolution: {integrity: sha512-iVuTlG3ORq2iaVa1IWUxAO/jIp77tUKBhoMjuzYW2kL4MLN1bi/ofqkZ7D7OOwh8coAx1/S2ge0rMdGv8sLSOQ==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@npmcli/promise-spawn@9.0.2': + resolution: {integrity: sha512-h7b1j0egrruBm/32eVA6/zMw5VJxxaB3vT+uVGGQ4SAAMrQVFHNuzL4+EAXn66j+huj0jApINc1fW3fC+kVoeA==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@npmcli/query@5.0.0': + resolution: {integrity: sha512-8TZWfTQOsODpLqo9SVhVjHovmKXNpevHU0gO9e+y4V4fRIOneiXy0u0sMP9LmS71XivrEWfZWg50ReH4WRT4aQ==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@npmcli/redact@4.0.0': + resolution: {integrity: sha512-gOBg5YHMfZy+TfHArfVogwgfBeQnKbbGo3pSUyK/gSI0AVu+pEiDVcKlQb0D8Mg1LNRZILZ6XG8I5dJ4KuAd9Q==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@npmcli/run-script@10.0.4': + resolution: {integrity: sha512-mGUWr1uMnf0le2TwfOZY4SFxZGXGfm4Jtay/nwAa2FLNAKXUoUwaGwBMNH36UHPtinWfTSJ3nqFQr0091CxVGg==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@opencode/ai@2.0.32': + resolution: {integrity: sha512-NMquAbwiFupqoXuRuvY8jPwNAiCVlQcKDQlOTbULWN283gTp4LI3NQJqrpSWpLporxomDJsjU7soN8TCPv3BKQ==} + + '@opencode/client@2.0.32': + resolution: {integrity: sha512-QjejcJTOC5v51gCMt7cRZJJsIydT1uGUowtiNkXWlIhKD7+/260PyqQ3S/2StnmwXucPOq6YNNkLLPv2gio6Iw==} peerDependencies: - '@opentui/core': '>=0.3.4' - '@opentui/keymap': '>=0.3.4' - '@opentui/solid': '>=0.3.4' + effect: 4.0.1 + solid-js: '>=1.9.0' peerDependenciesMeta: - '@opentui/core': + effect: + optional: true + solid-js: + optional: true + + '@opencode/plugin@2.0.32': + resolution: {integrity: sha512-S83qCwl6VTiRxtpqEmrNr5SHXJDS2FHP9XarTazlSWoccKpefDOdWxwCzF/qkgwQRq09T2t9vVbzv4UuzgFXEw==} + peerDependencies: + '@opencode/theme': 2.0.32 + '@opentui/core': '>=0.5.17' + '@opentui/solid': '>=0.5.17' + solid-js: '>=1.9.0' + peerDependenciesMeta: + '@opencode/theme': optional: true - '@opentui/keymap': + '@opentui/core': optional: true '@opentui/solid': optional: true + solid-js: + optional: true + + '@opencode/protocol@2.0.32': + resolution: {integrity: sha512-aF0oW0T6vBUO+EfD0po5gNz9YzQnT+b3InhKaOGg3p8K1S1A1tVkEoOBR7gKWQjAmlpfAPP8zWx4Fgsc7nsCbQ==} + + '@opencode/schema@2.0.32': + resolution: {integrity: sha512-FQOHjPUZwoEflWXFTaNirICglfOi+simArwm9UMj0/aFjYobsZbNh6l7AS8/sslZB+pkR8NB/JWEu29MlJpDeA==} + + '@opencode/util@2.0.32': + resolution: {integrity: sha512-74uOWUInvMvCHjBQ25DlGjiZIcl35iyfuVRnw0KQA9mOUSgWGKiI8GV9crpw7vVMzdPSwqsmmH/W6XCX7NCUUA==} + + '@opentelemetry/api-logs@0.219.0': + resolution: {integrity: sha512-FFx7YnaYJlIjqWW/AG/yAZ0L/NEY724PipXXXQLdtZPbLwBGbUMTGL1i/esI56TWfTUXxhLfpgrnWJCG8aUJyg==} + engines: {node: '>=8.0.0'} + + '@opentelemetry/api@1.9.0': + resolution: {integrity: sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==} + engines: {node: '>=8.0.0'} - '@opencode-ai/sdk@1.17.13': - resolution: {integrity: sha512-VItOGjMzRQx3zypwmeFLNhCiIx32kxS7FqzIJvVZLfyNGCifs3rfGC9qzNKWcxQo4SjNvAw++v4gWWU6Inv+JQ==} + '@opentelemetry/context-async-hooks@2.8.0': + resolution: {integrity: sha512-/3FIraneMcng67SUJCxvyInk/oxzwsxyadufk0wwfOBLf5wqtAGX4MoQASwSbndBPeARzBryUM9Azr5kHIdWLw==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.10.0' + + '@opentelemetry/core@2.8.0': + resolution: {integrity: sha512-hd1Lfh8p545nNz+jq1Ejfz+Mn1hyLuxYn1YzTfFNrxr8urEWMNQLPf1Th8kjOH+HxwawCrtgBp8JpBUR4ZSgww==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.10.0' + + '@opentelemetry/exporter-trace-otlp-http@0.219.0': + resolution: {integrity: sha512-9t6SvBXXBEjOBcIzgozvBbd3jWrv3Gt3ngGhl1fhdZ/zRc7oZDVOFEqbi2zlBpW9BXhgDMKv422J0DL/3iQWfw==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + + '@opentelemetry/otlp-exporter-base@0.219.0': + resolution: {integrity: sha512-zvIxQX/AZUVKDU+hCuYx+7UkiP7GRdnk1ZbFQRYzHvYp47cAWR4j3IhoPhV9KaeXEv2xdGq3IA6PnpzDmLcmSA==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + + '@opentelemetry/otlp-transformer@0.219.0': + resolution: {integrity: sha512-aaYKAyXhw9VchKZVGOopD3Gw/kPsyrX2c6IQ0AW32mTjqmZOh5Y6Gf5OYqTNqVktAeBjmFinhyFaCwW6GYK9YQ==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + + '@opentelemetry/resources@2.8.0': + resolution: {integrity: sha512-qmXQ27ilDbUK/vGMqwL8D4/rhn76C+sherM4wTbjlfknR8Nvfc/hCxjRJPhkzZzUsPiNg16SA31NxMabwttRjg==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.10.0' + + '@opentelemetry/sdk-logs@0.219.0': + resolution: {integrity: sha512-s6lTKRakaPClvKoWHRChxnXjDMkM/TQ30ff78jN6EBGf7MI7VzANE5PU3f4z9qDUudWjvZjOLHG0rBnBKYvoXA==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.4.0 <1.10.0' + + '@opentelemetry/sdk-metrics@2.8.0': + resolution: {integrity: sha512-UDBGaj6W0Rgy5rTTaoxs8gVGF/aGkAKyjurJv7se6wjRxJu7FoquTLT/vt54DZfo4crbprYfhX/SOK9+BPw1qg==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.9.0 <1.10.0' + + '@opentelemetry/sdk-trace-base@2.8.0': + resolution: {integrity: sha512-mhU4jp+vW0mGbFRd+GeXHvmfA4aDqWjBjLC3pE5XMpLs0IE2ryYb019Ts2AQrOq67gaTF25D91+fgvEHDZEnuQ==} + engines: {node: ^18.19.0 || >=20.6.0} + deprecated: Use @opentelemetry/sdk-trace package + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.10.0' + + '@opentelemetry/sdk-trace-node@2.8.0': + resolution: {integrity: sha512-nZt9OGufioAc3AfoLTqA9bsAeaMJAictYDdI2VcNQ+PmT+3rfKjAZDZvgPfd8VPX0O5Bw1hdQF6kDK8VSpZiWg==} + engines: {node: ^18.19.0 || >=20.6.0} + deprecated: Use @opentelemetry/sdk-trace package + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.10.0' + + '@opentelemetry/semantic-conventions@1.44.0': + resolution: {integrity: sha512-E3JkOlMBi3N8OGGkbl7tFyqk2MAS6/lySRZBK3Mu7AzjF1fT8oIChH9ChE48SUWzDn9Kdwta+G/p5LJ4xW4CLQ==} + engines: {node: '>=14'} '@oxc-project/types@0.138.0': resolution: {integrity: sha512-1a7ZKmrRTCoN1XMZ4L0PyyqrMnrNlLyPuOkdSX2MZg7IiIGRUyurNhAm73ptDOraoBcIordsIGKNPKUzy3ZmfA==} @@ -456,6 +741,46 @@ packages: cpu: [x64] os: [win32] + '@pkgjs/parseargs@0.11.0': + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + + '@redis/bloom@6.3.1': + resolution: {integrity: sha512-dpF9j2yJDoPzSCaZn0MSB3xzmnXQVJeTSAWJcQVcgbmluwhpFeemmII0cF1t+WYfoVS+shEFq79+MmUItgzJLg==} + engines: {node: '>= 20.0.0'} + peerDependencies: + '@redis/client': ^6.3.1 + + '@redis/client@6.3.1': + resolution: {integrity: sha512-masbfVKULdoAofwddepZxRhWa4w6zvBHn6TRn90TRPrRkVIlGCur3pFqwWaCbMxtYI9twepkz63e/T/tEH8GjA==} + engines: {node: '>= 20.0.0'} + peerDependencies: + '@node-rs/xxhash': ^1.1.0 + '@opentelemetry/api': '>=1 <2' + peerDependenciesMeta: + '@node-rs/xxhash': + optional: true + '@opentelemetry/api': + optional: true + + '@redis/json@6.3.1': + resolution: {integrity: sha512-fMz4kUwJzEftcU9EMaqsjZcUwzpTQLOYRqhQsAD6uKvZWeamblK13ZhgO5SzVSZVk31jmwLeTRpU5GAl5egfUw==} + engines: {node: '>= 20.0.0'} + peerDependencies: + '@redis/client': ^6.3.1 + + '@redis/search@6.3.1': + resolution: {integrity: sha512-T67pvPUpW82VrZLvihO8O2DFMC7eY2oMAzMzapCbiPZn7mdWqHMEIlohYim12gIawT5kn6qT/Cvmm4WulKB+kQ==} + engines: {node: '>= 20.0.0'} + peerDependencies: + '@redis/client': ^6.3.1 + + '@redis/time-series@6.3.1': + resolution: {integrity: sha512-MNDgrm+i63M/1a+XA+HcDsScwt4uBh/fGGJ84swTQZTFK5K5wMmxdlTRa4ZgmNJzjxMaszW/ipPScMUGV3aAMg==} + engines: {node: '>= 20.0.0'} + peerDependencies: + '@redis/client': ^6.3.1 + '@rolldown/binding-android-arm64@1.1.4': resolution: {integrity: sha512-EZLpf/8y7GXkkra90ML47kzik/GMP3EMcE9bPyHmRfxLC6z9+aW5A8poCsoxjrT5GfEcNAAvWwUHjvP1pUQkfw==} engines: {node: ^20.19.0 || >=22.12.0} @@ -554,9 +879,93 @@ packages: '@rolldown/pluginutils@1.0.1': resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} + '@sigstore/bundle@4.0.0': + resolution: {integrity: sha512-NwCl5Y0V6Di0NexvkTqdoVfmjTaQwoLM236r89KEojGmq/jMls8S+zb7yOwAPdXvbwfKDlP+lmXgAL4vKSQT+A==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@sigstore/core@3.2.1': + resolution: {integrity: sha512-qRsxPnCrbC/puegGxKuynfnxgLiHqWStrSjxkoB4YKqq3Z3s4cyZyj42ZdWFAEblNP65C+rBH8EuREHIXoi83g==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@sigstore/protobuf-specs@0.5.2': + resolution: {integrity: sha512-SQqvFMt4V78fdjcDdYX6HbiVSOR4QK3ZgwCa2KOsopAgPIHy1rU5UDUmzLl02r5oyyaYcYHR1hpwDRk/yUe+Mw==} + engines: {node: ^18.17.0 || >=20.5.0} + + '@sigstore/sign@4.1.1': + resolution: {integrity: sha512-Hf4xglukg0XXQ2RiD5vSoLjdPe8OBUPA8XeVjUObheuDcWdYWrnH/BNmxZCzkAy68MzmNCxXLeurJvs6hcP2OQ==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@sigstore/tuf@4.0.2': + resolution: {integrity: sha512-TCAzTy0xzdP79EnxSjq9KQ3eaR7+FmudLC6eRKknVKZbV7ZNlGLClAAQb/HMNJ5n2OBNk2GT1tEmU0xuPr+SLQ==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@sigstore/verify@3.1.1': + resolution: {integrity: sha512-qv7+G3J2cc6wwFj3yKvXOamzqhMwSk1ogPGmhpS8iXllcPrJaIIBA+4HbttlHVu1pqWTdmaCH/WE7UOC51kdoA==} + engines: {node: ^20.17.0 || >=22.9.0} + + '@smithy/core@3.38.1': + resolution: {integrity: sha512-U/mB2XiwTLaf+NSgLSWwJfptsMT/H8aBi0aTAA/E5e2/TagFeGCqAyhKGG0w0A9IWTkm4qYEmLoD/HB6aYfnRA==} + engines: {node: '>=18.0.0'} + + '@smithy/credential-provider-imds@4.5.2': + resolution: {integrity: sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg==} + engines: {node: '>=18.0.0'} + + '@smithy/eventstream-codec@4.2.14': + resolution: {integrity: sha512-erZq0nOIpzfeZdCyzZjdJb4nVSKLUmSkaQUVkRGQTXs30gyUGeKnrYEg+Xe1W5gE3aReS7IgsvANwVPxSzY6Pw==} + engines: {node: '>=18.0.0'} + + '@smithy/fetch-http-handler@5.8.0': + resolution: {integrity: sha512-ycSJu3tFAQ4v04CBB0agqFMVsSQ1iG3yw+SpgxRqKfaURpQD4CZ8Wn0zPMmSnOuTpTh65Vz+EA0rMrw089wvkA==} + engines: {node: '>=18.0.0'} + + '@smithy/is-array-buffer@2.2.0': + resolution: {integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==} + engines: {node: '>=14.0.0'} + + '@smithy/node-http-handler@4.14.1': + resolution: {integrity: sha512-/T6E1jzCL0fErS9uq8JqES/5yYQQ4ppVmmYHwXw2nlov8KFzLb+3QqHR5iAun1BsuAB50IPxZliV8YMgghLwhA==} + engines: {node: '>=18.0.0'} + + '@smithy/signature-v4@5.7.5': + resolution: {integrity: sha512-WPjdr5oWOk1LArpI4pavu+fSo+/evi0Re1olxGvqwuZopd4gYR1UGCi+Soyn/IjmafqbWs+ZC+3AKxJS3ZpwUg==} + engines: {node: '>=18.0.0'} + + '@smithy/types@4.19.0': + resolution: {integrity: sha512-r7jh49VJxGerfAcTQA6gXcKc+98zOp/tqRwzYjgOE+iSQsP6cEU1hq2QzbuipmP68QtYdY9wKEhiCQZIzHgZ4Q==} + engines: {node: '>=18.0.0'} + + '@smithy/util-buffer-from@2.2.0': + resolution: {integrity: sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==} + engines: {node: '>=14.0.0'} + + '@smithy/util-buffer-from@4.5.2': + resolution: {integrity: sha512-nxu3SgmAw9JXT2CtkU0m/XNLWpP9MsaBx1zAGAypCbYj15tIFlmcYwpF+Oh18le83d+IM9PT7ENdXnE4C+d5mA==} + engines: {node: '>=18.0.0'} + + '@smithy/util-hex-encoding@4.5.2': + resolution: {integrity: sha512-iq+cW3mAb7vfcxEEpYi3zXKpDtbrIFyanWjQl4zBq4seWD4OSxXDWSfespZxenX6aEaighn+NR3u1nU1DSvs3w==} + engines: {node: '>=18.0.0'} + + '@smithy/util-utf8@2.3.0': + resolution: {integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==} + engines: {node: '>=14.0.0'} + + '@smithy/util-utf8@4.2.2': + resolution: {integrity: sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw==} + engines: {node: '>=18.0.0'} + '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + '@tufjs/canonical-json@2.0.0': + resolution: {integrity: sha512-yVtV8zsdo8qFHe+/3kw81dSLyF7D576A5cCFCi4X7B39tWT7SekaEFUnvnWJHz+9qO7qJTah1JbrDjWKqFtdWA==} + engines: {node: ^16.14.0 || >=18.0.0} + + '@tufjs/models@4.1.0': + resolution: {integrity: sha512-Y8cK9aggNRsqJVaKUlEYs4s7CvQ1b1ta2DVPyAimb0I2qhzjNk+A+mxvll/klL0RlfuIUei8BF7YWiua4kQqww==} + engines: {node: ^20.17.0 || >=22.9.0} + '@tybys/wasm-util@0.10.3': resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==} @@ -575,6 +984,9 @@ packages: '@types/node@26.1.0': resolution: {integrity: sha512-O0A1G3xPGy4w7AgQdAQYUlQ+BKk2Oovw8eRpofyp5KdBZULnbe+WqaOVNrm705SHphCiG4XHsACrSmPu1f+Kgw==} + '@types/ws@8.18.2': + resolution: {integrity: sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==} + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260703.1': resolution: {integrity: sha512-EwJEd6hfaHrrbSLat6+xX8fZiAvG+/Ae1gqvJEayTNdDbkrZxmeLS23YdjUmDMIOKI2wa7zXQDid8WtrvDfMTQ==} engines: {node: '>=16.20.0'} @@ -651,6 +1063,14 @@ packages: '@vitest/utils@4.1.9': resolution: {integrity: sha512-A51o8ymO5PpqlWNnBP9ZHPXDIpuMtTLlGSjN7la4US+LJzoUMyhwjA5QXlm39JexgwHKW4Xjs8Z2d3dLCXOeuA==} + abbrev@4.0.0: + resolution: {integrity: sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==} + engines: {node: ^20.17.0 || >=22.9.0} + + agent-base@7.1.4: + resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==} + engines: {node: '>= 14'} + ansi-colors@4.1.3: resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} engines: {node: '>=6'} @@ -659,6 +1079,18 @@ packages: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} + ansi-regex@6.5.0: + resolution: {integrity: sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ==} + engines: {node: '>=12'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ansi-styles@6.2.3: + resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} + engines: {node: '>=12'} + argparse@1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} @@ -673,14 +1105,55 @@ packages: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} + aws4fetch@1.0.20: + resolution: {integrity: sha512-/djoAN709iY65ETD6LKCtyyEI04XIBP5xVvfmNxsEP0uJB5tyaGBztSryRr4HqMStr9R06PisQE7m9zDTXKu6g==} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} + + base64-js@1.5.1: + resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} + better-path-resolve@1.0.0: resolution: {integrity: sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==} engines: {node: '>=4'} + bignumber.js@9.3.1: + resolution: {integrity: sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==} + + bin-links@6.0.3: + resolution: {integrity: sha512-Qg5FD7/YSReWJB1zaM8VIi1l4O637JKK/WPaF/JzJGy/9FcMDWtSklF0dOX5S9X2OMrPGhifIHIKuwtHG0IGFg==} + engines: {node: ^20.17.0 || >=22.9.0} + + bowser@2.15.0: + resolution: {integrity: sha512-xic6KSZglg/I4ymp45fdM4GWfYpBK79Fxd/TOvJktlaPgQqqDxvmGwOPZl2V0dyeS3Lj5c180bLhXF43iyAjZQ==} + + brace-expansion@2.1.7: + resolution: {integrity: sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==} + + brace-expansion@5.0.12: + resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==} + engines: {node: 20 || >=22} + braces@3.0.3: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} + buffer-equal-constant-time@1.0.1: + resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + cacache@20.0.4: + resolution: {integrity: sha512-M3Lab8NPYlZU2exsL3bMVvMrMqgwCnMWfdZbK28bn3pK6APT/Te/I8hjRPNu1uwORY9a1eEQoifXbKPQMfMTOA==} + engines: {node: ^20.17.0 || >=22.9.0} + chai@6.2.2: resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} engines: {node: '>=18'} @@ -688,6 +1161,33 @@ packages: chardet@2.2.0: resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + ci-info@4.4.0: + resolution: {integrity: sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==} + engines: {node: '>=8'} + + cmd-shim@8.0.0: + resolution: {integrity: sha512-Jk/BK6NCapZ58BKUxlSI+ouKRbjH1NLZCgJkYoab+vEHUY3f6OzpNBN9u7HFSv9J6TRDGs4PLOHezoKGaFRSCA==} + engines: {node: ^20.17.0 || >=22.9.0} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + common-ancestor-path@2.0.0: + resolution: {integrity: sha512-dnN3ibLeoRf2HNC+OlCiNc5d2zxbLJXOtiZUudNFSXZrNSydxcCsSpRzXwfu7BBWCIfHPw+xTayeBvJCP/D8Ng==} + engines: {node: '>= 18'} + + content-type@2.1.0: + resolution: {integrity: sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==} + engines: {node: '>=18'} + convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} @@ -695,9 +1195,39 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} + cssesc@3.0.0: + resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} + engines: {node: '>=4'} + hasBin: true + + data-uri-to-buffer@4.0.1: + resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} + engines: {node: '>= 12'} + dataloader@1.4.0: resolution: {integrity: sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==} + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + detect-indent@6.1.0: resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==} engines: {node: '>=8'} @@ -714,13 +1244,29 @@ packages: resolution: {integrity: sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==} engines: {node: '>=10'} - effect@4.0.0-beta.83: - resolution: {integrity: sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w==} + eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + + ecdsa-sig-formatter@1.0.11: + resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==} + + effect@4.0.1: + resolution: {integrity: sha512-b1VlQG9g8fwxE5QnIZuPoOP/0MsqHJSRKxUijjoM80E5q95FXrX5yWtY5XI8G+GJsBQAVSDbLS458z9a++uVvw==} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} enquirer@2.4.1: resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} engines: {node: '>=8.6'} + env-paths@2.2.1: + resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==} + engines: {node: '>=6'} + es-module-lexer@2.3.0: resolution: {integrity: sha512-KLdwQm2NvGLDkQDCGvmiQrhkd0JbMzXthwQAUgWjQuQdBLFa3eiBP5arXZyA+f8x+x7OXgud6bq2rxjGtHV2tw==} @@ -736,13 +1282,15 @@ packages: resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} engines: {node: '>=12.0.0'} + exponential-backoff@3.1.3: + resolution: {integrity: sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==} + + extend@3.0.2: + resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} + extendable-error@0.1.7: resolution: {integrity: sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg==} - fast-check@4.8.0: - resolution: {integrity: sha512-GOJ158CUMnN6cSahsv4+ExARvIDuzzinFjkp0E9WtiBa5zcVeLozVkWaE4IzFcc+Y48Wp1EDlUZsXRyAztQcSg==} - engines: {node: '>=12.17.0'} - fast-glob@3.3.3: resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} engines: {node: '>=8.6.0'} @@ -759,17 +1307,26 @@ packages: picomatch: optional: true + fetch-blob@3.2.0: + resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} + engines: {node: ^12.20 || >= 14.13} + fill-range@7.1.1: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} - find-my-way-ts@0.1.6: - resolution: {integrity: sha512-a85L9ZoXtNAey3Y6Z+eBWW658kO/MwR7zIafkIUPUMf3isZG0NCs2pjW2wtjxAKuJPxMAsHUIP4ZPGv0o5gyTA==} - find-up@4.1.0: resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} engines: {node: '>=8'} + foreground-child@3.3.1: + resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} + engines: {node: '>=14'} + + formdata-polyfill@4.0.10: + resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} + engines: {node: '>=12.20.0'} + fs-extra@7.0.1: resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==} engines: {node: '>=6 <7 || >=8'} @@ -778,22 +1335,78 @@ packages: resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==} engines: {node: '>=6 <7 || >=8'} + fs-minipass@3.0.3: + resolution: {integrity: sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] + gaxios@7.1.3: + resolution: {integrity: sha512-YGGyuEdVIjqxkxVH1pUTMY/XtmmsApXrCVv5EU25iX6inEPbV+VakJfLealkBtJN69AQmh1eGOdCl9Sm1UP6XQ==} + engines: {node: '>=18'} + + gaxios@7.3.1: + resolution: {integrity: sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ==} + engines: {node: '>=18'} + + gcp-metadata@8.1.4: + resolution: {integrity: sha512-iJ9KMsiu+xKtNRX0PmGLSaIU3bUBAyzWTyqKemKPzNPsmmsBCQYmlNg+brEbES7IHSXtdVwzBPzx1vz3FAaipw==} + engines: {node: '>=18'} + glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} + glob@10.5.0: + resolution: {integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me + hasBin: true + + glob@13.0.5: + resolution: {integrity: sha512-BzXxZg24Ibra1pbQ/zE7Kys4Ua1ks7Bn6pKLkVPZ9FZe4JQS6/Q7ef3LG1H+k7lUf5l4T3PLSyYyYJVYUvfgTw==} + engines: {node: 20 || >=22} + globby@11.1.0: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} engines: {node: '>=10'} + google-auth-library@10.5.0: + resolution: {integrity: sha512-7ABviyMOlX5hIVD60YOfHw4/CxOfBhyduaYB+wbFWCWoni4N7SLcV46hrVRktuBbZjFC9ONyqamZITN7q3n32w==} + engines: {node: '>=18'} + + google-logging-utils@1.1.3: + resolution: {integrity: sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==} + engines: {node: '>=14'} + + google-logging-utils@1.2.0: + resolution: {integrity: sha512-WE9av4wKDZgRjBwgVUabocx8T6/7o3Ca1Fat46FXDhXVAFibzNadedcOXrdgd1Kzmk8tsk/9ZH89Wyf/SqeZ3A==} + engines: {node: '>=18'} + graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + gtoken@8.0.0: + resolution: {integrity: sha512-+CqsMbHPiSTdtSO14O51eMNlrp9N79gmeqmXeouJOhfucAedHw9noVe/n5uJk3tbKE6a+6ZCQg3RPhVhHByAIw==} + engines: {node: '>=18'} + + hosted-git-info@9.0.3: + resolution: {integrity: sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==} + engines: {node: ^20.17.0 || >=22.9.0} + + http-cache-semantics@4.3.0: + resolution: {integrity: sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==} + + http-proxy-agent@7.0.2: + resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} + engines: {node: '>= 14'} + + https-proxy-agent@7.0.6: + resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} + engines: {node: '>= 14'} + human-id@4.2.0: resolution: {integrity: sha512-K3GbkIWqyvvlpfhBPlbEvD97TtqBpAYA4kt+cn2lD2x2HuohzZCibcA2nOlnJT6exqvJLggoB5nv2dNf192nEA==} hasBin: true @@ -807,22 +1420,48 @@ packages: resolution: {integrity: sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==} engines: {node: '>=0.10.0'} + ignore-walk@8.0.0: + resolution: {integrity: sha512-FCeMZT4NiRQGh+YkeKMtWrOmBgWjHjMJ26WQWrRQyoyzqevdaGSakUaJW5xQYmjLlUVk2qUnCjYVBax9EKKg8A==} + engines: {node: ^20.17.0 || >=22.9.0} + ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} - ini@7.0.0: - resolution: {integrity: sha512-ifK0CgjALofS5bkrcTy4RaQ9Vx2Knf/eLeIO+NaswQEpH1UblrtTSCIvN71qQDMq0PeQ/SSPojvEJp9vvvfr+w==} - engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + ini@6.0.0: + resolution: {integrity: sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==} + engines: {node: ^20.17.0 || >=22.9.0} + + ip-address@10.7.5: + resolution: {integrity: sha512-t2v0rkILYv9WXmSL7TpAaU3HXgaFYOPUcH3QHgwQ++gpJuH3bqyMy4Fvt/DJCTKwzH3Cf+bAp5W/mFL39KPLzA==} + engines: {node: '>= 12'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + is-number@7.0.0: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} @@ -835,9 +1474,20 @@ packages: resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==} engines: {node: '>=0.10.0'} + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + isexe@4.0.0: + resolution: {integrity: sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==} + engines: {node: '>=20'} + + jackspeak@3.4.3: + resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + js-yaml@3.15.0: resolution: {integrity: sha512-ttBQIIQPDeLjpPOohtUdXuXUVoA2uIB6fEH9HyJ7234s5mBJ5wTx20njxplLZQgLaOfpmPQA7X2t5AX6tIPbog==} hasBin: true @@ -846,14 +1496,37 @@ packages: resolution: {integrity: sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==} hasBin: true + json-bigint@1.0.0: + resolution: {integrity: sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==} + + json-parse-even-better-errors@5.0.0: + resolution: {integrity: sha512-ZF1nxZ28VhQouRWhUcVlUIN3qwSgPuswK05s/HIaoetAoE/9tngVmCHjSxmSQPav1nd+lPtTL0YZ/2AFdR/iYQ==} + engines: {node: ^20.17.0 || >=22.9.0} + json-schema@0.4.0: resolution: {integrity: sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==} + json-stringify-nice@1.1.4: + resolution: {integrity: sha512-5Z5RFW63yxReJ7vANgW6eZFGWaQvnPE3WNmZoOJrSkGju2etKA2L5rrOa1sm877TVTFt57A80BH1bArcmlLfPw==} + jsonfile@4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} - kubernetes-types@1.30.0: - resolution: {integrity: sha512-Dew1okvhM/SQcIa2rcgujNndZwU8VnSapDgdxlYoB84ZlpAD43U6KLAFqYo17ykSFGHNPrg0qry0bP+GJd9v7Q==} + jsonparse@1.3.1: + resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} + engines: {'0': node >= 0.2.0} + + just-diff-apply@5.5.0: + resolution: {integrity: sha512-OYTthRfSh55WOItVqwpefPtNt2VdKsq5AnAK6apdtR6yCH8pr0CmSr710J0Mf+WdQy7K/OzMy7K2MgAfdQURDw==} + + just-diff@6.0.2: + resolution: {integrity: sha512-S59eriX5u3/QhMNq3v/gm8Kd0w8OS6Tz2FS1NG4blv+z0MuQcBRJyFWjdovM0Rad4/P4aUPFtnkNjMjyMlMSYA==} + + jwa@2.0.1: + resolution: {integrity: sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==} + + jws@4.0.1: + resolution: {integrity: sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==} lightningcss-android-arm64@1.32.0: resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==} @@ -936,9 +1609,20 @@ packages: lodash.startcase@4.4.0: resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==} + lru-cache@10.4.3: + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + + lru-cache@11.5.3: + resolution: {integrity: sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==} + engines: {node: 20 || >=22} + magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + make-fetch-happen@15.0.6: + resolution: {integrity: sha512-Je0fLJ0F5atA7F+eIlLzk+Wkcl57JDf4kf+EW8xiP5E31xOQxkIxTbgf1Oi1Lw9tRI9UEMRdI5Vz2xTzoNU1Jw==} + engines: {node: ^20.17.0 || >=22.9.0} + merge2@1.4.1: resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} engines: {node: '>= 8'} @@ -947,25 +1631,75 @@ packages: resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} engines: {node: '>=8.6'} + mime-db@1.54.0: + resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==} + engines: {node: '>= 0.6'} + + mime-types@3.0.2: + resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==} + engines: {node: '>=18'} + + minimatch@10.2.5: + resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==} + engines: {node: 18 || 20 || >=22} + + minimatch@9.0.9: + resolution: {integrity: sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==} + engines: {node: '>=16 || 14 >=14.17'} + + minipass-collect@2.0.1: + resolution: {integrity: sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw==} + engines: {node: '>=16 || 14 >=14.17'} + + minipass-fetch@5.0.2: + resolution: {integrity: sha512-2d0q2a8eCi2IRg/IGubCNRJoYbA1+YPXAzQVRFmB45gdGZafyivnZ5YSEfo3JikbjGxOdntGFvBQGqaSMXlAFQ==} + engines: {node: ^20.17.0 || >=22.9.0} + + minipass-flush@1.0.7: + resolution: {integrity: sha512-TbqTz9cUwWyHS2Dy89P3ocAGUGxKjjLuR9z8w4WUTGAVgEj17/4nhgo2Du56i0Fm3Pm30g4iA8Lcqctc76jCzA==} + engines: {node: '>= 8'} + + minipass-pipeline@1.2.4: + resolution: {integrity: sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==} + engines: {node: '>=8'} + + minipass-sized@2.0.0: + resolution: {integrity: sha512-zSsHhto5BcUVM2m1LurnXY6M//cGhVaegT71OfOXoprxT6o780GZd792ea6FfrQkuU4usHZIUczAQMRUE2plzA==} + engines: {node: '>=8'} + + minipass@3.3.6: + resolution: {integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==} + engines: {node: '>=8'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + mri@1.2.0: resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} engines: {node: '>=4'} - msgpackr-extract@3.0.4: - resolution: {integrity: sha512-4kmO/MdyUIkLIvTPr8VHLil4AtoKIoniWPIEk5+CDy0xnWC84azhSFmuJ7PxZdsYtiP5kEeQsORAVIeMgxT+Hw==} - hasBin: true - - msgpackr@2.0.4: - resolution: {integrity: sha512-o1C5KRmuRt+apqMr1HuGSqWStZoRBUpEsCsl15uM9VdAF1qHLtvMOU2En747EnTyEl6c4pzPewRMFF31s1CNbA==} - - multipasta@0.2.7: - resolution: {integrity: sha512-KPA58d68KgGil15oDqXjkUBEBYc00XvbPj5/X+dyzeo/lWm9Nc25pQRlf1D+gv4OpK7NM0J1odrbu9JNNGvynA==} + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} nanoid@3.3.15: resolution: {integrity: sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + negotiator@1.1.0: + resolution: {integrity: sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==} + engines: {node: '>=18'} + + node-domexception@1.0.0: + resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} + engines: {node: '>=10.5.0'} + deprecated: Use your platform's native DOMException instead + node-fetch@2.7.0: resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} engines: {node: 4.x || >=6.0.0} @@ -975,14 +1709,56 @@ packages: encoding: optional: true - node-gyp-build-optional-packages@5.2.2: - resolution: {integrity: sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==} + node-fetch@3.3.2: + resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + node-gyp@12.4.0: + resolution: {integrity: sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==} + engines: {node: ^20.17.0 || >=22.9.0} hasBin: true + nopt@9.0.0: + resolution: {integrity: sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==} + engines: {node: ^20.17.0 || >=22.9.0} + hasBin: true + + npm-bundled@5.0.0: + resolution: {integrity: sha512-JLSpbzh6UUXIEoqPsYBvVNVmyrjVZ1fzEFbqxKkTJQkWBO3xFzFT+KDnSKQWwOQNbuWRwt5LSD6HOTLGIWzfrw==} + engines: {node: ^20.17.0 || >=22.9.0} + + npm-install-checks@8.0.0: + resolution: {integrity: sha512-ScAUdMpyzkbpxoNekQ3tNRdFI8SJ86wgKZSQZdUxT+bj0wVFpsEMWnkXP0twVe1gJyNF5apBWDJhhIbgrIViRA==} + engines: {node: ^20.17.0 || >=22.9.0} + + npm-normalize-package-bin@5.0.0: + resolution: {integrity: sha512-CJi3OS4JLsNMmr2u07OJlhcrPxCeOeP/4xq67aWNai6TNWWbTrlNDgl8NcFKVlcBKp18GPj+EzbNIgrBfZhsag==} + engines: {node: ^20.17.0 || >=22.9.0} + + npm-package-arg@13.0.2: + resolution: {integrity: sha512-IciCE3SY3uE84Ld8WZU23gAPPV9rIYod4F+rc+vJ7h7cwAJt9Vk6TVsK60ry7Uj3SRS3bqRRIGuTp9YVlk6WNA==} + engines: {node: ^20.17.0 || >=22.9.0} + + npm-packlist@10.0.4: + resolution: {integrity: sha512-uMW73iajD8hiH4ZBxEV3HC+eTnppIqwakjOYuvgddnalIw2lJguKviK1pcUJDlIWm1wSJkchpDZDSVVsZEYRng==} + engines: {node: ^20.17.0 || >=22.9.0} + + npm-pick-manifest@11.0.3: + resolution: {integrity: sha512-buzyCfeoGY/PxKqmBqn1IUJrZnUi1VVJTdSSRPGI60tJdUhUoSQFhs0zycJokDdOznQentgrpf8LayEHyyYlqQ==} + engines: {node: ^20.17.0 || >=22.9.0} + + npm-registry-fetch@19.1.1: + resolution: {integrity: sha512-TakBap6OM1w0H73VZVDf44iFXsOS3h+L4wVMXmbWOQroZgFhMch0juN6XSzBNlD965yIKvWg2dfu7NSiaYLxtw==} + engines: {node: ^20.17.0 || >=22.9.0} + obug@2.1.3: resolution: {integrity: sha512-9miFgM2OFba7hB+pRgvtV84pYTBaoTHohvmIgiRt6dRIzbwEOIaNaP+dIlGs2fNFoB0SeISs0Jz5WFVRid6Xyg==} engines: {node: '>=12.20.0'} + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + outdent@0.5.0: resolution: {integrity: sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q==} @@ -1028,13 +1804,29 @@ packages: resolution: {integrity: sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==} engines: {node: '>=6'} + p-map@7.1.1: + resolution: {integrity: sha512-6Lh3jQPLthYujSrlw6ccWXBGZTkoTCz27Hd92g79LH/kjAbgoEu0t442cCCNbegPSJsA0lwDX8z0bcKtkpA32g==} + engines: {node: '>=18'} + p-try@2.2.0: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} + package-json-from-dist@1.0.1: + resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} + package-manager-detector@0.2.11: resolution: {integrity: sha512-BEnLolu+yuz22S56CU1SUKq3XC3PkwD5wv4ikR4MfGvnRVcmzXR9DwSlW2fEamyTPyXHomBJRzgapeuBvRNzJQ==} + pacote@21.5.1: + resolution: {integrity: sha512-KvcJ9iy3crysCsgqc4+PknH/w6jkrp8JN36mpZBPwNaDRwTfMZD37YzRazNstiZUOhuF5pno9f78n9mEJBavwg==} + engines: {node: ^20.17.0 || >=22.9.0} + hasBin: true + + parse-conflict-json@5.0.1: + resolution: {integrity: sha512-ZHEmNKMq1wyJXNwLxyHnluPfRAFSIliBvbK/UiOceROt4Xh9Pz0fq49NytIaeaCUf5VR86hwQ/34FCcNU5/LKQ==} + engines: {node: ^20.17.0 || >=22.9.0} + path-exists@4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} @@ -1043,6 +1835,14 @@ packages: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} + path-scurry@1.11.1: + resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} + engines: {node: '>=16 || 14 >=14.18'} + + path-scurry@2.0.2: + resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} + engines: {node: 18 || 20 || >=22} + path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -1065,17 +1865,36 @@ packages: resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} engines: {node: '>=6'} + postcss-selector-parser@7.1.7: + resolution: {integrity: sha512-wWBro/7hJ40ye6TPiXkUQoXKCw23xSsjriUvqd7Uls9Sso3oLiON1flc18cCdnjgCRXw4fBVqUJJeOdDTh3P3g==} + engines: {node: '>=4'} + postcss@8.5.16: resolution: {integrity: sha512-vuwillviilfKZsg0VGj5R/YwwcHx4SLsIOI/7K6mQkWx+l5cUHTjj5g0AasTBcyXsbfTgrwsUNmVUb5xVwyPwg==} engines: {node: ^10 || ^12 || >=14} + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + prettier@2.8.8: resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} engines: {node: '>=10.13.0'} hasBin: true - pure-rand@8.4.1: - resolution: {integrity: sha512-c58R2+SPFcSIPXoU834QN/KPDDOSd8sXcSrqf6e83Me6Rrp1EYkxukkjXMVrKvKaADs1SOyNkWdfvLf6zY8qLQ==} + proc-log@6.1.0: + resolution: {integrity: sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==} + engines: {node: ^20.17.0 || >=22.9.0} + + proggy@4.0.0: + resolution: {integrity: sha512-MbA4R+WQT76ZBm/5JUpV9yqcJt92175+Y0Bodg3HgiXzrmKu7Ggq+bpn6y6wHH+gN9NcyKn3yg1+d47VaKwNAQ==} + engines: {node: ^20.17.0 || >=22.9.0} + + promise-all-reject-late@1.0.1: + resolution: {integrity: sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==} + + promise-call-limit@3.0.2: + resolution: {integrity: sha512-mRPQO2T1QQVw11E7+UdCJu7S61eJVWknzml9sC1heAdj1jxl0fWMBypIt9ZOcLFf8FkG995ZD7RnVk7HH72fZw==} quansync@0.2.11: resolution: {integrity: sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==} @@ -1083,10 +1902,18 @@ packages: queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + read-cmd-shim@6.0.0: + resolution: {integrity: sha512-1zM5HuOfagXCBWMN83fuFI/x+T/UhZ7k+KIzhrHXcQoeX5+7gmaDYjELQHmmzIodumBHeByBJT4QYS7ufAgs7A==} + engines: {node: ^20.17.0 || >=22.9.0} + read-yaml-file@1.1.0: resolution: {integrity: sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA==} engines: {node: '>=6'} + redis@6.3.1: + resolution: {integrity: sha512-mV96ZKxQ4CGn3SyEGaY0Lb9YA443mdVey3c+mdr0NAUaBxiOZGoYCWX8PoM55kictSOmxlJRtZJxIsmZm3jL+w==} + engines: {node: '>= 20.0.0'} + resolve-from@5.0.0: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} @@ -1095,14 +1922,25 @@ packages: resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + rimraf@5.0.10: + resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==} + hasBin: true + rolldown@1.1.4: resolution: {integrity: sha512-IjZYiLxZwpnhwhdBH2ugdTGVSdhCQUmLxLoqyjiL0JxYjyRst+5a0P3xfrTxJ5F638j4Mvvw5FAX5XE6eHpXbA==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} @@ -1126,10 +1964,26 @@ packages: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} + sigstore@4.1.1: + resolution: {integrity: sha512-endqECJkfhozrXMK5ngu/UAA0xVcVEFdnHJCElGaExypjW+HK5i6zu3NteLoaX/iFbRUbC3+DjttQs0GARr+5w==} + engines: {node: ^20.17.0 || >=22.9.0} + slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} + smart-buffer@4.2.0: + resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} + engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} + + socks-proxy-agent@8.0.5: + resolution: {integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==} + engines: {node: '>= 14'} + + socks@2.8.10: + resolution: {integrity: sha512-e0VyvkVTwVYViNovRkZ9aodhxVlyoMn7eJhVUPxZ+eK9P/7CBkxvvsBOHqFPEH416726W8tLXXXjKwqgTErrCQ==} + engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} + source-map-js@1.2.1: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} @@ -1137,23 +1991,52 @@ packages: spawndamnit@3.0.1: resolution: {integrity: sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==} + spdx-exceptions@2.5.0: + resolution: {integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==} + + spdx-expression-parse@4.0.0: + resolution: {integrity: sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==} + + spdx-license-ids@3.0.24: + resolution: {integrity: sha512-cLS9TtWkIQFyLkJ3/5aFQAOHOSKTlOs/7WDut/XPSdjom1fJhUdkepeJAKXa9Y05+FabHd0sti+Et559vDtkpQ==} + sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} + ssri@13.0.1: + resolution: {integrity: sha512-QUiRf1+u9wPTL/76GTYlKttDEBWV1ga9ZXW8BG6kfdeyyM8LGPix9gROyg9V2+P0xNyF3X2Go526xKFdMZrHSQ==} + engines: {node: ^20.17.0 || >=22.9.0} + stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} std-env@4.1.0: resolution: {integrity: sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==} + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + strip-ansi@6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} + tar@7.5.22: + resolution: {integrity: sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==} + engines: {node: '>=18'} + term-size@2.2.1: resolution: {integrity: sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==} engines: {node: '>=8'} @@ -1181,16 +2064,20 @@ packages: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} - toml@4.1.2: - resolution: {integrity: sha512-m0vXfHODcw3gk+KONAOlVQ5yNHc3yS3B1ybM3HS1vqDoS0RWTDDVBVVTYi8hH0k+2OM1vmo9fb1WX9EVqjqfHA==} - engines: {node: '>=20'} - tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + treeverse@3.0.0: + resolution: {integrity: sha512-gcANaAnd2QDZFmHFEOF4k7uc1J/6a6z3DJMd/QwEyxLoKGiptJRwid582r7QIsFlFMIZ3SnxfS52S4hm2DHkuQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + tuf-js@4.1.0: + resolution: {integrity: sha512-50QV99kCKH5P/Vs4E2Gzp7BopNV+KzTXqWeaxrfu5IQJBOULRsTIS9seSsOVT8ZnGXzCyx55nYWAi4qJzpZKEQ==} + engines: {node: ^20.17.0 || >=22.9.0} + typescript@6.0.3: resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} engines: {node: '>=14.17'} @@ -1199,13 +2086,24 @@ packages: undici-types@8.3.0: resolution: {integrity: sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==} + undici@6.29.1: + resolution: {integrity: sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==} + engines: {node: '>=18.17'} + + undici@8.12.3: + resolution: {integrity: sha512-+fdndUTwBP86cVjihTp21hZHo7d6oj1c/47XPA3lL8mM0XHs+C4EkcjmgRsFnFk2f/UONGDy9ItBItmXsLOQHw==} + engines: {node: '>=22.19.0'} + universalify@0.1.2: resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} engines: {node: '>= 4.0.0'} - uuid@14.0.1: - resolution: {integrity: sha512-6ZxzVpzDXDa3bJWaHilVayA+BH/1zmxCJoVgvmqJnid/gPoKHxUrS/aC/T6LGQtNHT+XHG9fXPJB4d+IrU30Ew==} - hasBin: true + util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + + validate-npm-package-name@7.0.2: + resolution: {integrity: sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==} + engines: {node: ^20.17.0 || >=22.9.0} vite@8.1.3: resolution: {integrity: sha512-Ds+gBRbj0lwRO2Y5hwnUBdxSwlAve9LeRyU4sNnAr0ewW0gWF0n5bgXgUzbgZ49MV9BVUAQUFYVcDUcilUExMA==} @@ -1291,6 +2189,14 @@ packages: jsdom: optional: true + walk-up-path@4.0.0: + resolution: {integrity: sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==} + engines: {node: 20 || >=22} + + web-streams-polyfill@3.3.3: + resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==} + engines: {node: '>= 8'} + webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} @@ -1302,25 +2208,273 @@ packages: engines: {node: '>= 8'} hasBin: true + which@6.0.1: + resolution: {integrity: sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==} + engines: {node: ^20.17.0 || >=22.9.0} + hasBin: true + why-is-node-running@2.3.0: resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} engines: {node: '>=8'} hasBin: true + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + + write-file-atomic@7.0.1: + resolution: {integrity: sha512-OTIk8iR8/aCRWBqvxrzxR0hgxWpnYBblY1S5hDWBQfk/VFmJwzmJgQFN3WsoUKHISv2eAwe+PpbUzyL1CKTLXg==} + engines: {node: ^20.17.0 || >=22.9.0} + + ws@8.22.1: + resolution: {integrity: sha512-oyL6OPYme/CmiFvNuGzeoxCJ4nOrZE2O1FwM9MWM1AsGri6nLXB2pg+lNA8aLeXMSav0J6eIVS1j6vUPzUtK9g==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@4.0.0: + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + yaml@2.9.0: resolution: {integrity: sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==} engines: {node: '>= 14.6'} hasBin: true - zod@4.1.8: - resolution: {integrity: sha512-5R1P+WwQqmmMIEACyzSvo4JXHY5WiAFHRMg+zBZKgKS+Q1viRa0C1hmUKtHltoIFKtIdki3pRxkmpP74jnNYHQ==} - snapshots: '@ai-sdk/provider@3.0.8': dependencies: json-schema: 0.4.0 + '@aws-crypto/crc32@5.2.0': + dependencies: + '@aws-crypto/util': 5.2.0 + '@aws-sdk/types': 3.975.0 + tslib: 2.8.1 + + '@aws-crypto/sha256-browser@5.2.0': + dependencies: + '@aws-crypto/sha256-js': 5.2.0 + '@aws-crypto/supports-web-crypto': 5.2.0 + '@aws-crypto/util': 5.2.0 + '@aws-sdk/types': 3.975.0 + '@aws-sdk/util-locate-window': 3.965.10 + '@smithy/util-utf8': 2.3.0 + tslib: 2.8.1 + + '@aws-crypto/sha256-js@5.2.0': + dependencies: + '@aws-crypto/util': 5.2.0 + '@aws-sdk/types': 3.975.0 + tslib: 2.8.1 + + '@aws-crypto/supports-web-crypto@5.2.0': + dependencies: + tslib: 2.8.1 + + '@aws-crypto/util@5.2.0': + dependencies: + '@aws-sdk/types': 3.975.0 + '@smithy/util-utf8': 2.3.0 + tslib: 2.8.1 + + '@aws-sdk/client-cognito-identity@3.1057.0': + dependencies: + '@aws-crypto/sha256-browser': 5.2.0 + '@aws-crypto/sha256-js': 5.2.0 + '@aws-sdk/core': 3.979.1 + '@aws-sdk/credential-provider-node': 3.972.92 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/fetch-http-handler': 5.8.0 + '@smithy/node-http-handler': 4.14.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/core@3.979.1': + dependencies: + '@aws-sdk/types': 3.975.0 + '@aws-sdk/xml-builder': 3.972.42 + '@aws/lambda-invoke-store': 0.3.0 + '@smithy/core': 3.38.1 + '@smithy/signature-v4': 5.7.5 + '@smithy/types': 4.19.0 + bowser: 2.15.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-cognito-identity@3.972.79': + dependencies: + '@aws-sdk/nested-clients': 3.997.54 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-env@3.972.80': + dependencies: + '@aws-sdk/core': 3.979.1 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-http@3.972.82': + dependencies: + '@aws-sdk/core': 3.979.1 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/fetch-http-handler': 5.8.0 + '@smithy/node-http-handler': 4.14.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-ini@3.973.25': + dependencies: + '@aws-sdk/core': 3.979.1 + '@aws-sdk/credential-provider-env': 3.972.80 + '@aws-sdk/credential-provider-http': 3.972.82 + '@aws-sdk/credential-provider-login': 3.972.87 + '@aws-sdk/credential-provider-process': 3.972.80 + '@aws-sdk/credential-provider-sso': 3.973.24 + '@aws-sdk/credential-provider-web-identity': 3.972.86 + '@aws-sdk/nested-clients': 3.997.54 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/credential-provider-imds': 4.5.2 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-login@3.972.87': + dependencies: + '@aws-sdk/core': 3.979.1 + '@aws-sdk/nested-clients': 3.997.54 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-node@3.972.92': + dependencies: + '@aws-sdk/credential-provider-env': 3.972.80 + '@aws-sdk/credential-provider-http': 3.972.82 + '@aws-sdk/credential-provider-ini': 3.973.25 + '@aws-sdk/credential-provider-process': 3.972.80 + '@aws-sdk/credential-provider-sso': 3.973.24 + '@aws-sdk/credential-provider-web-identity': 3.972.86 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/credential-provider-imds': 4.5.2 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-process@3.972.80': + dependencies: + '@aws-sdk/core': 3.979.1 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-sso@3.973.24': + dependencies: + '@aws-sdk/core': 3.979.1 + '@aws-sdk/nested-clients': 3.997.54 + '@aws-sdk/token-providers': 3.1161.0 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-web-identity@3.972.86': + dependencies: + '@aws-sdk/core': 3.979.1 + '@aws-sdk/nested-clients': 3.997.54 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/credential-providers@3.1057.0': + dependencies: + '@aws-sdk/client-cognito-identity': 3.1057.0 + '@aws-sdk/core': 3.979.1 + '@aws-sdk/credential-provider-cognito-identity': 3.972.79 + '@aws-sdk/credential-provider-env': 3.972.80 + '@aws-sdk/credential-provider-http': 3.972.82 + '@aws-sdk/credential-provider-ini': 3.973.25 + '@aws-sdk/credential-provider-login': 3.972.87 + '@aws-sdk/credential-provider-node': 3.972.92 + '@aws-sdk/credential-provider-process': 3.972.80 + '@aws-sdk/credential-provider-sso': 3.973.24 + '@aws-sdk/credential-provider-web-identity': 3.972.86 + '@aws-sdk/nested-clients': 3.997.54 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/credential-provider-imds': 4.5.2 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/nested-clients@3.997.54': + dependencies: + '@aws-sdk/core': 3.979.1 + '@aws-sdk/signature-v4-multi-region': 3.996.51 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/fetch-http-handler': 5.8.0 + '@smithy/node-http-handler': 4.14.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/signature-v4-multi-region@3.996.51': + dependencies: + '@aws-sdk/types': 3.975.0 + '@smithy/signature-v4': 5.7.5 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/token-providers@3.1161.0': + dependencies: + '@aws-sdk/core': 3.979.1 + '@aws-sdk/nested-clients': 3.997.54 + '@aws-sdk/types': 3.975.0 + '@smithy/core': 3.38.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/types@3.975.0': + dependencies: + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws-sdk/util-locate-window@3.965.10': + dependencies: + tslib: 2.8.1 + + '@aws-sdk/xml-builder@3.972.42': + dependencies: + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@aws/lambda-invoke-store@0.3.0': {} + '@babel/runtime@7.29.7': {} '@changesets/apply-release-plan@7.1.1': @@ -1481,6 +2635,47 @@ snapshots: human-id: 4.2.0 prettier: 2.8.8 + '@effect/opentelemetry@4.0.1(@opentelemetry/api-logs@0.219.0)(@opentelemetry/api@1.9.0)(@opentelemetry/resources@2.8.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-logs@0.219.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-metrics@2.8.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.8.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-node@2.8.0(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.44.0)(effect@4.0.1)': + dependencies: + '@opentelemetry/semantic-conventions': 1.44.0 + effect: 4.0.1 + optionalDependencies: + '@opentelemetry/api': 1.9.0 + '@opentelemetry/api-logs': 0.219.0 + '@opentelemetry/resources': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-logs': 0.219.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-metrics': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-node': 2.8.0(@opentelemetry/api@1.9.0) + + '@effect/platform-node-shared@4.0.1(effect@4.0.1)': + dependencies: + '@types/ws': 8.18.2 + effect: 4.0.1 + ws: 8.22.1 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + '@effect/platform-node-shared@4.0.6(effect@4.0.1)': + dependencies: + '@types/ws': 8.18.2 + effect: 4.0.1 + ws: 8.22.1 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + '@effect/platform-node@4.0.1(effect@4.0.1)(redis@6.3.1(@opentelemetry/api@1.9.0))': + dependencies: + '@effect/platform-node-shared': 4.0.6(effect@4.0.1) + effect: 4.0.1 + redis: 6.3.1(@opentelemetry/api@1.9.0) + undici: 8.12.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + '@emnapi/core@1.11.1': dependencies: '@emnapi/wasi-threads': 1.2.2 @@ -1497,6 +2692,8 @@ snapshots: tslib: 2.8.1 optional: true + '@gar/promise-retry@1.0.3': {} + '@inquirer/external-editor@1.0.3(@types/node@26.1.0)': dependencies: chardet: 2.2.0 @@ -1504,6 +2701,21 @@ snapshots: optionalDependencies: '@types/node': 26.1.0 + '@isaacs/cliui@8.0.2': + dependencies: + string-width: 5.1.2 + string-width-cjs: string-width@4.2.3 + strip-ansi: 7.2.0 + strip-ansi-cjs: strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: wrap-ansi@7.0.0 + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@isaacs/string-locale-compare@1.1.0': {} + '@jridgewell/sourcemap-codec@1.5.5': {} '@manypkg/find-root@1.1.0': @@ -1522,24 +2734,6 @@ snapshots: globby: 11.1.0 read-yaml-file: 1.1.0 - '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.4': - optional: true - - '@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.4': - optional: true - - '@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.4': - optional: true - - '@msgpackr-extract/msgpackr-extract-linux-arm@3.0.4': - optional: true - - '@msgpackr-extract/msgpackr-extract-linux-x64@3.0.4': - optional: true - - '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.4': - optional: true - '@napi-rs/wasm-runtime@1.1.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)': dependencies: '@emnapi/core': 1.11.1 @@ -1559,57 +2753,328 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.20.1 - '@opencode-ai/plugin@1.17.13': + '@npmcli/agent@4.0.2': dependencies: - '@ai-sdk/provider': 3.0.8 - '@opencode-ai/sdk': 1.17.13 - effect: 4.0.0-beta.83 - zod: 4.1.8 + agent-base: 7.1.4 + http-proxy-agent: 7.0.2 + https-proxy-agent: 7.0.6 + lru-cache: 11.5.3 + socks-proxy-agent: 8.0.5 + transitivePeerDependencies: + - supports-color - '@opencode-ai/sdk@1.17.13': + '@npmcli/arborist@9.4.0': dependencies: - cross-spawn: 7.0.6 + '@isaacs/string-locale-compare': 1.1.0 + '@npmcli/fs': 5.0.0 + '@npmcli/installed-package-contents': 4.0.0 + '@npmcli/map-workspaces': 5.0.3 + '@npmcli/metavuln-calculator': 9.0.3 + '@npmcli/name-from-folder': 4.0.0 + '@npmcli/node-gyp': 5.0.0 + '@npmcli/package-json': 7.0.5 + '@npmcli/query': 5.0.0 + '@npmcli/redact': 4.0.0 + '@npmcli/run-script': 10.0.4 + bin-links: 6.0.3 + cacache: 20.0.4 + common-ancestor-path: 2.0.0 + hosted-git-info: 9.0.3 + json-stringify-nice: 1.1.4 + lru-cache: 11.5.3 + minimatch: 10.2.5 + nopt: 9.0.0 + npm-install-checks: 8.0.0 + npm-package-arg: 13.0.2 + npm-pick-manifest: 11.0.3 + npm-registry-fetch: 19.1.1 + pacote: 21.5.1 + parse-conflict-json: 5.0.1 + proc-log: 6.1.0 + proggy: 4.0.0 + promise-all-reject-late: 1.0.1 + promise-call-limit: 3.0.2 + semver: 7.8.5 + ssri: 13.0.1 + treeverse: 3.0.0 + walk-up-path: 4.0.0 + transitivePeerDependencies: + - supports-color - '@oxc-project/types@0.138.0': {} + '@npmcli/config@10.8.1': + dependencies: + '@npmcli/map-workspaces': 5.0.3 + '@npmcli/package-json': 7.0.5 + ci-info: 4.4.0 + ini: 6.0.0 + nopt: 9.0.0 + proc-log: 6.1.0 + semver: 7.8.5 + walk-up-path: 4.0.0 - '@oxfmt/binding-android-arm-eabi@0.57.0': - optional: true + '@npmcli/fs@5.0.0': + dependencies: + semver: 7.8.5 - '@oxfmt/binding-android-arm64@0.57.0': - optional: true + '@npmcli/git@7.0.2': + dependencies: + '@gar/promise-retry': 1.0.3 + '@npmcli/promise-spawn': 9.0.2 + ini: 6.0.0 + lru-cache: 11.5.3 + npm-pick-manifest: 11.0.3 + proc-log: 6.1.0 + semver: 7.8.5 + which: 6.0.1 - '@oxfmt/binding-darwin-arm64@0.57.0': - optional: true + '@npmcli/installed-package-contents@4.0.0': + dependencies: + npm-bundled: 5.0.0 + npm-normalize-package-bin: 5.0.0 - '@oxfmt/binding-darwin-x64@0.57.0': - optional: true + '@npmcli/map-workspaces@5.0.3': + dependencies: + '@npmcli/name-from-folder': 4.0.0 + '@npmcli/package-json': 7.0.5 + glob: 13.0.5 + minimatch: 10.2.5 - '@oxfmt/binding-freebsd-x64@0.57.0': - optional: true + '@npmcli/metavuln-calculator@9.0.3': + dependencies: + cacache: 20.0.4 + json-parse-even-better-errors: 5.0.0 + pacote: 21.5.1 + proc-log: 6.1.0 + semver: 7.8.5 + transitivePeerDependencies: + - supports-color - '@oxfmt/binding-linux-arm-gnueabihf@0.57.0': - optional: true + '@npmcli/name-from-folder@4.0.0': {} - '@oxfmt/binding-linux-arm-musleabihf@0.57.0': - optional: true + '@npmcli/node-gyp@5.0.0': {} - '@oxfmt/binding-linux-arm64-gnu@0.57.0': - optional: true + '@npmcli/package-json@7.0.5': + dependencies: + '@npmcli/git': 7.0.2 + glob: 13.0.5 + hosted-git-info: 9.0.3 + json-parse-even-better-errors: 5.0.0 + proc-log: 6.1.0 + semver: 7.8.5 + spdx-expression-parse: 4.0.0 - '@oxfmt/binding-linux-arm64-musl@0.57.0': - optional: true + '@npmcli/promise-spawn@9.0.2': + dependencies: + which: 6.0.1 - '@oxfmt/binding-linux-ppc64-gnu@0.57.0': - optional: true + '@npmcli/query@5.0.0': + dependencies: + postcss-selector-parser: 7.1.7 - '@oxfmt/binding-linux-riscv64-gnu@0.57.0': - optional: true + '@npmcli/redact@4.0.0': {} - '@oxfmt/binding-linux-riscv64-musl@0.57.0': - optional: true + '@npmcli/run-script@10.0.4': + dependencies: + '@npmcli/node-gyp': 5.0.0 + '@npmcli/package-json': 7.0.5 + '@npmcli/promise-spawn': 9.0.2 + node-gyp: 12.4.0 + proc-log: 6.1.0 - '@oxfmt/binding-linux-s390x-gnu@0.57.0': - optional: true + '@opencode/ai@2.0.32': + dependencies: + '@aws-sdk/credential-providers': 3.1057.0 + '@opencode/schema': 2.0.32 + '@smithy/eventstream-codec': 4.2.14 + '@smithy/util-utf8': 4.2.2 + aws4fetch: 1.0.20 + effect: 4.0.1 + google-auth-library: 10.5.0 + transitivePeerDependencies: + - supports-color + + '@opencode/client@2.0.32(effect@4.0.1)': + dependencies: + '@opencode/protocol': 2.0.32 + '@opencode/schema': 2.0.32 + optionalDependencies: + effect: 4.0.1 + + '@opencode/plugin@2.0.32(@opentelemetry/semantic-conventions@1.44.0)(redis@6.3.1(@opentelemetry/api@1.9.0))': + dependencies: + '@ai-sdk/provider': 3.0.8 + '@opencode/ai': 2.0.32 + '@opencode/client': 2.0.32(effect@4.0.1) + '@opencode/protocol': 2.0.32 + '@opencode/schema': 2.0.32 + '@opencode/util': 2.0.32(@opentelemetry/semantic-conventions@1.44.0)(redis@6.3.1(@opentelemetry/api@1.9.0)) + effect: 4.0.1 + transitivePeerDependencies: + - '@opentelemetry/sdk-trace-web' + - '@opentelemetry/semantic-conventions' + - bufferutil + - redis + - supports-color + - utf-8-validate + + '@opencode/protocol@2.0.32': + dependencies: + '@opencode/schema': 2.0.32 + effect: 4.0.1 + + '@opencode/schema@2.0.32': + dependencies: + '@standard-schema/spec': 1.1.0 + effect: 4.0.1 + + '@opencode/util@2.0.32(@opentelemetry/semantic-conventions@1.44.0)(redis@6.3.1(@opentelemetry/api@1.9.0))': + dependencies: + '@effect/opentelemetry': 4.0.1(@opentelemetry/api-logs@0.219.0)(@opentelemetry/api@1.9.0)(@opentelemetry/resources@2.8.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-logs@0.219.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-metrics@2.8.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.8.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-node@2.8.0(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.44.0)(effect@4.0.1) + '@effect/platform-node': 4.0.1(effect@4.0.1)(redis@6.3.1(@opentelemetry/api@1.9.0)) + '@effect/platform-node-shared': 4.0.1(effect@4.0.1) + '@npmcli/arborist': 9.4.0 + '@npmcli/config': 10.8.1 + '@opentelemetry/api': 1.9.0 + '@opentelemetry/api-logs': 0.219.0 + '@opentelemetry/context-async-hooks': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/exporter-trace-otlp-http': 0.219.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-logs': 0.219.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-metrics': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-node': 2.8.0(@opentelemetry/api@1.9.0) + cross-spawn: 7.0.6 + effect: 4.0.1 + glob: 13.0.5 + mime-types: 3.0.2 + minimatch: 10.2.5 + npm-package-arg: 13.0.2 + open: 11.0.4 + pacote: 21.5.1 + transitivePeerDependencies: + - '@opentelemetry/sdk-trace-web' + - '@opentelemetry/semantic-conventions' + - bufferutil + - redis + - supports-color + - utf-8-validate + + '@opentelemetry/api-logs@0.219.0': + dependencies: + '@opentelemetry/api': 1.9.0 + + '@opentelemetry/api@1.9.0': {} + + '@opentelemetry/context-async-hooks@2.8.0(@opentelemetry/api@1.9.0)': + dependencies: + '@opentelemetry/api': 1.9.0 + + '@opentelemetry/core@2.8.0(@opentelemetry/api@1.9.0)': + dependencies: + '@opentelemetry/api': 1.9.0 + '@opentelemetry/semantic-conventions': 1.44.0 + + '@opentelemetry/exporter-trace-otlp-http@0.219.0(@opentelemetry/api@1.9.0)': + dependencies: + '@opentelemetry/api': 1.9.0 + '@opentelemetry/core': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-exporter-base': 0.219.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-transformer': 0.219.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 2.8.0(@opentelemetry/api@1.9.0) + + '@opentelemetry/otlp-exporter-base@0.219.0(@opentelemetry/api@1.9.0)': + dependencies: + '@opentelemetry/api': 1.9.0 + '@opentelemetry/core': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-transformer': 0.219.0(@opentelemetry/api@1.9.0) + + '@opentelemetry/otlp-transformer@0.219.0(@opentelemetry/api@1.9.0)': + dependencies: + '@opentelemetry/api': 1.9.0 + '@opentelemetry/api-logs': 0.219.0 + '@opentelemetry/core': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-logs': 0.219.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-metrics': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 2.8.0(@opentelemetry/api@1.9.0) + + '@opentelemetry/resources@2.8.0(@opentelemetry/api@1.9.0)': + dependencies: + '@opentelemetry/api': 1.9.0 + '@opentelemetry/core': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/semantic-conventions': 1.44.0 + + '@opentelemetry/sdk-logs@0.219.0(@opentelemetry/api@1.9.0)': + dependencies: + '@opentelemetry/api': 1.9.0 + '@opentelemetry/api-logs': 0.219.0 + '@opentelemetry/core': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/semantic-conventions': 1.44.0 + + '@opentelemetry/sdk-metrics@2.8.0(@opentelemetry/api@1.9.0)': + dependencies: + '@opentelemetry/api': 1.9.0 + '@opentelemetry/core': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 2.8.0(@opentelemetry/api@1.9.0) + + '@opentelemetry/sdk-trace-base@2.8.0(@opentelemetry/api@1.9.0)': + dependencies: + '@opentelemetry/api': 1.9.0 + '@opentelemetry/core': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/semantic-conventions': 1.44.0 + + '@opentelemetry/sdk-trace-node@2.8.0(@opentelemetry/api@1.9.0)': + dependencies: + '@opentelemetry/api': 1.9.0 + '@opentelemetry/context-async-hooks': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 2.8.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 2.8.0(@opentelemetry/api@1.9.0) + + '@opentelemetry/semantic-conventions@1.44.0': {} + + '@oxc-project/types@0.138.0': {} + + '@oxfmt/binding-android-arm-eabi@0.57.0': + optional: true + + '@oxfmt/binding-android-arm64@0.57.0': + optional: true + + '@oxfmt/binding-darwin-arm64@0.57.0': + optional: true + + '@oxfmt/binding-darwin-x64@0.57.0': + optional: true + + '@oxfmt/binding-freebsd-x64@0.57.0': + optional: true + + '@oxfmt/binding-linux-arm-gnueabihf@0.57.0': + optional: true + + '@oxfmt/binding-linux-arm-musleabihf@0.57.0': + optional: true + + '@oxfmt/binding-linux-arm64-gnu@0.57.0': + optional: true + + '@oxfmt/binding-linux-arm64-musl@0.57.0': + optional: true + + '@oxfmt/binding-linux-ppc64-gnu@0.57.0': + optional: true + + '@oxfmt/binding-linux-riscv64-gnu@0.57.0': + optional: true + + '@oxfmt/binding-linux-riscv64-musl@0.57.0': + optional: true + + '@oxfmt/binding-linux-s390x-gnu@0.57.0': + optional: true '@oxfmt/binding-linux-x64-gnu@0.57.0': optional: true @@ -1686,6 +3151,29 @@ snapshots: '@oxlint/binding-win32-x64-msvc@1.72.0': optional: true + '@pkgjs/parseargs@0.11.0': + optional: true + + '@redis/bloom@6.3.1(@redis/client@6.3.1(@opentelemetry/api@1.9.0))': + dependencies: + '@redis/client': 6.3.1(@opentelemetry/api@1.9.0) + + '@redis/client@6.3.1(@opentelemetry/api@1.9.0)': + optionalDependencies: + '@opentelemetry/api': 1.9.0 + + '@redis/json@6.3.1(@redis/client@6.3.1(@opentelemetry/api@1.9.0))': + dependencies: + '@redis/client': 6.3.1(@opentelemetry/api@1.9.0) + + '@redis/search@6.3.1(@redis/client@6.3.1(@opentelemetry/api@1.9.0))': + dependencies: + '@redis/client': 6.3.1(@opentelemetry/api@1.9.0) + + '@redis/time-series@6.3.1(@redis/client@6.3.1(@opentelemetry/api@1.9.0))': + dependencies: + '@redis/client': 6.3.1(@opentelemetry/api@1.9.0) + '@rolldown/binding-android-arm64@1.1.4': optional: true @@ -1737,8 +3225,116 @@ snapshots: '@rolldown/pluginutils@1.0.1': {} + '@sigstore/bundle@4.0.0': + dependencies: + '@sigstore/protobuf-specs': 0.5.2 + + '@sigstore/core@3.2.1': {} + + '@sigstore/protobuf-specs@0.5.2': {} + + '@sigstore/sign@4.1.1': + dependencies: + '@gar/promise-retry': 1.0.3 + '@sigstore/bundle': 4.0.0 + '@sigstore/core': 3.2.1 + '@sigstore/protobuf-specs': 0.5.2 + make-fetch-happen: 15.0.6 + proc-log: 6.1.0 + transitivePeerDependencies: + - supports-color + + '@sigstore/tuf@4.0.2': + dependencies: + '@sigstore/protobuf-specs': 0.5.2 + tuf-js: 4.1.0 + transitivePeerDependencies: + - supports-color + + '@sigstore/verify@3.1.1': + dependencies: + '@sigstore/bundle': 4.0.0 + '@sigstore/core': 3.2.1 + '@sigstore/protobuf-specs': 0.5.2 + + '@smithy/core@3.38.1': + dependencies: + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@smithy/credential-provider-imds@4.5.2': + dependencies: + '@smithy/core': 3.38.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@smithy/eventstream-codec@4.2.14': + dependencies: + '@aws-crypto/crc32': 5.2.0 + '@smithy/types': 4.19.0 + '@smithy/util-hex-encoding': 4.5.2 + tslib: 2.8.1 + + '@smithy/fetch-http-handler@5.8.0': + dependencies: + '@smithy/core': 3.38.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@smithy/is-array-buffer@2.2.0': + dependencies: + tslib: 2.8.1 + + '@smithy/node-http-handler@4.14.1': + dependencies: + '@smithy/core': 3.38.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@smithy/signature-v4@5.7.5': + dependencies: + '@smithy/core': 3.38.1 + '@smithy/types': 4.19.0 + tslib: 2.8.1 + + '@smithy/types@4.19.0': + dependencies: + tslib: 2.8.1 + + '@smithy/util-buffer-from@2.2.0': + dependencies: + '@smithy/is-array-buffer': 2.2.0 + tslib: 2.8.1 + + '@smithy/util-buffer-from@4.5.2': + dependencies: + '@smithy/core': 3.38.1 + tslib: 2.8.1 + + '@smithy/util-hex-encoding@4.5.2': + dependencies: + '@smithy/core': 3.38.1 + tslib: 2.8.1 + + '@smithy/util-utf8@2.3.0': + dependencies: + '@smithy/util-buffer-from': 2.2.0 + tslib: 2.8.1 + + '@smithy/util-utf8@4.2.2': + dependencies: + '@smithy/util-buffer-from': 4.5.2 + tslib: 2.8.1 + '@standard-schema/spec@1.1.0': {} + '@tufjs/canonical-json@2.0.0': {} + + '@tufjs/models@4.1.0': + dependencies: + '@tufjs/canonical-json': 2.0.0 + minimatch: 10.2.5 + '@tybys/wasm-util@0.10.3': dependencies: tslib: 2.8.1 @@ -1759,6 +3355,10 @@ snapshots: dependencies: undici-types: 8.3.0 + '@types/ws@8.18.2': + dependencies: + '@types/node': 26.1.0 + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260703.1': optional: true @@ -1831,10 +3431,22 @@ snapshots: convert-source-map: 2.0.0 tinyrainbow: 3.1.0 + abbrev@4.0.0: {} + + agent-base@7.1.4: {} + ansi-colors@4.1.3: {} ansi-regex@5.0.1: {} + ansi-regex@6.5.0: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ansi-styles@6.2.3: {} + argparse@1.0.10: dependencies: sprintf-js: 1.0.3 @@ -1845,18 +3457,81 @@ snapshots: assertion-error@2.0.1: {} + aws4fetch@1.0.20: {} + + balanced-match@1.0.2: {} + + balanced-match@4.0.4: {} + + base64-js@1.5.1: {} + better-path-resolve@1.0.0: dependencies: is-windows: 1.0.2 + bignumber.js@9.3.1: {} + + bin-links@6.0.3: + dependencies: + cmd-shim: 8.0.0 + npm-normalize-package-bin: 5.0.0 + proc-log: 6.1.0 + read-cmd-shim: 6.0.0 + write-file-atomic: 7.0.1 + + bowser@2.15.0: {} + + brace-expansion@2.1.7: + dependencies: + balanced-match: 1.0.2 + + brace-expansion@5.0.12: + dependencies: + balanced-match: 4.0.4 + braces@3.0.3: dependencies: fill-range: 7.1.1 + buffer-equal-constant-time@1.0.1: {} + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + cacache@20.0.4: + dependencies: + '@npmcli/fs': 5.0.0 + fs-minipass: 3.0.3 + glob: 13.0.5 + lru-cache: 11.5.3 + minipass: 7.1.3 + minipass-collect: 2.0.1 + minipass-flush: 1.0.7 + minipass-pipeline: 1.2.4 + p-map: 7.1.1 + ssri: 13.0.1 + chai@6.2.2: {} chardet@2.2.0: {} + chownr@3.0.0: {} + + ci-info@4.4.0: {} + + cmd-shim@8.0.0: {} + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + common-ancestor-path@2.0.0: {} + + content-type@2.1.0: {} + convert-source-map@2.0.0: {} cross-spawn@7.0.6: @@ -1865,8 +3540,25 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 + cssesc@3.0.0: {} + + data-uri-to-buffer@4.0.1: {} + dataloader@1.4.0: {} + debug@4.4.3: + dependencies: + ms: 2.1.3 + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + detect-indent@6.1.0: {} detect-libc@2.1.2: {} @@ -1877,24 +3569,25 @@ snapshots: dotenv@8.6.0: {} - effect@4.0.0-beta.83: + eastasianwidth@0.2.0: {} + + ecdsa-sig-formatter@1.0.11: dependencies: - '@standard-schema/spec': 1.1.0 - fast-check: 4.8.0 - find-my-way-ts: 0.1.6 - ini: 7.0.0 - kubernetes-types: 1.30.0 - msgpackr: 2.0.4 - multipasta: 0.2.7 - toml: 4.1.2 - uuid: 14.0.1 - yaml: 2.9.0 + safe-buffer: 5.2.1 + + effect@4.0.1: {} + + emoji-regex@8.0.0: {} + + emoji-regex@9.2.2: {} enquirer@2.4.1: dependencies: ansi-colors: 4.1.3 strip-ansi: 6.0.1 + env-paths@2.2.1: {} + es-module-lexer@2.3.0: {} esprima@4.0.1: {} @@ -1905,11 +3598,11 @@ snapshots: expect-type@1.4.0: {} - extendable-error@0.1.7: {} + exponential-backoff@3.1.3: {} - fast-check@4.8.0: - dependencies: - pure-rand: 8.4.1 + extend@3.0.2: {} + + extendable-error@0.1.7: {} fast-glob@3.3.3: dependencies: @@ -1927,17 +3620,29 @@ snapshots: optionalDependencies: picomatch: 4.0.4 + fetch-blob@3.2.0: + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 3.3.3 + fill-range@7.1.1: dependencies: to-regex-range: 5.0.1 - find-my-way-ts@0.1.6: {} - find-up@4.1.0: dependencies: locate-path: 5.0.0 path-exists: 4.0.0 + foreground-child@3.3.1: + dependencies: + cross-spawn: 7.0.6 + signal-exit: 4.1.0 + + formdata-polyfill@4.0.10: + dependencies: + fetch-blob: 3.2.0 + fs-extra@7.0.1: dependencies: graceful-fs: 4.2.11 @@ -1950,13 +3655,57 @@ snapshots: jsonfile: 4.0.0 universalify: 0.1.2 + fs-minipass@3.0.3: + dependencies: + minipass: 7.1.3 + fsevents@2.3.3: optional: true + gaxios@7.1.3: + dependencies: + extend: 3.0.2 + https-proxy-agent: 7.0.6 + node-fetch: 3.3.2 + rimraf: 5.0.10 + transitivePeerDependencies: + - supports-color + + gaxios@7.3.1: + dependencies: + extend: 3.0.2 + https-proxy-agent: 7.0.6 + node-fetch: 3.3.2 + transitivePeerDependencies: + - supports-color + + gcp-metadata@8.1.4: + dependencies: + gaxios: 7.1.3 + google-logging-utils: 1.1.3 + json-bigint: 1.0.0 + transitivePeerDependencies: + - supports-color + glob-parent@5.1.2: dependencies: is-glob: 4.0.3 + glob@10.5.0: + dependencies: + foreground-child: 3.3.1 + jackspeak: 3.4.3 + minimatch: 9.0.9 + minipass: 7.1.3 + package-json-from-dist: 1.0.1 + path-scurry: 1.11.1 + + glob@13.0.5: + dependencies: + minimatch: 10.2.5 + minipass: 7.1.3 + path-scurry: 2.0.2 + globby@11.1.0: dependencies: array-union: 2.1.0 @@ -1966,8 +3715,51 @@ snapshots: merge2: 1.4.1 slash: 3.0.0 + google-auth-library@10.5.0: + dependencies: + base64-js: 1.5.1 + ecdsa-sig-formatter: 1.0.11 + gaxios: 7.3.1 + gcp-metadata: 8.1.4 + google-logging-utils: 1.2.0 + gtoken: 8.0.0 + jws: 4.0.1 + transitivePeerDependencies: + - supports-color + + google-logging-utils@1.1.3: {} + + google-logging-utils@1.2.0: {} + graceful-fs@4.2.11: {} + gtoken@8.0.0: + dependencies: + gaxios: 7.3.1 + jws: 4.0.1 + transitivePeerDependencies: + - supports-color + + hosted-git-info@9.0.3: + dependencies: + lru-cache: 11.5.3 + + http-cache-semantics@4.3.0: {} + + http-proxy-agent@7.0.2: + dependencies: + agent-base: 7.1.4 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + https-proxy-agent@7.0.6: + dependencies: + agent-base: 7.1.4 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + human-id@4.2.0: {} husky@9.1.7: {} @@ -1976,16 +3768,32 @@ snapshots: dependencies: safer-buffer: 2.1.2 + ignore-walk@8.0.0: + dependencies: + minimatch: 10.2.5 + ignore@5.3.2: {} - ini@7.0.0: {} + ini@6.0.0: {} + + ip-address@10.7.5: {} + + is-docker@3.0.0: {} is-extglob@2.1.1: {} + is-fullwidth-code-point@3.0.0: {} + is-glob@4.0.3: dependencies: is-extglob: 2.1.1 + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + is-number@7.0.0: {} is-subdir@1.2.0: @@ -1994,8 +3802,20 @@ snapshots: is-windows@1.0.2: {} + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + isexe@2.0.0: {} + isexe@4.0.0: {} + + jackspeak@3.4.3: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + js-yaml@3.15.0: dependencies: argparse: 1.0.10 @@ -2005,13 +3825,36 @@ snapshots: dependencies: argparse: 2.0.1 + json-bigint@1.0.0: + dependencies: + bignumber.js: 9.3.1 + + json-parse-even-better-errors@5.0.0: {} + json-schema@0.4.0: {} + json-stringify-nice@1.1.4: {} + jsonfile@4.0.0: optionalDependencies: graceful-fs: 4.2.11 - kubernetes-types@1.30.0: {} + jsonparse@1.3.1: {} + + just-diff-apply@5.5.0: {} + + just-diff@6.0.2: {} + + jwa@2.0.1: + dependencies: + buffer-equal-constant-time: 1.0.1 + ecdsa-sig-formatter: 1.0.11 + safe-buffer: 5.2.1 + + jws@4.0.1: + dependencies: + jwa: 2.0.1 + safe-buffer: 5.2.1 lightningcss-android-arm64@1.32.0: optional: true @@ -2068,10 +3911,31 @@ snapshots: lodash.startcase@4.4.0: {} + lru-cache@10.4.3: {} + + lru-cache@11.5.3: {} + magic-string@0.30.21: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 + make-fetch-happen@15.0.6: + dependencies: + '@gar/promise-retry': 1.0.3 + '@npmcli/agent': 4.0.2 + '@npmcli/redact': 4.0.0 + cacache: 20.0.4 + http-cache-semantics: 4.3.0 + minipass: 7.1.3 + minipass-fetch: 5.0.2 + minipass-flush: 1.0.7 + minipass-pipeline: 1.2.4 + negotiator: 1.1.0 + proc-log: 6.1.0 + ssri: 13.0.1 + transitivePeerDependencies: + - supports-color + merge2@1.4.1: {} micromatch@4.0.8: @@ -2079,39 +3943,146 @@ snapshots: braces: 3.0.3 picomatch: 2.3.2 - mri@1.2.0: {} + mime-db@1.54.0: {} - msgpackr-extract@3.0.4: + mime-types@3.0.2: dependencies: - node-gyp-build-optional-packages: 5.2.2 - optionalDependencies: - '@msgpackr-extract/msgpackr-extract-darwin-arm64': 3.0.4 - '@msgpackr-extract/msgpackr-extract-darwin-x64': 3.0.4 - '@msgpackr-extract/msgpackr-extract-linux-arm': 3.0.4 - '@msgpackr-extract/msgpackr-extract-linux-arm64': 3.0.4 - '@msgpackr-extract/msgpackr-extract-linux-x64': 3.0.4 - '@msgpackr-extract/msgpackr-extract-win32-x64': 3.0.4 - optional: true + mime-db: 1.54.0 + + minimatch@10.2.5: + dependencies: + brace-expansion: 5.0.12 + + minimatch@9.0.9: + dependencies: + brace-expansion: 2.1.7 + + minipass-collect@2.0.1: + dependencies: + minipass: 7.1.3 - msgpackr@2.0.4: + minipass-fetch@5.0.2: + dependencies: + minipass: 7.1.3 + minipass-sized: 2.0.0 + minizlib: 3.1.0 optionalDependencies: - msgpackr-extract: 3.0.4 + iconv-lite: 0.7.2 + + minipass-flush@1.0.7: + dependencies: + minipass: 3.3.6 + + minipass-pipeline@1.2.4: + dependencies: + minipass: 3.3.6 - multipasta@0.2.7: {} + minipass-sized@2.0.0: + dependencies: + minipass: 7.1.3 + + minipass@3.3.6: + dependencies: + yallist: 4.0.0 + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mri@1.2.0: {} + + ms@2.1.3: {} nanoid@3.3.15: {} + negotiator@1.1.0: + dependencies: + content-type: 2.1.0 + + node-domexception@1.0.0: {} + node-fetch@2.7.0: dependencies: whatwg-url: 5.0.0 - node-gyp-build-optional-packages@5.2.2: + node-fetch@3.3.2: dependencies: - detect-libc: 2.1.2 - optional: true + data-uri-to-buffer: 4.0.1 + fetch-blob: 3.2.0 + formdata-polyfill: 4.0.10 + + node-gyp@12.4.0: + dependencies: + env-paths: 2.2.1 + exponential-backoff: 3.1.3 + graceful-fs: 4.2.11 + nopt: 9.0.0 + proc-log: 6.1.0 + semver: 7.8.5 + tar: 7.5.22 + tinyglobby: 0.2.17 + undici: 6.29.1 + which: 6.0.1 + + nopt@9.0.0: + dependencies: + abbrev: 4.0.0 + + npm-bundled@5.0.0: + dependencies: + npm-normalize-package-bin: 5.0.0 + + npm-install-checks@8.0.0: + dependencies: + semver: 7.8.5 + + npm-normalize-package-bin@5.0.0: {} + + npm-package-arg@13.0.2: + dependencies: + hosted-git-info: 9.0.3 + proc-log: 6.1.0 + semver: 7.8.5 + validate-npm-package-name: 7.0.2 + + npm-packlist@10.0.4: + dependencies: + ignore-walk: 8.0.0 + proc-log: 6.1.0 + + npm-pick-manifest@11.0.3: + dependencies: + npm-install-checks: 8.0.0 + npm-normalize-package-bin: 5.0.0 + npm-package-arg: 13.0.2 + semver: 7.8.5 + + npm-registry-fetch@19.1.1: + dependencies: + '@npmcli/redact': 4.0.0 + jsonparse: 1.3.1 + make-fetch-happen: 15.0.6 + minipass: 7.1.3 + minipass-fetch: 5.0.2 + minizlib: 3.1.0 + npm-package-arg: 13.0.2 + proc-log: 6.1.0 + transitivePeerDependencies: + - supports-color obug@2.1.3: {} + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + outdent@0.5.0: {} oxfmt@0.57.0: @@ -2174,16 +4145,58 @@ snapshots: p-map@2.1.0: {} + p-map@7.1.1: {} + p-try@2.2.0: {} + package-json-from-dist@1.0.1: {} + package-manager-detector@0.2.11: dependencies: quansync: 0.2.11 + pacote@21.5.1: + dependencies: + '@gar/promise-retry': 1.0.3 + '@npmcli/git': 7.0.2 + '@npmcli/installed-package-contents': 4.0.0 + '@npmcli/package-json': 7.0.5 + '@npmcli/promise-spawn': 9.0.2 + '@npmcli/run-script': 10.0.4 + cacache: 20.0.4 + fs-minipass: 3.0.3 + minipass: 7.1.3 + npm-package-arg: 13.0.2 + npm-packlist: 10.0.4 + npm-pick-manifest: 11.0.3 + npm-registry-fetch: 19.1.1 + proc-log: 6.1.0 + sigstore: 4.1.1 + ssri: 13.0.1 + tar: 7.5.22 + transitivePeerDependencies: + - supports-color + + parse-conflict-json@5.0.1: + dependencies: + json-parse-even-better-errors: 5.0.0 + just-diff: 6.0.2 + just-diff-apply: 5.5.0 + path-exists@4.0.0: {} path-key@3.1.1: {} + path-scurry@1.11.1: + dependencies: + lru-cache: 10.4.3 + minipass: 7.1.3 + + path-scurry@2.0.2: + dependencies: + lru-cache: 11.5.3 + minipass: 7.1.3 + path-type@4.0.0: {} pathe@2.0.3: {} @@ -2196,20 +4209,35 @@ snapshots: pify@4.0.1: {} + postcss-selector-parser@7.1.7: + dependencies: + cssesc: 3.0.0 + util-deprecate: 1.0.2 + postcss@8.5.16: dependencies: nanoid: 3.3.15 picocolors: 1.1.1 source-map-js: 1.2.1 + powershell-utils@0.2.1: {} + prettier@2.8.8: {} - pure-rand@8.4.1: {} + proc-log@6.1.0: {} + + proggy@4.0.0: {} + + promise-all-reject-late@1.0.1: {} + + promise-call-limit@3.0.2: {} quansync@0.2.11: {} queue-microtask@1.2.3: {} + read-cmd-shim@6.0.0: {} + read-yaml-file@1.1.0: dependencies: graceful-fs: 4.2.11 @@ -2217,10 +4245,25 @@ snapshots: pify: 4.0.1 strip-bom: 3.0.0 + redis@6.3.1(@opentelemetry/api@1.9.0): + dependencies: + '@redis/bloom': 6.3.1(@redis/client@6.3.1(@opentelemetry/api@1.9.0)) + '@redis/client': 6.3.1(@opentelemetry/api@1.9.0) + '@redis/json': 6.3.1(@redis/client@6.3.1(@opentelemetry/api@1.9.0)) + '@redis/search': 6.3.1(@redis/client@6.3.1(@opentelemetry/api@1.9.0)) + '@redis/time-series': 6.3.1(@redis/client@6.3.1(@opentelemetry/api@1.9.0)) + transitivePeerDependencies: + - '@node-rs/xxhash' + - '@opentelemetry/api' + resolve-from@5.0.0: {} reusify@1.1.0: {} + rimraf@5.0.10: + dependencies: + glob: 10.5.0 + rolldown@1.1.4: dependencies: '@oxc-project/types': 0.138.0 @@ -2242,10 +4285,14 @@ snapshots: '@rolldown/binding-win32-arm64-msvc': 1.1.4 '@rolldown/binding-win32-x64-msvc': 1.1.4 + run-applescript@7.1.0: {} + run-parallel@1.2.0: dependencies: queue-microtask: 1.2.3 + safe-buffer@5.2.1: {} + safer-buffer@2.1.2: {} semver@7.8.5: {} @@ -2260,8 +4307,34 @@ snapshots: signal-exit@4.1.0: {} + sigstore@4.1.1: + dependencies: + '@sigstore/bundle': 4.0.0 + '@sigstore/core': 3.2.1 + '@sigstore/protobuf-specs': 0.5.2 + '@sigstore/sign': 4.1.1 + '@sigstore/tuf': 4.0.2 + '@sigstore/verify': 3.1.1 + transitivePeerDependencies: + - supports-color + slash@3.0.0: {} + smart-buffer@4.2.0: {} + + socks-proxy-agent@8.0.5: + dependencies: + agent-base: 7.1.4 + debug: 4.4.3 + socks: 2.8.10 + transitivePeerDependencies: + - supports-color + + socks@2.8.10: + dependencies: + ip-address: 10.7.5 + smart-buffer: 4.2.0 + source-map-js@1.2.1: {} spawndamnit@3.0.1: @@ -2269,18 +4342,55 @@ snapshots: cross-spawn: 7.0.6 signal-exit: 4.1.0 + spdx-exceptions@2.5.0: {} + + spdx-expression-parse@4.0.0: + dependencies: + spdx-exceptions: 2.5.0 + spdx-license-ids: 3.0.24 + + spdx-license-ids@3.0.24: {} + sprintf-js@1.0.3: {} + ssri@13.0.1: + dependencies: + minipass: 7.1.3 + stackback@0.0.2: {} std-env@4.1.0: {} + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + string-width@5.1.2: + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.2.0 + strip-ansi@6.0.1: dependencies: ansi-regex: 5.0.1 + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.5.0 + strip-bom@3.0.0: {} + tar@7.5.22: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + term-size@2.2.1: {} tinybench@2.9.0: {} @@ -2300,20 +4410,33 @@ snapshots: dependencies: is-number: 7.0.0 - toml@4.1.2: {} - tr46@0.0.3: {} - tslib@2.8.1: - optional: true + treeverse@3.0.0: {} + + tslib@2.8.1: {} + + tuf-js@4.1.0: + dependencies: + '@tufjs/models': 4.1.0 + debug: 4.4.3 + make-fetch-happen: 15.0.6 + transitivePeerDependencies: + - supports-color typescript@6.0.3: {} undici-types@8.3.0: {} + undici@6.29.1: {} + + undici@8.12.3: {} + universalify@0.1.2: {} - uuid@14.0.1: {} + util-deprecate@1.0.2: {} + + validate-npm-package-name@7.0.2: {} vite@8.1.3(@types/node@26.1.0)(yaml@2.9.0): dependencies: @@ -2327,7 +4450,7 @@ snapshots: fsevents: 2.3.3 yaml: 2.9.0 - vitest@4.1.9(@types/node@26.1.0)(vite@8.1.3(@types/node@26.1.0)(yaml@2.9.0)): + vitest@4.1.9(@opentelemetry/api@1.9.0)(@types/node@26.1.0)(vite@8.1.3(@types/node@26.1.0)(yaml@2.9.0)): dependencies: '@vitest/expect': 4.1.9 '@vitest/mocker': 4.1.9(vite@8.1.3(@types/node@26.1.0)(yaml@2.9.0)) @@ -2350,10 +4473,15 @@ snapshots: vite: 8.1.3(@types/node@26.1.0)(yaml@2.9.0) why-is-node-running: 2.3.0 optionalDependencies: + '@opentelemetry/api': 1.9.0 '@types/node': 26.1.0 transitivePeerDependencies: - msw + walk-up-path@4.0.0: {} + + web-streams-polyfill@3.3.3: {} + webidl-conversions@3.0.1: {} whatwg-url@5.0.0: @@ -2365,11 +4493,41 @@ snapshots: dependencies: isexe: 2.0.0 + which@6.0.1: + dependencies: + isexe: 4.0.0 + why-is-node-running@2.3.0: dependencies: siginfo: 2.0.0 stackback: 0.0.2 - yaml@2.9.0: {} + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@8.1.0: + dependencies: + ansi-styles: 6.2.3 + string-width: 5.1.2 + strip-ansi: 7.2.0 + + write-file-atomic@7.0.1: + dependencies: + signal-exit: 4.1.0 + + ws@8.22.1: {} - zod@4.1.8: {} + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@4.0.0: {} + + yallist@5.0.0: {} + + yaml@2.9.0: + optional: true diff --git a/rolldown.config.ts b/rolldown.config.ts index 90e9214..f756473 100644 --- a/rolldown.config.ts +++ b/rolldown.config.ts @@ -7,4 +7,5 @@ export default defineConfig({ format: "esm", }, platform: "node", + external: ["@opencode/plugin"], }); diff --git a/src/index.test.ts b/src/index.test.ts index 78214be..8437f53 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -1,550 +1,1825 @@ -import { describe, expect, test, vi } from "vitest"; +import { afterEach, describe, expect, test, vi } from "vitest"; import { AdaptiveThinkingPlugin } from "./index"; -const variants = { none: {}, low: {}, medium: {}, high: {}, xhigh: {} }; - -const message = (variant?: string, agent = "agent") => ({ - info: { - role: "user", - agent, - model: { providerID: "provider", modelID: "model", ...(variant ? { variant } : {}) }, - }, - parts: [], +const variants = [ + { id: "none", settings: { reasoningEffort: "none" } }, + { id: "low", settings: { reasoningEffort: "low" } }, + { id: "medium", settings: { reasoningEffort: "medium" } }, + { id: "high", settings: { reasoningEffort: "high" } }, + { id: "xhigh", settings: { reasoningEffort: "xhigh" } }, +]; + +const model = (variant?: string, providerID = "provider", id = "model") => ({ + providerID, + id, + ...(variant ? { variant } : {}), }); -const assistant = (variant?: string) => ({ - info: { - role: "assistant", - agent: "agent", - providerID: "provider", - modelID: "model", - ...(variant ? { variant } : {}), - }, - parts: [], +const userMessage = (text = "", created = 0) => ({ type: "user", text, time: { created } }); +const assistantMessage = (variant?: string, created = 1) => ({ + type: "assistant", + agent: "agent", + model: model(variant), + content: [{ type: "text", text: "assistant text" }], + time: { created }, +}); +const switchedMessage = (variant?: string, created = 1) => ({ + type: "model-switched", + model: model(variant), + time: { created }, }); +const compactionMessage = (summary: string, created = 1) => ({ + type: "compaction", + status: "completed", + reason: "auto", + summary, + time: { created }, +}); + +type HarnessOptions = { + messages?: Array; + modelVariants?: Array<{ + id: string; + settings?: Record; + headers?: Record; + body?: Record; + }>; + modelRecords?: Array<{ + id?: string; + modelID: string; + providerID: string; + settings?: Record; + headers?: Record; + body?: Record; + variants: Array<{ + id: string; + settings?: Record; + headers?: Record; + body?: Record; + }>; + }>; + agents?: Record; + agent?: string; + sessionModel?: { providerID: string; id: string; variant?: string }; + answer?: string; + experimentalGenerate?: boolean; +}; + +const quietConsole = () => { + vi.spyOn(console, "error").mockImplementation(() => {}); + vi.spyOn(console, "warn").mockImplementation(() => {}); +}; -const createClient = ( - messages: Array = [], - modelVariants: Record = variants, - agents: Record = {}, -) => { - const prompts: Array = []; - const client = { +let sessionCounter = 0; + +const createHarness = async (options: unknown = undefined, setup: HarnessOptions = {}) => { + quietConsole(); + const sessionID = `session-${++sessionCounter}`; + + const messages = setup.messages ?? []; + const modelVariants = setup.modelVariants ?? variants; + const switched: Array<{ providerID: string; id: string; variant?: string }> = []; + const agentSwitches: Array = []; + const generated: Array = []; + const registered: Array = []; + const diagnostics: Array<{ key: string; value: any }> = []; + const subscriptionSignals: Array = []; + const subscriptionTypes: Array | undefined> = []; + const hooks: Record unknown>> = {}; + const queue: Array = []; + let waiting: ((result: IteratorResult) => void) | undefined; + + const session: any = { id: sessionID, agent: setup.agent ?? "agent" }; + if (setup.sessionModel) session.model = setup.sessionModel; + + const records: NonNullable = setup.modelRecords ?? [ + { + id: "model", + modelID: "model", + providerID: "provider", + settings: {}, + headers: {}, + body: {}, + variants: modelVariants, + }, + { + id: "narrow", + modelID: "narrow", + providerID: "other", + settings: {}, + headers: {}, + body: {}, + variants: [ + { id: "low", settings: { reasoningEffort: "low" } }, + { id: "medium", settings: { reasoningEffort: "medium" } }, + ], + }, + ]; + + const modelList = vi.fn(async () => ({ + location: {}, + data: records, + })); + + const agentList = vi.fn(async () => ({ + location: {}, + data: Object.entries(setup.agents ?? {}).map(([name, variant]) => ({ + id: name, + name, + model: model(variant), + })), + })); + + const switchModel = vi.fn(async (input: any) => { + switched.push(input.model); + session.model = input.model; + }); + const switchAgent = vi.fn(async (input: any) => { + agentSwitches.push(input.agent); + session.agent = input.agent; + }); + + const generateText = vi.fn(async (input: any) => { + generated.push(input); + return { text: setup.answer ?? "high" }; + }); + + const experimentalGenerateText = vi.fn(async (input: any) => { + generated.push(input); + return { text: setup.answer ?? "high" }; + }); + + const subscribe = vi.fn((options?: { signal?: AbortSignal; types?: ReadonlyArray }) => { + subscriptionSignals.push(options?.signal); + subscriptionTypes.push(options?.types); + return { + [Symbol.asyncIterator]() { + return { + next() { + if (queue.length > 0) return Promise.resolve({ value: queue.shift(), done: false }); + return new Promise>((resolve) => { + waiting = resolve; + options?.signal?.addEventListener( + "abort", + () => resolve({ value: undefined, done: true }), + { once: true }, + ); + }); + }, + async return() { + return { value: undefined, done: true }; + }, + }; + }, + }; + }); + + const ctx = { + app: { name: "test", version: "2.0.30", channel: "test" }, + location: { + directory: "/tmp", + project: { id: "project", directory: "/tmp", canonical: "/tmp" }, + }, + options, + model: { list: modelList }, + agent: { list: agentList }, session: { - messages: vi.fn(async () => ({ data: messages, error: undefined })), - promptAsync: vi.fn(async ({ body }: any) => { - prompts.push(body); - messages.push(message(body.variant)); - return { error: undefined }; + context: vi.fn(async () => messages), + get: vi.fn(async () => session), + switchModel, + switchAgent, + hook: vi.fn(async (name: string, callback: (event: any) => unknown) => { + (hooks[name] ??= []).push(callback); + return { dispose: async () => {} }; }), - create: vi.fn(async () => ({ data: { id: "classifier" }, error: undefined })), - prompt: vi.fn(async () => ({ - data: { parts: [{ type: "text", text: "high" }] }, - error: undefined, - })), - delete: vi.fn(async () => ({ data: true, error: undefined })), }, - provider: { - list: vi.fn(async () => ({ - data: { - all: [{ id: "provider", models: { model: { variants: modelVariants } } }], - }, - error: undefined, - })), + tool: { + transform: vi.fn(async (callback: (editor: any) => void) => { + callback({ + add: (tool: any) => registered.push(tool), + update: () => {}, + remove: () => {}, + list: () => registered, + get: (id: string) => registered.find((tool) => tool.name === id), + namespace: () => {}, + }); + return { dispose: async () => {} }; + }), }, - app: { - agents: vi.fn(async () => ({ - data: Object.entries(agents).map(([name, variant]) => ({ name, variant })), - error: undefined, - })), - log: vi.fn(), + storage: { + get: vi.fn(async () => undefined), + set: vi.fn(async (key: string, value: any) => { + diagnostics.push({ key, value }); + }), + remove: vi.fn(async () => {}), + scan: vi.fn(async () => ({ entries: [] })), }, - tui: { showToast: vi.fn() }, + experimental: setup.experimentalGenerate + ? { generate: { text: experimentalGenerateText } } + : {}, + generate: { text: generateText }, + event: { subscribe }, }; - return { client, prompts }; -}; -const ctx = (sessionID: string, agent = "agent") => ({ sessionID, agent }); - -const set = (plugin: any, level: string, persist: boolean, sessionID: string) => - plugin.tool.set_reasoning_effort.execute({ level, persist }, ctx(sessionID)); - -const say = async ( - plugin: any, - sessionID: string, - text: string, - extra: Record = {}, -) => { - const user = message().info; - await plugin["chat.message"]( - { sessionID, model: { providerID: "provider", modelID: "model" }, ...extra }, - { message: user, parts: [{ type: "text", text }] }, - ); - return user; -}; + const cleanup = await AdaptiveThinkingPlugin.setup(ctx as never); + await Promise.resolve(); + + const settle = async () => { + for (let i = 0; i < 5; i++) await Promise.resolve(); + await new Promise((resolve) => setTimeout(resolve, 5)); + }; + + const emit = async (event: any) => { + if (waiting) { + const resolve = waiting; + waiting = undefined; + resolve({ value: event, done: false }); + } else { + queue.push(event); + } + await settle(); + }; + + const prompt = async (text: string) => { + for (const hook of hooks.prompt ?? []) { + await hook({ + sessionID, + messageID: "msg", + prompt: { text, files: [] }, + metadata: undefined, + delivery: "steer", + }); + } + }; + + const hook = async (name: string, event: any) => { + for (const callback of hooks[name] ?? []) await callback(event); + return event; + }; + + const context = async ( + system: Array<{ type: "text"; text: string }> = [], + eventModel?: { providerID: string; id: string; variant?: string }, + agent = setup.agent ?? "agent", + ) => { + // Requests start from the session model, so a plugin write to the session model shows up + // in the next request while a per-request write does not. + const requestModel = eventModel ?? (session.model ? { ...session.model } : model()); + // The host resolves the selected variant BEFORE the context hook and passes only its ref as + // `event.model`. Snapshot that resolution so the test can build the outgoing request from + // the pre-hook model plus the fields the runtime reads back from the hook event. + const resolvedRecord = records.find( + (record) => + record.providerID === requestModel.providerID && + (record.modelID === requestModel.id || record.id === requestModel.id), + ); + const variantID = requestModel.variant === "default" ? undefined : requestModel.variant; + const resolvedVariant = variantID + ? resolvedRecord?.variants.find((candidate) => candidate.id === variantID) + : undefined; + const preHookModel = { + ...resolvedRecord, + variant: requestModel.variant, + settings: { ...resolvedRecord?.settings, ...resolvedVariant?.settings }, + headers: { ...resolvedRecord?.headers, ...resolvedVariant?.headers }, + body: { ...resolvedRecord?.body, ...resolvedVariant?.body }, + }; -const idle = (plugin: any, sessionID: string) => - plugin.event({ event: { type: "session.idle", properties: { sessionID } } }); + const event: any = { + sessionID, + agent, + model: requestModel, + system, + messages: [], + options: {}, + tools: {}, + }; + for (const hook of hooks.context ?? []) await hook(event); + // What the runtime reads back, plus the pre-hook model it already resolved. A provider + // option written by the plugin only reaches the wire through `event.options`. + (event as any).request = { + model: preHookModel, + system: event.system, + messages: event.messages, + options: event.options, + providerOptions: { ...preHookModel.settings, ...event.options }, + tools: event.tools, + }; + return event; + }; + + const idle = () => emit({ type: "session.execution.succeeded", data: { sessionID } }); + + const tool = (name = "set_reasoning_effort") => registered.find((entry) => entry.name === name); + + const set = async (level: string, persist: boolean, agent = setup.agent ?? "agent") => + tool().execute({ level, persist }, { sessionID, agent }); + + return { + sessionID, + session, + ctx, + cleanup, + settle, + modelList, + agentList, + switchModel, + switchAgent, + generateText, + experimentalGenerateText, + switched, + agentSwitches, + generated, + diagnostics, + subscriptionSignals, + subscriptionTypes, + registered, + hooks, + messages, + emit, + idle, + prompt, + hook, + context, + tool, + set, + }; +}; -const transform = ( - plugin: any, - sessionID: string, - system: Array, - model: any = { variants }, -) => plugin["experimental.chat.system.transform"]({ sessionID, model }, { system }); +afterEach(() => { + vi.restoreAllMocks(); +}); describe("AdaptiveThinkingPlugin", () => { - test("applies defaults, persists a level and preserves agent and model", async () => { - const { client, prompts } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - - expect(plugin.tool.set_reasoning_effort.description).toBe("Set your reasoning effort"); - expect(await set(plugin, "high", true, "defaults")).toBe("Reasoning effort set to high"); - expect(prompts[0]).toMatchObject({ - agent: "agent", - variant: "high", - model: { providerID: "provider", modelID: "model" }, + test("registers a V2 plugin definition with a stable id", () => { + expect(AdaptiveThinkingPlugin.id).toBe("opencode-adaptive-thinking"); + expect(typeof AdaptiveThinkingPlugin.setup).toBe("function"); + }); + + test("applies defaults, persists a level and preserves the model", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], }); - const system: Array = []; - await transform(plugin, "defaults", system); - expect(system[0]).toContain("You MUST manage reasoning effort actively"); - expect(system[0]).toContain("Current reasoning effort level: high."); - expect(system[0]).toContain( + expect(harness.tool().description).toBe("Set your reasoning effort"); + expect((await harness.set("high", true)).content).toBe("Reasoning effort set to high"); + expect(harness.switched[0]).toEqual({ providerID: "provider", id: "model", variant: "high" }); + + const system: Array<{ type: "text"; text: string }> = []; + await harness.context(system); + const guidance = system.at(-1)?.text ?? ""; + expect(guidance).toContain("You MUST manage reasoning effort actively"); + expect(guidance).toContain("Current reasoning effort level: high."); + expect(guidance).toContain( "Valid reasoning effort levels for this session: none, low, medium, high, xhigh.", ); - expect(system[0]).toContain("set_reasoning_effort"); + expect(guidance).toContain("set_reasoning_effort"); }); - test("honors custom configuration and merges into an existing system prompt", async () => { - const { client } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { - toolName: "adjust_reasoning", - toolDescription: "Adjust it", - systemPrompt: "Prefer cheap.", - }); + test("honors custom configuration and appends guidance beside an existing system part", async () => { + const harness = await createHarness( + { + toolName: "adjust_reasoning", + toolDescription: "Adjust it", + systemPrompt: "Prefer cheap.", + }, + { messages: [userMessage(), assistantMessage("medium")] }, + ); - expect(plugin.tool.adjust_reasoning.description).toBe("Adjust it"); - expect(plugin.tool.set_reasoning_effort).toBeUndefined(); + expect(harness.tool("adjust_reasoning").description).toBe("Adjust it"); + expect(harness.tool("set_reasoning_effort")).toBeUndefined(); - const system = ["Base prompt."]; - await transform(plugin, "custom", system); - expect(system).toHaveLength(1); - expect(system[0]?.startsWith("Base prompt.\n\nPrefer cheap.")).toBe(true); - expect(system[0]).not.toContain("You MUST manage"); - expect(system[0]).toContain("adjust_reasoning"); + const system = [{ type: "text" as const, text: "Base prompt." }]; + await harness.context(system); + expect(system).toHaveLength(2); + expect(system[0]?.text).toBe("Base prompt."); + expect(system[1]?.text.startsWith("Prefer cheap.")).toBe(true); + expect(system[1]?.text).not.toContain("You MUST manage"); + expect(system[1]?.text).toContain("adjust_reasoning"); }); - test("returns no hooks when disabled", async () => { - const { client } = createClient(); - expect(await AdaptiveThinkingPlugin({ client } as never, { enabled: false })).toEqual({}); + test("registers nothing when disabled", async () => { + const harness = await createHarness({ enabled: false }); + + expect(harness.registered).toHaveLength(0); + expect(harness.hooks.prompt).toBeUndefined(); + expect(harness.hooks.context).toBeUndefined(); }); - test("reports invalid configuration and suppresses the toast when quiet", async () => { - const invalid = createClient(); - expect( - await AdaptiveThinkingPlugin({ client: invalid.client } as never, { enabled: "yes" }), - ).toEqual({}); - expect(invalid.client.tui.showToast).toHaveBeenCalledWith({ - body: { - variant: "error", - message: expect.stringContaining("Invalid Adaptive Thinking plugin configuration"), - }, - }); - expect(invalid.client.app.log).toHaveBeenCalledWith({ - body: expect.objectContaining({ - level: "error", - message: expect.stringContaining("enabled must be a boolean"), - }), - }); + test("reports invalid configuration and suppresses the generic message when quiet", async () => { + const invalid = await createHarness({ enabled: "yes" }); + expect(invalid.registered).toHaveLength(0); + const messages = vi + .mocked(console.error) + .mock.calls.map((call) => call.join(" ")) + .join("\n"); + expect(messages).toContain("Invalid Adaptive Thinking plugin configuration"); + expect(messages).toContain("enabled must be a boolean"); + expect(messages).toContain("see the server output for details"); + expect(vi.mocked(console.error)).toHaveBeenCalledTimes(2); + + vi.mocked(console.error).mockClear(); + const quiet = await createHarness({ enabled: "yes", quiet: true }); + expect(quiet.registered).toHaveLength(0); + const quietMessages = vi + .mocked(console.error) + .mock.calls.map((call) => call.join(" ")) + .join("\n"); + expect(quietMessages).not.toContain("see the server output for details"); + expect(quietMessages).toContain("enabled must be a boolean"); + expect(vi.mocked(console.error)).toHaveBeenCalledTimes(1); + }); - const quiet = createClient(); - await AdaptiveThinkingPlugin({ client: quiet.client } as never, { - enabled: "yes", - quiet: true, - }); - expect(quiet.client.tui.showToast).not.toHaveBeenCalled(); + test("reports invalid configuration without throwing when options is null", async () => { + const harness = await createHarness(null); + + expect(harness.registered).toHaveLength(0); + const messages = vi + .mocked(console.error) + .mock.calls.map((call) => call.join(" ")) + .join("\n"); + expect(messages).toContain("Invalid Adaptive Thinking plugin configuration"); + expect(messages).toContain("options must be an object"); }); - test("rejects an invalid level without prompting", async () => { - const { client, prompts } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + test("rejects an invalid level without switching", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); - expect(await set(plugin, "extreme", true, "invalid-level")).toContain( + expect((await harness.set("extreme", true)).content).toContain( "Invalid reasoning effort level", ); - expect(prompts).toHaveLength(0); + expect(harness.switched).toHaveLength(0); }); test("reports models without reasoning variants", async () => { - const { client, prompts } = createClient([message("medium")], {}); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + modelVariants: [], + }); - expect(await set(plugin, "high", true, "no-variants")).toContain( - "no valid reasoning effort levels", - ); - expect(prompts).toHaveLength(0); + expect((await harness.set("high", true)).content).toContain("no valid reasoning effort levels"); + expect(harness.switched).toHaveLength(0); }); test("resets a temporary level to the level from the session history", async () => { - const { client, prompts } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + + await harness.set("low", false); + await harness.idle(); + + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low", "medium"]); + }); + + test("does not restore an agent that changed after the tool call", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + + await harness.set("low", false, "agent-at-tool-time"); + // The user picks another agent while the temporary level is active. + harness.session.agent = "user-chosen"; + await harness.idle(); + + expect(harness.agentSwitches).toHaveLength(0); + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low", "medium"]); + }); - await set(plugin, "low", false, "temporary"); - await idle(plugin, "temporary"); + test("does not restore a model that changed after the tool call", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + + await harness.set("low", false); + // The user picks another model while the temporary level is active. + harness.session.model = { providerID: "other", id: "narrow", variant: "low" }; + await harness.idle(); + + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low"]); + + // The pending reset was dropped rather than retried against the new model. + await harness.idle(); + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low"]); + }); + + test("does not read session history when no trigger injects guidance", async () => { + const harness = await createHarness( + { triggers: { afterIdle: false, afterUserMessage: false } }, + { messages: [userMessage(), assistantMessage("medium")] }, + ); + + await harness.prompt("hello"); + await harness.context([]); + await harness.context([]); + + expect(harness.ctx.session.context).not.toHaveBeenCalled(); + expect(harness.ctx.session.get).not.toHaveBeenCalled(); + }); - expect(prompts.map((prompt) => prompt.variant)).toEqual(["low", "medium"]); - expect(prompts[1]).toMatchObject({ - agent: "agent", - model: { providerID: "provider", modelID: "model" }, - parts: [{ synthetic: true, ignored: true }], + test("reverts to the session model variant when history has no level", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage()], + sessionModel: { providerID: "provider", id: "model", variant: "default" }, }); + + await harness.set("high", false); + await harness.idle(); + + expect(harness.switched.map((entry) => entry.variant)).toEqual(["high", "default"]); }); test("reads the model and variant from assistant messages", async () => { - const { client, prompts } = createClient([message("medium"), assistant("high")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("high")], + }); + + await harness.set("low", false); + await harness.idle(); + + expect(harness.switched[0]).toEqual({ providerID: "provider", id: "model", variant: "low" }); + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low", "high"]); + }); + + test("matches a model ref whose id is the record id rather than its modelID", async () => { + const harness = await createHarness(undefined, { + messages: [ + userMessage(), + { + type: "assistant", + agent: "agent", + model: model("medium", "provider", "record-id"), + content: [{ type: "text", text: "assistant text" }], + time: { created: 1 }, + }, + ], + modelRecords: [ + { id: "record-id", modelID: "canonical-model", providerID: "provider", variants }, + ], + }); + + const system: Array<{ type: "text"; text: string }> = []; + await harness.context(system, model(undefined, "provider", "record-id")); + const guidance = system.at(-1)?.text ?? ""; + + expect(guidance).toContain( + "Valid reasoning effort levels for this session: none, low, medium, high, xhigh.", + ); + expect(guidance).toContain("Current reasoning effort level: medium."); + + expect((await harness.set("high", true)).content).toBe("Reasoning effort set to high"); + expect(harness.switched[0]).toEqual({ + providerID: "provider", + id: "record-id", + variant: "high", + }); + }); - await set(plugin, "low", false, "assistant-shape"); - await idle(plugin, "assistant-shape"); + test("resets a temporary level to the model default baseline", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("default")], + }); - expect(prompts[0].model).toEqual({ providerID: "provider", modelID: "model" }); - expect(prompts.map((prompt) => prompt.variant)).toEqual(["low", "high"]); + await harness.set("high", false); + await harness.idle(); + + expect(harness.switched.map((entry) => entry.variant)).toEqual(["high", "default"]); + }); + + test("does not remember the default level after an idle reset", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage(), assistantMessage("default")] }, + ); + + await harness.set("high", false); + await harness.idle(); + await harness.prompt("debug"); + await harness.context([]); + + const prompt = harness.generated.at(-1)?.prompt ?? ""; + expect(prompt).not.toContain("Current reasoning effort level: default."); + expect(prompt).not.toContain("Current reasoning effort level"); }); test("keeps the original baseline across repeated temporary changes", async () => { - const changed = createClient([message("medium")]); - const changedPlugin: any = await AdaptiveThinkingPlugin({ client: changed.client } as never); - await set(changedPlugin, "low", false, "repeat-different"); - await set(changedPlugin, "high", false, "repeat-different"); - await idle(changedPlugin, "repeat-different"); + const changed = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + await changed.set("low", false); + await changed.set("high", false); + await changed.idle(); - const repeated = createClient([message("medium")]); - const repeatedPlugin: any = await AdaptiveThinkingPlugin({ client: repeated.client } as never); - await set(repeatedPlugin, "low", false, "repeat-same"); - await set(repeatedPlugin, "low", false, "repeat-same"); - await idle(repeatedPlugin, "repeat-same"); + const repeated = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + await repeated.set("low", false); + await repeated.set("low", false); + await repeated.idle(); - expect(changed.prompts.map((prompt) => prompt.variant)).toEqual(["low", "high", "medium"]); - expect(repeated.prompts.map((prompt) => prompt.variant)).toEqual(["low", "low", "medium"]); + expect(changed.switched.map((entry) => entry.variant)).toEqual(["low", "high", "medium"]); + expect(repeated.switched.map((entry) => entry.variant)).toEqual(["low", "low", "medium"]); + }); + + test("restores the pre-tool session variant after the classifier applied the same level", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { + messages: [userMessage()], + sessionModel: { providerID: "provider", id: "model", variant: "default" }, + }, + ); + + await harness.prompt("debug the flaky test"); + const classified = await harness.context([]); + expect(classified.model.variant).toBe("high"); + expect(harness.session.model).toEqual({ + providerID: "provider", + id: "model", + variant: "default", + }); + + // The agent asks for the same level temporarily. The classifier's level is not the + // session's baseline, so the temporary change must still be armed and revert at idle. + expect((await harness.set("high", false)).content).toBe("Reasoning effort set to high"); + await harness.idle(); + + expect(harness.switched.map((entry) => entry.variant)).toEqual(["high", "default"]); + expect(harness.session.model).toEqual({ + providerID: "provider", + id: "model", + variant: "default", + }); + + // The reset must not pin the session, so the next user message is still classified. + await harness.prompt("explain this function"); + const next = await harness.context(); + expect(harness.generateText).toHaveBeenCalledTimes(2); + expect(next.model.variant).toBe("high"); + }); + + test("restores the pre-tool session variant when the classifier applied another level", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { + messages: [userMessage()], + sessionModel: { providerID: "provider", id: "model", variant: "default" }, + }, + ); + + await harness.prompt("debug the flaky test"); + await harness.context([]); + + expect((await harness.set("low", false)).content).toBe("Reasoning effort set to low"); + await harness.idle(); + + // The reset target is the session variant from before the tool call, not the classified + // level that only applied to the previous request. + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low", "default"]); + expect(harness.session.model).toEqual({ + providerID: "provider", + id: "model", + variant: "default", + }); + + await harness.prompt("explain this function"); + await harness.context(); + expect(harness.generateText).toHaveBeenCalledTimes(2); }); test("keeps a temporary reset pending after a failed attempt", async () => { - const { client } = createClient([message("medium")]); - client.session.promptAsync - .mockResolvedValueOnce({ error: undefined }) - .mockResolvedValueOnce({ error: { data: { message: "unavailable" } } } as never) - .mockResolvedValueOnce({ error: undefined }); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - - await set(plugin, "low", false, "reset-retry"); - await idle(plugin, "reset-retry"); - await idle(plugin, "reset-retry"); - - expect(client.session.promptAsync.mock.calls.map(([call]: any) => call.body.variant)).toEqual([ - "low", - "medium", - "medium", - ]); - expect(client.app.log).toHaveBeenCalled(); + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + const succeed = harness.switchModel.getMockImplementation()!; + harness.switchModel + .mockImplementationOnce(succeed) + .mockImplementationOnce(async () => { + throw new Error("unavailable"); + }) + .mockImplementationOnce(succeed); + + await harness.set("low", false); + await harness.idle(); + await harness.idle(); + + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low", "medium"]); + expect(console.error).toHaveBeenCalled(); }); - test("reports a provider lookup failure without prompting", async () => { - const { client, prompts } = createClient([message("medium")]); - client.provider.list.mockResolvedValueOnce({ - data: undefined, - error: { message: "down" }, - } as never); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + test("reports a provider lookup failure without switching", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + harness.modelList.mockRejectedValueOnce(new Error("down")); - expect(await set(plugin, "high", true, "provider-failure")).toContain( - "no valid reasoning effort levels", - ); - expect(prompts).toHaveLength(0); - expect(client.app.log).toHaveBeenCalled(); + expect((await harness.set("high", true)).content).toContain("no valid reasoning effort levels"); + expect(harness.switched).toHaveLength(0); + expect(console.error).toHaveBeenCalled(); }); test("does not reset a persisted level on idle", async () => { - const { client, prompts } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + + await harness.set("high", true); + await harness.idle(); - await set(plugin, "high", true, "persisted"); - await idle(plugin, "persisted"); - expect(prompts).toHaveLength(1); + expect(harness.switched).toHaveLength(1); }); test("returns an error instead of throwing when messages cannot be read", async () => { - const { client } = createClient([message("medium")]); - client.session.messages.mockResolvedValueOnce({ - data: undefined, - error: { data: { message: "unavailable" } }, - } as never); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + vi.mocked(harness.ctx.session.context).mockRejectedValueOnce(new Error("unavailable")); - expect(await set(plugin, "high", true, "fetch-failure")).toContain( - "could not read the session", - ); - expect(client.app.log).toHaveBeenCalled(); + expect((await harness.set("high", true)).content).toContain("could not read the session"); + expect(console.error).toHaveBeenCalled(); }); test("ignores a cached level that the current model does not support", async () => { - const { client } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); - await set(plugin, "high", true, "stale-cache"); - - const system: Array = []; - await transform(plugin, "stale-cache", system, { variants: { low: {}, medium: {} } }); - expect(system[0]).toContain("Valid reasoning effort levels for this session: low, medium."); - expect(system[0]).not.toContain("Current reasoning effort level: high."); + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + await harness.set("high", true); + + const system: Array<{ type: "text"; text: string }> = []; + const event = await harness.context(system, model(undefined, "other", "narrow")); + const guidance = system.at(-1)?.text ?? ""; + expect(guidance).toContain("Valid reasoning effort levels for this session: low, medium."); + expect(guidance).not.toContain("Current reasoning effort level: high."); + expect(event.request.providerOptions.reasoningEffort).toBe("medium"); }); test("falls back to the agent variant when history has none", async () => { - const { client } = createClient([message(undefined, "worker")], variants, { worker: "low" }); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + const harness = await createHarness(undefined, { + messages: [userMessage()], + agents: { worker: "low" }, + agent: "worker", + }); - const system: Array = []; - await transform(plugin, "agent-fallback", system, {}); - expect(system[0]).toContain("Current reasoning effort level: low."); + const system: Array<{ type: "text"; text: string }> = []; + const event = await harness.context(system, model(), "worker"); + expect(system.at(-1)?.text).toContain("Current reasoning effort level: low."); + expect(event.request.providerOptions.reasoningEffort).toBe("low"); }); test("drops session state when the session is deleted", async () => { - const { client, prompts } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never); + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); - await set(plugin, "low", false, "deleted-session"); - await plugin.event({ - event: { type: "session.deleted", properties: { info: { id: "deleted-session" } } }, - } as never); - await idle(plugin, "deleted-session"); + await harness.set("low", false); + await harness.emit({ type: "session.deleted", data: { sessionID: harness.sessionID } }); + await harness.idle(); - expect(prompts).toHaveLength(1); + expect(harness.switched).toHaveLength(1); }); test("injects guidance once per user turn when afterUserMessage is set", async () => { - const { client } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { - triggers: { afterIdle: false, afterUserMessage: true }, - }); + const harness = await createHarness( + { triggers: { afterIdle: false, afterUserMessage: true } }, + { messages: [userMessage(), assistantMessage("medium")] }, + ); - await say(plugin, "guidance-user", "hello"); - const first = new Array(); - await transform(plugin, "guidance-user", first); + await harness.prompt("hello"); + const first: Array<{ type: "text"; text: string }> = []; + await harness.context(first); expect(first).toHaveLength(1); - const second = new Array(); - await transform(plugin, "guidance-user", second); + const second: Array<{ type: "text"; text: string }> = []; + await harness.context(second); expect(second).toHaveLength(0); }); test("injects guidance after idle when afterIdle is set", async () => { - const { client } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { - triggers: { afterIdle: true, afterUserMessage: false }, - }); + const harness = await createHarness( + { triggers: { afterIdle: true, afterUserMessage: false } }, + { messages: [userMessage(), assistantMessage("medium")] }, + ); - const first = new Array(); - await transform(plugin, "guidance-idle", first); + const first: Array<{ type: "text"; text: string }> = []; + await harness.context(first); expect(first).toHaveLength(1); - const second = new Array(); - await transform(plugin, "guidance-idle", second); + const second: Array<{ type: "text"; text: string }> = []; + await harness.context(second); expect(second).toHaveLength(0); - await idle(plugin, "guidance-idle"); - const third = new Array(); - await transform(plugin, "guidance-idle", third); + await harness.idle(); + const third: Array<{ type: "text"; text: string }> = []; + await harness.context(third); expect(third).toHaveLength(1); }); - test("does not inject twice for a user message after idle", async () => { - const { client } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { - triggers: { afterIdle: true, afterUserMessage: true }, + test("ignores an unrelated event that carries a session id", async () => { + const harness = await createHarness( + { triggers: { afterIdle: true, afterUserMessage: false } }, + { messages: [userMessage(), assistantMessage("medium")] }, + ); + + // Consume the session-start idle injection so the next event decides whether it re-arms. + const first: Array<{ type: "text"; text: string }> = []; + await harness.context(first); + expect(first).toHaveLength(1); + + await harness.set("low", false); + await harness.emit({ + type: "session.message.content.updated", + data: { sessionID: harness.sessionID }, }); - await idle(plugin, "guidance-both"); - await say(plugin, "guidance-both", "hello"); - const system = new Array(); - await transform(plugin, "guidance-both", system); + // The event is not an execution end, so the temporary level must not be reset. + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low"]); + + // Nor may it re-arm the idle trigger. + const afterUnrelated: Array<{ type: "text"; text: string }> = []; + await harness.context(afterUnrelated); + expect(afterUnrelated).toHaveLength(0); + + // A real execution end still resets the level and injects guidance. + await harness.idle(); + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low", "medium"]); + const afterRealIdle: Array<{ type: "text"; text: string }> = []; + await harness.context(afterRealIdle); + expect(afterRealIdle).toHaveLength(1); + }); + + test("does not inject twice for a user message after idle", async () => { + const harness = await createHarness( + { triggers: { afterIdle: true, afterUserMessage: true } }, + { messages: [userMessage(), assistantMessage("medium")] }, + ); + + await harness.idle(); + await harness.prompt("hello"); + const system: Array<{ type: "text"; text: string }> = []; + await harness.context(system); expect(system).toHaveLength(1); }); test("injects nothing when both triggers are false", async () => { - const { client } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { - triggers: { afterIdle: false, afterUserMessage: false }, - }); + const harness = await createHarness( + { triggers: { afterIdle: false, afterUserMessage: false } }, + { messages: [userMessage(), assistantMessage("medium")] }, + ); - await say(plugin, "guidance-none", "hello"); - const system = new Array(); - await transform(plugin, "guidance-none", system); + await harness.prompt("hello"); + const system: Array<{ type: "text"; text: string }> = []; + await harness.context(system); expect(system).toHaveLength(0); }); test("classifies user turns but not idle turns", async () => { - const { client } = createClient([message("medium")]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { - triggers: { afterIdle: true, afterUserMessage: true }, - classifier: { enabled: true }, - }); + const harness = await createHarness( + { + triggers: { afterIdle: true, afterUserMessage: true }, + classifier: { enabled: true }, + }, + { messages: [userMessage(), assistantMessage("medium")] }, + ); - await transform(plugin, "classifier-idle", new Array()); - expect(client.session.create).not.toHaveBeenCalled(); + await harness.context([]); + expect(harness.generateText).not.toHaveBeenCalled(); - await say(plugin, "classifier-user", "debug the flaky test"); - expect(client.session.create).toHaveBeenCalledTimes(1); + await harness.prompt("debug the flaky test"); + await harness.context([]); + expect(harness.generateText).toHaveBeenCalledTimes(1); }); - test("uses the last compaction summary in the classifier context", async () => { - const summary = "SUMMARY-CONTEXT"; - const { client } = createClient([ - message("medium"), + test("applies the classified level to the current request options only", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + + await harness.prompt("debug the flaky test"); + const event = await harness.context([]); + const high = variants.find((variant) => variant.id === "high"); + + // The pre-hook model carries no level, so only a field the runtime reads back can reach + // the provider. Asserting the request options is the independent oracle for that. + expect(event.request.model.settings).toEqual({}); + expect(event.request.providerOptions).toMatchObject(high?.settings ?? {}); + expect(event.model.variant).toBe("high"); + expect(harness.switched).toHaveLength(0); + }); + + test("does not forward an unsafe settings key into request options", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, { - info: { role: "assistant", agent: "agent", summary: true, time: { created: 1 } }, - parts: [{ type: "text", text: summary }], + messages: [userMessage()], + modelVariants: [ + { + id: "high", + settings: JSON.parse('{"__proto__":{"polluted":true},"reasoningEffort":"high"}'), + }, + ], }, - ]); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { - classifier: { enabled: true }, + ); + + await harness.prompt("debug the flaky test"); + const event = await harness.context([]); + + expect(event.request.providerOptions.reasoningEffort).toBe("high"); + expect(Object.getPrototypeOf(event.options)).toBe(Object.prototype); + expect(({} as Record).polluted).toBeUndefined(); + expect(Object.prototype.hasOwnProperty.call(event.options, "__proto__")).toBe(false); + }); + + test("does not forward runtime settings keys into request options", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { + messages: [userMessage()], + modelVariants: [ + { + id: "high", + settings: { + apiKey: "x", + baseURL: "http://x", + headers: { "x-leak": "no" }, + reasoningEffort: "high", + }, + }, + ], + }, + ); + + await harness.prompt("debug the flaky test"); + const event = await harness.context([]); + + // A catalog variant may list host runtime settings. They configure the runtime, not the + // provider request, so only the provider option may reach the request's options. + expect(event.options).toEqual({ reasoningEffort: "high" }); + expect(event.request.providerOptions.reasoningEffort).toBe("high"); + }); + + test("does not claim a level whose catalog variant has no request mapping", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()], modelVariants: [{ id: "high" }] }, + ); + + await harness.prompt("debug the flaky test"); + const event = await harness.context([]); + + expect(harness.generateText).toHaveBeenCalledTimes(1); + expect(event.model.variant).toBeUndefined(); + expect(event.request.providerOptions.reasoningEffort).toBeUndefined(); + expect(event.system.at(-1)?.text).not.toContain("Current reasoning effort level"); + }); + + test("applies variant headers and body overrides to a primary request and its retries", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { + messages: [userMessage()], + modelVariants: [ + { id: "low", settings: { reasoningEffort: "low" } }, + { + id: "high", + settings: { reasoningEffort: "high" }, + headers: { "x-reasoning-level": "high" }, + body: { thinking: { type: "enabled", budgetTokens: 1024 } }, + }, + ], + }, + ); + + await harness.prompt("debug the flaky test"); + const event = await harness.context([]); + expect(event.request.providerOptions.reasoningEffort).toBe("high"); + + const modelRequest = await harness.hook("model.request", { + sessionID: harness.sessionID, + kind: "primary", + headers: { "x-base": "kept" }, + }); + expect(modelRequest.headers).toEqual({ "x-base": "kept", "x-reasoning-level": "high" }); + + const request = new Request("https://example.test/v1/chat/completions", { + method: "POST", + headers: { "content-type": "application/json" }, + body: JSON.stringify({ + model: "model", + messages: [], + thinking: { type: "disabled", keep: true }, + }), + }); + const httpRequest = await harness.hook("http.request", { + sessionID: harness.sessionID, + kind: "primary", + request, + }); + expect(await httpRequest.request.json()).toEqual({ + model: "model", + messages: [], + thinking: { type: "enabled", budgetTokens: 1024, keep: true }, }); - await say(plugin, "classifier-summary", "next step"); - const calls = client.session.prompt.mock.calls as unknown as Array<[any]>; - const call = calls.at(-1)?.[0]; - expect(call?.body.parts[0].text).toContain(summary); - expect(call?.body.parts[0].text).toContain("Current message:\nnext step"); + // The same call may retry the transport. Every attempt must receive the override, because + // only the next context hook ends its lifetime. + const retry = new Request("https://example.test/v1/chat/completions", { + method: "POST", + headers: { "content-type": "application/json" }, + body: JSON.stringify({ model: "model", messages: [] }), + }); + const retryRequest = await harness.hook("http.request", { + sessionID: harness.sessionID, + kind: "primary", + request: retry, + }); + expect(await retryRequest.request.json()).toEqual({ + model: "model", + messages: [], + thinking: { type: "enabled", budgetTokens: 1024 }, + }); }); - test("classifies each real user message", async () => { - const { client } = createClient(); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { - classifier: { enabled: true }, + test("clears a stale request override before the next request", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { + messages: [userMessage()], + modelVariants: [ + { id: "low", settings: { reasoningEffort: "low" } }, + { + id: "high", + settings: { reasoningEffort: "high" }, + headers: { "x-reasoning-level": "high" }, + body: { thinking: { type: "enabled", budgetTokens: 1024 } }, + }, + ], + }, + ); + + await harness.prompt("debug the flaky test"); + await harness.context([]); + + const firstModel = await harness.hook("model.request", { + sessionID: harness.sessionID, + kind: "primary", + headers: { "x-base": "kept" }, }); - const input = { - sessionID: "classifier-initial", - model: { providerID: "provider", modelID: "model" }, + expect(firstModel.headers).toEqual({ "x-base": "kept", "x-reasoning-level": "high" }); + + // No http.request ran for that request, so the override is still pending. The next context + // hook must discard it instead of leaking it into the next request. + await harness.context([]); + + const secondModel = await harness.hook("model.request", { + sessionID: harness.sessionID, + kind: "primary", + headers: { "x-base": "kept" }, + }); + expect(secondModel.headers).toEqual({ "x-base": "kept" }); + + const request = new Request("https://example.test/v1/chat/completions", { + method: "POST", + headers: { "content-type": "application/json" }, + body: JSON.stringify({ model: "model", messages: [] }), + }); + const httpRequest = await harness.hook("http.request", { + sessionID: harness.sessionID, + kind: "primary", + request, + }); + expect(await httpRequest.request.json()).toEqual({ model: "model", messages: [] }); + }); + + test("fails open when the primary request body is not JSON and warns once", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { + messages: [userMessage()], + modelVariants: [ + { id: "low", settings: { reasoningEffort: "low" } }, + { + id: "high", + settings: { reasoningEffort: "high" }, + body: { thinking: { type: "enabled" } }, + }, + ], + }, + ); + + await harness.prompt("debug the flaky test"); + await harness.context([]); + + const send = async (body: string) => { + const request = new Request("https://example.test/v1/chat/completions", { + method: "POST", + headers: { "content-type": "application/json" }, + body, + }); + const event = await harness.hook("http.request", { + sessionID: harness.sessionID, + kind: "primary", + request, + }); + return { request, event }; }; - const first = message().info; - await plugin["chat.message"](input, { - message: first, - parts: [{ type: "text", text: "debug the flaky auth test" }], - }); - const second = message().info; - await plugin["chat.message"](input, { - message: second, - parts: [{ type: "text", text: "explain this function" }], - }); - - expect((first.model as { variant?: string }).variant).toBe("high"); - expect((second.model as { variant?: string }).variant).toBe("high"); - expect(client.session.create).toHaveBeenCalledTimes(2); - expect(client.session.create).toHaveBeenCalledWith({ - body: expect.objectContaining({ parentID: "classifier-initial" }), - }); - expect(client.session.prompt).toHaveBeenCalledWith( - expect.objectContaining({ - body: expect.objectContaining({ - model: { providerID: "opencode", modelID: "big-pickle" }, - tools: { "*": false }, - }), - }), + const first = await send("not json"); + expect(first.event.request).toBe(first.request); + expect(await first.event.request.text()).toBe("not json"); + expect(console.warn).toHaveBeenCalledTimes(1); + expect(harness.diagnostics.at(-1)?.value.message).toContain( + "Failed to apply the request-scoped reasoning variant body", + ); + + // A later failure is recorded again but must not print the warning again. + const second = await send("still not json"); + expect(second.event.request).toBe(second.request); + expect(console.warn).toHaveBeenCalledTimes(1); + expect(harness.diagnostics.at(-1)?.value.message).toContain( + "Failed to apply the request-scoped reasoning variant body", ); - expect(client.session.delete).toHaveBeenCalled(); }); - test("does not classify when disabled or with an explicit variant", async () => { - const { client } = createClient(); - const off: any = await AdaptiveThinkingPlugin({ client } as never); - await off["chat.message"]( - { sessionID: "classifier-off", model: { providerID: "provider", modelID: "model" } }, - { message: message().info, parts: [{ type: "text", text: "debug" }] }, + test("leaves a primary request with no body untouched", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { + messages: [userMessage()], + modelVariants: [ + { id: "low", settings: { reasoningEffort: "low" } }, + { + id: "high", + settings: { reasoningEffort: "high" }, + body: { thinking: { type: "enabled" } }, + }, + ], + }, ); - expect(client.session.create).not.toHaveBeenCalled(); - const on: any = await AdaptiveThinkingPlugin({ client } as never, { - classifier: { enabled: true }, + await harness.prompt("debug the flaky test"); + await harness.context([]); + + const request = new Request("https://example.test/v1/chat/completions"); + const event = await harness.hook("http.request", { + sessionID: harness.sessionID, + kind: "primary", + request, }); - const first = message().info; - await on["chat.message"]( + + expect(event.request).toBe(request); + expect(request.body).toBeNull(); + expect(console.warn).not.toHaveBeenCalled(); + }); + + test("leaves non-primary requests untouched", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, { - sessionID: "classifier-explicit", - model: { providerID: "provider", modelID: "model" }, - variant: "low", + messages: [userMessage()], + modelVariants: [ + { id: "low", settings: { reasoningEffort: "low" } }, + { + id: "high", + settings: { reasoningEffort: "high" }, + headers: { "x-reasoning-level": "high" }, + body: { thinking: { type: "enabled", budgetTokens: 1024 } }, + }, + ], }, - { message: first, parts: [{ type: "text", text: "debug" }] }, ); - expect(client.session.create).not.toHaveBeenCalled(); - expect((first.model as { variant?: string }).variant).toBeUndefined(); + + await harness.prompt("debug the flaky test"); + await harness.context([]); + + for (const kind of ["title", "compaction"]) { + const modelRequest = await harness.hook("model.request", { + sessionID: harness.sessionID, + kind, + headers: { "x-base": "kept" }, + }); + expect(modelRequest.headers).toEqual({ "x-base": "kept" }); + + const request = new Request("https://example.test/v1/chat/completions", { + method: "POST", + headers: { "content-type": "application/json" }, + body: JSON.stringify({ model: "model", messages: [] }), + }); + const httpRequest = await harness.hook("http.request", { + sessionID: harness.sessionID, + kind, + request, + }); + expect(await httpRequest.request.json()).toEqual({ model: "model", messages: [] }); + } }); - test("ignores synthetic user messages", async () => { - const { client } = createClient(); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { - classifier: { enabled: true }, + test("ignores history when the request model has no variants", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("high")], + modelRecords: [ + { id: "model", modelID: "model", providerID: "provider", variants }, + { id: "plain", modelID: "plain", providerID: "other", variants: [] }, + ], }); - const first = message().info; - await plugin["chat.message"]( - { sessionID: "classifier-synthetic", model: { providerID: "provider", modelID: "model" } }, + const system: Array<{ type: "text"; text: string }> = []; + const event = await harness.context(system, model(undefined, "other", "plain")); + + // The history level belongs to the other model. Nothing may be applied or stamped on a + // request whose own model exposes no variants. + expect(event.model.variant).toBeUndefined(); + expect(event.request.providerOptions).toEqual({}); + expect(system).toHaveLength(0); + }); + + test("fails open when the provider catalog payload is malformed", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + harness.modelList.mockResolvedValueOnce({ location: {}, data: {} } as never); + + await harness.prompt("debug the flaky test"); + const event = await harness.context([]); + + expect(event.request.providerOptions.reasoningEffort).toBeUndefined(); + expect(harness.diagnostics.at(-1)?.value.message).toContain("Failed to retrieve providers"); + }); + + test("fails open on nested catalog shape garbage", async () => { + for (const records of [ + [{ providerID: "provider", modelID: "model", variants: {} }], + [null], + [{ providerID: "provider", modelID: "model", variants: [null] }], + ]) { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + harness.modelList.mockResolvedValueOnce({ location: {}, data: records } as never); + + await harness.prompt("debug the flaky test"); + const event = await harness.context([]); + + expect(event.request.providerOptions.reasoningEffort).toBeUndefined(); + } + }); + + test("fails open when the session context payload is malformed", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + harness.ctx.session.context.mockResolvedValueOnce({ messages: [] } as never); + + await harness.prompt("debug the flaky test"); + const event = await harness.context([]); + + expect(event.request.providerOptions.reasoningEffort).toBe("high"); + expect(harness.diagnostics.at(-1)?.value.message).toContain( + "Failed to retrieve messages for session", + ); + }); + + test("classifies a request that carries the model default variant", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + + await harness.prompt("debug the flaky test"); + const event = await harness.context([], model("default")); + + expect(harness.generateText).toHaveBeenCalledTimes(1); + expect(event.model.variant).toBe("high"); + expect(event.request.model.settings).toEqual({}); + expect(event.request.providerOptions.reasoningEffort).toBe("high"); + }); + + test("uses the last compaction summary in the classifier context", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { + messages: [userMessage(), assistantMessage("medium"), compactionMessage("SUMMARY-CONTEXT")], + }, + ); + + await harness.prompt("next step"); + await harness.context([]); + + const prompt = harness.generated.at(-1)?.prompt ?? ""; + expect(prompt).toContain("SUMMARY-CONTEXT"); + expect(prompt).toContain("Current message:\nnext step"); + }); + + test("scopes classifier context to messages since the last idle", async () => { + const harness = await createHarness({ classifier: { enabled: true } }, { messages: [] }); + + const beforeIdle = Date.now() - 60_000; + await harness.idle(); + const afterIdle = Date.now(); + + harness.messages.push( { - message: first, - parts: [{ type: "text", text: "Continue if you have next steps.", synthetic: true }], + type: "assistant", + model: model("medium"), + content: [{ type: "text", text: "PRE-IDLE-ASSISTANT" }], + time: { created: beforeIdle }, }, + { + type: "user", + text: "PRE-IDLE-USER", + time: { created: beforeIdle + 1000 }, + }, + { + type: "assistant", + model: model("medium"), + content: [{ type: "text", text: "RECENT-ASSISTANT" }], + time: { created: afterIdle }, + }, + ); + + await harness.prompt("current question"); + await harness.context([]); + + const prompt = harness.generated.at(-1)?.prompt ?? ""; + expect(prompt).toContain("RECENT-ASSISTANT"); + expect(prompt).not.toContain("PRE-IDLE-ASSISTANT"); + }); + + test("classifies each real user message", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + + await harness.prompt("debug the flaky auth test"); + const first = await harness.context([]); + + await harness.prompt("explain this function"); + const second = await harness.context([]); + + expect(first.model.variant).toBe("high"); + expect(second.model.variant).toBe("high"); + expect(first.request.providerOptions.reasoningEffort).toBe("high"); + expect(second.request.providerOptions.reasoningEffort).toBe("high"); + expect(harness.generateText).toHaveBeenCalledTimes(2); + expect(harness.generated[0].model).toEqual({ providerID: "opencode", id: "big-pickle" }); + expect(harness.generateText.mock.calls[0]?.[0]).not.toHaveProperty("tools"); + }); + + test("does not classify when disabled or with an explicit variant", async () => { + const off = await createHarness(undefined, { messages: [userMessage()] }); + await off.prompt("debug"); + await off.context([]); + expect(off.generateText).not.toHaveBeenCalled(); + + const on = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + await on.prompt("debug"); + const event = await on.context([], model("low")); + expect(on.generateText).not.toHaveBeenCalled(); + expect(event.model.variant).toBe("low"); + expect(event.request.providerOptions.reasoningEffort).toBe("low"); + }); + + test("ignores an invalid classifier answer and reports it as invalid", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()], answer: "unsure" }, + ); + + await harness.prompt("debug"); + const event = await harness.context([]); + + expect(event.model.variant).toBeUndefined(); + expect(event.request.providerOptions.reasoningEffort).toBeUndefined(); + expect(harness.switched).toHaveLength(0); + expect(harness.diagnostics.at(-1)?.value.message).toContain( + "The classifier returned an invalid response", + ); + }); + + test("fails open when the classifier request fails", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, ); + harness.generateText.mockRejectedValueOnce(new Error("unavailable")); + + await harness.prompt("debug"); + const event = await harness.context([]); - expect(client.session.create).not.toHaveBeenCalled(); - expect((first.model as { variant?: string }).variant).toBeUndefined(); + expect(event.model.variant).toBeUndefined(); + expect(event.request.providerOptions.reasoningEffort).toBeUndefined(); + expect(console.warn).toHaveBeenCalled(); }); - test("ignores an invalid classifier answer", async () => { - const { client } = createClient(); - client.session.prompt.mockResolvedValueOnce({ - data: { parts: [{ type: "text", text: "unsure" }] }, - error: undefined, - } as never); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { - classifier: { enabled: true }, + test("fails open when the generate API throws synchronously", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + harness.generateText.mockImplementationOnce(() => { + throw new Error("sync failure"); }); - const first = message().info; - await plugin["chat.message"]( - { sessionID: "classifier-invalid", model: { providerID: "provider", modelID: "model" } }, - { message: first, parts: [{ type: "text", text: "debug" }] }, + await harness.prompt("debug"); + const event = await harness.context([]); + + expect(event.model.variant).toBeUndefined(); + expect(event.request.providerOptions.reasoningEffort).toBeUndefined(); + expect(console.warn).toHaveBeenCalledTimes(1); + }); + + test("records every classifier failure but warns once", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, ); + harness.generateText + .mockRejectedValueOnce(new Error("first failure")) + .mockRejectedValueOnce(new Error("second failure")); + + await harness.prompt("debug"); + await harness.context([]); + await harness.prompt("debug again"); + await harness.context([]); + + const diagnostics = harness.diagnostics.filter((entry) => entry.key === "lastDiagnostic"); + expect(diagnostics).toHaveLength(2); + expect(diagnostics.at(-1)?.value.message).toContain("second failure"); + expect(console.warn).toHaveBeenCalledTimes(1); + }); + + test("rejects an invalid classifier configuration", async () => { + const harness = await createHarness({ classifier: { enabled: "yes" } }); - expect((first.model as { variant?: string }).variant).toBeUndefined(); + expect(harness.registered).toHaveLength(0); + expect(console.error).toHaveBeenCalled(); }); - test("fails open when the classifier cannot be created", async () => { - const { client } = createClient(); - client.session.create.mockResolvedValueOnce({ - data: undefined, - error: { data: { message: "unavailable" } }, - } as never); - const plugin: any = await AdaptiveThinkingPlugin({ client } as never, { - classifier: { enabled: true }, + test("records state for model-switched and idle messages without failing", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), switchedMessage("medium"), assistantMessage("medium")], }); - const first = message().info; - await plugin["chat.message"]( - { sessionID: "classifier-failure", model: { providerID: "provider", modelID: "model" } }, - { message: first, parts: [{ type: "text", text: "debug" }] }, + await harness.set("low", false); + await harness.idle(); + + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low", "medium"]); + }); + + test("does not persist a classified level and classifies consecutive user messages", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { + messages: [userMessage()], + sessionModel: { providerID: "provider", id: "model", variant: "default" }, + }, ); - expect((first.model as { variant?: string }).variant).toBeUndefined(); - expect(client.app.log).toHaveBeenCalledWith({ - body: expect.objectContaining({ level: "warn" }), + await harness.prompt("debug the flaky test"); + const first = await harness.context(); + expect(first.model.variant).toBe("high"); + expect(first.request.providerOptions.reasoningEffort).toBe("high"); + expect(harness.session.model).toEqual({ + providerID: "provider", + id: "model", + variant: "default", }); + + const next = await harness.context(); + expect(next.model.variant).not.toBe("high"); + expect(next.request.providerOptions.reasoningEffort).toBeUndefined(); + + await harness.prompt("explain this function"); + const second = await harness.context(); + expect(second.model.variant).toBe("high"); + expect(second.request.providerOptions.reasoningEffort).toBe("high"); + expect(harness.generateText).toHaveBeenCalledTimes(2); + expect(harness.switched).toHaveLength(0); }); - test("rejects an invalid classifier configuration", async () => { - const { client } = createClient(); - const plugin = await AdaptiveThinkingPlugin({ client } as never, { - classifier: { enabled: "yes" }, + test("records the last diagnostic when the classifier fails", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + harness.generateText.mockRejectedValueOnce(new Error("unavailable")); + + await harness.prompt("debug"); + await harness.context(); + + const last = harness.diagnostics.at(-1); + expect(last?.key).toBe("lastDiagnostic"); + expect(last?.value.level).toBe("warn"); + expect(last?.value.at).toEqual(expect.any(String)); + expect(last?.value.message).toContain("The classifier request failed"); + }); + + test("prefers the experimental generate API when available", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()], experimentalGenerate: true }, + ); + + await harness.prompt("debug the flaky test"); + const event = await harness.context(); + + expect(event.model.variant).toBe("high"); + expect(event.request.providerOptions.reasoningEffort).toBe("high"); + expect(harness.experimentalGenerateText).toHaveBeenCalledTimes(1); + expect(harness.generateText).not.toHaveBeenCalled(); + }); + + test("treats the model default as absent and applies the agent variant on the first turn", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage()], + agents: { worker: "low" }, + agent: "worker", + sessionModel: { providerID: "provider", id: "model", variant: "default" }, + }); + + const event = await harness.context([], undefined, "worker"); + const guidance = event.system.at(-1)?.text ?? ""; + + expect(event.model.variant).toBe("low"); + expect(event.request.model.settings).toEqual({}); + expect(event.request.providerOptions.reasoningEffort).toBe("low"); + expect(guidance).toContain("Current reasoning effort level: low."); + }); + + test("applies the resolved history level when the request carries the model default", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + sessionModel: { providerID: "provider", id: "model", variant: "default" }, + }); + + const event = await harness.context(); + const guidance = event.system.at(-1)?.text ?? ""; + + expect(event.model.variant).toBe("medium"); + expect(event.request.model.settings).toEqual({}); + expect(event.request.providerOptions.reasoningEffort).toBe("medium"); + expect(guidance).toContain("Current reasoning effort level: medium."); + expect(guidance).not.toContain("Current reasoning effort level: high."); + }); + + test("omits the current level when the request has no usable level", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage()], + sessionModel: { providerID: "provider", id: "model", variant: "default" }, + }); + + const event = await harness.context(); + const guidance = event.system.at(-1)?.text ?? ""; + + expect(event.model.variant).toBe("default"); + expect(event.request.providerOptions.reasoningEffort).toBeUndefined(); + expect(guidance).not.toContain("Current reasoning effort level"); + }); + + test("cleanup aborts the event subscription", async () => { + const harness = await createHarness(); + await harness.settle(); + + expect(harness.cleanup).toBeTypeOf("function"); + expect(harness.subscriptionSignals[0]?.aborted).toBe(false); + expect(harness.subscriptionTypes[0]).toEqual([ + "session.deleted", + "session.execution.succeeded", + "session.execution.failed", + "session.execution.interrupted", + ]); + + await harness.cleanup?.(); + await harness.settle(); + + expect(harness.subscriptionSignals[0]?.aborted).toBe(true); + }); + + test("aborts the classifier request when it times out", async () => { + vi.useFakeTimers(); + try { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + let signal: AbortSignal | undefined; + harness.generateText.mockImplementationOnce((_input: any, options?: any) => { + signal = options?.signal; + return new Promise(() => {}); + }); + + await harness.prompt("debug"); + const pending = harness.context(); + await vi.advanceTimersByTimeAsync(5000); + const event = await pending; + + expect(signal?.aborted).toBe(true); + expect(event.model.variant).toBeUndefined(); + expect(console.warn).toHaveBeenCalled(); + expect(harness.diagnostics.at(-1)?.value.message).toContain("The classifier timed out"); + } finally { + vi.useRealTimers(); + } + }); + + test("does not reset when the session cannot be read", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + + await harness.set("low", false, "worker"); + harness.ctx.session.get.mockRejectedValueOnce(new Error("unavailable")); + await harness.idle(); + + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low"]); + expect(harness.agentSwitches).toHaveLength(0); + expect(console.error).toHaveBeenCalled(); + }); + + test("disarms a temporary reset when the session is unreadable at tool time", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("high")], }); - expect(plugin).toEqual({}); - expect(client.app.log).toHaveBeenCalled(); + // The history carries the plugin's own classifier stamp, not a level the user chose. When + // the session itself cannot be read the baseline is UNKNOWN, so the reset must be disarmed + // instead of restoring that stamped level at idle. + harness.ctx.session.get.mockRejectedValueOnce(new Error("unavailable")); + expect((await harness.set("low", false)).content).toBe("Reasoning effort set to low"); + await harness.idle(); + + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low"]); + expect(console.error).toHaveBeenCalled(); + }); + + test("prefers the session variant over a stamped history level for the reset baseline", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("high")], + sessionModel: { providerID: "provider", id: "model", variant: "default" }, + }); + + // The history carries the plugin's own classifier stamp. The session variant is the + // reset baseline; the stamp must not survive idle as the session's level. + expect((await harness.set("low", false)).content).toBe("Reasoning effort set to low"); + await harness.idle(); + + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low", "default"]); + expect(harness.session.model).toEqual({ + providerID: "provider", + id: "model", + variant: "default", + }); + }); + + test("accepts unknown tool arguments", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + + expect(harness.tool().input.additionalProperties).toBeUndefined(); + const result = await harness + .tool() + .execute( + { level: "high", persist: true, extra: "ignored" }, + { sessionID: harness.sessionID, agent: "agent" }, + ); + + expect(result.content).toBe("Reasoning effort set to high"); + }); + + test("warns once for repeated switch failures", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + const succeed = harness.switchModel.getMockImplementation()!; + harness.switchModel + .mockImplementationOnce(succeed) + .mockImplementationOnce(async () => { + throw new Error("unavailable"); + }) + .mockImplementationOnce(async () => { + throw new Error("unavailable"); + }); + + await harness.set("low", false); + await harness.idle(); + await harness.idle(); + + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low"]); + expect(console.error).toHaveBeenCalledTimes(1); + expect(harness.diagnostics.filter((entry) => entry.key === "lastDiagnostic")).toHaveLength(2); + }); + + test("treats a non-serializable switch failure as a failure", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + harness.switchModel.mockImplementationOnce(async () => { + throw () => "not serializable"; + }); + + const result = await harness.set("high", false); + expect(result.content).toContain("Failed to set reasoning effort:"); + expect(result.content).not.toContain("Reasoning effort set"); + expect(console.error).toHaveBeenCalled(); + + // The failed switch must not be remembered as the current level. + await harness.set("low", false); + await harness.idle(); + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low", "medium"]); + }); + + test("fails open when the classifier returns a non-string answer", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + harness.generateText.mockResolvedValueOnce({ text: 42 } as never); + + await harness.prompt("debug the flaky test"); + const event = await harness.context([]); + + expect(event.model.variant).toBeUndefined(); + expect(event.request.providerOptions.reasoningEffort).toBeUndefined(); + expect(harness.switched).toHaveLength(0); + expect(event.system.at(-1)?.text).toContain("You MUST manage reasoning effort actively"); + expect(harness.diagnostics.at(-1)?.value.message).toContain( + "The classifier returned an invalid response", + ); + }); + + test("reports a successful response without text as an invalid response", async () => { + const harness = await createHarness( + { classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + harness.generateText.mockResolvedValueOnce({ text: undefined } as never); + + await harness.prompt("debug the flaky test"); + const event = await harness.context([]); + + expect(event.model.variant).toBeUndefined(); + expect(event.request.providerOptions.reasoningEffort).toBeUndefined(); + expect(harness.diagnostics.at(-1)?.value.message).toContain( + "The classifier returned an invalid response", + ); + expect(harness.diagnostics.at(-1)?.value.message).not.toContain( + "The classifier request failed", + ); + }); + + test("clears a remembered level when the reset is dropped for a model change", async () => { + const harness = await createHarness(undefined, { + messages: [userMessage(), assistantMessage("medium")], + }); + + await harness.set("low", false); + // The user picks another model while the temporary level is active. + harness.session.model = { providerID: "other", id: "narrow" }; + await harness.idle(); + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low"]); + + // A temporary change on the new model must use that model's own baseline. + harness.messages.push({ + type: "assistant", + model: { providerID: "other", id: "narrow", variant: "medium" }, + content: [{ type: "text", text: "assistant text" }], + time: { created: 2 }, + }); + await harness.set("low", false); + await harness.idle(); + + expect(harness.switched.map((entry) => entry.variant)).toEqual(["low", "low", "medium"]); + }); + + test("does not classify when only afterIdle is enabled", async () => { + const harness = await createHarness( + { triggers: { afterIdle: true, afterUserMessage: false }, classifier: { enabled: true } }, + { messages: [userMessage()] }, + ); + + await harness.prompt("debug the flaky test"); + const event = await harness.context([]); + + expect(harness.generateText).not.toHaveBeenCalled(); + expect(event.model.variant).toBeUndefined(); + expect(event.request.providerOptions.reasoningEffort).toBeUndefined(); + }); + + test("does not subscribe to events when disabled", async () => { + const harness = await createHarness({ enabled: false }); + await harness.settle(); + + expect(harness.ctx.event.subscribe).not.toHaveBeenCalled(); + expect(harness.subscriptionSignals).toHaveLength(0); }); }); diff --git a/src/index.ts b/src/index.ts index 66f2336..654988e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,26 +1,68 @@ -import { tool, type Plugin } from "@opencode-ai/plugin"; -import type { Message, Part, Provider } from "@opencode-ai/sdk/v2"; -import type { OpencodeClient } from "@opencode-ai/sdk"; +import { Plugin } from "@opencode/plugin"; import { parseConfig } from "./config.js"; -const z = tool.schema; const serviceName = "opencode-adaptive-thinking"; const maxSessionStateSize = 5000; const stateTtlMs = 7 * 24 * 60 * 60 * 1000; -const historyLimit = 20; const classifierTimeout = 5000; type ModelInfo = { providerID: string; modelID: string }; -type SessionMessage = { info: Message; parts: Array }; +type ModelRef = { providerID: string; id: string; variant?: string }; +// A catalog variant carries the request overrides the host applies when that variant is selected. +// The plugin applies the same records itself because the context hook's model ref is resolved +// before the hook runs, so changing `event.model.variant` cannot change the outgoing request. +type ModelVariant = { + id: string; + settings?: Record; + headers?: Record; + body?: Record; +}; +type GenerateText = ( + input: { prompt: string; model: { providerID: string; id: string; variant?: string } }, + options?: { signal?: AbortSignal }, +) => Promise<{ text: string }>; +type ModelRecord = { + modelID: string; + providerID: string; + variants: ReadonlyArray; +}; +// A message names its model with `id`. Provider records expose that identity as `modelID`, and +// some providers also expose a distinct record `id`, so a ref is matched against either one. +type ModelLookupRecord = ModelRecord & { id?: string }; +type AgentRecord = { id: string; name: string; model?: { variant?: string } }; +type ContentPart = { type: string; text?: string }; +type SessionMessage = { + type: string; + text?: string; + summary?: string; + model?: ModelRef; + content?: ReadonlyArray; + time?: { created?: number }; +}; type SessionState = { variant?: string; idlePending?: boolean; userPending?: boolean; lastIdleAt?: number; touchedAt?: number; - reset?: { level: string; agent: string; model?: ModelInfo }; + classifyText?: string; + reset?: { level: string; model: ModelInfo }; + // The request-scoped variant overrides that cannot be expressed through `event.options`. + // They apply to every attempt of the next primary request and are cleared by the next context + // hook, so a retry of the same call keeps them. + request?: { + headers?: Record; + body?: Record; + }; }; +const idleEvents = [ + "session.execution.succeeded", + "session.execution.failed", + "session.execution.interrupted", +] as const; +const trackedEvents = ["session.deleted", ...idleEvents] as const; + class SessionStateCache { private readonly entries = new Map(); @@ -60,398 +102,636 @@ class SessionStateCache { const state = new SessionStateCache(maxSessionStateSize); -type PromptAsyncBody = NonNullable< - Parameters[0]["body"] -> & { variant: string }; - -export const AdaptiveThinkingPlugin: Plugin = async ({ client }, options) => { - const logError = (message: string, error: unknown) => - client.app.log({ - body: { - service: serviceName, - level: "error", - message: `${message}: ${JSON.stringify(error)}`, - }, - }); +const describe = (error: unknown) => { + if (error instanceof Error) return `${error.name}: ${error.message}`; + try { + // `JSON.stringify` returns `undefined` for functions, symbols and `undefined`, so fall back + // to `String` to keep every diagnostic - and every failure path - a string. + return JSON.stringify(error) ?? String(error); + } catch { + return String(error); + } +}; - const parsed = parseConfig(options); - if ("error" in parsed) { - if (options?.quiet !== true) { - client.tui.showToast({ - body: { - variant: "error", - message: "Invalid Adaptive Thinking plugin configuration, see logs for details", - }, - }); - } - logError("Invalid Adaptive Thinking plugin configuration", parsed.error); - return {}; +const isRecord = (value: unknown): value is Record => + typeof value === "object" && value !== null && !Array.isArray(value); + +// Keys that configure the runtime rather than the provider request. A catalog variant may list +// them, but forwarding them as provider options would leak host settings into the wire request. +const requestRuntimeKeys = new Set([ + "apiKey", + "authToken", + "accessToken", + "baseURL", + "body", + "chunkTimeout", + "compaction", + "disabled", + "encoding", + "fetch", + "headerTimeout", + "headers", + "timeout", + "transport", +]); + +// Keys that would rewrite a prototype instead of carrying a provider option. +const unsafeKeys = new Set(["__proto__", "constructor", "prototype"]); +const isUnsafeKey = (key: string) => unsafeKeys.has(key); + +const mergeRecords = ( + target: Record, + source: Record, +): Record => { + const result: Record = { ...target }; + for (const [key, value] of Object.entries(source)) { + // Never let a catalog-supplied record touch the prototype chain. + if (isUnsafeKey(key)) continue; + const current = result[key]; + result[key] = isRecord(current) && isRecord(value) ? mergeRecords(current, value) : value; } + return result; +}; - const config = parsed.config; - if (!config.enabled) return {}; +export const AdaptiveThinkingPlugin = Plugin.define({ + id: serviceName, + async setup(ctx) { + // Plugin output goes to the server process console (stderr). Keep the last diagnostic in + // storage as well, because the console is not part of `opencode.log` or `--print-logs`. + const recordDiagnostic = (level: "warn" | "error", message: string, error?: unknown) => { + const text = error === undefined ? message : `${message}: ${describe(error)}`; + try { + void ctx.storage + .set("lastDiagnostic", { at: new Date().toISOString(), level, message: text }) + .catch(() => {}); + } catch { + // Storage is best-effort; when this failure also printed, that line is the record. + } + }; + + const logError = (message: string, error: unknown) => { + console.error(`[${serviceName}] ${message}: ${describe(error)}`); + recordDiagnostic("error", message, error); + }; + + const logWarn = (message: string, error?: unknown) => { + console.warn( + error === undefined + ? `[${serviceName}] ${message}` + : `[${serviceName}] ${message}: ${describe(error)}`, + ); + recordDiagnostic("warn", message, error); + }; + + const options = (ctx.options ?? {}) as Record; + const parsed = parseConfig(ctx.options); + if ("error" in parsed) { + if (options.quiet !== true) { + console.error( + `[${serviceName}] Invalid Adaptive Thinking plugin configuration, see the server output for details`, + ); + } + logError("Invalid Adaptive Thinking plugin configuration", parsed.error); + return; + } - const classifierSessions = new Set(); - let classifierWarned = false; + const config = parsed.config; + if (!config.enabled) return; - const warnClassifier = (message: string, error?: unknown) => { - if (classifierWarned) return; - classifierWarned = true; - client.app.log({ - body: { - service: serviceName, - level: "warn", - message: error === undefined ? message : `${message}: ${JSON.stringify(error)}`, - }, - }); - }; + let classifierWarned = false; - const promptText = (parts: Array) => { - if (parts.some((part) => part.type === "text" && (part.ignored || part.synthetic))) return; - const text = parts - .filter((part) => part.type === "text") - .map((part) => part.text) - .join("\n") - .trim(); - return text.length > 0 ? text : undefined; - }; + const warnClassifier = (message: string, error?: unknown) => { + if (classifierWarned) { + recordDiagnostic("warn", message, error); + return; + } + classifierWarned = true; + logWarn(message, error); + }; - const getModelVariants = (model: unknown) => { - const variants = (model as { variants?: Record } | undefined)?.variants; - return Object.keys(variants ?? {}); - }; + let switchWarned = false; + + const warnSwitch = (message: string, error: unknown) => { + if (switchWarned) { + recordDiagnostic("error", message, error); + return; + } + switchWarned = true; + logError(message, error); + }; - let providers: Array | undefined; + let requestWarned = false; - const variantsFor = async (model: ModelInfo) => { - if (!providers) { - const response = await client.provider.list(); - if (response.error) { - logError("Failed to retrieve providers", response.error); - return []; + const warnRequest = (message: string, error: unknown) => { + if (requestWarned) { + recordDiagnostic("warn", message, error); + return; } - providers = (response.data?.all ?? []) as unknown as Array; - } - const provider = providers.find((candidate) => candidate.id === model.providerID); - return getModelVariants(provider?.models[model.modelID]); - }; + requestWarned = true; + logWarn(message, error); + }; - const fetchMessages = async (sessionID: string) => { - const response = await client.session.messages({ - path: { id: sessionID }, - query: { limit: historyLimit }, - }); - if (response.error) { - logError(`Failed to retrieve messages for session ${sessionID}`, response.error); - return; - } - return (response.data ?? []) as Array; - }; + // `ctx.generate` is deprecated in newer typings in favor of `ctx.experimental.generate`. + // OpenCode 2.0.30 ships the old path, so prefer the new one when it exists. + const generateText: GenerateText = + (ctx.experimental as { generate?: { text?: GenerateText } } | undefined)?.generate?.text ?? + ctx.generate.text; - const modelOf = (info: Message): ModelInfo => - "model" in info - ? { providerID: info.model.providerID, modelID: info.model.modelID } - : { providerID: info.providerID, modelID: info.modelID }; + let models: Array | undefined; - const latestModel = (messages: Array): ModelInfo | undefined => { - const last = messages.at(-1)?.info; - return last ? modelOf(last) : undefined; - }; + const modelRecords = async () => { + if (models) return models; + try { + const response = await ctx.model.list(); + // A malformed catalog payload must fail open: the request still runs without a + // plugin-chosen level instead of failing out of the context hook. + if (!Array.isArray(response?.data)) { + logError("Failed to retrieve providers", "the provider list is not an array"); + return; + } + models = (response.data as unknown as Array).filter( + (record) => record !== null && typeof record === "object", + ); + return models; + } catch (error) { + logError("Failed to retrieve providers", error); + return; + } + }; + + const modelRecord = async (model: ModelInfo) => { + const records = await modelRecords(); + return records?.find( + (candidate) => + candidate.providerID === model.providerID && + (candidate.modelID === model.modelID || candidate.id === model.modelID), + ); + }; + + const variantRecord = async (model: ModelInfo, level: string) => { + const record = await modelRecord(model); + return Array.isArray(record?.variants) + ? record.variants.find((variant) => variant?.id === level) + : undefined; + }; + + const variantsFor = async (model: ModelInfo) => { + const record = await modelRecord(model); + return (Array.isArray(record?.variants) ? record.variants : []) + .map((variant) => variant?.id) + .filter((id): id is string => typeof id === "string"); + }; + + // `default` is the model baseline OpenCode materializes when no level was chosen. It is a valid + // reset target but not an advertised level, so it is kept out of the guidance list. + const isSelectable = (variant: string | undefined, variants: Array) => + variant !== undefined && (variants.includes(variant) || variant === "default"); + + const fetchMessages = async (sessionID: string) => { + try { + const messages = await ctx.session.context({ sessionID }); + // A malformed history payload is treated like an unavailable history: the caller fails + // open instead of throwing out of a hook or a tool call. + if (!Array.isArray(messages)) { + logError( + `Failed to retrieve messages for session ${sessionID}`, + "the session context is not an array", + ); + return; + } + return messages as unknown as Array; + } catch (error) { + logError(`Failed to retrieve messages for session ${sessionID}`, error); + return; + } + }; - const latestVariant = async (messages: Array) => { - let agent: string | undefined; - for (let i = messages.length - 1; i >= 0; i--) { - const info = messages[i]!.info; - const variant = "model" in info ? info.model.variant : info.variant; - if (variant) return variant; - agent ??= info.agent; - } - if (!agent) return; + const fetchSession = async (sessionID: string) => { + try { + return await ctx.session.get({ sessionID }); + } catch (error) { + logError(`Failed to retrieve session ${sessionID}`, error); + return; + } + }; + + const sessionModel = async (sessionID: string): Promise => { + const session = await fetchSession(sessionID); + const model = session?.model; + return model ? { providerID: model.providerID, modelID: model.id } : undefined; + }; + + // A failed `session.get` and a session that legitimately exposes no variant are different + // states. Only a successful read may fall back to history or the agent, because history can + // contain the level this plugin stamped on a classified request rather than a user choice. + type SessionVariantRead = { kind: "unreadable" } | { kind: "read"; variant?: string }; + + const readSessionVariant = async (sessionID: string): Promise => { + const session = await fetchSession(sessionID); + if (!session) return { kind: "unreadable" }; + return session.model?.variant === undefined + ? { kind: "read" } + : { kind: "read", variant: session.model.variant }; + }; + + const latestModel = (messages: Array): ModelInfo | undefined => { + for (let i = messages.length - 1; i >= 0; i--) { + const model = messages[i]!.model; + if (model) return { providerID: model.providerID, modelID: model.id }; + } + return; + }; - const response = await client.app.agents(); - if (response.error) { - logError("Failed to retrieve agents", response.error); + const latestVariant = (messages: Array) => { + for (let i = messages.length - 1; i >= 0; i--) { + const variant = messages[i]!.model?.variant; + if (variant) return variant; + } return; - } - const match = response.data?.find((candidate) => candidate.name === agent) as - | { variant?: string } - | undefined; - return match?.variant; - }; + }; - const messageText = (message: SessionMessage, includeSynthetic = false) => - message.parts - .map((part) => - part.type === "text" && !part.ignored && (includeSynthetic || !part.synthetic) - ? part.text - : "", - ) - .filter(Boolean) - .join("\n") - .trim(); - - const latestSummary = (messages: Array) => { - for (let i = messages.length - 1; i >= 0; i--) { - const info = messages[i]!.info; - if (info.role === "assistant" && info.summary === true) { - const text = messageText(messages[i]!, true); - if (text) return text; + const agentVariant = async (agent: string | undefined) => { + if (!agent) return; + try { + const response = await ctx.agent.list(); + const match = (response.data as unknown as Array).find( + (candidate) => candidate.name === agent || candidate.id === agent, + ); + return match?.model?.variant; + } catch (error) { + logError("Failed to retrieve agents", error); + return; } - } - }; + }; - const buildContext = async (sessionID: string) => { - const response = await client.session.messages({ path: { id: sessionID } }); - if (response.error) return ""; - const messages = (response.data ?? []) as Array; - const summary = latestSummary(messages); - if (summary) return summary; - const since = state.get(sessionID)?.lastIdleAt ?? 0; - return messages - .filter((message) => !since || message.info.time.created >= since) - .map((message) => { - const text = messageText(message); - return text ? `${message.info.role}: ${text}` : ""; - }) - .filter(Boolean) - .join("\n"); - }; + const messageText = (message: SessionMessage) => { + if (message.type === "user") return message.text?.trim() || undefined; + if (message.type !== "assistant") return; + const text = (message.content ?? []) + .filter((part) => part.type === "text" && typeof part.text === "string") + .map((part) => part.text) + .join("\n") + .trim(); + return text.length > 0 ? text : undefined; + }; + + const latestSummary = (messages: Array) => { + for (let i = messages.length - 1; i >= 0; i--) { + const message = messages[i]!; + if (message.type === "compaction" && message.summary) { + const text = message.summary.trim(); + if (text) return text; + } + } + return; + }; + + const buildContext = async (sessionID: string) => { + const messages = await fetchMessages(sessionID); + if (!messages) return ""; + const summary = latestSummary(messages); + if (summary) return summary; + const since = state.get(sessionID)?.lastIdleAt ?? 0; + return messages + .filter((message) => !since || (message.time?.created ?? 0) >= since) + .map((message) => { + const text = messageText(message); + return text ? `${message.type}: ${text}` : ""; + }) + .filter(Boolean) + .join("\n"); + }; - const classifyWithModel = async ( - parentID: string, - text: string, - variants: Array, - model: ModelInfo, - current: string | undefined, - context: string, - ) => { - const created = await (async () => { + const switchVariant = async (sessionID: string, model: ModelInfo, variant: string) => { try { - return await client.session.create({ - body: { parentID, title: "Reasoning effort classifier" }, + await ctx.session.switchModel({ + sessionID, + model: { providerID: model.providerID, id: model.modelID, variant }, }); - } catch { - return undefined; + return; + } catch (error) { + warnSwitch(`Failed to set reasoning effort for session ${sessionID}`, error); + return describe(error); } - })(); - if (!created || created.error || !created.data) { - warnClassifier("Failed to create the classifier session", created?.error); - return; - } + }; + + const classifyWithModel = async ( + text: string, + variants: Array, + model: ModelInfo, + current: string | undefined, + context: string, + ) => { + const prompt = [ + config.systemPrompt.trim(), + current ? `Current reasoning effort level: ${current}.` : "", + `Valid reasoning effort levels for this session: ${variants.join(", ")}.`, + `To change your reasoning effort, use the \`${config.toolName}\` tool with one of the valid levels.`, + "Only call it when the task complexity justifies changing levels.", + "Classifier task: choose exactly one of the valid levels for the current message and answer with that word only.", + "", + `Session context:\n${context || "(none)"}`, + "", + `Current message:\n${text}`, + ] + .filter(Boolean) + .join(" "); - const id = created.data.id; - classifierSessions.add(id); - try { - const pending = (async () => { - try { - return await client.session.prompt({ - path: { id }, - body: { - model, - system: [ - config.systemPrompt.trim(), - current ? `Current reasoning effort level: ${current}.` : "", - `Valid reasoning effort levels for this session: ${variants.join(", ")}.`, - `To change your reasoning effort, use the \`${config.toolName}\` tool with one of the valid levels.`, - "Only call it when the task complexity justifies changing levels.", - "Classifier task: choose exactly one of the valid levels for the current message and answer with that word only.", - ] - .filter(Boolean) - .join(" "), - tools: { "*": false }, - parts: [ - { - type: "text", - text: `Session context:\n${context || "(none)"}\n\nCurrent message:\n${text}`, - }, - ], - }, - }); - } catch { - return undefined; - } - })(); - const response = await Promise.race([ - pending, - new Promise((resolve) => - setTimeout(() => resolve(undefined), classifierTimeout), - ), - ]); - if (!response || response.error || !response.data) { - warnClassifier("The classifier request failed", response?.error); + const controller = new AbortController(); + let timer: ReturnType | undefined; + const timeout = new Promise<{ kind: "timeout" }>((resolve) => { + timer = setTimeout(() => { + controller.abort(); + resolve({ kind: "timeout" }); + }, classifierTimeout); + }); + + // An async wrapper also turns a synchronous throw from the generate API into a rejection, + // so a broken or missing implementation cannot escape the context hook. Tagging the + // outcome keeps a failed request distinct from a successful response with no text. + const pending: Promise<{ kind: "ok"; text: unknown } | { kind: "error"; error: unknown }> = + (async () => { + try { + const response = await generateText( + { + prompt, + model: { providerID: model.providerID, id: model.modelID }, + }, + { signal: controller.signal }, + ); + return { kind: "ok", text: response?.text } as const; + } catch (error) { + return { kind: "error", error } as const; + } + })(); + const answer = await Promise.race([pending, timeout]).finally(() => { + if (timer !== undefined) clearTimeout(timer); + }); + if (answer.kind === "timeout") { + warnClassifier("The classifier timed out"); + return; + } + if (answer.kind === "error") { + warnClassifier("The classifier request failed", answer.error); + return; + } + if (typeof answer.text !== "string") { + // A malformed successful response must fail open like any other classifier failure + // instead of throwing out of the context hook. + warnClassifier("The classifier returned an invalid response"); return; } - const answer = response.data.parts - .filter((part) => part.type === "text") - .map((part) => part.text) - .join(" ") - .toLowerCase(); + const lowered = answer.text.toLowerCase(); let best: { index: number; level: string } | undefined; for (const level of variants) { const escaped = level.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); - const match = new RegExp(`\\b${escaped}\\b`, "i").exec(answer); + const match = new RegExp(`\\b${escaped}\\b`, "i").exec(lowered); if (match && (!best || match.index < best.index)) best = { index: match.index, level }; } - return best?.level; - } finally { - classifierSessions.delete(id); - try { - await client.session.delete({ path: { id } }); - } catch {} - } - }; + if (!best) { + warnClassifier("The classifier returned an invalid response"); + return; + } + return best.level; + }; - const sendVariantPrompt = ( - sessionID: string, - variant: string, - text: string, - agent: string, - model?: ModelInfo, - ) => - client.session.promptAsync({ - path: { id: sessionID }, - body: { - noReply: true, - parts: [{ type: "text", text, synthetic: true, ignored: true }], - agent, - variant, - ...(model ? { model } : {}), - } as PromptAsyncBody, - }); + const applyRequestLevel = async ( + event: { + model: { providerID: string; id: string; variant?: string | undefined }; + options: Record; + }, + sessionID: string, + model: ModelInfo, + level: string, + ) => { + if (level === "default") return false; + + const variant = await variantRecord(model, level); + if (!variant) return false; + + let applied = false; + for (const [key, value] of Object.entries(variant.settings ?? {})) { + if (value === undefined || requestRuntimeKeys.has(key) || isUnsafeKey(key)) continue; + event.options[key] = value; + applied = true; + } + + const headers = + variant.headers && Object.keys(variant.headers).length > 0 ? variant.headers : undefined; + const body = variant.body && Object.keys(variant.body).length > 0 ? variant.body : undefined; + if (headers || body) { + state.update(sessionID, (entry) => { + entry.request = { + ...(headers ? { headers } : {}), + ...(body ? { body } : {}), + }; + }); + applied = true; + } + + // A variant that only changes runtime configuration cannot be honored by this request. + // Leave both the wire and the history ref untouched rather than claiming an effort that + // was never applied. + if (!applied) return false; + + // `Model.Ref` marks `variant` readonly for consumers; a context hook is where the plugin + // applies a per-request override. The host does not read this back for the outgoing + // request, but it does stamp the assistant message, so it must agree with the options and + // request overrides applied above. + Object.assign(event.model, { variant: level }); + return true; + }; + + const resetOnIdle = async (sessionID: string) => { + const reset = state.get(sessionID)?.reset; + if (!reset) return; + + const session = await fetchSession(sessionID); + if (!session) return; + + const current = session.model + ? { providerID: session.model.providerID, modelID: session.model.id } + : undefined; + if (!current) { + logError("Failed to reset reasoning effort on session idle", "no model is available"); + return; + } + + // The model selected at idle is authoritative. A temporary level belongs to the model that + // was current at tool-call time, so when the model changed it no longer applies: drop the + // pending reset instead of switching the session back to the old model. + if ( + current.providerID !== reset.model.providerID || + current.modelID !== reset.model.modelID + ) { + state.update(sessionID, (entry) => { + delete entry.reset; + // The remembered level belongs to the old model too. Leaving it would make the next + // temporary change on the new model use the old model's level as its baseline. + delete entry.variant; + }); + return; + } + + const error = await switchVariant(sessionID, current, reset.level); + if (error !== undefined) return; - return { - tool: { - [config.toolName]: tool({ + state.update(sessionID, (entry) => { + // The model default is the absence of a level, so it must not be remembered as one. + if (reset.level === "default") delete entry.variant; + else entry.variant = reset.level; + delete entry.reset; + }); + }; + + await ctx.tool.transform((editor) => { + editor.add({ + name: config.toolName, description: config.toolDescription, - args: { - level: z - .string() - .describe( - "The level of reasoning effort to apply. Higher levels may result in more accurate and thoughtful responses, but may also take more time and resources.", - ), - persist: z - .boolean() - .optional() - .default(false) - .describe( - "Whether to persist the setting for this session, otherwise it will only apply for the remainder of the current turn", - ), + input: { + type: "object", + properties: { + level: { + type: "string", + description: + "The level of reasoning effort to apply. Higher levels may result in more accurate and thoughtful responses, but may also take more time and resources.", + }, + persist: { + type: "boolean", + default: false, + description: + "Whether to persist the setting for this session, otherwise it will only apply for the remainder of the current turn", + }, + }, + required: ["level"], }, - execute: async ({ level, persist }, { sessionID, agent }) => { - if (classifierSessions.has(sessionID)) return "Unavailable in this session."; - const messages = await fetchMessages(sessionID); - if (!messages) return "Failed to set reasoning effort: could not read the session"; + async execute(input, context) { + const args = (input ?? {}) as Record; + const level = typeof args.level === "string" ? args.level : ""; + const persist = args.persist === true; + const sessionID = context.sessionID; - const model = latestModel(messages); - const variants = model ? await variantsFor(model) : []; + const messages = await fetchMessages(sessionID); + if (!messages) + return { content: "Failed to set reasoning effort: could not read the session" }; + + const model = latestModel(messages) ?? (await sessionModel(sessionID)); + if (!model) { + return { + content: + "Failed to set reasoning effort: no valid reasoning effort levels are available for this session", + }; + } + const variants = await variantsFor(model); if (variants.length === 0) { - return "Failed to set reasoning effort: no valid reasoning effort levels are available for this session"; + return { + content: + "Failed to set reasoning effort: no valid reasoning effort levels are available for this session", + }; } if (!variants.includes(level)) { - return `Invalid reasoning effort level: ${level}. Valid levels: ${variants.join(", ")}.`; + return { + content: `Invalid reasoning effort level: ${level}. Valid levels: ${variants.join(", ")}.`, + }; } + // The session's own variant before this tool call is the reset target. A classifier + // level is request-scoped, so `state.variant` must never anchor the reset. The history + // and agent fallbacks only apply when the session read succeeded and the session + // exposes no variant: a failed read is UNKNOWN, and assuming a history level could + // restore the plugin's own classifier stamp instead of a level the user chose. Only a + // previously captured `reset.level` keeps repeated temporary changes on the original + // baseline. + const sessionRead = await readSessionVariant(sessionID); + const previousSessionVariant = + sessionRead.kind === "read" ? sessionRead.variant : undefined; const baseline = state.get(sessionID)?.reset?.level ?? - state.get(sessionID)?.variant ?? - (await latestVariant(messages)); - const response = await sendVariantPrompt( - sessionID, - level, - `Reasoning effort set to ${level}`, - agent, - model, - ); - if (response.error) { - return `Failed to set reasoning effort: ${JSON.stringify(response.error)}`; + (sessionRead.kind === "read" + ? (previousSessionVariant ?? + latestVariant(messages) ?? + (await agentVariant(context.agent))) + : undefined); + const error = await switchVariant(sessionID, model, level); + if (error !== undefined) { + return { content: `Failed to set reasoning effort: ${error}` }; } state.update(sessionID, (entry) => { entry.variant = level; - if (persist || !baseline || baseline === level || !variants.includes(baseline)) { + if (persist || !baseline || baseline === level || !isSelectable(baseline, variants)) { delete entry.reset; } else { - entry.reset ??= { level: baseline, agent, ...(model ? { model } : {}) }; + entry.reset ??= { + level: baseline, + model, + }; } }); - return `Reasoning effort set to ${level}`; + return { content: `Reasoning effort set to ${level}` }; }, - }), - }, - "chat.message": async ({ sessionID, variant }, { message, parts }) => { - if (classifierSessions.has(sessionID)) return; - - const text = promptText(parts); - if (text === undefined) return; - - state.update(sessionID, (entry) => { - entry.userPending = true; }); + }); - if (!config.classifier.enabled || variant) return; - if (config.triggers !== undefined && !config.triggers.afterUserMessage) return; - - const variants = await variantsFor(message.model); - if (variants.length === 0) return; - - const current = state.get(sessionID)?.variant; - const context = await buildContext(sessionID); - const level = await classifyWithModel( - sessionID, - text, - variants, - config.classifier.model, - current, - context, - ); - if (!level || !variants.includes(level)) return; + await ctx.session.hook("prompt", (event) => { + const text = event.prompt.text.trim(); + if (text.length === 0) return; - (message.model as { variant?: string }).variant = level; - state.update(sessionID, (entry) => { - entry.variant = level; + state.update(event.sessionID, (entry) => { + entry.userPending = true; + if ( + config.classifier.enabled && + (config.triggers === undefined || config.triggers.afterUserMessage) + ) { + entry.classifyText = text; + } }); - }, - event: async ({ event }) => { - if (event.type === "session.deleted") { - state.delete(event.properties.info.id); - return; - } - if (event.type !== "session.idle") return; + }); - const sessionID = event.properties.sessionID; - if (classifierSessions.has(sessionID)) return; + await ctx.session.hook("context", async (event) => { + const sessionID = event.sessionID; + // A per-request override belongs to exactly one request. Clear any override left by a + // previous request before this request decides its own level. state.update(sessionID, (entry) => { - entry.userPending = false; - entry.idlePending = true; - entry.lastIdleAt = Date.now(); + delete entry.request; }); - const reset = state.get(sessionID)?.reset; - if (!reset) return; + // Invariant: `classifyText` is armed only when `triggers` is undefined or + // `afterUserMessage` is set (see the prompt hook), so whenever it exists the guidance gate + // below necessarily injects. A future change that arms `classifyText` independently must + // hoist the gate above this block. + const pendingText = state.get(sessionID)?.classifyText; + if (pendingText !== undefined && config.classifier.enabled) { + state.update(sessionID, (entry) => { + delete entry.classifyText; + }); - const response = await sendVariantPrompt( - sessionID, - reset.level, - `Reasoning effort reset to ${reset.level}.`, - reset.agent, - reset.model, - ); - if (response.error) { - logError("Failed to reset reasoning effort on session idle", response.error); - return; + const model = { providerID: event.model.providerID, modelID: event.model.id }; + const variants = await variantsFor(model); + const explicit = event.model.variant; + const hasExplicitLevel = + explicit !== undefined && explicit !== "default" && variants.includes(explicit); + if (variants.length > 0 && !hasExplicitLevel) { + const current = state.get(sessionID)?.variant; + const context = await buildContext(sessionID); + const level = await classifyWithModel( + pendingText, + variants, + config.classifier.model, + current, + context, + ); + if (level && variants.includes(level)) { + // Apply the level to this request only. Persisting it on the session model would + // outlive the turn and make the next user message look explicitly configured. + await applyRequestLevel(event, sessionID, model, level); + } + } } - state.update(sessionID, (entry) => { - entry.variant = reset.level; - delete entry.reset; - }); - }, - "experimental.chat.system.transform": async ({ sessionID, model }, { system }) => { - if (!sessionID || classifierSessions.has(sessionID)) return; - const session = state.get(sessionID); const userPending = session?.userPending === true; const idlePending = session?.idlePending ?? true; @@ -468,31 +748,59 @@ export const AdaptiveThinkingPlugin: Plugin = async ({ client }, options) => { entry.idlePending = false; }); } + + // Resolving the current level reads the full session history, so it runs only when the + // guidance is actually injected. Tool-continuation and disabled-trigger requests stop here. if (!inject) return; - let variants = getModelVariants(model); - let variant = state.get(sessionID)?.variant; - if (variant && !variants.includes(variant)) variant = undefined; + let model: ModelInfo = { providerID: event.model.providerID, modelID: event.model.id }; + let variants = await variantsFor(model); + // A request whose own model has no catalog variants cannot honor any level. Resolving a + // different model from history or the session would apply that model's settings to this + // request and stamp a variant this model does not have. + if (variants.length === 0) return; + // The stamped request ref is the per-request record: `applyRequestLevel` writes it only + // when the request actually received the level's settings. + let variant: string | undefined = event.model.variant; + if (variant !== undefined && (variant === "default" || !variants.includes(variant))) { + variant = undefined; + } - if (variants.length === 0 || !variant) { + if (!variant) { const messages = await fetchMessages(sessionID); if (!messages) return; - if (variants.length === 0) { - const info = latestModel(messages); - variants = info ? await variantsFor(info) : []; - if (variants.length === 0) return; - } + const resolved = latestVariant(messages) ?? (await agentVariant(event.agent)); + if (resolved && resolved !== "default" && variants.includes(resolved)) variant = resolved; + } - if (!variant) { - const resolved = await latestVariant(messages); - if (resolved && variants.includes(resolved)) { - variant = resolved; + // The model default is the absence of a level, so it is replaced by a resolved level or + // treated as no level at all. Keep the request and the guidance consistent either way. + if (variant) { + const level = variant; + const applied = + event.model.variant === level || + (await applyRequestLevel(event, sessionID, model, level)); + if (applied) { + if (session?.variant !== level) { + state.update(sessionID, (entry) => { + entry.variant = level; + }); + } + } else { + // The catalog has no request mapping for this level, so the request cannot honor it. + // Do not tell the model it runs at a level the wire never received. + variant = undefined; + if (session?.variant !== undefined) { state.update(sessionID, (entry) => { - entry.variant = resolved; + delete entry.variant; }); } } + } else if (session?.variant !== undefined) { + state.update(sessionID, (entry) => { + delete entry.variant; + }); } const guidance = [ @@ -505,8 +813,90 @@ export const AdaptiveThinkingPlugin: Plugin = async ({ client }, options) => { .filter(Boolean) .join(" "); - const existing = system[0]; - system[0] = existing ? `${existing}\n\n${guidance}` : guidance; - }, - }; -}; + event.system.push({ type: "text", text: guidance }); + }); + + // Variant header/body overrides cannot travel through `event.options`. Apply them to the one + // primary request the context hook prepared above. Auxiliary requests (title, compaction, + // generate) and unrelated providers keep their own settings. + await ctx.session.hook("model.request", (event) => { + if (event.kind !== "primary") return; + const pending = state.get(event.sessionID)?.request; + if (!pending?.headers) return; + Object.assign(event.headers, pending.headers); + }); + + await ctx.session.hook("http.request", async (event) => { + if (event.kind !== "primary") return; + const pending = state.get(event.sessionID)?.request; + if (!pending) return; + + // Keep the pending override for the duration of this call: the host invokes this hook on + // every transport attempt, so a retry must receive the same body. The context hook clears + // it before the next request. + if (!pending.body) return; + + try { + if (!event.request.body) return; + const parsed: unknown = JSON.parse(await event.request.clone().text()); + if (!isRecord(parsed)) return; + + const headers = new Headers(event.request.headers); + headers.delete("content-length"); + // Rebuilding from the original Request preserves its signal, referrer, credentials and + // other fields by spec; only the headers and body change. + const request = new Request(event.request, { + method: event.request.method, + headers, + body: JSON.stringify(mergeRecords(parsed, pending.body)), + }); + (event as { request: Request }).request = request; + } catch (error) { + // The typed request options still applied. The body override is best-effort because the + // payload may be compressed or use a protocol whose body is not JSON. + warnRequest("Failed to apply the request-scoped reasoning variant body", error); + } + }); + + const controller = new AbortController(); + // `types` exists in newer `SubscribeOptions`; 2.0.32 types omit it even though forwarding the + // option is harmless there and filters the stream on newer runtimes. + const subscribe = ctx.event.subscribe as unknown as (options?: { + signal?: AbortSignal; + types?: ReadonlyArray; + }) => ReturnType; + void (async () => { + try { + for await (const event of subscribe({ + signal: controller.signal, + types: trackedEvents, + })) { + try { + if (event.type === "session.deleted") { + state.delete(event.data.sessionID); + continue; + } + // The runtime may ignore `types`, so keep the runtime guard as well. + if (!(idleEvents as ReadonlyArray).includes(event.type)) continue; + const sessionID = (event as { data: { sessionID: string } }).data.sessionID; + state.update(sessionID, (entry) => { + entry.userPending = false; + entry.idlePending = true; + entry.lastIdleAt = Date.now(); + delete entry.classifyText; + }); + await resetOnIdle(sessionID); + } catch (error) { + logError("Event handler failed", error); + } + } + } catch (error) { + if (!controller.signal.aborted) logError("Event subscription failed", error); + } + })(); + + return () => controller.abort(); + }, +}); + +export default AdaptiveThinkingPlugin; From 6ce261554eda18848551dac09cd621115610b4d7 Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Mon, 2 Nov 2026 18:18:17 -0500 Subject: [PATCH 5/6] fix: pin @vitest/browser-playwright via overrides so npm git-dep preparation succeeds Installing this repo as a github: plugin spec runs npm's git-dep preparation (npm install --force --include=dev inside the clone), which crashes npm 10.9.9's arborist while walking vitest's optional peer set ('Cannot read properties of null (reading 'edgesOut')'). The plugin then never loads from a github: spec. The overrides entry makes arborist materialize the @vitest/browser-playwright node instead of hitting the null peer walk. Verified against the exact failing install command. --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 2435ff9..959d1db 100644 --- a/package.json +++ b/package.json @@ -53,5 +53,8 @@ "typescript": "^6.0.3", "vitest": "^4.1.9" }, + "overrides": { + "@vitest/browser-playwright": "^5.1.0" + }, "packageManager": "pnpm@11.8.0" } From 372c450f168f7a76bdd10fd4175e74fe2cf4d375 Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Sun, 15 Nov 2026 23:39:23 -0500 Subject: [PATCH 6/6] fix: merge adaptive guidance into first system prompt (upstream #21) Strict chat templates (e.g. llama.cpp) require exactly one system message and reject additional ones, breaking template rendering. Merge the adaptive-thinking guidance into the existing first system prompt instead of pushing a second one; only inject a standalone entry when no system prompt exists yet. --- bun.lock | 1020 +++++++++++++++++++++++++++++++++++++++++++++++++ dist/index.js | 7 +- src/index.ts | 10 +- 3 files changed, 1035 insertions(+), 2 deletions(-) create mode 100644 bun.lock diff --git a/bun.lock b/bun.lock new file mode 100644 index 0000000..3ae9163 --- /dev/null +++ b/bun.lock @@ -0,0 +1,1020 @@ +{ + "lockfileVersion": 2, + "configVersion": 1, + "workspaces": { + "": { + "name": "opencode-adaptive-thinking", + "dependencies": { + "@opencode/plugin": "~2.0.30", + }, + "devDependencies": { + "@changesets/changelog-github": "^0.7.0", + "@changesets/cli": "^2.31.0", + "@types/node": "^26.1.0", + "@typescript/native-preview": "7.0.0-dev.20260703.1", + "husky": "^9.1.7", + "oxfmt": "^0.57.0", + "oxlint": "^1.72.0", + "rolldown": "1.1.4", + "typescript": "^6.0.3", + "vitest": "^4.1.9", + }, + }, + }, + "overrides": { + "@vitest/browser-playwright": "^5.1.0", + }, + "packages": { + "@ai-sdk/provider": ["@ai-sdk/provider@3.0.8", "", { "dependencies": { "json-schema": "0.4.0" } }, "sha512-oGMAgGoQdBXbZqNG0Ze56CHjDZ1IDYOwGYxYjO5KLSlz5HiNQ9udIXsPZ61VWaHGZ5XW/jyjmr6t2xz2jGVwbQ=="], + + "@aws-crypto/crc32": ["@aws-crypto/crc32@5.2.0", "", { "dependencies": { "@aws-crypto/util": "5.2.0", "@aws-sdk/types": "3.975.0", "tslib": "2.8.1" } }, "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg=="], + + "@aws-crypto/sha256-browser": ["@aws-crypto/sha256-browser@5.2.0", "", { "dependencies": { "@aws-crypto/sha256-js": "5.2.0", "@aws-crypto/supports-web-crypto": "5.2.0", "@aws-crypto/util": "5.2.0", "@aws-sdk/types": "3.975.0", "@aws-sdk/util-locate-window": "3.965.10", "@smithy/util-utf8": "2.3.0", "tslib": "2.8.1" } }, "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw=="], + + "@aws-crypto/sha256-js": ["@aws-crypto/sha256-js@5.2.0", "", { "dependencies": { "@aws-crypto/util": "5.2.0", "@aws-sdk/types": "3.975.0", "tslib": "2.8.1" } }, "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA=="], + + "@aws-crypto/supports-web-crypto": ["@aws-crypto/supports-web-crypto@5.2.0", "", { "dependencies": { "tslib": "2.8.1" } }, "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg=="], + + "@aws-crypto/util": ["@aws-crypto/util@5.2.0", "", { "dependencies": { "@aws-sdk/types": "3.975.0", "@smithy/util-utf8": "2.3.0", "tslib": "2.8.1" } }, "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ=="], + + "@aws-sdk/client-cognito-identity": ["@aws-sdk/client-cognito-identity@3.1057.0", "", { "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.979.1", "@aws-sdk/credential-provider-node": "3.972.92", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/fetch-http-handler": "5.8.0", "@smithy/node-http-handler": "4.14.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-5MliYkp2u0+2arTp5fZIaxl+xmm90LEKv/VeSxhfNQW4t0fvWJrNO429/jchWQenNoDRrOGE59VfbuZUfwFujg=="], + + "@aws-sdk/core": ["@aws-sdk/core@3.979.1", "", { "dependencies": { "@aws-sdk/types": "3.975.0", "@aws-sdk/xml-builder": "3.972.42", "@aws/lambda-invoke-store": "0.3.0", "@smithy/core": "3.38.1", "@smithy/signature-v4": "5.7.5", "@smithy/types": "4.19.0", "bowser": "2.15.0", "tslib": "2.8.1" } }, "sha512-ayOlV1VhLNMiq8PW9ZkVobG4gkldnUoHjG69yy2b8j+VYFlhz/uAL7ZdYQAoQ+eShtGUdNDnnG5rxDg6yUJrOg=="], + + "@aws-sdk/credential-provider-cognito-identity": ["@aws-sdk/credential-provider-cognito-identity@3.972.79", "", { "dependencies": { "@aws-sdk/nested-clients": "3.997.54", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-T64OD+bN7izbhAuPVu+FATwEvki3IsjXICjKrNlhuIijUXuWMfmMU5irN4ytQq2d31Z3rJp5L8sEjZ5L8wMAmg=="], + + "@aws-sdk/credential-provider-env": ["@aws-sdk/credential-provider-env@3.972.80", "", { "dependencies": { "@aws-sdk/core": "3.979.1", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-uO5TiSvb6j1w9RTe5z28OaOmsrOxVQUPaC5+wZl50RfOXcrYD/KgnS8I9lfyGXc7sGbkCopK6VnhNIAoLqfewQ=="], + + "@aws-sdk/credential-provider-http": ["@aws-sdk/credential-provider-http@3.972.82", "", { "dependencies": { "@aws-sdk/core": "3.979.1", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/fetch-http-handler": "5.8.0", "@smithy/node-http-handler": "4.14.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-vQzlDHlC24Yz42p+rT4NBoP/5VdetkBoujbOLq9h6QYWC8THuZSPYnXIR9OP3XcOrdMgPBBipOrdssfxnIiWUg=="], + + "@aws-sdk/credential-provider-ini": ["@aws-sdk/credential-provider-ini@3.973.25", "", { "dependencies": { "@aws-sdk/core": "3.979.1", "@aws-sdk/credential-provider-env": "3.972.80", "@aws-sdk/credential-provider-http": "3.972.82", "@aws-sdk/credential-provider-login": "3.972.87", "@aws-sdk/credential-provider-process": "3.972.80", "@aws-sdk/credential-provider-sso": "3.973.24", "@aws-sdk/credential-provider-web-identity": "3.972.86", "@aws-sdk/nested-clients": "3.997.54", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/credential-provider-imds": "4.5.2", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-b5xl71uCRdWsu7P1VeGpiGuCf6zfYETsSNOv8AmYVTrsgbvTJRXdmmOPVfxkvGGVNsiKkGctClQW3jAn0SZLug=="], + + "@aws-sdk/credential-provider-login": ["@aws-sdk/credential-provider-login@3.972.87", "", { "dependencies": { "@aws-sdk/core": "3.979.1", "@aws-sdk/nested-clients": "3.997.54", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-C4ZFmcwM+Zj14Z8huVUk54Gv4uzT1ZdzG9cY3Gdh8FePakq7Bss1OFsgZjAhWFOkFOGpBvFBeu0OWjWf8HNKRQ=="], + + "@aws-sdk/credential-provider-node": ["@aws-sdk/credential-provider-node@3.972.92", "", { "dependencies": { "@aws-sdk/credential-provider-env": "3.972.80", "@aws-sdk/credential-provider-http": "3.972.82", "@aws-sdk/credential-provider-ini": "3.973.25", "@aws-sdk/credential-provider-process": "3.972.80", "@aws-sdk/credential-provider-sso": "3.973.24", "@aws-sdk/credential-provider-web-identity": "3.972.86", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/credential-provider-imds": "4.5.2", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-jC3zmOo7Qxlk+oBivvSsS1Ph7sFGm0QfuhqDGbqgRXi4cxUYMG+dWtBwS2XYYXgc8TIVXJiwgQ65sbNpbYupTA=="], + + "@aws-sdk/credential-provider-process": ["@aws-sdk/credential-provider-process@3.972.80", "", { "dependencies": { "@aws-sdk/core": "3.979.1", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-xqfixO5aclje7tbQJDias+iNND5wp/3QZixCdZcVQpgWPTZ0V5DfTW9A804A5Z7ezu7sH3WRO+vzUjtiJBA8yg=="], + + "@aws-sdk/credential-provider-sso": ["@aws-sdk/credential-provider-sso@3.973.24", "", { "dependencies": { "@aws-sdk/core": "3.979.1", "@aws-sdk/nested-clients": "3.997.54", "@aws-sdk/token-providers": "3.1161.0", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-nlg3BKG03Cgzvv/dMnhxvDJPhAhQSpaN0RUdwgU7ziwkasoev7iI8el8Xy4Rd5sqzgaDUbV269fOXck5SargqA=="], + + "@aws-sdk/credential-provider-web-identity": ["@aws-sdk/credential-provider-web-identity@3.972.86", "", { "dependencies": { "@aws-sdk/core": "3.979.1", "@aws-sdk/nested-clients": "3.997.54", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-zKTyLJBEyfQBVlYqT6Jt+mYV4r8kGbWM7dn6v4Y4MRARizhYafjDXP/iMu76UMRhToSPNmIKX1XAb24gtpBFIA=="], + + "@aws-sdk/credential-providers": ["@aws-sdk/credential-providers@3.1057.0", "", { "dependencies": { "@aws-sdk/client-cognito-identity": "3.1057.0", "@aws-sdk/core": "3.979.1", "@aws-sdk/credential-provider-cognito-identity": "3.972.79", "@aws-sdk/credential-provider-env": "3.972.80", "@aws-sdk/credential-provider-http": "3.972.82", "@aws-sdk/credential-provider-ini": "3.973.25", "@aws-sdk/credential-provider-login": "3.972.87", "@aws-sdk/credential-provider-node": "3.972.92", "@aws-sdk/credential-provider-process": "3.972.80", "@aws-sdk/credential-provider-sso": "3.973.24", "@aws-sdk/credential-provider-web-identity": "3.972.86", "@aws-sdk/nested-clients": "3.997.54", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/credential-provider-imds": "4.5.2", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-rbrEHtz11g0kxsSkYr3fx2HABNNblp4AhB2MgPvJHgYOWfJ2eBviU7Mvoaef0PW8QH6lbZDfJcnM7eKvtvz3sw=="], + + "@aws-sdk/nested-clients": ["@aws-sdk/nested-clients@3.997.54", "", { "dependencies": { "@aws-sdk/core": "3.979.1", "@aws-sdk/signature-v4-multi-region": "3.996.51", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/fetch-http-handler": "5.8.0", "@smithy/node-http-handler": "4.14.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-/OczlavsS7U5sOodRO10Ug4R/AKFVZiXTstKipWe68EfjPkmdDFNXNl9FCJyXWkg1DG6RBm3qAuVB8FNW9O8KQ=="], + + "@aws-sdk/signature-v4-multi-region": ["@aws-sdk/signature-v4-multi-region@3.996.51", "", { "dependencies": { "@aws-sdk/types": "3.975.0", "@smithy/signature-v4": "5.7.5", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-+aHvUugVBuMPXxgkPfWnTMyGdE/yWS8GHi5+qQ37HowS0YqzrbuaDLznj+Dtmtu5jgCdqz36gXmujOToUhNNWw=="], + + "@aws-sdk/token-providers": ["@aws-sdk/token-providers@3.1161.0", "", { "dependencies": { "@aws-sdk/core": "3.979.1", "@aws-sdk/nested-clients": "3.997.54", "@aws-sdk/types": "3.975.0", "@smithy/core": "3.38.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-ypbXSofNcSHwf/KA40bFCXJb0MLaAKrfT7sot4dFaA+2lsuXNah4zLRJIAU7Qmvs9PFJ6rnY0bZFEC+mE7attA=="], + + "@aws-sdk/types": ["@aws-sdk/types@3.975.0", "", { "dependencies": { "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-WQlhs6juByzWOzj5fwxOx0mPJaEqMcG/sDpl3Id61B3XhKE63xY+0QWcnG+sWR/sCfprmreyUo1lM7IKZmHMzw=="], + + "@aws-sdk/util-locate-window": ["@aws-sdk/util-locate-window@3.965.10", "", { "dependencies": { "tslib": "2.8.1" } }, "sha512-ycwH6Zd2GhuSqdXX9ihbCjeGTB6xOJs+O3+Jb8/zDG9978XU80qs75dfkPJRMNKe5MvBZPuNeFpd4JZKPoUF4g=="], + + "@aws-sdk/xml-builder": ["@aws-sdk/xml-builder@3.972.42", "", { "dependencies": { "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-smX8/gNP8Kjq+CWTBMZQLQ912vOQjiWExzwzvMO+eujPB5RY8IbtF0AGdUUXHKN7KoDWK9dIcuW0WG269kiP6w=="], + + "@aws/lambda-invoke-store": ["@aws/lambda-invoke-store@0.3.0", "", {}, "sha512-sl4Bm6yiMNYrZKkqqDFWN0UfnWhlS8ivKxrYl+6t0gCLrqr8y3B2IqZZbFRkfaVVp7C/baApyh71P+LeE1A2sQ=="], + + "@babel/runtime": ["@babel/runtime@7.29.7", "", {}, "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw=="], + + "@changesets/apply-release-plan": ["@changesets/apply-release-plan@7.1.1", "", { "dependencies": { "@changesets/config": "3.1.4", "@changesets/get-version-range-type": "0.4.0", "@changesets/git": "3.0.4", "@changesets/should-skip-package": "0.1.2", "@changesets/types": "6.1.0", "@manypkg/get-packages": "1.1.3", "detect-indent": "6.1.0", "fs-extra": "7.0.1", "lodash.startcase": "4.4.0", "outdent": "0.5.0", "prettier": "2.8.8", "resolve-from": "5.0.0", "semver": "7.8.5" } }, "sha512-9qPCm/rLx/xoOFXIHGB229+4GOL76S4MC+7tyOuTsR6+1jYlfFDQORdvwR5hDA6y4FL2BPt3qpbcQIS+dW85LA=="], + + "@changesets/assemble-release-plan": ["@changesets/assemble-release-plan@6.0.10", "", { "dependencies": { "@changesets/errors": "0.2.0", "@changesets/get-dependents-graph": "2.1.4", "@changesets/should-skip-package": "0.1.2", "@changesets/types": "6.1.0", "@manypkg/get-packages": "1.1.3", "semver": "7.8.5" } }, "sha512-rSDcqdJ9KbVyjpBIuCidhvZNIiVt1XaIYp73ycVQRIA5n/j6wQaEk0ChRLMUQ1vkxZe51PTQ9OIhbg6HQMW45A=="], + + "@changesets/changelog-git": ["@changesets/changelog-git@0.2.1", "", { "dependencies": { "@changesets/types": "6.1.0" } }, "sha512-x/xEleCFLH28c3bQeQIyeZf8lFXyDFVn1SgcBiR2Tw/r4IAWlk1fzxCEZ6NxQAjF2Nwtczoen3OA2qR+UawQ8Q=="], + + "@changesets/changelog-github": ["@changesets/changelog-github@0.7.0", "", { "dependencies": { "@changesets/get-github-info": "0.8.0", "@changesets/types": "6.1.0", "dotenv": "8.6.0" } }, "sha512-rBsbRvc4TVn+FvFnOVM3LxlFJfTXXCp8gfVJ+0BubxWNSVnLuAzowi5j+IEraLLP52w8AAs9QfKbPS3MMiXQJA=="], + + "@changesets/cli": ["@changesets/cli@2.31.0", "", { "dependencies": { "@changesets/apply-release-plan": "7.1.1", "@changesets/assemble-release-plan": "6.0.10", "@changesets/changelog-git": "0.2.1", "@changesets/config": "3.1.4", "@changesets/errors": "0.2.0", "@changesets/get-dependents-graph": "2.1.4", "@changesets/get-release-plan": "4.0.16", "@changesets/git": "3.0.4", "@changesets/logger": "0.1.1", "@changesets/pre": "2.0.2", "@changesets/read": "0.6.7", "@changesets/should-skip-package": "0.1.2", "@changesets/types": "6.1.0", "@changesets/write": "0.4.0", "@inquirer/external-editor": "1.0.3", "@manypkg/get-packages": "1.1.3", "ansi-colors": "4.1.3", "enquirer": "2.4.1", "fs-extra": "7.0.1", "mri": "1.2.0", "package-manager-detector": "0.2.11", "picocolors": "1.1.1", "resolve-from": "5.0.0", "semver": "7.8.5", "spawndamnit": "3.0.1", "term-size": "2.2.1" }, "bin": { "changeset": "bin.js" } }, "sha512-AhI4enNTgHu2IZr6K4WZyf0EPch4XVMn1yOMFmCD9gsfBGqMYaHXls5HyDv6/CL5axVQABz68eG30eCtbr2wFg=="], + + "@changesets/config": ["@changesets/config@3.1.4", "", { "dependencies": { "@changesets/errors": "0.2.0", "@changesets/get-dependents-graph": "2.1.4", "@changesets/logger": "0.1.1", "@changesets/should-skip-package": "0.1.2", "@changesets/types": "6.1.0", "@manypkg/get-packages": "1.1.3", "fs-extra": "7.0.1", "micromatch": "4.0.8" } }, "sha512-pf0bvD/v6WI2cRlZ6hzpjtZdSlXDXMAJ+Iz7xfFzV4ZxJ8OGGAON+1qYc99ZPrijnt4xp3VGG7eNvAOGS24V1Q=="], + + "@changesets/errors": ["@changesets/errors@0.2.0", "", { "dependencies": { "extendable-error": "0.1.7" } }, "sha512-6BLOQUscTpZeGljvyQXlWOItQyU71kCdGz7Pi8H8zdw6BI0g3m43iL4xKUVPWtG+qrrL9DTjpdn8eYuCQSRpow=="], + + "@changesets/get-dependents-graph": ["@changesets/get-dependents-graph@2.1.4", "", { "dependencies": { "@changesets/types": "6.1.0", "@manypkg/get-packages": "1.1.3", "picocolors": "1.1.1", "semver": "7.8.5" } }, "sha512-ZsS00x6WvmHq3sQv8oCMwL0f/z3wbXCVuSVTJwCnnmbC/iBdNJGFx1EcbMG4PC6sXRyH69liM4A2WKXzn/kRPg=="], + + "@changesets/get-github-info": ["@changesets/get-github-info@0.8.0", "", { "dependencies": { "dataloader": "1.4.0", "node-fetch": "2.7.0" } }, "sha512-cRnC+xdF0JIik7coko3iUP9qbnfi1iJQ3sAa6dE+Tx3+ET8bjFEm63PA4WEohgjYcmsOikPHWzPsMWWiZmntOQ=="], + + "@changesets/get-release-plan": ["@changesets/get-release-plan@4.0.16", "", { "dependencies": { "@changesets/assemble-release-plan": "6.0.10", "@changesets/config": "3.1.4", "@changesets/pre": "2.0.2", "@changesets/read": "0.6.7", "@changesets/types": "6.1.0", "@manypkg/get-packages": "1.1.3" } }, "sha512-2K5Om6CrMPm45rtvckfzWo7e9jOVCKLCnXia5eUPaURH7/LWzri7pK1TycdzAuAtehLkW7VPbWLCSExTHmiI6g=="], + + "@changesets/get-version-range-type": ["@changesets/get-version-range-type@0.4.0", "", {}, "sha512-hwawtob9DryoGTpixy1D3ZXbGgJu1Rhr+ySH2PvTLHvkZuQ7sRT4oQwMh0hbqZH1weAooedEjRsbrWcGLCeyVQ=="], + + "@changesets/git": ["@changesets/git@3.0.4", "", { "dependencies": { "@changesets/errors": "0.2.0", "@manypkg/get-packages": "1.1.3", "is-subdir": "1.2.0", "micromatch": "4.0.8", "spawndamnit": "3.0.1" } }, "sha512-BXANzRFkX+XcC1q/d27NKvlJ1yf7PSAgi8JG6dt8EfbHFHi4neau7mufcSca5zRhwOL8j9s6EqsxmT+s+/E6Sw=="], + + "@changesets/logger": ["@changesets/logger@0.1.1", "", { "dependencies": { "picocolors": "1.1.1" } }, "sha512-OQtR36ZlnuTxKqoW4Sv6x5YIhOmClRd5pWsjZsddYxpWs517R0HkyiefQPIytCVh4ZcC5x9XaG8KTdd5iRQUfg=="], + + "@changesets/parse": ["@changesets/parse@0.4.3", "", { "dependencies": { "@changesets/types": "6.1.0", "js-yaml": "4.3.0" } }, "sha512-ZDmNc53+dXdWEv7fqIUSgRQOLYoUom5Z40gmLgmATmYR9NbL6FJJHwakcCpzaeCy+1D0m0n7mT4jj2B/MQPl7A=="], + + "@changesets/pre": ["@changesets/pre@2.0.2", "", { "dependencies": { "@changesets/errors": "0.2.0", "@changesets/types": "6.1.0", "@manypkg/get-packages": "1.1.3", "fs-extra": "7.0.1" } }, "sha512-HaL/gEyFVvkf9KFg6484wR9s0qjAXlZ8qWPDkTyKF6+zqjBe/I2mygg3MbpZ++hdi0ToqNUF8cjj7fBy0dg8Ug=="], + + "@changesets/read": ["@changesets/read@0.6.7", "", { "dependencies": { "@changesets/git": "3.0.4", "@changesets/logger": "0.1.1", "@changesets/parse": "0.4.3", "@changesets/types": "6.1.0", "fs-extra": "7.0.1", "p-filter": "2.1.0", "picocolors": "1.1.1" } }, "sha512-D1G4AUYGrBEk8vj8MGwf75k9GpN6XL3wg8i42P2jZZwFLXnlr2Pn7r9yuQNbaMCarP7ZQWNJbV6XLeysAIMhTA=="], + + "@changesets/should-skip-package": ["@changesets/should-skip-package@0.1.2", "", { "dependencies": { "@changesets/types": "6.1.0", "@manypkg/get-packages": "1.1.3" } }, "sha512-qAK/WrqWLNCP22UDdBTMPH5f41elVDlsNyat180A33dWxuUDyNpg6fPi/FyTZwRriVjg0L8gnjJn2F9XAoF0qw=="], + + "@changesets/types": ["@changesets/types@6.1.0", "", {}, "sha512-rKQcJ+o1nKNgeoYRHKOS07tAMNd3YSN0uHaJOZYjBAgxfV7TUE7JE+z4BzZdQwb5hKaYbayKN5KrYV7ODb2rAA=="], + + "@changesets/write": ["@changesets/write@0.4.0", "", { "dependencies": { "@changesets/types": "6.1.0", "fs-extra": "7.0.1", "human-id": "4.2.0", "prettier": "2.8.8" } }, "sha512-CdTLvIOPiCNuH71pyDu3rA+Q0n65cmAbXnwWH84rKGiFumFzkmHNT8KHTMEchcxN+Kl8I54xGUhJ7l3E7X396Q=="], + + "@effect/opentelemetry": ["@effect/opentelemetry@4.0.1", "", { "peerDependencies": { "@opentelemetry/api": ">=1.9.0 <2.0.0", "@opentelemetry/api-logs": ">=0.203.0 <0.300.0", "@opentelemetry/resources": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-logs": ">=0.203.0 <0.300.0", "@opentelemetry/sdk-metrics": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-trace-base": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-trace-node": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-trace-web": ">=2.0.0 <3.0.0", "@opentelemetry/semantic-conventions": ">=1.33.0 <2.0.0", "effect": "^4.0.1" }, "optionalPeers": ["@opentelemetry/api", "@opentelemetry/api-logs", "@opentelemetry/resources", "@opentelemetry/sdk-logs", "@opentelemetry/sdk-metrics", "@opentelemetry/sdk-trace-base", "@opentelemetry/sdk-trace-node", "@opentelemetry/sdk-trace-web"] }, "sha512-MZ7M1a1dxMqTqeNwIGSECjO7RrReEgeEwHo8BnbOqP+8IfVpdiJi/iPCmkFVWlAxanMl4qhsq69e0Hkul9t+bA=="], + + "@effect/platform-node": ["@effect/platform-node@4.0.1", "", { "dependencies": { "@effect/platform-node-shared": "4.0.6", "undici": "8.12.3" }, "peerDependencies": { "effect": "^4.0.1", "redis": ">=5.0.0 <7.0.0" } }, "sha512-FT0Fu5LO0/XP9zBpj0HqrtJNLluK4StNKqf6TSulUsjp8FPBsDVXGJiDuyoN5J2yVMT7tgvhxSwaDcObWVRIaQ=="], + + "@effect/platform-node-shared": ["@effect/platform-node-shared@4.0.1", "", { "dependencies": { "@types/ws": "8.18.2", "ws": "8.22.1" }, "peerDependencies": { "effect": "^4.0.1" } }, "sha512-VanaejudEhKJ4mpmqnEzdncVUhN6sGSO9ZDND54mRxAlZxj+4dYAWjDTYAy9o4tJo9aALeP2U8cVcOFzEdSeLg=="], + + "@emnapi/core": ["@emnapi/core@1.11.1", "", { "dependencies": { "@emnapi/wasi-threads": "1.2.2", "tslib": "2.8.1" } }, "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ=="], + + "@emnapi/runtime": ["@emnapi/runtime@1.11.1", "", { "dependencies": { "tslib": "2.8.1" } }, "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw=="], + + "@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.2.2", "", { "dependencies": { "tslib": "2.8.1" } }, "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA=="], + + "@gar/promise-retry": ["@gar/promise-retry@1.0.3", "", {}, "sha512-GmzA9ckNokPypTg10pgpeHNQe7ph+iIKKmhKu3Ob9ANkswreCx7R3cKmY781K8QK3AqVL3xVh9A42JvIAbkkSA=="], + + "@inquirer/external-editor": ["@inquirer/external-editor@1.0.3", "", { "dependencies": { "chardet": "2.2.0", "iconv-lite": "0.7.2" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA=="], + + "@isaacs/cliui": ["@isaacs/cliui@8.0.2", "", { "dependencies": { "string-width": "5.1.2", "string-width-cjs": "npm:string-width@4.2.3", "strip-ansi": "7.2.0", "strip-ansi-cjs": "npm:strip-ansi@6.0.1", "wrap-ansi": "8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="], + + "@isaacs/fs-minipass": ["@isaacs/fs-minipass@4.0.1", "", { "dependencies": { "minipass": "7.1.3" } }, "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w=="], + + "@isaacs/string-locale-compare": ["@isaacs/string-locale-compare@1.1.0", "", {}, "sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ=="], + + "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], + + "@manypkg/find-root": ["@manypkg/find-root@1.1.0", "", { "dependencies": { "@babel/runtime": "7.29.7", "@types/node": "12.20.55", "find-up": "4.1.0", "fs-extra": "8.1.0" } }, "sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA=="], + + "@manypkg/get-packages": ["@manypkg/get-packages@1.1.3", "", { "dependencies": { "@babel/runtime": "7.29.7", "@changesets/types": "4.1.0", "@manypkg/find-root": "1.1.0", "fs-extra": "8.1.0", "globby": "11.1.0", "read-yaml-file": "1.1.0" } }, "sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A=="], + + "@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.1.6", "", { "dependencies": { "@tybys/wasm-util": "0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1", "@emnapi/runtime": "^1.7.1" } }, "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg=="], + + "@nodelib/fs.scandir": ["@nodelib/fs.scandir@2.1.5", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "1.2.0" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="], + + "@nodelib/fs.stat": ["@nodelib/fs.stat@2.0.5", "", {}, "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="], + + "@nodelib/fs.walk": ["@nodelib/fs.walk@1.2.8", "", { "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "1.20.1" } }, "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg=="], + + "@npmcli/agent": ["@npmcli/agent@4.0.2", "", { "dependencies": { "agent-base": "7.1.4", "http-proxy-agent": "7.0.2", "https-proxy-agent": "7.0.6", "lru-cache": "11.5.3", "socks-proxy-agent": "8.0.5" } }, "sha512-EUEuWAxnL07Sp5/iC/1X6Xj+XThUvnbei9zfRWZdEXa7lss9RTHMhAHBeg+MZ5To9s/gGaSI+UwZTPdYMvKSeg=="], + + "@npmcli/arborist": ["@npmcli/arborist@9.4.0", "", { "dependencies": { "@isaacs/string-locale-compare": "1.1.0", "@npmcli/fs": "5.0.0", "@npmcli/installed-package-contents": "4.0.0", "@npmcli/map-workspaces": "5.0.3", "@npmcli/metavuln-calculator": "9.0.3", "@npmcli/name-from-folder": "4.0.0", "@npmcli/node-gyp": "5.0.0", "@npmcli/package-json": "7.0.5", "@npmcli/query": "5.0.0", "@npmcli/redact": "4.0.0", "@npmcli/run-script": "10.0.4", "bin-links": "6.0.3", "cacache": "20.0.4", "common-ancestor-path": "2.0.0", "hosted-git-info": "9.0.3", "json-stringify-nice": "1.1.4", "lru-cache": "11.5.3", "minimatch": "10.2.5", "nopt": "9.0.0", "npm-install-checks": "8.0.0", "npm-package-arg": "13.0.2", "npm-pick-manifest": "11.0.3", "npm-registry-fetch": "19.1.1", "pacote": "21.5.1", "parse-conflict-json": "5.0.1", "proc-log": "6.1.0", "proggy": "4.0.0", "promise-all-reject-late": "1.0.1", "promise-call-limit": "3.0.2", "semver": "7.8.5", "ssri": "13.0.1", "treeverse": "3.0.0", "walk-up-path": "4.0.0" }, "bin": { "arborist": "bin/index.js" } }, "sha512-4Bm8hNixJG/sii1PMnag0V9i/sGOX9VRzFrUiZMSBJpGlLR38f+Btl85d07G9GL56xO0l0OZjvrGNYsDYp0xKA=="], + + "@npmcli/config": ["@npmcli/config@10.8.1", "", { "dependencies": { "@npmcli/map-workspaces": "5.0.3", "@npmcli/package-json": "7.0.5", "ci-info": "4.4.0", "ini": "6.0.0", "nopt": "9.0.0", "proc-log": "6.1.0", "semver": "7.8.5", "walk-up-path": "4.0.0" } }, "sha512-MAYk9IlIGiyC0c9fnjdBSQfIFPZT0g1MfeSiD1UXTq2zJOLX55jS9/sETJHqw/7LN18JjITrhYfgCfapbmZHiQ=="], + + "@npmcli/fs": ["@npmcli/fs@5.0.0", "", { "dependencies": { "semver": "7.8.5" } }, "sha512-7OsC1gNORBEawOa5+j2pXN9vsicaIOH5cPXxoR6fJOmH6/EXpJB2CajXOu1fPRFun2m1lktEFX11+P89hqO/og=="], + + "@npmcli/git": ["@npmcli/git@7.0.2", "", { "dependencies": { "@gar/promise-retry": "1.0.3", "@npmcli/promise-spawn": "9.0.2", "ini": "6.0.0", "lru-cache": "11.5.3", "npm-pick-manifest": "11.0.3", "proc-log": "6.1.0", "semver": "7.8.5", "which": "6.0.1" } }, "sha512-oeolHDjExNAJAnlYP2qzNjMX/Xi9bmu78C9dIGr4xjobrSKbuMYCph8lTzn4vnW3NjIqVmw/f8BCfouqyJXlRg=="], + + "@npmcli/installed-package-contents": ["@npmcli/installed-package-contents@4.0.0", "", { "dependencies": { "npm-bundled": "5.0.0", "npm-normalize-package-bin": "5.0.0" }, "bin": { "installed-package-contents": "bin/index.js" } }, "sha512-yNyAdkBxB72gtZ4GrwXCM0ZUedo9nIbOMKfGjt6Cu6DXf0p8y1PViZAKDC8q8kv/fufx0WTjRBdSlyrvnP7hmA=="], + + "@npmcli/map-workspaces": ["@npmcli/map-workspaces@5.0.3", "", { "dependencies": { "@npmcli/name-from-folder": "4.0.0", "@npmcli/package-json": "7.0.5", "glob": "13.0.5", "minimatch": "10.2.5" } }, "sha512-o2grssXo1e774E5OtEwwrgoszYRh0lqkJH+Pb9r78UcqdGJRDRfhpM8DvZPjzNLLNYeD/rNbjOKM3Ss5UABROw=="], + + "@npmcli/metavuln-calculator": ["@npmcli/metavuln-calculator@9.0.3", "", { "dependencies": { "cacache": "20.0.4", "json-parse-even-better-errors": "5.0.0", "pacote": "21.5.1", "proc-log": "6.1.0", "semver": "7.8.5" } }, "sha512-94GLSYhLXF2t2LAC7pDwLaM4uCARzxShyAQKsirmlNcpidH89VA4/+K1LbJmRMgz5gy65E/QBBWQdUvGLe2Frg=="], + + "@npmcli/name-from-folder": ["@npmcli/name-from-folder@4.0.0", "", {}, "sha512-qfrhVlOSqmKM8i6rkNdZzABj8MKEITGFAY+4teqBziksCQAOLutiAxM1wY2BKEd8KjUSpWmWCYxvXr0y4VTlPg=="], + + "@npmcli/node-gyp": ["@npmcli/node-gyp@5.0.0", "", {}, "sha512-uuG5HZFXLfyFKqg8QypsmgLQW7smiRjVc45bqD/ofZZcR/uxEjgQU8qDPv0s9TEeMUiAAU/GC5bR6++UdTirIQ=="], + + "@npmcli/package-json": ["@npmcli/package-json@7.0.5", "", { "dependencies": { "@npmcli/git": "7.0.2", "glob": "13.0.5", "hosted-git-info": "9.0.3", "json-parse-even-better-errors": "5.0.0", "proc-log": "6.1.0", "semver": "7.8.5", "spdx-expression-parse": "4.0.0" } }, "sha512-iVuTlG3ORq2iaVa1IWUxAO/jIp77tUKBhoMjuzYW2kL4MLN1bi/ofqkZ7D7OOwh8coAx1/S2ge0rMdGv8sLSOQ=="], + + "@npmcli/promise-spawn": ["@npmcli/promise-spawn@9.0.2", "", { "dependencies": { "which": "6.0.1" } }, "sha512-h7b1j0egrruBm/32eVA6/zMw5VJxxaB3vT+uVGGQ4SAAMrQVFHNuzL4+EAXn66j+huj0jApINc1fW3fC+kVoeA=="], + + "@npmcli/query": ["@npmcli/query@5.0.0", "", { "dependencies": { "postcss-selector-parser": "7.1.7" } }, "sha512-8TZWfTQOsODpLqo9SVhVjHovmKXNpevHU0gO9e+y4V4fRIOneiXy0u0sMP9LmS71XivrEWfZWg50ReH4WRT4aQ=="], + + "@npmcli/redact": ["@npmcli/redact@4.0.0", "", {}, "sha512-gOBg5YHMfZy+TfHArfVogwgfBeQnKbbGo3pSUyK/gSI0AVu+pEiDVcKlQb0D8Mg1LNRZILZ6XG8I5dJ4KuAd9Q=="], + + "@npmcli/run-script": ["@npmcli/run-script@10.0.4", "", { "dependencies": { "@npmcli/node-gyp": "5.0.0", "@npmcli/package-json": "7.0.5", "@npmcli/promise-spawn": "9.0.2", "node-gyp": "12.4.0", "proc-log": "6.1.0" } }, "sha512-mGUWr1uMnf0le2TwfOZY4SFxZGXGfm4Jtay/nwAa2FLNAKXUoUwaGwBMNH36UHPtinWfTSJ3nqFQr0091CxVGg=="], + + "@opencode/ai": ["@opencode/ai@2.0.32", "", { "dependencies": { "@aws-sdk/credential-providers": "3.1057.0", "@opencode/schema": "2.0.32", "@smithy/eventstream-codec": "4.2.14", "@smithy/util-utf8": "4.2.2", "aws4fetch": "1.0.20", "effect": "4.0.1", "google-auth-library": "10.5.0" } }, "sha512-NMquAbwiFupqoXuRuvY8jPwNAiCVlQcKDQlOTbULWN283gTp4LI3NQJqrpSWpLporxomDJsjU7soN8TCPv3BKQ=="], + + "@opencode/client": ["@opencode/client@2.0.32", "", { "dependencies": { "@opencode/protocol": "2.0.32", "@opencode/schema": "2.0.32" }, "peerDependencies": { "effect": "4.0.1", "solid-js": ">=1.9.0" }, "optionalPeers": ["effect", "solid-js"] }, "sha512-QjejcJTOC5v51gCMt7cRZJJsIydT1uGUowtiNkXWlIhKD7+/260PyqQ3S/2StnmwXucPOq6YNNkLLPv2gio6Iw=="], + + "@opencode/plugin": ["@opencode/plugin@2.0.32", "", { "dependencies": { "@ai-sdk/provider": "3.0.8", "@opencode/ai": "2.0.32", "@opencode/client": "2.0.32", "@opencode/protocol": "2.0.32", "@opencode/schema": "2.0.32", "@opencode/util": "2.0.32", "effect": "4.0.1" }, "peerDependencies": { "@opencode/theme": "2.0.32", "@opentui/core": ">=0.5.17", "@opentui/solid": ">=0.5.17", "solid-js": ">=1.9.0" }, "optionalPeers": ["@opencode/theme", "@opentui/core", "@opentui/solid", "solid-js"] }, "sha512-S83qCwl6VTiRxtpqEmrNr5SHXJDS2FHP9XarTazlSWoccKpefDOdWxwCzF/qkgwQRq09T2t9vVbzv4UuzgFXEw=="], + + "@opencode/protocol": ["@opencode/protocol@2.0.32", "", { "dependencies": { "@opencode/schema": "2.0.32", "effect": "4.0.1" } }, "sha512-aF0oW0T6vBUO+EfD0po5gNz9YzQnT+b3InhKaOGg3p8K1S1A1tVkEoOBR7gKWQjAmlpfAPP8zWx4Fgsc7nsCbQ=="], + + "@opencode/schema": ["@opencode/schema@2.0.32", "", { "dependencies": { "@standard-schema/spec": "1.1.0", "effect": "4.0.1" } }, "sha512-FQOHjPUZwoEflWXFTaNirICglfOi+simArwm9UMj0/aFjYobsZbNh6l7AS8/sslZB+pkR8NB/JWEu29MlJpDeA=="], + + "@opencode/util": ["@opencode/util@2.0.32", "", { "dependencies": { "@effect/opentelemetry": "4.0.1", "@effect/platform-node": "4.0.1", "@effect/platform-node-shared": "4.0.1", "@npmcli/arborist": "9.4.0", "@npmcli/config": "10.8.1", "@opentelemetry/api": "1.9.0", "@opentelemetry/api-logs": "0.219.0", "@opentelemetry/context-async-hooks": "2.8.0", "@opentelemetry/exporter-trace-otlp-http": "0.219.0", "@opentelemetry/resources": "2.8.0", "@opentelemetry/sdk-logs": "0.219.0", "@opentelemetry/sdk-metrics": "2.8.0", "@opentelemetry/sdk-trace-base": "2.8.0", "@opentelemetry/sdk-trace-node": "2.8.0", "cross-spawn": "7.0.6", "effect": "4.0.1", "glob": "13.0.5", "mime-types": "3.0.2", "minimatch": "10.2.5", "npm-package-arg": "13.0.2", "open": "11.0.4", "pacote": "21.5.1" } }, "sha512-74uOWUInvMvCHjBQ25DlGjiZIcl35iyfuVRnw0KQA9mOUSgWGKiI8GV9crpw7vVMzdPSwqsmmH/W6XCX7NCUUA=="], + + "@opentelemetry/api": ["@opentelemetry/api@1.9.0", "", {}, "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg=="], + + "@opentelemetry/api-logs": ["@opentelemetry/api-logs@0.219.0", "", { "dependencies": { "@opentelemetry/api": "1.9.0" } }, "sha512-FFx7YnaYJlIjqWW/AG/yAZ0L/NEY724PipXXXQLdtZPbLwBGbUMTGL1i/esI56TWfTUXxhLfpgrnWJCG8aUJyg=="], + + "@opentelemetry/context-async-hooks": ["@opentelemetry/context-async-hooks@2.8.0", "", { "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-/3FIraneMcng67SUJCxvyInk/oxzwsxyadufk0wwfOBLf5wqtAGX4MoQASwSbndBPeARzBryUM9Azr5kHIdWLw=="], + + "@opentelemetry/core": ["@opentelemetry/core@2.8.0", "", { "dependencies": { "@opentelemetry/semantic-conventions": "1.44.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-hd1Lfh8p545nNz+jq1Ejfz+Mn1hyLuxYn1YzTfFNrxr8urEWMNQLPf1Th8kjOH+HxwawCrtgBp8JpBUR4ZSgww=="], + + "@opentelemetry/exporter-trace-otlp-http": ["@opentelemetry/exporter-trace-otlp-http@0.219.0", "", { "dependencies": { "@opentelemetry/core": "2.8.0", "@opentelemetry/otlp-exporter-base": "0.219.0", "@opentelemetry/otlp-transformer": "0.219.0", "@opentelemetry/resources": "2.8.0", "@opentelemetry/sdk-trace-base": "2.8.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-9t6SvBXXBEjOBcIzgozvBbd3jWrv3Gt3ngGhl1fhdZ/zRc7oZDVOFEqbi2zlBpW9BXhgDMKv422J0DL/3iQWfw=="], + + "@opentelemetry/otlp-exporter-base": ["@opentelemetry/otlp-exporter-base@0.219.0", "", { "dependencies": { "@opentelemetry/core": "2.8.0", "@opentelemetry/otlp-transformer": "0.219.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-zvIxQX/AZUVKDU+hCuYx+7UkiP7GRdnk1ZbFQRYzHvYp47cAWR4j3IhoPhV9KaeXEv2xdGq3IA6PnpzDmLcmSA=="], + + "@opentelemetry/otlp-transformer": ["@opentelemetry/otlp-transformer@0.219.0", "", { "dependencies": { "@opentelemetry/api-logs": "0.219.0", "@opentelemetry/core": "2.8.0", "@opentelemetry/resources": "2.8.0", "@opentelemetry/sdk-logs": "0.219.0", "@opentelemetry/sdk-metrics": "2.8.0", "@opentelemetry/sdk-trace-base": "2.8.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-aaYKAyXhw9VchKZVGOopD3Gw/kPsyrX2c6IQ0AW32mTjqmZOh5Y6Gf5OYqTNqVktAeBjmFinhyFaCwW6GYK9YQ=="], + + "@opentelemetry/resources": ["@opentelemetry/resources@2.8.0", "", { "dependencies": { "@opentelemetry/core": "2.8.0", "@opentelemetry/semantic-conventions": "1.44.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-qmXQ27ilDbUK/vGMqwL8D4/rhn76C+sherM4wTbjlfknR8Nvfc/hCxjRJPhkzZzUsPiNg16SA31NxMabwttRjg=="], + + "@opentelemetry/sdk-logs": ["@opentelemetry/sdk-logs@0.219.0", "", { "dependencies": { "@opentelemetry/api-logs": "0.219.0", "@opentelemetry/core": "2.8.0", "@opentelemetry/resources": "2.8.0", "@opentelemetry/semantic-conventions": "1.44.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.4.0 <1.10.0" } }, "sha512-s6lTKRakaPClvKoWHRChxnXjDMkM/TQ30ff78jN6EBGf7MI7VzANE5PU3f4z9qDUudWjvZjOLHG0rBnBKYvoXA=="], + + "@opentelemetry/sdk-metrics": ["@opentelemetry/sdk-metrics@2.8.0", "", { "dependencies": { "@opentelemetry/core": "2.8.0", "@opentelemetry/resources": "2.8.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.9.0 <1.10.0" } }, "sha512-UDBGaj6W0Rgy5rTTaoxs8gVGF/aGkAKyjurJv7se6wjRxJu7FoquTLT/vt54DZfo4crbprYfhX/SOK9+BPw1qg=="], + + "@opentelemetry/sdk-trace-base": ["@opentelemetry/sdk-trace-base@2.8.0", "", { "dependencies": { "@opentelemetry/core": "2.8.0", "@opentelemetry/resources": "2.8.0", "@opentelemetry/semantic-conventions": "1.44.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-mhU4jp+vW0mGbFRd+GeXHvmfA4aDqWjBjLC3pE5XMpLs0IE2ryYb019Ts2AQrOq67gaTF25D91+fgvEHDZEnuQ=="], + + "@opentelemetry/sdk-trace-node": ["@opentelemetry/sdk-trace-node@2.8.0", "", { "dependencies": { "@opentelemetry/context-async-hooks": "2.8.0", "@opentelemetry/core": "2.8.0", "@opentelemetry/sdk-trace-base": "2.8.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-nZt9OGufioAc3AfoLTqA9bsAeaMJAictYDdI2VcNQ+PmT+3rfKjAZDZvgPfd8VPX0O5Bw1hdQF6kDK8VSpZiWg=="], + + "@opentelemetry/semantic-conventions": ["@opentelemetry/semantic-conventions@1.44.0", "", {}, "sha512-E3JkOlMBi3N8OGGkbl7tFyqk2MAS6/lySRZBK3Mu7AzjF1fT8oIChH9ChE48SUWzDn9Kdwta+G/p5LJ4xW4CLQ=="], + + "@oxc-project/types": ["@oxc-project/types@0.138.0", "", {}, "sha512-1a7ZKmrRTCoN1XMZ4L0PyyqrMnrNlLyPuOkdSX2MZg7IiIGRUyurNhAm73ptDOraoBcIordsIGKNPKUzy3ZmfA=="], + + "@oxfmt/binding-android-arm-eabi": ["@oxfmt/binding-android-arm-eabi@0.57.0", "", { "os": "android", "cpu": "arm" }, "sha512-qVBsEO+KugOsCmUHcO8iqNnqc65p7PCKpCs8M66mPZ+Ri+CWbcpoQOEJBg2OTu03+0qu++NK1jj6IzvQVs0Sig=="], + + "@oxfmt/binding-android-arm64": ["@oxfmt/binding-android-arm64@0.57.0", "", { "os": "android", "cpu": "arm64" }, "sha512-mp6PibWbao3aizijcheOeHQaYEhcUAt8pwLniYbtLfHxL/psFF0BykAwCj+s3c6qIpa8yN8keZICWrqtZ70w8g=="], + + "@oxfmt/binding-darwin-arm64": ["@oxfmt/binding-darwin-arm64@0.57.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-T+0stuCBqmUVY+aMIvrgXhzGhHO3sD5tNiiEcYqgSdPsnukskQqn2u5qOVD0sv1l7RLdFS5Z/f5Wi9Ktyjr3Eg=="], + + "@oxfmt/binding-darwin-x64": ["@oxfmt/binding-darwin-x64@0.57.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-O+3JbqWs/mCI2oi4xfhRO2IVPFJNDDEBV8Odo+ZpmsUOeKJfjXoNH7nDmBEQcDgK7NfjDIyE7kRgYSZcTLDO0A=="], + + "@oxfmt/binding-freebsd-x64": ["@oxfmt/binding-freebsd-x64@0.57.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-pxwhxVC+JkLX9twOQ/8C/vbuOQcMZyKIDmiRDZfO7yITuVcIdZCiLRqqf4QOxb2+8FWrRXzQpm+1DBKcMpHSSQ=="], + + "@oxfmt/binding-linux-arm-gnueabihf": ["@oxfmt/binding-linux-arm-gnueabihf@0.57.0", "", { "os": "linux", "cpu": "arm" }, "sha512-pxBU4zH2imB/MDBfth2rOMeVxXUMjRQLCazagwLARIFH3hVlxZJBlM4nSnHXaIHJK4/qezoFCIORN6AY8Mra4A=="], + + "@oxfmt/binding-linux-arm-musleabihf": ["@oxfmt/binding-linux-arm-musleabihf@0.57.0", "", { "os": "linux", "cpu": "arm" }, "sha512-JAprOzt8tycYou36ZgEw14DlRHTiN8qdtKANdV3VZIRIvTI/lh/cX13c9pJ/EnDk2GT3FASH7KvCgQ2AufAifQ=="], + + "@oxfmt/binding-linux-arm64-gnu": ["@oxfmt/binding-linux-arm64-gnu@0.57.0", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-ajtjaxSaj9xl4BW7REt+Cef/ttzbAq00Bq4z7JUDZEfgFXdwSjH8K9bF+IcIJzZB9lKqMfQ4eHuSFOvvlvtqOg=="], + + "@oxfmt/binding-linux-arm64-musl": ["@oxfmt/binding-linux-arm64-musl@0.57.0", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-p4Y/+RYk9Bk5WO+zHSUXAClRmZ2fbJCejMuCAsU2HhyME4jqf6Ftt/mJYEwIah1wGCBDYOB7wEGV1x5bCEZ6hA=="], + + "@oxfmt/binding-linux-ppc64-gnu": ["@oxfmt/binding-linux-ppc64-gnu@0.57.0", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-By6tRALAZsno0F4zedmtG+wdMvJiJmJoXM4d3+A9zHE4HRXLqXITwRH8mgrlcXc5yJM2g2W3riRPwTYdgemZLQ=="], + + "@oxfmt/binding-linux-riscv64-gnu": ["@oxfmt/binding-linux-riscv64-gnu@0.57.0", "", { "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-skYeG+RgvyzspqVEBsEprL90OYYZfoVNqB3HcCNR6QDJyXKOzfDRT3zncnHmUaFluIlBHuY23mU1b5WGgR98hA=="], + + "@oxfmt/binding-linux-riscv64-musl": ["@oxfmt/binding-linux-riscv64-musl@0.57.0", "", { "os": "linux", "cpu": "none", "libc": "musl" }, "sha512-FFgACrZOXAXUh5KQh2mt1CDOVOZmn+QzHP71wM9QobNwyQvoFfyAeefVUltW83g3sm7LTiH3yfFqLLVUpA5ZFQ=="], + + "@oxfmt/binding-linux-s390x-gnu": ["@oxfmt/binding-linux-s390x-gnu@0.57.0", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-Nm/BAOfQeFiiKd502mZn/GAVKJwtd0RdCg17G3Wz/WSOIQmDi3+7/SZH4BHn1Ye5KvTVH3ua8WvfwLLycNIuvA=="], + + "@oxfmt/binding-linux-x64-gnu": ["@oxfmt/binding-linux-x64-gnu@0.57.0", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-BiSy5Ku3mQqyxS6YIqAJgd403wEUWvI7kerfzPxc2l/txZVmZM0pSj7oDM+4bGBExowxOi7o73jEam1W0EDTZg=="], + + "@oxfmt/binding-linux-x64-musl": ["@oxfmt/binding-linux-x64-musl@0.57.0", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-BCRkJiotz5s9afLYD2LuMvzAoDYx9H17E/YbDyu4xK7l4zHDPeny9ErSXL//i/nJyaOwRk08x4b8cgJC00+JDg=="], + + "@oxfmt/binding-openharmony-arm64": ["@oxfmt/binding-openharmony-arm64@0.57.0", "", { "os": "none", "cpu": "arm64" }, "sha512-4Oaxe1qrGgXfpCJ1C/ERJ2iCtV2rN1R79ga9fsfyVHfSQRu/hVW780u2KDqZWFZ/iGTHODJji0JemxqFZ63eIQ=="], + + "@oxfmt/binding-win32-arm64-msvc": ["@oxfmt/binding-win32-arm64-msvc@0.57.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-MYLAsDnhdNsSGheLYhWgbk0vfIrlS84iQYun/y21fX6u0jj8iBtYtbpZMdiqYeuf8U12eVPUjVY2xE2NrCfJ0g=="], + + "@oxfmt/binding-win32-ia32-msvc": ["@oxfmt/binding-win32-ia32-msvc@0.57.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-PBwdzZALJY/jcCx2E6is0yu+cuVXeySTDmwuseD+9j0mHqlRNxwlKgsyRTBed/woPeqfVfuXfWjoq4Cx2Zt3Eg=="], + + "@oxfmt/binding-win32-x64-msvc": ["@oxfmt/binding-win32-x64-msvc@0.57.0", "", { "os": "win32", "cpu": "x64" }, "sha512-bQJdH9i4RRfw55jm7+8/xS7GzHLLTbHx4huhrrDxQJaJtbSDbsyOnODvP1ftT7EG0KFKAYO2S+q6AcioXODx8w=="], + + "@oxlint/binding-android-arm-eabi": ["@oxlint/binding-android-arm-eabi@1.72.0", "", { "os": "android", "cpu": "arm" }, "sha512-zhCmvn+1Mj3UchAc/90i99S0t7jJUsHmFVSPg4UWrjO8b8eaSGwscgO6QAUtvHBstkjQwBttQNswEnAF1mIQdA=="], + + "@oxlint/binding-android-arm64": ["@oxlint/binding-android-arm64@1.72.0", "", { "os": "android", "cpu": "arm64" }, "sha512-mtH+aY/ozv1eZoCUC2owjFAtyNBKHpJHygKeEu9zXXnQGW1Q2/qOpvx+I+Lf23+TvTz66F4iiXUbl2cGvoLPCQ=="], + + "@oxlint/binding-darwin-arm64": ["@oxlint/binding-darwin-arm64@1.72.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-EvnajNPDtfknB3ZieeOOyDTwJn9QXDiwfnF4ZDQqART6RG6hjY4WigQcZdGoK2dkB3e1vrmEzN9aYbQCUkh/gQ=="], + + "@oxlint/binding-darwin-x64": ["@oxlint/binding-darwin-x64@1.72.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-ZkCdEa/G80A7vEHfeCDz/+L3m33DE73v32mDKhgOIgz8Uwf0DFcK7+uu6qC+7LEhmz5fpOe1osWKyjSNMydFIQ=="], + + "@oxlint/binding-freebsd-x64": ["@oxlint/binding-freebsd-x64@1.72.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-NroXv2vh+sxVY1uya/rM5pjhx1hm8BzlYpx9q67QP0Xhw5MH2bf5GJylpvLEC+781p1Xli/317EoV9AlGwViag=="], + + "@oxlint/binding-linux-arm-gnueabihf": ["@oxlint/binding-linux-arm-gnueabihf@1.72.0", "", { "os": "linux", "cpu": "arm" }, "sha512-0NDywYgfj279Ou/BcQuCYSj7NJwBfmWn5qc5uGO/Ny7fUWmXyIpvawqX/8acQlWG6IXelJsJhj+JAy6sjsKj0A=="], + + "@oxlint/binding-linux-arm-musleabihf": ["@oxlint/binding-linux-arm-musleabihf@1.72.0", "", { "os": "linux", "cpu": "arm" }, "sha512-4vpXB06h65Ezsy4hRyrGjGrfa1SkVPii09yaajiYhmVpgsFiLD+KNxIx/BNAY+XiO+i1yqp9HHdwqM8VTqa5XQ=="], + + "@oxlint/binding-linux-arm64-gnu": ["@oxlint/binding-linux-arm64-gnu@1.72.0", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-immaN4g2ZGFiOkKrvRX9LvzZdd2GkQM5wR+UyzYyUuyhUTXGQ4HKUJH18xp4G8OfhCVaVAJfKZxwE1r8+4hhaQ=="], + + "@oxlint/binding-linux-arm64-musl": ["@oxlint/binding-linux-arm64-musl@1.72.0", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-JGHS9Mnr7iWyyLDxgCv1MhzVpAckgptg00F2gnxt/GD7lQ2SW1BRcxHqhSTaSdDpjWRrBkBxMMh4+Hn3aVtExg=="], + + "@oxlint/binding-linux-ppc64-gnu": ["@oxlint/binding-linux-ppc64-gnu@1.72.0", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-AOYgBZqxNshrg83P9v0RYv+m8s10Cqkj4/PxXFDhcS3k7FqsIG5+CxErshZCIN7G8iy4Y+VGfAsuEdar8AcbBg=="], + + "@oxlint/binding-linux-riscv64-gnu": ["@oxlint/binding-linux-riscv64-gnu@1.72.0", "", { "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-QMybPS5ij3/vrKG67mqzHwW++91sYxK/PPUVi6SBtNCEzW4niS52fVBdXbQ6nou0wWbUPEpx8Sl/ZjtgE3clXA=="], + + "@oxlint/binding-linux-riscv64-musl": ["@oxlint/binding-linux-riscv64-musl@1.72.0", "", { "os": "linux", "cpu": "none", "libc": "musl" }, "sha512-gOc3W7JV0PXRpIL7stUlLe3Wa9Gp0Kdlup87IT3gHDvPKck2xNgMIl/Gs2lldYY2lyXZDC4rWi3hmoLUobkgbQ=="], + + "@oxlint/binding-linux-s390x-gnu": ["@oxlint/binding-linux-s390x-gnu@1.72.0", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-rpGxph+FjjHcYI5q6uxB3Az+tnfmEnDbSA8+PK9ZE/VzyUAkvBOMeuY7ZQMhu5mpZH7YQDsTdW6Cx4kV/msc6w=="], + + "@oxlint/binding-linux-x64-gnu": ["@oxlint/binding-linux-x64-gnu@1.72.0", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-WND+uhf/Ko13SLqQMWQUgsZuLvYYEvL0ZKgg0tgGYfLqxG7l8Ju123fHDMJyYSDl5E3bUbpFUuii/OvMreFQzw=="], + + "@oxlint/binding-linux-x64-musl": ["@oxlint/binding-linux-x64-musl@1.72.0", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-SrpbrUL70nG9vh6zP4/oKHWgLuHquwsr7MW9XOn0olBVgh10Uqr8qscKhQoBGEn6olK/IUpn5GSKcdQ5AjUhGA=="], + + "@oxlint/binding-openharmony-arm64": ["@oxlint/binding-openharmony-arm64@1.72.0", "", { "os": "none", "cpu": "arm64" }, "sha512-qkrsEn6NmgFKr7U/QnezQMb+q/vzAy0Dd9Y95gQGQTyjzDLN+HRZMuM5u70iyH4nBLCfKBzhjMsYCehKay2jyg=="], + + "@oxlint/binding-win32-arm64-msvc": ["@oxlint/binding-win32-arm64-msvc@1.72.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-LWR6ZlFZph+KPjXv8opgZsXRDCdrdQe8VL8Cg9zxCoBS73h6znzZpydVgmdnwj8mB9AuSM5jxEgDJDpQkjboeg=="], + + "@oxlint/binding-win32-ia32-msvc": ["@oxlint/binding-win32-ia32-msvc@1.72.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-yt6HEh7IsHvtjRWtmeZRX134eaXKHq5Gnqlf1xBJdJl1JtdoRUEJw3nAxpZoUDS860cX/foKbztO441anVBtVQ=="], + + "@oxlint/binding-win32-x64-msvc": ["@oxlint/binding-win32-x64-msvc@1.72.0", "", { "os": "win32", "cpu": "x64" }, "sha512-b2eKFD2hX7tIwmo/cyH6TDq8vzWRZ2qNHrzoGntUTmq0h3zQh/uX3eTSHCwI8OB/ADQfJCRelLItK8BsxuucDA=="], + + "@pkgjs/parseargs": ["@pkgjs/parseargs@0.11.0", "", {}, "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg=="], + + "@redis/bloom": ["@redis/bloom@6.3.1", "", { "peerDependencies": { "@redis/client": "^6.3.1" } }, "sha512-dpF9j2yJDoPzSCaZn0MSB3xzmnXQVJeTSAWJcQVcgbmluwhpFeemmII0cF1t+WYfoVS+shEFq79+MmUItgzJLg=="], + + "@redis/client": ["@redis/client@6.3.1", "", { "peerDependencies": { "@node-rs/xxhash": "^1.1.0", "@opentelemetry/api": ">=1 <2" }, "optionalPeers": ["@node-rs/xxhash", "@opentelemetry/api"] }, "sha512-masbfVKULdoAofwddepZxRhWa4w6zvBHn6TRn90TRPrRkVIlGCur3pFqwWaCbMxtYI9twepkz63e/T/tEH8GjA=="], + + "@redis/json": ["@redis/json@6.3.1", "", { "peerDependencies": { "@redis/client": "^6.3.1" } }, "sha512-fMz4kUwJzEftcU9EMaqsjZcUwzpTQLOYRqhQsAD6uKvZWeamblK13ZhgO5SzVSZVk31jmwLeTRpU5GAl5egfUw=="], + + "@redis/search": ["@redis/search@6.3.1", "", { "peerDependencies": { "@redis/client": "^6.3.1" } }, "sha512-T67pvPUpW82VrZLvihO8O2DFMC7eY2oMAzMzapCbiPZn7mdWqHMEIlohYim12gIawT5kn6qT/Cvmm4WulKB+kQ=="], + + "@redis/time-series": ["@redis/time-series@6.3.1", "", { "peerDependencies": { "@redis/client": "^6.3.1" } }, "sha512-MNDgrm+i63M/1a+XA+HcDsScwt4uBh/fGGJ84swTQZTFK5K5wMmxdlTRa4ZgmNJzjxMaszW/ipPScMUGV3aAMg=="], + + "@rolldown/binding-android-arm64": ["@rolldown/binding-android-arm64@1.1.4", "", { "os": "android", "cpu": "arm64" }, "sha512-EZLpf/8y7GXkkra90ML47kzik/GMP3EMcE9bPyHmRfxLC6z9+aW5A8poCsoxjrT5GfEcNAAvWwUHjvP1pUQkfw=="], + + "@rolldown/binding-darwin-arm64": ["@rolldown/binding-darwin-arm64@1.1.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-aUi+HBvmYb7j8krl1+qJgkG8C17fO79gk3c+jPw4S8glRFc1DTija9S3EyaTSQUm5GJXYKDAsugBEhFHH2vYiQ=="], + + "@rolldown/binding-darwin-x64": ["@rolldown/binding-darwin-x64@1.1.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-F7hHC3gwY11+vByKPRWqwGbeXWVgKmL+pTGCinaEhdihzBV2aQ0fvZOch9cXYUOKuKKq429HeYXOqQLc7wFCEg=="], + + "@rolldown/binding-freebsd-x64": ["@rolldown/binding-freebsd-x64@1.1.4", "", { "os": "freebsd", "cpu": "x64" }, "sha512-sI5yw+7s92SK6odiEhD5lKCBlWcpjHS5qyqpVQbZAJ0fIzEUXrmbl3DH2ybR3PZogulNJF+COLtmA8hUfvkCCQ=="], + + "@rolldown/binding-linux-arm-gnueabihf": ["@rolldown/binding-linux-arm-gnueabihf@1.1.4", "", { "os": "linux", "cpu": "arm" }, "sha512-mCi0OKgEieFircrtVYmQAFGszRtMnZ6fpZAXrxanXAu7lqZcsK1E1RAaZNG0uKAnxox3B1f4EyQNnoyMfN1vAA=="], + + "@rolldown/binding-linux-arm64-gnu": ["@rolldown/binding-linux-arm64-gnu@1.1.4", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-B9Ial3Kv5sh0SHnB1g/QWcUQCEvCF6QKGAl4zXypYj65mVI+B4AhFBwPtSN7pDrJeIx8Z7zdy4ntx+wQABom7w=="], + + "@rolldown/binding-linux-arm64-musl": ["@rolldown/binding-linux-arm64-musl@1.1.4", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-lZVym0PuHE1KZ22gmFTC15lAkrg9iTszR617oYRB/iPY1A56ywoJzVKOJBKaot5RiikCObmur6pogpse3gRcng=="], + + "@rolldown/binding-linux-ppc64-gnu": ["@rolldown/binding-linux-ppc64-gnu@1.1.4", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-t2DNiLJWNTbnEHyUzTumldML6ET4/g16467LZoDDJ3tSxGvguL5/NyC2lCsNKuyRycg9XeDQF5SSv+TNOhQEXg=="], + + "@rolldown/binding-linux-s390x-gnu": ["@rolldown/binding-linux-s390x-gnu@1.1.4", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-0WIRnL1Uw4BvTZRLQt+PVgo6ZKTJadlC2btP+/EOXv2f/DWbY0rEgl+y834mIVwP1FkTlWVTrGGJXf12lru7EQ=="], + + "@rolldown/binding-linux-x64-gnu": ["@rolldown/binding-linux-x64-gnu@1.1.4", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-JWtGshGfX+oENAKonoNkqEJX+7hC8yfhi9GUyPX1VX4mdh1y5r+ZiJLR5XzAB0aoP6s/PcILsGjKq8O0mm24bw=="], + + "@rolldown/binding-linux-x64-musl": ["@rolldown/binding-linux-x64-musl@1.1.4", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-rT6yQcxUuXs4CnbofqwHRRV0iem349rLMYpTjkgQGLjrY4ado/eDzwPZPTCgTOlF6Nkp8NEv70yLMTn6qkWxsQ=="], + + "@rolldown/binding-openharmony-arm64": ["@rolldown/binding-openharmony-arm64@1.1.4", "", { "os": "none", "cpu": "arm64" }, "sha512-KXMGoboq5cyaCQjDA4GLuRiOwBQ0EyFnJoVViLeZ45/3rFItRODEr+NdsBcVpll40hhNArlm/speWGRvj08LzA=="], + + "@rolldown/binding-wasm32-wasi": ["@rolldown/binding-wasm32-wasi@1.1.4", "", { "dependencies": { "@emnapi/core": "1.11.1", "@emnapi/runtime": "1.11.1", "@napi-rs/wasm-runtime": "1.1.6" }, "cpu": "none" }, "sha512-5K83rb36oJiY7BCyE9zLZtGcPV4g5wvq+xwdO0XPIwDVZI8cyB/AUjkNXGb92/rnmezEkjMOpgY61rtwjQtFwg=="], + + "@rolldown/binding-win32-arm64-msvc": ["@rolldown/binding-win32-arm64-msvc@1.1.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-PnWBtw3TV5KOg69HQQDR0mnQuyCmSGR2pAB4DC1rPF808fgKeTUMj2EOEyKATpgiuxuR5APQmiDO7PDgEjTFSA=="], + + "@rolldown/binding-win32-x64-msvc": ["@rolldown/binding-win32-x64-msvc@1.1.4", "", { "os": "win32", "cpu": "x64" }, "sha512-M1lpniBePobTfsa7Ks9a199e1akxsXn+GYBUKsEzv3YFzOm1HJAMNwKI3qr0Zq+mxwx9gOZoTdP1yXRYsZUocQ=="], + + "@rolldown/pluginutils": ["@rolldown/pluginutils@1.0.1", "", {}, "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw=="], + + "@sigstore/bundle": ["@sigstore/bundle@4.0.0", "", { "dependencies": { "@sigstore/protobuf-specs": "0.5.2" } }, "sha512-NwCl5Y0V6Di0NexvkTqdoVfmjTaQwoLM236r89KEojGmq/jMls8S+zb7yOwAPdXvbwfKDlP+lmXgAL4vKSQT+A=="], + + "@sigstore/core": ["@sigstore/core@3.2.1", "", {}, "sha512-qRsxPnCrbC/puegGxKuynfnxgLiHqWStrSjxkoB4YKqq3Z3s4cyZyj42ZdWFAEblNP65C+rBH8EuREHIXoi83g=="], + + "@sigstore/protobuf-specs": ["@sigstore/protobuf-specs@0.5.2", "", {}, "sha512-SQqvFMt4V78fdjcDdYX6HbiVSOR4QK3ZgwCa2KOsopAgPIHy1rU5UDUmzLl02r5oyyaYcYHR1hpwDRk/yUe+Mw=="], + + "@sigstore/sign": ["@sigstore/sign@4.1.1", "", { "dependencies": { "@gar/promise-retry": "1.0.3", "@sigstore/bundle": "4.0.0", "@sigstore/core": "3.2.1", "@sigstore/protobuf-specs": "0.5.2", "make-fetch-happen": "15.0.6", "proc-log": "6.1.0" } }, "sha512-Hf4xglukg0XXQ2RiD5vSoLjdPe8OBUPA8XeVjUObheuDcWdYWrnH/BNmxZCzkAy68MzmNCxXLeurJvs6hcP2OQ=="], + + "@sigstore/tuf": ["@sigstore/tuf@4.0.2", "", { "dependencies": { "@sigstore/protobuf-specs": "0.5.2", "tuf-js": "4.1.0" } }, "sha512-TCAzTy0xzdP79EnxSjq9KQ3eaR7+FmudLC6eRKknVKZbV7ZNlGLClAAQb/HMNJ5n2OBNk2GT1tEmU0xuPr+SLQ=="], + + "@sigstore/verify": ["@sigstore/verify@3.1.1", "", { "dependencies": { "@sigstore/bundle": "4.0.0", "@sigstore/core": "3.2.1", "@sigstore/protobuf-specs": "0.5.2" } }, "sha512-qv7+G3J2cc6wwFj3yKvXOamzqhMwSk1ogPGmhpS8iXllcPrJaIIBA+4HbttlHVu1pqWTdmaCH/WE7UOC51kdoA=="], + + "@smithy/core": ["@smithy/core@3.38.1", "", { "dependencies": { "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-U/mB2XiwTLaf+NSgLSWwJfptsMT/H8aBi0aTAA/E5e2/TagFeGCqAyhKGG0w0A9IWTkm4qYEmLoD/HB6aYfnRA=="], + + "@smithy/credential-provider-imds": ["@smithy/credential-provider-imds@4.5.2", "", { "dependencies": { "@smithy/core": "3.38.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg=="], + + "@smithy/eventstream-codec": ["@smithy/eventstream-codec@4.2.14", "", { "dependencies": { "@aws-crypto/crc32": "5.2.0", "@smithy/types": "4.19.0", "@smithy/util-hex-encoding": "4.5.2", "tslib": "2.8.1" } }, "sha512-erZq0nOIpzfeZdCyzZjdJb4nVSKLUmSkaQUVkRGQTXs30gyUGeKnrYEg+Xe1W5gE3aReS7IgsvANwVPxSzY6Pw=="], + + "@smithy/fetch-http-handler": ["@smithy/fetch-http-handler@5.8.0", "", { "dependencies": { "@smithy/core": "3.38.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-ycSJu3tFAQ4v04CBB0agqFMVsSQ1iG3yw+SpgxRqKfaURpQD4CZ8Wn0zPMmSnOuTpTh65Vz+EA0rMrw089wvkA=="], + + "@smithy/is-array-buffer": ["@smithy/is-array-buffer@2.2.0", "", { "dependencies": { "tslib": "2.8.1" } }, "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA=="], + + "@smithy/node-http-handler": ["@smithy/node-http-handler@4.14.1", "", { "dependencies": { "@smithy/core": "3.38.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-/T6E1jzCL0fErS9uq8JqES/5yYQQ4ppVmmYHwXw2nlov8KFzLb+3QqHR5iAun1BsuAB50IPxZliV8YMgghLwhA=="], + + "@smithy/signature-v4": ["@smithy/signature-v4@5.7.5", "", { "dependencies": { "@smithy/core": "3.38.1", "@smithy/types": "4.19.0", "tslib": "2.8.1" } }, "sha512-WPjdr5oWOk1LArpI4pavu+fSo+/evi0Re1olxGvqwuZopd4gYR1UGCi+Soyn/IjmafqbWs+ZC+3AKxJS3ZpwUg=="], + + "@smithy/types": ["@smithy/types@4.19.0", "", { "dependencies": { "tslib": "2.8.1" } }, "sha512-r7jh49VJxGerfAcTQA6gXcKc+98zOp/tqRwzYjgOE+iSQsP6cEU1hq2QzbuipmP68QtYdY9wKEhiCQZIzHgZ4Q=="], + + "@smithy/util-buffer-from": ["@smithy/util-buffer-from@4.5.2", "", { "dependencies": { "@smithy/core": "3.38.1", "tslib": "2.8.1" } }, "sha512-nxu3SgmAw9JXT2CtkU0m/XNLWpP9MsaBx1zAGAypCbYj15tIFlmcYwpF+Oh18le83d+IM9PT7ENdXnE4C+d5mA=="], + + "@smithy/util-hex-encoding": ["@smithy/util-hex-encoding@4.5.2", "", { "dependencies": { "@smithy/core": "3.38.1", "tslib": "2.8.1" } }, "sha512-iq+cW3mAb7vfcxEEpYi3zXKpDtbrIFyanWjQl4zBq4seWD4OSxXDWSfespZxenX6aEaighn+NR3u1nU1DSvs3w=="], + + "@smithy/util-utf8": ["@smithy/util-utf8@4.2.2", "", { "dependencies": { "@smithy/util-buffer-from": "4.5.2", "tslib": "2.8.1" } }, "sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw=="], + + "@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@tufjs/canonical-json": ["@tufjs/canonical-json@2.0.0", "", {}, "sha512-yVtV8zsdo8qFHe+/3kw81dSLyF7D576A5cCFCi4X7B39tWT7SekaEFUnvnWJHz+9qO7qJTah1JbrDjWKqFtdWA=="], + + "@tufjs/models": ["@tufjs/models@4.1.0", "", { "dependencies": { "@tufjs/canonical-json": "2.0.0", "minimatch": "10.2.5" } }, "sha512-Y8cK9aggNRsqJVaKUlEYs4s7CvQ1b1ta2DVPyAimb0I2qhzjNk+A+mxvll/klL0RlfuIUei8BF7YWiua4kQqww=="], + + "@tybys/wasm-util": ["@tybys/wasm-util@0.10.3", "", { "dependencies": { "tslib": "2.8.1" } }, "sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg=="], + + "@types/chai": ["@types/chai@5.2.3", "", { "dependencies": { "@types/deep-eql": "4.0.2", "assertion-error": "2.0.1" } }, "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA=="], + + "@types/deep-eql": ["@types/deep-eql@4.0.2", "", {}, "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw=="], + + "@types/estree": ["@types/estree@1.0.9", "", {}, "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg=="], + + "@types/node": ["@types/node@26.1.0", "", { "dependencies": { "undici-types": "8.3.0" } }, "sha512-O0A1G3xPGy4w7AgQdAQYUlQ+BKk2Oovw8eRpofyp5KdBZULnbe+WqaOVNrm705SHphCiG4XHsACrSmPu1f+Kgw=="], + + "@types/ws": ["@types/ws@8.18.2", "", { "dependencies": { "@types/node": "26.1.0" } }, "sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w=="], + + "@typescript/native-preview": ["@typescript/native-preview@7.0.0-dev.20260703.1", "", { "optionalDependencies": { "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20260703.1", "@typescript/native-preview-darwin-x64": "7.0.0-dev.20260703.1", "@typescript/native-preview-linux-arm": "7.0.0-dev.20260703.1", "@typescript/native-preview-linux-arm64": "7.0.0-dev.20260703.1", "@typescript/native-preview-linux-x64": "7.0.0-dev.20260703.1", "@typescript/native-preview-win32-arm64": "7.0.0-dev.20260703.1", "@typescript/native-preview-win32-x64": "7.0.0-dev.20260703.1" }, "bin": { "tsgo": "bin/tsgo" } }, "sha512-qyEHkEeRWCSGLa6a8oArnMPdn3Vcl1AZj8YHLO7lK0VjEEF/YJfz1FvxmpEeuhy0ZDfvJ7GtgXbvbjcU3zpPjQ=="], + + "@typescript/native-preview-darwin-arm64": ["@typescript/native-preview-darwin-arm64@7.0.0-dev.20260703.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-EwJEd6hfaHrrbSLat6+xX8fZiAvG+/Ae1gqvJEayTNdDbkrZxmeLS23YdjUmDMIOKI2wa7zXQDid8WtrvDfMTQ=="], + + "@typescript/native-preview-darwin-x64": ["@typescript/native-preview-darwin-x64@7.0.0-dev.20260703.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-tcS3gpivMq+BAiaupFqM5vuERykogJlfD4CjoxkSCksmmsKgWV96S2U/LjrKgll8R6/OEkg2VL2ycRG9+tIuHw=="], + + "@typescript/native-preview-linux-arm": ["@typescript/native-preview-linux-arm@7.0.0-dev.20260703.1", "", { "os": "linux", "cpu": "arm" }, "sha512-nluwnKcdGo6laWWYtWF3zFUDfi7nNrcD5S/T5382fVmtKmNqIdzFm9ANgSSGAavuzfdu9YJLaVWpx72Oe40AEQ=="], + + "@typescript/native-preview-linux-arm64": ["@typescript/native-preview-linux-arm64@7.0.0-dev.20260703.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-m8IJTOneLXRtq6prLz8uuhp463kEt+AHV5Ceqp7G0o3eAvbKP059OwzK6WXCS5J0B3ZxX+BwBf9wDXSNidWJCw=="], + + "@typescript/native-preview-linux-x64": ["@typescript/native-preview-linux-x64@7.0.0-dev.20260703.1", "", { "os": "linux", "cpu": "x64" }, "sha512-5ga94rso68kaxJUzaufDVhka1zPaSbPgNXaemQO8faPW0crvRIkbv0g8bpG4pdWMV0tTylmluDles4ZcAzOprg=="], + + "@typescript/native-preview-win32-arm64": ["@typescript/native-preview-win32-arm64@7.0.0-dev.20260703.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-YeRqOUuSyhbtryBSUE073OLpReIQXWJVyjP45gPLJ+0KAGvkd1VFz2FY1JEo++LyHoqXsGD2+qvdPpnTfSAIJg=="], + + "@typescript/native-preview-win32-x64": ["@typescript/native-preview-win32-x64@7.0.0-dev.20260703.1", "", { "os": "win32", "cpu": "x64" }, "sha512-WYNcbTaxCPgiDLrL2aPJ3BJA05nJU8DK0fUFGkGAER0oM+KcJcQUBeUkXg/7A4HBTNYcj7zIxqNgkJU1TRa/Kw=="], + + "@vitest/expect": ["@vitest/expect@4.1.9", "", { "dependencies": { "@standard-schema/spec": "1.1.0", "@types/chai": "5.2.3", "@vitest/spy": "4.1.9", "@vitest/utils": "4.1.9", "chai": "6.2.2", "tinyrainbow": "3.1.0" } }, "sha512-vl/rYsUKcBr3SnQn166+XR5ZQcgMx3DQhFWdfli/cWpLnLUmbxZvyrJZotLFUryib+LtArYMSTJ5RbQ57ZqrlA=="], + + "@vitest/mocker": ["@vitest/mocker@4.1.9", "", { "dependencies": { "@vitest/spy": "4.1.9", "estree-walker": "3.0.3", "magic-string": "0.30.21" }, "peerDependencies": { "msw": "^2.4.9", "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "optionalPeers": ["msw", "vite"] }, "sha512-EVkXzBjrPGM+cK8/ANWgBrkUCfJfb38/EfTSO8h7pWvKkyPkpWxvR7BkD2MyItMF62C97zAEoqdpUixwR/e+Rw=="], + + "@vitest/pretty-format": ["@vitest/pretty-format@4.1.9", "", { "dependencies": { "tinyrainbow": "3.1.0" } }, "sha512-s0iufns3iIFitdgm+YR7g1whCAaGtXz459VS9/PqyKDEEFgYIhsHOQmXgIgDuYCt7DeQmiZT0Qe2OA2p4ZPu5A=="], + + "@vitest/runner": ["@vitest/runner@4.1.9", "", { "dependencies": { "@vitest/utils": "4.1.9", "pathe": "2.0.3" } }, "sha512-KXLMDtc7oe70+3mJfGrPUWPesswH+3sTxAMAMl8DG7I8IUQT4XW718dY5ID3vPUcmlu27CcKfY4P3h3I29SLJg=="], + + "@vitest/snapshot": ["@vitest/snapshot@4.1.9", "", { "dependencies": { "@vitest/pretty-format": "4.1.9", "@vitest/utils": "4.1.9", "magic-string": "0.30.21", "pathe": "2.0.3" } }, "sha512-Jc7RKGNBo8Z28WYIm0Niej4xdSPByRf6mU58VpHQkd6Zh05rlnA+twjbK5HyeIGHxrzsc3mJgS43uM0CZKzaIA=="], + + "@vitest/spy": ["@vitest/spy@4.1.9", "", {}, "sha512-fHpsS6mIi+PiEW+vcRVOMkX1oSaPKne3VOclSFICPcGOmfKgXPU5iAah+wcNcj2xPrCCmfq99IDGf+EojhhvhA=="], + + "@vitest/utils": ["@vitest/utils@4.1.9", "", { "dependencies": { "@vitest/pretty-format": "4.1.9", "convert-source-map": "2.0.0", "tinyrainbow": "3.1.0" } }, "sha512-A51o8ymO5PpqlWNnBP9ZHPXDIpuMtTLlGSjN7la4US+LJzoUMyhwjA5QXlm39JexgwHKW4Xjs8Z2d3dLCXOeuA=="], + + "abbrev": ["abbrev@4.0.0", "", {}, "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA=="], + + "agent-base": ["agent-base@7.1.4", "", {}, "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ=="], + + "ansi-colors": ["ansi-colors@4.1.3", "", {}, "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw=="], + + "ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="], + + "ansi-styles": ["ansi-styles@6.2.3", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="], + + "argparse": ["argparse@2.0.1", "", {}, "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="], + + "array-union": ["array-union@2.1.0", "", {}, "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw=="], + + "assertion-error": ["assertion-error@2.0.1", "", {}, "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA=="], + + "aws4fetch": ["aws4fetch@1.0.20", "", {}, "sha512-/djoAN709iY65ETD6LKCtyyEI04XIBP5xVvfmNxsEP0uJB5tyaGBztSryRr4HqMStr9R06PisQE7m9zDTXKu6g=="], + + "balanced-match": ["balanced-match@4.0.4", "", {}, "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA=="], + + "base64-js": ["base64-js@1.5.1", "", {}, "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="], + + "better-path-resolve": ["better-path-resolve@1.0.0", "", { "dependencies": { "is-windows": "1.0.2" } }, "sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g=="], + + "bignumber.js": ["bignumber.js@9.3.1", "", {}, "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ=="], + + "bin-links": ["bin-links@6.0.3", "", { "dependencies": { "cmd-shim": "8.0.0", "npm-normalize-package-bin": "5.0.0", "proc-log": "6.1.0", "read-cmd-shim": "6.0.0", "write-file-atomic": "7.0.1" } }, "sha512-Qg5FD7/YSReWJB1zaM8VIi1l4O637JKK/WPaF/JzJGy/9FcMDWtSklF0dOX5S9X2OMrPGhifIHIKuwtHG0IGFg=="], + + "bowser": ["bowser@2.15.0", "", {}, "sha512-xic6KSZglg/I4ymp45fdM4GWfYpBK79Fxd/TOvJktlaPgQqqDxvmGwOPZl2V0dyeS3Lj5c180bLhXF43iyAjZQ=="], + + "brace-expansion": ["brace-expansion@5.0.12", "", { "dependencies": { "balanced-match": "4.0.4" } }, "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ=="], + + "braces": ["braces@3.0.3", "", { "dependencies": { "fill-range": "7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="], + + "buffer-equal-constant-time": ["buffer-equal-constant-time@1.0.1", "", {}, "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="], + + "bundle-name": ["bundle-name@4.1.1", "", { "dependencies": { "run-applescript": "7.1.0" } }, "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA=="], + + "cacache": ["cacache@20.0.4", "", { "dependencies": { "@npmcli/fs": "5.0.0", "fs-minipass": "3.0.3", "glob": "13.0.5", "lru-cache": "11.5.3", "minipass": "7.1.3", "minipass-collect": "2.0.1", "minipass-flush": "1.0.7", "minipass-pipeline": "1.2.4", "p-map": "7.1.1", "ssri": "13.0.1" } }, "sha512-M3Lab8NPYlZU2exsL3bMVvMrMqgwCnMWfdZbK28bn3pK6APT/Te/I8hjRPNu1uwORY9a1eEQoifXbKPQMfMTOA=="], + + "chai": ["chai@6.2.2", "", {}, "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg=="], + + "chardet": ["chardet@2.2.0", "", {}, "sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA=="], + + "chownr": ["chownr@3.0.0", "", {}, "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g=="], + + "ci-info": ["ci-info@4.4.0", "", {}, "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg=="], + + "cmd-shim": ["cmd-shim@8.0.0", "", {}, "sha512-Jk/BK6NCapZ58BKUxlSI+ouKRbjH1NLZCgJkYoab+vEHUY3f6OzpNBN9u7HFSv9J6TRDGs4PLOHezoKGaFRSCA=="], + + "color-convert": ["color-convert@2.0.1", "", { "dependencies": { "color-name": "1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="], + + "color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="], + + "common-ancestor-path": ["common-ancestor-path@2.0.0", "", {}, "sha512-dnN3ibLeoRf2HNC+OlCiNc5d2zxbLJXOtiZUudNFSXZrNSydxcCsSpRzXwfu7BBWCIfHPw+xTayeBvJCP/D8Ng=="], + + "content-type": ["content-type@2.1.0", "", {}, "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag=="], + + "convert-source-map": ["convert-source-map@2.0.0", "", {}, "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="], + + "cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "3.1.1", "shebang-command": "2.0.0", "which": "2.0.2" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="], + + "cssesc": ["cssesc@3.0.0", "", { "bin": { "cssesc": "bin/cssesc" } }, "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg=="], + + "data-uri-to-buffer": ["data-uri-to-buffer@4.0.1", "", {}, "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A=="], + + "dataloader": ["dataloader@1.4.0", "", {}, "sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw=="], + + "debug": ["debug@4.4.3", "", { "dependencies": { "ms": "2.1.3" }, "peerDependencies": { "supports-color": "*" }, "optionalPeers": ["supports-color"] }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], + + "default-browser": ["default-browser@5.5.1", "", { "dependencies": { "bundle-name": "4.1.1", "default-browser-id": "5.0.1" } }, "sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw=="], + + "default-browser-id": ["default-browser-id@5.0.1", "", {}, "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q=="], + + "define-lazy-prop": ["define-lazy-prop@3.0.0", "", {}, "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg=="], + + "detect-indent": ["detect-indent@6.1.0", "", {}, "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA=="], + + "detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="], + + "dir-glob": ["dir-glob@3.0.1", "", { "dependencies": { "path-type": "4.0.0" } }, "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA=="], + + "dotenv": ["dotenv@8.6.0", "", {}, "sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g=="], + + "eastasianwidth": ["eastasianwidth@0.2.0", "", {}, "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="], + + "ecdsa-sig-formatter": ["ecdsa-sig-formatter@1.0.11", "", { "dependencies": { "safe-buffer": "5.2.1" } }, "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ=="], + + "effect": ["effect@4.0.1", "", {}, "sha512-b1VlQG9g8fwxE5QnIZuPoOP/0MsqHJSRKxUijjoM80E5q95FXrX5yWtY5XI8G+GJsBQAVSDbLS458z9a++uVvw=="], + + "emoji-regex": ["emoji-regex@9.2.2", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="], + + "enquirer": ["enquirer@2.4.1", "", { "dependencies": { "ansi-colors": "4.1.3", "strip-ansi": "6.0.1" } }, "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ=="], + + "env-paths": ["env-paths@2.2.1", "", {}, "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A=="], + + "es-module-lexer": ["es-module-lexer@2.3.0", "", {}, "sha512-KLdwQm2NvGLDkQDCGvmiQrhkd0JbMzXthwQAUgWjQuQdBLFa3eiBP5arXZyA+f8x+x7OXgud6bq2rxjGtHV2tw=="], + + "esprima": ["esprima@4.0.1", "", { "bin": { "esparse": "./bin/esparse.js", "esvalidate": "./bin/esvalidate.js" } }, "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="], + + "estree-walker": ["estree-walker@3.0.3", "", { "dependencies": { "@types/estree": "1.0.9" } }, "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g=="], + + "expect-type": ["expect-type@1.4.0", "", {}, "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA=="], + + "exponential-backoff": ["exponential-backoff@3.1.3", "", {}, "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA=="], + + "extend": ["extend@3.0.2", "", {}, "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="], + + "extendable-error": ["extendable-error@0.1.7", "", {}, "sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg=="], + + "fast-glob": ["fast-glob@3.3.3", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "@nodelib/fs.walk": "1.2.8", "glob-parent": "5.1.2", "merge2": "1.4.1", "micromatch": "4.0.8" } }, "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg=="], + + "fastq": ["fastq@1.20.1", "", { "dependencies": { "reusify": "1.1.0" } }, "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw=="], + + "fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="], + + "fetch-blob": ["fetch-blob@3.2.0", "", { "dependencies": { "node-domexception": "1.0.0", "web-streams-polyfill": "3.3.3" } }, "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ=="], + + "fill-range": ["fill-range@7.1.1", "", { "dependencies": { "to-regex-range": "5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="], + + "find-up": ["find-up@4.1.0", "", { "dependencies": { "locate-path": "5.0.0", "path-exists": "4.0.0" } }, "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw=="], + + "foreground-child": ["foreground-child@3.3.1", "", { "dependencies": { "cross-spawn": "7.0.6", "signal-exit": "4.1.0" } }, "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw=="], + + "formdata-polyfill": ["formdata-polyfill@4.0.10", "", { "dependencies": { "fetch-blob": "3.2.0" } }, "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g=="], + + "fs-extra": ["fs-extra@7.0.1", "", { "dependencies": { "graceful-fs": "4.2.11", "jsonfile": "4.0.0", "universalify": "0.1.2" } }, "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw=="], + + "fs-minipass": ["fs-minipass@3.0.3", "", { "dependencies": { "minipass": "7.1.3" } }, "sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw=="], + + "fsevents": ["fsevents@2.3.3", "", { "os": "darwin", "hasInstallScript": true }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="], + + "gaxios": ["gaxios@7.3.1", "", { "dependencies": { "extend": "3.0.2", "https-proxy-agent": "7.0.6", "node-fetch": "3.3.2" } }, "sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ=="], + + "gcp-metadata": ["gcp-metadata@8.1.4", "", { "dependencies": { "gaxios": "7.1.3", "google-logging-utils": "1.1.3", "json-bigint": "1.0.0" } }, "sha512-iJ9KMsiu+xKtNRX0PmGLSaIU3bUBAyzWTyqKemKPzNPsmmsBCQYmlNg+brEbES7IHSXtdVwzBPzx1vz3FAaipw=="], + + "glob": ["glob@13.0.5", "", { "dependencies": { "minimatch": "10.2.5", "minipass": "7.1.3", "path-scurry": "2.0.2" } }, "sha512-BzXxZg24Ibra1pbQ/zE7Kys4Ua1ks7Bn6pKLkVPZ9FZe4JQS6/Q7ef3LG1H+k7lUf5l4T3PLSyYyYJVYUvfgTw=="], + + "glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "4.0.3" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="], + + "globby": ["globby@11.1.0", "", { "dependencies": { "array-union": "2.1.0", "dir-glob": "3.0.1", "fast-glob": "3.3.3", "ignore": "5.3.2", "merge2": "1.4.1", "slash": "3.0.0" } }, "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g=="], + + "google-auth-library": ["google-auth-library@10.5.0", "", { "dependencies": { "base64-js": "1.5.1", "ecdsa-sig-formatter": "1.0.11", "gaxios": "7.3.1", "gcp-metadata": "8.1.4", "google-logging-utils": "1.2.0", "gtoken": "8.0.0", "jws": "4.0.1" } }, "sha512-7ABviyMOlX5hIVD60YOfHw4/CxOfBhyduaYB+wbFWCWoni4N7SLcV46hrVRktuBbZjFC9ONyqamZITN7q3n32w=="], + + "google-logging-utils": ["google-logging-utils@1.2.0", "", {}, "sha512-WE9av4wKDZgRjBwgVUabocx8T6/7o3Ca1Fat46FXDhXVAFibzNadedcOXrdgd1Kzmk8tsk/9ZH89Wyf/SqeZ3A=="], + + "graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="], + + "gtoken": ["gtoken@8.0.0", "", { "dependencies": { "gaxios": "7.3.1", "jws": "4.0.1" } }, "sha512-+CqsMbHPiSTdtSO14O51eMNlrp9N79gmeqmXeouJOhfucAedHw9noVe/n5uJk3tbKE6a+6ZCQg3RPhVhHByAIw=="], + + "hosted-git-info": ["hosted-git-info@9.0.3", "", { "dependencies": { "lru-cache": "11.5.3" } }, "sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg=="], + + "http-cache-semantics": ["http-cache-semantics@4.3.0", "", {}, "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA=="], + + "http-proxy-agent": ["http-proxy-agent@7.0.2", "", { "dependencies": { "agent-base": "7.1.4", "debug": "4.4.3" } }, "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig=="], + + "https-proxy-agent": ["https-proxy-agent@7.0.6", "", { "dependencies": { "agent-base": "7.1.4", "debug": "4.4.3" } }, "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw=="], + + "human-id": ["human-id@4.2.0", "", { "bin": { "human-id": "dist/cli.js" } }, "sha512-K3GbkIWqyvvlpfhBPlbEvD97TtqBpAYA4kt+cn2lD2x2HuohzZCibcA2nOlnJT6exqvJLggoB5nv2dNf192nEA=="], + + "husky": ["husky@9.1.7", "", { "bin": { "husky": "bin.js" } }, "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA=="], + + "iconv-lite": ["iconv-lite@0.7.2", "", { "dependencies": { "safer-buffer": "2.1.2" } }, "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw=="], + + "ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="], + + "ignore-walk": ["ignore-walk@8.0.0", "", { "dependencies": { "minimatch": "10.2.5" } }, "sha512-FCeMZT4NiRQGh+YkeKMtWrOmBgWjHjMJ26WQWrRQyoyzqevdaGSakUaJW5xQYmjLlUVk2qUnCjYVBax9EKKg8A=="], + + "ini": ["ini@6.0.0", "", {}, "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ=="], + + "ip-address": ["ip-address@10.7.5", "", {}, "sha512-t2v0rkILYv9WXmSL7TpAaU3HXgaFYOPUcH3QHgwQ++gpJuH3bqyMy4Fvt/DJCTKwzH3Cf+bAp5W/mFL39KPLzA=="], + + "is-docker": ["is-docker@3.0.0", "", { "bin": { "is-docker": "cli.js" } }, "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ=="], + + "is-extglob": ["is-extglob@2.1.1", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="], + + "is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="], + + "is-glob": ["is-glob@4.0.3", "", { "dependencies": { "is-extglob": "2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="], + + "is-in-ssh": ["is-in-ssh@1.0.0", "", {}, "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw=="], + + "is-inside-container": ["is-inside-container@1.0.0", "", { "dependencies": { "is-docker": "3.0.0" }, "bin": { "is-inside-container": "cli.js" } }, "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA=="], + + "is-number": ["is-number@7.0.0", "", {}, "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="], + + "is-subdir": ["is-subdir@1.2.0", "", { "dependencies": { "better-path-resolve": "1.0.0" } }, "sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw=="], + + "is-windows": ["is-windows@1.0.2", "", {}, "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA=="], + + "is-wsl": ["is-wsl@3.1.1", "", { "dependencies": { "is-inside-container": "1.0.0" } }, "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw=="], + + "isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="], + + "jackspeak": ["jackspeak@3.4.3", "", { "dependencies": { "@isaacs/cliui": "8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="], + + "js-yaml": ["js-yaml@4.3.0", "", { "dependencies": { "argparse": "2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q=="], + + "json-bigint": ["json-bigint@1.0.0", "", { "dependencies": { "bignumber.js": "9.3.1" } }, "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ=="], + + "json-parse-even-better-errors": ["json-parse-even-better-errors@5.0.0", "", {}, "sha512-ZF1nxZ28VhQouRWhUcVlUIN3qwSgPuswK05s/HIaoetAoE/9tngVmCHjSxmSQPav1nd+lPtTL0YZ/2AFdR/iYQ=="], + + "json-schema": ["json-schema@0.4.0", "", {}, "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA=="], + + "json-stringify-nice": ["json-stringify-nice@1.1.4", "", {}, "sha512-5Z5RFW63yxReJ7vANgW6eZFGWaQvnPE3WNmZoOJrSkGju2etKA2L5rrOa1sm877TVTFt57A80BH1bArcmlLfPw=="], + + "jsonfile": ["jsonfile@4.0.0", "", { "optionalDependencies": { "graceful-fs": "4.2.11" } }, "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg=="], + + "jsonparse": ["jsonparse@1.3.1", "", {}, "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg=="], + + "just-diff": ["just-diff@6.0.2", "", {}, "sha512-S59eriX5u3/QhMNq3v/gm8Kd0w8OS6Tz2FS1NG4blv+z0MuQcBRJyFWjdovM0Rad4/P4aUPFtnkNjMjyMlMSYA=="], + + "just-diff-apply": ["just-diff-apply@5.5.0", "", {}, "sha512-OYTthRfSh55WOItVqwpefPtNt2VdKsq5AnAK6apdtR6yCH8pr0CmSr710J0Mf+WdQy7K/OzMy7K2MgAfdQURDw=="], + + "jwa": ["jwa@2.0.1", "", { "dependencies": { "buffer-equal-constant-time": "1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "5.2.1" } }, "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg=="], + + "jws": ["jws@4.0.1", "", { "dependencies": { "jwa": "2.0.1", "safe-buffer": "5.2.1" } }, "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA=="], + + "lightningcss": ["lightningcss@1.32.0", "", { "dependencies": { "detect-libc": "2.1.2" }, "optionalDependencies": { "lightningcss-android-arm64": "1.32.0", "lightningcss-darwin-arm64": "1.32.0", "lightningcss-darwin-x64": "1.32.0", "lightningcss-freebsd-x64": "1.32.0", "lightningcss-linux-arm-gnueabihf": "1.32.0", "lightningcss-linux-arm64-gnu": "1.32.0", "lightningcss-linux-arm64-musl": "1.32.0", "lightningcss-linux-x64-gnu": "1.32.0", "lightningcss-linux-x64-musl": "1.32.0", "lightningcss-win32-arm64-msvc": "1.32.0", "lightningcss-win32-x64-msvc": "1.32.0" } }, "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ=="], + + "lightningcss-android-arm64": ["lightningcss-android-arm64@1.32.0", "", { "os": "android", "cpu": "arm64" }, "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg=="], + + "lightningcss-darwin-arm64": ["lightningcss-darwin-arm64@1.32.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ=="], + + "lightningcss-darwin-x64": ["lightningcss-darwin-x64@1.32.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w=="], + + "lightningcss-freebsd-x64": ["lightningcss-freebsd-x64@1.32.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig=="], + + "lightningcss-linux-arm-gnueabihf": ["lightningcss-linux-arm-gnueabihf@1.32.0", "", { "os": "linux", "cpu": "arm" }, "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw=="], + + "lightningcss-linux-arm64-gnu": ["lightningcss-linux-arm64-gnu@1.32.0", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ=="], + + "lightningcss-linux-arm64-musl": ["lightningcss-linux-arm64-musl@1.32.0", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg=="], + + "lightningcss-linux-x64-gnu": ["lightningcss-linux-x64-gnu@1.32.0", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA=="], + + "lightningcss-linux-x64-musl": ["lightningcss-linux-x64-musl@1.32.0", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg=="], + + "lightningcss-win32-arm64-msvc": ["lightningcss-win32-arm64-msvc@1.32.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw=="], + + "lightningcss-win32-x64-msvc": ["lightningcss-win32-x64-msvc@1.32.0", "", { "os": "win32", "cpu": "x64" }, "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q=="], + + "locate-path": ["locate-path@5.0.0", "", { "dependencies": { "p-locate": "4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="], + + "lodash.startcase": ["lodash.startcase@4.4.0", "", {}, "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg=="], + + "lru-cache": ["lru-cache@11.5.3", "", {}, "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg=="], + + "magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="], + + "make-fetch-happen": ["make-fetch-happen@15.0.6", "", { "dependencies": { "@gar/promise-retry": "1.0.3", "@npmcli/agent": "4.0.2", "@npmcli/redact": "4.0.0", "cacache": "20.0.4", "http-cache-semantics": "4.3.0", "minipass": "7.1.3", "minipass-fetch": "5.0.2", "minipass-flush": "1.0.7", "minipass-pipeline": "1.2.4", "negotiator": "1.1.0", "proc-log": "6.1.0", "ssri": "13.0.1" } }, "sha512-Je0fLJ0F5atA7F+eIlLzk+Wkcl57JDf4kf+EW8xiP5E31xOQxkIxTbgf1Oi1Lw9tRI9UEMRdI5Vz2xTzoNU1Jw=="], + + "merge2": ["merge2@1.4.1", "", {}, "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg=="], + + "micromatch": ["micromatch@4.0.8", "", { "dependencies": { "braces": "3.0.3", "picomatch": "2.3.2" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="], + + "mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="], + + "mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="], + + "minimatch": ["minimatch@10.2.5", "", { "dependencies": { "brace-expansion": "5.0.12" } }, "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg=="], + + "minipass": ["minipass@7.1.3", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="], + + "minipass-collect": ["minipass-collect@2.0.1", "", { "dependencies": { "minipass": "7.1.3" } }, "sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw=="], + + "minipass-fetch": ["minipass-fetch@5.0.2", "", { "dependencies": { "minipass": "7.1.3", "minipass-sized": "2.0.0", "minizlib": "3.1.0" }, "optionalDependencies": { "iconv-lite": "0.7.2" } }, "sha512-2d0q2a8eCi2IRg/IGubCNRJoYbA1+YPXAzQVRFmB45gdGZafyivnZ5YSEfo3JikbjGxOdntGFvBQGqaSMXlAFQ=="], + + "minipass-flush": ["minipass-flush@1.0.7", "", { "dependencies": { "minipass": "3.3.6" } }, "sha512-TbqTz9cUwWyHS2Dy89P3ocAGUGxKjjLuR9z8w4WUTGAVgEj17/4nhgo2Du56i0Fm3Pm30g4iA8Lcqctc76jCzA=="], + + "minipass-pipeline": ["minipass-pipeline@1.2.4", "", { "dependencies": { "minipass": "3.3.6" } }, "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A=="], + + "minipass-sized": ["minipass-sized@2.0.0", "", { "dependencies": { "minipass": "7.1.3" } }, "sha512-zSsHhto5BcUVM2m1LurnXY6M//cGhVaegT71OfOXoprxT6o780GZd792ea6FfrQkuU4usHZIUczAQMRUE2plzA=="], + + "minizlib": ["minizlib@3.1.0", "", { "dependencies": { "minipass": "7.1.3" } }, "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw=="], + + "mri": ["mri@1.2.0", "", {}, "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA=="], + + "ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], + + "nanoid": ["nanoid@3.3.15", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA=="], + + "negotiator": ["negotiator@1.1.0", "", { "dependencies": { "content-type": "2.1.0" } }, "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg=="], + + "node-domexception": ["node-domexception@1.0.0", "", {}, "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ=="], + + "node-fetch": ["node-fetch@2.7.0", "", { "dependencies": { "whatwg-url": "5.0.0" }, "peerDependencies": { "encoding": "^0.1.0" }, "optionalPeers": ["encoding"] }, "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A=="], + + "node-gyp": ["node-gyp@12.4.0", "", { "dependencies": { "env-paths": "2.2.1", "exponential-backoff": "3.1.3", "graceful-fs": "4.2.11", "nopt": "9.0.0", "proc-log": "6.1.0", "semver": "7.8.5", "tar": "7.5.22", "tinyglobby": "0.2.17", "undici": "6.29.1", "which": "6.0.1" }, "bin": { "node-gyp": "bin/node-gyp.js" } }, "sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw=="], + + "nopt": ["nopt@9.0.0", "", { "dependencies": { "abbrev": "4.0.0" }, "bin": { "nopt": "bin/nopt.js" } }, "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw=="], + + "npm-bundled": ["npm-bundled@5.0.0", "", { "dependencies": { "npm-normalize-package-bin": "5.0.0" } }, "sha512-JLSpbzh6UUXIEoqPsYBvVNVmyrjVZ1fzEFbqxKkTJQkWBO3xFzFT+KDnSKQWwOQNbuWRwt5LSD6HOTLGIWzfrw=="], + + "npm-install-checks": ["npm-install-checks@8.0.0", "", { "dependencies": { "semver": "7.8.5" } }, "sha512-ScAUdMpyzkbpxoNekQ3tNRdFI8SJ86wgKZSQZdUxT+bj0wVFpsEMWnkXP0twVe1gJyNF5apBWDJhhIbgrIViRA=="], + + "npm-normalize-package-bin": ["npm-normalize-package-bin@5.0.0", "", {}, "sha512-CJi3OS4JLsNMmr2u07OJlhcrPxCeOeP/4xq67aWNai6TNWWbTrlNDgl8NcFKVlcBKp18GPj+EzbNIgrBfZhsag=="], + + "npm-package-arg": ["npm-package-arg@13.0.2", "", { "dependencies": { "hosted-git-info": "9.0.3", "proc-log": "6.1.0", "semver": "7.8.5", "validate-npm-package-name": "7.0.2" } }, "sha512-IciCE3SY3uE84Ld8WZU23gAPPV9rIYod4F+rc+vJ7h7cwAJt9Vk6TVsK60ry7Uj3SRS3bqRRIGuTp9YVlk6WNA=="], + + "npm-packlist": ["npm-packlist@10.0.4", "", { "dependencies": { "ignore-walk": "8.0.0", "proc-log": "6.1.0" } }, "sha512-uMW73iajD8hiH4ZBxEV3HC+eTnppIqwakjOYuvgddnalIw2lJguKviK1pcUJDlIWm1wSJkchpDZDSVVsZEYRng=="], + + "npm-pick-manifest": ["npm-pick-manifest@11.0.3", "", { "dependencies": { "npm-install-checks": "8.0.0", "npm-normalize-package-bin": "5.0.0", "npm-package-arg": "13.0.2", "semver": "7.8.5" } }, "sha512-buzyCfeoGY/PxKqmBqn1IUJrZnUi1VVJTdSSRPGI60tJdUhUoSQFhs0zycJokDdOznQentgrpf8LayEHyyYlqQ=="], + + "npm-registry-fetch": ["npm-registry-fetch@19.1.1", "", { "dependencies": { "@npmcli/redact": "4.0.0", "jsonparse": "1.3.1", "make-fetch-happen": "15.0.6", "minipass": "7.1.3", "minipass-fetch": "5.0.2", "minizlib": "3.1.0", "npm-package-arg": "13.0.2", "proc-log": "6.1.0" } }, "sha512-TakBap6OM1w0H73VZVDf44iFXsOS3h+L4wVMXmbWOQroZgFhMch0juN6XSzBNlD965yIKvWg2dfu7NSiaYLxtw=="], + + "obug": ["obug@2.1.3", "", {}, "sha512-9miFgM2OFba7hB+pRgvtV84pYTBaoTHohvmIgiRt6dRIzbwEOIaNaP+dIlGs2fNFoB0SeISs0Jz5WFVRid6Xyg=="], + + "open": ["open@11.0.4", "", { "dependencies": { "default-browser": "5.5.1", "define-lazy-prop": "3.0.0", "is-in-ssh": "1.0.0", "is-inside-container": "1.0.0", "powershell-utils": "0.2.1", "wsl-utils": "1.0.1" } }, "sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg=="], + + "outdent": ["outdent@0.5.0", "", {}, "sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q=="], + + "oxfmt": ["oxfmt@0.57.0", "", { "dependencies": { "tinypool": "2.1.0" }, "optionalDependencies": { "@oxfmt/binding-android-arm-eabi": "0.57.0", "@oxfmt/binding-android-arm64": "0.57.0", "@oxfmt/binding-darwin-arm64": "0.57.0", "@oxfmt/binding-darwin-x64": "0.57.0", "@oxfmt/binding-freebsd-x64": "0.57.0", "@oxfmt/binding-linux-arm-gnueabihf": "0.57.0", "@oxfmt/binding-linux-arm-musleabihf": "0.57.0", "@oxfmt/binding-linux-arm64-gnu": "0.57.0", "@oxfmt/binding-linux-arm64-musl": "0.57.0", "@oxfmt/binding-linux-ppc64-gnu": "0.57.0", "@oxfmt/binding-linux-riscv64-gnu": "0.57.0", "@oxfmt/binding-linux-riscv64-musl": "0.57.0", "@oxfmt/binding-linux-s390x-gnu": "0.57.0", "@oxfmt/binding-linux-x64-gnu": "0.57.0", "@oxfmt/binding-linux-x64-musl": "0.57.0", "@oxfmt/binding-openharmony-arm64": "0.57.0", "@oxfmt/binding-win32-arm64-msvc": "0.57.0", "@oxfmt/binding-win32-ia32-msvc": "0.57.0", "@oxfmt/binding-win32-x64-msvc": "0.57.0" }, "peerDependencies": { "svelte": "^5.0.0", "vite-plus": "*" }, "optionalPeers": ["svelte", "vite-plus"], "bin": { "oxfmt": "bin/oxfmt" } }, "sha512-ZB7Bi+rGDSqmVIo9jwcLyFgjxXvQhDdU+jx+ZrVy6VRiVXK2+CHc4hO3J4dUQjHe7V0ymHB+MDuv5z+NhK07HA=="], + + "oxlint": ["oxlint@1.72.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.72.0", "@oxlint/binding-android-arm64": "1.72.0", "@oxlint/binding-darwin-arm64": "1.72.0", "@oxlint/binding-darwin-x64": "1.72.0", "@oxlint/binding-freebsd-x64": "1.72.0", "@oxlint/binding-linux-arm-gnueabihf": "1.72.0", "@oxlint/binding-linux-arm-musleabihf": "1.72.0", "@oxlint/binding-linux-arm64-gnu": "1.72.0", "@oxlint/binding-linux-arm64-musl": "1.72.0", "@oxlint/binding-linux-ppc64-gnu": "1.72.0", "@oxlint/binding-linux-riscv64-gnu": "1.72.0", "@oxlint/binding-linux-riscv64-musl": "1.72.0", "@oxlint/binding-linux-s390x-gnu": "1.72.0", "@oxlint/binding-linux-x64-gnu": "1.72.0", "@oxlint/binding-linux-x64-musl": "1.72.0", "@oxlint/binding-openharmony-arm64": "1.72.0", "@oxlint/binding-win32-arm64-msvc": "1.72.0", "@oxlint/binding-win32-ia32-msvc": "1.72.0", "@oxlint/binding-win32-x64-msvc": "1.72.0" }, "peerDependencies": { "oxlint-tsgolint": ">=0.22.1", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-1rhdZIP/EvoI91ABIwNU5Q8+bWf8mjrS5UzIOZld4d4bXxJvtlUhlQvaoTogIGin/qdErMOrwaIJvCSIAKTLhA=="], + + "p-filter": ["p-filter@2.1.0", "", { "dependencies": { "p-map": "2.1.0" } }, "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw=="], + + "p-limit": ["p-limit@2.3.0", "", { "dependencies": { "p-try": "2.2.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="], + + "p-locate": ["p-locate@4.1.0", "", { "dependencies": { "p-limit": "2.3.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="], + + "p-map": ["p-map@2.1.0", "", {}, "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw=="], + + "p-try": ["p-try@2.2.0", "", {}, "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="], + + "package-json-from-dist": ["package-json-from-dist@1.0.1", "", {}, "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw=="], + + "package-manager-detector": ["package-manager-detector@0.2.11", "", { "dependencies": { "quansync": "0.2.11" } }, "sha512-BEnLolu+yuz22S56CU1SUKq3XC3PkwD5wv4ikR4MfGvnRVcmzXR9DwSlW2fEamyTPyXHomBJRzgapeuBvRNzJQ=="], + + "pacote": ["pacote@21.5.1", "", { "dependencies": { "@gar/promise-retry": "1.0.3", "@npmcli/git": "7.0.2", "@npmcli/installed-package-contents": "4.0.0", "@npmcli/package-json": "7.0.5", "@npmcli/promise-spawn": "9.0.2", "@npmcli/run-script": "10.0.4", "cacache": "20.0.4", "fs-minipass": "3.0.3", "minipass": "7.1.3", "npm-package-arg": "13.0.2", "npm-packlist": "10.0.4", "npm-pick-manifest": "11.0.3", "npm-registry-fetch": "19.1.1", "proc-log": "6.1.0", "sigstore": "4.1.1", "ssri": "13.0.1", "tar": "7.5.22" }, "bin": { "pacote": "bin/index.js" } }, "sha512-KvcJ9iy3crysCsgqc4+PknH/w6jkrp8JN36mpZBPwNaDRwTfMZD37YzRazNstiZUOhuF5pno9f78n9mEJBavwg=="], + + "parse-conflict-json": ["parse-conflict-json@5.0.1", "", { "dependencies": { "json-parse-even-better-errors": "5.0.0", "just-diff": "6.0.2", "just-diff-apply": "5.5.0" } }, "sha512-ZHEmNKMq1wyJXNwLxyHnluPfRAFSIliBvbK/UiOceROt4Xh9Pz0fq49NytIaeaCUf5VR86hwQ/34FCcNU5/LKQ=="], + + "path-exists": ["path-exists@4.0.0", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="], + + "path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="], + + "path-scurry": ["path-scurry@2.0.2", "", { "dependencies": { "lru-cache": "11.5.3", "minipass": "7.1.3" } }, "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg=="], + + "path-type": ["path-type@4.0.0", "", {}, "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw=="], + + "pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], + + "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], + + "picomatch": ["picomatch@4.0.4", "", {}, "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A=="], + + "pify": ["pify@4.0.1", "", {}, "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g=="], + + "postcss": ["postcss@8.5.16", "", { "dependencies": { "nanoid": "3.3.15", "picocolors": "1.1.1", "source-map-js": "1.2.1" } }, "sha512-vuwillviilfKZsg0VGj5R/YwwcHx4SLsIOI/7K6mQkWx+l5cUHTjj5g0AasTBcyXsbfTgrwsUNmVUb5xVwyPwg=="], + + "postcss-selector-parser": ["postcss-selector-parser@7.1.7", "", { "dependencies": { "cssesc": "3.0.0", "util-deprecate": "1.0.2" } }, "sha512-wWBro/7hJ40ye6TPiXkUQoXKCw23xSsjriUvqd7Uls9Sso3oLiON1flc18cCdnjgCRXw4fBVqUJJeOdDTh3P3g=="], + + "powershell-utils": ["powershell-utils@0.2.1", "", {}, "sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A=="], + + "prettier": ["prettier@2.8.8", "", { "bin": { "prettier": "bin-prettier.js" } }, "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q=="], + + "proc-log": ["proc-log@6.1.0", "", {}, "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ=="], + + "proggy": ["proggy@4.0.0", "", {}, "sha512-MbA4R+WQT76ZBm/5JUpV9yqcJt92175+Y0Bodg3HgiXzrmKu7Ggq+bpn6y6wHH+gN9NcyKn3yg1+d47VaKwNAQ=="], + + "promise-all-reject-late": ["promise-all-reject-late@1.0.1", "", {}, "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw=="], + + "promise-call-limit": ["promise-call-limit@3.0.2", "", {}, "sha512-mRPQO2T1QQVw11E7+UdCJu7S61eJVWknzml9sC1heAdj1jxl0fWMBypIt9ZOcLFf8FkG995ZD7RnVk7HH72fZw=="], + + "quansync": ["quansync@0.2.11", "", {}, "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA=="], + + "queue-microtask": ["queue-microtask@1.2.3", "", {}, "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="], + + "read-cmd-shim": ["read-cmd-shim@6.0.0", "", {}, "sha512-1zM5HuOfagXCBWMN83fuFI/x+T/UhZ7k+KIzhrHXcQoeX5+7gmaDYjELQHmmzIodumBHeByBJT4QYS7ufAgs7A=="], + + "read-yaml-file": ["read-yaml-file@1.1.0", "", { "dependencies": { "graceful-fs": "4.2.11", "js-yaml": "3.15.0", "pify": "4.0.1", "strip-bom": "3.0.0" } }, "sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA=="], + + "redis": ["redis@6.3.1", "", { "dependencies": { "@redis/bloom": "6.3.1", "@redis/client": "6.3.1", "@redis/json": "6.3.1", "@redis/search": "6.3.1", "@redis/time-series": "6.3.1" } }, "sha512-mV96ZKxQ4CGn3SyEGaY0Lb9YA443mdVey3c+mdr0NAUaBxiOZGoYCWX8PoM55kictSOmxlJRtZJxIsmZm3jL+w=="], + + "resolve-from": ["resolve-from@5.0.0", "", {}, "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw=="], + + "reusify": ["reusify@1.1.0", "", {}, "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw=="], + + "rimraf": ["rimraf@5.0.10", "", { "dependencies": { "glob": "10.5.0" }, "bin": { "rimraf": "dist/esm/bin.mjs" } }, "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ=="], + + "rolldown": ["rolldown@1.1.4", "", { "dependencies": { "@oxc-project/types": "0.138.0", "@rolldown/pluginutils": "1.0.1" }, "optionalDependencies": { "@rolldown/binding-android-arm64": "1.1.4", "@rolldown/binding-darwin-arm64": "1.1.4", "@rolldown/binding-darwin-x64": "1.1.4", "@rolldown/binding-freebsd-x64": "1.1.4", "@rolldown/binding-linux-arm-gnueabihf": "1.1.4", "@rolldown/binding-linux-arm64-gnu": "1.1.4", "@rolldown/binding-linux-arm64-musl": "1.1.4", "@rolldown/binding-linux-ppc64-gnu": "1.1.4", "@rolldown/binding-linux-s390x-gnu": "1.1.4", "@rolldown/binding-linux-x64-gnu": "1.1.4", "@rolldown/binding-linux-x64-musl": "1.1.4", "@rolldown/binding-openharmony-arm64": "1.1.4", "@rolldown/binding-wasm32-wasi": "1.1.4", "@rolldown/binding-win32-arm64-msvc": "1.1.4", "@rolldown/binding-win32-x64-msvc": "1.1.4" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-IjZYiLxZwpnhwhdBH2ugdTGVSdhCQUmLxLoqyjiL0JxYjyRst+5a0P3xfrTxJ5F638j4Mvvw5FAX5XE6eHpXbA=="], + + "run-applescript": ["run-applescript@7.1.0", "", {}, "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q=="], + + "run-parallel": ["run-parallel@1.2.0", "", { "dependencies": { "queue-microtask": "1.2.3" } }, "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA=="], + + "safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="], + + "safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="], + + "semver": ["semver@7.8.5", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="], + + "shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="], + + "shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="], + + "siginfo": ["siginfo@2.0.0", "", {}, "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g=="], + + "signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], + + "sigstore": ["sigstore@4.1.1", "", { "dependencies": { "@sigstore/bundle": "4.0.0", "@sigstore/core": "3.2.1", "@sigstore/protobuf-specs": "0.5.2", "@sigstore/sign": "4.1.1", "@sigstore/tuf": "4.0.2", "@sigstore/verify": "3.1.1" } }, "sha512-endqECJkfhozrXMK5ngu/UAA0xVcVEFdnHJCElGaExypjW+HK5i6zu3NteLoaX/iFbRUbC3+DjttQs0GARr+5w=="], + + "slash": ["slash@3.0.0", "", {}, "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q=="], + + "smart-buffer": ["smart-buffer@4.2.0", "", {}, "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg=="], + + "socks": ["socks@2.8.10", "", { "dependencies": { "ip-address": "10.7.5", "smart-buffer": "4.2.0" } }, "sha512-e0VyvkVTwVYViNovRkZ9aodhxVlyoMn7eJhVUPxZ+eK9P/7CBkxvvsBOHqFPEH416726W8tLXXXjKwqgTErrCQ=="], + + "socks-proxy-agent": ["socks-proxy-agent@8.0.5", "", { "dependencies": { "agent-base": "7.1.4", "debug": "4.4.3", "socks": "2.8.10" } }, "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw=="], + + "source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="], + + "spawndamnit": ["spawndamnit@3.0.1", "", { "dependencies": { "cross-spawn": "7.0.6", "signal-exit": "4.1.0" } }, "sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg=="], + + "spdx-exceptions": ["spdx-exceptions@2.5.0", "", {}, "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w=="], + + "spdx-expression-parse": ["spdx-expression-parse@4.0.0", "", { "dependencies": { "spdx-exceptions": "2.5.0", "spdx-license-ids": "3.0.24" } }, "sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ=="], + + "spdx-license-ids": ["spdx-license-ids@3.0.24", "", {}, "sha512-cLS9TtWkIQFyLkJ3/5aFQAOHOSKTlOs/7WDut/XPSdjom1fJhUdkepeJAKXa9Y05+FabHd0sti+Et559vDtkpQ=="], + + "sprintf-js": ["sprintf-js@1.0.3", "", {}, "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="], + + "ssri": ["ssri@13.0.1", "", { "dependencies": { "minipass": "7.1.3" } }, "sha512-QUiRf1+u9wPTL/76GTYlKttDEBWV1ga9ZXW8BG6kfdeyyM8LGPix9gROyg9V2+P0xNyF3X2Go526xKFdMZrHSQ=="], + + "stackback": ["stackback@0.0.2", "", {}, "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw=="], + + "std-env": ["std-env@4.1.0", "", {}, "sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ=="], + + "string-width": ["string-width@5.1.2", "", { "dependencies": { "eastasianwidth": "0.2.0", "emoji-regex": "9.2.2", "strip-ansi": "7.2.0" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="], + + "string-width-cjs": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "8.0.0", "is-fullwidth-code-point": "3.0.0", "strip-ansi": "6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + + "strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], + + "strip-ansi-cjs": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], + + "strip-bom": ["strip-bom@3.0.0", "", {}, "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA=="], + + "tar": ["tar@7.5.22", "", { "dependencies": { "@isaacs/fs-minipass": "4.0.1", "chownr": "3.0.0", "minipass": "7.1.3", "minizlib": "3.1.0", "yallist": "5.0.0" } }, "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA=="], + + "term-size": ["term-size@2.2.1", "", {}, "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg=="], + + "tinybench": ["tinybench@2.9.0", "", {}, "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg=="], + + "tinyexec": ["tinyexec@1.2.4", "", {}, "sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg=="], + + "tinyglobby": ["tinyglobby@0.2.17", "", { "dependencies": { "fdir": "6.5.0", "picomatch": "4.0.4" } }, "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g=="], + + "tinypool": ["tinypool@2.1.0", "", {}, "sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw=="], + + "tinyrainbow": ["tinyrainbow@3.1.0", "", {}, "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw=="], + + "to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="], + + "tr46": ["tr46@0.0.3", "", {}, "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="], + + "treeverse": ["treeverse@3.0.0", "", {}, "sha512-gcANaAnd2QDZFmHFEOF4k7uc1J/6a6z3DJMd/QwEyxLoKGiptJRwid582r7QIsFlFMIZ3SnxfS52S4hm2DHkuQ=="], + + "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], + + "tuf-js": ["tuf-js@4.1.0", "", { "dependencies": { "@tufjs/models": "4.1.0", "debug": "4.4.3", "make-fetch-happen": "15.0.6" } }, "sha512-50QV99kCKH5P/Vs4E2Gzp7BopNV+KzTXqWeaxrfu5IQJBOULRsTIS9seSsOVT8ZnGXzCyx55nYWAi4qJzpZKEQ=="], + + "typescript": ["typescript@6.0.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw=="], + + "undici": ["undici@8.12.3", "", {}, "sha512-+fdndUTwBP86cVjihTp21hZHo7d6oj1c/47XPA3lL8mM0XHs+C4EkcjmgRsFnFk2f/UONGDy9ItBItmXsLOQHw=="], + + "undici-types": ["undici-types@8.3.0", "", {}, "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ=="], + + "universalify": ["universalify@0.1.2", "", {}, "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg=="], + + "util-deprecate": ["util-deprecate@1.0.2", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="], + + "validate-npm-package-name": ["validate-npm-package-name@7.0.2", "", {}, "sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A=="], + + "vite": ["vite@8.1.3", "", { "dependencies": { "lightningcss": "1.32.0", "picomatch": "4.0.4", "postcss": "8.5.16", "rolldown": "1.1.4", "tinyglobby": "0.2.17" }, "optionalDependencies": { "fsevents": "2.3.3" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", "@vitejs/devtools": "^0.3.0", "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", "less": "^4.0.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "@vitejs/devtools", "esbuild", "jiti", "less", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-Ds+gBRbj0lwRO2Y5hwnUBdxSwlAve9LeRyU4sNnAr0ewW0gWF0n5bgXgUzbgZ49MV9BVUAQUFYVcDUcilUExMA=="], + + "vitest": ["vitest@4.1.9", "", { "dependencies": { "@vitest/expect": "4.1.9", "@vitest/mocker": "4.1.9", "@vitest/pretty-format": "4.1.9", "@vitest/runner": "4.1.9", "@vitest/snapshot": "4.1.9", "@vitest/spy": "4.1.9", "@vitest/utils": "4.1.9", "es-module-lexer": "2.3.0", "expect-type": "1.4.0", "magic-string": "0.30.21", "obug": "2.1.3", "pathe": "2.0.3", "picomatch": "4.0.4", "std-env": "4.1.0", "tinybench": "2.9.0", "tinyexec": "1.2.4", "tinyglobby": "0.2.17", "tinyrainbow": "3.1.0", "why-is-node-running": "2.3.0" }, "peerDependencies": { "@edge-runtime/vm": "*", "@opentelemetry/api": "^1.9.0", "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", "@vitest/browser-playwright": "4.1.9", "@vitest/browser-preview": "4.1.9", "@vitest/browser-webdriverio": "4.1.9", "@vitest/coverage-istanbul": "4.1.9", "@vitest/coverage-v8": "4.1.9", "@vitest/ui": "4.1.9", "happy-dom": "*", "jsdom": "*", "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "optionalPeers": ["@edge-runtime/vm", "@opentelemetry/api", "@types/node", "@vitest/browser-playwright", "@vitest/browser-preview", "@vitest/browser-webdriverio", "@vitest/coverage-istanbul", "@vitest/coverage-v8", "@vitest/ui", "happy-dom", "jsdom"], "bin": { "vitest": "./vitest.mjs" } }, "sha512-nE3/LEyc0z87uHYLZebqCUOaJr2hdtuPp7BQ4BosVFnfltxgAvMG08NyrSGlPpOUWvR27c5flSmYFTNr78L9GQ=="], + + "walk-up-path": ["walk-up-path@4.0.0", "", {}, "sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A=="], + + "web-streams-polyfill": ["web-streams-polyfill@3.3.3", "", {}, "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw=="], + + "webidl-conversions": ["webidl-conversions@3.0.1", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="], + + "whatwg-url": ["whatwg-url@5.0.0", "", { "dependencies": { "tr46": "0.0.3", "webidl-conversions": "3.0.1" } }, "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw=="], + + "which": ["which@2.0.2", "", { "dependencies": { "isexe": "2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], + + "why-is-node-running": ["why-is-node-running@2.3.0", "", { "dependencies": { "siginfo": "2.0.0", "stackback": "0.0.2" }, "bin": { "why-is-node-running": "cli.js" } }, "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w=="], + + "wrap-ansi": ["wrap-ansi@8.1.0", "", { "dependencies": { "ansi-styles": "6.2.3", "string-width": "5.1.2", "strip-ansi": "7.2.0" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="], + + "wrap-ansi-cjs": ["wrap-ansi@7.0.0", "", { "dependencies": { "ansi-styles": "4.3.0", "string-width": "4.2.3", "strip-ansi": "6.0.1" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="], + + "write-file-atomic": ["write-file-atomic@7.0.1", "", { "dependencies": { "signal-exit": "4.1.0" } }, "sha512-OTIk8iR8/aCRWBqvxrzxR0hgxWpnYBblY1S5hDWBQfk/VFmJwzmJgQFN3WsoUKHISv2eAwe+PpbUzyL1CKTLXg=="], + + "ws": ["ws@8.22.1", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-oyL6OPYme/CmiFvNuGzeoxCJ4nOrZE2O1FwM9MWM1AsGri6nLXB2pg+lNA8aLeXMSav0J6eIVS1j6vUPzUtK9g=="], + + "wsl-utils": ["wsl-utils@1.0.1", "", { "dependencies": { "is-wsl": "3.1.1", "powershell-utils": "0.2.1" } }, "sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ=="], + + "yallist": ["yallist@5.0.0", "", {}, "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw=="], + + "yaml": ["yaml@2.9.0", "", { "bin": { "yaml": "bin.mjs" } }, "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA=="], + + "@aws-crypto/sha256-browser/@smithy/util-utf8": ["@smithy/util-utf8@2.3.0", "", { "dependencies": { "@smithy/util-buffer-from": "2.2.0", "tslib": "2.8.1" } }, "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A=="], + + "@aws-crypto/util/@smithy/util-utf8": ["@smithy/util-utf8@2.3.0", "", { "dependencies": { "@smithy/util-buffer-from": "2.2.0", "tslib": "2.8.1" } }, "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A=="], + + "@effect/platform-node/@effect/platform-node-shared": ["@effect/platform-node-shared@4.0.6", "", { "dependencies": { "@types/ws": "8.18.2", "ws": "8.22.1" }, "peerDependencies": { "effect": "^4.0.6" } }, "sha512-0PhyC4uG30xGtsajnxjkcBWfTjNRzUh4ZKl1Kvo/MNyCTb+W2O+fBzf7wCRCoqt+nLudiq4V7vX40Q8XIBuMaQ=="], + + "@isaacs/cliui/strip-ansi": ["strip-ansi@7.2.0", "", { "dependencies": { "ansi-regex": "6.5.0" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="], + + "@manypkg/find-root/@types/node": ["@types/node@12.20.55", "", {}, "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ=="], + + "@manypkg/find-root/fs-extra": ["fs-extra@8.1.0", "", { "dependencies": { "graceful-fs": "4.2.11", "jsonfile": "4.0.0", "universalify": "0.1.2" } }, "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g=="], + + "@manypkg/get-packages/@changesets/types": ["@changesets/types@4.1.0", "", {}, "sha512-LDQvVDv5Kb50ny2s25Fhm3d9QSZimsoUGBsUioj6MC3qbMUCuC8GPIvk/M6IvXx3lYhAs0lwWUQLb+VIEUCECw=="], + + "@manypkg/get-packages/fs-extra": ["fs-extra@8.1.0", "", { "dependencies": { "graceful-fs": "4.2.11", "jsonfile": "4.0.0", "universalify": "0.1.2" } }, "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g=="], + + "@npmcli/git/which": ["which@6.0.1", "", { "dependencies": { "isexe": "4.0.0" }, "bin": { "node-which": "bin/which.js" } }, "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg=="], + + "@npmcli/promise-spawn/which": ["which@6.0.1", "", { "dependencies": { "isexe": "4.0.0" }, "bin": { "node-which": "bin/which.js" } }, "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg=="], + + "cacache/p-map": ["p-map@7.1.1", "", {}, "sha512-6Lh3jQPLthYujSrlw6ccWXBGZTkoTCz27Hd92g79LH/kjAbgoEu0t442cCCNbegPSJsA0lwDX8z0bcKtkpA32g=="], + + "gaxios/node-fetch": ["node-fetch@3.3.2", "", { "dependencies": { "data-uri-to-buffer": "4.0.1", "fetch-blob": "3.2.0", "formdata-polyfill": "4.0.10" } }, "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA=="], + + "gcp-metadata/gaxios": ["gaxios@7.1.3", "", { "dependencies": { "extend": "3.0.2", "https-proxy-agent": "7.0.6", "node-fetch": "3.3.2", "rimraf": "5.0.10" } }, "sha512-YGGyuEdVIjqxkxVH1pUTMY/XtmmsApXrCVv5EU25iX6inEPbV+VakJfLealkBtJN69AQmh1eGOdCl9Sm1UP6XQ=="], + + "gcp-metadata/google-logging-utils": ["google-logging-utils@1.1.3", "", {}, "sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA=="], + + "micromatch/picomatch": ["picomatch@2.3.2", "", {}, "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA=="], + + "minipass-flush/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="], + + "minipass-pipeline/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="], + + "node-gyp/undici": ["undici@6.29.1", "", {}, "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA=="], + + "node-gyp/which": ["which@6.0.1", "", { "dependencies": { "isexe": "4.0.0" }, "bin": { "node-which": "bin/which.js" } }, "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg=="], + + "read-yaml-file/js-yaml": ["js-yaml@3.15.0", "", { "dependencies": { "argparse": "1.0.10", "esprima": "4.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-ttBQIIQPDeLjpPOohtUdXuXUVoA2uIB6fEH9HyJ7234s5mBJ5wTx20njxplLZQgLaOfpmPQA7X2t5AX6tIPbog=="], + + "rimraf/glob": ["glob@10.5.0", "", { "dependencies": { "foreground-child": "3.3.1", "jackspeak": "3.4.3", "minimatch": "9.0.9", "minipass": "7.1.3", "package-json-from-dist": "1.0.1", "path-scurry": "1.11.1" }, "bin": { "glob": "dist/esm/bin.mjs" } }, "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg=="], + + "string-width/strip-ansi": ["strip-ansi@7.2.0", "", { "dependencies": { "ansi-regex": "6.5.0" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="], + + "string-width-cjs/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], + + "wrap-ansi/strip-ansi": ["strip-ansi@7.2.0", "", { "dependencies": { "ansi-regex": "6.5.0" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="], + + "wrap-ansi-cjs/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="], + + "wrap-ansi-cjs/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "8.0.0", "is-fullwidth-code-point": "3.0.0", "strip-ansi": "6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + + "@aws-crypto/sha256-browser/@smithy/util-utf8/@smithy/util-buffer-from": ["@smithy/util-buffer-from@2.2.0", "", { "dependencies": { "@smithy/is-array-buffer": "2.2.0", "tslib": "2.8.1" } }, "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA=="], + + "@aws-crypto/util/@smithy/util-utf8/@smithy/util-buffer-from": ["@smithy/util-buffer-from@2.2.0", "", { "dependencies": { "@smithy/is-array-buffer": "2.2.0", "tslib": "2.8.1" } }, "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA=="], + + "@isaacs/cliui/strip-ansi/ansi-regex": ["ansi-regex@6.5.0", "", {}, "sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ=="], + + "@npmcli/git/which/isexe": ["isexe@4.0.0", "", {}, "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw=="], + + "@npmcli/promise-spawn/which/isexe": ["isexe@4.0.0", "", {}, "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw=="], + + "gcp-metadata/gaxios/node-fetch": ["node-fetch@3.3.2", "", { "dependencies": { "data-uri-to-buffer": "4.0.1", "fetch-blob": "3.2.0", "formdata-polyfill": "4.0.10" } }, "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA=="], + + "minipass-flush/minipass/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="], + + "minipass-pipeline/minipass/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="], + + "node-gyp/which/isexe": ["isexe@4.0.0", "", {}, "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw=="], + + "read-yaml-file/js-yaml/argparse": ["argparse@1.0.10", "", { "dependencies": { "sprintf-js": "1.0.3" } }, "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg=="], + + "rimraf/glob/minimatch": ["minimatch@9.0.9", "", { "dependencies": { "brace-expansion": "2.1.7" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="], + + "rimraf/glob/path-scurry": ["path-scurry@1.11.1", "", { "dependencies": { "lru-cache": "10.4.3", "minipass": "7.1.3" } }, "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA=="], + + "string-width/strip-ansi/ansi-regex": ["ansi-regex@6.5.0", "", {}, "sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ=="], + + "wrap-ansi-cjs/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], + + "wrap-ansi/strip-ansi/ansi-regex": ["ansi-regex@6.5.0", "", {}, "sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ=="], + + "rimraf/glob/minimatch/brace-expansion": ["brace-expansion@2.1.7", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g=="], + + "rimraf/glob/path-scurry/lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="], + + "rimraf/glob/minimatch/brace-expansion/balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="], + } +} diff --git a/dist/index.js b/dist/index.js index 017edf5..9991a49 100644 --- a/dist/index.js +++ b/dist/index.js @@ -598,10 +598,15 @@ const AdaptiveThinkingPlugin = Plugin.define({ `To change your reasoning effort, use the \`${config.toolName}\` tool with one of the valid levels.`, "Only call it when the task complexity justifies changing levels." ].filter(Boolean).join(" "); - event.system.push({ + const existingSystem = event.system[0]; + if (existingSystem === void 0 || !existingSystem.text) event.system.push({ type: "text", text: guidance }); + else event.system[0] = { + type: "text", + text: existingSystem.text + "\n\n" + guidance + }; }); await ctx.session.hook("model.request", (event) => { if (event.kind !== "primary") return; diff --git a/src/index.ts b/src/index.ts index 654988e..92b613d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -813,7 +813,15 @@ export const AdaptiveThinkingPlugin = Plugin.define({ .filter(Boolean) .join(" "); - event.system.push({ type: "text", text: guidance }); + // Merge into the first system message instead of pushing a second one. + // Strict chat templates (e.g. llama.cpp) require exactly one system message + // and reject additional ones, breaking template rendering. + const existingSystem = event.system[0]; + if (existingSystem === undefined || !existingSystem.text) { + event.system.push({ type: "text", text: guidance }); + } else { + event.system[0] = { type: "text", text: existingSystem.text + "\n\n" + guidance }; + } }); // Variant header/body overrides cannot travel through `event.options`. Apply them to the one