@republicroad/seal-editor 1.21.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/index.js +263 -192
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2404,6 +2404,8 @@ var oc = {
|
|
|
2404
2404
|
"request.fixturesRunning": "Running…",
|
|
2405
2405
|
"cf.argsDriftTitle": "Function argument drift",
|
|
2406
2406
|
"cf.argsDriftRows": "row(s)",
|
|
2407
|
+
"cf.dollarFormBand": "$.-path args detected — kwargs scope never resolves hBcpaths (always null); migrate to bare paths",
|
|
2408
|
+
"cf.dollarFormMigrate": "Migrate $. paths",
|
|
2407
2409
|
"cf.argsDriftMissing": "missing",
|
|
2408
2410
|
"cf.argsDriftUnrecognized": "unrecognized",
|
|
2409
2411
|
"cf.argsFillMissing": "Fill missing defaults",
|
|
@@ -2673,6 +2675,8 @@ var oc = {
|
|
|
2673
2675
|
"request.fixturesRunning": "运行中…",
|
|
2674
2676
|
"cf.argsDriftTitle": "函数参数漂移",
|
|
2675
2677
|
"cf.argsDriftRows": "行",
|
|
2678
|
+
"cf.dollarFormBand": "检测到 $. 路径形态实参——kwargs 域不解析 hBc路径(恒 null),可迁移为裸路径",
|
|
2679
|
+
"cf.dollarFormMigrate": "迁移 $. 路径",
|
|
2676
2680
|
"cf.argsDriftMissing": "缺参",
|
|
2677
2681
|
"cf.argsDriftUnrecognized": "未识别键",
|
|
2678
2682
|
"cf.argsFillMissing": "补缺失默认值",
|
|
@@ -13021,7 +13025,7 @@ var Rh = () => M.useContext(Ph), zh = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
13021
13025
|
typeDef: "declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;\ndeclare type Scalars = Primitive | Primitive[];\n\ndeclare namespace util {\n type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;\n export type isAny<T> = 0 extends 1 & T ? true : false;\n export const assertEqual: <A, B>(val: AssertEqual<A, B>) => AssertEqual<A, B>;\n export function assertIs<T>(_arg: T): void;\n export function assertNever(_x: never): never;\n export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\n export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;\n export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;\n export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;\n export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k };\n export const getValidEnumValues: (obj: any) => any[];\n export const objectValues: (obj: any) => any[];\n export const objectKeys: ObjectConstructor['keys'];\n export const find: <T>(arr: T[], checker: (arg: T) => any) => T | undefined;\n export type identity<T> = objectUtil.identity<T>;\n export type flatten<T> = objectUtil.flatten<T>;\n export type noUndefined<T> = T extends undefined ? never : T;\n export const isInteger: NumberConstructor['isInteger'];\n export function joinValues<T extends any[]>(array: T, separator?: string): string;\n export const jsonStringifyReplacer: (_: string, value: any) => any;\n export {};\n}\ndeclare namespace objectUtil {\n export type MergeShapes<U, V> = {\n [k in Exclude<keyof U, keyof V>]: U[k];\n } & V;\n type optionalKeys<T extends object> = {\n [k in keyof T]: undefined extends T[k] ? k : never;\n }[keyof T];\n type requiredKeys<T extends object> = {\n [k in keyof T]: undefined extends T[k] ? never : k;\n }[keyof T];\n export type addQuestionMarks<T extends object, _O = any> = {\n [K in requiredKeys<T>]: T[K];\n } & {\n [K in optionalKeys<T>]?: T[K];\n } & {\n [k in keyof T]?: unknown;\n };\n export type identity<T> = T;\n export type flatten<T> = identity<{\n [k in keyof T]: T[k];\n }>;\n export type noNeverKeys<T> = {\n [k in keyof T]: [T[k]] extends [never] ? never : k;\n }[keyof T];\n export type noNever<T> = identity<{\n [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never;\n }>;\n export const mergeShapes: <U, T>(first: U, second: T) => T & U;\n export type extendShape<A extends object, B extends object> = {\n [K in keyof A as K extends keyof B ? never : K]: A[K];\n } & {\n [K in keyof B]: B[K];\n };\n export {};\n}\ndeclare const ZodParsedType: {\n function: 'function';\n number: 'number';\n string: 'string';\n nan: 'nan';\n integer: 'integer';\n float: 'float';\n boolean: 'boolean';\n date: 'date';\n bigint: 'bigint';\n symbol: 'symbol';\n undefined: 'undefined';\n null: 'null';\n array: 'array';\n object: 'object';\n unknown: 'unknown';\n promise: 'promise';\n void: 'void';\n never: 'never';\n map: 'map';\n set: 'set';\n};\ndeclare type ZodParsedType = keyof typeof ZodParsedType;\ndeclare const getParsedType: (data: any) => ZodParsedType;\n\ndeclare type allKeys<T> = T extends any ? keyof T : never;\ndeclare type inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = typeToFlattenedError<TypeOf<T>, U>;\ndeclare type typeToFlattenedError<T, U = string> = {\n formErrors: U[];\n fieldErrors: {\n [P in allKeys<T>]?: U[];\n };\n};\ndeclare const ZodIssueCode: {\n invalid_type: 'invalid_type';\n invalid_literal: 'invalid_literal';\n custom: 'custom';\n invalid_union: 'invalid_union';\n invalid_union_discriminator: 'invalid_union_discriminator';\n invalid_enum_value: 'invalid_enum_value';\n unrecognized_keys: 'unrecognized_keys';\n invalid_arguments: 'invalid_arguments';\n invalid_return_type: 'invalid_return_type';\n invalid_date: 'invalid_date';\n invalid_string: 'invalid_string';\n too_small: 'too_small';\n too_big: 'too_big';\n invalid_intersection_types: 'invalid_intersection_types';\n not_multiple_of: 'not_multiple_of';\n not_finite: 'not_finite';\n};\ndeclare type ZodIssueCode = keyof typeof ZodIssueCode;\ndeclare type ZodIssueBase = {\n path: (string | number)[];\n message?: string;\n};\ninterface ZodInvalidTypeIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_type;\n expected: ZodParsedType;\n received: ZodParsedType;\n}\ninterface ZodInvalidLiteralIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_literal;\n expected: unknown;\n received: unknown;\n}\ninterface ZodUnrecognizedKeysIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.unrecognized_keys;\n keys: string[];\n}\ninterface ZodInvalidUnionIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_union;\n unionErrors: ZodError[];\n}\ninterface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_union_discriminator;\n options: Primitive[];\n}\ninterface ZodInvalidEnumValueIssue extends ZodIssueBase {\n received: string | number;\n code: typeof ZodIssueCode.invalid_enum_value;\n options: (string | number)[];\n}\ninterface ZodInvalidArgumentsIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_arguments;\n argumentsError: ZodError;\n}\ninterface ZodInvalidReturnTypeIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_return_type;\n returnTypeError: ZodError;\n}\ninterface ZodInvalidDateIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_date;\n}\ndeclare type StringValidation =\n | 'email'\n | 'url'\n | 'emoji'\n | 'uuid'\n | 'nanoid'\n | 'regex'\n | 'cuid'\n | 'cuid2'\n | 'ulid'\n | 'datetime'\n | 'date'\n | 'time'\n | 'duration'\n | 'ip'\n | 'base64'\n | {\n includes: string;\n position?: number;\n }\n | {\n startsWith: string;\n }\n | {\n endsWith: string;\n };\ninterface ZodInvalidStringIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_string;\n validation: StringValidation;\n}\ninterface ZodTooSmallIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.too_small;\n minimum: number | bigint;\n inclusive: boolean;\n exact?: boolean;\n type: 'array' | 'string' | 'number' | 'set' | 'date' | 'bigint';\n}\ninterface ZodTooBigIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.too_big;\n maximum: number | bigint;\n inclusive: boolean;\n exact?: boolean;\n type: 'array' | 'string' | 'number' | 'set' | 'date' | 'bigint';\n}\ninterface ZodInvalidIntersectionTypesIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_intersection_types;\n}\ninterface ZodNotMultipleOfIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.not_multiple_of;\n multipleOf: number | bigint;\n}\ninterface ZodNotFiniteIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.not_finite;\n}\ninterface ZodCustomIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.custom;\n params?: {\n [k: string]: any;\n };\n}\ndeclare type DenormalizedError = {\n [k: string]: DenormalizedError | string[];\n};\ndeclare type ZodIssueOptionalMessage =\n | ZodInvalidTypeIssue\n | ZodInvalidLiteralIssue\n | ZodUnrecognizedKeysIssue\n | ZodInvalidUnionIssue\n | ZodInvalidUnionDiscriminatorIssue\n | ZodInvalidEnumValueIssue\n | ZodInvalidArgumentsIssue\n | ZodInvalidReturnTypeIssue\n | ZodInvalidDateIssue\n | ZodInvalidStringIssue\n | ZodTooSmallIssue\n | ZodTooBigIssue\n | ZodInvalidIntersectionTypesIssue\n | ZodNotMultipleOfIssue\n | ZodNotFiniteIssue\n | ZodCustomIssue;\ndeclare type ZodIssue = ZodIssueOptionalMessage & {\n fatal?: boolean;\n message: string;\n};\ndeclare const quotelessJson: (obj: any) => string;\ndeclare type recursiveZodFormattedError<T> = T extends [any, ...any[]]\n ? {\n [K in keyof T]?: ZodFormattedError<T[K]>;\n }\n : T extends any[]\n ? {\n [k: number]: ZodFormattedError<T[number]>;\n }\n : T extends object\n ? {\n [K in keyof T]?: ZodFormattedError<T[K]>;\n }\n : unknown;\ndeclare type ZodFormattedError<T, U = string> = {\n _errors: U[];\n} & recursiveZodFormattedError<NonNullable<T>>;\ndeclare type inferFormattedError<T extends ZodType<any, any, any>, U = string> = ZodFormattedError<TypeOf<T>, U>;\ndeclare class ZodError<T = any> extends Error {\n issues: ZodIssue[];\n get errors(): ZodIssue[];\n constructor(issues: ZodIssue[]);\n format(): ZodFormattedError<T>;\n format<U>(mapper: (issue: ZodIssue) => U): ZodFormattedError<T, U>;\n static create: (issues: ZodIssue[]) => ZodError<any>;\n static assert(value: unknown): asserts value is ZodError;\n toString(): string;\n get message(): string;\n get isEmpty(): boolean;\n addIssue: (sub: ZodIssue) => void;\n addIssues: (subs?: ZodIssue[]) => void;\n flatten(): typeToFlattenedError<T>;\n flatten<U>(mapper?: (issue: ZodIssue) => U): typeToFlattenedError<T, U>;\n get formErrors(): typeToFlattenedError<T, string>;\n}\ndeclare type stripPath<T extends object> = T extends any ? util.OmitKeys<T, 'path'> : never;\ndeclare type IssueData = stripPath<ZodIssueOptionalMessage> & {\n path?: (string | number)[];\n fatal?: boolean;\n};\ndeclare type ErrorMapCtx = {\n defaultError: string;\n data: any;\n};\ndeclare type ZodErrorMap = (\n issue: ZodIssueOptionalMessage,\n _ctx: ErrorMapCtx,\n) => {\n message: string;\n};\n\ndeclare const errorMap: ZodErrorMap;\n//# sourceMappingURL=en.d.ts.map\n\ndeclare function setErrorMap(map: ZodErrorMap): void;\ndeclare function getErrorMap(): ZodErrorMap;\n\ndeclare const makeIssue: (params: {\n data: any;\n path: (string | number)[];\n errorMaps: ZodErrorMap[];\n issueData: IssueData;\n}) => ZodIssue;\ndeclare type ParseParams = {\n path: (string | number)[];\n errorMap: ZodErrorMap;\n async: boolean;\n};\ndeclare type ParsePathComponent = string | number;\ndeclare type ParsePath = ParsePathComponent[];\ndeclare const EMPTY_PATH: ParsePath;\ninterface ParseContext {\n readonly common: {\n readonly issues: ZodIssue[];\n readonly contextualErrorMap?: ZodErrorMap;\n readonly async: boolean;\n };\n readonly path: ParsePath;\n readonly schemaErrorMap?: ZodErrorMap;\n readonly parent: ParseContext | null;\n readonly data: any;\n readonly parsedType: ZodParsedType;\n}\ndeclare type ParseInput = {\n data: any;\n path: (string | number)[];\n parent: ParseContext;\n};\ndeclare function addIssueToContext(ctx: ParseContext, issueData: IssueData): void;\ndeclare type ObjectPair = {\n key: SyncParseReturnType<any>;\n value: SyncParseReturnType<any>;\n};\ndeclare class ParseStatus {\n value: 'aborted' | 'dirty' | 'valid';\n dirty(): void;\n abort(): void;\n static mergeArray(status: ParseStatus, results: SyncParseReturnType<any>[]): SyncParseReturnType;\n static mergeObjectAsync(\n status: ParseStatus,\n pairs: {\n key: ParseReturnType<any>;\n value: ParseReturnType<any>;\n }[],\n ): Promise<SyncParseReturnType<any>>;\n static mergeObjectSync(\n status: ParseStatus,\n pairs: {\n key: SyncParseReturnType<any>;\n value: SyncParseReturnType<any>;\n alwaysSet?: boolean;\n }[],\n ): SyncParseReturnType;\n}\ninterface ParseResult {\n status: 'aborted' | 'dirty' | 'valid';\n data: any;\n}\ndeclare type INVALID = {\n status: 'aborted';\n};\ndeclare const INVALID: INVALID;\ndeclare type DIRTY<T> = {\n status: 'dirty';\n value: T;\n};\ndeclare const DIRTY: <T>(value: T) => DIRTY<T>;\ndeclare type OK<T> = {\n status: 'valid';\n value: T;\n};\ndeclare const OK: <T>(value: T) => OK<T>;\ndeclare type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;\ndeclare type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;\ndeclare type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;\ndeclare const isAborted: (x: ParseReturnType<any>) => x is INVALID;\ndeclare const isDirty: <T>(x: ParseReturnType<T>) => x is OK<T> | DIRTY<T>;\ndeclare const isValid: <T>(x: ParseReturnType<T>) => x is OK<T>;\ndeclare const isAsync: <T>(x: ParseReturnType<T>) => x is AsyncParseReturnType<T>;\n\ndeclare namespace enumUtil {\n type UnionToIntersectionFn<T> = (T extends unknown ? (k: () => T) => void : never) extends (\n k: infer Intersection,\n ) => void\n ? Intersection\n : never;\n type GetUnionLast<T> = UnionToIntersectionFn<T> extends () => infer Last ? Last : never;\n type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never]\n ? Tuple\n : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;\n type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;\n export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;\n export {};\n}\n\ndeclare namespace errorUtil {\n type ErrMessage =\n | string\n | {\n message?: string;\n };\n const errToObj: (message?: ErrMessage | undefined) => {\n message?: string | undefined;\n };\n const toString: (message?: ErrMessage | undefined) => string | undefined;\n}\n\ndeclare namespace partialUtil {\n type DeepPartial<T extends ZodTypeAny> =\n T extends ZodObject<ZodRawShape>\n ? ZodObject<\n {\n [k in keyof T['shape']]: ZodOptional<DeepPartial<T['shape'][k]>>;\n },\n T['_def']['unknownKeys'],\n T['_def']['catchall']\n >\n : T extends ZodArray<infer Type, infer Card>\n ? ZodArray<DeepPartial<Type>, Card>\n : T extends ZodOptional<infer Type>\n ? ZodOptional<DeepPartial<Type>>\n : T extends ZodNullable<infer Type>\n ? ZodNullable<DeepPartial<Type>>\n : T extends ZodTuple<infer Items>\n ? {\n [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never;\n } extends infer PI\n ? PI extends ZodTupleItems\n ? ZodTuple<PI>\n : never\n : never\n : T;\n}\n\ninterface RefinementCtx {\n addIssue: (arg: IssueData) => void;\n path: (string | number)[];\n}\ndeclare type ZodRawShape = {\n [k: string]: ZodTypeAny;\n};\ndeclare type ZodTypeAny = ZodType<any, any, any>;\ndeclare type TypeOf<T extends ZodType<any, any, any>> = T['_output'];\ndeclare type input<T extends ZodType<any, any, any>> = T['_input'];\ndeclare type output<T extends ZodType<any, any, any>> = T['_output'];\n\ndeclare type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, 'code'>>;\ninterface ZodTypeDef {\n errorMap?: ZodErrorMap;\n description?: string;\n}\ndeclare type RawCreateParams =\n | {\n errorMap?: ZodErrorMap;\n invalid_type_error?: string;\n required_error?: string;\n message?: string;\n description?: string;\n }\n | undefined;\ndeclare type ProcessedCreateParams = {\n errorMap?: ZodErrorMap;\n description?: string;\n};\ndeclare type SafeParseSuccess<Output> = {\n success: true;\n data: Output;\n error?: never;\n};\ndeclare type SafeParseError<Input> = {\n success: false;\n error: ZodError<Input>;\n data?: never;\n};\ndeclare type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input>;\ndeclare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {\n readonly _type: Output;\n readonly _output: Output;\n readonly _input: Input;\n readonly _def: Def;\n get description(): string | undefined;\n abstract _parse(input: ParseInput): ParseReturnType<Output>;\n _getType(input: ParseInput): string;\n _getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext;\n _processInputParams(input: ParseInput): {\n status: ParseStatus;\n ctx: ParseContext;\n };\n _parseSync(input: ParseInput): SyncParseReturnType<Output>;\n _parseAsync(input: ParseInput): AsyncParseReturnType<Output>;\n parse(data: unknown, params?: Partial<ParseParams>): Output;\n safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;\n parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;\n safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;\n /** Alias of safeParseAsync */\n spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;\n refine<RefinedOutput extends Output>(\n check: (arg: Output) => arg is RefinedOutput,\n message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams),\n ): ZodEffects<this, RefinedOutput, Input>;\n refine(\n check: (arg: Output) => unknown | Promise<unknown>,\n message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams),\n ): ZodEffects<this, Output, Input>;\n refinement<RefinedOutput extends Output>(\n check: (arg: Output) => arg is RefinedOutput,\n refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData),\n ): ZodEffects<this, RefinedOutput, Input>;\n refinement(\n check: (arg: Output) => boolean,\n refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData),\n ): ZodEffects<this, Output, Input>;\n _refinement(refinement: RefinementEffect<Output>['refinement']): ZodEffects<this, Output, Input>;\n superRefine<RefinedOutput extends Output>(\n refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput,\n ): ZodEffects<this, RefinedOutput, Input>;\n superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input>;\n superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input>;\n constructor(def: Def);\n optional(): ZodOptional<this>;\n nullable(): ZodNullable<this>;\n nullish(): ZodOptional<ZodNullable<this>>;\n array(): ZodArray<this>;\n promise(): ZodPromise<this>;\n or<T extends ZodTypeAny>(option: T): ZodUnion<[this, T]>;\n and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T>;\n transform<NewOut>(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise<NewOut>): ZodEffects<this, NewOut>;\n default(def: util.noUndefined<Input>): ZodDefault<this>;\n default(def: () => util.noUndefined<Input>): ZodDefault<this>;\n brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B>;\n catch(def: Output): ZodCatch<this>;\n catch(def: (ctx: { error: ZodError; input: Input }) => Output): ZodCatch<this>;\n describe(description: string): this;\n pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T>;\n readonly(): ZodReadonly<this>;\n isOptional(): boolean;\n isNullable(): boolean;\n}\ndeclare type IpVersion = 'v4' | 'v6';\ndeclare type ZodStringCheck =\n | {\n kind: 'min';\n value: number;\n message?: string;\n }\n | {\n kind: 'max';\n value: number;\n message?: string;\n }\n | {\n kind: 'length';\n value: number;\n message?: string;\n }\n | {\n kind: 'email';\n message?: string;\n }\n | {\n kind: 'url';\n message?: string;\n }\n | {\n kind: 'emoji';\n message?: string;\n }\n | {\n kind: 'uuid';\n message?: string;\n }\n | {\n kind: 'nanoid';\n message?: string;\n }\n | {\n kind: 'cuid';\n message?: string;\n }\n | {\n kind: 'includes';\n value: string;\n position?: number;\n message?: string;\n }\n | {\n kind: 'cuid2';\n message?: string;\n }\n | {\n kind: 'ulid';\n message?: string;\n }\n | {\n kind: 'startsWith';\n value: string;\n message?: string;\n }\n | {\n kind: 'endsWith';\n value: string;\n message?: string;\n }\n | {\n kind: 'regex';\n regex: RegExp;\n message?: string;\n }\n | {\n kind: 'trim';\n message?: string;\n }\n | {\n kind: 'toLowerCase';\n message?: string;\n }\n | {\n kind: 'toUpperCase';\n message?: string;\n }\n | {\n kind: 'datetime';\n offset: boolean;\n local: boolean;\n precision: number | null;\n message?: string;\n }\n | {\n kind: 'date';\n message?: string;\n }\n | {\n kind: 'time';\n precision: number | null;\n message?: string;\n }\n | {\n kind: 'duration';\n message?: string;\n }\n | {\n kind: 'ip';\n version?: IpVersion;\n message?: string;\n }\n | {\n kind: 'base64';\n message?: string;\n };\ninterface ZodStringDef extends ZodTypeDef {\n checks: ZodStringCheck[];\n typeName: ZodFirstPartyTypeKind.ZodString;\n coerce: boolean;\n}\ndeclare function datetimeRegex(args: { precision?: number | null; offset?: boolean; local?: boolean }): RegExp;\ndeclare class ZodString extends ZodType<string, ZodStringDef, string> {\n _parse(input: ParseInput): ParseReturnType<string>;\n protected _regex(\n regex: RegExp,\n validation: StringValidation,\n message?: errorUtil.ErrMessage,\n ): ZodEffects<this, string, string>;\n _addCheck(check: ZodStringCheck): ZodString;\n email(message?: errorUtil.ErrMessage): ZodString;\n url(message?: errorUtil.ErrMessage): ZodString;\n emoji(message?: errorUtil.ErrMessage): ZodString;\n uuid(message?: errorUtil.ErrMessage): ZodString;\n nanoid(message?: errorUtil.ErrMessage): ZodString;\n cuid(message?: errorUtil.ErrMessage): ZodString;\n cuid2(message?: errorUtil.ErrMessage): ZodString;\n ulid(message?: errorUtil.ErrMessage): ZodString;\n base64(message?: errorUtil.ErrMessage): ZodString;\n ip(\n options?:\n | string\n | {\n version?: 'v4' | 'v6';\n message?: string;\n },\n ): ZodString;\n datetime(\n options?:\n | string\n | {\n message?: string | undefined;\n precision?: number | null;\n offset?: boolean;\n local?: boolean;\n },\n ): ZodString;\n date(message?: string): ZodString;\n time(\n options?:\n | string\n | {\n message?: string | undefined;\n precision?: number | null;\n },\n ): ZodString;\n duration(message?: errorUtil.ErrMessage): ZodString;\n regex(regex: RegExp, message?: errorUtil.ErrMessage): ZodString;\n includes(\n value: string,\n options?: {\n message?: string;\n position?: number;\n },\n ): ZodString;\n startsWith(value: string, message?: errorUtil.ErrMessage): ZodString;\n endsWith(value: string, message?: errorUtil.ErrMessage): ZodString;\n min(minLength: number, message?: errorUtil.ErrMessage): ZodString;\n max(maxLength: number, message?: errorUtil.ErrMessage): ZodString;\n length(len: number, message?: errorUtil.ErrMessage): ZodString;\n /**\n * @deprecated Use z.string().min(1) instead.\n * @see {@link ZodString.min}\n */\n nonempty(message?: errorUtil.ErrMessage): ZodString;\n trim(): ZodString;\n toLowerCase(): ZodString;\n toUpperCase(): ZodString;\n get isDatetime(): boolean;\n get isDate(): boolean;\n get isTime(): boolean;\n get isDuration(): boolean;\n get isEmail(): boolean;\n get isURL(): boolean;\n get isEmoji(): boolean;\n get isUUID(): boolean;\n get isNANOID(): boolean;\n get isCUID(): boolean;\n get isCUID2(): boolean;\n get isULID(): boolean;\n get isIP(): boolean;\n get isBase64(): boolean;\n get minLength(): number | null;\n get maxLength(): number | null;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: true | undefined;\n })\n | undefined,\n ) => ZodString;\n}\ndeclare type ZodNumberCheck =\n | {\n kind: 'min';\n value: number;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'max';\n value: number;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'int';\n message?: string;\n }\n | {\n kind: 'multipleOf';\n value: number;\n message?: string;\n }\n | {\n kind: 'finite';\n message?: string;\n };\ninterface ZodNumberDef extends ZodTypeDef {\n checks: ZodNumberCheck[];\n typeName: ZodFirstPartyTypeKind.ZodNumber;\n coerce: boolean;\n}\ndeclare class ZodNumber extends ZodType<number, ZodNumberDef, number> {\n _parse(input: ParseInput): ParseReturnType<number>;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodNumber;\n gte(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n min: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;\n gt(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n lte(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n max: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;\n lt(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n protected setLimit(kind: 'min' | 'max', value: number, inclusive: boolean, message?: string): ZodNumber;\n _addCheck(check: ZodNumberCheck): ZodNumber;\n int(message?: errorUtil.ErrMessage): ZodNumber;\n positive(message?: errorUtil.ErrMessage): ZodNumber;\n negative(message?: errorUtil.ErrMessage): ZodNumber;\n nonpositive(message?: errorUtil.ErrMessage): ZodNumber;\n nonnegative(message?: errorUtil.ErrMessage): ZodNumber;\n multipleOf(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n step: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;\n finite(message?: errorUtil.ErrMessage): ZodNumber;\n safe(message?: errorUtil.ErrMessage): ZodNumber;\n get minValue(): number | null;\n get maxValue(): number | null;\n get isInt(): boolean;\n get isFinite(): boolean;\n}\ndeclare type ZodBigIntCheck =\n | {\n kind: 'min';\n value: bigint;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'max';\n value: bigint;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'multipleOf';\n value: bigint;\n message?: string;\n };\ninterface ZodBigIntDef extends ZodTypeDef {\n checks: ZodBigIntCheck[];\n typeName: ZodFirstPartyTypeKind.ZodBigInt;\n coerce: boolean;\n}\ndeclare class ZodBigInt extends ZodType<bigint, ZodBigIntDef, bigint> {\n _parse(input: ParseInput): ParseReturnType<bigint>;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBigInt;\n gte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n min: (value: bigint, message?: errorUtil.ErrMessage | undefined) => ZodBigInt;\n gt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n lte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n max: (value: bigint, message?: errorUtil.ErrMessage | undefined) => ZodBigInt;\n lt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n protected setLimit(kind: 'min' | 'max', value: bigint, inclusive: boolean, message?: string): ZodBigInt;\n _addCheck(check: ZodBigIntCheck): ZodBigInt;\n positive(message?: errorUtil.ErrMessage): ZodBigInt;\n negative(message?: errorUtil.ErrMessage): ZodBigInt;\n nonpositive(message?: errorUtil.ErrMessage): ZodBigInt;\n nonnegative(message?: errorUtil.ErrMessage): ZodBigInt;\n multipleOf(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n get minValue(): bigint | null;\n get maxValue(): bigint | null;\n}\ninterface ZodBooleanDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodBoolean;\n coerce: boolean;\n}\ndeclare class ZodBoolean extends ZodType<boolean, ZodBooleanDef, boolean> {\n _parse(input: ParseInput): ParseReturnType<boolean>;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBoolean;\n}\ndeclare type ZodDateCheck =\n | {\n kind: 'min';\n value: number;\n message?: string;\n }\n | {\n kind: 'max';\n value: number;\n message?: string;\n };\ninterface ZodDateDef extends ZodTypeDef {\n checks: ZodDateCheck[];\n coerce: boolean;\n typeName: ZodFirstPartyTypeKind.ZodDate;\n}\ndeclare class ZodDate extends ZodType<Date, ZodDateDef, Date> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n _addCheck(check: ZodDateCheck): ZodDate;\n min(minDate: Date, message?: errorUtil.ErrMessage): ZodDate;\n max(maxDate: Date, message?: errorUtil.ErrMessage): ZodDate;\n get minDate(): Date | null;\n get maxDate(): Date | null;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodDate;\n}\ninterface ZodSymbolDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodSymbol;\n}\ndeclare class ZodSymbol extends ZodType<symbol, ZodSymbolDef, symbol> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodSymbol;\n}\ninterface ZodUndefinedDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodUndefined;\n}\ndeclare class ZodUndefined extends ZodType<undefined, ZodUndefinedDef, undefined> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n params?: RawCreateParams;\n static create: (params?: RawCreateParams) => ZodUndefined;\n}\ninterface ZodNullDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodNull;\n}\ndeclare class ZodNull extends ZodType<null, ZodNullDef, null> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodNull;\n}\ninterface ZodAnyDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodAny;\n}\ndeclare class ZodAny extends ZodType<any, ZodAnyDef, any> {\n _any: true;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodAny;\n}\ninterface ZodUnknownDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodUnknown;\n}\ndeclare class ZodUnknown extends ZodType<unknown, ZodUnknownDef, unknown> {\n _unknown: true;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodUnknown;\n}\ninterface ZodNeverDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodNever;\n}\ndeclare class ZodNever extends ZodType<never, ZodNeverDef, never> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodNever;\n}\ninterface ZodVoidDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodVoid;\n}\ndeclare class ZodVoid extends ZodType<void, ZodVoidDef, void> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodVoid;\n}\ninterface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n type: T;\n typeName: ZodFirstPartyTypeKind.ZodArray;\n exactLength: {\n value: number;\n message?: string;\n } | null;\n minLength: {\n value: number;\n message?: string;\n } | null;\n maxLength: {\n value: number;\n message?: string;\n } | null;\n}\ndeclare type ArrayCardinality = 'many' | 'atleastone';\ndeclare type arrayOutputType<\n T extends ZodTypeAny,\n Cardinality extends ArrayCardinality = 'many',\n> = Cardinality extends 'atleastone' ? [T['_output'], ...T['_output'][]] : T['_output'][];\ndeclare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> extends ZodType<\n arrayOutputType<T, Cardinality>,\n ZodArrayDef<T>,\n Cardinality extends 'atleastone' ? [T['_input'], ...T['_input'][]] : T['_input'][]\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get element(): T;\n min(minLength: number, message?: errorUtil.ErrMessage): this;\n max(maxLength: number, message?: errorUtil.ErrMessage): this;\n length(len: number, message?: errorUtil.ErrMessage): this;\n nonempty(message?: errorUtil.ErrMessage): ZodArray<T, 'atleastone'>;\n static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodArray<T_1, 'many'>;\n}\ndeclare type ZodNonEmptyArray<T extends ZodTypeAny> = ZodArray<T, 'atleastone'>;\ndeclare type UnknownKeysParam = 'passthrough' | 'strict' | 'strip';\ninterface ZodObjectDef<\n T extends ZodRawShape = ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n> extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodObject;\n shape: () => T;\n catchall: Catchall;\n unknownKeys: UnknownKeys;\n}\ndeclare type mergeTypes<A, B> = {\n [k in keyof A | keyof B]: k extends keyof B ? B[k] : k extends keyof A ? A[k] : never;\n};\ndeclare type objectOutputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectUtil.flatten<objectUtil.addQuestionMarks<baseObjectOutputType<Shape>>> &\n CatchallOutput<Catchall> &\n PassthroughType<UnknownKeys>;\ndeclare type baseObjectOutputType<Shape extends ZodRawShape> = {\n [k in keyof Shape]: Shape[k]['_output'];\n};\ndeclare type objectInputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectUtil.flatten<baseObjectInputType<Shape>> & CatchallInput<Catchall> & PassthroughType<UnknownKeys>;\ndeclare type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{\n [k in keyof Shape]: Shape[k]['_input'];\n}>;\ndeclare type CatchallOutput<T extends ZodType> = ZodType extends T\n ? unknown\n : {\n [k: string]: T['_output'];\n };\ndeclare type CatchallInput<T extends ZodType> = ZodType extends T\n ? unknown\n : {\n [k: string]: T['_input'];\n };\ndeclare type PassthroughType<T extends UnknownKeysParam> = T extends 'passthrough'\n ? {\n [k: string]: unknown;\n }\n : unknown;\ndeclare type deoptional<T extends ZodTypeAny> =\n T extends ZodOptional<infer U> ? deoptional<U> : T extends ZodNullable<infer U> ? ZodNullable<deoptional<U>> : T;\ndeclare type SomeZodObject = ZodObject<ZodRawShape, UnknownKeysParam, ZodTypeAny>;\ndeclare type noUnrecognized<Obj extends object, Shape extends object> = {\n [k in keyof Obj]: k extends keyof Shape ? Obj[k] : never;\n};\ndeclare class ZodObject<\n T extends ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n Output = objectOutputType<T, Catchall, UnknownKeys>,\n Input = objectInputType<T, Catchall, UnknownKeys>,\n> extends ZodType<Output, ZodObjectDef<T, UnknownKeys, Catchall>, Input> {\n private _cached;\n _getCached(): {\n shape: T;\n keys: string[];\n };\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get shape(): T;\n strict(message?: errorUtil.ErrMessage): ZodObject<T, 'strict', Catchall>;\n strip(): ZodObject<T, 'strip', Catchall>;\n passthrough(): ZodObject<T, 'passthrough', Catchall>;\n /**\n * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.\n * If you want to pass through unknown properties, use `.passthrough()` instead.\n */\n nonstrict: () => ZodObject<T, 'passthrough', Catchall>;\n extend<Augmentation extends ZodRawShape>(\n augmentation: Augmentation,\n ): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;\n /**\n * @deprecated Use `.extend` instead\n * */\n augment: <Augmentation extends ZodRawShape>(\n augmentation: Augmentation,\n ) => ZodObject<\n objectUtil.extendShape<T, Augmentation>,\n UnknownKeys,\n Catchall,\n objectOutputType<objectUtil.extendShape<T, Augmentation>, Catchall, UnknownKeys>,\n objectInputType<objectUtil.extendShape<T, Augmentation>, Catchall, UnknownKeys>\n >;\n /**\n * Prior to zod@1.0.12 there was a bug in the\n * inferred type of merged objects. Please\n * upgrade if you are experiencing issues.\n */\n merge<Incoming extends AnyZodObject, Augmentation extends Incoming['shape']>(\n merging: Incoming,\n ): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming['_def']['unknownKeys'], Incoming['_def']['catchall']>;\n setKey<Key extends string, Schema extends ZodTypeAny>(\n key: Key,\n schema: Schema,\n ): ZodObject<\n T & {\n [k in Key]: Schema;\n },\n UnknownKeys,\n Catchall\n >;\n catchall<Index extends ZodTypeAny>(index: Index): ZodObject<T, UnknownKeys, Index>;\n pick<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;\n omit<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;\n /**\n * @deprecated\n */\n deepPartial(): partialUtil.DeepPartial<this>;\n partial(): ZodObject<\n {\n [k in keyof T]: ZodOptional<T[k]>;\n },\n UnknownKeys,\n Catchall\n >;\n partial<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(\n mask: Mask,\n ): ZodObject<\n objectUtil.noNever<{\n [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k];\n }>,\n UnknownKeys,\n Catchall\n >;\n required(): ZodObject<\n {\n [k in keyof T]: deoptional<T[k]>;\n },\n UnknownKeys,\n Catchall\n >;\n required<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(\n mask: Mask,\n ): ZodObject<\n objectUtil.noNever<{\n [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k];\n }>,\n UnknownKeys,\n Catchall\n >;\n keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;\n static create: <T_1 extends ZodRawShape>(\n shape: T_1,\n params?: RawCreateParams,\n ) => ZodObject<\n T_1,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T_1>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1] }\n >;\n static strictCreate: <T_1 extends ZodRawShape>(\n shape: T_1,\n params?: RawCreateParams,\n ) => ZodObject<\n T_1,\n 'strict',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T_1>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1] }\n >;\n static lazycreate: <T_1 extends ZodRawShape>(\n shape: () => T_1,\n params?: RawCreateParams,\n ) => ZodObject<\n T_1,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T_1>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1] }\n >;\n}\ndeclare type AnyZodObject = ZodObject<any, any, any>;\ndeclare type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;\ninterface ZodUnionDef<\n T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>,\n> extends ZodTypeDef {\n options: T;\n typeName: ZodFirstPartyTypeKind.ZodUnion;\n}\ndeclare class ZodUnion<T extends ZodUnionOptions> extends ZodType<\n T[number]['_output'],\n ZodUnionDef<T>,\n T[number]['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get options(): T;\n static create: <T_1 extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(\n types: T_1,\n params?: RawCreateParams,\n ) => ZodUnion<T_1>;\n}\ndeclare type ZodDiscriminatedUnionOption<Discriminator extends string> = ZodObject<\n {\n [key in Discriminator]: ZodTypeAny;\n } & ZodRawShape,\n UnknownKeysParam,\n ZodTypeAny\n>;\ninterface ZodDiscriminatedUnionDef<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[],\n> extends ZodTypeDef {\n discriminator: Discriminator;\n options: Options;\n optionsMap: Map<Primitive, ZodDiscriminatedUnionOption<any>>;\n typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion;\n}\ndeclare class ZodDiscriminatedUnion<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<Discriminator>[],\n> extends ZodType<output<Options[number]>, ZodDiscriminatedUnionDef<Discriminator, Options>, input<Options[number]>> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get discriminator(): Discriminator;\n get options(): Options;\n get optionsMap(): Map<Primitive, ZodDiscriminatedUnionOption<any>>;\n /**\n * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.\n * However, it only allows a union of objects, all of which need to share a discriminator property. This property must\n * have a different value for each object in the union.\n * @param discriminator the name of the discriminator property\n * @param types an array of object schemas\n * @param params\n */\n static create<\n Discriminator extends string,\n Types extends [ZodDiscriminatedUnionOption<Discriminator>, ...ZodDiscriminatedUnionOption<Discriminator>[]],\n >(\n discriminator: Discriminator,\n options: Types,\n params?: RawCreateParams,\n ): ZodDiscriminatedUnion<Discriminator, Types>;\n}\ninterface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n left: T;\n right: U;\n typeName: ZodFirstPartyTypeKind.ZodIntersection;\n}\ndeclare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends ZodType<\n T['_output'] & U['_output'],\n ZodIntersectionDef<T, U>,\n T['_input'] & U['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny, U_1 extends ZodTypeAny>(\n left: T_1,\n right: U_1,\n params?: RawCreateParams,\n ) => ZodIntersection<T_1, U_1>;\n}\ndeclare type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];\ndeclare type AssertArray<T> = T extends any[] ? T : never;\ndeclare type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{\n [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]['_output'] : never;\n}>;\ndeclare type OutputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = Rest extends ZodTypeAny ? [...OutputTypeOfTuple<T>, ...Rest['_output'][]] : OutputTypeOfTuple<T>;\ndeclare type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{\n [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]['_input'] : never;\n}>;\ndeclare type InputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = Rest extends ZodTypeAny ? [...InputTypeOfTuple<T>, ...Rest['_input'][]] : InputTypeOfTuple<T>;\ninterface ZodTupleDef<\n T extends ZodTupleItems | [] = ZodTupleItems,\n Rest extends ZodTypeAny | null = null,\n> extends ZodTypeDef {\n items: T;\n rest: Rest;\n typeName: ZodFirstPartyTypeKind.ZodTuple;\n}\ndeclare type AnyZodTuple = ZodTuple<[ZodTypeAny, ...ZodTypeAny[]] | [], ZodTypeAny | null>;\ndeclare class ZodTuple<\n T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]],\n Rest extends ZodTypeAny | null = null,\n> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get items(): T;\n rest<Rest extends ZodTypeAny>(rest: Rest): ZodTuple<T, Rest>;\n static create: <T_1 extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(\n schemas: T_1,\n params?: RawCreateParams,\n ) => ZodTuple<T_1, null>;\n}\ninterface ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n valueType: Value;\n keyType: Key;\n typeName: ZodFirstPartyTypeKind.ZodRecord;\n}\ndeclare type KeySchema = ZodType<string | number | symbol, any, any>;\ndeclare type RecordType<K extends string | number | symbol, V> = [string] extends [K]\n ? Record<K, V>\n : [number] extends [K]\n ? Record<K, V>\n : [symbol] extends [K]\n ? Record<K, V>\n : [BRAND<string | number | symbol>] extends [K]\n ? Record<K, V>\n : Partial<Record<K, V>>;\ndeclare class ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<\n RecordType<Key['_output'], Value['_output']>,\n ZodRecordDef<Key, Value>,\n RecordType<Key['_input'], Value['_input']>\n> {\n get keySchema(): Key;\n get valueSchema(): Value;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get element(): Value;\n static create<Value extends ZodTypeAny>(valueType: Value, params?: RawCreateParams): ZodRecord<ZodString, Value>;\n static create<Keys extends KeySchema, Value extends ZodTypeAny>(\n keySchema: Keys,\n valueType: Value,\n params?: RawCreateParams,\n ): ZodRecord<Keys, Value>;\n}\ninterface ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n valueType: Value;\n keyType: Key;\n typeName: ZodFirstPartyTypeKind.ZodMap;\n}\ndeclare class ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<\n Map<Key['_output'], Value['_output']>,\n ZodMapDef<Key, Value>,\n Map<Key['_input'], Value['_input']>\n> {\n get keySchema(): Key;\n get valueSchema(): Value;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <Key_1 extends ZodTypeAny = ZodTypeAny, Value_1 extends ZodTypeAny = ZodTypeAny>(\n keyType: Key_1,\n valueType: Value_1,\n params?: RawCreateParams,\n ) => ZodMap<Key_1, Value_1>;\n}\ninterface ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n valueType: Value;\n typeName: ZodFirstPartyTypeKind.ZodSet;\n minSize: {\n value: number;\n message?: string;\n } | null;\n maxSize: {\n value: number;\n message?: string;\n } | null;\n}\ndeclare class ZodSet<Value extends ZodTypeAny = ZodTypeAny> extends ZodType<\n Set<Value['_output']>,\n ZodSetDef<Value>,\n Set<Value['_input']>\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n min(minSize: number, message?: errorUtil.ErrMessage): this;\n max(maxSize: number, message?: errorUtil.ErrMessage): this;\n size(size: number, message?: errorUtil.ErrMessage): this;\n nonempty(message?: errorUtil.ErrMessage): ZodSet<Value>;\n static create: <Value_1 extends ZodTypeAny = ZodTypeAny>(\n valueType: Value_1,\n params?: RawCreateParams,\n ) => ZodSet<Value_1>;\n}\ninterface ZodFunctionDef<\n Args extends ZodTuple<any, any> = ZodTuple<any, any>,\n Returns extends ZodTypeAny = ZodTypeAny,\n> extends ZodTypeDef {\n args: Args;\n returns: Returns;\n typeName: ZodFirstPartyTypeKind.ZodFunction;\n}\ndeclare type OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> =\n Args['_input'] extends Array<any> ? (...args: Args['_input']) => Returns['_output'] : never;\ndeclare type InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> =\n Args['_output'] extends Array<any> ? (...args: Args['_output']) => Returns['_input'] : never;\ndeclare class ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> extends ZodType<\n OuterTypeOfFunction<Args, Returns>,\n ZodFunctionDef<Args, Returns>,\n InnerTypeOfFunction<Args, Returns>\n> {\n _parse(input: ParseInput): ParseReturnType<any>;\n parameters(): Args;\n returnType(): Returns;\n args<Items extends Parameters<(typeof ZodTuple)['create']>[0]>(\n ...items: Items\n ): ZodFunction<ZodTuple<Items, ZodUnknown>, Returns>;\n returns<NewReturnType extends ZodType<any, any, any>>(returnType: NewReturnType): ZodFunction<Args, NewReturnType>;\n implement<F extends InnerTypeOfFunction<Args, Returns>>(\n func: F,\n ): ReturnType<F> extends Returns['_output']\n ? (...args: Args['_input']) => ReturnType<F>\n : OuterTypeOfFunction<Args, Returns>;\n strictImplement(func: InnerTypeOfFunction<Args, Returns>): InnerTypeOfFunction<Args, Returns>;\n validate: <F extends InnerTypeOfFunction<Args, Returns>>(\n func: F,\n ) => ReturnType<F> extends Returns['_output']\n ? (...args: Args['_input']) => ReturnType<F>\n : OuterTypeOfFunction<Args, Returns>;\n static create(): ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>;\n static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>>(args: T): ZodFunction<T, ZodUnknown>;\n static create<T extends AnyZodTuple, U extends ZodTypeAny>(args: T, returns: U): ZodFunction<T, U>;\n static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>, U extends ZodTypeAny = ZodUnknown>(\n args: T,\n returns: U,\n params?: RawCreateParams,\n ): ZodFunction<T, U>;\n}\ninterface ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n getter: () => T;\n typeName: ZodFirstPartyTypeKind.ZodLazy;\n}\ndeclare class ZodLazy<T extends ZodTypeAny> extends ZodType<output<T>, ZodLazyDef<T>, input<T>> {\n get schema(): T;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny>(getter: () => T_1, params?: RawCreateParams) => ZodLazy<T_1>;\n}\ninterface ZodLiteralDef<T = any> extends ZodTypeDef {\n value: T;\n typeName: ZodFirstPartyTypeKind.ZodLiteral;\n}\ndeclare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>, T> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get value(): T;\n static create: <T_1 extends Primitive>(value: T_1, params?: RawCreateParams) => ZodLiteral<T_1>;\n}\ndeclare type ArrayKeys = keyof any[];\ndeclare type Indices<T> = Exclude<keyof T, ArrayKeys>;\ndeclare type EnumValues<T extends string = string> = readonly [T, ...T[]];\ndeclare type Values<T extends EnumValues> = {\n [k in T[number]]: k;\n};\ninterface ZodEnumDef<T extends EnumValues = EnumValues> extends ZodTypeDef {\n values: T;\n typeName: ZodFirstPartyTypeKind.ZodEnum;\n}\ndeclare type Writeable<T> = {\n -readonly [P in keyof T]: T[P];\n};\ndeclare type FilterEnum<Values, ToExclude> = Values extends []\n ? []\n : Values extends [infer Head, ...infer Rest]\n ? Head extends ToExclude\n ? FilterEnum<Rest, ToExclude>\n : [Head, ...FilterEnum<Rest, ToExclude>]\n : never;\ndeclare type typecast<A, T> = A extends T ? A : never;\ndeclare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(\n values: T,\n params?: RawCreateParams,\n): ZodEnum<Writeable<T>>;\ndeclare function createZodEnum<U extends string, T extends [U, ...U[]]>(\n values: T,\n params?: RawCreateParams,\n): ZodEnum<T>;\ndeclare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T>, T[number]> {\n #private;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get options(): T;\n get enum(): Values<T>;\n get Values(): Values<T>;\n get Enum(): Values<T>;\n extract<ToExtract extends readonly [T[number], ...T[number][]]>(\n values: ToExtract,\n newDef?: RawCreateParams,\n ): ZodEnum<Writeable<ToExtract>>;\n exclude<ToExclude extends readonly [T[number], ...T[number][]]>(\n values: ToExclude,\n newDef?: RawCreateParams,\n ): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>;\n static create: typeof createZodEnum;\n}\ninterface ZodNativeEnumDef<T extends EnumLike = EnumLike> extends ZodTypeDef {\n values: T;\n typeName: ZodFirstPartyTypeKind.ZodNativeEnum;\n}\ndeclare type EnumLike = {\n [k: string]: string | number;\n [nu: number]: string;\n};\ndeclare class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T], ZodNativeEnumDef<T>, T[keyof T]> {\n #private;\n _parse(input: ParseInput): ParseReturnType<T[keyof T]>;\n get enum(): T;\n static create: <T_1 extends EnumLike>(values: T_1, params?: RawCreateParams) => ZodNativeEnum<T_1>;\n}\ninterface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n type: T;\n typeName: ZodFirstPartyTypeKind.ZodPromise;\n}\ndeclare class ZodPromise<T extends ZodTypeAny> extends ZodType<\n Promise<T['_output']>,\n ZodPromiseDef<T>,\n Promise<T['_input']>\n> {\n unwrap(): T;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodPromise<T_1>;\n}\ndeclare type Refinement<T> = (arg: T, ctx: RefinementCtx) => any;\ndeclare type SuperRefinement<T> = (arg: T, ctx: RefinementCtx) => void | Promise<void>;\ndeclare type RefinementEffect<T> = {\n type: 'refinement';\n refinement: (arg: T, ctx: RefinementCtx) => any;\n};\ndeclare type TransformEffect<T> = {\n type: 'transform';\n transform: (arg: T, ctx: RefinementCtx) => any;\n};\ndeclare type PreprocessEffect<T> = {\n type: 'preprocess';\n transform: (arg: T, ctx: RefinementCtx) => any;\n};\ndeclare type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T>;\ninterface ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n schema: T;\n typeName: ZodFirstPartyTypeKind.ZodEffects;\n effect: Effect<any>;\n}\ndeclare class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> extends ZodType<\n Output,\n ZodEffectsDef<T>,\n Input\n> {\n innerType(): T;\n sourceType(): T;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <I extends ZodTypeAny>(\n schema: I,\n effect: Effect<I['_output']>,\n params?: RawCreateParams,\n ) => ZodEffects<I, I['_output'], input<I>>;\n static createWithPreprocess: <I extends ZodTypeAny>(\n preprocess: (arg: unknown, ctx: RefinementCtx) => unknown,\n schema: I,\n params?: RawCreateParams,\n ) => ZodEffects<I, I['_output'], unknown>;\n}\n\ninterface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n typeName: ZodFirstPartyTypeKind.ZodOptional;\n}\ndeclare type ZodOptionalType<T extends ZodTypeAny> = ZodOptional<T>;\ndeclare class ZodOptional<T extends ZodTypeAny> extends ZodType<\n T['_output'] | undefined,\n ZodOptionalDef<T>,\n T['_input'] | undefined\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n unwrap(): T;\n static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodOptional<T_1>;\n}\ninterface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n typeName: ZodFirstPartyTypeKind.ZodNullable;\n}\ndeclare type ZodNullableType<T extends ZodTypeAny> = ZodNullable<T>;\ndeclare class ZodNullable<T extends ZodTypeAny> extends ZodType<\n T['_output'] | null,\n ZodNullableDef<T>,\n T['_input'] | null\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n unwrap(): T;\n static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodNullable<T_1>;\n}\ninterface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n defaultValue: () => util.noUndefined<T['_input']>;\n typeName: ZodFirstPartyTypeKind.ZodDefault;\n}\ndeclare class ZodDefault<T extends ZodTypeAny> extends ZodType<\n util.noUndefined<T['_output']>,\n ZodDefaultDef<T>,\n T['_input'] | undefined\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n removeDefault(): T;\n static create: <T_1 extends ZodTypeAny>(\n type: T_1,\n params: {\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n default: T_1['_input'] | (() => util.noUndefined<T_1['_input']>);\n },\n ) => ZodDefault<T_1>;\n}\ninterface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n catchValue: (ctx: { error: ZodError; input: unknown }) => T['_input'];\n typeName: ZodFirstPartyTypeKind.ZodCatch;\n}\ndeclare class ZodCatch<T extends ZodTypeAny> extends ZodType<T['_output'], ZodCatchDef<T>, unknown> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n removeCatch(): T;\n static create: <T_1 extends ZodTypeAny>(\n type: T_1,\n params: {\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n catch: T_1['_output'] | (() => T_1['_output']);\n },\n ) => ZodCatch<T_1>;\n}\ninterface ZodNaNDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodNaN;\n}\ndeclare class ZodNaN extends ZodType<number, ZodNaNDef, number> {\n _parse(input: ParseInput): ParseReturnType<any>;\n static create: (params?: RawCreateParams) => ZodNaN;\n}\ninterface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {\n type: T;\n typeName: ZodFirstPartyTypeKind.ZodBranded;\n}\ndeclare const BRAND: unique symbol;\ndeclare type BRAND<T extends string | number | symbol> = {\n [BRAND]: {\n [k in T]: true;\n };\n};\ndeclare class ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> extends ZodType<\n T['_output'] & BRAND<B>,\n ZodBrandedDef<T>,\n T['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<any>;\n unwrap(): T;\n}\ninterface ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodTypeDef {\n in: A;\n out: B;\n typeName: ZodFirstPartyTypeKind.ZodPipeline;\n}\ndeclare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodType<\n B['_output'],\n ZodPipelineDef<A, B>,\n A['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<any>;\n static create<A extends ZodTypeAny, B extends ZodTypeAny>(a: A, b: B): ZodPipeline<A, B>;\n}\ndeclare type BuiltIn =\n | (((...args: any[]) => any) | (new (...args: any[]) => any))\n | {\n readonly [Symbol.toStringTag]: string;\n }\n | Date\n | Error\n | Generator\n | Promise<unknown>\n | RegExp;\ndeclare type MakeReadonly<T> =\n T extends Map<infer K, infer V>\n ? ReadonlyMap<K, V>\n : T extends Set<infer V>\n ? ReadonlySet<V>\n : T extends [infer Head, ...infer Tail]\n ? readonly [Head, ...Tail]\n : T extends Array<infer V>\n ? ReadonlyArray<V>\n : T extends BuiltIn\n ? T\n : Readonly<T>;\ninterface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n typeName: ZodFirstPartyTypeKind.ZodReadonly;\n}\ndeclare class ZodReadonly<T extends ZodTypeAny> extends ZodType<\n MakeReadonly<T['_output']>,\n ZodReadonlyDef<T>,\n MakeReadonly<T['_input']>\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>;\n unwrap(): T;\n}\ndeclare type CustomParams = CustomErrorParams & {\n fatal?: boolean;\n};\ndeclare function custom<T>(\n check?: (data: any) => any,\n params?: string | CustomParams | ((input: any) => CustomParams),\n /**\n * @deprecated\n *\n * Pass `fatal` into the params object instead:\n *\n * ```ts\n * z.string().custom((val) => val.length > 5, { fatal: false })\n * ```\n *\n */\n fatal?: boolean,\n): ZodType<T, ZodTypeDef, T>;\n\ndeclare const late: {\n object: <T extends ZodRawShape>(\n shape: () => T,\n params?: RawCreateParams,\n ) => ZodObject<\n T,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1] }\n >;\n};\ndeclare enum ZodFirstPartyTypeKind {\n ZodString = 'ZodString',\n ZodNumber = 'ZodNumber',\n ZodNaN = 'ZodNaN',\n ZodBigInt = 'ZodBigInt',\n ZodBoolean = 'ZodBoolean',\n ZodDate = 'ZodDate',\n ZodSymbol = 'ZodSymbol',\n ZodUndefined = 'ZodUndefined',\n ZodNull = 'ZodNull',\n ZodAny = 'ZodAny',\n ZodUnknown = 'ZodUnknown',\n ZodNever = 'ZodNever',\n ZodVoid = 'ZodVoid',\n ZodArray = 'ZodArray',\n ZodObject = 'ZodObject',\n ZodUnion = 'ZodUnion',\n ZodDiscriminatedUnion = 'ZodDiscriminatedUnion',\n ZodIntersection = 'ZodIntersection',\n ZodTuple = 'ZodTuple',\n ZodRecord = 'ZodRecord',\n ZodMap = 'ZodMap',\n ZodSet = 'ZodSet',\n ZodFunction = 'ZodFunction',\n ZodLazy = 'ZodLazy',\n ZodLiteral = 'ZodLiteral',\n ZodEnum = 'ZodEnum',\n ZodEffects = 'ZodEffects',\n ZodNativeEnum = 'ZodNativeEnum',\n ZodOptional = 'ZodOptional',\n ZodNullable = 'ZodNullable',\n ZodDefault = 'ZodDefault',\n ZodCatch = 'ZodCatch',\n ZodPromise = 'ZodPromise',\n ZodBranded = 'ZodBranded',\n ZodPipeline = 'ZodPipeline',\n ZodReadonly = 'ZodReadonly',\n}\ndeclare type ZodFirstPartySchemaTypes =\n | ZodString\n | ZodNumber\n | ZodNaN\n | ZodBigInt\n | ZodBoolean\n | ZodDate\n | ZodUndefined\n | ZodNull\n | ZodAny\n | ZodUnknown\n | ZodNever\n | ZodVoid\n | ZodArray<any, any>\n | ZodObject<any, any, any>\n | ZodUnion<any>\n | ZodDiscriminatedUnion<any, any>\n | ZodIntersection<any, any>\n | ZodTuple<any, any>\n | ZodRecord<any, any>\n | ZodMap<any>\n | ZodSet<any>\n | ZodFunction<any, any>\n | ZodLazy<any>\n | ZodLiteral<any>\n | ZodEnum<any>\n | ZodEffects<any, any, any>\n | ZodNativeEnum<any>\n | ZodOptional<any>\n | ZodNullable<any>\n | ZodDefault<any>\n | ZodCatch<any>\n | ZodPromise<any>\n | ZodBranded<any, any>\n | ZodPipeline<any, any>\n | ZodReadonly<any>\n | ZodSymbol;\ndeclare abstract class Class {\n constructor(..._: any[]);\n}\ndeclare const instanceOfType: <T extends typeof Class>(\n cls: T,\n params?: CustomParams,\n) => ZodType<InstanceType<T>, ZodTypeDef, InstanceType<T>>;\ndeclare const stringType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: true | undefined;\n })\n | undefined,\n) => ZodString;\ndeclare const numberType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodNumber;\ndeclare const nanType: (params?: RawCreateParams) => ZodNaN;\ndeclare const bigIntType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodBigInt;\ndeclare const booleanType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodBoolean;\ndeclare const dateType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodDate;\ndeclare const symbolType: (params?: RawCreateParams) => ZodSymbol;\ndeclare const undefinedType: (params?: RawCreateParams) => ZodUndefined;\ndeclare const nullType: (params?: RawCreateParams) => ZodNull;\ndeclare const anyType: (params?: RawCreateParams) => ZodAny;\ndeclare const unknownType: (params?: RawCreateParams) => ZodUnknown;\ndeclare const neverType: (params?: RawCreateParams) => ZodNever;\ndeclare const voidType: (params?: RawCreateParams) => ZodVoid;\ndeclare const arrayType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodArray<T, 'many'>;\ndeclare const objectType: <T extends ZodRawShape>(\n shape: T,\n params?: RawCreateParams,\n) => ZodObject<\n T,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1] }\n>;\ndeclare const strictObjectType: <T extends ZodRawShape>(\n shape: T,\n params?: RawCreateParams,\n) => ZodObject<\n T,\n 'strict',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1] }\n>;\ndeclare const unionType: <T extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(\n types: T,\n params?: RawCreateParams,\n) => ZodUnion<T>;\ndeclare const discriminatedUnionType: typeof ZodDiscriminatedUnion.create;\ndeclare const intersectionType: <T extends ZodTypeAny, U extends ZodTypeAny>(\n left: T,\n right: U,\n params?: RawCreateParams,\n) => ZodIntersection<T, U>;\ndeclare const tupleType: <T extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(\n schemas: T,\n params?: RawCreateParams,\n) => ZodTuple<T, null>;\ndeclare const recordType: typeof ZodRecord.create;\ndeclare const mapType: <Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny>(\n keyType: Key,\n valueType: Value,\n params?: RawCreateParams,\n) => ZodMap<Key, Value>;\ndeclare const setType: <Value extends ZodTypeAny = ZodTypeAny>(\n valueType: Value,\n params?: RawCreateParams,\n) => ZodSet<Value>;\ndeclare const functionType: typeof ZodFunction.create;\ndeclare const lazyType: <T extends ZodTypeAny>(getter: () => T, params?: RawCreateParams) => ZodLazy<T>;\ndeclare const literalType: <T extends Primitive>(value: T, params?: RawCreateParams) => ZodLiteral<T>;\ndeclare const enumType: typeof createZodEnum;\ndeclare const nativeEnumType: <T extends EnumLike>(values: T, params?: RawCreateParams) => ZodNativeEnum<T>;\ndeclare const promiseType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodPromise<T>;\ndeclare const effectsType: <I extends ZodTypeAny>(\n schema: I,\n effect: Effect<I['_output']>,\n params?: RawCreateParams,\n) => ZodEffects<I, I['_output'], input<I>>;\ndeclare const optionalType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodOptional<T>;\ndeclare const nullableType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodNullable<T>;\ndeclare const preprocessType: <I extends ZodTypeAny>(\n preprocess: (arg: unknown, ctx: RefinementCtx) => unknown,\n schema: I,\n params?: RawCreateParams,\n) => ZodEffects<I, I['_output'], unknown>;\ndeclare const pipelineType: typeof ZodPipeline.create;\ndeclare const ostring: () => ZodOptional<ZodString>;\ndeclare const onumber: () => ZodOptional<ZodNumber>;\ndeclare const oboolean: () => ZodOptional<ZodBoolean>;\ndeclare const coerce: {\n string: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: true | undefined;\n })\n | undefined,\n ) => ZodString;\n number: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodNumber;\n boolean: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBoolean;\n bigint: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBigInt;\n date: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodDate;\n};\n\ndeclare const NEVER: never;\n\n//# sourceMappingURL=external.d.ts.map\n\ndeclare const z_setErrorMap: typeof setErrorMap;\ndeclare const z_getErrorMap: typeof getErrorMap;\ndeclare const z_makeIssue: typeof makeIssue;\ntype z_ParseParams = ParseParams;\ntype z_ParsePathComponent = ParsePathComponent;\ntype z_ParsePath = ParsePath;\ndeclare const z_EMPTY_PATH: typeof EMPTY_PATH;\ntype z_ParseContext = ParseContext;\ntype z_ParseInput = ParseInput;\ndeclare const z_addIssueToContext: typeof addIssueToContext;\ntype z_ObjectPair = ObjectPair;\ntype z_ParseStatus = ParseStatus;\ndeclare const z_ParseStatus: typeof ParseStatus;\ntype z_ParseResult = ParseResult;\ndeclare const z_INVALID: typeof INVALID;\ndeclare const z_DIRTY: typeof DIRTY;\ndeclare const z_OK: typeof OK;\ntype z_SyncParseReturnType<T = any> = SyncParseReturnType<T>;\ntype z_AsyncParseReturnType<T> = AsyncParseReturnType<T>;\ntype z_ParseReturnType<T> = ParseReturnType<T>;\ndeclare const z_isAborted: typeof isAborted;\ndeclare const z_isDirty: typeof isDirty;\ndeclare const z_isValid: typeof isValid;\ndeclare const z_isAsync: typeof isAsync;\ntype z_Primitive = Primitive;\ntype z_Scalars = Scalars;\ndeclare const z_util: typeof util;\ndeclare const z_objectUtil: typeof objectUtil;\ntype z_ZodParsedType = ZodParsedType;\ndeclare const z_getParsedType: typeof getParsedType;\ndeclare const z_oboolean: typeof oboolean;\ndeclare const z_onumber: typeof onumber;\ndeclare const z_ostring: typeof ostring;\ntype z_RefinementCtx = RefinementCtx;\ntype z_ZodRawShape = ZodRawShape;\ntype z_ZodTypeAny = ZodTypeAny;\ntype z_TypeOf<T extends ZodType<any, any, any>> = TypeOf<T>;\ntype z_input<T extends ZodType<any, any, any>> = input<T>;\ntype z_output<T extends ZodType<any, any, any>> = output<T>;\ntype z_CustomErrorParams = CustomErrorParams;\ntype z_ZodTypeDef = ZodTypeDef;\ntype z_RawCreateParams = RawCreateParams;\ntype z_ProcessedCreateParams = ProcessedCreateParams;\ntype z_SafeParseSuccess<Output> = SafeParseSuccess<Output>;\ntype z_SafeParseError<Input> = SafeParseError<Input>;\ntype z_SafeParseReturnType<Input, Output> = SafeParseReturnType<Input, Output>;\ntype z_ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> = ZodType<Output, Def, Input>;\ndeclare const z_ZodType: typeof ZodType;\ntype z_IpVersion = IpVersion;\ntype z_ZodStringCheck = ZodStringCheck;\ntype z_ZodStringDef = ZodStringDef;\ndeclare const z_datetimeRegex: typeof datetimeRegex;\ntype z_ZodString = ZodString;\ndeclare const z_ZodString: typeof ZodString;\ntype z_ZodNumberCheck = ZodNumberCheck;\ntype z_ZodNumberDef = ZodNumberDef;\ntype z_ZodNumber = ZodNumber;\ndeclare const z_ZodNumber: typeof ZodNumber;\ntype z_ZodBigIntCheck = ZodBigIntCheck;\ntype z_ZodBigIntDef = ZodBigIntDef;\ntype z_ZodBigInt = ZodBigInt;\ndeclare const z_ZodBigInt: typeof ZodBigInt;\ntype z_ZodBooleanDef = ZodBooleanDef;\ntype z_ZodBoolean = ZodBoolean;\ndeclare const z_ZodBoolean: typeof ZodBoolean;\ntype z_ZodDateCheck = ZodDateCheck;\ntype z_ZodDateDef = ZodDateDef;\ntype z_ZodDate = ZodDate;\ndeclare const z_ZodDate: typeof ZodDate;\ntype z_ZodSymbolDef = ZodSymbolDef;\ntype z_ZodSymbol = ZodSymbol;\ndeclare const z_ZodSymbol: typeof ZodSymbol;\ntype z_ZodUndefinedDef = ZodUndefinedDef;\ntype z_ZodUndefined = ZodUndefined;\ndeclare const z_ZodUndefined: typeof ZodUndefined;\ntype z_ZodNullDef = ZodNullDef;\ntype z_ZodNull = ZodNull;\ndeclare const z_ZodNull: typeof ZodNull;\ntype z_ZodAnyDef = ZodAnyDef;\ntype z_ZodAny = ZodAny;\ndeclare const z_ZodAny: typeof ZodAny;\ntype z_ZodUnknownDef = ZodUnknownDef;\ntype z_ZodUnknown = ZodUnknown;\ndeclare const z_ZodUnknown: typeof ZodUnknown;\ntype z_ZodNeverDef = ZodNeverDef;\ntype z_ZodNever = ZodNever;\ndeclare const z_ZodNever: typeof ZodNever;\ntype z_ZodVoidDef = ZodVoidDef;\ntype z_ZodVoid = ZodVoid;\ndeclare const z_ZodVoid: typeof ZodVoid;\ntype z_ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> = ZodArrayDef<T>;\ntype z_ArrayCardinality = ArrayCardinality;\ntype z_arrayOutputType<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> = arrayOutputType<\n T,\n Cardinality\n>;\ntype z_ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> = ZodArray<T, Cardinality>;\ndeclare const z_ZodArray: typeof ZodArray;\ntype z_ZodNonEmptyArray<T extends ZodTypeAny> = ZodNonEmptyArray<T>;\ntype z_UnknownKeysParam = UnknownKeysParam;\ntype z_ZodObjectDef<\n T extends ZodRawShape = ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n> = ZodObjectDef<T, UnknownKeys, Catchall>;\ntype z_mergeTypes<A, B> = mergeTypes<A, B>;\ntype z_objectOutputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectOutputType<Shape, Catchall, UnknownKeys>;\ntype z_baseObjectOutputType<Shape extends ZodRawShape> = baseObjectOutputType<Shape>;\ntype z_objectInputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectInputType<Shape, Catchall, UnknownKeys>;\ntype z_baseObjectInputType<Shape extends ZodRawShape> = baseObjectInputType<Shape>;\ntype z_CatchallOutput<T extends ZodType> = CatchallOutput<T>;\ntype z_CatchallInput<T extends ZodType> = CatchallInput<T>;\ntype z_PassthroughType<T extends UnknownKeysParam> = PassthroughType<T>;\ntype z_deoptional<T extends ZodTypeAny> = deoptional<T>;\ntype z_SomeZodObject = SomeZodObject;\ntype z_noUnrecognized<Obj extends object, Shape extends object> = noUnrecognized<Obj, Shape>;\ntype z_ZodObject<\n T extends ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n Output = objectOutputType<T, Catchall, UnknownKeys>,\n Input = objectInputType<T, Catchall, UnknownKeys>,\n> = ZodObject<T, UnknownKeys, Catchall, Output, Input>;\ndeclare const z_ZodObject: typeof ZodObject;\ntype z_AnyZodObject = AnyZodObject;\ntype z_ZodUnionOptions = ZodUnionOptions;\ntype z_ZodUnionDef<T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>> = ZodUnionDef<T>;\ntype z_ZodUnion<T extends ZodUnionOptions> = ZodUnion<T>;\ndeclare const z_ZodUnion: typeof ZodUnion;\ntype z_ZodDiscriminatedUnionOption<Discriminator extends string> = ZodDiscriminatedUnionOption<Discriminator>;\ntype z_ZodDiscriminatedUnionDef<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[],\n> = ZodDiscriminatedUnionDef<Discriminator, Options>;\ntype z_ZodDiscriminatedUnion<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<Discriminator>[],\n> = ZodDiscriminatedUnion<Discriminator, Options>;\ndeclare const z_ZodDiscriminatedUnion: typeof ZodDiscriminatedUnion;\ntype z_ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> = ZodIntersectionDef<\n T,\n U\n>;\ntype z_ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> = ZodIntersection<T, U>;\ndeclare const z_ZodIntersection: typeof ZodIntersection;\ntype z_ZodTupleItems = ZodTupleItems;\ntype z_AssertArray<T> = AssertArray<T>;\ntype z_OutputTypeOfTuple<T extends ZodTupleItems | []> = OutputTypeOfTuple<T>;\ntype z_OutputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = OutputTypeOfTupleWithRest<T, Rest>;\ntype z_InputTypeOfTuple<T extends ZodTupleItems | []> = InputTypeOfTuple<T>;\ntype z_InputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = InputTypeOfTupleWithRest<T, Rest>;\ntype z_ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> = ZodTupleDef<\n T,\n Rest\n>;\ntype z_AnyZodTuple = AnyZodTuple;\ntype z_ZodTuple<\n T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]],\n Rest extends ZodTypeAny | null = null,\n> = ZodTuple<T, Rest>;\ndeclare const z_ZodTuple: typeof ZodTuple;\ntype z_ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> = ZodRecordDef<\n Key,\n Value\n>;\ntype z_KeySchema = KeySchema;\ntype z_RecordType<K extends string | number | symbol, V> = RecordType<K, V>;\ntype z_ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> = ZodRecord<Key, Value>;\ndeclare const z_ZodRecord: typeof ZodRecord;\ntype z_ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> = ZodMapDef<Key, Value>;\ntype z_ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> = ZodMap<Key, Value>;\ndeclare const z_ZodMap: typeof ZodMap;\ntype z_ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> = ZodSetDef<Value>;\ntype z_ZodSet<Value extends ZodTypeAny = ZodTypeAny> = ZodSet<Value>;\ndeclare const z_ZodSet: typeof ZodSet;\ntype z_ZodFunctionDef<\n Args extends ZodTuple<any, any> = ZodTuple<any, any>,\n Returns extends ZodTypeAny = ZodTypeAny,\n> = ZodFunctionDef<Args, Returns>;\ntype z_OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = OuterTypeOfFunction<\n Args,\n Returns\n>;\ntype z_InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = InnerTypeOfFunction<\n Args,\n Returns\n>;\ntype z_ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = ZodFunction<Args, Returns>;\ndeclare const z_ZodFunction: typeof ZodFunction;\ntype z_ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> = ZodLazyDef<T>;\ntype z_ZodLazy<T extends ZodTypeAny> = ZodLazy<T>;\ndeclare const z_ZodLazy: typeof ZodLazy;\ntype z_ZodLiteralDef<T = any> = ZodLiteralDef<T>;\ntype z_ZodLiteral<T> = ZodLiteral<T>;\ndeclare const z_ZodLiteral: typeof ZodLiteral;\ntype z_ArrayKeys = ArrayKeys;\ntype z_Indices<T> = Indices<T>;\ntype z_EnumValues<T extends string = string> = EnumValues<T>;\ntype z_Values<T extends EnumValues> = Values<T>;\ntype z_ZodEnumDef<T extends EnumValues = EnumValues> = ZodEnumDef<T>;\ntype z_Writeable<T> = Writeable<T>;\ntype z_FilterEnum<Values, ToExclude> = FilterEnum<Values, ToExclude>;\ntype z_typecast<A, T> = typecast<A, T>;\ntype z_ZodEnum<T extends [string, ...string[]]> = ZodEnum<T>;\ndeclare const z_ZodEnum: typeof ZodEnum;\ntype z_ZodNativeEnumDef<T extends EnumLike = EnumLike> = ZodNativeEnumDef<T>;\ntype z_EnumLike = EnumLike;\ntype z_ZodNativeEnum<T extends EnumLike> = ZodNativeEnum<T>;\ndeclare const z_ZodNativeEnum: typeof ZodNativeEnum;\ntype z_ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> = ZodPromiseDef<T>;\ntype z_ZodPromise<T extends ZodTypeAny> = ZodPromise<T>;\ndeclare const z_ZodPromise: typeof ZodPromise;\ntype z_Refinement<T> = Refinement<T>;\ntype z_SuperRefinement<T> = SuperRefinement<T>;\ntype z_RefinementEffect<T> = RefinementEffect<T>;\ntype z_TransformEffect<T> = TransformEffect<T>;\ntype z_PreprocessEffect<T> = PreprocessEffect<T>;\ntype z_Effect<T> = Effect<T>;\ntype z_ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> = ZodEffectsDef<T>;\ntype z_ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> = ZodEffects<T, Output, Input>;\ndeclare const z_ZodEffects: typeof ZodEffects;\ntype z_ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> = ZodOptionalDef<T>;\ntype z_ZodOptionalType<T extends ZodTypeAny> = ZodOptionalType<T>;\ntype z_ZodOptional<T extends ZodTypeAny> = ZodOptional<T>;\ndeclare const z_ZodOptional: typeof ZodOptional;\ntype z_ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> = ZodNullableDef<T>;\ntype z_ZodNullableType<T extends ZodTypeAny> = ZodNullableType<T>;\ntype z_ZodNullable<T extends ZodTypeAny> = ZodNullable<T>;\ndeclare const z_ZodNullable: typeof ZodNullable;\ntype z_ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> = ZodDefaultDef<T>;\ntype z_ZodDefault<T extends ZodTypeAny> = ZodDefault<T>;\ndeclare const z_ZodDefault: typeof ZodDefault;\ntype z_ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> = ZodCatchDef<T>;\ntype z_ZodCatch<T extends ZodTypeAny> = ZodCatch<T>;\ndeclare const z_ZodCatch: typeof ZodCatch;\ntype z_ZodNaNDef = ZodNaNDef;\ntype z_ZodNaN = ZodNaN;\ndeclare const z_ZodNaN: typeof ZodNaN;\ntype z_ZodBrandedDef<T extends ZodTypeAny> = ZodBrandedDef<T>;\ntype z_BRAND<T extends string | number | symbol> = BRAND<T>;\ntype z_ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> = ZodBranded<T, B>;\ndeclare const z_ZodBranded: typeof ZodBranded;\ntype z_ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> = ZodPipelineDef<A, B>;\ntype z_ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> = ZodPipeline<A, B>;\ndeclare const z_ZodPipeline: typeof ZodPipeline;\ntype z_ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> = ZodReadonlyDef<T>;\ntype z_ZodReadonly<T extends ZodTypeAny> = ZodReadonly<T>;\ndeclare const z_ZodReadonly: typeof ZodReadonly;\ndeclare const z_custom: typeof custom;\ndeclare const z_late: typeof late;\ntype z_ZodFirstPartyTypeKind = ZodFirstPartyTypeKind;\ndeclare const z_ZodFirstPartyTypeKind: typeof ZodFirstPartyTypeKind;\ntype z_ZodFirstPartySchemaTypes = ZodFirstPartySchemaTypes;\ndeclare const z_coerce: typeof coerce;\ndeclare const z_NEVER: typeof NEVER;\ntype z_inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = inferFlattenedErrors<T, U>;\ntype z_typeToFlattenedError<T, U = string> = typeToFlattenedError<T, U>;\ntype z_ZodIssueCode = ZodIssueCode;\ntype z_ZodIssueBase = ZodIssueBase;\ntype z_ZodInvalidTypeIssue = ZodInvalidTypeIssue;\ntype z_ZodInvalidLiteralIssue = ZodInvalidLiteralIssue;\ntype z_ZodUnrecognizedKeysIssue = ZodUnrecognizedKeysIssue;\ntype z_ZodInvalidUnionIssue = ZodInvalidUnionIssue;\ntype z_ZodInvalidUnionDiscriminatorIssue = ZodInvalidUnionDiscriminatorIssue;\ntype z_ZodInvalidEnumValueIssue = ZodInvalidEnumValueIssue;\ntype z_ZodInvalidArgumentsIssue = ZodInvalidArgumentsIssue;\ntype z_ZodInvalidReturnTypeIssue = ZodInvalidReturnTypeIssue;\ntype z_ZodInvalidDateIssue = ZodInvalidDateIssue;\ntype z_StringValidation = StringValidation;\ntype z_ZodInvalidStringIssue = ZodInvalidStringIssue;\ntype z_ZodTooSmallIssue = ZodTooSmallIssue;\ntype z_ZodTooBigIssue = ZodTooBigIssue;\ntype z_ZodInvalidIntersectionTypesIssue = ZodInvalidIntersectionTypesIssue;\ntype z_ZodNotMultipleOfIssue = ZodNotMultipleOfIssue;\ntype z_ZodNotFiniteIssue = ZodNotFiniteIssue;\ntype z_ZodCustomIssue = ZodCustomIssue;\ntype z_DenormalizedError = DenormalizedError;\ntype z_ZodIssueOptionalMessage = ZodIssueOptionalMessage;\ntype z_ZodIssue = ZodIssue;\ndeclare const z_quotelessJson: typeof quotelessJson;\ntype z_ZodFormattedError<T, U = string> = ZodFormattedError<T, U>;\ntype z_inferFormattedError<T extends ZodType<any, any, any>, U = string> = inferFormattedError<T, U>;\ntype z_ZodError<T = any> = ZodError<T>;\ndeclare const z_ZodError: typeof ZodError;\ntype z_IssueData = IssueData;\ntype z_ErrorMapCtx = ErrorMapCtx;\ntype z_ZodErrorMap = ZodErrorMap;\ndeclare namespace z {\n export {\n errorMap as defaultErrorMap,\n z_setErrorMap as setErrorMap,\n z_getErrorMap as getErrorMap,\n z_makeIssue as makeIssue,\n type z_ParseParams as ParseParams,\n type z_ParsePathComponent as ParsePathComponent,\n type z_ParsePath as ParsePath,\n z_EMPTY_PATH as EMPTY_PATH,\n type z_ParseContext as ParseContext,\n type z_ParseInput as ParseInput,\n z_addIssueToContext as addIssueToContext,\n type z_ObjectPair as ObjectPair,\n z_ParseStatus as ParseStatus,\n type z_ParseResult as ParseResult,\n z_INVALID as INVALID,\n z_DIRTY as DIRTY,\n z_OK as OK,\n type z_SyncParseReturnType as SyncParseReturnType,\n type z_AsyncParseReturnType as AsyncParseReturnType,\n type z_ParseReturnType as ParseReturnType,\n z_isAborted as isAborted,\n z_isDirty as isDirty,\n z_isValid as isValid,\n z_isAsync as isAsync,\n type z_Primitive as Primitive,\n type z_Scalars as Scalars,\n z_util as util,\n z_objectUtil as objectUtil,\n type z_ZodParsedType as ZodParsedType,\n z_getParsedType as getParsedType,\n type TypeOf as infer,\n ZodEffects as ZodTransformer,\n ZodType as Schema,\n ZodType as ZodSchema,\n anyType as any,\n arrayType as array,\n bigIntType as bigint,\n booleanType as boolean,\n dateType as date,\n discriminatedUnionType as discriminatedUnion,\n effectsType as effect,\n enumType as enum,\n functionType as function,\n instanceOfType as instanceof,\n intersectionType as intersection,\n lazyType as lazy,\n literalType as literal,\n mapType as map,\n nanType as nan,\n nativeEnumType as nativeEnum,\n neverType as never,\n nullType as null,\n nullableType as nullable,\n numberType as number,\n objectType as object,\n z_oboolean as oboolean,\n z_onumber as onumber,\n optionalType as optional,\n z_ostring as ostring,\n pipelineType as pipeline,\n preprocessType as preprocess,\n promiseType as promise,\n recordType as record,\n setType as set,\n strictObjectType as strictObject,\n stringType as string,\n symbolType as symbol,\n effectsType as transformer,\n tupleType as tuple,\n undefinedType as undefined,\n unionType as union,\n unknownType as unknown,\n voidType as void,\n type z_RefinementCtx as RefinementCtx,\n type z_ZodRawShape as ZodRawShape,\n type z_ZodTypeAny as ZodTypeAny,\n type z_TypeOf as TypeOf,\n type z_input as input,\n type z_output as output,\n type z_CustomErrorParams as CustomErrorParams,\n type z_ZodTypeDef as ZodTypeDef,\n type z_RawCreateParams as RawCreateParams,\n type z_ProcessedCreateParams as ProcessedCreateParams,\n type z_SafeParseSuccess as SafeParseSuccess,\n type z_SafeParseError as SafeParseError,\n type z_SafeParseReturnType as SafeParseReturnType,\n z_ZodType as ZodType,\n type z_IpVersion as IpVersion,\n type z_ZodStringCheck as ZodStringCheck,\n type z_ZodStringDef as ZodStringDef,\n z_datetimeRegex as datetimeRegex,\n z_ZodString as ZodString,\n type z_ZodNumberCheck as ZodNumberCheck,\n type z_ZodNumberDef as ZodNumberDef,\n z_ZodNumber as ZodNumber,\n type z_ZodBigIntCheck as ZodBigIntCheck,\n type z_ZodBigIntDef as ZodBigIntDef,\n z_ZodBigInt as ZodBigInt,\n type z_ZodBooleanDef as ZodBooleanDef,\n z_ZodBoolean as ZodBoolean,\n type z_ZodDateCheck as ZodDateCheck,\n type z_ZodDateDef as ZodDateDef,\n z_ZodDate as ZodDate,\n type z_ZodSymbolDef as ZodSymbolDef,\n z_ZodSymbol as ZodSymbol,\n type z_ZodUndefinedDef as ZodUndefinedDef,\n z_ZodUndefined as ZodUndefined,\n type z_ZodNullDef as ZodNullDef,\n z_ZodNull as ZodNull,\n type z_ZodAnyDef as ZodAnyDef,\n z_ZodAny as ZodAny,\n type z_ZodUnknownDef as ZodUnknownDef,\n z_ZodUnknown as ZodUnknown,\n type z_ZodNeverDef as ZodNeverDef,\n z_ZodNever as ZodNever,\n type z_ZodVoidDef as ZodVoidDef,\n z_ZodVoid as ZodVoid,\n type z_ZodArrayDef as ZodArrayDef,\n type z_ArrayCardinality as ArrayCardinality,\n type z_arrayOutputType as arrayOutputType,\n z_ZodArray as ZodArray,\n type z_ZodNonEmptyArray as ZodNonEmptyArray,\n type z_UnknownKeysParam as UnknownKeysParam,\n type z_ZodObjectDef as ZodObjectDef,\n type z_mergeTypes as mergeTypes,\n type z_objectOutputType as objectOutputType,\n type z_baseObjectOutputType as baseObjectOutputType,\n type z_objectInputType as objectInputType,\n type z_baseObjectInputType as baseObjectInputType,\n type z_CatchallOutput as CatchallOutput,\n type z_CatchallInput as CatchallInput,\n type z_PassthroughType as PassthroughType,\n type z_deoptional as deoptional,\n type z_SomeZodObject as SomeZodObject,\n type z_noUnrecognized as noUnrecognized,\n z_ZodObject as ZodObject,\n type z_AnyZodObject as AnyZodObject,\n type z_ZodUnionOptions as ZodUnionOptions,\n type z_ZodUnionDef as ZodUnionDef,\n z_ZodUnion as ZodUnion,\n type z_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption,\n type z_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef,\n z_ZodDiscriminatedUnion as ZodDiscriminatedUnion,\n type z_ZodIntersectionDef as ZodIntersectionDef,\n z_ZodIntersection as ZodIntersection,\n type z_ZodTupleItems as ZodTupleItems,\n type z_AssertArray as AssertArray,\n type z_OutputTypeOfTuple as OutputTypeOfTuple,\n type z_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest,\n type z_InputTypeOfTuple as InputTypeOfTuple,\n type z_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest,\n type z_ZodTupleDef as ZodTupleDef,\n type z_AnyZodTuple as AnyZodTuple,\n z_ZodTuple as ZodTuple,\n type z_ZodRecordDef as ZodRecordDef,\n type z_KeySchema as KeySchema,\n type z_RecordType as RecordType,\n z_ZodRecord as ZodRecord,\n type z_ZodMapDef as ZodMapDef,\n z_ZodMap as ZodMap,\n type z_ZodSetDef as ZodSetDef,\n z_ZodSet as ZodSet,\n type z_ZodFunctionDef as ZodFunctionDef,\n type z_OuterTypeOfFunction as OuterTypeOfFunction,\n type z_InnerTypeOfFunction as InnerTypeOfFunction,\n z_ZodFunction as ZodFunction,\n type z_ZodLazyDef as ZodLazyDef,\n z_ZodLazy as ZodLazy,\n type z_ZodLiteralDef as ZodLiteralDef,\n z_ZodLiteral as ZodLiteral,\n type z_ArrayKeys as ArrayKeys,\n type z_Indices as Indices,\n type z_EnumValues as EnumValues,\n type z_Values as Values,\n type z_ZodEnumDef as ZodEnumDef,\n type z_Writeable as Writeable,\n type z_FilterEnum as FilterEnum,\n type z_typecast as typecast,\n z_ZodEnum as ZodEnum,\n type z_ZodNativeEnumDef as ZodNativeEnumDef,\n type z_EnumLike as EnumLike,\n z_ZodNativeEnum as ZodNativeEnum,\n type z_ZodPromiseDef as ZodPromiseDef,\n z_ZodPromise as ZodPromise,\n type z_Refinement as Refinement,\n type z_SuperRefinement as SuperRefinement,\n type z_RefinementEffect as RefinementEffect,\n type z_TransformEffect as TransformEffect,\n type z_PreprocessEffect as PreprocessEffect,\n type z_Effect as Effect,\n type z_ZodEffectsDef as ZodEffectsDef,\n z_ZodEffects as ZodEffects,\n type z_ZodOptionalDef as ZodOptionalDef,\n type z_ZodOptionalType as ZodOptionalType,\n z_ZodOptional as ZodOptional,\n type z_ZodNullableDef as ZodNullableDef,\n type z_ZodNullableType as ZodNullableType,\n z_ZodNullable as ZodNullable,\n type z_ZodDefaultDef as ZodDefaultDef,\n z_ZodDefault as ZodDefault,\n type z_ZodCatchDef as ZodCatchDef,\n z_ZodCatch as ZodCatch,\n type z_ZodNaNDef as ZodNaNDef,\n z_ZodNaN as ZodNaN,\n type z_ZodBrandedDef as ZodBrandedDef,\n type z_BRAND as BRAND,\n z_ZodBranded as ZodBranded,\n type z_ZodPipelineDef as ZodPipelineDef,\n z_ZodPipeline as ZodPipeline,\n type z_ZodReadonlyDef as ZodReadonlyDef,\n z_ZodReadonly as ZodReadonly,\n z_custom as custom,\n z_late as late,\n z_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind,\n type z_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes,\n z_coerce as coerce,\n z_NEVER as NEVER,\n type z_inferFlattenedErrors as inferFlattenedErrors,\n type z_typeToFlattenedError as typeToFlattenedError,\n type z_ZodIssueCode as ZodIssueCode,\n type z_ZodIssueBase as ZodIssueBase,\n type z_ZodInvalidTypeIssue as ZodInvalidTypeIssue,\n type z_ZodInvalidLiteralIssue as ZodInvalidLiteralIssue,\n type z_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue,\n type z_ZodInvalidUnionIssue as ZodInvalidUnionIssue,\n type z_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue,\n type z_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue,\n type z_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue,\n type z_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue,\n type z_ZodInvalidDateIssue as ZodInvalidDateIssue,\n type z_StringValidation as StringValidation,\n type z_ZodInvalidStringIssue as ZodInvalidStringIssue,\n type z_ZodTooSmallIssue as ZodTooSmallIssue,\n type z_ZodTooBigIssue as ZodTooBigIssue,\n type z_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue,\n type z_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue,\n type z_ZodNotFiniteIssue as ZodNotFiniteIssue,\n type z_ZodCustomIssue as ZodCustomIssue,\n type z_DenormalizedError as DenormalizedError,\n type z_ZodIssueOptionalMessage as ZodIssueOptionalMessage,\n type z_ZodIssue as ZodIssue,\n z_quotelessJson as quotelessJson,\n type z_ZodFormattedError as ZodFormattedError,\n type z_inferFormattedError as inferFormattedError,\n z_ZodError as ZodError,\n type z_IssueData as IssueData,\n type z_ErrorMapCtx as ErrorMapCtx,\n type z_ZodErrorMap as ZodErrorMap,\n };\n}\n\n//# sourceMappingURL=index.d.ts.map\n\nexport {\n type AnyZodObject,\n type AnyZodTuple,\n type ArrayCardinality,\n type ArrayKeys,\n type AssertArray,\n type AsyncParseReturnType,\n BRAND,\n type CatchallInput,\n type CatchallOutput,\n type CustomErrorParams,\n DIRTY,\n type DenormalizedError,\n EMPTY_PATH,\n type Effect,\n type EnumLike,\n type EnumValues,\n type ErrorMapCtx,\n type FilterEnum,\n INVALID,\n type Indices,\n type InnerTypeOfFunction,\n type InputTypeOfTuple,\n type InputTypeOfTupleWithRest,\n type IpVersion,\n type IssueData,\n type KeySchema,\n NEVER,\n OK,\n type ObjectPair,\n type OuterTypeOfFunction,\n type OutputTypeOfTuple,\n type OutputTypeOfTupleWithRest,\n type ParseContext,\n type ParseInput,\n type ParseParams,\n type ParsePath,\n type ParsePathComponent,\n type ParseResult,\n type ParseReturnType,\n ParseStatus,\n type PassthroughType,\n type PreprocessEffect,\n type Primitive,\n type ProcessedCreateParams,\n type RawCreateParams,\n type RecordType,\n type Refinement,\n type RefinementCtx,\n type RefinementEffect,\n type SafeParseError,\n type SafeParseReturnType,\n type SafeParseSuccess,\n type Scalars,\n ZodType as Schema,\n type SomeZodObject,\n type StringValidation,\n type SuperRefinement,\n type SyncParseReturnType,\n type TransformEffect,\n type TypeOf,\n type UnknownKeysParam,\n type Values,\n type Writeable,\n ZodAny,\n type ZodAnyDef,\n ZodArray,\n type ZodArrayDef,\n ZodBigInt,\n type ZodBigIntCheck,\n type ZodBigIntDef,\n ZodBoolean,\n type ZodBooleanDef,\n ZodBranded,\n type ZodBrandedDef,\n ZodCatch,\n type ZodCatchDef,\n type ZodCustomIssue,\n ZodDate,\n type ZodDateCheck,\n type ZodDateDef,\n ZodDefault,\n type ZodDefaultDef,\n ZodDiscriminatedUnion,\n type ZodDiscriminatedUnionDef,\n type ZodDiscriminatedUnionOption,\n ZodEffects,\n type ZodEffectsDef,\n ZodEnum,\n type ZodEnumDef,\n ZodError,\n type ZodErrorMap,\n type ZodFirstPartySchemaTypes,\n ZodFirstPartyTypeKind,\n type ZodFormattedError,\n ZodFunction,\n type ZodFunctionDef,\n ZodIntersection,\n type ZodIntersectionDef,\n type ZodInvalidArgumentsIssue,\n type ZodInvalidDateIssue,\n type ZodInvalidEnumValueIssue,\n type ZodInvalidIntersectionTypesIssue,\n type ZodInvalidLiteralIssue,\n type ZodInvalidReturnTypeIssue,\n type ZodInvalidStringIssue,\n type ZodInvalidTypeIssue,\n type ZodInvalidUnionDiscriminatorIssue,\n type ZodInvalidUnionIssue,\n type ZodIssue,\n type ZodIssueBase,\n ZodIssueCode,\n type ZodIssueOptionalMessage,\n ZodLazy,\n type ZodLazyDef,\n ZodLiteral,\n type ZodLiteralDef,\n ZodMap,\n type ZodMapDef,\n ZodNaN,\n type ZodNaNDef,\n ZodNativeEnum,\n type ZodNativeEnumDef,\n ZodNever,\n type ZodNeverDef,\n type ZodNonEmptyArray,\n type ZodNotFiniteIssue,\n type ZodNotMultipleOfIssue,\n ZodNull,\n type ZodNullDef,\n ZodNullable,\n type ZodNullableDef,\n type ZodNullableType,\n ZodNumber,\n type ZodNumberCheck,\n type ZodNumberDef,\n ZodObject,\n type ZodObjectDef,\n ZodOptional,\n type ZodOptionalDef,\n type ZodOptionalType,\n ZodParsedType,\n ZodPipeline,\n type ZodPipelineDef,\n ZodPromise,\n type ZodPromiseDef,\n type ZodRawShape,\n ZodReadonly,\n type ZodReadonlyDef,\n ZodRecord,\n type ZodRecordDef,\n ZodType as ZodSchema,\n ZodSet,\n type ZodSetDef,\n ZodString,\n type ZodStringCheck,\n type ZodStringDef,\n ZodSymbol,\n type ZodSymbolDef,\n type ZodTooBigIssue,\n type ZodTooSmallIssue,\n ZodEffects as ZodTransformer,\n ZodTuple,\n type ZodTupleDef,\n type ZodTupleItems,\n ZodType,\n type ZodTypeAny,\n type ZodTypeDef,\n ZodUndefined,\n type ZodUndefinedDef,\n ZodUnion,\n type ZodUnionDef,\n type ZodUnionOptions,\n ZodUnknown,\n type ZodUnknownDef,\n type ZodUnrecognizedKeysIssue,\n ZodVoid,\n type ZodVoidDef,\n addIssueToContext,\n anyType as any,\n arrayType as array,\n type arrayOutputType,\n type baseObjectInputType,\n type baseObjectOutputType,\n bigIntType as bigint,\n booleanType as boolean,\n coerce,\n custom,\n dateType as date,\n datetimeRegex,\n z as default,\n errorMap as defaultErrorMap,\n type deoptional,\n discriminatedUnionType as discriminatedUnion,\n effectsType as effect,\n enumType as enum,\n functionType as function,\n getErrorMap,\n getParsedType,\n type TypeOf as infer,\n type inferFlattenedErrors,\n type inferFormattedError,\n type input,\n instanceOfType as instanceof,\n intersectionType as intersection,\n isAborted,\n isAsync,\n isDirty,\n isValid,\n late,\n lazyType as lazy,\n literalType as literal,\n makeIssue,\n mapType as map,\n type mergeTypes,\n nanType as nan,\n nativeEnumType as nativeEnum,\n neverType as never,\n type noUnrecognized,\n nullType as null,\n nullableType as nullable,\n numberType as number,\n objectType as object,\n type objectInputType,\n type objectOutputType,\n objectUtil,\n oboolean,\n onumber,\n optionalType as optional,\n ostring,\n type output,\n pipelineType as pipeline,\n preprocessType as preprocess,\n promiseType as promise,\n quotelessJson,\n recordType as record,\n setType as set,\n setErrorMap,\n strictObjectType as strictObject,\n stringType as string,\n symbolType as symbol,\n effectsType as transformer,\n tupleType as tuple,\n type typeToFlattenedError,\n type typecast,\n undefinedType as undefined,\n unionType as union,\n unknownType as unknown,\n util,\n voidType as void,\n z,\n};\n",
|
|
13022
13026
|
documentationUrl: "https://zod.dev/"
|
|
13023
13027
|
}
|
|
13024
|
-
], og = { globals: { "global.d.ts": ig } }, sg = rg, cg = M.lazy(async () => ({ default: (await Promise.resolve().then(() =>
|
|
13028
|
+
], og = { globals: { "global.d.ts": ig } }, sg = rg, cg = M.lazy(async () => ({ default: (await Promise.resolve().then(() => ky)).Function })), lg = ({ id: e }) => {
|
|
13025
13029
|
let t = fg(e), n = Hm(), r = Bm((e) => e.onFunctionReady), [i, a] = L(), o = I(null), s = I(null);
|
|
13026
13030
|
Zm(e, "monaco", {
|
|
13027
13031
|
serialize: () => o.current?.saveViewState() ?? s.current ?? null,
|
|
@@ -17564,7 +17568,38 @@ var d_ = u_({
|
|
|
17564
17568
|
unrecognized: []
|
|
17565
17569
|
});
|
|
17566
17570
|
}), n;
|
|
17567
|
-
}, dv = (e
|
|
17571
|
+
}, dv = (e) => typeof e == "string" ? e.trim().startsWith("$.") : $_(e) && typeof e.value == "string" ? (e.mode === "expression" || e.mode === "reference") && e.value.trim().startsWith("$.") : !1, fv = (e) => {
|
|
17572
|
+
if (!Array.isArray(e)) return [];
|
|
17573
|
+
let t = [];
|
|
17574
|
+
for (let n of e) {
|
|
17575
|
+
if (!$_(n) || !$_(n.value) || n.value.$call === void 0) continue;
|
|
17576
|
+
let e = $_(n.value.kwargs) ? n.value.kwargs : {}, r = Object.entries(e).filter(([, e]) => dv(e)).map(([e]) => e);
|
|
17577
|
+
r.length > 0 && t.push({
|
|
17578
|
+
rowId: String(n.id ?? ""),
|
|
17579
|
+
rowKey: String(n.key ?? ""),
|
|
17580
|
+
params: r
|
|
17581
|
+
});
|
|
17582
|
+
}
|
|
17583
|
+
return t;
|
|
17584
|
+
}, pv = (e, t) => {
|
|
17585
|
+
let n = new Set((t ?? fv(e)).map((e) => e.rowId));
|
|
17586
|
+
if (n.size === 0) return null;
|
|
17587
|
+
let r = (e) => typeof e == "string" && e.trim().startsWith("$.") ? e.replace(/^\$\./, "") : $_(e) && typeof e.value == "string" && (e.mode === "expression" || e.mode === "reference") && e.value.trim().startsWith("$.") ? {
|
|
17588
|
+
...e,
|
|
17589
|
+
value: String(e.value).replace(/^\$\./, "")
|
|
17590
|
+
} : e, i = !1, a = e.map((e) => {
|
|
17591
|
+
if (!$_(e) || !n.has(String(e?.id ?? ""))) return e;
|
|
17592
|
+
let t = e?.value;
|
|
17593
|
+
return !$_(t) || !$_(t.kwargs) ? e : (i = !0, {
|
|
17594
|
+
...e,
|
|
17595
|
+
value: {
|
|
17596
|
+
...t,
|
|
17597
|
+
kwargs: Object.fromEntries(Object.entries(t.kwargs).map(([e, t]) => [e, r(t)]))
|
|
17598
|
+
}
|
|
17599
|
+
});
|
|
17600
|
+
});
|
|
17601
|
+
return i ? a : null;
|
|
17602
|
+
}, mv = (e, t, n) => {
|
|
17568
17603
|
if (!n || n.mode !== "scoped" || !Array.isArray(e) || !Array.isArray(t) || t.length === 0) return null;
|
|
17569
17604
|
let r = new Map(t.filter((e) => e.missing.length > 0).map((e) => [e.rowId, e]));
|
|
17570
17605
|
if (r.size === 0) return null;
|
|
@@ -17585,9 +17620,9 @@ var d_ = u_({
|
|
|
17585
17620
|
};
|
|
17586
17621
|
});
|
|
17587
17622
|
return i ? a : null;
|
|
17588
|
-
},
|
|
17623
|
+
}, hv = (e) => e && $_(e.parameters) && $_(e.parameters.properties) ? Object.keys(e.parameters.properties) : [], gv = (e, t, n) => {
|
|
17589
17624
|
if (!Array.isArray(e) || e.length === 0) return null;
|
|
17590
|
-
let r =
|
|
17625
|
+
let r = hv(t), i = String(e[0] ?? "").trim();
|
|
17591
17626
|
if (!i) return null;
|
|
17592
17627
|
let a = { ...n ?? {} };
|
|
17593
17628
|
r.forEach((t, n) => {
|
|
@@ -17598,10 +17633,10 @@ var d_ = u_({
|
|
|
17598
17633
|
$call: i,
|
|
17599
17634
|
kwargs: a
|
|
17600
17635
|
};
|
|
17601
|
-
},
|
|
17636
|
+
}, _v = (e, t) => {
|
|
17602
17637
|
let n = (e.fn ?? "").localeCompare(t.fn ?? "");
|
|
17603
17638
|
return n === 0 ? e.key.localeCompare(t.key) : n;
|
|
17604
|
-
},
|
|
17639
|
+
}, vv = (e, t) => {
|
|
17605
17640
|
if (!Array.isArray(e)) return [];
|
|
17606
17641
|
let n = /* @__PURE__ */ new Map();
|
|
17607
17642
|
return e.map((e) => {
|
|
@@ -17616,15 +17651,15 @@ var d_ = u_({
|
|
|
17616
17651
|
seq: t ? r : 1
|
|
17617
17652
|
};
|
|
17618
17653
|
return $_(e) && Array.isArray(e.dependsOn) && (i.dependsOn = e.dependsOn.map(String)), i;
|
|
17619
|
-
}).sort(
|
|
17620
|
-
},
|
|
17654
|
+
}).sort(_v);
|
|
17655
|
+
}, yv = (e) => {
|
|
17621
17656
|
if (!Array.isArray(e)) return [];
|
|
17622
17657
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
17623
17658
|
return e.forEach((e) => {
|
|
17624
17659
|
let r = String(e?.key ?? "").trim();
|
|
17625
17660
|
r && (t.has(r) && n.add(r), t.add(r));
|
|
17626
17661
|
}), [...n];
|
|
17627
|
-
},
|
|
17662
|
+
}, bv = (e) => {
|
|
17628
17663
|
let t = {};
|
|
17629
17664
|
return e.forEach((e) => {
|
|
17630
17665
|
let n = t[e.rowId] ?? {
|
|
@@ -17636,10 +17671,10 @@ var d_ = u_({
|
|
|
17636
17671
|
unrecognized: n.unrecognized + e.unrecognized.length
|
|
17637
17672
|
};
|
|
17638
17673
|
}), t;
|
|
17639
|
-
},
|
|
17674
|
+
}, xv = (e) => typeof e == "object" && e && !Array.isArray(e) && "mode" in e ? e : {
|
|
17640
17675
|
mode: "literal",
|
|
17641
17676
|
value: e
|
|
17642
|
-
},
|
|
17677
|
+
}, Sv = ({ parameterType: e, value: t, onChange: n, disabled: r, placeholder: i, fieldPaths: a }) => {
|
|
17643
17678
|
let o = Z(), s = t ?? {
|
|
17644
17679
|
mode: "literal",
|
|
17645
17680
|
value: void 0
|
|
@@ -17688,7 +17723,7 @@ var d_ = u_({
|
|
|
17688
17723
|
}, {
|
|
17689
17724
|
value: "expression",
|
|
17690
17725
|
label: o("cf.modeExpression")
|
|
17691
|
-
}], [o]), v = /* @__PURE__ */ V(
|
|
17726
|
+
}], [o]), v = /* @__PURE__ */ V(wv, {
|
|
17692
17727
|
parameterType: e,
|
|
17693
17728
|
value: u === "literal" ? c : void 0,
|
|
17694
17729
|
onChange: m,
|
|
@@ -17698,14 +17733,18 @@ var d_ = u_({
|
|
|
17698
17733
|
className: "flex w-full items-center gap-1",
|
|
17699
17734
|
children: [/* @__PURE__ */ V("div", {
|
|
17700
17735
|
className: "min-w-0 flex-1",
|
|
17701
|
-
children: /* @__PURE__ */ V(
|
|
17736
|
+
children: /* @__PURE__ */ V(Hd, {
|
|
17737
|
+
value: u === "expression" ? d : void 0,
|
|
17738
|
+
onChange: h,
|
|
17702
17739
|
disabled: r,
|
|
17703
|
-
className: "font-mono text-xs",
|
|
17704
17740
|
placeholder: i ?? "q.tier / 表达式",
|
|
17705
|
-
|
|
17706
|
-
|
|
17741
|
+
maxRows: 3,
|
|
17742
|
+
noStyle: !0,
|
|
17743
|
+
lint: !0,
|
|
17744
|
+
type: "standard",
|
|
17745
|
+
className: "text-xs"
|
|
17707
17746
|
})
|
|
17708
|
-
}), f && (a?.length ?? 0) > 0 && /* @__PURE__ */ V(
|
|
17747
|
+
}), f && (a?.length ?? 0) > 0 && /* @__PURE__ */ V(Cv, {
|
|
17709
17748
|
disabled: r,
|
|
17710
17749
|
fields: a ?? [],
|
|
17711
17750
|
onPick: g
|
|
@@ -17727,7 +17766,7 @@ var d_ = u_({
|
|
|
17727
17766
|
})
|
|
17728
17767
|
})]
|
|
17729
17768
|
});
|
|
17730
|
-
},
|
|
17769
|
+
}, Cv = ({ disabled: e, fields: t, onPick: n }) => {
|
|
17731
17770
|
let r = Z(), [i, a] = L(0);
|
|
17732
17771
|
return /* @__PURE__ */ V("div", {
|
|
17733
17772
|
className: "w-24 shrink-0",
|
|
@@ -17745,7 +17784,7 @@ var d_ = u_({
|
|
|
17745
17784
|
}))
|
|
17746
17785
|
}, i)
|
|
17747
17786
|
});
|
|
17748
|
-
},
|
|
17787
|
+
}, wv = ({ parameterType: e, value: t, onChange: n, disabled: r, placeholder: i }) => e === "boolean" ? /* @__PURE__ */ V(os, {
|
|
17749
17788
|
checked: t === !0,
|
|
17750
17789
|
disabled: r,
|
|
17751
17790
|
onChange: (e) => n(e)
|
|
@@ -17760,7 +17799,7 @@ var d_ = u_({
|
|
|
17760
17799
|
placeholder: i,
|
|
17761
17800
|
value: typeof t == "string" ? t : t == null ? "" : String(t),
|
|
17762
17801
|
onChange: (e) => n(e.target.value)
|
|
17763
|
-
}),
|
|
17802
|
+
}), Tv = (e, t = 42) => {
|
|
17764
17803
|
let n;
|
|
17765
17804
|
try {
|
|
17766
17805
|
n = typeof e == "string" ? e : JSON.stringify(e) ?? "null";
|
|
@@ -17768,7 +17807,7 @@ var d_ = u_({
|
|
|
17768
17807
|
n = String(e);
|
|
17769
17808
|
}
|
|
17770
17809
|
return n.length > t ? `${n.slice(0, t)}…` : n;
|
|
17771
|
-
},
|
|
17810
|
+
}, Ev = (e) => typeof e == "object" && !!e && !Array.isArray(e) && "error" in e, Dv = ({ instances: e, functionScope: t, disabled: n, fieldPaths: r, driftByInstance: i, duplicateKeys: a, outputsByKey: o, onChange: s }) => {
|
|
17772
17811
|
let c = Z(), [l, u] = L(null), d = t.functions, f = F(() => e.find((e) => e.id === l) ?? e[0] ?? null, [e, l]), p = F(() => d.map((e) => ({
|
|
17773
17812
|
value: e.name,
|
|
17774
17813
|
label: e.name
|
|
@@ -17861,8 +17900,8 @@ var d_ = u_({
|
|
|
17861
17900
|
title: c("cf.lastRunHint"),
|
|
17862
17901
|
children: /* @__PURE__ */ H("span", {
|
|
17863
17902
|
"data-testid": "instance-result-chip",
|
|
17864
|
-
className: `max-w-24 truncate rounded px-1 font-mono text-[10px] ${
|
|
17865
|
-
children: [
|
|
17903
|
+
className: `max-w-24 truncate rounded px-1 font-mono text-[10px] ${Ev(o[e.key]) ? "bg-destructive/10 text-destructive" : "bg-muted/70 text-muted-foreground"}`,
|
|
17904
|
+
children: [Ev(o[e.key]) ? "⚠ " : "", Tv(o[e.key], 24)]
|
|
17866
17905
|
})
|
|
17867
17906
|
}),
|
|
17868
17907
|
!n && /* @__PURE__ */ V("button", {
|
|
@@ -17968,8 +18007,8 @@ var d_ = u_({
|
|
|
17968
18007
|
children: c("cf.lastRunHint")
|
|
17969
18008
|
})]
|
|
17970
18009
|
}), /* @__PURE__ */ V("pre", {
|
|
17971
|
-
className: `max-h-40 overflow-auto rounded-md border px-2.5 py-2 font-mono text-[11px] leading-relaxed ${
|
|
17972
|
-
children:
|
|
18010
|
+
className: `max-h-40 overflow-auto rounded-md border px-2.5 py-2 font-mono text-[11px] leading-relaxed ${Ev(o[f.key]) ? "border-destructive/40 bg-destructive/10 text-destructive" : "border-border bg-muted/40"}`,
|
|
18011
|
+
children: Tv(o[f.key], 2e3)
|
|
17973
18012
|
})]
|
|
17974
18013
|
}),
|
|
17975
18014
|
x.length > 0 && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("div", {
|
|
@@ -17981,7 +18020,7 @@ var d_ = u_({
|
|
|
17981
18020
|
}), /* @__PURE__ */ V("div", {
|
|
17982
18021
|
className: "flex flex-col gap-2.5",
|
|
17983
18022
|
children: x.map((e) => {
|
|
17984
|
-
let t = _.parameters?.properties?.[e], i = typeof t?.type == "string" ? t.type : "string", a =
|
|
18023
|
+
let t = _.parameters?.properties?.[e], i = typeof t?.type == "string" ? t.type : "string", a = xv(f.call.kwargs[e]);
|
|
17985
18024
|
return /* @__PURE__ */ H("div", {
|
|
17986
18025
|
className: "grid grid-cols-[120px_minmax(0,1fr)] items-center gap-2",
|
|
17987
18026
|
children: [/* @__PURE__ */ H("div", {
|
|
@@ -18002,7 +18041,7 @@ var d_ = u_({
|
|
|
18002
18041
|
children: i
|
|
18003
18042
|
})
|
|
18004
18043
|
]
|
|
18005
|
-
}), /* @__PURE__ */ V(
|
|
18044
|
+
}), /* @__PURE__ */ V(Sv, {
|
|
18006
18045
|
parameterType: i,
|
|
18007
18046
|
value: a,
|
|
18008
18047
|
disabled: n,
|
|
@@ -18053,7 +18092,7 @@ var d_ = u_({
|
|
|
18053
18092
|
})
|
|
18054
18093
|
})]
|
|
18055
18094
|
});
|
|
18056
|
-
},
|
|
18095
|
+
}, Ov = ({ id: e, user: t, customFunctions: n }) => {
|
|
18057
18096
|
let i = Hm(), { disabled: a, content: o, inputContent: s, instanceOutputs: c } = $(({ simulate: t, disabled: n, decisionGraph: r }) => ({
|
|
18058
18097
|
disabled: n,
|
|
18059
18098
|
content: (r?.nodes ?? []).find((t) => t.id === e)?.content,
|
|
@@ -18062,9 +18101,9 @@ var d_ = u_({
|
|
|
18062
18101
|
let n = t.trace?.[e]?.output;
|
|
18063
18102
|
return n && typeof n == "object" ? n : void 0;
|
|
18064
18103
|
}).otherwise(() => void 0)
|
|
18065
|
-
})), l = F(() => cv(o?.kind, n), [o?.kind, n]), u = Z(), d = o?.config?.expressions, f = F(() => uv(d, l), [d, l]), p = f.length, m = f.reduce((e, t) => e + t.missing.length, 0), h = f.reduce((e, t) => e + t.unrecognized.length, 0), g = F(() =>
|
|
18104
|
+
})), l = F(() => cv(o?.kind, n), [o?.kind, n]), u = Z(), d = o?.config?.expressions, f = F(() => uv(d, l), [d, l]), p = f.length, m = f.reduce((e, t) => e + t.missing.length, 0), h = f.reduce((e, t) => e + t.unrecognized.length, 0), g = F(() => yv(d), [d]), _ = F(() => vv(d, l), [d, l]), v = F(() => bv(f), [f]), y = F(() => r(s).map((e) => e.path), [s]), b = F(() => fv(d), [d]), x = F(() => b.reduce((e, t) => e + t.params.length, 0), [b]), S = (n) => {
|
|
18066
18105
|
let r = new Map((d ?? []).map((e) => [e?.id, e])), a = (n ?? []).map((e) => {
|
|
18067
|
-
let t = Array.isArray(e?.value) ? e.value[0] : typeof e?.value?.$call == "string" ? e.value.$call : void 0, n = l.functions.find((e) => e?.name === t), i = r.get(e?.id)?.value, a = i && typeof i == "object" && !Array.isArray(i) ? i.kwargs ?? null : null, o =
|
|
18106
|
+
let t = Array.isArray(e?.value) ? e.value[0] : typeof e?.value?.$call == "string" ? e.value.$call : void 0, n = l.functions.find((e) => e?.name === t), i = r.get(e?.id)?.value, a = i && typeof i == "object" && !Array.isArray(i) ? i.kwargs ?? null : null, o = gv(e?.value, n, a);
|
|
18068
18107
|
return o ? {
|
|
18069
18108
|
...e,
|
|
18070
18109
|
value: o
|
|
@@ -18074,7 +18113,7 @@ var d_ = u_({
|
|
|
18074
18113
|
user: t ?? "",
|
|
18075
18114
|
proj: t ?? ""
|
|
18076
18115
|
}, e));
|
|
18077
|
-
},
|
|
18116
|
+
}, C = F(() => (d ?? []).map((e) => {
|
|
18078
18117
|
let t = ov(e?.value), n = l.functions.find((e) => e?.name === t), r = sv(e?.value, n);
|
|
18079
18118
|
return {
|
|
18080
18119
|
id: e?.id ?? "",
|
|
@@ -18085,7 +18124,7 @@ var d_ = u_({
|
|
|
18085
18124
|
}),
|
|
18086
18125
|
...e?.dependsOn ? { dependsOn: e.dependsOn } : {}
|
|
18087
18126
|
};
|
|
18088
|
-
}), [d, l]),
|
|
18127
|
+
}), [d, l]), w = (n) => {
|
|
18089
18128
|
i.updateNode(e, (e) => (e.content.config.expressions = n.map((e) => ({
|
|
18090
18129
|
id: e.id,
|
|
18091
18130
|
key: e.key,
|
|
@@ -18096,21 +18135,21 @@ var d_ = u_({
|
|
|
18096
18135
|
user: t ?? "",
|
|
18097
18136
|
proj: t ?? ""
|
|
18098
18137
|
}, e));
|
|
18099
|
-
}, [
|
|
18100
|
-
|
|
18101
|
-
},
|
|
18102
|
-
if (
|
|
18103
|
-
let e = JSON.parse(
|
|
18138
|
+
}, [T, E] = L("table"), [D, ee] = L(null), [te, O] = L(null), ne = () => {
|
|
18139
|
+
ee(JSON.stringify(d ?? [], null, 2)), O(null), E("code");
|
|
18140
|
+
}, re = () => {
|
|
18141
|
+
if (D !== null) try {
|
|
18142
|
+
let e = JSON.parse(D);
|
|
18104
18143
|
if (!Array.isArray(e)) {
|
|
18105
|
-
|
|
18144
|
+
O("Expected an array");
|
|
18106
18145
|
return;
|
|
18107
18146
|
}
|
|
18108
|
-
|
|
18147
|
+
E("table"), O(null), S(e);
|
|
18109
18148
|
} catch {
|
|
18110
|
-
|
|
18149
|
+
O("Invalid JSON");
|
|
18111
18150
|
}
|
|
18112
|
-
},
|
|
18113
|
-
|
|
18151
|
+
}, ie = () => {
|
|
18152
|
+
E("table"), ee(null), O(null);
|
|
18114
18153
|
};
|
|
18115
18154
|
return /* @__PURE__ */ H("div", {
|
|
18116
18155
|
className: "flex h-full flex-col overflow-hidden",
|
|
@@ -18180,82 +18219,114 @@ var d_ = u_({
|
|
|
18180
18219
|
className: "flex items-center gap-1",
|
|
18181
18220
|
children: [/* @__PURE__ */ V(J, {
|
|
18182
18221
|
size: "small",
|
|
18183
|
-
type:
|
|
18222
|
+
type: T === "table" ? "primary" : "default",
|
|
18184
18223
|
className: "!px-2",
|
|
18185
|
-
onClick: () =>
|
|
18224
|
+
onClick: () => ie(),
|
|
18186
18225
|
children: u("cf.modeTable")
|
|
18187
18226
|
}), /* @__PURE__ */ V(J, {
|
|
18188
18227
|
size: "small",
|
|
18189
|
-
type:
|
|
18228
|
+
type: T === "code" ? "primary" : "default",
|
|
18190
18229
|
className: "!px-2",
|
|
18191
|
-
onClick:
|
|
18230
|
+
onClick: ne,
|
|
18192
18231
|
children: u("cf.modeCode")
|
|
18193
18232
|
})]
|
|
18194
18233
|
})
|
|
18195
18234
|
}),
|
|
18196
|
-
|
|
18235
|
+
T === "code" && /* @__PURE__ */ H("div", {
|
|
18197
18236
|
className: "mx-3 mt-2 flex min-h-[320px] flex-1 flex-col overflow-hidden rounded-md border border-border",
|
|
18198
18237
|
children: [/* @__PURE__ */ V("textarea", {
|
|
18199
18238
|
"data-testid": "function-code-editor",
|
|
18200
18239
|
className: "min-h-0 flex-1 resize-none bg-[var(--card)] p-3 font-mono text-xs text-foreground",
|
|
18201
|
-
value:
|
|
18202
|
-
onChange: (e) =>
|
|
18203
|
-
onBlur:
|
|
18240
|
+
value: D ?? JSON.stringify(d ?? [], null, 2),
|
|
18241
|
+
onChange: (e) => ee(e.target.value),
|
|
18242
|
+
onBlur: re,
|
|
18204
18243
|
disabled: a,
|
|
18205
18244
|
spellCheck: !1
|
|
18206
|
-
}),
|
|
18245
|
+
}), te && /* @__PURE__ */ V("div", {
|
|
18207
18246
|
className: "border-t border-destructive/40 bg-destructive/10 px-3 py-1 text-xs text-destructive",
|
|
18208
|
-
children:
|
|
18247
|
+
children: te
|
|
18209
18248
|
})]
|
|
18210
18249
|
}),
|
|
18211
|
-
|
|
18212
|
-
|
|
18213
|
-
|
|
18214
|
-
|
|
18215
|
-
|
|
18216
|
-
|
|
18217
|
-
|
|
18218
|
-
|
|
18219
|
-
|
|
18220
|
-
|
|
18221
|
-
|
|
18222
|
-
|
|
18223
|
-
|
|
18224
|
-
|
|
18225
|
-
|
|
18226
|
-
|
|
18227
|
-
|
|
18228
|
-
|
|
18229
|
-
|
|
18230
|
-
|
|
18231
|
-
|
|
18232
|
-
|
|
18233
|
-
|
|
18234
|
-
|
|
18235
|
-
|
|
18236
|
-
|
|
18237
|
-
|
|
18238
|
-
|
|
18239
|
-
}
|
|
18240
|
-
|
|
18241
|
-
|
|
18242
|
-
|
|
18243
|
-
|
|
18244
|
-
|
|
18245
|
-
|
|
18246
|
-
|
|
18247
|
-
|
|
18248
|
-
|
|
18249
|
-
|
|
18250
|
-
|
|
18251
|
-
|
|
18252
|
-
|
|
18253
|
-
|
|
18250
|
+
T === "table" && /* @__PURE__ */ H(B, { children: [
|
|
18251
|
+
b.length > 0 && /* @__PURE__ */ H("div", {
|
|
18252
|
+
"data-testid": "dollar-form-band",
|
|
18253
|
+
className: "mx-3 mt-3 flex items-center justify-between gap-2 rounded-md border border-amber-500/40 bg-amber-500/10 px-3 py-1.5 text-xs",
|
|
18254
|
+
children: [/* @__PURE__ */ H("span", {
|
|
18255
|
+
className: "text-amber-700 dark:text-amber-400",
|
|
18256
|
+
children: [
|
|
18257
|
+
u("cf.dollarFormBand"),
|
|
18258
|
+
" · ",
|
|
18259
|
+
b.length,
|
|
18260
|
+
" ",
|
|
18261
|
+
u("cf.argsDriftRows"),
|
|
18262
|
+
" · ",
|
|
18263
|
+
x,
|
|
18264
|
+
" ",
|
|
18265
|
+
u("cf.argsDriftUnrecognized")
|
|
18266
|
+
]
|
|
18267
|
+
}), /* @__PURE__ */ V(J, {
|
|
18268
|
+
size: "small",
|
|
18269
|
+
type: "link",
|
|
18270
|
+
className: "!px-1",
|
|
18271
|
+
disabled: a,
|
|
18272
|
+
"data-testid": "dollar-form-migrate",
|
|
18273
|
+
onClick: () => {
|
|
18274
|
+
let e = pv(d, b);
|
|
18275
|
+
e && S(e);
|
|
18276
|
+
},
|
|
18277
|
+
children: u("cf.dollarFormMigrate")
|
|
18278
|
+
})]
|
|
18279
|
+
}),
|
|
18280
|
+
p > 0 && /* @__PURE__ */ H("div", {
|
|
18281
|
+
"data-testid": "args-drift-band",
|
|
18282
|
+
className: "mx-3 mt-3 flex items-center justify-between gap-2 rounded-md border border-amber-500/40 bg-amber-500/10 px-3 py-1.5 text-xs",
|
|
18283
|
+
children: [/* @__PURE__ */ H("span", {
|
|
18284
|
+
className: "text-amber-700 dark:text-amber-400",
|
|
18285
|
+
children: [
|
|
18286
|
+
u("cf.argsDriftTitle"),
|
|
18287
|
+
" · ",
|
|
18288
|
+
p,
|
|
18289
|
+
" ",
|
|
18290
|
+
u("cf.argsDriftRows"),
|
|
18291
|
+
" · ",
|
|
18292
|
+
u("cf.argsDriftMissing"),
|
|
18293
|
+
" ",
|
|
18294
|
+
m,
|
|
18295
|
+
" · ",
|
|
18296
|
+
u("cf.argsDriftUnrecognized"),
|
|
18297
|
+
" ",
|
|
18298
|
+
h
|
|
18299
|
+
]
|
|
18300
|
+
}), m > 0 && /* @__PURE__ */ V(J, {
|
|
18301
|
+
size: "small",
|
|
18302
|
+
type: "link",
|
|
18303
|
+
className: "!px-1",
|
|
18304
|
+
disabled: a,
|
|
18305
|
+
onClick: () => {
|
|
18306
|
+
let e = mv(d, f, l);
|
|
18307
|
+
e && S(e);
|
|
18308
|
+
},
|
|
18309
|
+
children: u("cf.argsFillMissing")
|
|
18310
|
+
})]
|
|
18311
|
+
}),
|
|
18312
|
+
/* @__PURE__ */ V("div", {
|
|
18313
|
+
className: "flex min-h-0 flex-1 flex-col",
|
|
18314
|
+
style: { paddingTop: p > 0 ? 8 : 0 },
|
|
18315
|
+
children: /* @__PURE__ */ V(Dv, {
|
|
18316
|
+
instances: C,
|
|
18317
|
+
functionScope: l,
|
|
18318
|
+
disabled: a,
|
|
18319
|
+
fieldPaths: y,
|
|
18320
|
+
driftByInstance: v,
|
|
18321
|
+
duplicateKeys: g,
|
|
18322
|
+
outputsByKey: c,
|
|
18323
|
+
onChange: w
|
|
18324
|
+
})
|
|
18254
18325
|
})
|
|
18255
|
-
|
|
18326
|
+
] })
|
|
18256
18327
|
]
|
|
18257
18328
|
});
|
|
18258
|
-
},
|
|
18329
|
+
}, kv = (e) => {
|
|
18259
18330
|
let t = [];
|
|
18260
18331
|
for (let n of e) {
|
|
18261
18332
|
let e = n.group ?? "", r = t.find((t) => t.group === e);
|
|
@@ -18268,10 +18339,10 @@ var d_ = u_({
|
|
|
18268
18339
|
item: e,
|
|
18269
18340
|
index: t
|
|
18270
18341
|
})).sort((e, t) => (e.item.order ?? 0) - (t.item.order ?? 0) || e.index - t.index).map(({ item: e }) => e));
|
|
18271
|
-
},
|
|
18342
|
+
}, Av = ({ item: e, disabled: t }) => /* @__PURE__ */ V(B, { children: e.render({ disabled: t }) }), jv = ({ items: e }) => {
|
|
18272
18343
|
let { disabled: t = !1 } = $(({ disabled: e }) => ({ disabled: e }));
|
|
18273
18344
|
if (!e || e.length === 0) return null;
|
|
18274
|
-
let n =
|
|
18345
|
+
let n = kv(e), r = [];
|
|
18275
18346
|
for (let e of n) r.includes(e.group ?? "") || r.push(e.group ?? "");
|
|
18276
18347
|
return /* @__PURE__ */ V("div", {
|
|
18277
18348
|
"aria-label": "toolbar-items",
|
|
@@ -18282,13 +18353,13 @@ var d_ = u_({
|
|
|
18282
18353
|
}), n.filter((t) => (t.group ?? "") === e).map((e) => /* @__PURE__ */ V(yc, {
|
|
18283
18354
|
fallback: null,
|
|
18284
18355
|
onError: (t) => console.error(`[seal-editor] toolbar item "${e.id}" crashed:`, t),
|
|
18285
|
-
children: /* @__PURE__ */ V(
|
|
18356
|
+
children: /* @__PURE__ */ V(Av, {
|
|
18286
18357
|
item: e,
|
|
18287
18358
|
disabled: t
|
|
18288
18359
|
})
|
|
18289
18360
|
}, e.id))] }, e || `__anonymous_${r}`))
|
|
18290
18361
|
});
|
|
18291
|
-
},
|
|
18362
|
+
}, Mv = ({ userResolver: e }) => {
|
|
18292
18363
|
let { stateStore: t } = Um();
|
|
18293
18364
|
return P(() => {
|
|
18294
18365
|
if (!e) return;
|
|
@@ -18304,14 +18375,14 @@ var d_ = u_({
|
|
|
18304
18375
|
n = !0;
|
|
18305
18376
|
};
|
|
18306
18377
|
}, [e]), null;
|
|
18307
|
-
},
|
|
18378
|
+
}, Nv = M.memo(ke(function({ reactFlowProOptions: e, tabBarExtraContent: t, toolbarItems: n, userResolver: r, customFunctions: i }, a) {
|
|
18308
18379
|
let [o, s] = L(!1), { hasActiveNode: c, viewConfig: l, hideLeftToolbar: u } = $(({ decisionGraph: e, activeTab: t, viewConfig: n, hideLeftToolbar: r }) => ({
|
|
18309
18380
|
hasActiveNode: (e?.nodes ?? []).some((e) => e.id === t),
|
|
18310
18381
|
viewConfig: n,
|
|
18311
18382
|
hideLeftToolbar: r
|
|
18312
|
-
})), d = n && n.length > 0 ? /* @__PURE__ */ H(B, { children: [t, /* @__PURE__ */ V(
|
|
18383
|
+
})), d = n && n.length > 0 ? /* @__PURE__ */ H(B, { children: [t, /* @__PURE__ */ V(jv, { items: n })] }) : t;
|
|
18313
18384
|
return /* @__PURE__ */ H(B, { children: [
|
|
18314
|
-
/* @__PURE__ */ V(
|
|
18385
|
+
/* @__PURE__ */ V(Mv, { userResolver: r }),
|
|
18315
18386
|
!u && /* @__PURE__ */ V(X_, {}),
|
|
18316
18387
|
/* @__PURE__ */ H("div", {
|
|
18317
18388
|
className: "[grid-area:graph] flex flex-1 flex-col gap-1 overflow-hidden bg-white",
|
|
@@ -18327,12 +18398,12 @@ var d_ = u_({
|
|
|
18327
18398
|
onDisableTabs: s
|
|
18328
18399
|
}),
|
|
18329
18400
|
/* @__PURE__ */ V(B_, { className: z([!c && l?.enabled && "flex flex-col"]) }),
|
|
18330
|
-
/* @__PURE__ */ V(
|
|
18401
|
+
/* @__PURE__ */ V(Pv, { customFunctions: i })
|
|
18331
18402
|
]
|
|
18332
18403
|
}),
|
|
18333
18404
|
/* @__PURE__ */ V(y_, {})
|
|
18334
18405
|
] });
|
|
18335
|
-
})),
|
|
18406
|
+
})), Pv = M.memo(({ customFunctions: e }) => {
|
|
18336
18407
|
let { openNodes: t, activeNodeId: n, components: r, user: i, customNodes: a } = $(({ decisionGraph: e, openTabs: t, activeTab: n, components: r, user: i, customNodes: a }) => {
|
|
18337
18408
|
let o = (e?.nodes ?? []).find((e) => e.id === n)?.id;
|
|
18338
18409
|
return {
|
|
@@ -18383,7 +18454,7 @@ var d_ = u_({
|
|
|
18383
18454
|
id: t.id,
|
|
18384
18455
|
user: i,
|
|
18385
18456
|
customFunctions: e
|
|
18386
|
-
}) : /* @__PURE__ */ V(
|
|
18457
|
+
}) : /* @__PURE__ */ V(Ov, {
|
|
18387
18458
|
id: t.id,
|
|
18388
18459
|
user: i,
|
|
18389
18460
|
customFunctions: e
|
|
@@ -18394,10 +18465,10 @@ var d_ = u_({
|
|
|
18394
18465
|
})
|
|
18395
18466
|
}, t?.id))
|
|
18396
18467
|
});
|
|
18397
|
-
}),
|
|
18468
|
+
}), Fv = ke(({ reactFlowProOptions: e, tabBarExtraContent: t, toolbarItems: n, userResolver: r, ...i }, a) => /* @__PURE__ */ V(yc, { children: /* @__PURE__ */ V("div", {
|
|
18398
18469
|
className: z(["seal-dg", i?.hideLeftToolbar && "hidden-left-toolbar"]),
|
|
18399
18470
|
children: /* @__PURE__ */ V(Li, { children: /* @__PURE__ */ V(zm, { children: /* @__PURE__ */ H(qm, { children: [
|
|
18400
|
-
/* @__PURE__ */ V(
|
|
18471
|
+
/* @__PURE__ */ V(Nv, {
|
|
18401
18472
|
ref: a,
|
|
18402
18473
|
reactFlowProOptions: e,
|
|
18403
18474
|
tabBarExtraContent: t,
|
|
@@ -18408,7 +18479,7 @@ var d_ = u_({
|
|
|
18408
18479
|
/* @__PURE__ */ V(f_, {}),
|
|
18409
18480
|
/* @__PURE__ */ V(i_, { ...i })
|
|
18410
18481
|
] }) }) })
|
|
18411
|
-
}) })),
|
|
18482
|
+
}) })), Iv = (e) => ({
|
|
18412
18483
|
kind: e.kind,
|
|
18413
18484
|
icon: e.icon,
|
|
18414
18485
|
color: e.color,
|
|
@@ -18468,7 +18539,7 @@ var d_ = u_({
|
|
|
18468
18539
|
})
|
|
18469
18540
|
});
|
|
18470
18541
|
}
|
|
18471
|
-
}),
|
|
18542
|
+
}), Lv = ({ value: e, onChange: t, readOnly: n }) => {
|
|
18472
18543
|
let r = pc(), i = Z();
|
|
18473
18544
|
return /* @__PURE__ */ V(Ki, {
|
|
18474
18545
|
loading: /* @__PURE__ */ V(qo, { size: "large" }),
|
|
@@ -18527,7 +18598,7 @@ var d_ = u_({
|
|
|
18527
18598
|
};
|
|
18528
18599
|
//#endregion
|
|
18529
18600
|
//#region src/reui/icons/animated/outline/check-circle.tsx
|
|
18530
|
-
function
|
|
18601
|
+
function Rv({ className: e }) {
|
|
18531
18602
|
return /* @__PURE__ */ V("svg", {
|
|
18532
18603
|
width: "24",
|
|
18533
18604
|
height: "24",
|
|
@@ -18543,7 +18614,7 @@ function Fv({ className: e }) {
|
|
|
18543
18614
|
}
|
|
18544
18615
|
//#endregion
|
|
18545
18616
|
//#region src/reui/icons/animated/outline/cross-circle.tsx
|
|
18546
|
-
function
|
|
18617
|
+
function zv({ className: e }) {
|
|
18547
18618
|
return /* @__PURE__ */ V("svg", {
|
|
18548
18619
|
width: "24",
|
|
18549
18620
|
height: "24",
|
|
@@ -18559,7 +18630,7 @@ function Iv({ className: e }) {
|
|
|
18559
18630
|
}
|
|
18560
18631
|
//#endregion
|
|
18561
18632
|
//#region src/components/decision-graph/simulator/simulator-nodes-panel.tsx
|
|
18562
|
-
var
|
|
18633
|
+
var Bv = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeTypes: i, viewConfig: a, selectedNode: o, onSelectNode: s, onClear: c, onGoToNode: l }) => {
|
|
18563
18634
|
let u = Z(), d = F(() => !r || !("result" in r) ? [] : Object.entries(r.result?.trace ?? {}).filter(([e]) => !a?.enabled || !!a?.permissions?.[e]).map(([e, t]) => ({
|
|
18564
18635
|
...t,
|
|
18565
18636
|
nodeId: e
|
|
@@ -18635,7 +18706,7 @@ var Lv = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeType
|
|
|
18635
18706
|
children: [/* @__PURE__ */ H(X.Text, {
|
|
18636
18707
|
"data-role": "name",
|
|
18637
18708
|
className: "flex min-w-0 items-center [&>svg]:align-[-3px]",
|
|
18638
|
-
children: [/* @__PURE__ */ V(
|
|
18709
|
+
children: [/* @__PURE__ */ V(Vv, { status: G(r).with({ error: W.nonNullable }, () => "error").with({ result: W.nonNullable }, () => "success").otherwise(() => "not-run") }), /* @__PURE__ */ V("span", {
|
|
18639
18710
|
className: "truncate",
|
|
18640
18711
|
children: "Graph"
|
|
18641
18712
|
})]
|
|
@@ -18653,7 +18724,7 @@ var Lv = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeType
|
|
|
18653
18724
|
"data-role": "name",
|
|
18654
18725
|
className: "flex min-w-0 items-center gap-1.5 [&>svg]:align-[-3px]",
|
|
18655
18726
|
title: e.name,
|
|
18656
|
-
children: [/* @__PURE__ */ V(
|
|
18727
|
+
children: [/* @__PURE__ */ V(Vv, { status: e.nodeId === r?.error?.data?.nodeId ? "error" : "success" }), /* @__PURE__ */ V("span", {
|
|
18657
18728
|
className: "truncate",
|
|
18658
18729
|
children: e.name
|
|
18659
18730
|
})]
|
|
@@ -18668,10 +18739,10 @@ var Lv = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeType
|
|
|
18668
18739
|
})
|
|
18669
18740
|
})
|
|
18670
18741
|
})] });
|
|
18671
|
-
},
|
|
18742
|
+
}, Vv = ({ status: e }) => e === "not-run" ? null : e === "success" ? /* @__PURE__ */ V(Rv, { className: "mr-1.5 size-3 shrink-0 text-[var(--seal-color-success)] opacity-60" }) : /* @__PURE__ */ V(zv, { className: "mr-1 size-3 shrink-0 text-[var(--seal-color-error)]" });
|
|
18672
18743
|
//#endregion
|
|
18673
18744
|
//#region src/reui/icons/animated/outline/link.tsx
|
|
18674
|
-
function
|
|
18745
|
+
function Hv({ className: e, style: t }) {
|
|
18675
18746
|
return /* @__PURE__ */ H("svg", {
|
|
18676
18747
|
width: "24",
|
|
18677
18748
|
height: "24",
|
|
@@ -18693,7 +18764,7 @@ function zv({ className: e, style: t }) {
|
|
|
18693
18764
|
}
|
|
18694
18765
|
//#endregion
|
|
18695
18766
|
//#region src/components/decision-graph/simulator/simulator-request-toolbar.tsx
|
|
18696
|
-
var
|
|
18767
|
+
var Uv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n, sourceOptions: r, bindingName: i, hasInputNode: a, loading: o, onSourceChange: s, onFormat: c, onCopy: l, onRun: u }) => /* @__PURE__ */ H("div", {
|
|
18697
18768
|
className: "flex items-center justify-between gap-2 border-b border-border px-3 py-2",
|
|
18698
18769
|
children: [
|
|
18699
18770
|
/* @__PURE__ */ V(Y, {
|
|
@@ -18711,7 +18782,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18711
18782
|
title: e("simulator.currentBinding"),
|
|
18712
18783
|
children: /* @__PURE__ */ H("div", {
|
|
18713
18784
|
className: "flex min-w-0 items-center gap-1",
|
|
18714
|
-
children: [/* @__PURE__ */ V(
|
|
18785
|
+
children: [/* @__PURE__ */ V(Hv, { className: "size-3 shrink-0 text-[var(--muted-foreground)]" }), /* @__PURE__ */ V(Go, {
|
|
18715
18786
|
size: "small",
|
|
18716
18787
|
value: n,
|
|
18717
18788
|
options: r,
|
|
@@ -18725,7 +18796,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18725
18796
|
className: "flex min-w-0 items-center gap-1 text-xs",
|
|
18726
18797
|
children: [/* @__PURE__ */ V(Y, {
|
|
18727
18798
|
title: e("simulator.currentBinding"),
|
|
18728
|
-
children: /* @__PURE__ */ V(
|
|
18799
|
+
children: /* @__PURE__ */ V(Hv, { className: "size-3 shrink-0 text-[var(--muted-foreground)]" })
|
|
18729
18800
|
}), /* @__PURE__ */ V("span", {
|
|
18730
18801
|
className: "truncate",
|
|
18731
18802
|
children: i
|
|
@@ -18773,7 +18844,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18773
18844
|
] })
|
|
18774
18845
|
})
|
|
18775
18846
|
]
|
|
18776
|
-
}),
|
|
18847
|
+
}), Wv = ({ t: e, requestValue: t, resolvedSimulatorExampleBinding: i, onRequestValueChange: a, onMarkEdited: o, onExternalChange: c }) => {
|
|
18777
18848
|
let { stateStore: u, actions: d } = Um(), f = ({ activeExampleBinding: t, preparedParsed: r, triggeredBy: i, showSuccessMessage: f = !0 }) => {
|
|
18778
18849
|
let { decisionGraph: p } = u.getState(), m = p.nodes.find((e) => e.id === t.nodeId);
|
|
18779
18850
|
if (!m) return R.error(e("simulator.boundRequestNodeNotFound")), null;
|
|
@@ -18843,7 +18914,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18843
18914
|
return c || R.error(e("request.saveDataSourceFailed")), null;
|
|
18844
18915
|
}
|
|
18845
18916
|
} };
|
|
18846
|
-
},
|
|
18917
|
+
}, Gv = 700, Kv = ({ enabled: e, requestValue: t, requestSourcesSignature: n, boundRequestSourceIndex: r, onSyncToSchema: i, onPushToEditor: a, debounceMs: o = 700 }) => {
|
|
18847
18918
|
let s = I(null), c = I(void 0), l = I(t);
|
|
18848
18919
|
l.current = t;
|
|
18849
18920
|
let u = I(void 0), d = I({
|
|
@@ -18872,7 +18943,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18872
18943
|
]), { flush: () => {
|
|
18873
18944
|
s.current !== null && (window.clearTimeout(s.current), s.current = null, c.current = l.current, d.current.onSyncToSchema());
|
|
18874
18945
|
} };
|
|
18875
|
-
},
|
|
18946
|
+
}, qv = ({ inputNodeContent: e, inputNodeId: t, simulatorExampleBinding: n, dataLabel: i = "Data" }) => {
|
|
18876
18947
|
let a = e, o = F(() => c(a, { dataLabel: i }), [a, i]), s = F(() => !n || n.nodeId !== t ? -1 : o[n.sourceIndex] ? n.sourceIndex : -1, [
|
|
18877
18948
|
t,
|
|
18878
18949
|
o,
|
|
@@ -18901,7 +18972,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18901
18972
|
bindingName: h,
|
|
18902
18973
|
shouldShowSimulatorSourceSelect: !!h && !!t && o.length > 1
|
|
18903
18974
|
};
|
|
18904
|
-
},
|
|
18975
|
+
}, Jv = ({ defaultRequest: e, simulatorRequest: t, currentBindingIdentity: n, onExternalChange: r }) => {
|
|
18905
18976
|
let [i, a] = L(e), [o, s] = L(!1), [c, l] = L(!1), u = I(null), d = I(null), f = I(void 0);
|
|
18906
18977
|
return P(() => () => {
|
|
18907
18978
|
u.current !== null && window.clearTimeout(u.current);
|
|
@@ -18921,7 +18992,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18921
18992
|
setUserHasEdited: s,
|
|
18922
18993
|
isApplyingExternalRequest: c
|
|
18923
18994
|
};
|
|
18924
|
-
},
|
|
18995
|
+
}, Yv = ({ onChange: e, hasInputNode: t, loading: n, onRun: i, defaultRequest: a }) => {
|
|
18925
18996
|
let o = Z(), { stateStore: s, actions: c } = Um(), { simulatorRequest: l, simulatorExampleBinding: d, inputNodeContent: f, inputNodeId: p } = $(({ simulatorRequest: e, simulatorExampleBinding: t, decisionGraph: n }) => {
|
|
18926
18997
|
let r = n?.nodes?.find((e) => e.type === "inputNode");
|
|
18927
18998
|
return {
|
|
@@ -18930,12 +19001,12 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18930
19001
|
inputNodeContent: r?.content,
|
|
18931
19002
|
inputNodeId: r?.id
|
|
18932
19003
|
};
|
|
18933
|
-
}), { requestSources: m, boundRequestSourceIndex: h, defaultRequestSourceIndex: g, defaultRequestSource: _, resolvedSimulatorExampleBinding: v, currentBindingIdentity: y, requestDefinitions: b, sourceOptions: S, bindingName: w, shouldShowSimulatorSourceSelect: T } =
|
|
19004
|
+
}), { requestSources: m, boundRequestSourceIndex: h, defaultRequestSourceIndex: g, defaultRequestSource: _, resolvedSimulatorExampleBinding: v, currentBindingIdentity: y, requestDefinitions: b, sourceOptions: S, bindingName: w, shouldShowSimulatorSourceSelect: T } = qv({
|
|
18934
19005
|
inputNodeContent: f,
|
|
18935
19006
|
inputNodeId: p,
|
|
18936
19007
|
simulatorExampleBinding: d,
|
|
18937
19008
|
dataLabel: o("request.dataLabel")
|
|
18938
|
-
}), { requestValue: D, setRequestValue: ee, userHasEdited: te, setUserHasEdited: O, isApplyingExternalRequest: ne } =
|
|
19009
|
+
}), { requestValue: D, setRequestValue: ee, userHasEdited: te, setUserHasEdited: O, isApplyingExternalRequest: ne } = Jv({
|
|
18939
19010
|
defaultRequest: a,
|
|
18940
19011
|
simulatorRequest: l,
|
|
18941
19012
|
currentBindingIdentity: y,
|
|
@@ -18974,14 +19045,14 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
18974
19045
|
c.setNodeType(t.id, Lm.InferredOutput, new An(e));
|
|
18975
19046
|
} catch {}
|
|
18976
19047
|
}, [D]);
|
|
18977
|
-
let { persistRequestToExampleSource: ie } =
|
|
19048
|
+
let { persistRequestToExampleSource: ie } = Wv({
|
|
18978
19049
|
t: o,
|
|
18979
19050
|
requestValue: D,
|
|
18980
19051
|
resolvedSimulatorExampleBinding: v,
|
|
18981
19052
|
onRequestValueChange: ee,
|
|
18982
19053
|
onMarkEdited: () => O(!0),
|
|
18983
19054
|
onExternalChange: e
|
|
18984
|
-
}), ae = JSON.stringify(m.map((e) => e.data)), { flush: k } =
|
|
19055
|
+
}), ae = JSON.stringify(m.map((e) => e.data)), { flush: k } = Kv({
|
|
18985
19056
|
enabled: !!(t && v),
|
|
18986
19057
|
requestValue: D,
|
|
18987
19058
|
requestSourcesSignature: ae,
|
|
@@ -19001,7 +19072,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19001
19072
|
c.setSimulatorRequest(JSON.stringify(t, null, 2));
|
|
19002
19073
|
}
|
|
19003
19074
|
});
|
|
19004
|
-
return /* @__PURE__ */ H(M.Fragment, { children: [/* @__PURE__ */ V(
|
|
19075
|
+
return /* @__PURE__ */ H(M.Fragment, { children: [/* @__PURE__ */ V(Uv, {
|
|
19005
19076
|
t: o,
|
|
19006
19077
|
shouldShowSimulatorSourceSelect: T,
|
|
19007
19078
|
boundRequestSourceIndex: h,
|
|
@@ -19049,7 +19120,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19049
19120
|
className: "relative min-h-0 flex-1 overflow-hidden",
|
|
19050
19121
|
children: [/* @__PURE__ */ V("div", {
|
|
19051
19122
|
className: "absolute inset-0",
|
|
19052
|
-
children: /* @__PURE__ */ V(
|
|
19123
|
+
children: /* @__PURE__ */ V(Lv, {
|
|
19053
19124
|
value: D,
|
|
19054
19125
|
onChange: (t) => {
|
|
19055
19126
|
ee(t), O(!0), c.setSimulatorRequest(t ?? ""), e?.(t ?? "");
|
|
@@ -19060,9 +19131,9 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19060
19131
|
children: /* @__PURE__ */ V(qo, { size: "small" })
|
|
19061
19132
|
})]
|
|
19062
19133
|
})] });
|
|
19063
|
-
},
|
|
19134
|
+
}, Xv = /* @__PURE__ */ function(e) {
|
|
19064
19135
|
return e.Output = "Output", e.Input = "Input", e.Trace = "Trace", e;
|
|
19065
|
-
}(
|
|
19136
|
+
}(Xv || {}), Zv = ({ defaultRequest: e, onChange: t, onRun: n, onClear: r, loading: i = !1, simulationFooter: a, leftPanel: o = Yv }) => {
|
|
19066
19137
|
let s = Z(), [c, l] = uh("simulation.search", ""), [u, d] = uh("simulation.segment", "Output"), { viewConfig: f } = $((e) => ({ viewConfig: e.viewConfig })), { actions: p } = Um(), { nodeTypes: m, simulate: h, hasInputNode: g } = $(({ decisionGraph: e, simulate: t }) => ({
|
|
19067
19138
|
simulate: t,
|
|
19068
19139
|
hasInputNode: e.nodes.some((e) => e.type === Q.Input),
|
|
@@ -19095,7 +19166,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19095
19166
|
minSize: 20,
|
|
19096
19167
|
maxSize: 20,
|
|
19097
19168
|
className: "flex w-[260px] flex-col",
|
|
19098
|
-
children: /* @__PURE__ */ V(
|
|
19169
|
+
children: /* @__PURE__ */ V(Bv, {
|
|
19099
19170
|
search: c,
|
|
19100
19171
|
onSearchChange: l,
|
|
19101
19172
|
loading: i,
|
|
@@ -19121,7 +19192,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19121
19192
|
size: "small",
|
|
19122
19193
|
style: { width: "100%" },
|
|
19123
19194
|
onChange: (e) => d(e),
|
|
19124
|
-
items: Object.values(
|
|
19195
|
+
items: Object.values(Xv).map((e) => ({
|
|
19125
19196
|
key: e,
|
|
19126
19197
|
label: e
|
|
19127
19198
|
})),
|
|
@@ -19137,12 +19208,12 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19137
19208
|
})
|
|
19138
19209
|
}), /* @__PURE__ */ V("div", {
|
|
19139
19210
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
19140
|
-
children: /* @__PURE__ */ V(
|
|
19211
|
+
children: /* @__PURE__ */ V(Lv, {
|
|
19141
19212
|
readOnly: !0,
|
|
19142
|
-
value: G(h).with({ result: W._ }, ({ result: e }) => G(_).with("graph", () =>
|
|
19213
|
+
value: G(h).with({ result: W._ }, ({ result: e }) => G(_).with("graph", () => Qv({
|
|
19143
19214
|
traceData: e?.trace,
|
|
19144
19215
|
output: e?.result
|
|
19145
|
-
}, u ?? "Output")).otherwise(() =>
|
|
19216
|
+
}, u ?? "Output")).otherwise(() => Qv(e?.trace[_], u ?? "Output"))).otherwise(() => "")
|
|
19146
19217
|
})
|
|
19147
19218
|
})]
|
|
19148
19219
|
})
|
|
@@ -19152,10 +19223,10 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19152
19223
|
children: a
|
|
19153
19224
|
})]
|
|
19154
19225
|
});
|
|
19155
|
-
},
|
|
19226
|
+
}, Qv = (e, t) => {
|
|
19156
19227
|
let n = G([t, e]).with(["Output", { output: W._ }], ([, { output: e }]) => e).with(["Input", { input: W._ }], ([, { input: e }]) => e).with(["Trace", { trace: W._ }], ([, { trace: e }]) => e).with(["Trace", { traceData: W._ }], ([, { traceData: e }]) => e).otherwise(() => ({}));
|
|
19157
19228
|
return Kr.stringify(n, void 0, 2);
|
|
19158
|
-
},
|
|
19229
|
+
}, $v = /* @__PURE__ */ new Set(["position", "_diff"]), ey = /* @__PURE__ */ new Set(["_diff"]), ty = (e) => typeof e != "object" || !e ? JSON.stringify(e) ?? "undefined" : Array.isArray(e) ? `[${e.map(ty).join(",")}]` : `{${Object.entries(e).filter(([, e]) => e !== void 0).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${JSON.stringify(e)}:${ty(t)}`).join(",")}}`, ny = (e, t) => Object.fromEntries(Object.entries(e).filter(([e]) => !t.has(e))), ry = (e, t, n) => [.../* @__PURE__ */ new Set([...Object.keys(ny(e, n)), ...Object.keys(ny(t, n))])].filter((n) => ty(e[n]) !== ty(t[n])), iy = (e, t, n) => {
|
|
19159
19230
|
let r = new Map(e.map((e) => [e.id, e])), i = new Map(t.map((e) => [e.id, e])), a = [], o = [], s = [];
|
|
19160
19231
|
for (let [e, t] of i) r.has(e) || a.push({
|
|
19161
19232
|
id: e,
|
|
@@ -19172,7 +19243,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19172
19243
|
});
|
|
19173
19244
|
continue;
|
|
19174
19245
|
}
|
|
19175
|
-
let a =
|
|
19246
|
+
let a = ry(t, r, n);
|
|
19176
19247
|
a.length > 0 && s.push({
|
|
19177
19248
|
id: e,
|
|
19178
19249
|
name: r.name ?? t.name,
|
|
@@ -19185,8 +19256,8 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19185
19256
|
removed: o,
|
|
19186
19257
|
modified: s
|
|
19187
19258
|
};
|
|
19188
|
-
},
|
|
19189
|
-
let n =
|
|
19259
|
+
}, ay = (e, t) => {
|
|
19260
|
+
let n = iy(e.nodes ?? [], t.nodes ?? [], $v), r = iy(e.edges ?? [], t.edges ?? [], ey);
|
|
19190
19261
|
return {
|
|
19191
19262
|
addedNodes: n.added,
|
|
19192
19263
|
removedNodes: n.removed,
|
|
@@ -19196,7 +19267,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19196
19267
|
modifiedEdges: r.modified,
|
|
19197
19268
|
unchanged: n.added.length + n.removed.length + n.modified.length + r.added.length + r.removed.length + r.modified.length === 0
|
|
19198
19269
|
};
|
|
19199
|
-
},
|
|
19270
|
+
}, oy = ({ report: e, onDebug: t }) => {
|
|
19200
19271
|
let n = Z();
|
|
19201
19272
|
return /* @__PURE__ */ V("div", {
|
|
19202
19273
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
@@ -19233,7 +19304,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19233
19304
|
]
|
|
19234
19305
|
}, `${e.name}-${r}`))
|
|
19235
19306
|
});
|
|
19236
|
-
},
|
|
19307
|
+
}, sy = () => {
|
|
19237
19308
|
let e = Z(), t = Hm(), { decisionGraph: n, panels: r, fixturesRunner: i, fixturesRun: a } = $(({ decisionGraph: e, panels: t, fixturesRunner: n, fixturesRun: r }) => ({
|
|
19238
19309
|
decisionGraph: e,
|
|
19239
19310
|
panels: t,
|
|
@@ -19281,7 +19352,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19281
19352
|
className: "mx-3 mt-2 rounded-md border border-destructive/40 bg-destructive/10 px-3 py-1.5 text-xs text-destructive",
|
|
19282
19353
|
children: a.error === "no-examples" ? e("request.fixturesNoExamples") : a.error === "no-input-node" ? e("request.fixturesNoInputNode") : a.error ?? e("request.runAllFailed")
|
|
19283
19354
|
}),
|
|
19284
|
-
a?.status === "done" && a.report && /* @__PURE__ */ V(
|
|
19355
|
+
a?.status === "done" && a.report && /* @__PURE__ */ V(oy, {
|
|
19285
19356
|
report: a.report,
|
|
19286
19357
|
onDebug: (e) => {
|
|
19287
19358
|
if (!o) return;
|
|
@@ -19298,33 +19369,33 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19298
19369
|
})
|
|
19299
19370
|
]
|
|
19300
19371
|
});
|
|
19301
|
-
},
|
|
19372
|
+
}, cy = (e) => Array.isArray(e.type) ? e.type.find((e) => e !== "null") ?? e.type[0] : e.type, ly = (e) => {
|
|
19302
19373
|
if (!e || typeof e != "object") return An.fromJson("Any");
|
|
19303
|
-
if (Array.isArray(e.oneOf) && e.oneOf.length > 0) return
|
|
19304
|
-
if (Array.isArray(e.anyOf) && e.anyOf.length > 0) return
|
|
19305
|
-
if (Array.isArray(e.allOf) && e.allOf.length > 0) return e.allOf.reduce((e, t) => e.merge(
|
|
19306
|
-
switch (
|
|
19374
|
+
if (Array.isArray(e.oneOf) && e.oneOf.length > 0) return ly(e.oneOf[0]);
|
|
19375
|
+
if (Array.isArray(e.anyOf) && e.anyOf.length > 0) return ly(e.anyOf[0]);
|
|
19376
|
+
if (Array.isArray(e.allOf) && e.allOf.length > 0) return e.allOf.reduce((e, t) => e.merge(ly(t)), An.fromJson({ Object: {} }));
|
|
19377
|
+
switch (cy(e)) {
|
|
19307
19378
|
case "object": {
|
|
19308
19379
|
let t = An.fromJson({ Object: {} });
|
|
19309
19380
|
return Object.entries(e.properties ?? {}).forEach(([e, n]) => {
|
|
19310
|
-
t.set(e,
|
|
19381
|
+
t.set(e, ly(n));
|
|
19311
19382
|
}), t;
|
|
19312
19383
|
}
|
|
19313
|
-
case "array": return
|
|
19384
|
+
case "array": return ly(Array.isArray(e.items) ? e.items[0] : e.items).toArray();
|
|
19314
19385
|
case "string": return An.fromJson("String");
|
|
19315
19386
|
case "boolean": return An.fromJson("Bool");
|
|
19316
19387
|
case "number":
|
|
19317
19388
|
case "integer": return An.fromJson("Number");
|
|
19318
19389
|
case "null": return An.fromJson("Null");
|
|
19319
|
-
default: return e.properties ?
|
|
19390
|
+
default: return e.properties ? ly({
|
|
19320
19391
|
...e,
|
|
19321
19392
|
type: "object"
|
|
19322
|
-
}) : e.items ?
|
|
19393
|
+
}) : e.items ? ly({
|
|
19323
19394
|
...e,
|
|
19324
19395
|
type: "array"
|
|
19325
19396
|
}) : e.nullable ? An.fromJson("Null") : An.fromJson("Any");
|
|
19326
19397
|
}
|
|
19327
|
-
},
|
|
19398
|
+
}, uy = "data:image/svg+xml,%3csvg%20id='fi_5968381'%20enable-background='new%200%200%20512%20512'%20height='512'%20viewBox='0%200%20512%20512'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='m50%200h412c27.614%200%2050%2022.386%2050%2050v412c0%2027.614-22.386%2050-50%2050h-412c-27.614%200-50-22.386-50-50v-412c0-27.614%2022.386-50%2050-50z'%20fill='%233178c6'%3e%3c/path%3e%3cpath%20d='m50%200h412c27.614%200%2050%2022.386%2050%2050v412c0%2027.614-22.386%2050-50%2050h-412c-27.614%200-50-22.386-50-50v-412c0-27.614%2022.386-50%2050-50z'%20fill='%233178c6'%3e%3c/path%3e%3cpath%20clip-rule='evenodd'%20d='m316.939%20407.424v50.061c8.138%204.172%2017.763%207.3%2028.875%209.386s22.823%203.129%2035.135%203.129c21.219%200%2044.448-3.035%2062.602-14.784%2018.064-11.691%2026.449-31.14%2026.449-52.172%200-15.637-4.851-30.684-15.807-42.081-16.429-17.091-39.516-24.022-60.255-34.183-10.389-5.09-24.727-12.992-24.727-26.361%200-3.441.887-6.543%202.661-9.307%207.132-11.113%2022.973-13.376%2035.057-13.376%2013.717%200%2028.189%203.071%2040.926%208.76%204.434%201.982%208.529%204.276%2012.285%206.884v-46.776c-7.616-2.92-15.937-5.084-24.962-6.492s-19.381-2.112-31.066-2.112c-11.895%200-23.163%201.278-33.805%203.833s-20.006%206.544-28.093%2011.967c-8.086%205.424-14.476%2012.333-19.171%2020.729-4.695%208.395-7.043%2018.433-7.043%2030.114%200%2014.914%204.304%2027.638%2012.912%2038.172%208.607%2010.533%2021.675%2019.45%2039.204%2026.751%2011.792%204.822%2024.053%209.581%2034.665%2016.739%207.355%204.96%2014.007%2011.877%2014.007%2021.275%200%206.821-3.856%2012.604-9.468%2016.192-8.303%205.308-18.936%206.492-28.563%206.492-10.851%200-21.597-1.903-32.24-5.71-10.641-3.806-20.501-9.516-29.578-17.13zm-84.159-123.342h64.22v-41.082h-179v41.082h63.906v182.918h50.874z'%20fill='%23fff'%20fill-rule='evenodd'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", dy = {
|
|
19328
19399
|
dark: {
|
|
19329
19400
|
string: "#CE9178",
|
|
19330
19401
|
number: "#B5CEA8",
|
|
@@ -19341,8 +19412,8 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19341
19412
|
error: "#E51400",
|
|
19342
19413
|
info: "rgba(0, 0, 0, 0.65)"
|
|
19343
19414
|
}
|
|
19344
|
-
},
|
|
19345
|
-
let r = pc(), i = Z(), a =
|
|
19415
|
+
}, fy = ({ lines: e, msSinceRun: t, filter: n }) => {
|
|
19416
|
+
let r = pc(), i = Z(), a = dy[r ?? "light"], o = M.useMemo(() => {
|
|
19346
19417
|
let t = (n ?? "").trim().toLowerCase();
|
|
19347
19418
|
return t ? e.filter((e) => e.toLowerCase().includes(t)) : e;
|
|
19348
19419
|
}, [e, n]), s = o.length > 0;
|
|
@@ -19376,7 +19447,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19376
19447
|
children: /* @__PURE__ */ V("div", {
|
|
19377
19448
|
className: "seal-function__debugger__log__values",
|
|
19378
19449
|
children: o.map((e, t) => {
|
|
19379
|
-
let n =
|
|
19450
|
+
let n = _y(e);
|
|
19380
19451
|
return /* @__PURE__ */ V(na, {
|
|
19381
19452
|
data: n,
|
|
19382
19453
|
shouldExpandNodeInitially: () => !1,
|
|
@@ -19387,11 +19458,11 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19387
19458
|
children: i
|
|
19388
19459
|
}), ": "] })), e.length >= 1) {
|
|
19389
19460
|
let i = [...e];
|
|
19390
|
-
i.pop(), i = i.reverse(), r.push(
|
|
19461
|
+
i.pop(), i = i.reverse(), r.push(py(a)(gy(n, i), t));
|
|
19391
19462
|
}
|
|
19392
19463
|
return /* @__PURE__ */ V(B, { children: r });
|
|
19393
19464
|
},
|
|
19394
|
-
valueRenderer:
|
|
19465
|
+
valueRenderer: hy(a),
|
|
19395
19466
|
theme: {
|
|
19396
19467
|
base00: "var(--card)",
|
|
19397
19468
|
base03: "var(--seal-color-text-base)",
|
|
@@ -19424,12 +19495,12 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19424
19495
|
})
|
|
19425
19496
|
]
|
|
19426
19497
|
});
|
|
19427
|
-
},
|
|
19498
|
+
}, py = (e) => (t, n) => {
|
|
19428
19499
|
if (n === "Object") {
|
|
19429
19500
|
let n = Object.entries(t), r = n.reduce((t, [r, i], a) => [...t, /* @__PURE__ */ H("span", { children: [
|
|
19430
19501
|
r,
|
|
19431
19502
|
": ",
|
|
19432
|
-
|
|
19503
|
+
hy(e)(my(i), i),
|
|
19433
19504
|
a !== n.length - 1 && /* @__PURE__ */ V(B, { children: ", " })
|
|
19434
19505
|
] }, r)], []);
|
|
19435
19506
|
return /* @__PURE__ */ H(B, { children: [
|
|
@@ -19439,7 +19510,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19439
19510
|
] });
|
|
19440
19511
|
}
|
|
19441
19512
|
if (n === "Array") {
|
|
19442
|
-
let n = t, r = n.reduce((t, r, i) => [...t, /* @__PURE__ */ H("span", { children: [
|
|
19513
|
+
let n = t, r = n.reduce((t, r, i) => [...t, /* @__PURE__ */ H("span", { children: [hy(e)(my(r), r), i !== n.length - 1 && /* @__PURE__ */ V(B, { children: ", " })] }, i)], []);
|
|
19443
19514
|
return /* @__PURE__ */ H(B, { children: [
|
|
19444
19515
|
n.length > 2 ? `(${n.length})` : "",
|
|
19445
19516
|
" [",
|
|
@@ -19448,13 +19519,13 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19448
19519
|
] });
|
|
19449
19520
|
}
|
|
19450
19521
|
return null;
|
|
19451
|
-
},
|
|
19522
|
+
}, my = (e) => {
|
|
19452
19523
|
switch (!0) {
|
|
19453
19524
|
case Array.isArray(e): return `Array(${e.length})`;
|
|
19454
19525
|
case typeof e == "object": return "{...}";
|
|
19455
19526
|
default: return JSON.stringify(e);
|
|
19456
19527
|
}
|
|
19457
|
-
},
|
|
19528
|
+
}, hy = (e) => (t, n) => {
|
|
19458
19529
|
let r = t;
|
|
19459
19530
|
return typeof n == "string" ? r.startsWith("\"Error:") ? /* @__PURE__ */ V("span", {
|
|
19460
19531
|
style: { color: e.error },
|
|
@@ -19472,13 +19543,13 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19472
19543
|
style: { color: e.number },
|
|
19473
19544
|
children: r
|
|
19474
19545
|
}) : r;
|
|
19475
|
-
},
|
|
19546
|
+
}, gy = (e, t) => t.reduce((e, t) => e && e[t] ? e[t] : null, e), _y = (e) => {
|
|
19476
19547
|
if (typeof e == "string" && (e = e.trim(), e)) try {
|
|
19477
19548
|
return JSON.parse(e);
|
|
19478
19549
|
} catch {
|
|
19479
19550
|
return `[UNSERIALIZED]: ${e}`;
|
|
19480
19551
|
}
|
|
19481
|
-
},
|
|
19552
|
+
}, vy = {
|
|
19482
19553
|
dark: {
|
|
19483
19554
|
base00: "var(--card)",
|
|
19484
19555
|
base03: "var(--seal-color-text-base)",
|
|
@@ -19491,15 +19562,15 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19491
19562
|
base0B: "var(--seal-color-text-base)",
|
|
19492
19563
|
base0D: "var(--seal-color-text-base)"
|
|
19493
19564
|
}
|
|
19494
|
-
},
|
|
19495
|
-
...
|
|
19565
|
+
}, yy = (e) => ({
|
|
19566
|
+
...vy[e],
|
|
19496
19567
|
base00: "var(--card)",
|
|
19497
19568
|
base03: "var(--seal-color-text-base)",
|
|
19498
19569
|
base0B: "var(--seal-color-text-base)",
|
|
19499
19570
|
base0D: "var(--seal-color-text-base)",
|
|
19500
19571
|
tree: { display: "inline-block" }
|
|
19501
|
-
}),
|
|
19502
|
-
let n =
|
|
19572
|
+
}), by = ({ input: e, output: t }) => {
|
|
19573
|
+
let n = yy(pc() ?? "light"), [r, i] = M.useState(null);
|
|
19503
19574
|
return e == null && t == null ? null : /* @__PURE__ */ V("div", {
|
|
19504
19575
|
className: "border-b border-[var(--seal-color-border-fade)] text-xs [font-family:var(--mono-font-family)]",
|
|
19505
19576
|
children: [{
|
|
@@ -19536,9 +19607,9 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19536
19607
|
}, e);
|
|
19537
19608
|
})
|
|
19538
19609
|
});
|
|
19539
|
-
},
|
|
19610
|
+
}, xy = /* @__PURE__ */ function(e) {
|
|
19540
19611
|
return e.Console = "Console", e.Libraries = "Libraries", e;
|
|
19541
|
-
}(
|
|
19612
|
+
}(xy || {}), Sy = ({ trace: e, editor: t, libraries: n = [], editorValue: r, disabled: i }) => {
|
|
19542
19613
|
let a = e?.traceData?.log || [], [o, s] = L("Console"), [c, l] = L(""), u = Z();
|
|
19543
19614
|
return /* @__PURE__ */ V("div", {
|
|
19544
19615
|
className: "h-full border-l border-[var(--border)]",
|
|
@@ -19550,7 +19621,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19550
19621
|
rootClassName: "seal-inline-tabs",
|
|
19551
19622
|
size: "small",
|
|
19552
19623
|
style: { width: "100%" },
|
|
19553
|
-
items: Object.values(
|
|
19624
|
+
items: Object.values(xy).map((e) => ({
|
|
19554
19625
|
key: e,
|
|
19555
19626
|
label: e
|
|
19556
19627
|
})),
|
|
@@ -19573,7 +19644,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19573
19644
|
}), /* @__PURE__ */ V("div", {
|
|
19574
19645
|
className: "grow overflow-y-auto",
|
|
19575
19646
|
children: G(o).with("Console", () => /* @__PURE__ */ H(B, { children: [
|
|
19576
|
-
e && /* @__PURE__ */ V(
|
|
19647
|
+
e && /* @__PURE__ */ V(by, {
|
|
19577
19648
|
input: e.input,
|
|
19578
19649
|
output: e.output
|
|
19579
19650
|
}),
|
|
@@ -19587,18 +19658,18 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19587
19658
|
className: "h-7 w-full min-w-0 rounded-md border border-border bg-muted/40 px-2 text-xs outline-none focus:border-primary/50"
|
|
19588
19659
|
})
|
|
19589
19660
|
}),
|
|
19590
|
-
a.length === 0 && /* @__PURE__ */ V(
|
|
19661
|
+
a.length === 0 && /* @__PURE__ */ V(fy, {
|
|
19591
19662
|
lines: ["\"Info: Use console.log and run simulation to debug your code.\""],
|
|
19592
19663
|
msSinceRun: null
|
|
19593
19664
|
}),
|
|
19594
|
-
a.map((e, t) => /* @__PURE__ */ V(
|
|
19665
|
+
a.map((e, t) => /* @__PURE__ */ V(fy, {
|
|
19595
19666
|
lines: e.lines,
|
|
19596
19667
|
msSinceRun: e.msSinceRun,
|
|
19597
19668
|
filter: c
|
|
19598
19669
|
}, t))
|
|
19599
19670
|
] })).with("Libraries", () => /* @__PURE__ */ V("div", {
|
|
19600
19671
|
className: "flex flex-col",
|
|
19601
|
-
children: n.map((e) => /* @__PURE__ */ V(
|
|
19672
|
+
children: n.map((e) => /* @__PURE__ */ V(Cy, {
|
|
19602
19673
|
lib: e,
|
|
19603
19674
|
disabled: i,
|
|
19604
19675
|
editorValue: r,
|
|
@@ -19612,14 +19683,14 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19612
19683
|
})]
|
|
19613
19684
|
})
|
|
19614
19685
|
});
|
|
19615
|
-
},
|
|
19686
|
+
}, Cy = ({ lib: e, onImport: t, editorValue: n, disabled: r }) => {
|
|
19616
19687
|
let i = Z(), a = F(() => !n || !n.includes(`from "${e.name}"`) && !n.includes(`from '${e.name}'`), [e.name, n]);
|
|
19617
19688
|
return /* @__PURE__ */ H("div", {
|
|
19618
19689
|
className: "flex items-center gap-2 border-b border-[var(--seal-color-border-fade)] p-2 no-underline",
|
|
19619
19690
|
children: [
|
|
19620
19691
|
/* @__PURE__ */ V("img", {
|
|
19621
19692
|
alt: "TypeScript Library",
|
|
19622
|
-
src:
|
|
19693
|
+
src: uy,
|
|
19623
19694
|
height: 18
|
|
19624
19695
|
}),
|
|
19625
19696
|
/* @__PURE__ */ V(X.Text, {
|
|
@@ -19661,12 +19732,12 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19661
19732
|
})
|
|
19662
19733
|
]
|
|
19663
19734
|
}, e.name);
|
|
19664
|
-
},
|
|
19735
|
+
}, wy = (e) => Ty(e.toJson()), Ty = (e) => G(e).with("String", () => "string").with("Bool", () => "boolean").with("Number", () => "number").with("Null", () => "null").with("Any", () => "any").with({ Object: W.select() }, (e) => `{${Object.entries(e).map(([e, t]) => [e, Ty(t)].join(":")).join(",")}}`).with({ Array: W.select() }, (e) => `${Ty(e)}[]`).with({ Const: W.select() }, (e) => `"${e}"`).with({ Enum: [W._, W.select()] }, (e) => e.map((e) => `"${e}"`).join(" | ")).exhaustive(), Ey = {
|
|
19665
19736
|
Hint: 1,
|
|
19666
19737
|
Info: 2,
|
|
19667
19738
|
Warning: 4,
|
|
19668
19739
|
Error: 8
|
|
19669
|
-
},
|
|
19740
|
+
}, Dy = ({ disabled: e = !1, disableDebug: t, language: n = "javascript", defaultValue: r, value: i, onChange: a, trace: o, onMonacoReady: s, onEditorMount: c, error: l, inputData: u, previousValue: d, permission: f = "edit:full", libraries: p = ag }) => {
|
|
19670
19741
|
let m = Ji(), h = I(!1), g = pc(), [_, v] = L(), [y, b] = L(), x = Ci((e) => {
|
|
19671
19742
|
a?.(e);
|
|
19672
19743
|
}, 100), [S, C] = L(), [w, T] = L(), E = wi(() => S?.layout(), 100, { trailing: !0 }), D = wi(() => w?.layout(), 100, { trailing: !0 });
|
|
@@ -19698,7 +19769,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19698
19769
|
}, []), P(() => {
|
|
19699
19770
|
if (!m) return;
|
|
19700
19771
|
let e = "any";
|
|
19701
|
-
Es() && (e =
|
|
19772
|
+
Es() && (e = wy(jn(u))), m.languages.typescript.javascriptDefaults.addExtraLib(`
|
|
19702
19773
|
type Input = ${e};
|
|
19703
19774
|
type Output = Promise<any>;
|
|
19704
19775
|
|
|
@@ -19721,7 +19792,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19721
19792
|
if (!r) return;
|
|
19722
19793
|
let i = new m.Range(t, r.getLineFirstNonWhitespaceColumn(t), t, r.getLineLastNonWhitespaceColumn(t));
|
|
19723
19794
|
m.editor.setModelMarkers(r, "gorules", [{
|
|
19724
|
-
severity:
|
|
19795
|
+
severity: Ey.Error,
|
|
19725
19796
|
message: n,
|
|
19726
19797
|
startLineNumber: i.startLineNumber,
|
|
19727
19798
|
endLineNumber: i.endLineNumber,
|
|
@@ -19765,7 +19836,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19765
19836
|
theme: g === "dark" ? "vs-dark" : "light",
|
|
19766
19837
|
height: "100%",
|
|
19767
19838
|
options: {
|
|
19768
|
-
...
|
|
19839
|
+
...Oy,
|
|
19769
19840
|
readOnly: !0
|
|
19770
19841
|
}
|
|
19771
19842
|
}) : /* @__PURE__ */ V(Ki, {
|
|
@@ -19781,13 +19852,13 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19781
19852
|
theme: g === "dark" ? "vs-dark" : "light",
|
|
19782
19853
|
height: "100%",
|
|
19783
19854
|
options: {
|
|
19784
|
-
...
|
|
19855
|
+
...Oy,
|
|
19785
19856
|
readOnly: e || f !== "edit:full"
|
|
19786
19857
|
}
|
|
19787
19858
|
})
|
|
19788
19859
|
}), !t && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(Qi, {}), /* @__PURE__ */ V(Xi, {
|
|
19789
19860
|
minSize: 25,
|
|
19790
|
-
children: !t && /* @__PURE__ */ V(
|
|
19861
|
+
children: !t && /* @__PURE__ */ V(Sy, {
|
|
19791
19862
|
libraries: ag,
|
|
19792
19863
|
trace: o,
|
|
19793
19864
|
editor: S,
|
|
@@ -19797,7 +19868,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19797
19868
|
})] })]
|
|
19798
19869
|
})
|
|
19799
19870
|
}) });
|
|
19800
|
-
},
|
|
19871
|
+
}, Oy = {
|
|
19801
19872
|
automaticLayout: !0,
|
|
19802
19873
|
contextmenu: !1,
|
|
19803
19874
|
fontSize: 13,
|
|
@@ -19811,8 +19882,8 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19811
19882
|
horizontalScrollbarSize: 4,
|
|
19812
19883
|
horizontalSliderSize: 4
|
|
19813
19884
|
}
|
|
19814
|
-
},
|
|
19885
|
+
}, ky = /* @__PURE__ */ ua({ Function: () => Dy });
|
|
19815
19886
|
//#endregion
|
|
19816
|
-
export {
|
|
19887
|
+
export { Gv as AUTO_SYNC_DEBOUNCE_MS, ge as COLUMN_FIELD_TYPE_OPTIONS, Zd as CodeEditor, Ov as CustomFunctionTable, ue as CustomKind, me as DECISION_GRAPH_CONTENT_TYPE, Fv as DecisionGraph, dm as DecisionTable, gc as DictionaryProvider, Gp as DiffAutosizeTextArea, Wp as DiffCodeEditor, Xp as DiffIcon, Hp as DiffInput, zp as DiffRadio, Up as DiffSelect, Vp as DiffSwitch, Jh as Expression, Mf as ExpressionBuilder, sy as FixturesPanel, Dy as Function, _h as GraphDecisionNode, bh as GraphNode, Zv as GraphSimulator, dc as I18nProvider, a as INPUT_CONTRACT_VERSION, Dv as InstanceEditor, _c as JdmConfigProvider, Vs as MODE_EXTRAS, gh as NodeColor, oe as NodeKind, Lm as NodeTypeKind, ee as OUTPUT_FIELD_TYPE_OPTIONS, Lv as SimulatorEditor, Hg as TabRequest, jv as ToolbarAnchor, eh as addStrikethrough, de as anyNodeSchema, i as applySchemaTextToInputContract, th as buildDiffString, f as buildRequestExampleTemplateFromDefinitions, y as buildRequestSchemaFromDefinitions, t_ as calculateDiffGraph, kv as clusterToolbarItems, ud as codemirror, he as columnEnumSchema, O as columnFieldTypeSchema, rh as compareAndUnifyLists, nh as compareStringFields, h as computeExampleDrift, ay as computeGraphDiff, ce as contractExamplesToSources, Iv as createJdmNode, uc as createT, A as customNodeSchema, Us as darkTokens, _e as decisionModelSchema, ne as decisionNodeSchema, ie as decisionTableSchema, fe as edgeSchema, Ds as ensureWasmLoaded, le as expressionNodeSchema, k as functionNodeSchema, r as getRequestDefinitions, c as getRequestExampleSources, d as getRequestSchemaSourceValue, se as hasExampleDrift, ae as inputNodeSchema, ly as jsonSchemaToVariableType, Hs as lightTokens, p as migrateRequestExampleDataByDefinitions, D as nodeSchema, d_ as nodeSpecification, ye as normalizeRequestDefinitionOrders, w as normalizeRequestFieldKey, E as normalizeRequestJsonKeys, ve as outputFieldTypeSchema, xe as outputNodeSchema, r_ as processEdges, n_ as processNodes, g as readRequestInputContract, o as requestSchemaFingerprint, u as resolveRequestSchemaValue, od as setUdfCompletions, T as stringifyRequestSchemaValue, te as switchNodeSchema, s as updateRequestSchemaExamples, Hm as useDecisionGraphActions, Bm as useDecisionGraphListeners, Um as useDecisionGraphRaw, Vm as useDecisionGraphReferences, $ as useDecisionGraphState, hc as useDictionaries, Gm as useEdgeDiff, Xm as useGraphSerializer, Wm as useNodeDiff, $m as useNodeType, uh as usePersistentState, Kv as useSimulatorAutoSync, Z as useT, Zm as useTabSerializer, pc as useThemeMode, Os as useWasmReady, be as validationSchema, l as writeRequestInputContract };
|
|
19817
19888
|
|
|
19818
19889
|
//# sourceMappingURL=index.js.map
|