1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99641,8030,68566,e=>{"use strict";let t;e.s(["ZodAny",()=>cb,"ZodArray",()=>cz,"ZodBase64",()=>dX,"ZodBase64URL",()=>dH,"ZodBigInt",()=>cl,"ZodBigIntFormat",()=>cc,"ZodBoolean",()=>cs,"ZodCIDRv4",()=>dW,"ZodCIDRv6",()=>dG,"ZodCUID",()=>dz,"ZodCUID2",()=>dT,"ZodCatch",()=>ph,"ZodCodec",()=>p$,"ZodCustom",()=>pA,"ZodCustomStringFormat",()=>d2,"ZodDate",()=>cO,"ZodDefault",()=>ps,"ZodDiscriminatedUnion",()=>cL,"ZodE164",()=>d0,"ZodEmail",()=>dm,"ZodEmoji",()=>dS,"ZodEnum",()=>c1,"ZodExactOptional",()=>pr,"ZodFile",()=>c5,"ZodFunction",()=>pU,"ZodGUID",()=>dg,"ZodIPv4",()=>dM,"ZodIPv6",()=>dB,"ZodIntersection",()=>cJ,"ZodJWT",()=>d4,"ZodKSUID",()=>dC,"ZodLazy",()=>pZ,"ZodLiteral",()=>c2,"ZodMAC",()=>dF,"ZodMap",()=>cY,"ZodNaN",()=>pv,"ZodNanoID",()=>dO,"ZodNever",()=>cw,"ZodNonOptional",()=>pc,"ZodNull",()=>cy,"ZodNullable",()=>pn,"ZodNumber",()=>d7,"ZodNumberFormat",()=>ct,"ZodObject",()=>cU,"ZodOptional",()=>pe,"ZodPipe",()=>p_,"ZodPrefault",()=>pl,"ZodPreprocess",()=>pw,"ZodPromise",()=>pj,"ZodReadonly",()=>pI,"ZodRecord",()=>cq,"ZodSet",()=>cQ,"ZodString",()=>dc,"ZodStringFormat",()=>df,"ZodSuccess",()=>pf,"ZodSymbol",()=>cm,"ZodTemplateLiteral",()=>pE,"ZodTransform",()=>c8,"ZodTuple",()=>cV,"ZodType",()=>dl,"ZodULID",()=>dN,"ZodURL",()=>dk,"ZodUUID",()=>dy,"ZodUndefined",()=>cg,"ZodUnion",()=>cD,"ZodUnknown",()=>cx,"ZodVoid",()=>cS,"ZodXID",()=>dP,"ZodXor",()=>cR,"_ZodString",()=>dd,"_default",()=>pu,"_function",()=>pN,"any",()=>c$,"array",()=>cj,"base64",()=>dY,"base64url",()=>dQ,"bigint",()=>cd,"boolean",()=>cu,"catch",()=>pg,"check",()=>pP,"cidrv4",()=>dq,"cidrv6",()=>dK,"codec",()=>px,"cuid",()=>dj,"cuid2",()=>dU,"custom",()=>pD,"date",()=>cZ,"describe",()=>pM,"discriminatedUnion",()=>cF,"e164",()=>d1,"email",()=>dh,"emoji",()=>dE,"enum",()=>c4,"exactOptional",()=>pi,"file",()=>c3,"float32",()=>ci,"float64",()=>cn,"function",()=>pN,"guid",()=>dv,"hash",()=>d8,"hex",()=>d3,"hostname",()=>d5,"httpUrl",()=>dI,"instanceof",()=>pF,"int",()=>cr,"int32",()=>ca,"int64",()=>cp,"intersection",()=>cB,"invertCodec",()=>pk,"ipv4",()=>dL,"ipv6",()=>dV,"json",()=>pB,"jwt",()=>d6,"keyof",()=>cT,"ksuid",()=>dR,"lazy",()=>pz,"literal",()=>c9,"looseObject",()=>cP,"looseRecord",()=>cX,"mac",()=>dJ,"map",()=>cH,"meta",()=>pL,"nan",()=>py,"nanoid",()=>dZ,"nativeEnum",()=>c6,"never",()=>cI,"nonoptional",()=>pp,"null",()=>c_,"nullable",()=>pa,"nullish",()=>po,"number",()=>ce,"object",()=>cN,"optional",()=>pt,"partialRecord",()=>cK,"pipe",()=>pb,"prefault",()=>pd,"preprocess",()=>pV,"promise",()=>pT,"readonly",()=>pS,"record",()=>cG,"refine",()=>pC,"set",()=>c0,"strictObject",()=>cA,"string",()=>dp,"stringFormat",()=>d9,"stringbool",()=>pJ,"success",()=>pm,"superRefine",()=>pR,"symbol",()=>ch,"templateLiteral",()=>pO,"transform",()=>c7,"tuple",()=>cW,"uint32",()=>co,"uint64",()=>cf,"ulid",()=>dA,"undefined",()=>cv,"union",()=>cC,"unknown",()=>ck,"url",()=>dw,"uuid",()=>d_,"uuidv4",()=>db,"uuidv6",()=>d$,"uuidv7",()=>dx,"void",()=>cE,"xid",()=>dD,"xor",()=>cM],62201),e.s(["ZodISODate",()=>de,"ZodISODateTime",()=>l8,"ZodISODuration",()=>dn,"ZodISOTime",()=>dr,"date",()=>dt,"datetime",()=>l7,"duration",()=>da,"time",()=>di],49732);var r,i,n,a,o,s,u,l,d,c,p,f,m,h,g,v,y,_,b,$,x,k,w,I,S,E,O,Z,z,j,T,U,N,A,P,D,C,R,M,L,F,J,B,V,W,q,G,K,X,Y,H,Q,ee,et,er,ei,en,ea,eo,es,eu,el,ed=e.i(71645),ec=e.i(47167),ep=e.i(67034),ef="vercel.ai.error",em=Symbol.for(ef),eh=class e extends(l=Error,u=em,l){constructor({name:e,message:t,cause:r}){super(t),this[u]=!0,this.name=e,this.cause=r}static isInstance(t){return e.hasMarker(t,ef)}static hasMarker(e,t){let r=Symbol.for(t);return null!=e&&"object"==typeof e&&r in e&&"boolean"==typeof e[r]&&!0===e[r]}},eg="AI_APICallError",ev=`vercel.ai.error.${eg}`,ey=Symbol.for(ev),e_=class extends(c=eh,d=ey,c){constructor({message:e,url:t,requestBodyValues:r,statusCode:i,responseHeaders:n,responseBody:a,cause:o,isRetryable:s=null!=i&&(408===i||409===i||429===i||i>=500),data:u}){super({name:eg,message:e,cause:o}),this[d]=!0,this.url=t,this.requestBodyValues=r,this.statusCode=i,this.responseHeaders=n,this.responseBody=a,this.isRetryable=s,this.data=u}static isInstance(e){return eh.hasMarker(e,ev)}},eb="AI_EmptyResponseBodyError",e$=`vercel.ai.error.${eb}`,ex=Symbol.for(e$),ek=class extends(f=eh,p=ex,f){constructor({message:e="Empty response body"}={}){super({name:eb,message:e}),this[p]=!0}static isInstance(e){return eh.hasMarker(e,e$)}};function ew(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}var eI="AI_InvalidArgumentError",eS=`vercel.ai.error.${eI}`,eE=Symbol.for(eS),eO=class extends(h=eh,m=eE,h){constructor({message:e,cause:t,argument:r}){super({name:eI,message:e,cause:t}),this[m]=!0,this.argument=r}static isInstance(e){return eh.hasMarker(e,eS)}},eZ=Symbol.for("vercel.ai.error.AI_InvalidPromptError");Symbol.for("vercel.ai.error.AI_InvalidResponseDataError");var ez="AI_JSONParseError",ej=`vercel.ai.error.${ez}`,eT=Symbol.for(ej),eU=class extends(v=eh,g=eT,v){constructor({text:e,cause:t}){super({name:ez,message:`JSON parsing failed: Text: ${e}. 2Error message: ${ew(t)}`,cause:t}),this[g]=!0,this.text=e}static isInstance(e){return eh.hasMarker(e,ej)}},eN=Symbol.for("vercel.ai.error.AI_LoadAPIKeyError");Symbol.for("vercel.ai.error.AI_LoadSettingError");Symbol.for("vercel.ai.error.AI_NoContentGeneratedError");
2Symbol.for("vercel.ai.error.AI_NoSuchModelError");Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError");var eA="AI_TypeValidationError",eP=`vercel.ai.error.${eA}`,eD=Symbol.for(eP),eC=class e extends(_=eh,y=eD,_){constructor({value:e,cause:t,context:r}){let i="Type validation failed";if((null==r?void 0:r.field)&&(i+=` for ${r.field}`),(null==r?void 0:r.entityName)||(null==r?void 0:r.entityId)){i+=" (";const e=[];r.entityName&&e.push(r.entityName),r.entityId&&e.push(`id: "${r.entityId}"`),i+=e.join(", "),i+=")"}super({name:eA,message:`${i}: Value: ${JSON.stringify(e)}. 3Error message: ${ew(t)}`,cause:t}),this[y]=!0,this.value=e,this.context=r}static isInstance(e){return eh.hasMarker(e,eP)}static wrap({value:t,cause:r,context:i}){var n,a,o;return e.isInstance(r)&&r.value===t&&(null==(n=r.context)?void 0:n.field)===(null==i?void 0:i.field)&&(null==(a=r.context)?void 0:a.entityName)===(null==i?void 0:i.entityName)&&(null==(o=r.context)?void 0:o.entityId)===(null==i?void 0:i.entityId)?r:new e({value:t,cause:r,context:i})}},eR=Symbol.for("vercel.ai.error.AI_UnsupportedFunctionalityError");let eM=Object.freeze({status:"aborted"});function eL(e,t,r){function i(r,i){if(r._zod||Object.defineProperty(r,"_zod",{value:{def:i,constr:o,traits:new Set},enumerable:!1}),r._zod.traits.has(e))return;r._zod.traits.add(e),t(r,i);let n=o.prototype,a=Object.keys(n);for(let e=0;e<a.length;e++){let t=a[e];t in r||(r[t]=n[t].bind(r))}}let n=r?.Parent??Object;class a extends n{}function o(e){var t;let n=r?.Parent?new a:this;for(let r of(i(n,e),(t=n._zod).deferred??(t.deferred=[]),n._zod.deferred))r();return n}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(o,"init",{value:i}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}let eF=Symbol("zod_brand");class eJ extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class eB extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(b=globalThis).__zod_globalConfig??(b.__zod_globalConfig={});let eV=globalThis.__zod_globalConfig;function eW(e){return e&&Object.assign(eV,e),eV}function eq(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function eG(e,t="|"){return e.map(e=>to(e)).join(t)}function eK(e,t){return"bigint"==typeof t?t.toString():t}function eX(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function eY(e){return null==e}function eH(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function eQ(e,t){let r=e/t,i=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}e.s(["$ZodAsyncError",0,eJ,"$ZodEncodeError",0,eB,"$brand",0,eF,"$constructor",0,eL,"NEVER",0,eM,"config",0,eW,"globalConfig",0,eV],97753);let e0=Symbol("evaluating");function e1(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==e0)return void 0===i&&(i=e0,i=r()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function e4(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function e6(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function e2(e){return JSON.stringify(e)}function e9(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let e5="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function e3(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let e8=eX(()=>{if(eV.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function e7(e){if(!1===e3(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let r=t.prototype;return!1!==e3(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function te(e){return e7(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let tt=new Set(["string","number","symbol"]),tr=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ti(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function tn(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function ta(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function to(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function ts(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let tu={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},tl={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function td(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function tc(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function tp(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function tf(e){return"string"==typeof e?e:e?.message}function tm(e,t,r){let i=e.message?e.message:tf(e.inst?._zod.def?.error?.(e))??tf(t?.error?.(e))??tf(r.customError?.(e))??tf(r.localeError?.(e))??"Invalid input",{inst:n,continue:a,input
3:o,...s}=e;return s.path??(s.path=[]),s.message=i,t?.reportInput&&(s.input=o),s}function th(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function tg(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function tv(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";if(e&&Object.getPrototypeOf(e)!==Object.prototype&&"constructor"in e&&e.constructor)return e.constructor.name}return t}function ty(...e){let[t,r,i]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:i}:{...t}}function t_(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}function tb(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}e.s(["BIGINT_FORMAT_RANGES",0,tl,"Class",0,class{constructor(...e){}},"NUMBER_FORMAT_RANGES",0,tu,"aborted",0,td,"allowsEval",0,e8,"assert",0,function(e){},"assertEqual",0,function(e){return e},"assertIs",0,function(e){},"assertNever",0,function(e){throw Error("Unexpected value in exhaustive check")},"assertNotEqual",0,function(e){return e},"assignProp",0,e4,"base64ToUint8Array",0,t_,"base64urlToUint8Array",0,function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return t_(t+r)},"cached",0,eX,"captureStackTrace",0,e5,"cleanEnum",0,function(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])},"cleanRegex",0,eH,"clone",0,tn,"cloneDef",0,function(e){return e6(e._zod.def)},"createTransparentProxy",0,function(e){let t;return new Proxy({},{get:(r,i,n)=>(t??(t=e()),Reflect.get(t,i,n)),set:(r,i,n,a)=>(t??(t=e()),Reflect.set(t,i,n,a)),has:(r,i)=>(t??(t=e()),Reflect.has(t,i)),deleteProperty:(r,i)=>(t??(t=e()),Reflect.deleteProperty(t,i)),ownKeys:r=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(r,i)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)),defineProperty:(r,i,n)=>(t??(t=e()),Reflect.defineProperty(t,i,n))})},"defineLazy",0,e1,"esc",0,e2,"escapeRegex",0,ti,"explicitlyAborted",0,tc,"extend",0,function(e,t){if(!e7(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let r=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(r,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=e6(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return e4(this,"shape",r),r}});return tn(e,i)},"finalizeIssue",0,tm,"floatSafeRemainder",0,eQ,"getElementAtPath",0,function(e,t){return t?t.reduce((e,t)=>e?.[t],e):e},"getEnumValues",0,eq,"getLengthableOrigin",0,tg,"getParsedType",0,e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("u">typeof Map&&e instanceof Map)return"map";if("u">typeof Set&&e instanceof Set)return"set";if("u">typeof Date&&e instanceof Date)return"date";if("u">typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},"getSizableOrigin",0,th,"hexToUint8Array",0,function(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)r[e/2]=Number.parseInt(t.slice(e,e+2),16);return r},"isObject",0,e3,"isPlainObject",0,e7,"issue",0,ty,"joinValues",0,eG,"jsonStringifyReplacer",0,eK,"merge",0,function(e,t){if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=e6(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return e4(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return tn(e,r)},"mergeDefs",0,e6,"normalizeParams",0,ta,"nullish",0,eY,"numKeys",0,function(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t},"objectClone",0,function(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))},"omit",0,function(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let n=e6(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete i[e]}return e4(this,"shape",i),i},checks:[]});return tn(e,n)},"optionalKeys",0,ts,"parsedType",0,tv,"partial",0,function(e,t,r){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let n=e6(t._zod.def,{get shape(){let i=t._zod.def.shape,n={...i};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=e?new e({type:"optional",innerType:i[t]}):i[t])}else for(let t in i)n[t]=e?new e({type:"optional",innerType:i[t]}):i[t];return e4(this,"shape",n),n},checks:[]});return tn(t,n)},"pick",0,function(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let n=e6(e._zod.def,{get shape(){let e={};for(let i in t){if(!(i in r.shape))throw Error(`Unrecognized key: "${i}"`);t[i]&&(e[i]=r.shape[i])}return e4(this,"shape",e),e},checks:[]});return tn(e,n)}
3,"prefixIssues",0,tp,"primitiveTypes",0,tr,"promiseAllObject",0,function(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=e[i];return r})},"propertyKeyTypes",0,tt,"randomString",0,function(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r},"required",0,function(e,t,r){let i=e6(t._zod.def,{get shape(){let i=t._zod.def.shape,n={...i};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=new e({type:"nonoptional",innerType:i[t]}))}else for(let t in i)n[t]=new e({type:"nonoptional",innerType:i[t]});return e4(this,"shape",n),n}});return tn(t,i)},"safeExtend",0,function(e,t){if(!e7(t))throw Error("Invalid input to safeExtend: expected a plain object");let r=e6(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return e4(this,"shape",r),r}});return tn(e,r)},"shallowClone",0,te,"slugify",0,e9,"stringifyPrimitive",0,to,"uint8ArrayToBase64",0,tb,"uint8ArrayToBase64url",0,function(e){return tb(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},"uint8ArrayToHex",0,function(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")},"unwrapMessage",0,tf],22143);let t$=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,eK,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tx=eL("$ZodError",t$),tk=eL("$ZodError",t$,{Parent:Error});function tw(e,t=e=>e.message){let r={},i=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function tI(e,t=e=>e.message){let r={_errors:[]},i=(e,n=[])=>{for(let a of e.issues)if("invalid_union"===a.code&&a.errors.length)a.errors.map(e=>i({issues:e},[...n,...a.path]));else if("invalid_key"===a.code)i({issues:a.issues},[...n,...a.path]);else if("invalid_element"===a.code)i({issues:a.issues},[...n,...a.path]);else{let e=[...n,...a.path];if(0===e.length)r._errors.push(t(a));else{let i=r,n=0;for(;n<e.length;){let r=e[n];n===e.length-1?(i[r]=i[r]||{_errors:[]},i[r]._errors.push(t(a))):i[r]=i[r]||{_errors:[]},i=i[r],n++}}}};return i(e),r}function tS(e,t=e=>e.message){let r={errors:[]},i=(e,n=[])=>{var a,o;for(let s of e.issues)if("invalid_union"===s.code&&s.errors.length)s.errors.map(e=>i({issues:e},[...n,...s.path]));else if("invalid_key"===s.code)i({issues:s.issues},[...n,...s.path]);else if("invalid_element"===s.code)i({issues:s.issues},[...n,...s.path]);else{let e=[...n,...s.path];if(0===e.length){r.errors.push(t(s));continue}let i=r,u=0;for(;u<e.length;){let r=e[u],n=u===e.length-1;"string"==typeof r?(i.properties??(i.properties={}),(a=i.properties)[r]??(a[r]={errors:[]}),i=i.properties[r]):(i.items??(i.items=[]),(o=i.items)[r]??(o[r]={errors:[]}),i=i.items[r]),n&&i.errors.push(t(s)),u++}}};return i(e),r}function tE(e){let t=[];for(let r of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof r?t.push(`[${r}]`):"symbol"==typeof r?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function tO(e){let t=[];for(let r of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push(`â ${r.message}`),r.path?.length&&t.push(` â at ${tE(r.path)}`);return t.join("\n")}e.s(["$ZodError",0,tx,"$ZodRealError",0,tk,"flattenError",0,tw,"formatError",0,tI,"prettifyError",0,tO,"toDotPath",0,tE,"treeifyError",0,tS],74969);let tZ=e=>(t,r,i,n)=>{let a=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new eJ;if(o.issues.length){let t=new(n?.Err??e)(o.issues.map(e=>tm(e,a,eW())));throw e5(t,n?.callee),t}return o.value},tz=tZ(tk),tj=e=>async(t,r,i,n)=>{let a=i?{...i,async:!0}:{async:!0},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(n?.Err??e)(o.issues.map(e=>tm(e,a,eW())));throw e5(t,n?.callee),t}return o.value},tT=tj(tk),tU=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise)throw new eJ;return a.issues.length?{success:!1,error:new(e??tx)(a.issues.map(e=>tm(e,n,eW())))}:{success:!0,data:a.value}},tN=tU(tk),tA=e=>async(t,r,i)=>{let n=i?{...i,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>tm(e,n,eW())))}:{success:!0,data:a.value}}
3,tP=tA(tk),tD=e=>(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return tZ(e)(t,r,n)},tC=tD(tk),tR=e=>(t,r,i)=>tZ(e)(t,r,i),tM=tR(tk),tL=e=>async(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return tj(e)(t,r,n)},tF=tL(tk),tJ=e=>async(t,r,i)=>tj(e)(t,r,i),tB=tJ(tk),tV=e=>(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return tU(e)(t,r,n)},tW=tV(tk),tq=e=>(t,r,i)=>tU(e)(t,r,i),tG=tq(tk),tK=e=>async(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return tA(e)(t,r,n)},tX=tK(tk),tY=e=>async(t,r,i)=>tA(e)(t,r,i),tH=tY(tk);e.s(["_decode",0,tR,"_decodeAsync",0,tJ,"_encode",0,tD,"_encodeAsync",0,tL,"_parse",0,tZ,"_parseAsync",0,tj,"_safeDecode",0,tq,"_safeDecodeAsync",0,tY,"_safeEncode",0,tV,"_safeEncodeAsync",0,tK,"_safeParse",0,tU,"_safeParseAsync",0,tA,"decode",0,tM,"decodeAsync",0,tB,"encode",0,tC,"encodeAsync",0,tF,"parse",0,tz,"parseAsync",0,tT,"safeDecode",0,tG,"safeDecodeAsync",0,tH,"safeEncode",0,tW,"safeEncodeAsync",0,tX,"safeParse",0,tN,"safeParseAsync",0,tP],3108);let tQ=(e,t)=>{tx.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>tI(e,t)},flatten:{value:t=>tw(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,eK,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,eK,2)}},isEmpty:{get:()=>0===e.issues.length}})},t0=eL("ZodError",tQ),t1=eL("ZodError",tQ,{Parent:Error});e.s(["ZodError",0,t0,"ZodRealError",0,t1],21813);let t4=tZ(t1),t6=tj(t1),t2=tU(t1),t9=tA(t1),t5=tD(t1),t3=tR(t1),t8=tL(t1),t7=tJ(t1),re=tV(t1),rt=tq(t1),rr=tK(t1),ri=tY(t1);e.s(["decode",0,t3,"decodeAsync",0,t7,"encode",0,t5,"encodeAsync",0,t8,"parse",0,t4,"parseAsync",0,t6,"safeDecode",0,rt,"safeDecodeAsync",0,ri,"safeEncode",0,re,"safeEncodeAsync",0,rr,"safeParse",0,t2,"safeParseAsync",0,t9],364);let rn=Symbol("ZodOutput"),ra=Symbol("ZodInput");class ro{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];return this._map.set(e,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let i={...r,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function rs(){return new ro}($=globalThis).__zod_globalRegistry??($.__zod_globalRegistry=rs());let ru=globalThis.__zod_globalRegistry;function rl(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ru,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function rd(e,t,r={path:[],schemaPath:[]}){var i;let n=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let i={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,i);else{let r=o.schema,a=t.processors[n.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);a(e,t,r,i)}let a=e._zod.parent;a&&(o.ref||(o.ref=a),rd(a,t,i),t.seen.get(a).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(o.schema,u),"input"===t.io&&function e(t,r){let i=r??{seen:new Set};if(i.seen.has(t))return!1;i.seen.add(t);let n=t._zod.def;if("transform"===n.type)return!0;if("array"===n.type)return e(n.element,i);if("set"===n.type)return e(n.valueType,i);if("lazy"===n.type)return e(n.getter(),i);if("promise"===n.type||"optional"===n.type||"nonoptional"===n.type||"nullable"===n.type||"readonly"===n.type||"default"===n.type||"prefault"===n.type)return e(n.innerType,i);if("intersection"===n.type)return e(n.left,i)||e(n.right,i);if("record"===n.type||"map"===n.type)return e(n.keyType,i)||e(n.valueType,i);if("pipe"===n.type)return!!t._zod.traits.has("$ZodCodec")||e(n.in,i)||e(n.out,i);if("object"===n.type){for(let t in n.shape)if(e(n.shape[t],i))return!0;return!1}if("union"===n.type){for(let t of n.options)if(e(t,i))return!0;return!1}if("tuple"===n.type){for(let t of n.items)if(e(t,i))return!0;
3if(n.rest&&e(n.rest,i))return!0}return!1}(e)&&(delete o.schema.examples,delete o.schema.default),"input"===t.io&&"_prefault"in o.schema&&((i=o.schema).default??(i.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function rc(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let t of e.seen.entries()){let r=e.metadataRegistry.get(t[0])?.id;if(r){let e=i.get(r);if(e&&e!==t[0])throw Error(`Duplicate schema id "${r}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(r,t[0])}}let n=t=>{if(t[1].schema.$ref)return;let i=t[1],{ref:n,defId:a}=(t=>{let i="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let r=e.external.registry.get(t[0])?.id,n=e.external.uri??(e=>e);if(r)return{ref:n(r)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${n("__shared")}#/${i}/${a}`}}if(t[1]===r)return{ref:"#"};let n=`#/${i}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:n+a}})(t);i.def={...i.schema},a&&(i.defId=a);let o=i.schema;for(let e in o)delete o[e];o.$ref=n};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root> 4 5Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let r of e.seen.entries()){let i=r[1];if(t===r[0]){n(r);continue}if(e.external){let i=e.external.registry.get(r[0])?.id;if(t!==r[0]&&i){n(r);continue}}if(e.metadataRegistry.get(r[0])?.id||i.cycle||i.count>1&&"ref"===e.reused){n(r);continue}}}function rp(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let i=t=>{let r=e.seen.get(t);if(null===r.ref)return;let n=r.def??r.schema,a={...n},o=r.ref;if(r.ref=null,o){i(o);let r=e.seen.get(o),s=r.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(n.allOf=n.allOf??[],n.allOf.push(s)):Object.assign(n,s),Object.assign(n,a),t._zod.parent===o)for(let e in n)"$ref"!==e&&"allOf"!==e&&(e in a||delete n[e]);if(s.$ref&&r.def)for(let e in n)"$ref"!==e&&"allOf"!==e&&e in r.def&&JSON.stringify(n[e])===JSON.stringify(r.def[e])&&delete n[e]}let s=t._zod.parent;if(s&&s!==o){i(s);let t=e.seen.get(s);if(t?.schema.$ref&&(n.$ref=t.schema.$ref,t.def))for(let e in n)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(n[e])===JSON.stringify(t.def[e])&&delete n[e]}e.override({zodSchema:t,jsonSchema:n,path:r.path??[]})};for(let t of[...e.seen.entries()].reverse())i(t[0]);let n={};if("draft-2020-12"===e.target?n.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?n.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let r=e.external.registry.get(t)?.id;if(!r)throw Error("Schema is missing an `id` property");n.$id=e.external.uri(r)}Object.assign(n,r.def??r.schema);let a=e.metadataRegistry.get(t)?.id;void 0!==a&&n.id===a&&delete n.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&("draft-2020-12"===e.target?n.$defs=o:n.definitions=o);try{let r=JSON.parse(JSON.stringify(n));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:rm(t,"input",e.processors),output:rm(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch(e){throw Error("Error converting schema to JSON.")}}e.s(["$ZodRegistry",0,ro,"$input",0,ra,"$output",0,rn,"globalRegistry",0,ru,"registry",0,rs],25527);let rf=(e,t={})=>r=>{let i=rl({...r,processors:t});return rd(e,i),rc(i,e),rp(i,e)},rm=(e,t,r={})=>i=>{let{libraryOptions:n,target:a}=i??{},o=rl({...n??{},target:a,io:t,processors:r});return rd(e,o),rc(o,e),rp(o,e)};e.s(["createStandardJSONSchemaMethod",0,rm,"createToJSONSchemaMethod",0,rf,"extractDefs",0,rc,"finalize",0,rp,"initializeContext",0,rl,"process",0,rd],34966);let rh={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},rg=(e,t,r,i)=>{r.type="string";let{minimum:n,maximum:a,format:o,patterns:s,contentEncoding:u}=e._zod.bag;if("number"==typeof n&&(r.minLength=n),"number"==typeof a&&(r.maxLength=a),o&&(r.format=rh[o]??o,""===r.format&&delete r.format,"time"===o&&delete r.format),u&&(r.contentEncoding=u),s&&s.size>0){let e=[...s];1===e.length?r.pattern=e[0].source:e.length>1&&(r.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},rv=(e,t,r,i)=>{let{minimum:n,maximum:a,format:o,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;"string"==typeof o&&o.includes("int")?r.type="integer":r.type="number";let d="number"==typeof l&&l>=(n??-1/0),c="number"==typeof u&&u<=(a??1/0),p="draft-04"===t.target||"openapi-3.0"===t.target;d?p?(r.minimum=l,r.exclusiveMinimum=!0):r.exclusiveMinimum=l:"number"==typeof n&&(r.minimum=n),c?p?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u:"number"==typeof a&&(r.maximum=a),"number"==typeof s&&(r.multipleOf=s)},ry=(e,t,r,i)=>{r.type="boolean"},r_=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema")},rb=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema")},r$=(e,t,r,i)=>{"openapi-3.0"===t.target?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},rx=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema")},rk=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Void cannot be represented in JSON Schema")},rw=(e,t,r,i)=>{r.not={}},rI=(e,t,r,i)=>{},rS=(e,t,r,i)=>{}
5,rE=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")},rO=(e,t,r,i)=>{let n=eq(e._zod.def.entries);n.every(e=>"number"==typeof e)&&(r.type="number"),n.every(e=>"string"==typeof e)&&(r.type="string"),r.enum=n},rZ=(e,t,r,i)=>{let n=e._zod.def,a=[];for(let e of n.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else a.push(Number(e));else a.push(e);if(0===a.length);else if(1===a.length){let e=a[0];r.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?r.enum=[e]:r.const=e}else a.every(e=>"number"==typeof e)&&(r.type="number"),a.every(e=>"string"==typeof e)&&(r.type="string"),a.every(e=>"boolean"==typeof e)&&(r.type="boolean"),a.every(e=>null===e)&&(r.type="null"),r.enum=a},rz=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("NaN cannot be represented in JSON Schema")},rj=(e,t,r,i)=>{let n=e._zod.pattern;if(!n)throw Error("Pattern not found in template literal");r.type="string",r.pattern=n.source},rT=(e,t,r,i)=>{let n={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:o,mime:s}=e._zod.bag;void 0!==a&&(n.minLength=a),void 0!==o&&(n.maxLength=o),s?1===s.length?(n.contentMediaType=s[0],Object.assign(r,n)):(Object.assign(r,n),r.anyOf=s.map(e=>({contentMediaType:e}))):Object.assign(r,n)},rU=(e,t,r,i)=>{r.type="boolean"},rN=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")},rA=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")},rP=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")},rD=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Map cannot be represented in JSON Schema")},rC=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Set cannot be represented in JSON Schema")},rR=(e,t,r,i)=>{let n=e._zod.def,{minimum:a,maximum:o}=e._zod.bag;"number"==typeof a&&(r.minItems=a),"number"==typeof o&&(r.maxItems=o),r.type="array",r.items=rd(n.element,t,{...i,path:[...i.path,"items"]})},rM=(e,t,r,i)=>{let n=e._zod.def;r.type="object",r.properties={};let a=n.shape;for(let e in a)r.properties[e]=rd(a[e],t,{...i,path:[...i.path,"properties",e]});let o=new Set([...new Set(Object.keys(a))].filter(e=>{let r=n.shape[e]._zod;return"input"===t.io?void 0===r.optin:void 0===r.optout}));o.size>0&&(r.required=Array.from(o)),n.catchall?._zod.def.type==="never"?r.additionalProperties=!1:n.catchall?n.catchall&&(r.additionalProperties=rd(n.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):"output"===t.io&&(r.additionalProperties=!1)},rL=(e,t,r,i)=>{let n=e._zod.def,a=!1===n.inclusive,o=n.options.map((e,r)=>rd(e,t,{...i,path:[...i.path,a?"oneOf":"anyOf",r]}));a?r.oneOf=o:r.anyOf=o},rF=(e,t,r,i)=>{let n=e._zod.def,a=rd(n.left,t,{...i,path:[...i.path,"allOf",0]}),o=rd(n.right,t,{...i,path:[...i.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length;r.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},rJ=(e,t,r,i)=>{let n=e._zod.def;r.type="array";let a="draft-2020-12"===t.target?"prefixItems":"items",o="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",s=n.items.map((e,r)=>rd(e,t,{...i,path:[...i.path,a,r]})),u=n.rest?rd(n.rest,t,{...i,path:[...i.path,o,..."openapi-3.0"===t.target?[n.items.length]:[]]}):null;"draft-2020-12"===t.target?(r.prefixItems=s,u&&(r.items=u)):"openapi-3.0"===t.target?(r.items={anyOf:s},u&&r.items.anyOf.push(u),r.minItems=s.length,u||(r.maxItems=s.length)):(r.items=s,u&&(r.additionalItems=u));let{minimum:l,maximum:d}=e._zod.bag;"number"==typeof l&&(r.minItems=l),"number"==typeof d&&(r.maxItems=d)},rB=(e,t,r,i)=>{let n=e._zod.def;r.type="object";let a=n.keyType,o=a._zod.bag,s=o?.patterns;if("loose"===n.mode&&s&&s.size>0){let e=rd(n.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});for(let t of(r.patternProperties={},s))r.patternProperties[t.source]=e}
5else("draft-07"===t.target||"draft-2020-12"===t.target)&&(r.propertyNames=rd(n.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=rd(n.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let u=a._zod.values;if(u){let e=[...u].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(r.required=e)}},rV=(e,t,r,i)=>{let n=e._zod.def,a=rd(n.innerType,t,i),o=t.seen.get(e);"openapi-3.0"===t.target?(o.ref=n.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},rW=(e,t,r,i)=>{let n=e._zod.def;rd(n.innerType,t,i),t.seen.get(e).ref=n.innerType},rq=(e,t,r,i)=>{let n=e._zod.def;rd(n.innerType,t,i),t.seen.get(e).ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},rG=(e,t,r,i)=>{let n=e._zod.def;rd(n.innerType,t,i),t.seen.get(e).ref=n.innerType,"input"===t.io&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},rK=(e,t,r,i)=>{let n,a=e._zod.def;rd(a.innerType,t,i),t.seen.get(e).ref=a.innerType;try{n=a.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=n},rX=(e,t,r,i)=>{let n=e._zod.def,a=n.in._zod.traits.has("$ZodTransform"),o="input"===t.io?a?n.out:n.in:n.out;rd(o,t,i),t.seen.get(e).ref=o},rY=(e,t,r,i)=>{let n=e._zod.def;rd(n.innerType,t,i),t.seen.get(e).ref=n.innerType,r.readOnly=!0},rH=(e,t,r,i)=>{let n=e._zod.def;rd(n.innerType,t,i),t.seen.get(e).ref=n.innerType},rQ=(e,t,r,i)=>{let n=e._zod.def;rd(n.innerType,t,i),t.seen.get(e).ref=n.innerType},r0=(e,t,r,i)=>{let n=e._zod.innerType;rd(n,t,i),t.seen.get(e).ref=n},r1={string:rg,number:rv,boolean:ry,bigint:r_,symbol:rb,null:r$,undefined:rx,void:rk,never:rw,any:rI,unknown:rS,date:rE,enum:rO,literal:rZ,nan:rz,template_literal:rj,file:rT,success:rU,custom:rN,function:rA,transform:rP,map:rD,set:rC,array:rR,object:rM,union:rL,intersection:rF,tuple:rJ,record:rB,nullable:rV,nonoptional:rW,default:rq,prefault:rG,catch:rK,pipe:rX,readonly:rY,promise:rH,optional:rQ,lazy:r0};function r4(e,t){if("_idmap"in e){let r=rl({...t,processors:r1}),i={};
5for(let t of e._idmap.entries()){let[e,i]=t;rd(i,r)}let n={};for(let a of(r.external={registry:e,uri:t?.uri,defs:i},e._idmap.entries())){let[e,t]=a;rc(r,t),n[e]=rp(r,t)}return Object.keys(i).length>0&&(n.__shared={["draft-2020-12"===r.target?"$defs":"definitions"]:i}),{schemas:n}}let r=rl({...t,processors:r1});return rd(e,r),rc(r,e),rp(r,e)}(r=x||(x={})).assertEqual=e=>{},r.assertIs=function(e){},r.assertNever=function(e){throw Error()},r.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},r.getValidEnumValues=e=>{let t=r.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),i={};for(let r of t)i[r]=e[r];return r.objectValues(i)},r.objectValues=e=>r.objectKeys(e).map(function(t){return e[t]}),r.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},r.find=(e,t)=>{for(let r of e)if(t(r))return r},r.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,r.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},r.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(k||(k={})).mergeShapes=(e,t)=>({...e,...t});let r6=x.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),r2=e=>{switch(typeof e){case"undefined":return r6.undefined;case"string":return r6.string;case"number":return Number.isNaN(e)?r6.nan:r6.number;case"boolean":return r6.boolean;case"function":return r6.function;case"bigint":return r6.bigint;case"symbol":return r6.symbol;case"object":if(Array.isArray(e))return r6.array;if(null===e)return r6.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return r6.promise;if("u">typeof Map&&e instanceof Map)return r6.map;if("u">typeof Set&&e instanceof Set)return r6.set;if("u">typeof Date&&e instanceof Date)return r6.date;return r6.object;default:return r6.unknown}}
5,r9=x.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class r5 extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},i=e=>{for(let n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(i);else if("invalid_return_type"===n.code)i(n.returnTypeError);else if("invalid_arguments"===n.code)i(n.argumentsError);else if(0===n.path.length)r._errors.push(t(n));else{let e=r,i=0;for(;i<n.path.length;){let r=n.path[i];i===n.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(n))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(this),r}static assert(e){if(!(e instanceof r5))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,x.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t=Object.create(null),r=[];for(let i of this.issues)if(i.path.length>0){let r=i.path[0];t[r]=t[r]||[],t[r].push(e(i))}else r.push(e(i));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}r5.create=e=>new r5(e);let r3=(e,t)=>{let r;switch(e.code){case r9.invalid_type:r=e.received===r6.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case r9.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,x.jsonStringifyReplacer)}`;break;case r9.unrecognized_keys:r=`Unrecognized key(s) in object: ${x.joinValues(e.keys,", ")}`;break;case r9.invalid_union:r="Invalid input";break;case r9.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${x.joinValues(e.options)}`;break;case r9.invalid_enum_value:r=`Invalid enum value. Expected ${x.joinValues(e.options)}, received '${e.received}'`;break;case r9.invalid_arguments:r="Invalid function arguments";break;case r9.invalid_return_type:r="Invalid function return type";break;case r9.invalid_date:r="Invalid date";break;case r9.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:x.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case r9.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case r9.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case r9.custom:r="Invalid input";break;
5case r9.invalid_intersection_types:r="Intersection results could not be merged";break;case r9.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case r9.not_finite:r="Number must be finite";break;default:r=t.defaultError,x.assertNever(e)}return{message:r}};(i=w||(w={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},i.toString=e=>"string"==typeof e?e:e?.message;function r8(e,t){let r=(e=>{let{data:t,path:r,errorMaps:i,issueData:n}=e,a=[...r,...n.path||[]],o={...n,path:a};if(void 0!==n.message)return{...n,path:a,message:n.message};let s="";for(let e of i.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...n,path:a,message:s}})({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r3,void 0].filter(e=>!!e)});e.common.issues.push(r)}class r7{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let i of t){if("aborted"===i.status)return ie;"dirty"===i.status&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,i=await e.value;r.push({key:t,value:i})}return r7.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let i of t){let{key:t,value:n}=i;if("aborted"===t.status||"aborted"===n.status)return ie;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==n.value||i.alwaysSet)&&(r[t.value]=n.value)}return{status:e.value,value:r}}}let ie=Object.freeze({status:"aborted"}),it=e=>({status:"dirty",value:e}),ir=e=>({status:"valid",value:e}),ii=e=>"u">typeof Promise&&e instanceof Promise;
vendor: 42,493 bytes, line 5
5class ia{constructor(e,t,r,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let io=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new r5(e.common.issues);return this._error=t,this._error}}};function is(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:n}=e;if(t&&(r||i))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:n}:{errorMap:(t,n)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??n.defaultError}:void 0===n.data?{message:a??i??n.defaultError}:"invalid_type"!==t.code?{message:n.defaultError}:{message:a??r??n.defaultError}},description:n}}class iu{get description(){return this._def.description}_getType(e){return r2(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:r2(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new r7,ctx:{common:e.parent.common,data:e.data,parsedType:r2(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(ii(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:r2(e)},i=this._parseSync({data:e,path:r.path,parent:r});return io(r,i)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:r2(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return"valid"===r.status?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:r2(e)},i=this._parse({data:e,path:r.path,parent:r});return io(r,await (ii(i)?i:Promise.resolve(i)))}refine(e,t){return this._refinement((r,i)=>{let n=e(r),a=()=>i.addIssue({code:r9.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&n instanceof Promise?n.then(e=>!!e||(a(),!1)):!!n||(a(),!1)})}refinement(e,t){return this._refinement((r,i)=>!!e(r)||(i.addIssue("function"==typeof t?t(r,i):t),!1))}_refinement(e){return new iH({schema:this,typeName:I.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return iQ.create(this,this._def)}nullable(){return i0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return iR.create(this)}promise(){return iY.create(this,this._def)}or(e){return iL.create([this,e],this._def)}and(e){return iF.create(this,e,this._def)}transform(e){return new iH({...is(this._def),schema:this,typeName:I.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new i1({...is(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:I.ZodDefault})}brand(){return new i2({typeName:I.ZodBranded,type:this,...is(this._def)})}catch(e){return new i4({...is(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:I.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return i9.create(this,e)}readonly(){return i5.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let il=/^c[^\s-]{8,}$/i,id=/^[0-9a-z]+$/,ic=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ip=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,im=/^[a-z0-9_-]{21}$/i,ih=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ig=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,iv=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,iy=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,i_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ib=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,i$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ix=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ik=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,iw="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",iI=RegExp(`^${iw}$`);function iS(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}class iE extends iu{_parse(e){var r,i,n,a;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==r6.string){let t=this._getOrReturnCtx(e);return r8(t,{code:r9.invalid_type,expected:r6.string,received:t.parsedType}),ie}let s=new r7;for(let u of this._def.checks)if("min"===u.kind)e.data.length<u.value&&(r8(o=this._getOrReturnCtx(e,o),{code:r9.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),s.dirty());else if("max"===u.kind)e.data.length>u.value&&(r8(o=this._getOrReturnCtx(e,o),{code:r9.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),s.dirty());else if("length"===u.kind){let t=e.data.length>u.value,r=e.data.length<u.value;(t||r)&&(o=this._getOrReturnCtx(e,o),t?r8(o,{code:r9.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):r&&r8(o,{code:r9.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),s.dirty())}else if("email"===u.kind)iv.test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{validation:"email",code:r9.invalid_string,message:u.message}),s.dirty());else if("emoji"===u.kind)t||(t=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),t.test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:r9.invalid_string,message:u.message}),s.dirty());else if("uuid"===u.kind)ip.test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:r9.invalid_string,message:u.message}),s.dirty());else if("nanoid"===u.kind)im.test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:r9.invalid_string,message:u.message}),s.dirty());else if("cuid"===u.kind)il.test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:r9.invalid_string,message:u.message}),s.dirty());else if("cuid2"===u.kind)id.test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:r9.invalid_string,message:u.message}),s.dirty());else if("ulid"===u.kind)ic.test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:r9.invalid_string,message:u.message}),s.dirty());else if("url"===u.kind)try{new URL(e.data)}catch{r8(o=this._getOrReturnCtx(e,o),{validation:"url",code:r9.invalid_string,message:u.message}),s.dirty()}else"regex"===u.kind?(u.regex.lastIndex=0,u.regex.test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{validation:"regex",code:r9.invalid_string,message:u.message}),s.dirty())):"trim"===u.kind?e.data=e.data.trim():"includes"===u.kind?e.data.includes(u.value,u.position)||(r8(o=this._getOrReturnCtx(e,o),{code:r9.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),s.dirty()):"toLowerCase"===u.kind?e.data=e.data.toLowerCase():"toUpperCase"===u.kind?e.data=e.data.toUpperCase():"startsWith"===u.kind?e.data.startsWith(u.value)||(r8(o=this._getOrReturnCtx(e,o),{code:r9.invalid_string,validation:{startsWith:u.value},message:u.message}),s.dirty()):"endsWith"===u.kind?e.data.endsWith(u.value)||(r8(o=this._getOrReturnCtx(e,o),{code:r9.invalid_string,validation:{endsWith:u.value},message:u.message}),s.dirty()):"datetime"===u.kind?(function(e){let t=`${iw}T${iS(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)})(u).test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{code:r9.invalid_string,validation:"datetime",message:u.message}),s.dirty()):"date"===u.kind?iI.test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{code:r9.invalid_string,validation:"date",message:u.message}),s.dirty()):"time"===u.kind?RegExp(`^${iS(u)}$`).test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{code:r9.invalid_string,validation:"time",message:u.message}),s.dirty()):"duration"===u.kind?ig.test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{validation:"duration",code:r9.invalid_string,message:u.message}),s.dirty()):"ip"===u.kind?(r=e.data,!(("v4"===(i=u.version)||!i)&&iy.test(r)||("v6"===i||!i)&&ib.test(r))&&1&&(r8(o=this._getOrReturnCtx(e,o),{validation:"ip",code:r9.invalid_string,message:u.message}),s.dirty())):"jwt"===u.kind?!function(e,t){if(!ih.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let i=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(i));if("object"!=typeof n||null===n||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)return!1;return!0}catch{return!1}}(e.data,u.alg)&&(r8(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:r9.invalid_string,message:u.message}),s.dirty()):"cidr"===u.kind?(n=e.data,!(("v4"===(a=u.version)||!a)&&i_.test(n)||("v6"===a||!a)&&i$.test(n))&&1&&(r8(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:r9.invalid_string,message:u.message}),s.dirty())):"base64"===u.kind?ix.test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{validation:"base64",code:r9.invalid_string,message:u.message}),s.dirty()):"base64url"===u.kind?ik.test(e.data)||(r8(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:r9.invalid_string,message:u.message}),s.dirty()):x.assertNever(u);return{status:s.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:r9.invalid_string,...w.errToObj(r)})}_addCheck(e){return new iE({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...w.errToObj(e)})}url(e){return this._addCheck({kind:"url",...w.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...w.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...w.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...w.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...w.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...w.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...w.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...w.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...w.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...w.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...w.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...w.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...w.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...w.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...w.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...w.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...w.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...w.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...w.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...w.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...w.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...w.errToObj(t)})}nonempty(e){return this.min(1,w.errToObj(e))}trim(){return new iE({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new iE({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new iE({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}iE.create=e=>new iE({checks:[],typeName:I.ZodString,coerce:e?.coerce??!1,...is(e)});class iO extends iu{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==r6.number){let t=this._getOrReturnCtx(e);return r8(t,{code:r9.invalid_type,expected:r6.number,received:t.parsedType}),ie}let r=new r7;for(let i of this._def.checks)"int"===i.kind?x.isInteger(e.data)||(r8(t=this._getOrReturnCtx(e,t),{code:r9.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r8(t=this._getOrReturnCtx(e,t),{code:r9.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r8(t=this._getOrReturnCtx(e,t),{code:r9.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):"multipleOf"===i.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i;return Number.parseInt(e.toFixed(n).replace(".",""))%Number.parseInt(t.toFixed(n).replace(".",""))/10**n}(e.data,i.value)&&(r8(t=this._getOrReturnCtx(e,t),{code:r9.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(r8(t=this._getOrReturnCtx(e,t),{code:r9.not_finite,message:i.message}),r.dirty()):x.assertNever(i);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,w.toString(t))}gt(e,t){return this.setLimit("min",e,!1,w.toString(t))}lte(e,t){return this.setLimit("max",e,!0,w.toString(t))}lt(e,t){return this.setLimit("max",e,!1,w.toString(t))}setLimit(e,t,r,i){return new iO({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:w.toString(i)}]})}_addCheck(e){return new iO({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:w.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:w.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:w.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:w.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:w.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:w.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:w.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:w.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:w.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&x.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}iO.create=e=>new iO({checks:[],typeName:I.ZodNumber,coerce:e?.coerce||!1,...is(e)});class iZ extends iu{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==r6.bigint)return this._getInvalidInput(e);let r=new r7;for(let i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r8(t=this._getOrReturnCtx(e,t),{code:r9.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r8(t=this._getOrReturnCtx(e,t),{code:r9.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(r8(t=this._getOrReturnCtx(e,t),{code:r9.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):x.assertNever(i);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return r8(t,{code:r9.invalid_type,expected:r6.bigint,received:t.parsedType}),ie}gte(e,t){return this.setLimit("min",e,!0,w.toString(t))}gt(e,t){return this.setLimit("min",e,!1,w.toString(t))}lte(e,t){return this.setLimit("max",e,!0,w.toString(t))}lt(e,t){return this.setLimit("max",e,!1,w.toString(t))}setLimit(e,t,r,i){return new iZ({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:w.toString(i)}]})}_addCheck(e){return new iZ({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:w.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:w.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:w.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:w.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:w.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}iZ.create=e=>new iZ({checks:[],typeName:I.ZodBigInt,coerce:e?.coerce??!1,...is(e)});class iz extends iu{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==r6.boolean){let t=this._getOrReturnCtx(e);return r8(t,{code:r9.invalid_type,expected:r6.boolean,received:t.parsedType}),ie}return ir(e.data)}}iz.create=e=>new iz({typeName:I.ZodBoolean,coerce:e?.coerce||!1,...is(e)});class ij extends iu{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==r6.date){let t=this._getOrReturnCtx(e);return r8(t,{code:r9.invalid_type,expected:r6.date,received:t.parsedType}),ie}if(Number.isNaN(e.data.getTime()))return r8(this._getOrReturnCtx(e),{code:r9.invalid_date}),ie;let r=new r7;for(let i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(r8(t=this._getOrReturnCtx(e,t),{code:r9.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(r8(t=this._getOrReturnCtx(e,t),{code:r9.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):x.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ij({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:w.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:w.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}ij.create=e=>new ij({checks:[],coerce:e?.coerce||!1,typeName:I.ZodDate,...is(e)});class iT extends iu{_parse(e){if(this._getType(e)!==r6.symbol){let t=this._getOrReturnCtx(e);return r8(t,{code:r9.invalid_type,expected:r6.symbol,received:t.parsedType}),ie}return ir(e.data)}}iT.create=e=>new iT({typeName:I.ZodSymbol,...is(e)});class iU extends iu{_parse(e){if(this._getType(e)!==r6.undefined){let t=this._getOrReturnCtx(e);return r8(t,{code:r9.invalid_type,expected:r6.undefined,received:t.parsedType}),ie}return ir(e.data)}}iU.create=e=>new iU({typeName:I.ZodUndefined,...is(e)});class iN extends iu{_parse(e){if(this._getType(e)!==r6.null){let t=this._getOrReturnCtx(e);return r8(t,{code:r9.invalid_type,expected:r6.null,received:t.parsedType}),ie}return ir(e.data)}}iN.create=e=>new iN({typeName:I.ZodNull,...is(e)});class iA extends iu{constructor(){super(...arguments),this._any=!0}_parse(e){return ir(e.data)}}iA.create=e=>new iA({typeName:I.ZodAny,...is(e)});class iP extends iu{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ir(e.data)}}iP.create=e=>new iP({typeName:I.ZodUnknown,...is(e)});class iD extends iu{_parse(e){let t=this._getOrReturnCtx(e);return r8(t,{code:r9.invalid_type,expected:r6.never,received:t.parsedType}),ie}}iD.create=e=>new iD({typeName:I.ZodNever,...is(e)});class iC extends iu{_parse(e){if(this._getType(e)!==r6.undefined){let t=this._getOrReturnCtx(e);return r8(t,{code:r9.invalid_type,expected:r6.void,received:t.parsedType}),ie}return ir(e.data)}}iC.create=e=>new iC({typeName:I.ZodVoid,...is(e)});class iR extends iu{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),i=this._def;if(t.parsedType!==r6.array)return r8(t,{code:r9.invalid_type,expected:r6.array,received:t.parsedType}),ie;if(null!==i.exactLength){let e=t.data.length>i.exactLength.value,n=t.data.length<i.exactLength.value;(e||n)&&(r8(t,{code:e?r9.too_big:r9.too_small,minimum:n?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(r8(t,{code:r9.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(r8(t,{code:r9.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>i.type._parseAsync(new ia(t,e,t.path,r)))).then(e=>r7.mergeArray(r,e));let n=[...t.data].map((e,r)=>i.type._parseSync(new ia(t,e,t.path,r)));return r7.mergeArray(r,n)}get element(){return this._def.type}min(e,t){return new iR({...this._def,minLength:{value:e,message:w.toString(t)}})}max(e,t){return new iR({...this._def,maxLength:{value:e,message:w.toString(t)}})}length(e,t){return new iR({...this._def,exactLength:{value:e,message:w.toString(t)}})}nonempty(e){return this.min(1,e)}}iR.create=(e,t)=>new iR({type:e,minLength:null,maxLength:null,exactLength:null,typeName:I.ZodArray,...is(t)});class iM extends iu{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=x.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==r6.object){let t=this._getOrReturnCtx(e);return r8(t,{code:r9.invalid_type,expected:r6.object,received:t.parsedType}),ie}let{status:t,ctx:r}=this._processInputParams(e),{shape:i,keys:n}=this._getCached(),a=[];if(!(this._def.catchall instanceof iD&&"strip"===this._def.unknownKeys))for(let e in r.data)n.includes(e)||a.push(e);let o=[];for(let e of n){let t=i[e],n=r.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new ia(r,n,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof iD){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&(r8(r,{code:r9.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let i=r.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new ia(r,i,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let r=await t.key,i=await t.value;e.push({key:r,value:i,alwaysSet:t.alwaysSet})}return e}).then(e=>r7.mergeObjectSync(t,e)):r7.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return w.errToObj,new iM({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let i=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:w.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new iM({...this._def,unknownKeys:"strip"})}passthrough(){return new iM({...this._def,unknownKeys:"passthrough"})}extend(e){return new iM({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new iM({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:I.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new iM({...this._def,catchall:e})}pick(e){let t={};for(let r of x.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new iM({...this._def,shape:()=>t})}omit(e){let t={};for(let r of x.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new iM({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof iM){let r={};for(let i in t.shape){let n=t.shape[i];r[i]=iQ.create(e(n))}return new iM({...t._def,shape:()=>r})}if(t instanceof iR)return new iR({...t._def,type:e(t.element)});if(t instanceof iQ)return iQ.create(e(t.unwrap()));if(t instanceof i0)return i0.create(e(t.unwrap()));if(t instanceof iJ)return iJ.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of x.objectKeys(this.shape)){let i=this.shape[r];e&&!e[r]?t[r]=i:t[r]=i.optional()}return new iM({...this._def,shape:()=>t})}required(e){let t={};for(let r of x.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof iQ;)e=e._def.innerType;t[r]=e}return new iM({...this._def,shape:()=>t})}keyof(){return iG(x.objectKeys(this.shape))}}iM.create=(e,t)=>new iM({shape:()=>e,unknownKeys:"strip",catchall:iD.create(),typeName:I.ZodObject,...is(t)}),iM.strictCreate=(e,t)=>new iM({shape:()=>e,unknownKeys:"strict",catchall:iD.create(),typeName:I.ZodObject,...is(t)}),iM.lazycreate=(e,t)=>new iM({shape:e,unknownKeys:"strip",catchall:iD.create(),typeName:I.ZodObject,...is(t)});class iL extends iu{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new r5(e.ctx.common.issues));return r8(t,{code:r9.invalid_union,unionErrors:r}),ie});{let e,i=[];for(let n of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=n._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&i.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let n=i.map(e=>new r5(e));return r8(t,{code:r9.invalid_union,unionErrors:n}),ie}}get options(){return this._def.options}}iL.create=(e,t)=>new iL({options:e,typeName:I.ZodUnion,...is(t)});class iF extends iu{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=(e,i)=>{if("aborted"===e.status||"aborted"===i.status)return ie;let n=function e(t,r){let i=r2(t),n=r2(r);if(t===r)return{valid:!0,data:t};if(i===r6.object&&n===r6.object){let i=x.objectKeys(r),n=x.objectKeys(t).filter(e=>-1!==i.indexOf(e)),a={...t,...r};for(let i of n){let n=e(t[i],r[i]);if(!n.valid)return{valid:!1};a[i]=n.data}return{valid:!0,data:a}}if(i===r6.array&&n===r6.array){if(t.length!==r.length)return{valid:!1};let i=[];for(let n=0;n<t.length;n++){let a=e(t[n],r[n]);if(!a.valid)return{valid:!1};i.push(a.data)}return{valid:!0,data:i}}if(i===r6.date&&n===r6.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,i.value);return n.valid?(("dirty"===e.status||"dirty"===i.status)&&t.dirty(),{status:t.value,value:n.data}):(r8(r,{code:r9.invalid_intersection_types}),ie)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>i(e,t)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}iF.create=(e,t,r)=>new iF({left:e,right:t,typeName:I.ZodIntersection,...is(r)});class iJ extends iu{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==r6.array)return r8(r,{code:r9.invalid_type,expected:r6.array,received:r.parsedType}),ie;if(r.data.length<this._def.items.length)return r8(r,{code:r9.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ie;!this._def.rest&&r.data.length>this._def.items.length&&(r8(r,{code:r9.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...r.data].map((e,t)=>{let i=this._def.items[t]||this._def.rest;return i?i._parse(new ia(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(i).then(e=>r7.mergeArray(t,e)):r7.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new iJ({...this._def,rest:e})}}iJ.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new iJ({items:e,typeName:I.ZodTuple,rest:null,...is(t)})};class iB extends iu{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==r6.map)return r8(r,{code:r9.invalid_type,expected:r6.map,received:r.parsedType}),ie;let i=this._def.keyType,n=this._def.valueType,a=[...r.data.entries()].map(([e,t],a)=>({key:i._parse(new ia(r,e,r.path,[a,"key"])),value:n._parse(new ia(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of a){let i=await r.key,n=await r.value;if("aborted"===i.status||"aborted"===n.status)return ie;("dirty"===i.status||"dirty"===n.status)&&t.dirty(),e.set(i.value,n.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of a){let i=r.key,n=r.value;if("aborted"===i.status||"aborted"===n.status)return ie;("dirty"===i.status||"dirty"===n.status)&&t.dirty(),e.set(i.value,n.value)}return{status:t.value,value:e}}}}iB.create=(e,t,r)=>new iB({valueType:t,keyType:e,typeName:I.ZodMap,...is(r)});class iV extends iu{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==r6.set)return r8(r,{code:r9.invalid_type,expected:r6.set,received:r.parsedType}),ie;let i=this._def;null!==i.minSize&&r.data.size<i.minSize.value&&(r8(r,{code:r9.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&r.data.size>i.maxSize.value&&(r8(r,{code:r9.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let n=this._def.valueType;function a(e){let r=new Set;for(let i of e){if("aborted"===i.status)return ie;"dirty"===i.status&&t.dirty(),r.add(i.value)}return{status:t.value,value:r}}let o=[...r.data.values()].map((e,t)=>n._parse(new ia(r,e,r.path,t)));return r.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new iV({...this._def,minSize:{value:e,message:w.toString(t)}})}max(e,t){return new iV({...this._def,maxSize:{value:e,message:w.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}iV.create=(e,t)=>new iV({valueType:e,minSize:null,maxSize:null,typeName:I.ZodSet,...is(t)});class iW extends iu{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}iW.create=(e,t)=>new iW({getter:e,typeName:I.ZodLazy,...is(t)});class iq extends iu{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return r8(t,{received:t.data,code:r9.invalid_literal,expected:this._def.value}),ie}return{status:"valid",value:e.data}}get value(){return this._def.value}}function iG(e,t){return new iK({values:e,typeName:I.ZodEnum,...is(t)})}iq.create=(e,t)=>new iq({value:e,typeName:I.ZodLiteral,...is(t)});class iK extends iu{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return r8(t,{expected:x.joinValues(r),received:t.parsedType,code:r9.invalid_type}),ie}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return r8(t,{received:t.data,code:r9.invalid_enum_value,options:r}),ie}return ir(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return iK.create(e,{...this._def,...t})}exclude(e,t=this._def){return iK.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}iK.create=iG;class iX extends iu{_parse(e){let t=x.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==r6.string&&r.parsedType!==r6.number){let e=x.objectValues(t);return r8(r,{expected:x.joinValues(e),received:r.parsedType,code:r9.invalid_type}),ie}if(this._cache||(this._cache=new Set(x.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=x.objectValues(t);return r8(r,{received:r.data,code:r9.invalid_enum_value,options:e}),ie}return ir(e.data)}get enum(){return this._def.values}}iX.create=(e,t)=>new iX({values:e,typeName:I.ZodNativeEnum,...is(t)});class iY extends iu{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==r6.promise&&!1===t.common.async?(r8(t,{code:r9.invalid_type,expected:r6.promise,received:t.parsedType}),ie):ir((t.parsedType===r6.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}iY.create=(e,t)=>new iY({type:e,typeName:I.ZodPromise,...is(t)});class iH extends iu{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===I.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=this._def.effect||null,n={addIssue:e=>{r8(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(n.addIssue=n.addIssue.bind(n),"preprocess"===i.type){let e=i.transform(r.data,n);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return ie;let i=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===i.status?ie:"dirty"===i.status||"dirty"===t.value?it(i.value):i});{if("aborted"===t.value)return ie;let i=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===i.status?ie:"dirty"===i.status||"dirty"===t.value?it(i.value):i}}if("refinement"===i.type){let e=e=>{let t=i.refinement(e,n);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?ie:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===i.status?ie:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}}if("transform"===i.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>"valid"!==e.status?ie:Promise.resolve(i.transform(e.value,n)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if("valid"!==e.status)return ie;let a=i.transform(e.value,n);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}x.assertNever(i)}}iH.create=(e,t,r)=>new iH({schema:e,typeName:I.ZodEffects,effect:t,...is(r)}),iH.createWithPreprocess=(e,t,r)=>new iH({schema:t,effect:{type:"preprocess",transform:e},typeName:I.ZodEffects,...is(r)});class iQ extends iu{_parse(e){return this._getType(e)===r6.undefined?ir(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}iQ.create=(e,t)=>new iQ({innerType:e,typeName:I.ZodOptional,...is(t)});class i0 extends iu{_parse(e){return this._getType(e)===r6.null?ir(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}i0.create=(e,t)=>new i0({innerType:e,typeName:I.ZodNullable,...is(t)});class i1 extends iu{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===r6.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}i1.create=(e,t)=>new i1({innerType:e,typeName:I.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...is(t)});class i4 extends iu{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ii(i)?i.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new r5(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new r5(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}i4.create=(e,t)=>
5new i4({innerType:e,typeName:I.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...is(t)});class i6 extends iu{_parse(e){if(this._getType(e)!==r6.nan){let t=this._getOrReturnCtx(e);return r8(t,{code:r9.invalid_type,expected:r6.nan,received:t.parsedType}),ie}return{status:"valid",value:e.data}}}i6.create=e=>new i6({typeName:I.ZodNaN,...is(e)}),Symbol("zod_brand");class i2 extends iu{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class i9 extends iu{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?ie:"dirty"===e.status?(t.dirty(),it(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?ie:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new i9({in:e,out:t,typeName:I.ZodPipeline})}}class i5 extends iu{_parse(e){let t=this._def.innerType._parse(e),r=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return ii(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}i5.create=(e,t)=>new i5({innerType:e,typeName:I.ZodReadonly,...is(t)}),iM.lazycreate,(n=I||(I={})).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",
5n.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",iE.create,iO.create,i6.create,iZ.create,iz.create,ij.create,iT.create,iU.create,iN.create,iA.create,iP.create,iD.create,iC.create,iR.create,iM.create,iM.strictCreate,iL.create,iF.create,iJ.create,iB.create,iV.create,iW.create,iq.create,iK.create,iX.create,iY.create,iH.create,iQ.create,i0.create,iH.createWithPreprocess,i9.create;class i3 extends Error{constructor(e,t){super(e),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}}function i8(e){}function i7(e,t,r){return 100===r&&97===e.charCodeAt(t+1)&&116===e.charCodeAt(t+2)&&97===e.charCodeAt(t+3)&&58===e.charCodeAt(t+4)}function ne(e,t,r){return 101===r&&118===e.charCodeAt(t+1)&&101===e.charCodeAt(t+2)&&110===e.charCodeAt(t+3)&&116===e.charCodeAt(t+4)&&58===e.charCodeAt(t+5)}class nt extends TransformStream{constructor({onError:e,onRetry:t,onComment:r}={}){let i;super({start(n){i=function(e){if("function"==typeof e)throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=i8,onError:r=i8,onRetry:i=i8,onComment:n}=e,a=[],o=!0,s,u="",l=0,d;function c(e){let r=0;if(-1===e.indexOf("\r")){let i=e.indexOf(` 6`,r);for(;-1!==i;){if(r===i){l>0&&t({id:s,event:d,data:u}),s=void 0,u="",l=0,d=void 0,r=i+1,i=e.indexOf(` 7`,r);continue}let n=e.charCodeAt(r);if(i7(e,r,n)){let n=32===e.charCodeAt(r+5)?r+6:r+5,a=e.slice(n,i);if(0===l&&10===e.charCodeAt(i+1)){t({id:s,event:d,data:a}),s=void 0,u="",d=void 0,r=i+2,i=e.indexOf(` 8`,r);continue}u=0===l?a:`${u} 9${a}`,l++}else ne(e,r,n)?d=e.slice(32===e.charCodeAt(r+6)?r+7:r+6,i)||void 0:p(e,r,i);r=i+1,i=e.indexOf(` 10`,r)}return e.slice(r)}for(;r<e.length;){let t=e.indexOf("\r",r),i=e.indexOf(` 11`,r),n=-1;if(-1!==t&&-1!==i?n=t<i?t:i:-1!==t?n=t===e.length-1?-1:t:-1!==i&&(n=i),-1===n)break;p(e,r,n),r=n+1,13===e.charCodeAt(r-1)&&10===e.charCodeAt(r)&&r++}return e.slice(r)}function p(e,r,i){if(r===i)return void(l>0&&t({id:s,event:d,data:u}),s=void 0,u="",l=0,d=void 0);let a=e.charCodeAt(r);if(i7(e,r,a)){let t=32===e.charCodeAt(r+5)?r+6:r+5,n=e.slice(t,i);u=0===l?n:`${u} 12${n}`,l++;return}if(ne(e,r,a)){d=e.slice(32===e.charCodeAt(r+6)?r+7:r+6,i)||void 0;return}if(105===a&&100===e.charCodeAt(r+1)&&58===e.charCodeAt(r+2)){let t=e.slice(32===e.charCodeAt(r+3)?r+4:r+3,i);s=t.includes("\0")?void 0:t;return}if(58===a){n&&n(e.slice(r,i).slice(32===e.charCodeAt(r+1)?2:1));return}let o=e.slice(r,i),c=o.indexOf(":");if(-1===c)return void f(o,"",o);let p=o.slice(0,c),m=32===o.charCodeAt(c+1)?2:1;f(p,o.slice(c+m),o)}function f(e,t,n){switch(e){case"event":d=t||void 0;break;case"data":u=0===l?t:`${u} 13${t}`,l++;break;case"id":s=t.includes("\0")?void 0:t;break;case"retry":/^\d+$/.test(t)?i(parseInt(t,10)):r(new i3(`Invalid \`retry\` value: "${t}"`,{type:"invalid-retry",value:t,line:n}));break;default:r(new i3(`Unknown field "${e.length>20?`${e.slice(0,20)}\u2026`:e}"`,{type:"unknown-field",field:e,value:t,line:n}))}}return{feed:function(e){if(o&&(o=!1,239===e.charCodeAt(0)&&187===e.charCodeAt(1)&&191===e.charCodeAt(2)&&(e=e.slice(3))),0===a.length){let t=c(e);""!==t&&a.push(t);return}if(-1===e.indexOf(` 14`)&&-1===e.indexOf("\r"))return void a.push(e);a.push(e);let t=a.join("");a.length=0;let r=c(t);""!==r&&a.push(r)},reset:function(e={}){if(e.consume&&a.length>0){let e=a.join("");p(e,0,e.length)}o=!0,s=void 0,u="",l=0,d=void 0,a.length=0}}}({onEvent:e=>{n.enqueue(e)},onError(t){"terminate"===e?n.error(t):"function"==typeof e&&e(t)},onRetry:t,onComment:r})},transform(e){i.feed(e)}})}}function nr(...e){return e.reduce((e,t)=>({...e,...null!=t?t:{}}),{})}function ni(e){return Object.fromEntries([...e.headers])}var{btoa:nn,atob:na}=globalThis;function no(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCodePoint(e[r]);return nn(t)}async function ns(e){var t;try{await (null==(t=e.body)?void 0:t.cancel())}catch(e){}}var nu="AI_DownloadError",nl=`vercel.ai.error.${nu}`,nd=Symbol.for(nl),nc=class extends(E=eh,S=nd,E){constructor({url:e,statusCode:t,statusText:r,cause:i,message:n=null==i?`Failed to download ${e}: ${t} ${r}`:`Failed to download ${e}: ${i}`}
14){super({name:nu,message:n,cause:i}),this[S]=!0,this.url=e,this.statusCode=t,this.statusText=r}static isInstance(e){return eh.hasMarker(e,nl)}};function np(e){let t=e.split(".");return 4===t.length&&t.every(e=>{let t=Number(e);return Number.isInteger(t)&&t>=0&&t<=255&&String(t)===e})}function nf(e){let[t,r,i]=e.split(".").map(Number);return 0===t||10===t||100===t&&r>=64&&r<=127||127===t||169===t&&254===r||172===t&&r>=16&&r<=31||192===t&&0===r&&0===i||192===t&&168===r||198===t&&(18===r||19===r)||t>=240||!1}async function nm({url:e,headers:t,abortSignal:r,maxRedirects:i=10}){let n={signal:r};void 0!==t&&(n.headers=t);let a=e;for(let t=0;t<=i;t++){!function(e){let t;try{t=new URL(e)}catch(t){throw new nc({url:e,message:`Invalid URL: ${e}`})}if("data:"===t.protocol)return;if("http:"!==t.protocol&&"https:"!==t.protocol)throw new nc({url:e,message:`URL scheme must be http, https, or data, got ${t.protocol}`});let r=t.hostname.toLowerCase().replace(/\.+$/,"");if(!r)throw new nc({url:e,message:"URL must have a hostname"});if("localhost"===r||r.endsWith(".local")||r.endsWith(".localhost"))throw new nc({url:e,message:`URL with hostname ${r} is not allowed`});if(r.startsWith("[")&&r.endsWith("]")){if(function(e){let t=function(e){let t=e.toLowerCase(),r=t.indexOf("%");-1!==r&&(t=t.slice(0,r));let i=t.split("::");if(i.length>2)return null;let n=e=>{if(""===e)return[];let t=[],r=e.split(":");for(let e=0;e<r.length;e++){let i=r[e];if(i.includes(".")){if(e!==r.length-1||!np(i))return null;let[n,a,o,s]=i.split(".").map(Number);t.push(n<<8|a,o<<8|s);continue}if(!/^[0-9a-f]{1,4}$/.test(i))return null;t.push(parseInt(i,16))}return t},a=n(i[0]);if(null===a)return null;if(2===i.length){let e=n(i[1]);if(null===e)return null;let t=8-a.length-e.length;return t<0?null:[...a,...Array(t).fill(0),...e]}return 8===a.length?a:null}(e);if(null===t)return!0;let r=e=>t.slice(0,e).every(e=>0===e);if(r(7)&&(0===t[7]||1===t[7])||(65024&t[0])==64512||(65472&t[0])==65152||(65472&t[0])==65216||(65280&t[0])==65280)return!0;if(r(6)||r(5)&&65535===t[5]||r(4)&&65535===t[4]&&0===t[5]||100===t[0]&&65435===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&0===t[5]||100===t[0]&&65435===t[1]&&1===t[2]){let e=t[6]>>8&255,r=255&t[6],i=t[7]>>8&255,n=255&t[7];return nf(`${e}.${r}.${i}.${n}`)}return!1}(r.slice(1,-1)))throw new nc({url:e,message:`URL with IPv6 address ${r} is not allowed`});return}if(np(r)&&nf(r))throw new nc({url:e,message:`URL with IP address ${r} is not allowed`})}(a);let t=await fetch(a,{...n,redirect:"manual"});if("opaqueredirect"===t.type){if(!function(e=globalThis){return null!=e.window}())throw new nc({url:e,message:`Redirect from ${a} could not be validated and was blocked`});return await fetch(a,{...n,redirect:"follow"})}let r=t.headers.get("location");if(t.status>=300&&t.status<400&&r){await ns(t),a=new URL(r,a).toString();continue}return t}throw new nc({url:e,message:`Too many redirects (max ${i})`})}async function nh({response:e,url:t,maxBytes:r=0x80000000}){let i=e.headers.get("content-length");if(null!=i){let n=parseInt(i,10);if(!isNaN(n)&&n>r)throw await ns(e),new nc({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes (Content-Length: ${n}).`})}let n=e.body;if(null==n)return new Uint8Array(0);let a=n.getReader(),o=[],s=0;try{for(;;){let{done:e,value:i}=await a.read();if(e)break;if((s+=i.length)>r)throw new nc({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes.`});o.push(i)}}finally{try{await a.cancel()}finally{a.releaseLock()}}let u=new Uint8Array(s),l=0;for(let e of o)u.set(e,l),l+=e.length;return u}var ng=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{let n=()=>{let e=r.length,i=Array(t);for(let n=0;n<t;n++)i[n]=r[Math.random()*e|0];return i.join("")};if(null==e)return n;if(r.includes(i))throw new eO({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${r}".`});return()=>`${e}${i}${n()}`},nv=ng();function ny(e){return(e instanceof Error||e instanceof DOMException)&&("AbortError"===e.name||"ResponseAborted"===e.name||"TimeoutError"===e.name)}var n_=["fetch failed","failed to fetch"],nb=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function n$({error:e,url:t,requestBodyValues:r}){if(ny(e))return e;if(e instanceof TypeError&&n_.includes(e.message.toLowerCase())){let i=e.cause;if(null!=i)return new e_({message:`Cannot connect to API: ${i.message}`,cause:i,url:t,requestBodyValues:r,isRetryable:!0})}return!function(e){if(!(e instanceof Error))return!1;let t=e.code;return!!("string"==typeof t&&nb.includes(t))}(e)?e:new e_({message:`Cannot connect to API: ${e.message}`,cause:e,url:t,requestBodyValues:r,isRetryable:!0})}function nx(e=globalThis){var t,r,i;return e.window?"runtime/browser":(null==(t=e.navigator)?void 0:t.userAgent)?`runtime/${e.navigator.userAgent.toLowerCase()}`:(null==(i=null==(r=e.process)?void 0:r.versions)?void 0:i.node)?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function nk(e){if(null==e)return{};let t={};if(e instanceof Headers)e.forEach((e,r)=>{t[r.toLowerCase()]=e});else for(let[r,i]of(Array.isArray(e)||(e=Object.entries(e)),e))null!=i&&(t[r.toLowerCase()]=i);return t}function nw(e,...t){let r=new Headers(nk(e)),i=r.get("user-agent")||"";
14return r.set("user-agent",[i,...t].filter(Boolean).join(" ")),Object.fromEntries(r.entries())}var nI="4.0.30",nS=()=>globalThis.fetch,nE=async({url:e,headers:t={},successfulResponseHandler:r,failedResponseHandler:i,abortSignal:n,fetch:a=nS()})=>{try{let o=await a(e,{method:"GET",headers:nw(t,`ai-sdk/provider-utils/${nI}`,nx()),signal:n}),s=ni(o);if(!o.ok){let t;try{t=await i({response:o,url:e,requestBodyValues:{}})}catch(t){if(ny(t)||e_.isInstance(t))throw t;throw new e_({message:"Failed to process error response",cause:t,statusCode:o.status,url:e,responseHeaders:s,requestBodyValues:{}})}throw t.value}try{return await r({response:o,url:e,requestBodyValues:{}})}catch(t){if(t instanceof Error&&(ny(t)||e_.isInstance(t)))throw t;throw new e_({message:"Failed to process successful response",cause:t,statusCode:o.status,url:e,responseHeaders:s,requestBodyValues:{}})}}catch(t){throw n$({error:t,url:e,requestBodyValues:{}})}};function nO({settingValue:e,environmentVariableName:t}){return"string"==typeof e?e:null!=e||void 0===ec.default?void 0:null!=(e=ec.default.env[t])&&"string"==typeof e?e:void 0}var nZ=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,nz=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function nj(e){let t=JSON.parse(e);return null===t||"object"!=typeof t||!1===nZ.test(e)&&!1===nz.test(e)?t:function(e){let t=[e];for(;t.length;){let e=t;for(let r of(t=[],e)){if(Object.prototype.hasOwnProperty.call(r,"__proto__")||Object.prototype.hasOwnProperty.call(r,"constructor")&&null!==r.constructor&&"object"==typeof r.constructor&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let e in r){let i=r[e];i&&"object"==typeof i&&t.push(i)}}}return e}(t)}function nT(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(t){return nj(e)}try{return nj(e)}finally{Error.stackTraceLimit=t}}function nU(e){if("object"===e.type||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:t}=e;if(null!=t)for(let e of Object.keys(t))t[e]=nN(t[e])}null!=e.items&&(e.items=Array.isArray(e.items)?e.items.map(nN):nN(e.items)),null!=e.anyOf&&(e.anyOf=e.anyOf.map(nN)),null!=e.allOf&&(e.allOf=e.allOf.map(nN)),null!=e.oneOf&&(e.oneOf=e.oneOf.map(nN));let{definitions:t}=e;if(null!=t)for(let e of Object.keys(t))t[e]=nN(t[e]);return e}function nN(e){return"boolean"==typeof e?e:nU(e)}var nA=Symbol("Let zodToJsonSchema decide on which parser to use"),nP={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function nD(e,t){return n2(e.type._def,t)}var nC=void 0,nR=/^[cC][^\s-]{8,}$/,nM=/^[0-9a-z]+$/,nL=/^[0-9A-HJKMNP-TV-Z]{26}$/,nF=/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,nJ=()=>(void 0===nC&&(nC=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),nC),nB=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,nV=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nW=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,nq=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nG=/^[a-zA-Z0-9_-]{21}$/,nK=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;function nX(e,t){let r={type:"string"};if(e.checks)for(let i of e.checks)switch(i.kind){case"min":r.minLength="number"==typeof r.minLength?Math.max(r.minLength,i.value):i.value;break;case"max":r.maxLength="number"==typeof r.maxLength?Math.min(r.maxLength,i.value):i.value;break;case"email":switch(t.emailStrategy){case"format:email":nQ(r,"email",i.message,t);break;case"format:idn-email":nQ(r,"idn-email",i.message,t);break;case"pattern:zod":n0(r,nF,i.message,t)}break;case"url":nQ(r,"uri",i.message,t);break;case"uuid":nQ(r,"uuid",i.message,t);break;case"regex":n0(r,i.regex,i.message,t);break;case"cuid":n0(r,nR,i.message,t);break;case"cuid2":n0(r,nM,i.message,t);break;case"startsWith":n0(r,RegExp(`^${nY(i.value,t)}`),i.message,t);break;case"endsWith":n0(r,RegExp(`${nY(i.value,t)}$`),i.message,t);break;case"datetime":nQ(r,"date-time",i.message,t);break;case"date":nQ(r,"date",i.message,t);break;case"time":nQ(r,"time",i.message,t);break;case"duration":nQ(r,"duration",i.message,t);break;case"length":r.minLength="number"==typeof r.minLength?Math.max(r.minLength,i.value):i.value,r.maxLength="number"==typeof r.maxLength?Math.min(r.maxLength,i.value):i.value;break;case"includes":n0(r,RegExp(nY(i.value,t)),i.message,t);break;case"ip":"v6"!==i.version&&nQ(r,"ipv4",i.message,t),"v4"!==i.version&&nQ(r,"ipv6",i.message,t);break;case"base64url":n0(r,nq,i.message,t);break;case"jwt":n0(r,nK,i.message,t);break;case"cidr":"v6"!==i.version&&n0(r,nB,i.message,t),"v4"!==i.version&&n0(r,nV,i.message,t);break;case"emoji":n0(r,nJ(),i.message,t);break;case"ulid":n0(r,nL,i.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":nQ(r,"binary",i.message,t);break;case"contentEncoding:base64":r.contentEncoding="base64";break;case"pattern:zod":n0(r,nW,i.message,t)}break;case"nanoid":n0(r,nG,i.message,t)}return r}function nY(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let r=0;r<e.length;r++)nH.has(e[r])||(t+="\\"),t+=e[r];return t}(e):e}var nH=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function nQ(e,t,r,i){var n;e.format||(null==(n=e.anyOf)?void 0:n.some(e=>e.format))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...r&&i.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function n0(e,t,r,i){var n;e.pattern||(null==(n=e.allOf)?void 0:n.some(e=>e.pattern))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:n1(t,i),...r&&i.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=n1(t,i)}function n1(e,t){var r;
14if(!t.applyRegexFlags||!e.flags)return e.source;let i={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=i.i?e.source.toLowerCase():e.source,a="",o=!1,s=!1,u=!1;for(let e=0;e<n.length;e++){if(o){a+=n[e],o=!1;continue}if(i.i){if(s){if(n[e].match(/[a-z]/)){u?(a+=n[e],a+=`${n[e-2]}-${n[e]}`.toUpperCase(),u=!1):"-"===n[e+1]&&(null==(r=n[e+2])?void 0:r.match(/[a-z]/))?(a+=n[e],u=!0):a+=`${n[e]}${n[e].toUpperCase()}`;continue}}else if(n[e].match(/[a-z]/)){a+=`[${n[e]}${n[e].toUpperCase()}]`;continue}}if(i.m){if("^"===n[e]){a+=`(^|(?<=[\r 15]))`;continue}else if("$"===n[e]){a+=`($|(?=[\r 16]))`;continue}}if(i.s&&"."===n[e]){a+=s?`${n[e]}\r 17`:`[${n[e]}\r 18]`;continue}a+=n[e],"\\"===n[e]?o=!0:s&&"]"===n[e]?s=!1:s||"["!==n[e]||(s=!0)}try{new RegExp(a)}catch(r){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function n4(e,t){var r,i,n,a,o,s;let u={type:"object",additionalProperties:null!=(r=n2(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?r:t.allowedAdditionalProperties};if((null==(i=e.keyType)?void 0:i._def.typeName)===I.ZodString&&(null==(n=e.keyType._def.checks)?void 0:n.length)){let{type:r,...i}=nX(e.keyType._def,t);return{...u,propertyNames:i}}if((null==(a=e.keyType)?void 0:a._def.typeName)===I.ZodEnum)return{...u,propertyNames:{enum:e.keyType._def.values}};if((null==(o=e.keyType)?void 0:o._def.typeName)===I.ZodBranded&&e.keyType._def.type._def.typeName===I.ZodString&&(null==(s=e.keyType._def.type._def.checks)?void 0:s.length)){let{type:r,...i}=nD(e.keyType._def,t);return{...u,propertyNames:i}}return u}var n6={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function n2(e,t,r=!1){var i;let n=t.seen.get(e);if(t.override){let a=null==(i=t.override)?void 0:i.call(t,e,t,n,r);if(a!==nA)return a}if(n&&!r){let e=n9(n,t);if(void 0!==e)return e}let a={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,a);let o=((e,t,r)=>{var i,n,a,o,s,u;switch(t){case I.ZodString:return nX(e,r);case I.ZodNumber:let l={type:"number"};if(!e.checks)return l;for(let t of e.checks)switch(t.kind){case"int":l.type="integer";break;case"min":t.inclusive?l.minimum=t.value:l.exclusiveMinimum=t.value;break;case"max":t.inclusive?l.maximum=t.value:l.exclusiveMaximum=t.value;break;case"multipleOf":l.multipleOf=t.value}return l;case I.ZodObject:return function(e,t){let r={type:"object",properties:{}},i=[],n=e.shape();for(let e in n){let a=n[e];if(void 0===a||void 0===a._def)continue;let o=function(e){try{return e.isOptional()}catch(e){return!0}}(a),s=n2(a._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==s&&(r.properties[e]=s,o||i.push(e))}i.length&&(r.required=i);let a=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return n2(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==a&&(r.additionalProperties=a),r}(e,r);case I.ZodBigInt:let d={type:"integer",format:"int64"};if(!e.checks)return d;for(let t of e.checks)switch(t.kind){case"min":t.inclusive?d.minimum=t.value:d.exclusiveMinimum=t.value;break;case"max":t.inclusive?d.maximum=t.value:d.exclusiveMaximum=t.value;break;case"multipleOf":d.multipleOf=t.value}return d;case I.ZodBoolean:return{type:"boolean"};case I.ZodDate:return function e(t,r,i){let n=null!=i?i:r.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((i,n)=>e(t,r,i))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":var a=t;let o={type:"integer",format:"unix-time"};for(let e of a.checks)switch(e.kind){case"min":o.minimum=e.value;break;case"max":o.maximum=e.value}return o}}(e,r);case I.ZodUndefined:return{not:{}};case I.ZodNull:return{type:"null"};case I.ZodArray:let c;return c={type:"array"},(null==(a=e.type)?void 0:a._def)&&(null==(s=null==(o=e.type)?void 0:o._def)?void 0:s.typeName)!==I.ZodAny&&(c.items=n2(e.type._def,{...r,currentPath:[...r.currentPath,"items"]})),e.minLength&&(c.minItems=e.minLength.value),e.maxLength&&(c.maxItems=e.maxLength.value),e.exactLength&&(c.minItems=e.exactLength.value,c.maxItems=e.exactLength.value),
18c;case I.ZodUnion:case I.ZodDiscriminatedUnion:let p,f=e.options instanceof Map?Array.from(e.options.values()):e.options;if(f.every(e=>e._def.typeName in n6&&(!e._def.checks||!e._def.checks.length))){let e=f.reduce((e,t)=>{let r=n6[t._def.typeName];return r&&!e.includes(r)?[...e,r]:e},[]);return{type:e.length>1?e:e[0]}}if(f.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=f.reduce((e,t)=>{let r=typeof t._def.value;switch(r){case"string":case"number":case"boolean":return[...e,r];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===f.length){let t=e.filter((e,t,r)=>r.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:f.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(f.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:f.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return i=e,n=r,(p=(i.options instanceof Map?Array.from(i.options.values()):i.options).map((e,t)=>n2(e._def,{...n,currentPath:[...n.currentPath,"anyOf",`${t}`]})).filter(e=>!!e&&(!n.strictUnions||"object"==typeof e&&Object.keys(e).length>0))).length?{anyOf:p}:void 0;case I.ZodIntersection:let m,h;return m=[n2(e.left._def,{...r,currentPath:[...r.currentPath,"allOf","0"]}),n2(e.right._def,{...r,currentPath:[...r.currentPath,"allOf","1"]})].filter(e=>!!e),h=[],m.forEach(e=>{if((!("type"in e)||"string"!==e.type)&&"allOf"in e)h.push(...e.allOf);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:r,...i}=e;t=i}h.push(t)}}),h.length?{allOf:h}:void 0;case I.ZodTuple:return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((e,t)=>n2(e._def,{...r,currentPath:[...r.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:n2(e.rest._def,{...r,currentPath:[...r.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((e,t)=>n2(e._def,{...r,currentPath:[...r.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case I.ZodRecord:return n4(e,r);case I.ZodLiteral:let g;return"bigint"!=(g=typeof e.value)&&"number"!==g&&"boolean"!==g&&"string"!==g?{type:Array.isArray(e.value)?"array":"object"}:{type:"bigint"===g?"integer":g,const:e.value};case I.ZodEnum:return{type:"string",enum:Array.from(e.values)};case I.ZodNativeEnum:let v,y,_;return v=e.values,{type:1===(_=Array.from(new Set((y=Object.keys(e.values).filter(e=>"number"!=typeof v[v[e]]).map(e=>v[e])).map(e=>typeof e)))).length?"string"===_[0]?"string":"number":["string","number"],enum:y};case I.ZodNullable:if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[n6[e.innerType._def.typeName],"null"]};let b=n2(e.innerType._def,{...r,currentPath:[...r.currentPath,"anyOf","0"]});return b&&{anyOf:[b,{type:"null"}]};case I.ZodOptional:if(r.currentPath.toString()===(null==(u=r.propertyPath)?void 0:u.toString()))return n2(e.innerType._def,r);let $=n2(e.innerType._def,{...r,currentPath:[...r.currentPath,"anyOf","1"]});return $?{anyOf:[{not:{}},$]}:{};case I.ZodMap:if("record"===r.mapStrategy)return n4(e,r);return{type:"array",maxItems:125,items:{type:"array",items:[n2(e.keyType._def,{...r,currentPath:[...r.currentPath,"items","items","0"]})||{},n2(e.valueType._def,{...r,currentPath:[...r.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}};case I.ZodSet:let x;return x={type:"array",uniqueItems:!0,items:n2(e.valueType._def,{...r,currentPath:[...r.currentPath,"items"]})},e.minSize&&(x.minItems=e.minSize.value),e.maxSize&&(x.maxItems=e.maxSize.value),x;case I.ZodLazy:return()=>e.getter()._def;case I.ZodPromise:return n2(e.type._def,r);case I.ZodNaN:case I.ZodNever:return{not:{}};case I.ZodEffects:return"input"===r.effectStrategy?n2(e.schema._def,r):{};case I.ZodAny:case I.ZodUnknown:return{};case I.ZodDefault:return{...n2(e.innerType._def,r),default:e.defaultValue()};case I.ZodBranded:return nD(e,r);case I.ZodReadonly:case I.ZodCatch:return n2(e.innerType._def,r);case I.ZodPipeline:if("input"===r.pipeStrategy)return n2(e.in._def,r);if("output"===r.pipeStrategy)return n2(e.out._def,r);let k=n2(e.in._def,{...r,currentPath:[...r.currentPath,"allOf","0"]}),w=n2(e.out._def,{...r,currentPath:[...r.currentPath,"allOf",k?"1":"0"]});return{allOf:[k,w].filter(e=>void 0!==e)};case I.ZodFunction:case I.ZodVoid:case I.ZodSymbol:default:return}})(e,e.typeName,t),s="function"==typeof o?n2(o(),t):o;if(s&&n5(e,t,s),t.postProcess){let r=t.postProcess(s,e,t);return a.jsonSchema=s,r}return a.jsonSchema=s,s}var n9=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:((e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")})(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,r)=>t.currentPath[r]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{};return"seen"===t.$refStrategy?{}:void 0}},n5=(e,t,r)=>(e.description&&(r.description=e.description),r),n3=Symbol.for("vercel.ai.schema");function n8(e){let t;return()=>(null==t&&(t=e()),t)}function n7(e,{validate:t}={}){return{[n3]:!0,_type:void 0,get jsonSchema(){return"function"==typeof e&&(e=e()),e},validate:t}}function ae(e){var t;return null==e?n7({properties:{},additionalProperties:!1}):"object"==typeof e&&null!==e&&n3 in e&&!0===e[n3]&&"jsonSchema"in e&&"validate"in e?e:"~standard"in e?"zod"===e["~standard"].vendor?at(e):(t=e,n7(()=>nU(t["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async e=>{let r=await t["~standard"].validate(e);return"value"in r?{success:!0,value:r.value}:{success:!1,error:new eC({value:e,cause:r.issues})}}})):e()}function at(e,t){var r,i;let n;if("_zod"in e){let i;return i=null!=(r=null==t?void 0:t.useReferences)&&r,n7(()=>nU(r4(e,{target:"draft-7",io:"input",reused:i?"ref":"inline"})),{validate:async t=>{let r=await t9(e,t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}})}return n=null!=(i=null==t?void 0:t.useReferences)&&i,n7(()=>((e,t)=>{var r;
18let i,n,a=(n=void 0!==(i="string"==typeof t?{...nP,name:t}:{...nP,...t}).name?[...i.basePath,i.definitionPath,i.name]:i.basePath,{...i,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(i.definitions).map(([e,t])=>[t._def,{def:t._def,path:[...i.basePath,i.definitionPath,e],jsonSchema:void 0}]))}),o="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>{var i;return{...e,[t]:null!=(i=n2(r._def,{...a,currentPath:[...a.basePath,a.definitionPath,t]},!0))?i:{}}},{}):void 0,s="string"==typeof t?t:(null==t?void 0:t.nameStrategy)==="title"||null==t?void 0:t.name,u=null!=(r=n2(e._def,void 0===s?a:{...a,currentPath:[...a.basePath,a.definitionPath,s]},!1))?r:{},l="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==l&&(u.title=l);let d=void 0===s?o?{...u,[a.definitionPath]:o}:u:{$ref:[..."relative"===a.$refStrategy?[]:a.basePath,a.definitionPath,s].join("/"),[a.definitionPath]:{...o,[s]:u}};return d.$schema="http://json-schema.org/draft-07/schema#",d})(e,{$refStrategy:n?"root":"none"}),{validate:async t=>{let r=await e.safeParseAsync(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}})}async function ar({value:e,schema:t,context:r}){let i=await ai({value:e,schema:t,context:r});if(!i.success)throw eC.wrap({value:e,cause:i.error,context:r});return i.value}async function ai({value:e,schema:t,context:r}){let i=ae(t);try{if(null==i.validate)return{success:!0,value:e,rawValue:e};let t=await i.validate(e);if(t.success)return{success:!0,value:t.value,rawValue:e};return{success:!1,error:eC.wrap({value:e,cause:t.error,context:r}),rawValue:e}}catch(t){return{success:!1,error:eC.wrap({value:e,cause:t,context:r}),rawValue:e}}}async function an({text:e,schema:t}){try{let r=nT(e);if(null==t)return r;return ar({value:r,schema:t})}catch(t){if(eU.isInstance(t)||eC.isInstance(t))throw t;throw new eU({text:e,cause:t})}}async function aa({text:e,schema:t}){try{let r=nT(e);if(null==t)return{success:!0,value:r,rawValue:r};return await ai({value:r,schema:t})}catch(t){return{success:!1,error:eU.isInstance(t)?t:new eU({text:e,cause:t}),rawValue:void 0}}}function ao({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new nt).pipeThrough(new TransformStream({async transform({data:e},r){"[DONE]"!==e&&r.enqueue(await aa({text:e,schema:t}))}}))}var as=()=>globalThis.fetch,au=async({url:e,headers:t,body:r,failedResponseHandler:i,successfulResponseHandler:n,abortSignal:a,fetch:o})=>al({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(r),values:r},failedResponseHandler:i,successfulResponseHandler:n,abortSignal:a,fetch:o}),al=async({url:e,headers:t={},body:r,successfulResponseHandler:i,failedResponseHandler:n,abortSignal:a,fetch:o=as()})=>{try{let s=await o(e,{method:"POST",headers:nw(t,`ai-sdk/provider-utils/${nI}`,nx()),body:r.content,signal:a}),u=ni(s);if(!s.ok){let t;try{t=await n({response:s,url:e,requestBodyValues:r.values})}catch(t){if(ny(t)||e_.isInstance(t))throw t;throw new e_({message:"Failed to process error response",cause:t,statusCode:s.status,url:e,responseHeaders:u,requestBodyValues:r.values})}throw t.value}try{return await i({response:s,url:e,requestBodyValues:r.values})}catch(t){if(t instanceof Error&&(ny(t)||e_.isInstance(t)))throw t;throw new e_({message:"Failed to process successful response",cause:t,statusCode:s.status,url:e,responseHeaders:u,requestBodyValues:r.values})}}catch(t){throw n$({error:t,url:e,requestBodyValues:r.values})}};function ad({id:e,inputSchema:t,outputSchema:r,supportsDeferredResults:i}){return({execute:n,needsApproval:a,toModelOutput:o,onInputStart:s,onInputDelta:u,onInputAvailable:l,...d})=>({type:"provider",id:e,args:d,inputSchema:t,outputSchema:r,execute:n,needsApproval:a,toModelOutput:o,onInputStart:s,onInputDelta:u,onInputAvailable:l,supportsDeferredResults:i})}async function ac(e){return"function"==typeof e&&(e=e()),Promise.resolve(e)}var ap=({errorSchema:e,errorToMessage:t,isRetryable:r})=>async({response:i,url:n,requestBodyValues:a})=>{let o=await i.text(),s=ni(i);if(""===o.trim())return{responseHeaders:s,value:new e_({message:i.statusText,url:n,requestBodyValues:a,statusCode:i.status,responseHeaders:s,responseBody:o,isRetryable:null==r?void 0:r(i)})};try{let u=await an({text:o,schema:e});return{responseHeaders:s,value:new e_({message:t(u),url:n,requestBodyValues:a,statusCode:i.status,responseHeaders:s,responseBody:o,data:u,isRetryable:null==r?void 0:r(i,u)})}}catch(e){return{responseHeaders:s,value:new e_({message:i.statusText,url:n,requestBodyValues:a,statusCode:i.status,responseHeaders:s,responseBody:o,isRetryable:null==r?void 0:r(i)})}}},af=e=>async({response:t,url:r,requestBodyValues:i})=>{let n=await t.text(),a=await aa({text:n,schema:e}),o=ni(t);if(!a.success)throw new e_({message:"Invalid JSON response",cause:a.error,statusCode:t.status,responseHeaders:o,responseBody:n,url:r,requestBodyValues:i});return{responseHeaders:o,value:a.value,rawValue:a.rawValue}};function am(){let e,t,r;return{localeError:(e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"},i=>
18{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;return`Invalid input: expected ${e}, received ${n}`}case"invalid_value":if(1===i.values.length)return`Invalid input: expected ${to(i.values[0])}`;return`Invalid option: expected one of ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Too big: expected ${i.origin??"value"} to have ${t}${i.maximum.toString()} ${r.unit??"elements"}`;return`Too big: expected ${i.origin??"value"} to be ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Too small: expected ${i.origin} to have ${t}${i.minimum.toString()} ${r.unit}`;return`Too small: expected ${i.origin} to be ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Invalid string: must start with "${i.prefix}"`;if("ends_with"===i.format)return`Invalid string: must end with "${i.suffix}"`;if("includes"===i.format)return`Invalid string: must include "${i.includes}"`;if("regex"===i.format)return`Invalid string: must match pattern ${i.pattern}`;return`Invalid ${t[i.format]??i.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":if(i.options&&Array.isArray(i.options)&&i.options.length>0){let e=i.options.map(e=>`'${e}'`).join(" | ");return`Invalid discriminator value. Expected ${e}`}return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}})}}eW(am()),e.s([],98821),e.i(98821),e.s([],92135),e.i(92135),e.i(97753),e.i(3108),e.i(74969);let ah=/^[cC][0-9a-z]{6,}$/,ag=/^[0-9a-z]+$/,av=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ay=/^[0-9a-vA-V]{20}$/,a_=/^[A-Za-z0-9]{27}$/,ab=/^[a-zA-Z0-9_-]{21}$/,a$=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ax=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ak=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,aw=ak(4),aI=ak(6),aS=ak(7),aE=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,aO=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u;function aZ(){return RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}let az=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,aj=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,aT=e=>{let t=ti(e??":");return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},aU=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,aN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aA=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,aP=/^[A-Za-z0-9_-]*$/,aD=/^https?$/,aC=/^\+[1-9]\d{6,14}$/,aR="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",aM=RegExp(`^${aR}$`);function aL(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function aF(e){return RegExp(`^${aL(e)}$`)}function aJ(e){let t=aL({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${r.join("|")})`;return RegExp(`^${aR}T(?:${i})$`)}let aB=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},aV=/^-?\d+n?$/,aW=/^-?\d+$/,aq=/^-?\d+(?:\.\d+)?$/,aG=/^(?:true|false)$/i,aK=/^null$/i,aX=/^undefined$/i,aY=/^[^A-Z]*$/,aH=/^[^a-z]*$/;function aQ(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function a0(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}let a1=aQ(22,"=="),a4=a0(22),a6=aQ(27,"="),a2=a0(27),a9=aQ(43,"="),a5=a0(43),a3=aQ(64,""),a8=a0(64),a7=aQ(86,"=="),oe=a0(86);e.s(["base64",0,aA,"base64url",0,aP,"bigint",0,aV,"boolean",0,aG,"browserEmail",0,/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,"cidrv4",0,aU,"cidrv6",0,aN,"cuid",0,ah,"cuid2",0,ag,"date",0,aM,"datetime",0,aJ,"domain",0,/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,"duration",0,a$,"e164",0,aC,"email",0,aE,"emoji",0,aZ,"extendedDuration",0,/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,"guid",0,ax,"hex",0,/^[0-9a-fA-F]*$/,"hostname",0,/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,"html5Email",0,/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,"httpProtocol",0,aD,"idnEmail",0,aO,"integer",0,aW,"ipv4",0,az,"ipv6",0,aj,"ksuid",0,a_,"lowercase",0,aY,"mac",0,aT,"md5_base64",0,a1,"md5_base64url",0,a4,"md5_hex",0,/^[0-9a-fA-F]{32}$/,"nanoid",0,ab,"null",0,aK,"number",0,aq,"rfc5322Email",0,/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,"sha1_base64",0,a6,"sha1_base64url",0,a2,"sha1_hex",0,/^[0-9a-fA-F]{40}$/,"sha256_base64",0,a9,"sha256_base64url",0,a5,"sha256_hex",0,/^[0-9a-fA-F]{64}$/,"sha384_base64",0,a3,"sha384_base64url",0,a8,"sha384_hex",0,/^[0-9a-fA-F]{96}$/,"sha512_base64",0,a7,"sha512_base64url",0,oe,"sha512_hex",0,/^[0-9a-fA-F]{128}$/,"string",0,aB,"time",0,aF,"ulid",0,av,"undefined",0,aX,"unicodeEmail",0,aO,"uppercase",0,aH,"uuid",0,ak,"uuid4",0,aw,"uuid6",0,aI,"uuid7",0,aS,"xid",0,ay],82358);let ot=eL("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),or={number:"number",bigint:"bigint",object:"date"},oi=eL("$ZodCheckLessThan",(e,t)=>{ot.init(e,t);let r=or[typeof t.value];e._zod.onattach.push(e=>
18{let r=e._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),on=eL("$ZodCheckGreaterThan",(e,t)=>{ot.init(e,t);let r=or[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),oa=eL("$ZodCheckMultipleOf",(e,t)=>{ot.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===eQ(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),oo=eL("$ZodCheckNumberFormat",(e,t)=>{ot.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,a]=tu[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=a,r&&(i.pattern=aW)}),e._zod.check=o=>{let s=o.value;if(r){if(!Number.isInteger(s))return void o.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}))}s<n&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),os=eL("$ZodCheckBigIntFormat",(e,t)=>{ot.init(e,t);let[r,i]=tl[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=r,n.maximum=i}),e._zod.check=n=>{let a=n.value;a<r&&n.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>i&&n.issues.push({origin:"bigint",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),ou=eL("$ZodCheckMaxSize",(e,t)=>{var r;ot.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!eY(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;i.size<=t.maximum||r.issues.push({origin:th(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),ol=eL("$ZodCheckMinSize",(e,t)=>{var r;ot.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!eY(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;i.size>=t.minimum||r.issues.push({origin:th(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),od=eL("$ZodCheckSizeEquals",(e,t)=>{var r;ot.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!eY(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=r=>{let i=r.value,n=i.size;if(n===t.size)return;let a=n>t.size;r.issues.push({origin:th(i),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),oc=eL("$ZodCheckMaxLength",(e,t)=>{var r;ot.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!eY(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;if(i.length<=t.maximum)return;let n=tg(i);r.issues.push({origin:n,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),op=eL("$ZodCheckMinLength",(e,t)=>{var r;ot.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!eY(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;if(i.length>=t.minimum)return;let n=tg(i);r.issues.push({origin:n,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),of=eL("$ZodCheckLengthEquals",(e,t)=>{var r;ot.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!eY(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let i=r.value,n=i.length;if(n===t.length)return;let a=tg(i),o=n>t.length;r.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),om=eL("$ZodCheckStringFormat",(e,t)=>{var r,i;ot.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),oh=eL("$ZodCheckRegex",(e,t)=>{om.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),og=eL("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=aY),om.init(e,t)}),ov=eL("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=aH),om.init(e,t)}),oy=eL("$ZodCheckIncludes",(e,t)=>{ot.init(e,t);let r=ti(t.includes),i=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input
18:r.value,inst:e,continue:!t.abort})}}),o_=eL("$ZodCheckStartsWith",(e,t)=>{ot.init(e,t);let r=RegExp(`^${ti(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),ob=eL("$ZodCheckEndsWith",(e,t)=>{ot.init(e,t);let r=RegExp(`.*${ti(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function o$(e,t,r){e.issues.length&&t.issues.push(...tp(r,e.issues))}let ox=eL("$ZodCheckProperty",(e,t)=>{ot.init(e,t),e._zod.check=e=>{let r=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(r=>o$(r,e,t.property));o$(r,e,t.property)}}),ok=eL("$ZodCheckMimeType",(e,t)=>{ot.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),ow=eL("$ZodCheckOverwrite",(e,t)=>{ot.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});e.s(["$ZodCheck",0,ot,"$ZodCheckBigIntFormat",0,os,"$ZodCheckEndsWith",0,ob,"$ZodCheckGreaterThan",0,on,"$ZodCheckIncludes",0,oy,"$ZodCheckLengthEquals",0,of,"$ZodCheckLessThan",0,oi,"$ZodCheckLowerCase",0,og,"$ZodCheckMaxLength",0,oc,"$ZodCheckMaxSize",0,ou,"$ZodCheckMimeType",0,ok,"$ZodCheckMinLength",0,op,"$ZodCheckMinSize",0,ol,"$ZodCheckMultipleOf",0,oa,"$ZodCheckNumberFormat",0,oo,"$ZodCheckOverwrite",0,ow,"$ZodCheckProperty",0,ox,"$ZodCheckRegex",0,oh,"$ZodCheckSizeEquals",0,od,"$ZodCheckStartsWith",0,o_,"$ZodCheckStringFormat",0,om,"$ZodCheckUpperCase",0,ov],55605);class oI{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}e.s(["Doc",0,oI],98530);let oS={major:4,minor:4,patch:3};e.s(["version",0,oS],39778);let oE=eL("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=oS;let i=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&i.unshift(e),i))for(let r of t._zod.onattach)r(e);if(0===i.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let i,n=td(e);for(let a of t){if(a._zod.def.when){if(tc(e)||!a._zod.def.when(e))continue}else if(n)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&r?.async===!1)throw new eJ;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(n||(n=td(e,t)))});else{if(e.issues.length===t)continue;n||(n=td(e,t))}}return i?i.then(()=>e):e},r=(r,n,a)=>{if(td(r))return r.aborted=!0,r;let o=t(n,i,a);if(o instanceof Promise){if(!1===a.async)throw new eJ;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(n,a)=>{if(a.skipChecks)return e._zod.parse(n,a);if("backward"===a.direction){let t=e._zod.parse({value:n.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,n,a)):r(t,n,a)}let o=e._zod.parse(n,a);if(o instanceof Promise){if(!1===a.async)throw new eJ;return o.then(e=>t(e,i,a))}return t(o,i,a)}}e1(e,"~standard",()=>({validate:t=>{try{let r=tN(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return tP(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),oO=eL("$ZodString",(e,t)=>{oE.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??aB(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),oZ=eL("$ZodStringFormat",(e,t)=>{om.init(e,t),oO.init(e,t)}
18),oz=eL("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ax),oZ.init(e,t)}),oj=eL("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ak(e))}else t.pattern??(t.pattern=ak());oZ.init(e,t)}),oT=eL("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=aE),oZ.init(e,t)}),oU=eL("$ZodURL",(e,t)=>{oZ.init(e,t),e._zod.check=r=>{try{let i=r.value.trim();if(!t.normalize&&t.protocol?.source===aD.source&&!/^https?:\/\//i.test(i))return void r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});let n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch(i){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),oN=eL("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=aZ()),oZ.init(e,t)}),oA=eL("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ab),oZ.init(e,t)}),oP=eL("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ah),oZ.init(e,t)}),oD=eL("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ag),oZ.init(e,t)}),oC=eL("$ZodULID",(e,t)=>{t.pattern??(t.pattern=av),oZ.init(e,t)}),oR=eL("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ay),oZ.init(e,t)}),oM=eL("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=a_),oZ.init(e,t)}),oL=eL("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=aJ(t)),oZ.init(e,t)}),oF=eL("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=aM),oZ.init(e,t)}),oJ=eL("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=aF(t)),oZ.init(e,t)}),oB=eL("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=a$),oZ.init(e,t)}),oV=eL("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=az),oZ.init(e,t),e._zod.bag.format="ipv4"}),oW=eL("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=aj),oZ.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),oq=eL("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=aT(t.delimiter)),oZ.init(e,t),e._zod.bag.format="mac"}),oG=eL("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=aU),oZ.init(e,t)}),oK=eL("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=aN),oZ.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(2!==i.length)throw Error();let[e,t]=i;if(!t)throw Error();let r=Number(t);if(`${r}`!==t||r<0||r>128)throw Error();new URL(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function oX(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let oY=eL("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=aA),oZ.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{oX(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function oH(e){if(!aP.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return oX(t.padEnd(4*Math.ceil(t.length/4),"="))}let oQ=eL("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=aP),oZ.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{oH(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),o0=eL("$ZodE164",(e,t)=>{t.pattern??(t.pattern=aC),oZ.init(e,t)});function o1(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));if("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))return!1;return!0}catch{return!1}}let o4=eL("$ZodJWT",(e,t)=>{oZ.init(e,t),e._zod.check=r=>{o1(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),o6=eL("$ZodCustomStringFormat",(e,t)=>{oZ.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),o2=eL("$ZodNumber",(e,t)=>{oE.init(e,t),e._zod.pattern=e._zod.bag.pattern??aq,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let n=r.value;if("number"==typeof n&&!Number.isNaN(n)&&Number.isFinite(n))return r;let a="number"==typeof n?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...a?{received:a}:{}}),r}}),o9=eL("$ZodNumberFormat",(e,t)=>{oo.init(e,t),o2.init(e,t)}
18),o5=eL("$ZodBoolean",(e,t)=>{oE.init(e,t),e._zod.pattern=aG,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let n=r.value;return"boolean"==typeof n||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),o3=eL("$ZodBigInt",(e,t)=>{oE.init(e,t),e._zod.pattern=aV,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch(e){}return"bigint"==typeof r.value||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),o8=eL("$ZodBigIntFormat",(e,t)=>{os.init(e,t),o3.init(e,t)}),o7=eL("$ZodSymbol",(e,t)=>{oE.init(e,t),e._zod.parse=(t,r)=>{let i=t.value;return"symbol"==typeof i||t.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),t}}),se=eL("$ZodUndefined",(e,t)=>{oE.init(e,t),e._zod.pattern=aX,e._zod.values=new Set([void 0]),e._zod.parse=(t,r)=>{let i=t.value;return void 0===i||t.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),t}}),st=eL("$ZodNull",(e,t)=>{oE.init(e,t),e._zod.pattern=aK,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{let i=t.value;return null===i||t.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),t}}),sr=eL("$ZodAny",(e,t)=>{oE.init(e,t),e._zod.parse=e=>e}),si=eL("$ZodUnknown",(e,t)=>{oE.init(e,t),e._zod.parse=e=>e}),sn=eL("$ZodNever",(e,t)=>{oE.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),sa=eL("$ZodVoid",(e,t)=>{oE.init(e,t),e._zod.parse=(t,r)=>{let i=t.value;return void 0===i||t.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),t}}),so=eL("$ZodDate",(e,t)=>{oE.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch(e){}let n=r.value,a=n instanceof Date;return a&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...a?{received:"Invalid Date"}:{},inst:e}),r}});function ss(e,t,r){e.issues.length&&t.issues.push(...tp(r,e.issues)),t.value[r]=e.value}let su=eL("$ZodArray",(e,t)=>{oE.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let a=[];for(let e=0;e<n.length;e++){let o=n[e],s=t.element._zod.run({value:o,issues:[]},i);s instanceof Promise?a.push(s.then(t=>ss(t,r,e))):ss(s,r,e)}return a.length?Promise.all(a).then(()=>r):r}});function sl(e,t,r,i,n,a){let o=r in i;if(e.issues.length){if(n&&a&&!o)return;t.issues.push(...tp(r,e.issues))}if(!o&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}void 0===e.value?o&&(t.value[r]=void 0):t.value[r]=e.value}function sd(e){let t=Object.keys(e.shape);for(let r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${r}": expected a Zod schema`);let r=ts(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function sc(e,t,r,i,n,a){let o=[],s=n.keySet,u=n.catchall._zod,l=u.def.type,d="optional"===u.optin,c="optional"===u.optout;for(let n in t){if("__proto__"===n||s.has(n))continue;if("never"===l){o.push(n);continue}let a=u.run({value:t[n],issues:[]},i);a instanceof Promise?e.push(a.then(e=>sl(e,r,n,t,d,c))):sl(a,r,n,t,d,c)}return(o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length)?Promise.all(e).then(()=>r):r}let sp=eL("$ZodObject",(e,t)=>{let r;oE.init(e,t);let i=Object.getOwnPropertyDescriptor(t,"shape");if(!i?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}let n=eX(()=>sd(t));e1(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let i=e[t]._zod;if(i.values)for(let e of(r[t]??(r[t]=new Set),i.values))r[t].add(e)}return r});let a=t.catchall;e._zod.parse=(t,i)=>{r??(r=n.value);let o=t.value;if(!e3(o))return t.issues.push({expected:"object",code:"invalid_type",input:o,inst:e}),t;t.value={};let s=[],u=r.shape;for(let e of r.keys){let r=u[e],n="optional"===r._zod.optin,a="optional"===r._zod.optout,l=r._zod.run({value:o[e],issues:[]},i);l instanceof Promise?s.push(l.then(r=>sl(r,t,e,o,n,a))):sl(l,t,e,o,n,a)}return a?sc(s,o,t,i,n.value,e):s.length?Promise.all(s).then(()=>t):t}}),sf=eL("$ZodObjectJIT",(e,t)=>{let r,i;sp.init(e,t);let n=e._zod.parse,a=eX(()=>sd(t)),o=!eV.jitless,s=o&&e8.value,u=t.catchall;e._zod.parse=(l,d)=>{i??(i=a.value);let c=l.value;return e3(c)?o&&s&&d?.async===!1&&!0!==d.jitless?(r||(r=(e=>{let t=new oI(["shape","payload","ctx"]),r=a.value,i=e=>{let t=e2(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let n=Object.create(null),o=0;for(let e of r.keys)n[e]=`key_${o++}`;for(let a of(t.write("const newResult = {};"),r.keys)){let r=n[a],o=e2(a),s=e[a],u=s?._zod?.optin==="optional",l=s?._zod?.optout==="optional";t.write(`const ${r} = ${i(a)};`),u&&l?t.write(` 19 if (${r}.issues.length) { 20 if (${o} in input) { 21 payload.issues = payload.issues.concat(${r}.issues.map(iss => ({ 22 ...iss, 23 path: iss.path ? [${o}, ...iss.path] : [${o}] 24 }))); 25 } 26 } 27 28 if (${r}.value === undefined) { 29 if (${o} in input) { 30 newResult[${o}] = undefined; 31 } 32 } else { 33 newResult[${o}] = ${r}.value; 34 } 35 36 `):u?t.write(` 37 if (${r}.issues.length) { 38 payload.issues = payload.issues.concat(${r}.issues.map(iss => ({ 39 ...iss, 40 path: iss.path ? [${o}, ...iss.path] : [${o}] 41 }))); 42 } 43 44 if (${r}.value === undefined) { 45 if (${o} in input) { 46 newResult[${o}] = undefined; 47 } 48 } else { 49 newResult[${o}] = ${r}.value; 50 } 51 52 `):t.write(` 53 const ${r}_present = ${o} in input; 54 if (${r}.issues.length) { 55 payload.issues = payload.issues.concat(${r}.issues.map(iss => ({ 56 ...iss, 57 path: iss.path ? [${o}, ...iss.path] : [${o}] 58 }))); 59 } 60 if (!${r}_present && !${r}.issues.length) { 61 payload.issues.push({
62 code: "invalid_type", 63 expected: "nonoptional", 64 input: undefined, 65 path: [${o}] 66 }); 67 } 68 69 if (${r}_present) { 70 if (${r}.value === undefined) { 71 newResult[${o}] = undefined; 72 } else { 73 newResult[${o}] = ${r}.value; 74 } 75 } 76 77 `)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,r)=>s(e,t,r)})(t.shape)),l=r(l,d),u)?sc([],c,l,d,i,e):l:n(l,d):(l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l)}});function sm(e,t,r,i){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;let n=e.filter(e=>!td(e));return 1===n.length?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>tm(e,i,eW())))}),t)}let sh=eL("$ZodUnion",(e,t)=>{oE.init(e,t),e1(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),e1(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),e1(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),e1(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>eH(e.source)).join("|")})$`)}});let r=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},n);if(t instanceof Promise)o.push(t),a=!0;else{if(0===t.issues.length)return t;o.push(t)}}return a?Promise.all(o).then(t=>sm(t,i,e,n)):sm(o,i,e,n)}});function sg(e,t,r,i){let n=e.filter(e=>0===e.issues.length);return 1===n.length?t.value=n[0].value:0===n.length?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>tm(e,i,eW())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t}let sv=eL("$ZodXor",(e,t)=>{sh.init(e,t),t.inclusive=!1;let r=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},n);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>sg(t,i,e,n)):sg(o,i,e,n)}}),sy=eL("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,sh.init(e,t);let r=e._zod.parse;e1(e._zod,"propValues",()=>{let e={};for(let r of t.options){let i=r._zod.propValues;if(!i||0===Object.keys(i).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(i))for(let i of(e[t]||(e[t]=new Set),r))e[t].add(i)}return e});let i=eX(()=>{let e=t.options,r=new Map;for(let i of e){let e=i._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,i)}}return r});e._zod.parse=(n,a)=>{let o=n.value;if(!e3(o))return n.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),n;let s=i.value.get(o?.[t.discriminator]);return s?s._zod.run(n,a):t.unionFallback||"backward"===a.direction?r(n,a):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()),input:o,path:[t.discriminator],inst:e}),n)}}),s_=eL("$ZodIntersection",(e,t)=>{oE.init(e,t),e._zod.parse=(e,r)=>{let i=e.value,n=t.left._zod.run({value:i,issues:[]},r),a=t.right._zod.run({value:i,issues:[]},r);return n instanceof Promise||a instanceof Promise?Promise.all([n,a]).then(([t,r])=>sb(e,t,r)):sb(e,n,a)}});function sb(e,t,r){let i,n=new Map;for(let r of t.issues)if("unrecognized_keys"===r.code)for(let e of(i??(i=r),r.keys))n.has(e)||n.set(e,{}),n.get(e).l=!0;else e.issues.push(r);for(let t of r.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)n.has(e)||n.set(e,{}),n.get(e).r=!0;else e.issues.push(t);let a=[...n].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),td(e))return e;let o=function e(t,r){if(t===r||t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(e7(t)&&e7(r)){let i=Object.keys(r),n=Object.keys(t).filter(e=>-1!==i.indexOf(e)),a={...t,...r};for(let i of n){let n=e(t[i],r[i]);if(!n.valid)return{valid:!1,mergeErrorPath:[i,...n.mergeErrorPath]};a[i]=n.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let i=[];for(let n=0;n<t.length;n++){let a=e(t[n],r[n]);
77if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};i.push(a.data)}return{valid:!0,data:i}}return{valid:!1,mergeErrorPath:[]}}(t.value,r.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}let s$=eL("$ZodTuple",(e,t)=>{oE.init(e,t);let r=t.items;e._zod.parse=(i,n)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let o=[],s=sx(r,"optin"),u=sx(r,"optout");if(!t.rest){if(a.length<s)return i.issues.push({code:"too_small",minimum:s,inclusive:!0,input:a,inst:e,origin:"array"}),i;a.length>r.length&&i.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:a,inst:e,origin:"array"})}let l=Array(r.length);for(let e=0;e<r.length;e++){let t=r[e]._zod.run({value:a[e],issues:[]},n);t instanceof Promise?o.push(t.then(t=>{l[e]=t})):l[e]=t}if(t.rest){let e=r.length-1;for(let s of a.slice(r.length)){e++;let r=t.rest._zod.run({value:s,issues:[]},n);r instanceof Promise?o.push(r.then(t=>sk(t,i,e))):sk(r,i,e)}}return o.length?Promise.all(o).then(()=>sw(l,i,r,a,u)):sw(l,i,r,a,u)}});function sx(e,t){for(let r=e.length-1;r>=0;r--)if("optional"!==e[r]._zod[t])return r+1;return 0}function sk(e,t,r){e.issues.length&&t.issues.push(...tp(r,e.issues)),t.value[r]=e.value}function sw(e,t,r,i,n){for(let a=0;a<r.length;a++){let r=e[a],o=a<i.length;if(r.issues.length){if(!o&&a>=n){t.value.length=a;break}t.issues.push(...tp(a,r.issues))}t.value[a]=r.value}for(let e=t.value.length-1;e>=i.length;e--)if("optional"===r[e]._zod.optout&&void 0===t.value[e])t.value.length=e;else break;return t}let sI=eL("$ZodRecord",(e,t)=>{oE.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!e7(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let a=[],o=t.keyType._zod.values;if(o){let s;r.value={};let u=new Set;for(let s of o)if("string"==typeof s||"number"==typeof s||"symbol"==typeof s){u.add("number"==typeof s?s.toString():s);let o=t.keyType._zod.run({value:s,issues:[]},i);if(o instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(o.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:o.issues.map(e=>tm(e,i,eW())),input:s,path:[s],inst:e});continue}let l=o.value,d=t.valueType._zod.run({value:n[s],issues:[]},i);d instanceof Promise?a.push(d.then(e=>{e.issues.length&&r.issues.push(...tp(s,e.issues)),r.value[l]=e.value})):(d.issues.length&&r.issues.push(...tp(s,d.issues)),r.value[l]=d.value)}for(let e in n)u.has(e)||(s=s??[]).push(e);s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:s})}else for(let o of(r.value={},Reflect.ownKeys(n))){if("__proto__"===o||!Object.prototype.propertyIsEnumerable.call(n,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},i);if(s instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof o&&aq.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},i);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(s=e)}if(s.issues.length){"loose"===t.mode?r.value[o]=n[o]:r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(e=>tm(e,i,eW())),input:o,path:[o],inst:e});continue}let u=t.valueType._zod.run({value:n[o],issues:[]},i);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&r.issues.push(...tp(o,e.issues)),r.value[s.value]=e.value})):(u.issues.length&&r.issues.push(...tp(o,u.issues)),r.value[s.value]=u.value)}return a.length?Promise.all(a).then(()=>r):r}}),sS=eL("$ZodMap",(e,t)=>{oE.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let a=[];for(let[o,s]of(r.value=new Map,n)){let u=t.keyType._zod.run({value:o,issues:[]},i),l=t.valueType._zod.run({value:s,issues:[]},i);u instanceof Promise||l instanceof Promise?a.push(Promise.all([u,l]).then(([t,a])=>{sE(t,a,r,o,n,e,i)})):sE(u,l,r,o,n,e,i)}return a.length?Promise.all(a).then(()=>r):r}});function sE(e,t,r,i,n,a,o){e.issues.length&&(tt.has(typeof i)?r.issues.push(...tp(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:a,issues:e.issues.map(e=>tm(e,o,eW()))})),t.issues.length&&(tt.has(typeof i)?r.issues.push(...tp(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:a,key:i,issues:t.issues.map(e=>tm(e,o,eW()))})),r.value.set(e.value,t.value)}let sO=eL("$ZodSet",(e,t)=>{oE.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let a=[];for(let e of(r.value=new Set,n)){let n=t.valueType._zod.run({value:e,issues:[]},i);n instanceof Promise?a.push(n.then(e=>sZ(e,r))):sZ(n,r)}return a.length?Promise.all(a).then(()=>r):r}});function sZ(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let sz=eL("$ZodEnum",(e,t)=>{oE.init(e,t);let r=eq(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=RegExp(`^(${r.filter(e=>tt.has(typeof e)).map(e=>"string"==typeof e?ti(e):e.toString()).join("|")})$`),e._zod.parse=(t,n)=>{let a=t.value;return i.has(a)||t.issues.push({code:"invalid_value",values:r,input:a,inst:e}),t}}),sj=eL("$ZodLiteral",(e,t)=>{if(oE.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?ti(e):e?ti(e.toString()):String(e)).join("|")})$`),e._zod.parse=(i,n)=>{let a=i.value;return r.has(a)||i.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),i}}),sT=eL("$ZodFile",(e,t)=>{oE.init(e,t),e._zod.parse=(t,r)=>{let i=t.value;return i instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),t}}),sU=eL("$ZodTransform",(e,t)=>{oE.init(e,t),e._zod.optin="optional",e._zod.parse=(r,i)=>{if("backward"===i.direction)throw new eB(e.constructor.name);let n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(e=>(r.value=e,r.fallback=!0,r));if(n instanceof Promise)throw new eJ;return r.value=n,r.fallback=!0,r}});function sN(e,t){return void 0===t&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}let sA=eL("$ZodOptional",(e,t)=>{oE.init(e,t),e._zod.optin="optional",e._zod.optout="optional",e1(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),e1(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${eH(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){let i=e.value,n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>sN(e,i)):sN(n,i)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),sP=eL("$ZodExactOptional",(e,t)=>{sA.init(e,t),e1(e._zod,"values",()=>t.innerType._zod.values),e1(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,r)=>t.innerType._zod.run(e,r)}),sD=eL("$ZodNullable",(e,t)=>{oE.init(e,t),e1(e._zod,"optin",()=>t.innerType._zod.optin),e1(e._zod,"optout",()=>t.innerType._zod.optout),e1(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${eH(e.source)}|null)$`):void 0}),e1(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),sC=eL("$ZodDefault",(e,t)=>{oE.init(e,t),e._zod.optin="optional",e1(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(e=>sR(e,t)):sR(i,t)}});function sR(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let sM=eL("$ZodPrefault",(e,t)=>{oE.init(e,t),e._zod.optin="optional",e1(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),sL=eL("$ZodNonOptional",(e,t)=>{oE.init(e,t),e1(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(t=>sF(t,e)):sF(n,e)}});function sF(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let sJ=eL("$ZodSuccess",(e,t)=>{oE.init(e,t),e._zod.parse=(e,r)=>{if("backward"===r.direction)throw new eB("ZodSuccess");let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===i.issues.length,e)}}),sB=eL("$ZodCatch",(e,t)=>{oE.init(e,t),e._zod.optin="optional",e1(e._zod,"optout",()=>t.innerType._zod.optout),e1(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(i=>(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>tm(e,r,eW()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>tm(e,r,eW()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),sV=eL("$ZodNaN",(e,t)=>{oE.init(e,t),e._zod.parse=(t,r)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),sW=eL("$ZodPipe",(e,t)=>{oE.init(e,t),e1(e._zod,"values",()=>t.in._zod.values),e1(e._zod,"optin",()=>t.in._zod.optin),e1(e._zod,"optout",()=>t.out._zod.optout),e1(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){let i=t.out._zod.run(e,r);return i instanceof Promise?i.then(e=>sq(e,t.in,r)):sq(i,t.in,r)}let i=t.in._zod.run(e,r);return i instanceof Promise?i.then(e=>sq(e,t.out,r)):sq(i,t.out,r)}});function sq(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}let sG=eL("$ZodCodec",(e,t)=>{oE.init(e,t),e1(e._zod,"values",()=>t.in._zod.values),e1(e._zod,"optin",()=>t.in._zod.optin),e1(e._zod,"optout",()=>t.out._zod.optout),e1(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("forward"===(r.direction||"forward")){let i=t.in._zod.run(e,r);return i instanceof Promise?i.then(e=>sK(e,t,r)):sK(i,t,r)}{let i=t.out._zod.run(e,r);return i instanceof Promise?i.then(e=>sK(e,t,r)):sK(i,t,r)}}});function sK(e,t,r){if(e.issues.length)return e.aborted=!0,e;if("forward"===(r.direction||"forward")){let i=t.transform(e.value,e);return i instanceof Promise?i.then(i=>sX(e,i,t.out,r)):sX(e,i,t.out,r)}{let i=t.reverseTransform(e.value,e);return i instanceof Promise?i.then(i=>sX(e,i,t.in,r)):sX(e,i,t.in,r)}}function sX(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}let sY=eL("$ZodPreprocess",(e,t)=>{sW.init(e,t)}),sH=eL("$ZodReadonly",(e,t)=>{oE.init(e,t),e1(e._zod,"propValues",()=>t.innerType._zod.propValues),e1(e._zod,"values",()=>t.innerType._zod.values),e1(e._zod,"optin",()=>t.innerType?._zod?.optin),e1(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(sQ):sQ(i)}});function sQ(e){return e.value=Object.freeze(e.value),e}let s0=eL("$ZodTemplateLiteral",(e,t)=>{oE.init(e,t);let r=[];for(let e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let i=+!!t.startsWith("^"),n=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(i,n))}else if(null===e||tr.has(typeof e))r.push(ti(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${r.join("")}$`),e._zod.parse=(r,i)=>
77("string"!=typeof r.value?r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),r)}),s1=eL("$ZodFunction",(e,t)=>(oE.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw Error("implement() must be called with a function");return function(...r){let i=Reflect.apply(t,this,e._def.input?tz(e._def.input,r):r);return e._def.output?tz(e._def.output,i):i}},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return async function(...r){let i=e._def.input?await tT(e._def.input,r):r,n=await Reflect.apply(t,this,i);return e._def.output?await tT(e._def.output,n):n}},e._zod.parse=(t,r)=>("function"!=typeof t.value?t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}):e._def.output&&"promise"===e._def.output._zod.def.type?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t),e.input=(...t)=>{let r=e.constructor;return new r(Array.isArray(t[0])?{type:"function",input:new s$({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}:{type:"function",input:t[0],output:e._def.output})},e.output=t=>new e.constructor({type:"function",input:e._def.input,output:t}),e)),s4=eL("$ZodPromise",(e,t)=>{oE.init(e,t),e._zod.parse=(e,r)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},r))}),s6=eL("$ZodLazy",(e,t)=>{oE.init(e,t),e1(e._zod,"innerType",()=>(t._cachedInner||(t._cachedInner=t.getter()),t._cachedInner)),e1(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),e1(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),e1(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),e1(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),s2=eL("$ZodCustom",(e,t)=>{ot.init(e,t),oE.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(t=>s9(t,r,i,e));s9(n,r,i,e)}});function s9(e,t,r,i){if(!e){let e={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(e.params=i._zod.def.params),t.issues.push(ty(e))}}e.s(["$ZodAny",0,sr,"$ZodArray",0,su,"$ZodBase64",0,oY,"$ZodBase64URL",0,oQ,"$ZodBigInt",0,o3,"$ZodBigIntFormat",0,o8,"$ZodBoolean",0,o5,"$ZodCIDRv4",0,oG,"$ZodCIDRv6",0,oK,"$ZodCUID",0,oP,"$ZodCUID2",0,oD,"$ZodCatch",0,sB,"$ZodCodec",0,sG,"$ZodCustom",0,s2,"$ZodCustomStringFormat",0,o6,"$ZodDate",0,so,"$ZodDefault",0,sC,"$ZodDiscriminatedUnion",0,sy,"$ZodE164",0,o0,"$ZodEmail",0,oT,"$ZodEmoji",0,oN,"$ZodEnum",0,sz,"$ZodExactOptional",0,sP,"$ZodFile",0,sT,"$ZodFunction",0,s1,"$ZodGUID",0,oz,"$ZodIPv4",0,oV,"$ZodIPv6",0,oW,"$ZodISODate",0,oF,"$ZodISODateTime",0,oL,"$ZodISODuration",0,oB,"$ZodISOTime",0,oJ,"$ZodIntersection",0,s_,"$ZodJWT",0,o4,"$ZodKSUID",0,oM,"$ZodLazy",0,s6,"$ZodLiteral",0,sj,"$ZodMAC",0,oq,"$ZodMap",0,sS,"$ZodNaN",0,sV,"$ZodNanoID",0,oA,"$ZodNever",0,sn,"$ZodNonOptional",0,sL,"$ZodNull",0,st,"$ZodNullable",0,sD,"$ZodNumber",0,o2,"$ZodNumberFormat",0,o9,"$ZodObject",0,sp,"$ZodObjectJIT",0,sf,"$ZodOptional",0,sA,"$ZodPipe",0,sW,"$ZodPrefault",0,sM,"$ZodPreprocess",0,sY,"$ZodPromise",0,s4,"$ZodReadonly",0,sH,"$ZodRecord",0,sI,"$ZodSet",0,sO,"$ZodString",0,oO,"$ZodStringFormat",0,oZ,"$ZodSuccess",0,sJ,"$ZodSymbol",0,o7,"$ZodTemplateLiteral",0,s0,"$ZodTransform",0,sU,"$ZodTuple",0,s$,"$ZodType",0,oE,"$ZodULID",0,oC,"$ZodURL",0,oU,"$ZodUUID",0,oj,"$ZodUndefined",0,se,"$ZodUnion",0,sh,"$ZodUnknown",0,si,"$ZodVoid",0,sa,"$ZodXID",0,oR,"$ZodXor",0,sv,"isValidBase64",0,oX,"isValidBase64URL",0,oH,"isValidJWT",0,o1],76094),e.i(76094),e.s(["$ZodAny",0,sr,"$ZodArray",0,su,"$ZodBase64",0,oY,"$ZodBase64URL",0,oQ,"$ZodBigInt",0,o3,"$ZodBigIntFormat",0,o8,"$ZodBoolean",0,o5,"$ZodCIDRv4",0,oG,"$ZodCIDRv6",0,oK,"$ZodCUID",0,oP,"$ZodCUID2",0,oD,"$ZodCatch",0,sB,"$ZodCodec",0,sG,"$ZodCustom",0,s2,"$ZodCustomStringFormat",0,o6,"$ZodDate",0,so,"$ZodDefault",0,sC,"$ZodDiscriminatedUnion",0,sy,"$ZodE164",0,o0,"$ZodEmail",0,oT,"$ZodEmoji",0,oN,"$ZodEnum",0,sz,"$ZodExactOptional",0,sP,"$ZodFile",0,sT,"$ZodFunction",0,s1,"$ZodGUID",0,oz,"$ZodIPv4",0,oV,"$ZodIPv6",0,oW,"$ZodISODate",0,oF,"$ZodISODateTime",0,oL,"$ZodISODuration",0,oB,"$ZodISOTime",0,oJ,"$ZodIntersection",0,s_,"$ZodJWT",0,o4,"$ZodKSUID",0,oM,"$ZodLazy",0,s6,"$ZodLiteral",0,sj,"$ZodMAC",0,oq,"$ZodMap",0,sS,"$ZodNaN",0,sV,"$ZodNanoID",0,oA,"$ZodNever",0,sn,"$ZodNonOptional",0,sL,"$ZodNull",0,st,"$ZodNullable",0,sD,"$ZodNumber",0,o2,"$ZodNumberFormat",0,o9,"$ZodObject",0,sp,"$ZodObjectJIT",0,sf,"$ZodOptional",0,sA,"$ZodPipe",0,sW,"$ZodPrefault",0,sM,"$ZodPreprocess",0,sY,"$ZodPromise",0,s4,"$ZodReadonly",0,sH,"$ZodRecord",0,sI,"$ZodSet",0,sO,"$ZodString",0,oO,"$ZodStringFormat",0,oZ,"$ZodSuccess",0,sJ,"$ZodSymbol",0,o7,"$ZodTemplateLiteral",0,s0,"$ZodTransform",0,sU,"$ZodTuple",0,s$,"$ZodT
77ype",0,oE,"$ZodULID",0,oC,"$ZodURL",0,oU,"$ZodUUID",0,oj,"$ZodUndefined",0,se,"$ZodUnion",0,sh,"$ZodUnknown",0,si,"$ZodVoid",0,sa,"$ZodXID",0,oR,"$ZodXor",0,sv,"clone",0,tn,"isValidBase64",0,oX,"isValidBase64URL",0,oH,"isValidJWT",0,o1],32952),e.i(32952),e.i(55605),e.i(39778);var s5=e.i(22143),s3=e.i(82358);function s8(e,t,r,i){let n=Math.abs(e),a=n%10,o=n%100;return o>=11&&o<=19?i:1===a?t:a>=2&&a<=4?r:i}function s7(e,t,r){return 1===Math.abs(e)?t:r}function ue(e){if(!e)return"";let t=e[e.length-1];return e+(["Õ¡","Õ¥","Õ¨","Õ«","Õ¸","Õ¸Ö","Ö
"].includes(t)?"Õ¶":"Õ¨")}function ut(){let e,t,r;return{localeError:(e={string:{unit:"áá½á¢áááá",verb:"áá½ááá¶á"},file:{unit:"áá",verb:"áá½ááá¶á"},array:{unit:"áá¶áá»",verb:"áá½ááá¶á"},set:{unit:"áá¶áá»",verb:"áá½ááá¶á"}},t={regex:"áá·áááááááááá
á¼á",email:"á¢á¶áááááá¶áá¢áá¸ááá",url:"URL",emoji:"ááááá¶á¢á¶áááááá",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"áá¶áááá·á
áááá áá·ááááá ISO",date:"áá¶áááá·á
áááá ISO",time:"áááá ISO",duration:"áááááá ISO",ipv4:"á¢á¶áááááá¶á IPv4",ipv6:"á¢á¶áááááá¶á IPv6",cidrv4:"áááá¢á¶áááááá¶á IPv4",cidrv6:"áááá¢á¶áááááá¶á IPv6",base64:"ááááá¢ááááá¢áá·áá¼á base64",base64url:"ááááá¢ááááá¢áá·áá¼á base64url",json_string:"ááááá¢áááá JSON",e164:"ááá E.164",jwt:"JWT",template_literal:"áá·áááááááááá
á¼á"},r={nan:"NaN",number:"ááá",array:"á¢á¶áá (Array)",null:"áááá¶áááááá (null)"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`áá·áááááááááá
á¼ááá·ááááá¹ááááá¼áá áááá¼ááá¶á instanceof ${i.expected} ááá»ááááááá½ááá¶á ${n}`;return`áá·áááááááááá
á¼ááá·ááááá¹ááááá¼áá áááá¼ááá¶á ${e} ááá»ááááááá½ááá¶á ${n}`}case"invalid_value":if(1===i.values.length)return`áá·áááááááááá
á¼ááá·ááááá¹ááááá¼áá áááá¼ááá¶á ${to(i.values[0])}`;return`ááááá¾ááá·ááááá¹ááááá¼áá áááá¼ááá¶áá½ááááá»áá
áááá ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`áááááá áááá¼ááá¶á ${i.origin??"ááááá"} ${t} ${i.maximum.toString()} ${r.unit??"áá¶áá»"}`;return`áááááá áááá¼ááá¶á ${i.origin??"ááááá"} ${t} ${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`áá¼á
áááá áááá¼ááá¶á ${i.origin} ${t} ${i.minimum.toString()} ${r.unit}`;return`áá¼á
áááá áááá¼ááá¶á ${i.origin} ${t} ${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼áá
á¶áááááá¾áááá "${i.prefix}"`;if("ends_with"===i.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼ááááá
ááááá "${i.suffix}"`;if("includes"===i.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼ááá¶á "${i.includes}"`;if("regex"===i.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼ááááááá¼áááááá¹áááááááááááá¶áááááá ${i.pattern}`;return`áá·ááááá¹ááááá¼áá ${t[i.format]??i.format}`;case"not_multiple_of":return`ááááá·ááááá¹ááááá¼áá áááá¼ááááá¶áá á»áá»ááá ${i.divisor}`;case"unrecognized_keys":return`áááá¾ááááá·ááááá¶ááá ${eG(i.keys,", ")}`;
77case"invalid_key":return`áááá·ááááá¹ááááá¼ááá
áááá»á ${i.origin}`;case"invalid_union":default:return"áá·áááááááá·ááááá¹ááááá¼á";case"invalid_element":return`áá·áááááááá·ááááá¹ááááá¼ááá
áááá»á ${i.origin}`}})}}e.s([],43365),e.i(43365);let ur=e=>e.charAt(0).toUpperCase()+e.slice(1);function ui(e){let t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||0===r?"many":1===r?"one":"few"}function un(e,t,r,i){let n=Math.abs(e),a=n%10,o=n%100;return o>=11&&o<=19?i:1===a?t:a>=2&&a<=4?r:i}function ua(){let e,t,r;return{localeError:(e={string:{unit:"ÑимволÑв",verb:"маÑиме"},file:{unit:"байÑÑв",verb:"маÑиме"},array:{unit:"елеменÑÑв",verb:"маÑиме"},set:{unit:"елеменÑÑв",verb:"маÑиме"}},t={regex:"вÑ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ",email:"адÑеÑа елекÑÑÐ¾Ð½Ð½Ð¾Ñ Ð¿Ð¾ÑÑи",url:"URL",emoji:"емодзÑ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"даÑа Ñа ÑÐ°Ñ ISO",date:"даÑа ISO",time:"ÑÐ°Ñ ISO",duration:"ÑÑивалÑÑÑÑ ISO",ipv4:"адÑеÑа IPv4",ipv6:"адÑеÑа IPv6",cidrv4:"дÑапазон IPv4",cidrv6:"дÑапазон IPv6",base64:"ÑÑдок Ñ ÐºÐ¾Ð´ÑÐ²Ð°Ð½Ð½Ñ base64",base64url:"ÑÑдок Ñ ÐºÐ¾Ð´ÑÐ²Ð°Ð½Ð½Ñ base64url",json_string:"ÑÑдок JSON",e164:"Ð½Ð¾Ð¼ÐµÑ E.164",jwt:"JWT",template_literal:"вÑ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ"},r={nan:"NaN",number:"ÑиÑло",array:"маÑив"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ: оÑÑкÑÑÑÑÑÑ instanceof ${i.expected}, оÑÑимано ${n}`;return`ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ: оÑÑкÑÑÑÑÑÑ ${e}, оÑÑимано ${n}`}case"invalid_value":if(1===i.values.length)return`ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ: оÑÑкÑÑÑÑÑÑ ${to(i.values[0])}`;return`ÐепÑавилÑна опÑÑÑ: оÑÑкÑÑÑÑÑÑ Ð¾Ð´Ð½Ðµ з ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`ÐанадÑо велике: оÑÑкÑÑÑÑÑÑ, Ñо ${i.origin??"знаÑеннÑ"} ${r.verb} ${t}${i.maximum.toString()} ${r.unit??"елеменÑÑв"}`;return`ÐанадÑо велике: оÑÑкÑÑÑÑÑÑ, Ñо ${i.origin??"знаÑеннÑ"} бÑде ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`ÐанадÑо мале: оÑÑкÑÑÑÑÑÑ, Ñо ${i.origin} ${r.verb} ${t}${i.minimum.toString()} ${r.unit}`;return`ÐанадÑо мале: оÑÑкÑÑÑÑÑÑ, Ñо ${i.origin} бÑде ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`ÐепÑавилÑний ÑÑдок: повинен поÑинаÑиÑÑ Ð· "${i.prefix}"`;if("ends_with"===i.format)return`ÐепÑавилÑний ÑÑдок: повинен закÑнÑÑваÑиÑÑ Ð½Ð° "${i.suffix}"`;if("includes"===i.format)return`ÐепÑавилÑний ÑÑдок: повинен мÑÑÑиÑи "${i.includes}"`;if("regex"===i.format)return`ÐепÑавилÑний ÑÑдок: повинен вÑдповÑдаÑи ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${i.pattern}`;return`ÐепÑавилÑний ${t[i.format]??i.format}`;case"not_multiple_of":return`ÐепÑавилÑне ÑиÑло: повинно бÑÑи кÑаÑним ${i.divisor}`;case"unrecognized_keys":return`ÐеÑозпÑзнаний клÑÑ${i.keys.length>1?"Ñ":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`ÐепÑавилÑний клÑÑ Ñ ${i.origin}`;case"invalid_union":default:return"ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ";case"invalid_element":return`ÐепÑавилÑне знаÑÐµÐ½Ð½Ñ Ñ ${i.origin}`}})}}e.s(["ar",0,function(){let e,t,r;return{localeError:(e={string:{unit:"ØØ±Ù",verb:"Ø£Ù ÙØÙÙ"},file:{unit:"Ø¨Ø§ÙØª",verb:"Ø£Ù ÙØÙÙ"},array:{unit:"Ø¹ÙØµØ±",verb:"Ø£Ù ÙØÙÙ"},set:{unit:"Ø¹ÙØµØ±",verb:"Ø£Ù ÙØÙÙ"}},t={regex:"Ù
دخÙ",email:"Ø¨Ø±ÙØ¯ Ø¥ÙÙØªØ±ÙÙÙ",url:"رابط",emoji:"Ø¥ÙÙ
ÙØ¬Ù",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ØªØ§Ø±ÙØ® ÙÙÙØª بÙ
Ø¹ÙØ§Ø± ISO",date:"ØªØ§Ø±ÙØ® بÙ
Ø¹ÙØ§Ø± ISO",time:"ÙÙØª بÙ
Ø¹ÙØ§Ø± ISO",duration:"Ù
دة بÙ
Ø¹ÙØ§Ø± ISO",ipv4:"عÙÙØ§Ù IPv4",ipv6:"عÙÙØ§Ù IPv6",cidrv4:"Ù
Ø¯Ù Ø¹ÙØ§ÙÙÙ Ø¨ØµÙØºØ© IPv4",cidrv6:"Ù
Ø¯Ù Ø¹ÙØ§ÙÙÙ Ø¨ØµÙØºØ© IPv6",base64:"ÙÙØµ بترÙ
ÙØ² base64-encoded",base64url:"ÙÙØµ بترÙ
ÙØ² base64url-encoded",json_string:"ÙÙØµ عÙÙ ÙÙØ¦Ø© JSON",e164:"رÙÙ
ÙØ§ØªÙ بÙ
Ø¹ÙØ§Ø± E.164",jwt:"JWT",template_literal:"Ù
دخÙ"},r={nan:"NaN"},i=>
77{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Ù
Ø¯Ø®ÙØ§Øª ØºÙØ± Ù
ÙØ¨ÙÙØ©: ÙÙØªØ±Ø¶ إدخا٠instanceof ${i.expected}Ø ÙÙÙ٠تÙ
إدخا٠${n}`;return`Ù
Ø¯Ø®ÙØ§Øª ØºÙØ± Ù
ÙØ¨ÙÙØ©: ÙÙØªØ±Ø¶ إدخا٠${e}Ø ÙÙÙ٠تÙ
إدخا٠${n}`}case"invalid_value":if(1===i.values.length)return`Ù
Ø¯Ø®ÙØ§Øª ØºÙØ± Ù
ÙØ¨ÙÙØ©: ÙÙØªØ±Ø¶ إدخا٠${to(i.values[0])}`;return`Ø§Ø®ØªÙØ§Ø± ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØªÙÙØ¹ Ø§ÙØªÙاء Ø£ØØ¯ ÙØ°Ù Ø§ÙØ®Ùارات: ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return` Ø£ÙØ¨Ø± Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ أ٠تÙÙÙ ${i.origin??"اÙÙÙÙ
Ø©"} ${t} ${i.maximum.toString()} ${r.unit??"Ø¹ÙØµØ±"}`;return`Ø£ÙØ¨Ø± Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ أ٠تÙÙÙ ${i.origin??"اÙÙÙÙ
Ø©"} ${t} ${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`أصغر Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ ÙÙ ${i.origin} Ø£Ù ÙÙÙÙ ${t} ${i.minimum.toString()} ${r.unit}`;return`أصغر Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ ÙÙ ${i.origin} Ø£Ù ÙÙÙÙ ${t} ${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙØ¨Ø¯Ø£ ب٠"${i.prefix}"`;if("ends_with"===i.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙÙØªÙ٠ب٠"${i.suffix}"`;if("includes"===i.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙØªØ¶Ù
ÙÙÙ "${i.includes}"`;if("regex"===i.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙØ·Ø§Ø¨Ù اÙÙÙ
Ø· ${i.pattern}`;return`${t[i.format]??i.format} ØºÙØ± Ù
ÙØ¨ÙÙ`;case"not_multiple_of":return`رÙÙ
ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙÙÙÙ Ù
Ù Ù
Ø¶Ø§Ø¹ÙØ§Øª ${i.divisor}`;case"unrecognized_keys":return`Ù
عرÙ${i.keys.length>1?"ات":""} ØºØ±ÙØ¨${i.keys.length>1?"Ø©":""}: ${eG(i.keys,"Ø ")}`;case"invalid_key":return`Ù
Ø¹Ø±Ù ØºÙØ± Ù
ÙØ¨ÙÙ ÙÙ ${i.origin}`;case"invalid_union":default:return"Ù
Ø¯Ø®Ù ØºÙØ± Ù
ÙØ¨ÙÙ";case"invalid_element":return`Ù
Ø¯Ø®Ù ØºÙØ± Ù
ÙØ¨ÙÙ ÙÙ ${i.origin}`}})}},"az",0,function(){let e,t,r;return{localeError:(e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`YanlıŠdÉyÉr: g\xf6zlÉnilÉn instanceof ${i.expected}, daxil olan ${n}`;return`YanlıŠdÉyÉr: g\xf6zlÉnilÉn ${e}, daxil olan ${n}`}case"invalid_value":if(1===i.values.length)return`YanlıŠdÉyÉr: g\xf6zlÉnilÉn ${to(i.values[0])}`;return`YanlıŠse\xe7im: aÅaÄıdakılardan biri olmalıdır: ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`\xc7ox b\xf6y\xfck: g\xf6zlÉnilÉn ${i.origin??"dÉyÉr"} ${t}${i.maximum.toString()} ${r.unit??"element"}`;return`\xc7ox b\xf6y\xfck: g\xf6zlÉnilÉn ${i.origin??"dÉyÉr"} ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`\xc7ox ki\xe7ik: g\xf6zlÉnilÉn ${i.origin} ${t}${i.minimum.toString()} ${r.unit}`;return`\xc7ox ki\xe7ik: g\xf6zlÉnilÉn ${i.origin} ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`YanlıŠmÉtn: "${i.prefix}" ilÉ baÅlamalıdır`;if("ends_with"===i.format)return`YanlıŠmÉtn: "${i.suffix}" ilÉ bitmÉlidir`;if("includes"===i.format)return`YanlıŠmÉtn: "${i.includes}" daxil olmalıdır`;if("regex"===i.format)return`YanlıŠmÉtn: ${i.pattern} Åablonuna uyÄun olmalıdır`;return`YanlıŠ${t[i.format]??i.format}`;case"not_multiple_of":return`YanlıŠÉdÉd: ${i.divisor} ilÉ b\xf6l\xfcnÉ bilÉn olmalıdır`;case"unrecognized_keys":return`Tanınmayan a\xe7ar${i.keys.length>1?"lar":""}: ${eG(i.keys,", ")}`;
77case"invalid_key":return`${i.origin} daxilindÉ yanlıŠa\xe7ar`;case"invalid_union":default:return"YanlıŠdÉyÉr";case"invalid_element":return`${i.origin} daxilindÉ yanlıŠdÉyÉr`}})}},"be",0,function(){let e,t,r;return{localeError:(e={string:{unit:{one:"ÑÑмвал",few:"ÑÑмвалÑ",many:"ÑÑмвалаÑ"},verb:"меÑÑ"},array:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑÑ",many:"ÑлеменÑаÑ"},verb:"меÑÑ"},set:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑÑ",many:"ÑлеменÑаÑ"},verb:"меÑÑ"},file:{unit:{one:"байÑ",few:"байÑÑ",many:"байÑаÑ"},verb:"меÑÑ"}},t={regex:"Ñвод",email:"email адÑаÑ",url:"URL",emoji:"ÑмодзÑ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO даÑа Ñ ÑаÑ",date:"ISO даÑа",time:"ISO ÑаÑ",duration:"ISO пÑаÑÑглаÑÑÑ",ipv4:"IPv4 адÑаÑ",ipv6:"IPv6 адÑаÑ",cidrv4:"IPv4 дÑÑпазон",cidrv6:"IPv6 дÑÑпазон",base64:"Ñадок Ñ ÑаÑмаÑе base64",base64url:"Ñадок Ñ ÑаÑмаÑе base64url",json_string:"JSON Ñадок",e164:"нÑÐ¼Ð°Ñ E.164",jwt:"JWT",template_literal:"Ñвод"},r={nan:"NaN",number:"лÑк",array:"маÑÑÑ"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`ÐÑпÑавÑлÑÐ½Ñ Ñвод: ÑакаÑÑÑ instanceof ${i.expected}, аÑÑÑмана ${n}`;return`ÐÑпÑавÑлÑÐ½Ñ Ñвод: ÑакаÑÑÑ ${e}, аÑÑÑмана ${n}`}case"invalid_value":if(1===i.values.length)return`ÐÑпÑавÑлÑÐ½Ñ Ñвод: ÑакалаÑÑ ${to(i.values[0])}`;return`ÐÑпÑавÑлÑÐ½Ñ Ð²Ð°ÑÑÑнÑ: ÑакаÑÑÑ Ð°Ð´Ð·Ñн з ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r){let e=s8(Number(i.maximum),r.unit.one,r.unit.few,r.unit.many);return`ÐанадÑа вÑлÑкÑ: ÑакалаÑÑ, ÑÑо ${i.origin??"знаÑÑнне"} павÑнна ${r.verb} ${t}${i.maximum.toString()} ${e}`}return`ÐанадÑа вÑлÑкÑ: ÑакалаÑÑ, ÑÑо ${i.origin??"знаÑÑнне"} павÑнна бÑÑÑ ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r){let e=s8(Number(i.minimum),r.unit.one,r.unit.few,r.unit.many);return`ÐанадÑа малÑ: ÑакалаÑÑ, ÑÑо ${i.origin} павÑнна ${r.verb} ${t}${i.minimum.toString()} ${e}`}return`ÐанадÑа малÑ: ÑакалаÑÑ, ÑÑо ${i.origin} павÑнна бÑÑÑ ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен паÑÑнаÑÑа з "${i.prefix}"`;if("ends_with"===i.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен заканÑваÑÑа на "${i.suffix}"`;if("includes"===i.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен змÑÑÑаÑÑ "${i.includes}"`;if("regex"===i.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен адпавÑдаÑÑ ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${i.pattern}`;return`ÐÑпÑавÑлÑÐ½Ñ ${t[i.format]??i.format}`;case"not_multiple_of":return`ÐÑпÑавÑлÑÐ½Ñ Ð»Ñк: павÑнен бÑÑÑ ÐºÑаÑнÑм ${i.divisor}`;case"unrecognized_keys":return`ÐеÑаÑÐ¿Ð°Ð·Ð½Ð°Ð½Ñ ${i.keys.length>1?"клÑÑÑ":"клÑÑ"}: ${eG(i.keys,", ")}`;case"invalid_key":return`ÐÑпÑавÑлÑÐ½Ñ ÐºÐ»ÑÑ Ñ ${i.origin}`;case"invalid_union":default:return"ÐÑпÑавÑлÑÐ½Ñ Ñвод";case"invalid_element":return`ÐÑпÑавÑлÑнае знаÑÑнне Ñ ${i.origin}`}})}},"bg",0,function(){let e,t,r;return{localeError:(e={string:{unit:"Ñимвола",verb:"да ÑÑдÑÑжа"},file:{unit:"байÑа",verb:"да ÑÑдÑÑжа"},array:{unit:"елеменÑа",verb:"да ÑÑдÑÑжа"},set:{unit:"елеменÑа",verb:"да ÑÑдÑÑжа"}},t={regex:"вÑ
од",email:"имейл адÑеÑ",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO вÑеме",date:"ISO даÑа",time:"ISO вÑеме",duration:"ISO пÑодÑлжиÑелноÑÑ",ipv4:"IPv4 адÑеÑ",ipv6:"IPv6 адÑеÑ",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиÑан низ",base64url:"base64url-кодиÑан низ",json_string:"JSON низ",e164:"E.164 номеÑ",jwt:"JWT",template_literal:"вÑ
од"},r={nan:"NaN",number:"ÑиÑло",array:"маÑив"},i=>
77{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Ðевалиден вÑ
од: оÑакван instanceof ${i.expected}, полÑÑен ${n}`;return`Ðевалиден вÑ
од: оÑакван ${e}, полÑÑен ${n}`}case"invalid_value":if(1===i.values.length)return`Ðевалиден вÑ
од: оÑакван ${to(i.values[0])}`;return`Ðевалидна опÑиÑ: оÑаквано едно Ð¾Ñ ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`ТвÑÑде голÑмо: оÑаква Ñе ${i.origin??"ÑÑойноÑÑ"} да ÑÑдÑÑжа ${t}${i.maximum.toString()} ${r.unit??"елеменÑа"}`;return`ТвÑÑде голÑмо: оÑаква Ñе ${i.origin??"ÑÑойноÑÑ"} да бÑде ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`ТвÑÑде малко: оÑаква Ñе ${i.origin} да ÑÑдÑÑжа ${t}${i.minimum.toString()} ${r.unit}`;return`ТвÑÑде малко: оÑаква Ñе ${i.origin} да бÑде ${t}${i.minimum.toString()}`}case"invalid_format":{if("starts_with"===i.format)return`Ðевалиден низ: ÑÑÑбва да запоÑва Ñ "${i.prefix}"`;if("ends_with"===i.format)return`Ðевалиден низ: ÑÑÑбва да завÑÑÑва Ñ "${i.suffix}"`;if("includes"===i.format)return`Ðевалиден низ: ÑÑÑбва да вклÑÑва "${i.includes}"`;if("regex"===i.format)return`Ðевалиден низ: ÑÑÑбва да ÑÑвпада Ñ ${i.pattern}`;let e="Ðевалиден";return"emoji"===i.format&&(e="Ðевалидно"),"datetime"===i.format&&(e="Ðевалидно"),"date"===i.format&&(e="Ðевалидна"),"time"===i.format&&(e="Ðевалидно"),"duration"===i.format&&(e="Ðевалидна"),`${e} ${t[i.format]??i.format}`}case"not_multiple_of":return`Ðевалидно ÑиÑло: ÑÑÑбва да бÑде кÑаÑно на ${i.divisor}`;case"unrecognized_keys":return`ÐеÑазпознаÑ${i.keys.length>1?"и":""} клÑÑ${i.keys.length>1?"ове":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`Ðевалиден клÑÑ Ð² ${i.origin}`;case"invalid_union":default:return"Ðевалиден вÑ
од";case"invalid_element":return`Ðевалидна ÑÑойноÑÑ Ð² ${i.origin}`}})}},"ca",0,function(){let e,t,r;return{localeError:(e={string:{unit:"carà cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}},t={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Tipus inv\xe0lid: s'esperava instanceof ${i.expected}, s'ha rebut ${n}`;return`Tipus inv\xe0lid: s'esperava ${e}, s'ha rebut ${n}`}case"invalid_value":if(1===i.values.length)return`Valor inv\xe0lid: s'esperava ${to(i.values[0])}`;return`Opci\xf3 inv\xe0lida: s'esperava una de ${eG(i.values," o ")}`;case"too_big":{let t=i.inclusive?"com a mà xim":"menys de",r=e[i.origin]??null;if(r)return`Massa gran: s'esperava que ${i.origin??"el valor"} contingu\xe9s ${t} ${i.maximum.toString()} ${r.unit??"elements"}`;return`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${t} ${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?"com a mÃnim":"més de",r=e[i.origin]??null;if(r)return`Massa petit: s'esperava que ${i.origin} contingu\xe9s ${t} ${i.minimum.toString()} ${r.unit}`;return`Massa petit: s'esperava que ${i.origin} fos ${t} ${i.minimum.toString()}`}
77case"invalid_format":if("starts_with"===i.format)return`Format inv\xe0lid: ha de comen\xe7ar amb "${i.prefix}"`;if("ends_with"===i.format)return`Format inv\xe0lid: ha d'acabar amb "${i.suffix}"`;if("includes"===i.format)return`Format inv\xe0lid: ha d'incloure "${i.includes}"`;if("regex"===i.format)return`Format inv\xe0lid: ha de coincidir amb el patr\xf3 ${i.pattern}`;return`Format inv\xe0lid per a ${t[i.format]??i.format}`;case"not_multiple_of":return`N\xfamero inv\xe0lid: ha de ser m\xfaltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`Clau inv\xe0lida a ${i.origin}`;case"invalid_union":default:return"Entrada invà lida";case"invalid_element":return`Element inv\xe0lid a ${i.origin}`}})}},"cs",0,function(){let e,t,r;return{localeError:(e={string:{unit:"znaků",verb:"mÃt"},file:{unit:"bajtů",verb:"mÃt"},array:{unit:"prvků",verb:"mÃt"},set:{unit:"prvků",verb:"mÃt"}},t={regex:"regulárnà výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a Äas ve formátu ISO",date:"datum ve formátu ISO",time:"Äas ve formátu ISO",duration:"doba trvánà ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"ÅetÄzec zakódovaný ve formátu base64",base64url:"ÅetÄzec zakódovaný ve formátu base64url",json_string:"ÅetÄzec ve formátu JSON",e164:"ÄÃslo E.164",jwt:"JWT",template_literal:"vstup"},r={nan:"NaN",number:"ÄÃslo",string:"ÅetÄzec",function:"funkce",array:"pole"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Neplatn\xfd vstup: oÄek\xe1v\xe1no instanceof ${i.expected}, obdrženo ${n}`;return`Neplatn\xfd vstup: oÄek\xe1v\xe1no ${e}, obdrženo ${n}`}case"invalid_value":if(1===i.values.length)return`Neplatn\xfd vstup: oÄek\xe1v\xe1no ${to(i.values[0])}`;return`Neplatn\xe1 možnost: oÄek\xe1v\xe1na jedna z hodnot ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Hodnota je pÅ\xedliÅ¡ velk\xe1: ${i.origin??"hodnota"} mus\xed m\xedt ${t}${i.maximum.toString()} ${r.unit??"prvků"}`;return`Hodnota je pÅ\xedliÅ¡ velk\xe1: ${i.origin??"hodnota"} mus\xed b\xfdt ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Hodnota je pÅ\xedliÅ¡ mal\xe1: ${i.origin??"hodnota"} mus\xed m\xedt ${t}${i.minimum.toString()} ${r.unit??"prvků"}`;return`Hodnota je pÅ\xedliÅ¡ mal\xe1: ${i.origin??"hodnota"} mus\xed b\xfdt ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Neplatn\xfd ÅetÄzec: mus\xed zaÄ\xednat na "${i.prefix}"`;if("ends_with"===i.format)return`Neplatn\xfd ÅetÄzec: mus\xed konÄit na "${i.suffix}"`;if("includes"===i.format)return`Neplatn\xfd ÅetÄzec: mus\xed obsahovat "${i.includes}"`;if("regex"===i.format)return`Neplatn\xfd ÅetÄzec: mus\xed odpov\xeddat vzoru ${i.pattern}`;return`Neplatn\xfd form\xe1t ${t[i.format]??i.format}`;case"not_multiple_of":return`Neplatn\xe9 Ä\xedslo: mus\xed b\xfdt n\xe1sobkem ${i.divisor}`;case"unrecognized_keys":return`Nezn\xe1m\xe9 kl\xedÄe: ${eG(i.keys,", ")}`;case"invalid_key":return`Neplatn\xfd kl\xedÄ v ${i.origin}`;case"invalid_union":default:return"Neplatný vstup";case"invalid_element":return`Neplatn\xe1 hodnota v ${i.origin}`}})}},"da",0,function(){let e,t,r;return{localeError:(e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-omrÃ¥de",ipv6:"IPv6-omrÃ¥de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"},i=>
77{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Ugyldigt input: forventede instanceof ${i.expected}, fik ${n}`;return`Ugyldigt input: forventede ${e}, fik ${n}`}case"invalid_value":if(1===i.values.length)return`Ugyldig v\xe6rdi: forventede ${to(i.values[0])}`;return`Ugyldigt valg: forventede en af f\xf8lgende ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",n=e[i.origin]??null,a=r[i.origin]??i.origin;if(n)return`For stor: forventede ${a??"value"} ${n.verb} ${t} ${i.maximum.toString()} ${n.unit??"elementer"}`;return`For stor: forventede ${a??"value"} havde ${t} ${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",n=e[i.origin]??null,a=r[i.origin]??i.origin;if(n)return`For lille: forventede ${a} ${n.verb} ${t} ${i.minimum.toString()} ${n.unit}`;return`For lille: forventede ${a} havde ${t} ${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Ugyldig streng: skal starte med "${i.prefix}"`;if("ends_with"===i.format)return`Ugyldig streng: skal ende med "${i.suffix}"`;if("includes"===i.format)return`Ugyldig streng: skal indeholde "${i.includes}"`;if("regex"===i.format)return`Ugyldig streng: skal matche m\xf8nsteret ${i.pattern}`;return`Ugyldig ${t[i.format]??i.format}`;case"not_multiple_of":return`Ugyldigt tal: skal v\xe6re deleligt med ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${eG(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8gle i ${i.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xe6rdi i ${i.origin}`;default:return"Ugyldigt input"}})}},"de",0,function(){let e,t,r;return{localeError:(e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}},t={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},r={nan:"NaN",number:"Zahl",array:"Array"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Ung\xfcltige Eingabe: erwartet instanceof ${i.expected}, erhalten ${n}`;return`Ung\xfcltige Eingabe: erwartet ${e}, erhalten ${n}`}case"invalid_value":if(1===i.values.length)return`Ung\xfcltige Eingabe: erwartet ${to(i.values[0])}`;return`Ung\xfcltige Option: erwartet eine von ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Zu gro\xdf: erwartet, dass ${i.origin??"Wert"} ${t}${i.maximum.toString()} ${r.unit??"Elemente"} hat`;return`Zu gro\xdf: erwartet, dass ${i.origin??"Wert"} ${t}${i.maximum.toString()} ist`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Zu klein: erwartet, dass ${i.origin} ${t}${i.minimum.toString()} ${r.unit} hat`;return`Zu klein: erwartet, dass ${i.origin} ${t}${i.minimum.toString()} ist`}case"invalid_format":if("starts_with"===i.format)return`Ung\xfcltiger String: muss mit "${i.prefix}" beginnen`;if("ends_with"===i.format)return`Ung\xfcltiger String: muss mit "${i.suffix}" enden`;if("includes"===i.format)return`Ung\xfcltiger String: muss "${i.includes}" enthalten`;if("regex"===i.format)return`Ung\xfcltiger String: muss dem Muster ${i.pattern} entsprechen`;return`Ung\xfcltig: ${t[i.format]??i.format}`;case"not_multiple_of":return`Ung\xfcltige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${eG(i.keys,", ")}`;case"invalid_key":return`Ung\xfcltiger Schl\xfcssel in ${i.origin}`;
77case"invalid_union":default:return"Ungültige Eingabe";case"invalid_element":return`Ung\xfcltiger Wert in ${i.origin}`}})}},"el",0,function(){let e,t,r;return{localeError:(e={string:{unit:"ÏαÏακÏήÏεÏ",verb:"να ÎÏει"},file:{unit:"bytes",verb:"να ÎÏει"},array:{unit:"ÏÏοιÏεία",verb:"να ÎÏει"},set:{unit:"ÏÏοιÏεία",verb:"να ÎÏει"},map:{unit:"καÏαÏÏÏήÏειÏ",verb:"να ÎÏει"}},t={regex:"είÏοδοÏ",email:"διεÏθÏ
νÏη email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημεÏομηνία και ÏÏα",date:"ISO ημεÏομηνία",time:"ISO ÏÏα",duration:"ISO διάÏκεια",ipv4:"διεÏθÏ
νÏη IPv4",ipv6:"διεÏθÏ
νÏη IPv6",mac:"διεÏθÏ
νÏη MAC",cidrv4:"εÏÏÎ¿Ï IPv4",cidrv6:"εÏÏÎ¿Ï IPv6",base64:"ÏÏ
μβολοÏειÏά κÏδικοÏοιημÎνη Ïε base64",base64url:"ÏÏ
μβολοÏειÏά κÏδικοÏοιημÎνη Ïε base64url",json_string:"ÏÏ
μβολοÏειÏά JSON",e164:"αÏιθμÏÏ E.164",jwt:"JWT",template_literal:"είÏοδοÏ"},r={nan:"NaN"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if("string"==typeof i.expected&&/^[A-Z]/.test(i.expected))return`Îη ÎγκÏ
Ïη είÏοδοÏ: αναμενÏÏαν instanceof ${i.expected}, λήÏθηκε ${n}`;return`Îη ÎγκÏ
Ïη είÏοδοÏ: αναμενÏÏαν ${e}, λήÏθηκε ${n}`}case"invalid_value":if(1===i.values.length)return`Îη ÎγκÏ
Ïη είÏοδοÏ: αναμενÏÏαν ${to(i.values[0])}`;return`Îη ÎγκÏ
Ïη εÏιλογή: αναμενÏÏαν Îνα αÏÏ ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Î Î¿Î»Ï Î¼ÎµÎ³Î¬Î»Î¿: αναμενÏÏαν ${i.origin??"Ïιμή"} να ÎÏει ${t}${i.maximum.toString()} ${r.unit??"ÏÏοιÏεία"}`;return`Î Î¿Î»Ï Î¼ÎµÎ³Î¬Î»Î¿: αναμενÏÏαν ${i.origin??"Ïιμή"} να είναι ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Î Î¿Î»Ï Î¼Î¹ÎºÏÏ: αναμενÏÏαν ${i.origin} να ÎÏει ${t}${i.minimum.toString()} ${r.unit}`;return`Î Î¿Î»Ï Î¼Î¹ÎºÏÏ: αναμενÏÏαν ${i.origin} να είναι ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Îη ÎγκÏ
Ïη ÏÏ
μβολοÏειÏά: ÏÏÎÏει να ξεκινά με "${i.prefix}"`;if("ends_with"===i.format)return`Îη ÎγκÏ
Ïη ÏÏ
μβολοÏειÏά: ÏÏÎÏει να ÏελειÏνει με "${i.suffix}"`;if("includes"===i.format)return`Îη ÎγκÏ
Ïη ÏÏ
μβολοÏειÏά: ÏÏÎÏει να ÏεÏιÎÏει "${i.includes}"`;if("regex"===i.format)return`Îη ÎγκÏ
Ïη ÏÏ
μβολοÏειÏά: ÏÏÎÏει να ÏαιÏιάζει με Ïο μοÏίβο ${i.pattern}`;return`Îη ÎγκÏ
Ïο: ${t[i.format]??i.format}`;case"not_multiple_of":return`Îη ÎγκÏ
ÏÎ¿Ï Î±ÏιθμÏÏ: ÏÏÎÏει να είναι ÏολλαÏλάÏιο ÏοÏ
${i.divisor}`;case"unrecognized_keys":return`ÎγνÏÏÏ${i.keys.length>1?"α":"ο"} κλειδ${i.keys.length>1?"ιά":"ί"}: ${eG(i.keys,", ")}`;case"invalid_key":return`Îη ÎγκÏ
Ïο κλειδί ÏÏο ${i.origin}`;case"invalid_union":default:return"Îη ÎγκÏ
Ïη είÏοδοÏ";case"invalid_element":return`Îη ÎγκÏ
Ïη Ïιμή ÏÏο ${i.origin}`}})}},"en",0,am,"eo",0,function(){let e,t,r;return{localeError:(e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}},t={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoÄio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daÅro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},r={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"},i=>
77{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Nevalida enigo: atendiÄis instanceof ${i.expected}, riceviÄis ${n}`;return`Nevalida enigo: atendiÄis ${e}, riceviÄis ${n}`}case"invalid_value":if(1===i.values.length)return`Nevalida enigo: atendiÄis ${to(i.values[0])}`;return`Nevalida opcio: atendiÄis unu el ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Tro granda: atendiÄis ke ${i.origin??"valoro"} havu ${t}${i.maximum.toString()} ${r.unit??"elementojn"}`;return`Tro granda: atendiÄis ke ${i.origin??"valoro"} havu ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Tro malgranda: atendiÄis ke ${i.origin} havu ${t}${i.minimum.toString()} ${r.unit}`;return`Tro malgranda: atendiÄis ke ${i.origin} estu ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Nevalida karaktraro: devas komenciÄi per "${i.prefix}"`;if("ends_with"===i.format)return`Nevalida karaktraro: devas finiÄi per "${i.suffix}"`;if("includes"===i.format)return`Nevalida karaktraro: devas inkluzivi "${i.includes}"`;if("regex"===i.format)return`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`;return`Nevalida ${t[i.format]??i.format}`;case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} Ålosilo${i.keys.length>1?"j":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`Nevalida Ålosilo en ${i.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`}})}},"es",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol
77:"sÃmbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacÃo",never:"nunca",unknown:"desconocido",any:"cualquiera"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Entrada inv\xe1lida: se esperaba instanceof ${i.expected}, recibido ${n}`;return`Entrada inv\xe1lida: se esperaba ${e}, recibido ${n}`}case"invalid_value":if(1===i.values.length)return`Entrada inv\xe1lida: se esperaba ${to(i.values[0])}`;return`Opci\xf3n inv\xe1lida: se esperaba una de ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",n=e[i.origin]??null,a=r[i.origin]??i.origin;if(n)return`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${t}${i.maximum.toString()} ${n.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${a??"valor"} fuera ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",n=e[i.origin]??null,a=r[i.origin]??i.origin;if(n)return`Demasiado peque\xf1o: se esperaba que ${a} tuviera ${t}${i.minimum.toString()} ${n.unit}`;return`Demasiado peque\xf1o: se esperaba que ${a} fuera ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Cadena inv\xe1lida: debe comenzar con "${i.prefix}"`;if("ends_with"===i.format)return`Cadena inv\xe1lida: debe terminar en "${i.suffix}"`;if("includes"===i.format)return`Cadena inv\xe1lida: debe incluir "${i.includes}"`;if("regex"===i.format)return`Cadena inv\xe1lida: debe coincidir con el patr\xf3n ${i.pattern}`;return`Inv\xe1lido ${t[i.format]??i.format}`;case"not_multiple_of":return`N\xfamero inv\xe1lido: debe ser m\xfaltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`Llave inv\xe1lida en ${r[i.origin]??i.origin}`;case"invalid_union":default:return"Entrada inválida";case"invalid_element":return`Valor inv\xe1lido en ${r[i.origin]??i.origin}`}})}},"fa",0,function(){let e,t,r;return{localeError:(e={string:{unit:"کاراکتر",verb:"داشت٠باشد"},file:{unit:"Ø¨Ø§ÛØª",verb:"داشت٠باشد"},array:{unit:"Ø¢ÛØªÙ
",verb:"داشت٠باشد"},set:{unit:"Ø¢ÛØªÙ
",verb:"داشت٠باشد"}},t={regex:"ÙØ±ÙدÛ",email:"آدرس اÛÙ
ÛÙ",url:"URL",emoji:"اÛÙ
ÙØ¬Û",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ØªØ§Ø±ÛØ® ٠زÙ
Ø§Ù Ø§ÛØ²Ù",date:"ØªØ§Ø±ÛØ® Ø§ÛØ²Ù",time:"زÙ
Ø§Ù Ø§ÛØ²Ù",duration:"Ù
دت زÙ
Ø§Ù Ø§ÛØ²Ù",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 داÙ
ÙÙ",cidrv6:"IPv6 داÙ
ÙÙ",base64:"base64-encoded رشتÙ",base64url:"base64url-encoded رشتÙ",json_string:"JSON رشتÙ",e164:"E.164 عدد",jwt:"JWT",template_literal:"ÙØ±ÙدÛ"},r={nan:"NaN",number:"عدد",array:"آراÛÙ"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`ÙØ±ÙØ¯Û ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª instanceof ${i.expected} Ù
ÛâØ¨ÙØ¯Ø ${n} Ø¯Ø±ÛØ§Ùت شد`;return`ÙØ±ÙØ¯Û ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª ${e} Ù
ÛâØ¨ÙØ¯Ø ${n} Ø¯Ø±ÛØ§Ùت شد`}case"invalid_value":if(1===i.values.length)return`ÙØ±ÙØ¯Û ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª ${to(i.values[0])} Ù
ÛâØ¨ÙØ¯`;return`گزÛÙÙ ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª ÛÚ©Û Ø§Ø² ${eG(i.values,"|")} Ù
ÛâØ¨ÙØ¯`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Ø®ÛÙÛ Ø¨Ø²Ø±Ú¯: ${i.origin??"Ù
ÙØ¯Ø§Ø±"} Ø¨Ø§ÛØ¯ ${t}${i.maximum.toString()} ${r.unit??"Ø¹ÙØµØ±"} باشد`;return`Ø®ÛÙÛ Ø¨Ø²Ø±Ú¯: ${i.origin??"Ù
ÙØ¯Ø§Ø±"} Ø¨Ø§ÛØ¯ ${t}${i.maximum.toString()} باشد`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Ø®ÛÙÛ Ú©ÙÚÚ©: ${i.origin} Ø¨Ø§ÛØ¯ ${t}${i.minimum.toString()} ${r.unit} باشد`;return`Ø®ÛÙÛ Ú©ÙÚÚ©: ${i.origin} Ø¨Ø§ÛØ¯ ${t}${i.minimum.toString()} باشد`}
77case"invalid_format":if("starts_with"===i.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ با "${i.prefix}" Ø´Ø±ÙØ¹ Ø´ÙØ¯`;if("ends_with"===i.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ با "${i.suffix}" تÙ
اÙ
Ø´ÙØ¯`;if("includes"===i.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ شاÙ
Ù "${i.includes}" باشد`;if("regex"===i.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ با اÙÚ¯ÙÛ ${i.pattern} Ù
Ø·Ø§Ø¨ÙØª داشت٠باشد`;return`${t[i.format]??i.format} ÙØ§Ù
عتبر`;case"not_multiple_of":return`عدد ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ Ù
ضرب ${i.divisor} باشد`;case"unrecognized_keys":return`Ú©ÙÛØ¯${i.keys.length>1?"ÙØ§Û":""} ÙØ§Ø´Ùاس: ${eG(i.keys,", ")}`;case"invalid_key":return`Ú©ÙÛØ¯ ÙØ§Ø´Ùاس در ${i.origin}`;case"invalid_union":default:return"ÙØ±ÙØ¯Û ÙØ§Ù
عتبر";case"invalid_element":return`Ù
ÙØ¯Ø§Ø± ÙØ§Ù
عتبر در ${i.origin}`}})}},"fi",0,function(){let e,t,r;return{localeError:(e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}},t={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},r={nan:"NaN"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Virheellinen tyyppi: odotettiin instanceof ${i.expected}, oli ${n}`;return`Virheellinen tyyppi: odotettiin ${e}, oli ${n}`}case"invalid_value":if(1===i.values.length)return`Virheellinen sy\xf6te: t\xe4ytyy olla ${to(i.values[0])}`;return`Virheellinen valinta: t\xe4ytyy olla yksi seuraavista: ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Liian suuri: ${r.subject} t\xe4ytyy olla ${t}${i.maximum.toString()} ${r.unit}`.trim();return`Liian suuri: arvon t\xe4ytyy olla ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Liian pieni: ${r.subject} t\xe4ytyy olla ${t}${i.minimum.toString()} ${r.unit}`.trim();return`Liian pieni: arvon t\xe4ytyy olla ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Virheellinen sy\xf6te: t\xe4ytyy alkaa "${i.prefix}"`;if("ends_with"===i.format)return`Virheellinen sy\xf6te: t\xe4ytyy loppua "${i.suffix}"`;if("includes"===i.format)return`Virheellinen sy\xf6te: t\xe4ytyy sis\xe4lt\xe4\xe4 "${i.includes}"`;if("regex"===i.format)return`Virheellinen sy\xf6te: t\xe4ytyy vastata s\xe4\xe4nn\xf6llist\xe4 lauseketta ${i.pattern}`;return`Virheellinen ${t[i.format]??i.format}`;case"not_multiple_of":return`Virheellinen luku: t\xe4ytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${eG(i.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}})}},"fr",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}},t={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"}
77,r={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Entr\xe9e invalide : instanceof ${i.expected} attendu, ${n} re\xe7u`;return`Entr\xe9e invalide : ${e} attendu, ${n} re\xe7u`}case"invalid_value":if(1===i.values.length)return`Entr\xe9e invalide : ${to(i.values[0])} attendu`;return`Option invalide : une valeur parmi ${eG(i.values,"|")} attendue`;case"too_big":{let t=i.inclusive?"<=":"<",n=e[i.origin]??null;if(n)return`Trop grand : ${r[i.origin]??"valeur"} doit ${n.verb} ${t}${i.maximum.toString()} ${n.unit??"élément(s)"}`;return`Trop grand : ${r[i.origin]??"valeur"} doit \xeatre ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",n=e[i.origin]??null;if(n)return`Trop petit : ${r[i.origin]??"valeur"} doit ${n.verb} ${t}${i.minimum.toString()} ${n.unit}`;return`Trop petit : ${r[i.origin]??"valeur"} doit \xeatre ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Cha\xeene invalide : doit commencer par "${i.prefix}"`;if("ends_with"===i.format)return`Cha\xeene invalide : doit se terminer par "${i.suffix}"`;if("includes"===i.format)return`Cha\xeene invalide : doit inclure "${i.includes}"`;if("regex"===i.format)return`Cha\xeene invalide : doit correspondre au mod\xe8le ${i.pattern}`;return`${t[i.format]??i.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xe9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${eG(i.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${i.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`}})}},"frCA",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}},t={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},r={nan:"NaN"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Entr\xe9e invalide : attendu instanceof ${i.expected}, re\xe7u ${n}`;return`Entr\xe9e invalide : attendu ${e}, re\xe7u ${n}`}case"invalid_value":if(1===i.values.length)return`Entr\xe9e invalide : attendu ${to(i.values[0])}`;
77return`Option invalide : attendu l'une des valeurs suivantes ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"â¤":"<",r=e[i.origin]??null;if(r)return`Trop grand : attendu que ${i.origin??"la valeur"} ait ${t}${i.maximum.toString()} ${r.unit}`;return`Trop grand : attendu que ${i.origin??"la valeur"} soit ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?"â¥":">",r=e[i.origin]??null;if(r)return`Trop petit : attendu que ${i.origin} ait ${t}${i.minimum.toString()} ${r.unit}`;return`Trop petit : attendu que ${i.origin} soit ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Cha\xeene invalide : doit commencer par "${i.prefix}"`;if("ends_with"===i.format)return`Cha\xeene invalide : doit se terminer par "${i.suffix}"`;if("includes"===i.format)return`Cha\xeene invalide : doit inclure "${i.includes}"`;if("regex"===i.format)return`Cha\xeene invalide : doit correspondre au motif ${i.pattern}`;return`${t[i.format]??i.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xe9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${eG(i.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${i.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`}})}},"he",0,function(){let e,t,r,i,n,a,o,s,u;return{localeError:(e={string:{label:"××ר××ת",gender:"f"},number:{label:"×ספר",gender:"m"},boolean:{label:"×¢×¨× ×××××× ×",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"ת×ר××",gender:"m"},array:{label:"×ער×",gender:"m"},object:{label:"××××××§×",gender:"m"},null:{label:"×¢×¨× ×¨××§ (null)",gender:"m"},undefined:{label:"×¢×¨× ×× ××××ר (undefined)",gender:"m"},symbol:{label:"ס××××× (Symbol)",gender:"m"},function:{label:"פ×× ×§×¦××",gender:"f"},map:{label:"××¤× (Map)",gender:"f"},set:{label:"×§×××¦× (Set)",gender:"f"},file:{label:"×§×××¥",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"×¢×¨× ×× ××××¢",gender:"m"},value:{label:"ער×",gender:"m"}},t={string:{unit:"ת××××",shortLabel:"קצר",longLabel:"×ר××"},file:{unit:"××××××",shortLabel:"×§××",longLabel:"××××"},array:{unit:"פר××××",shortLabel:"×§××",longLabel:"××××"},set:{unit:"פר××××",shortLabel:"×§××",longLabel:"××××"},number:{unit:"",shortLabel:"×§××",longLabel:"××××"}},r=t=>t?e[t]:void 0,i=t=>{let i=r(t);return i?i.label:t??e.unknown.label},n=e=>`×${i(e)}`,a=e=>{let t=r(e);return"f"===(t?.gender??"m")?"צר××× ××××ת":"צר×× ××××ת"},o=e=>e?t[e]??null:null,s={regex:{label:"×§××",gender:"m"},email:{label:"×ת××ת ××××××",gender:"f"},url:{label:"×ת××ת רשת",gender:"f"},emoji:{label:"×××××'×",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"ת×ר×× ×××× ISO",gender:"m"},date:{label:"ת×ר×× ISO",gender:"m"},time:{label:"××× ISO",gender:"m"},duration:{label:"××©× ××× ISO",gender:"m"},ipv4:{label:"×ת××ת IPv4",gender:"f"},ipv6:{label:"×ת××ת IPv6",gender:"f"},cidrv4:{label:"×××× IPv4",gender:"m"},cidrv6:{label:"×××× IPv6",gender:"m"},base64:{label:"××ר××ת ××ס×ס 64",gender:"f"},base64url:{label:"××ר××ת ××ס×ס 64 ××ת×××ת רשת",gender:"f"},json_string:{label:"××ר××ת JSON",gender:"f"},e164:{label:"×ספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"×§××",gender:"m"},includes:{label:"×§××",gender:"m"},lowercase:{label:"×§××",gender:"m"},starts_with:{label:"×§××",gender:"m"},uppercase:{label:"×§××",gender:"m"}},u={nan:"NaN"},t=>{switch(t.code){case"invalid_type":{let r=t.expected,n=u[r??""]??i(r),a=tv(t.input),o=u[a]??e[a]?.label??a;
77if(/^[A-Z]/.test(t.expected))return`×§×× ×× ×ª×§××: צר×× ××××ת instanceof ${t.expected}, ×תק×× ${o}`;return`×§×× ×× ×ª×§××: צר×× ××××ת ${n}, ×תק×× ${o}`}case"invalid_value":{if(1===t.values.length)return`×¢×¨× ×× ×ª×§××: ××¢×¨× ×××× ××××ת ${to(t.values[0])}`;let e=t.values.map(e=>to(e));if(2===t.values.length)return`×¢×¨× ×× ×ª×§××: ××פשר×××ת ××ת××××ת ×× ${e[0]} ×× ${e[1]}`;let r=e[e.length-1],i=e.slice(0,-1).join(", ");return`×¢×¨× ×× ×ª×§××: ××פשר×××ת ××ת××××ת ×× ${i} ×× ${r}`}case"too_big":{let e=o(t.origin),r=n(t.origin??"value");if("string"===t.origin)return`${e?.longLabel??"×ר××"} ×××: ${r} צר××× ××××× ${t.maximum.toString()} ${e?.unit??""} ${t.inclusive?"×× ×¤××ת":"××× ×××תר"}`.trim();if("number"===t.origin){let e=t.inclusive?`×§×× ×× ×©××× ×-${t.maximum}`:`×§×× ×-${t.maximum}`;return`×××× ×××: ${r} צר×× ××××ת ${e}`}if("array"===t.origin||"set"===t.origin){let i="set"===t.origin?"צר×××":"צר××",n=t.inclusive?`${t.maximum} ${e?.unit??""} ×× ×¤××ת`:`פ××ת ×-${t.maximum} ${e?.unit??""}`;return`×××× ×××: ${r} ${i} ××××× ${n}`.trim()}let i=t.inclusive?"<=":"<",s=a(t.origin??"value");if(e?.unit)return`${e.longLabel} ×××: ${r} ${s} ${i}${t.maximum.toString()} ${e.unit}`;return`${e?.longLabel??"××××"} ×××: ${r} ${s} ${i}${t.maximum.toString()}`}case"too_small":{let e=o(t.origin),r=n(t.origin??"value");if("string"===t.origin)return`${e?.shortLabel??"קצר"} ×××: ${r} צר××× ××××× ${t.minimum.toString()} ${e?.unit??""} ${t.inclusive?"×× ××תר":"×פ××ת"}`.trim();if("number"===t.origin){let e=t.inclusive?`×××× ×× ×©××× ×-${t.minimum}`:`×××× ×-${t.minimum}`;return`×§×× ×××: ${r} צר×× ××××ת ${e}`}if("array"===t.origin||"set"===t.origin){let i="set"===t.origin?"צר×××":"צר××";if(1===t.minimum&&t.inclusive){let e=(t.origin,"×פ××ת פר×× ×××");return`×§×× ×××: ${r} ${i} ××××× ${e}`}let n=t.inclusive?`${t.minimum} ${e?.unit??""} ×× ××תר`:`××תר ×-${t.minimum} ${e?.unit??""}`;return`×§×× ×××: ${r} ${i} ××××× ${n}`.trim()}let i=t.inclusive?">=":">",s=a(t.origin??"value");if(e?.unit)return`${e.shortLabel} ×××: ${r} ${s} ${i}${t.minimum.toString()} ${e.unit}`;return`${e?.shortLabel??"×§××"} ×××: ${r} ${s} ${i}${t.minimum.toString()}`}case"invalid_format":{if("starts_with"===t.format)return`×××ר××ת ××××ת ××ת××× × "${t.prefix}"`;if("ends_with"===t.format)return`×××ר××ת ××××ת ××סת××× × "${t.suffix}"`;if("includes"===t.format)return`×××ר××ת ××××ת ××××× "${t.includes}"`;if("regex"===t.format)return`×××ר××ת ××××ת ××ת××× ×ת×× ×ת ${t.pattern}`;let e=s[t.format],r=e?.label??t.format,i=e?.gender??"m";return`${r} ×× ${"f"===i?"תק×× ×":"תק××"}`}case"not_multiple_of":return`×ספר ×× ×ª×§××: ×××× ××××ת ××פ×× ×©× ${t.divisor}`;case"unrecognized_keys":return`×פת×${t.keys.length>1?"×ת":""} ×× ××××${t.keys.length>1?"××":"×"}: ${eG(t.keys,", ")}`;case"invalid_key":return"ש×× ×× ×ª×§×× ×××××××§×";case"invalid_union":default:return"×§×× ×× ×ª×§××";case"invalid_element":{let e=n(t.origin??"array");return`×¢×¨× ×× ×ª×§×× ×${e}`}}})}},"hr",0,function(){let e,t,r;return{localeError:(e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}},t={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},r={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol
77:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Neispravan unos: oÄekuje se instanceof ${i.expected}, a primljeno je ${n}`;return`Neispravan unos: oÄekuje se ${e}, a primljeno je ${n}`}case"invalid_value":if(1===i.values.length)return`Neispravna vrijednost: oÄekivano ${to(i.values[0])}`;return`Neispravna opcija: oÄekivano jedno od ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",n=e[i.origin]??null,a=r[i.origin]??i.origin;if(n)return`Preveliko: oÄekivano da ${a??"vrijednost"} ima ${t}${i.maximum.toString()} ${n.unit??"elemenata"}`;return`Preveliko: oÄekivano da ${a??"vrijednost"} bude ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",n=e[i.origin]??null,a=r[i.origin]??i.origin;if(n)return`Premalo: oÄekivano da ${a} ima ${t}${i.minimum.toString()} ${n.unit}`;return`Premalo: oÄekivano da ${a} bude ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Neispravan tekst: mora zapoÄinjati s "${i.prefix}"`;if("ends_with"===i.format)return`Neispravan tekst: mora zavrÅ¡avati s "${i.suffix}"`;if("includes"===i.format)return`Neispravan tekst: mora sadržavati "${i.includes}"`;if("regex"===i.format)return`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`;return`Neispravna ${t[i.format]??i.format}`;case"not_multiple_of":return`Neispravan broj: mora biti viÅ¡ekratnik od ${i.divisor}`;case"unrecognized_keys":return`Neprepoznat${i.keys.length>1?"i kljuÄevi":" kljuÄ"}: ${eG(i.keys,", ")}`;case"invalid_key":return`Neispravan kljuÄ u ${r[i.origin]??i.origin}`;case"invalid_union":default:return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${r[i.origin]??i.origin}`}})}},"hu",0,function(){let e,t,r;return{localeError:(e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}},t={regex:"bemenet",email:"email cÃm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO idÅbélyeg",date:"ISO dátum",time:"ISO idÅ",duration:"ISO idÅintervallum",ipv4:"IPv4 cÃm",ipv6:"IPv6 cÃm",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},r={nan:"NaN",number:"szám",array:"tömb"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k instanceof ${i.expected}, a kapott \xe9rt\xe9k ${n}`;return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${e}, a kapott \xe9rt\xe9k ${n}`}case"invalid_value":if(1===i.values.length)return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${to(i.values[0])}`;return`\xc9rv\xe9nytelen opci\xf3: valamelyik \xe9rt\xe9k v\xe1rt ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`T\xfal nagy: ${i.origin??"érték"} m\xe9rete t\xfal nagy ${t}${i.maximum.toString()} ${r.unit??"elem"}`;return`T\xfal nagy: a bemeneti \xe9rt\xe9k ${i.origin??"érték"} t\xfal nagy: ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${i.origin} m\xe9rete t\xfal kicsi ${t}${i.minimum.toString()} ${r.unit}`;return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${i.origin} t\xfal kicsi ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`\xc9rv\xe9nytelen string: "${i.prefix}" \xe9rt\xe9kkel kell kezdÅdnie`;if("ends_with"===i.format)return`\xc9rv\xe9nytelen string: "${i.suffix}" \xe9rt\xe9kkel kell v\xe9gzÅdnie`;if("includes"===i.format)return`\xc9rv\xe9nytelen string: "${i.includes}" \xe9rt\xe9ket kell tartalmaznia`;if("regex"===i.format)return`\xc9rv\xe9nytelen string: ${i.pattern} mint\xe1nak kell megfelelnie`;return`\xc9rv\xe9nytelen ${t[i.format]??i.format}`;case"not_multiple_of":return`\xc9rv\xe9nytelen sz\xe1m: ${i.divisor} t\xf6bbsz\xf6r\xf6s\xe9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>
771?"s":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`\xc9rv\xe9nytelen kulcs ${i.origin}`;case"invalid_union":default:return"Ãrvénytelen bemenet";case"invalid_element":return`\xc9rv\xe9nytelen \xe9rt\xe9k: ${i.origin}`}})}},"hy",0,function(){let e,t,r;return{localeError:(e={string:{unit:{one:"Õ¶Õ·Õ¡Õ¶",many:"Õ¶Õ·Õ¡Õ¶Õ¶Õ¥Ö"},verb:"Õ¸ÖÕ¶Õ¥Õ¶Õ¡Õ¬"},file:{unit:{one:"Õ¢Õ¡ÕµÕ©",many:"Õ¢Õ¡ÕµÕ©Õ¥Ö"},verb:"Õ¸ÖÕ¶Õ¥Õ¶Õ¡Õ¬"},array:{unit:{one:"Õ¿Õ¡ÖÖ",many:"Õ¿Õ¡ÖÖÕ¥Ö"},verb:"Õ¸ÖÕ¶Õ¥Õ¶Õ¡Õ¬"},set:{unit:{one:"Õ¿Õ¡ÖÖ",many:"Õ¿Õ¡ÖÖÕ¥Ö"},verb:"Õ¸ÖÕ¶Õ¥Õ¶Õ¡Õ¬"}},t={regex:"Õ´Õ¸ÖÕ¿Ö",email:"Õ§Õ¬. Õ°Õ¡Õ½ÖÕ¥",url:"URL",emoji:"Õ§Õ´Õ¸Õ»Õ«",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO Õ¡Õ´Õ½Õ¡Õ©Õ«Õ¾ Ö ÕªÕ¡Õ´",date:"ISO Õ¡Õ´Õ½Õ¡Õ©Õ«Õ¾",time:"ISO ÕªÕ¡Õ´",duration:"ISO Õ¿ÖÕ¸Õ²Õ¸ÖÕ©ÕµÕ¸ÖÕ¶",ipv4:"IPv4 Õ°Õ¡Õ½ÖÕ¥",ipv6:"IPv6 Õ°Õ¡Õ½ÖÕ¥",cidrv4:"IPv4 Õ´Õ«Õ»Õ¡Õ¯Õ¡ÕµÖ",cidrv6:"IPv6 Õ´Õ«Õ»Õ¡Õ¯Õ¡ÕµÖ",base64:"base64 Õ±ÖÕ¡Õ¹Õ¡ÖÕ¸Õ¾ Õ¿Õ¸Õ²",base64url:"base64url Õ±ÖÕ¡Õ¹Õ¡ÖÕ¸Õ¾ Õ¿Õ¸Õ²",json_string:"JSON Õ¿Õ¸Õ²",e164:"E.164 Õ°Õ¡Õ´Õ¡Ö",jwt:"JWT",template_literal:"Õ´Õ¸ÖÕ¿Ö"},r={nan:"NaN",number:"Õ©Õ«Õ¾",array:"Õ¦Õ¡Õ¶Õ£Õ¾Õ¡Õ®"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`ÕÕÕ¡Õ¬ Õ´Õ¸ÖÕ¿ÖÕ¡Õ£ÖÕ¸Öմ⤠սպասվոÖÕ´ Õ§Ö instanceof ${i.expected}, Õ½Õ¿Õ¡ÖÕ¾Õ¥Õ¬ Õ§ ${n}`;return`ÕÕÕ¡Õ¬ Õ´Õ¸ÖÕ¿ÖÕ¡Õ£ÖÕ¸Öմ⤠սպասվոÖÕ´ Õ§Ö ${e}, Õ½Õ¿Õ¡ÖÕ¾Õ¥Õ¬ Õ§ ${n}`}case"invalid_value":if(1===i.values.length)return`ÕÕÕ¡Õ¬ Õ´Õ¸ÖÕ¿ÖÕ¡Õ£ÖÕ¸Öմ⤠սպասվոÖÕ´ Õ§Ö ${to(i.values[1])}`;return`ÕÕÕ¡Õ¬ Õ¿Õ¡ÖÕ¢Õ¥Öակ⤠սպասվոÖÕ´ Õ§Ö Õ°Õ¥Õ¿ÖÕµÕ¡Õ¬Õ¶Õ¥ÖÕ«Ö Õ´Õ¥Õ¯Õ¨Õ ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r){let e=s7(Number(i.maximum),r.unit.one,r.unit.many);return`ÕÕ¡ÖÕ¡Õ¦Õ¡Õ¶Ö Õ´Õ¥Õ® Õ¡ÖÕªÕ¥Ö⤠սպասվոÖÕ´ Õ§, Õ¸Ö ${ue(i.origin??"Õ¡ÖÕªÕ¥Ö")} Õ¯Õ¸ÖÕ¶Õ¥Õ¶Õ¡ ${t}${i.maximum.toString()} ${e}`}return`ÕÕ¡ÖÕ¡Õ¦Õ¡Õ¶Ö Õ´Õ¥Õ® Õ¡ÖÕªÕ¥Ö⤠սպասվոÖÕ´ Õ§, Õ¸Ö ${ue(i.origin??"Õ¡ÖÕªÕ¥Ö")} Õ¬Õ«Õ¶Õ« ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r){let e=s7(Number(i.minimum),r.unit.one,r.unit.many);return`ÕÕ¡ÖÕ¡Õ¦Õ¡Õ¶Ö ÖÕ¸ÖÖ Õ¡ÖÕªÕ¥Ö⤠սպասվոÖÕ´ Õ§, Õ¸Ö ${ue(i.origin)} Õ¯Õ¸ÖÕ¶Õ¥Õ¶Õ¡ ${t}${i.minimum.toString()} ${e}`}return`ÕÕ¡ÖÕ¡Õ¦Õ¡Õ¶Ö ÖÕ¸ÖÖ Õ¡ÖÕªÕ¥Ö⤠սպասվոÖÕ´ Õ§, Õ¸Ö ${ue(i.origin)} Õ¬Õ«Õ¶Õ« ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`ÕÕÕ¡Õ¬ Õ¿Õ¸Õ²â¤ ÕºÕ¥Õ¿Ö Õ§ Õ½Õ¯Õ½Õ¾Õ« "${i.prefix}"-Õ¸Õ¾`;if("ends_with"===i.format)return`ÕÕÕ¡Õ¬ Õ¿Õ¸Õ²â¤ ÕºÕ¥Õ¿Ö Õ§ Õ¡Õ¾Õ¡ÖÕ¿Õ¾Õ« "${i.suffix}"-Õ¸Õ¾`;if("includes"===i.format)return`ÕÕÕ¡Õ¬ Õ¿Õ¸Õ²â¤ ÕºÕ¥Õ¿Ö Õ§ ÕºÕ¡ÖÕ¸ÖÕ¶Õ¡Õ¯Õ« "${i.includes}"`;if("regex"===i.format)return`ÕÕÕ¡Õ¬ Õ¿Õ¸Õ²â¤ ÕºÕ¥Õ¿Ö Õ§ Õ°Õ¡Õ´Õ¡ÕºÕ¡Õ¿Õ¡Õ½ÕÕ¡Õ¶Õ« ${i.pattern} Õ±ÖÕ¡Õ¹Õ¡ÖÕ«Õ¶`;return`ÕÕÕ¡Õ¬ ${t[i.format]??i.format}`;case"not_multiple_of":return`ÕÕÕ¡Õ¬ Õ©Õ«Õ¾â¤ ÕºÕ¥Õ¿Ö Õ§ Õ¢Õ¡Õ¦Õ´Õ¡ÕºÕ¡Õ¿Õ«Õ¯ Õ¬Õ«Õ¶Õ« ${i.divisor}-Õ«`;case"unrecognized_keys":return`ÕÕ³Õ¡Õ¶Õ¡Õ¹Õ¾Õ¡Õ® Õ¢Õ¡Õ¶Õ¡Õ¬Õ«${i.keys.length>1?"Õ¶Õ¥Ö":""}. ${eG(i.keys,", ")}`;case"invalid_key":return`ÕÕÕ¡Õ¬ Õ¢Õ¡Õ¶Õ¡Õ¬Õ« ${ue(i.origin)}-Õ¸ÖÕ´`;case"invalid_union":default:return"ÕÕÕ¡Õ¬ Õ´Õ¸ÖÕ¿ÖÕ¡Õ£ÖÕ¸ÖÕ´";case"invalid_element":return`ÕÕÕ¡Õ¬ Õ¡ÖÕªÕ¥Ö ${ue(i.origin)}-Õ¸ÖÕ´`}})}},"id",0,function(){let e,t,r;return{localeError:(e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}},t={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN"},i=>
77{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Input tidak valid: diharapkan instanceof ${i.expected}, diterima ${n}`;return`Input tidak valid: diharapkan ${e}, diterima ${n}`}case"invalid_value":if(1===i.values.length)return`Input tidak valid: diharapkan ${to(i.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${t}${i.maximum.toString()} ${r.unit??"elemen"}`;return`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Terlalu kecil: diharapkan ${i.origin} memiliki ${t}${i.minimum.toString()} ${r.unit}`;return`Terlalu kecil: diharapkan ${i.origin} menjadi ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`String tidak valid: harus dimulai dengan "${i.prefix}"`;if("ends_with"===i.format)return`String tidak valid: harus berakhir dengan "${i.suffix}"`;if("includes"===i.format)return`String tidak valid: harus menyertakan "${i.includes}"`;if("regex"===i.format)return`String tidak valid: harus sesuai pola ${i.pattern}`;return`${t[i.format]??i.format} tidak valid`;case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`}})}},"is",0,function(){let e,t,r;return{localeError:(e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}},t={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tÃmi",date:"ISO dagsetning",time:"ISO tÃmi",duration:"ISO tÃmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},r={nan:"NaN",number:"númer",array:"fylki"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Rangt gildi: \xde\xfa sl\xf3st inn ${n} \xfear sem \xe1 a\xf0 vera instanceof ${i.expected}`;return`Rangt gildi: \xde\xfa sl\xf3st inn ${n} \xfear sem \xe1 a\xf0 vera ${e}`}case"invalid_value":if(1===i.values.length)return`Rangt gildi: gert r\xe1\xf0 fyrir ${to(i.values[0])}`;return`\xd3gilt val: m\xe1 vera eitt af eftirfarandi ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${i.origin??"gildi"} hafi ${t}${i.maximum.toString()} ${r.unit??"hluti"}`;return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${i.origin??"gildi"} s\xe9 ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${i.origin} hafi ${t}${i.minimum.toString()} ${r.unit}`;return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${i.origin} s\xe9 ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 byrja \xe1 "${i.prefix}"`;if("ends_with"===i.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 enda \xe1 "${i.suffix}"`;if("includes"===i.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 innihalda "${i.includes}"`;if("regex"===i.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 fylgja mynstri ${i.pattern}`;return`Rangt ${t[i.format]??i.format}`;case"not_multiple_of":return`R\xf6ng tala: ver\xf0ur a\xf0 vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`\xd3\xfeekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${eG(i.keys,", ")}`;
77case"invalid_key":return`Rangur lykill \xed ${i.origin}`;case"invalid_union":default:return"Rangt gildi";case"invalid_element":return`Rangt gildi \xed ${i.origin}`}})}},"it",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}},t={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"numero",array:"vettore"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Input non valido: atteso instanceof ${i.expected}, ricevuto ${n}`;return`Input non valido: atteso ${e}, ricevuto ${n}`}case"invalid_value":if(1===i.values.length)return`Input non valido: atteso ${to(i.values[0])}`;return`Opzione non valida: atteso uno tra ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Troppo grande: ${i.origin??"valore"} deve avere ${t}${i.maximum.toString()} ${r.unit??"elementi"}`;return`Troppo grande: ${i.origin??"valore"} deve essere ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Troppo piccolo: ${i.origin} deve avere ${t}${i.minimum.toString()} ${r.unit}`;return`Troppo piccolo: ${i.origin} deve essere ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Stringa non valida: deve iniziare con "${i.prefix}"`;if("ends_with"===i.format)return`Stringa non valida: deve terminare con "${i.suffix}"`;if("includes"===i.format)return`Stringa non valida: deve includere "${i.includes}"`;if("regex"===i.format)return`Stringa non valida: deve corrispondere al pattern ${i.pattern}`;return`Input non valido: ${t[i.format]??i.format}`;case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${eG(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`}})}},"ja",0,function(){let e,t,r;return{localeError:(e={string:{unit:"æå",verb:"ã§ãã"},file:{unit:"ãã¤ã",verb:"ã§ãã"},array:{unit:"è¦ç´ ",verb:"ã§ãã"},set:{unit:"è¦ç´ ",verb:"ã§ãã"}},t={regex:"å
¥åå¤",email:"ã¡ã¼ã«ã¢ãã¬ã¹",url:"URL",emoji:"çµµæå",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISOæ¥æ",date:"ISOæ¥ä»",time:"ISOæå»",duration:"ISOæé",ipv4:"IPv4ã¢ãã¬ã¹",ipv6:"IPv6ã¢ãã¬ã¹",cidrv4:"IPv4ç¯å²",cidrv6:"IPv6ç¯å²",base64:"base64ã¨ã³ã³ã¼ãæåå",base64url:"base64urlã¨ã³ã³ã¼ãæåå",json_string:"JSONæåå",e164:"E.164çªå·",jwt:"JWT",template_literal:"å
¥åå¤"},r={nan:"NaN",number:"æ°å¤",array:"é
å"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`ç¡å¹ãªå
¥å: instanceof ${i.expected}ãæå¾
ããã¾ãããã${n}ãå
¥åããã¾ãã`;return`ç¡å¹ãªå
¥å: ${e}ãæå¾
ããã¾ãããã${n}ãå
¥åããã¾ãã`}case"invalid_value":if(1===i.values.length)return`ç¡å¹ãªå
¥å: ${to(i.values[0])}ãæå¾
ããã¾ãã`;return`ç¡å¹ãªé¸æ: ${eG(i.values,"ã")}ã®ããããã§ããå¿
è¦ãããã¾ã`;case"too_big":{let t=i.inclusive?"以ä¸ã§ãã":"ããå°ãã",r=e[i.origin]??null;if(r)return`大ããããå¤: ${i.origin??"å¤"}ã¯${i.maximum.toString()}${r.unit??"è¦ç´ "}${t}å¿
è¦ãããã¾ã`;return`大ããããå¤: ${i.origin??"å¤"}ã¯${i.maximum.toString()}${t}å¿
è¦ãããã¾ã`}case"too_small":{let t=i.inclusive?"以ä¸ã§ãã":"ãã大ãã",r=e[i.origin]??null;if(r)return`å°ããããå¤: ${i.origin}ã¯${i.minimum.toString()}${r.unit}${t}å¿
è¦ãããã¾ã`;return`å°ããããå¤: ${i.origin}ã¯${i.minimum.toString()}${t}å¿
è¦ãããã¾ã`}
77case"invalid_format":if("starts_with"===i.format)return`ç¡å¹ãªæåå: "${i.prefix}"ã§å§ã¾ãå¿
è¦ãããã¾ã`;if("ends_with"===i.format)return`ç¡å¹ãªæåå: "${i.suffix}"ã§çµããå¿
è¦ãããã¾ã`;if("includes"===i.format)return`ç¡å¹ãªæåå: "${i.includes}"ãå«ãå¿
è¦ãããã¾ã`;if("regex"===i.format)return`ç¡å¹ãªæåå: ãã¿ã¼ã³${i.pattern}ã«ä¸è´ããå¿
è¦ãããã¾ã`;return`ç¡å¹ãª${t[i.format]??i.format}`;case"not_multiple_of":return`ç¡å¹ãªæ°å¤: ${i.divisor}ã®åæ°ã§ããå¿
è¦ãããã¾ã`;case"unrecognized_keys":return`èªèããã¦ããªããã¼${i.keys.length>1?"群":""}: ${eG(i.keys,"ã")}`;case"invalid_key":return`${i.origin}å
ã®ç¡å¹ãªãã¼`;case"invalid_union":default:return"ç¡å¹ãªå
¥å";case"invalid_element":return`${i.origin}å
ã®ç¡å¹ãªå¤`}})}},"ka",0,function(){let e,t,r;return{localeError:(e={string:{unit:"á¡áááááá",verb:"á£ááá á¨áááªááááá¡"},file:{unit:"áááá¢á",verb:"á£ááá á¨áááªááááá¡"},array:{unit:"ááááááá¢á",verb:"á£ááá á¨áááªááááá¡"},set:{unit:"ááááááá¢á",verb:"á£ááá á¨áááªááááá¡"}},t={regex:"á¨áá§áááá",email:"áá-á¤áá¡á¢áá¡ ááá¡áááá áá",url:"URL",emoji:"áááá¯á",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ááá áá¦á-áá á",date:"ááá áá¦á",time:"áá á",duration:"á®áááá á«áááááá",ipv4:"IPv4 ááá¡áááá áá",ipv6:"IPv6 ááá¡áááá áá",cidrv4:"IPv4 ááááááááá",cidrv6:"IPv6 ááááááááá",base64:"base64-ááááá ááá£áá áááá",base64url:"base64url-ááááá ááá£áá áááá",json_string:"JSON áááá",e164:"E.164 ááááá á",jwt:"JWT",template_literal:"á¨áá§áááá"},r={nan:"NaN",number:"á ááªá®áá",string:"áááá",boolean:"áá£ááááá",function:"á¤á£áá¥áªáá",array:"ááá¡ááá"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`áá áá¡á¬áá á á¨áá§áááá: ááá¡áááááááá instanceof ${i.expected}, ááá¦ááá£áá ${n}`;return`áá áá¡á¬áá á á¨áá§áááá: ááá¡áááááááá ${e}, ááá¦ááá£áá ${n}`}case"invalid_value":if(1===i.values.length)return`áá áá¡á¬áá á á¨áá§áááá: ááá¡áááááááá ${to(i.values[0])}`;return`áá áá¡á¬áá á ááá áááá¢á: ááá¡ááááááááá áá á-áá áá ${eG(i.values,"|")}-ááá`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`áááááá¢áá áááá: ááá¡áááááááá ${i.origin??"áááá¨ááááááá"} ${r.verb} ${t}${i.maximum.toString()} ${r.unit}`;return`áááááá¢áá áááá: ááá¡áááááááá ${i.origin??"áááá¨ááááááá"} áá§áá¡ ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`áááááá¢áá ááá¢áá á: ááá¡áááááááá ${i.origin} ${r.verb} ${t}${i.minimum.toString()} ${r.unit}`;return`áááááá¢áá ááá¢áá á: ááá¡áááááááá ${i.origin} áá§áá¡ ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`áá áá¡á¬áá á áááá: á£ááá áá¬á§áááááá¡ "${i.prefix}"-áá`;if("ends_with"===i.format)return`áá áá¡á¬áá á áááá: á£ááá ááááá ááááááá¡ "${i.suffix}"-áá`;if("includes"===i.format)return`áá áá¡á¬áá á áááá: á£ááá á¨áááªááááá¡ "${i.includes}"-á¡`;if("regex"===i.format)return`áá áá¡á¬áá á áááá: á£ááá á¨ááá¡áááááááááá¡ á¨áááááá¡ ${i.pattern}`;return`áá áá¡á¬áá á ${t[i.format]??i.format}`;case"not_multiple_of":return`áá áá¡á¬áá á á ááªá®áá: á£ááá áá§áá¡ ${i.divisor}-áá¡ á¯áá ááá`;case"unrecognized_keys":return`á£áªáááá ááá¡áá¦áá${i.keys.length>1?"ááá":"á"}: ${eG(i.keys,", ")}`;
77case"invalid_key":return`áá áá¡á¬áá á ááá¡áá¦ááá ${i.origin}-á¨á`;case"invalid_union":default:return"áá áá¡á¬áá á á¨áá§áááá";case"invalid_element":return`áá áá¡á¬áá á áááá¨ááááááá ${i.origin}-á¨á`}})}},"kh",0,function(){return ut()},"km",0,ut,"ko",0,function(){let e,t,r;return{localeError:(e={string:{unit:"문ì",verb:"to have"},file:{unit:"ë°ì´í¸",verb:"to have"},array:{unit:"ê°",verb:"to have"},set:{unit:"ê°",verb:"to have"}},t={regex:"ì
ë ¥",email:"ì´ë©ì¼ 주ì",url:"URL",emoji:"ì´ëª¨ì§",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ë ì§ìê°",date:"ISO ë ì§",time:"ISO ìê°",duration:"ISO 기ê°",ipv4:"IPv4 주ì",ipv6:"IPv6 주ì",cidrv4:"IPv4 ë²ì",cidrv6:"IPv6 ë²ì",base64:"base64 ì¸ì½ë© 문ìì´",base64url:"base64url ì¸ì½ë© 문ìì´",json_string:"JSON 문ìì´",e164:"E.164 ë²í¸",jwt:"JWT",template_literal:"ì
ë ¥"},r={nan:"NaN"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`ì못ë ì
ë ¥: ìì íì
ì instanceof ${i.expected}, ë°ì íì
ì ${n}ì
ëë¤`;return`ì못ë ì
ë ¥: ìì íì
ì ${e}, ë°ì íì
ì ${n}ì
ëë¤`}case"invalid_value":if(1===i.values.length)return`ì못ë ì
ë ¥: ê°ì ${to(i.values[0])} ì´ì´ì¼ í©ëë¤`;return`ì못ë ìµì
: ${eG(i.values,"ëë ")} ì¤ íëì¬ì¼ í©ëë¤`;case"too_big":{let t=i.inclusive?"ì´í":"미ë§",r="미ë§"===t?"ì´ì´ì¼ í©ëë¤":"ì¬ì¼ í©ëë¤",n=e[i.origin]??null,a=n?.unit??"ìì";if(n)return`${i.origin??"ê°"}ì´ ë무 í½ëë¤: ${i.maximum.toString()}${a} ${t}${r}`;return`${i.origin??"ê°"}ì´ ë무 í½ëë¤: ${i.maximum.toString()} ${t}${r}`}case"too_small":{let t=i.inclusive?"ì´ì":"ì´ê³¼",r="ì´ì"===t?"ì´ì´ì¼ í©ëë¤":"ì¬ì¼ í©ëë¤",n=e[i.origin]??null,a=n?.unit??"ìì";if(n)return`${i.origin??"ê°"}ì´ ë무 ììµëë¤: ${i.minimum.toString()}${a} ${t}${r}`;return`${i.origin??"ê°"}ì´ ë무 ììµëë¤: ${i.minimum.toString()} ${t}${r}`}case"invalid_format":if("starts_with"===i.format)return`ì못ë 문ìì´: "${i.prefix}"(ì¼)ë¡ ììí´ì¼ í©ëë¤`;if("ends_with"===i.format)return`ì못ë 문ìì´: "${i.suffix}"(ì¼)ë¡ ëëì¼ í©ëë¤`;if("includes"===i.format)return`ì못ë 문ìì´: "${i.includes}"ì(를) í¬í¨í´ì¼ í©ëë¤`;if("regex"===i.format)return`ì못ë 문ìì´: ì ê·ì ${i.pattern} í¨í´ê³¼ ì¼ì¹í´ì¼ í©ëë¤`;return`ì못ë ${t[i.format]??i.format}`;case"not_multiple_of":return`ì못ë ì«ì: ${i.divisor}ì ë°°ìì¬ì¼ í©ëë¤`;case"unrecognized_keys":return`ì¸ìí ì ìë í¤: ${eG(i.keys,", ")}`;case"invalid_key":return`ì못ë í¤: ${i.origin}`;case"invalid_union":default:return"ì못ë ì
ë ¥";case"invalid_element":return`ì못ë ê°: ${i.origin}`}})}},"lt",0,function(){return{localeError:(()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi bÅ«ti ne ilgesnÄ kaip",notInclusive:"turi bÅ«ti trumpesnÄ kaip"},bigger:{inclusive:"turi bÅ«ti ne trumpesnÄ kaip",notInclusive:"turi bÅ«ti ilgesnÄ kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi bÅ«ti ne didesnis kaip",notInclusive:"turi bÅ«ti mažesnis kaip"},bigger:{inclusive:"turi bÅ«ti ne mažesnis kaip",notInclusive:"turi bÅ«ti didesnis kaip"}}},array:{unit:{one:"elementÄ
",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turÄti ne daugiau kaip",notInclusive:"turi turÄti mažiau kaip"},bigger:{inclusive:"turi turÄti ne mažiau kaip",notInclusive:"turi turÄti daugiau kaip"}}},set:{unit:{one:"elementÄ
",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turÄti ne daugiau kaip",notInclusive:"turi turÄti mažiau kaip"},bigger:{inclusive:"turi turÄti ne mažiau kaip",notInclusive:"turi turÄti daugiau kaip"}}}};function t(t,r,i,n){let a=e[t]??null;return null===a?a:{unit:a.unit[r],verb:a.verb[n][i?"inclusive":"notInclusive"]}}let r={regex:"įvestis",email:"el. paÅ¡to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmÄ",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutÄ",base64url:"base64url užkoduota eilutÄ",json_string:"JSON eilutÄ",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},i={nan:"NaN",number:"skaiÄius",bigint:"sveikasis skaiÄius",string:"eilutÄ",boolean:"loginÄ reikÅ¡mÄ",undefined:"neapibrÄžta reikÅ¡mÄ",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinÄ reikÅ¡mÄ"};return e=>
77{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=tv(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Gautas tipas ${n}, o tikÄtasi - instanceof ${e.expected}`;return`Gautas tipas ${n}, o tikÄtasi - ${t}`}case"invalid_value":if(1===e.values.length)return`Privalo bÅ«ti ${to(e.values[0])}`;return`Privalo bÅ«ti vienas iÅ¡ ${eG(e.values,"|")} pasirinkimų`;case"too_big":{let r=i[e.origin]??e.origin,n=t(e.origin,ui(Number(e.maximum)),e.inclusive??!1,"smaller");if(n?.verb)return`${ur(r??e.origin??"reikÅ¡mÄ")} ${n.verb} ${e.maximum.toString()} ${n.unit??"elementų"}`;let a=e.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${ur(r??e.origin??"reikÅ¡mÄ")} turi bÅ«ti ${a} ${e.maximum.toString()} ${n?.unit}`}case"too_small":{let r=i[e.origin]??e.origin,n=t(e.origin,ui(Number(e.minimum)),e.inclusive??!1,"bigger");if(n?.verb)return`${ur(r??e.origin??"reikÅ¡mÄ")} ${n.verb} ${e.minimum.toString()} ${n.unit??"elementų"}`;let a=e.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${ur(r??e.origin??"reikÅ¡mÄ")} turi bÅ«ti ${a} ${e.minimum.toString()} ${n?.unit}`}case"invalid_format":if("starts_with"===e.format)return`EilutÄ privalo prasidÄti "${e.prefix}"`;if("ends_with"===e.format)return`EilutÄ privalo pasibaigti "${e.suffix}"`;if("includes"===e.format)return`EilutÄ privalo įtraukti "${e.includes}"`;if("regex"===e.format)return`EilutÄ privalo atitikti ${e.pattern}`;return`Neteisingas ${r[e.format]??e.format}`;case"not_multiple_of":return`SkaiÄius privalo bÅ«ti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${eG(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":default:return"Klaidinga įvestis";case"invalid_element":{let t=i[e.origin]??e.origin;return`${ur(t??e.origin??"reikÅ¡mÄ")} turi klaidingÄ
įvestį`}}}})()}},"mk",0,function(){let e,t,r;return{localeError:(e={string:{unit:"знаÑи",verb:"да имааÑ"},file:{unit:"баÑÑи",verb:"да имааÑ"},array:{unit:"ÑÑавки",verb:"да имааÑ"},set:{unit:"ÑÑавки",verb:"да имааÑ"}},t={regex:"внеÑ",email:"адÑеÑа на е-поÑÑа",url:"URL",emoji:"емоÑи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO даÑÑм и вÑеме",date:"ISO даÑÑм",time:"ISO вÑеме",duration:"ISO вÑемеÑÑаеÑе",ipv4:"IPv4 адÑеÑа",ipv6:"IPv6 адÑеÑа",cidrv4:"IPv4 опÑег",cidrv6:"IPv6 опÑег",base64:"base64-енкодиÑана низа",base64url:"base64url-енкодиÑана низа",json_string:"JSON низа",e164:"E.164 бÑоÑ",jwt:"JWT",template_literal:"внеÑ"},r={nan:"NaN",number:"бÑоÑ",array:"низа"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`ÐÑеÑен внеÑ: Ñе оÑекÑва instanceof ${i.expected}, пÑимено ${n}`;return`ÐÑеÑен внеÑ: Ñе оÑекÑва ${e}, пÑимено ${n}`}case"invalid_value":if(1===i.values.length)return`Invalid input: expected ${to(i.values[0])}`;return`ÐÑеÑана опÑиÑа: Ñе оÑекÑва една ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð³Ð¾Ð»ÐµÐ¼: Ñе оÑекÑва ${i.origin??"вÑедноÑÑа"} да има ${t}${i.maximum.toString()} ${r.unit??"елеменÑи"}`;return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð³Ð¾Ð»ÐµÐ¼: Ñе оÑекÑва ${i.origin??"вÑедноÑÑа"} да биде ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð¼Ð°Ð»: Ñе оÑекÑва ${i.origin} да има ${t}${i.minimum.toString()} ${r.unit}`;return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð¼Ð°Ð»: Ñе оÑекÑва ${i.origin} да биде ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`ÐеважеÑка низа: моÑа да запоÑнÑва Ñо "${i.prefix}"`;if("ends_with"===i.format)return`ÐеважеÑка низа: моÑа да завÑÑÑва Ñо "${i.suffix}"`;if("includes"===i.format)return`ÐеважеÑка низа: моÑа да вклÑÑÑва "${i.includes}"`;if("regex"===i.format)return`ÐеважеÑка низа: моÑа да одгоаÑа на паÑеÑÐ½Ð¾Ñ ${i.pattern}`;return`Invalid ${t[i.format]??i.format}`;case"not_multiple_of":return`ÐÑеÑен бÑоÑ: моÑа да биде делив Ñо ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"ÐепÑепознаени клÑÑеви":"ÐепÑепознаен клÑÑ"}: ${eG(i.keys,", ")}`;
77case"invalid_key":return`ÐÑеÑен клÑÑ Ð²Ð¾ ${i.origin}`;case"invalid_union":default:return"ÐÑеÑен внеÑ";case"invalid_element":return`ÐÑеÑна вÑедноÑÑ Ð²Ð¾ ${i.origin}`}})}},"ms",0,function(){let e,t,r;return{localeError:(e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}},t={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"nombor"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Input tidak sah: dijangka instanceof ${i.expected}, diterima ${n}`;return`Input tidak sah: dijangka ${e}, diterima ${n}`}case"invalid_value":if(1===i.values.length)return`Input tidak sah: dijangka ${to(i.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Terlalu besar: dijangka ${i.origin??"nilai"} ${r.verb} ${t}${i.maximum.toString()} ${r.unit??"elemen"}`;return`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Terlalu kecil: dijangka ${i.origin} ${r.verb} ${t}${i.minimum.toString()} ${r.unit}`;return`Terlalu kecil: dijangka ${i.origin} adalah ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`String tidak sah: mesti bermula dengan "${i.prefix}"`;if("ends_with"===i.format)return`String tidak sah: mesti berakhir dengan "${i.suffix}"`;if("includes"===i.format)return`String tidak sah: mesti mengandungi "${i.includes}"`;if("regex"===i.format)return`String tidak sah: mesti sepadan dengan corak ${i.pattern}`;return`${t[i.format]??i.format} tidak sah`;case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${eG(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`}})}},"nl",0,function(){let e,t,r;return{localeError:(e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}},t={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},r={nan:"NaN",number:"getal"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Ongeldige invoer: verwacht instanceof ${i.expected}, ontving ${n}`;return`Ongeldige invoer: verwacht ${e}, ontving ${n}`}case"invalid_value":if(1===i.values.length)return`Ongeldige invoer: verwacht ${to(i.values[0])}`;return`Ongeldige optie: verwacht \xe9\xe9n van ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null,n="date"===i.origin?"laat":"string"===i.origin?"lang":"groot";if(r)return`Te ${n}: verwacht dat ${i.origin??"waarde"} ${t}${i.maximum.toString()} ${r.unit??"elementen"} ${r.verb}`;return`Te ${n}: verwacht dat ${i.origin??"waarde"} ${t}${i.maximum.toString()} is`}case"too_small":{let t=i.inclusive?">=":">
77",r=e[i.origin]??null,n="date"===i.origin?"vroeg":"string"===i.origin?"kort":"klein";if(r)return`Te ${n}: verwacht dat ${i.origin} ${t}${i.minimum.toString()} ${r.unit} ${r.verb}`;return`Te ${n}: verwacht dat ${i.origin} ${t}${i.minimum.toString()} is`}case"invalid_format":if("starts_with"===i.format)return`Ongeldige tekst: moet met "${i.prefix}" beginnen`;if("ends_with"===i.format)return`Ongeldige tekst: moet op "${i.suffix}" eindigen`;if("includes"===i.format)return`Ongeldige tekst: moet "${i.includes}" bevatten`;if("regex"===i.format)return`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`;return`Ongeldig: ${t[i.format]??i.format}`;case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`}})}},"no",0,function(){let e,t,r;return{localeError:(e={string:{unit:"tegn",verb:"Ã¥ ha"},file:{unit:"bytes",verb:"Ã¥ ha"},array:{unit:"elementer",verb:"Ã¥ inneholde"},set:{unit:"elementer",verb:"Ã¥ inneholde"}},t={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omrÃ¥de",ipv6:"IPv6-omrÃ¥de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"tall",array:"liste"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Ugyldig input: forventet instanceof ${i.expected}, fikk ${n}`;return`Ugyldig input: forventet ${e}, fikk ${n}`}case"invalid_value":if(1===i.values.length)return`Ugyldig verdi: forventet ${to(i.values[0])}`;return`Ugyldig valg: forventet en av ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`For stor(t): forventet ${i.origin??"value"} til \xe5 ha ${t}${i.maximum.toString()} ${r.unit??"elementer"}`;return`For stor(t): forventet ${i.origin??"value"} til \xe5 ha ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`For lite(n): forventet ${i.origin} til \xe5 ha ${t}${i.minimum.toString()} ${r.unit}`;return`For lite(n): forventet ${i.origin} til \xe5 ha ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Ugyldig streng: m\xe5 starte med "${i.prefix}"`;if("ends_with"===i.format)return`Ugyldig streng: m\xe5 ende med "${i.suffix}"`;if("includes"===i.format)return`Ugyldig streng: m\xe5 inneholde "${i.includes}"`;if("regex"===i.format)return`Ugyldig streng: m\xe5 matche m\xf8nsteret ${i.pattern}`;return`Ugyldig ${t[i.format]??i.format}`;case"not_multiple_of":return`Ugyldig tall: m\xe5 v\xe6re et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${eG(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8kkel i ${i.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`}})}},"ota",0,function(){let e,t,r;return{localeError:(e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}},t={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 niÅânı",ipv6:"IPv6 niÅânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-Åifreli metin",base64url:"base64url-Åifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},r={nan:"NaN",number:"numara",array:"saf",null:"gayb"},i=>
77{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`F\xe2sit giren: umulan instanceof ${i.expected}, alınan ${n}`;return`F\xe2sit giren: umulan ${e}, alınan ${n}`}case"invalid_value":if(1===i.values.length)return`F\xe2sit giren: umulan ${to(i.values[0])}`;return`F\xe2sit tercih: m\xfbteberler ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Fazla b\xfcy\xfck: ${i.origin??"value"}, ${t}${i.maximum.toString()} ${r.unit??"elements"} sahip olmalıydı.`;return`Fazla b\xfcy\xfck: ${i.origin??"value"}, ${t}${i.maximum.toString()} olmalıydı.`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Fazla k\xfc\xe7\xfck: ${i.origin}, ${t}${i.minimum.toString()} ${r.unit} sahip olmalıydı.`;return`Fazla k\xfc\xe7\xfck: ${i.origin}, ${t}${i.minimum.toString()} olmalıydı.`}case"invalid_format":if("starts_with"===i.format)return`F\xe2sit metin: "${i.prefix}" ile baÅlamalı.`;if("ends_with"===i.format)return`F\xe2sit metin: "${i.suffix}" ile bitmeli.`;if("includes"===i.format)return`F\xe2sit metin: "${i.includes}" ihtiv\xe2 etmeli.`;if("regex"===i.format)return`F\xe2sit metin: ${i.pattern} nakÅına uymalı.`;return`F\xe2sit ${t[i.format]??i.format}`;case"not_multiple_of":return`F\xe2sit sayı: ${i.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${i.keys.length>1?"s":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xe7in tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${i.origin} i\xe7in tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}})}},"pl",0,function(){let e,t,r;return{localeError:(e={string:{unit:"znaków",verb:"mieÄ"},file:{unit:"bajtów",verb:"mieÄ"},array:{unit:"elementów",verb:"mieÄ"},set:{unit:"elementów",verb:"mieÄ"}},t={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciÄ
g znaków zakodowany w formacie base64",base64url:"ciÄ
g znaków zakodowany w formacie base64url",json_string:"ciÄ
g znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejÅcie"},r={nan:"NaN",number:"liczba",array:"tablica"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`NieprawidÅowe dane wejÅciowe: oczekiwano instanceof ${i.expected}, otrzymano ${n}`;return`NieprawidÅowe dane wejÅciowe: oczekiwano ${e}, otrzymano ${n}`}case"invalid_value":if(1===i.values.length)return`NieprawidÅowe dane wejÅciowe: oczekiwano ${to(i.values[0])}`;return`NieprawidÅowa opcja: oczekiwano jednej z wartoÅci ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Za duża wartoÅÄ: oczekiwano, że ${i.origin??"wartoÅÄ"} bÄdzie mieÄ ${t}${i.maximum.toString()} ${r.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${i.origin??"wartoÅÄ"} bÄdzie wynosiÄ ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Za maÅa wartoÅÄ: oczekiwano, że ${i.origin??"wartoÅÄ"} bÄdzie mieÄ ${t}${i.minimum.toString()} ${r.unit??"elementów"}`;return`Zbyt maÅ(y/a/e): oczekiwano, że ${i.origin??"wartoÅÄ"} bÄdzie wynosiÄ ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi zaczynaÄ siÄ od "${i.prefix}"`;if("ends_with"===i.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi koÅczyÄ siÄ na "${i.suffix}"`;if("includes"===i.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi zawieraÄ "${i.includes}"`;if("regex"===i.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi odpowiadaÄ wzorcowi ${i.pattern}`;return`NieprawidÅow(y/a/e) ${t[i.format]??i.format}`;case"not_multiple_of":return`NieprawidÅowa liczba: musi byÄ wielokrotnoÅciÄ
${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>
771?"s":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`NieprawidÅowy klucz w ${i.origin}`;case"invalid_union":default:return"NieprawidÅowe dane wejÅciowe";case"invalid_element":return`NieprawidÅowa wartoÅÄ w ${i.origin}`}})}},"ps",0,function(){let e,t,r;return{localeError:(e={string:{unit:"تÙÚ©Ù",verb:"ÙÙØ±Ù"},file:{unit:"باÛټس",verb:"ÙÙØ±Ù"},array:{unit:"تÙÚ©Ù",verb:"ÙÙØ±Ù"},set:{unit:"تÙÚ©Ù",verb:"ÙÙØ±Ù"}},t={regex:"ÙØ±ÙدÙ",email:"برÛÚÙØ§ÙÛÚ©",url:"Û٠آر اÙ",emoji:"اÛÙ
ÙØ¬Ù",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ÙÛÙ¼Ù Ø§Ù ÙØ®Øª",date:"ÙÛÙ¼Ù",time:"ÙØ®Øª",duration:"Ù
ÙØ¯Ù",ipv4:"د IPv4 پتÙ",ipv6:"د IPv6 پتÙ",cidrv4:"د IPv4 ساØÙ",cidrv6:"د IPv6 ساØÙ",base64:"base64-encoded Ù
تÙ",base64url:"base64url-encoded Ù
تÙ",json_string:"JSON Ù
تÙ",e164:"د E.164 Ø´Ù
ÛØ±Ù",jwt:"JWT",template_literal:"ÙØ±ÙدÙ"},r={nan:"NaN",number:"عدد",array:"ارÛ"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`ÙØ§Ø³Ù
ÙØ±ÙدÙ: Ø¨Ø§ÛØ¯ instanceof ${i.expected} ÙØ§Û, Ù
ګر ${n} ØªØ±ÙØ§Ø³Ù Ø´Ù`;return`ÙØ§Ø³Ù
ÙØ±ÙدÙ: Ø¨Ø§ÛØ¯ ${e} ÙØ§Û, Ù
ګر ${n} ØªØ±ÙØ§Ø³Ù Ø´Ù`}case"invalid_value":if(1===i.values.length)return`ÙØ§Ø³Ù
ÙØ±ÙدÙ: Ø¨Ø§ÛØ¯ ${to(i.values[0])} ÙØ§Û`;return`ÙØ§Ø³Ù
Ø§ÙØªØ®Ø§Ø¨: Ø¨Ø§ÛØ¯ ÛÙ ÙÙ ${eG(i.values,"|")} Ú
Ø®Ù ÙØ§Û`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`ÚÛØ± ÙÙÛ: ${i.origin??"Ø§Ø±Ø²ÚØª"} Ø¨Ø§ÛØ¯ ${t}${i.maximum.toString()} ${r.unit??"Ø¹ÙØµØ±ÙÙÙ"} ÙÙØ±Ù`;return`ÚÛØ± ÙÙÛ: ${i.origin??"Ø§Ø±Ø²ÚØª"} Ø¨Ø§ÛØ¯ ${t}${i.maximum.toString()} ÙÙ`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`ÚÛØ± Ú©ÙÚÙÛ: ${i.origin} Ø¨Ø§ÛØ¯ ${t}${i.minimum.toString()} ${r.unit} ÙÙØ±Ù`;return`ÚÛØ± Ú©ÙÚÙÛ: ${i.origin} Ø¨Ø§ÛØ¯ ${t}${i.minimum.toString()} ÙÙ`}case"invalid_format":if("starts_with"===i.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ د "${i.prefix}" سر٠پÛÙ Ø´Ù`;if("ends_with"===i.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ د "${i.suffix}" Ø³Ø±Ù Ù¾Ø§Û ØªÙ ÙØ±Ø³ÙÚÙ`;if("includes"===i.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ "${i.includes}" ÙÙØ±Ù`;if("regex"===i.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ د ${i.pattern} سر٠Ù
Ø·Ø§Ø¨ÙØª ÙÙØ±Ù`;return`${t[i.format]??i.format} ÙØ§Ø³Ù
دÛ`;case"not_multiple_of":return`ÙØ§Ø³Ù
عدد: Ø¨Ø§ÛØ¯ د ${i.divisor} Ù
ضرب ÙÙ`;case"unrecognized_keys":return`ÙØ§Ø³Ù
${i.keys.length>1?"Ú©ÙÛÚÙÙÙ":"Ú©ÙÛÚ"}: ${eG(i.keys,", ")}`;case"invalid_key":return`ÙØ§Ø³Ù
Ú©ÙÛÚ Ù¾Ù ${i.origin} Ú©Û`;case"invalid_union":default:return"ÙØ§Ø³Ù
Ù ÙØ±ÙدÙ";case"invalid_element":return`ÙØ§Ø³Ù
Ø¹ÙØµØ± Ù¾Ù ${i.origin} Ú©Û`}})}},"pt",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}},t={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",number:"número",null:"nulo"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Tipo inv\xe1lido: esperado instanceof ${i.expected}, recebido ${n}`;return`Tipo inv\xe1lido: esperado ${e}, recebido ${n}`}case"invalid_value":if(1===i.values.length)return`Entrada inv\xe1lida: esperado ${to(i.values[0])}`;return`Op\xe7\xe3o inv\xe1lida: esperada uma das ${eG(i.values,"|")}`;
77case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Muito grande: esperado que ${i.origin??"valor"} tivesse ${t}${i.maximum.toString()} ${r.unit??"elementos"}`;return`Muito grande: esperado que ${i.origin??"valor"} fosse ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Muito pequeno: esperado que ${i.origin} tivesse ${t}${i.minimum.toString()} ${r.unit}`;return`Muito pequeno: esperado que ${i.origin} fosse ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Texto inv\xe1lido: deve come\xe7ar com "${i.prefix}"`;if("ends_with"===i.format)return`Texto inv\xe1lido: deve terminar com "${i.suffix}"`;if("includes"===i.format)return`Texto inv\xe1lido: deve incluir "${i.includes}"`;if("regex"===i.format)return`Texto inv\xe1lido: deve corresponder ao padr\xe3o ${i.pattern}`;return`${t[i.format]??i.format} inv\xe1lido`;case"not_multiple_of":return`N\xfamero inv\xe1lido: deve ser m\xfaltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`Chave inv\xe1lida em ${i.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inv\xe1lido em ${i.origin}`;default:return"Campo inválido"}})}},"ro",0,function(){let e,t,r;return{localeError:(e={string:{unit:"caractere",verb:"sÄ aibÄ"},file:{unit:"octeÈi",verb:"sÄ aibÄ"},array:{unit:"elemente",verb:"sÄ aibÄ"},set:{unit:"elemente",verb:"sÄ aibÄ"},map:{unit:"intrÄri",verb:"sÄ aibÄ"}},t={regex:"intrare",email:"adresÄ de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datÄ Èi orÄ ISO",date:"datÄ ISO",time:"orÄ ISO",duration:"duratÄ ISO",ipv4:"adresÄ IPv4",ipv6:"adresÄ IPv6",mac:"adresÄ MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"Èir codat base64",base64url:"Èir codat base64url",json_string:"Èir JSON",e164:"numÄr E.164",jwt:"JWT",template_literal:"intrare"},r={nan:"NaN",string:"Èir",number:"numÄr",boolean:"boolean",function:"funcÈie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"numÄr mare",void:"void",never:"never",map:"hartÄ",set:"set"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;return`Intrare invalidÄ: aÈteptat ${e}, primit ${n}`}case"invalid_value":if(1===i.values.length)return`Intrare invalidÄ: aÈteptat ${to(i.values[0])}`;return`OpÈiune invalidÄ: aÈteptat una dintre ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Prea mare: aÈteptat ca ${i.origin??"valoarea"} ${r.verb} ${t}${i.maximum.toString()} ${r.unit??"elemente"}`;return`Prea mare: aÈteptat ca ${i.origin??"valoarea"} sÄ fie ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Prea mic: aÈteptat ca ${i.origin} ${r.verb} ${t}${i.minimum.toString()} ${r.unit}`;return`Prea mic: aÈteptat ca ${i.origin} sÄ fie ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Èir invalid: trebuie sÄ \xeenceapÄ cu "${i.prefix}"`;if("ends_with"===i.format)return`Èir invalid: trebuie sÄ se termine cu "${i.suffix}"`;if("includes"===i.format)return`Èir invalid: trebuie sÄ includÄ "${i.includes}"`;if("regex"===i.format)return`Èir invalid: trebuie sÄ se potriveascÄ cu modelul ${i.pattern}`;return`Format invalid: ${t[i.format]??i.format}`;case"not_multiple_of":return`NumÄr invalid: trebuie sÄ fie multiplu de ${i.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${eG(i.keys,", ")}`;case"invalid_key":return`Cheie invalidÄ \xeen ${i.origin}`;case"invalid_union":default:return"Intrare invalidÄ";case"invalid_element":return`Valoare invalidÄ \xeen ${i.origin}`}})}},"ru",0,function(){let e,t,r;return{localeError:(e={string:{unit:{one:"Ñимвол",few:"Ñимвола",many:"Ñимволов"},verb:"имеÑÑ"},file:{unit:{one:"байÑ",few:"байÑа",many:"байÑ"},verb:"имеÑÑ"},array:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑа",many:"ÑлеменÑов"},verb:"имеÑÑ"},set:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑа",many:"ÑлеменÑов"},verb:"имеÑÑ"}},t={regex:"ввод",email:"email адÑеÑ",url:"URL",emoji:"Ñмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO даÑа и вÑемÑ",date:"ISO даÑа",time:"ISO вÑемÑ",duration:"ISO длиÑелÑноÑÑÑ",ipv4:"IPv4 адÑеÑ",ipv6:"IPv6 адÑеÑ",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"ÑÑÑока в ÑоÑмаÑе base64",base64url:"ÑÑÑока в ÑоÑмаÑе base64url",json_string:"JSON ÑÑÑока",e164:"Ð½Ð¾Ð¼ÐµÑ E.164",jwt:"JWT",template_literal:"ввод"},r={nan:"NaN",number:"ÑиÑло",array:"маÑÑив"},i=>
77{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`ÐевеÑнÑй ввод: ожидалоÑÑ instanceof ${i.expected}, полÑÑено ${n}`;return`ÐевеÑнÑй ввод: ожидалоÑÑ ${e}, полÑÑено ${n}`}case"invalid_value":if(1===i.values.length)return`ÐевеÑнÑй ввод: ожидалоÑÑ ${to(i.values[0])}`;return`ÐевеÑнÑй ваÑианÑ: ожидалоÑÑ Ð¾Ð´Ð½Ð¾ из ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r){let e=un(Number(i.maximum),r.unit.one,r.unit.few,r.unit.many);return`СлиÑком болÑÑое знаÑение: ожидалоÑÑ, ÑÑо ${i.origin??"знаÑение"} бÑÐ´ÐµÑ Ð¸Ð¼ÐµÑÑ ${t}${i.maximum.toString()} ${e}`}return`СлиÑком болÑÑое знаÑение: ожидалоÑÑ, ÑÑо ${i.origin??"знаÑение"} бÑÐ´ÐµÑ ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r){let e=un(Number(i.minimum),r.unit.one,r.unit.few,r.unit.many);return`СлиÑком маленÑкое знаÑение: ожидалоÑÑ, ÑÑо ${i.origin} бÑÐ´ÐµÑ Ð¸Ð¼ÐµÑÑ ${t}${i.minimum.toString()} ${e}`}return`СлиÑком маленÑкое знаÑение: ожидалоÑÑ, ÑÑо ${i.origin} бÑÐ´ÐµÑ ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна наÑинаÑÑÑÑ Ñ "${i.prefix}"`;if("ends_with"===i.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна заканÑиваÑÑÑÑ Ð½Ð° "${i.suffix}"`;if("includes"===i.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна ÑодеÑжаÑÑ "${i.includes}"`;if("regex"===i.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна ÑооÑвеÑÑÑвоваÑÑ ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${i.pattern}`;return`ÐевеÑнÑй ${t[i.format]??i.format}`;case"not_multiple_of":return`ÐевеÑное ÑиÑло: должно бÑÑÑ ÐºÑаÑнÑм ${i.divisor}`;case"unrecognized_keys":return`ÐеÑаÑпознанн${i.keys.length>1?"Ñе":"Ñй"} клÑÑ${i.keys.length>1?"и":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`ÐевеÑнÑй клÑÑ Ð² ${i.origin}`;case"invalid_union":default:return"ÐевеÑнÑе вÑ
однÑе даннÑе";case"invalid_element":return`ÐевеÑное знаÑение в ${i.origin}`}})}},"sl",0,function(){let e,t,r;return{localeError:(e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}},t={regex:"vnos",email:"e-poÅ¡tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in Äas",date:"ISO datum",time:"ISO Äas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 Å¡tevilka",jwt:"JWT",template_literal:"vnos"},r={nan:"NaN",number:"Å¡tevilo",array:"tabela"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Neveljaven vnos: priÄakovano instanceof ${i.expected}, prejeto ${n}`;return`Neveljaven vnos: priÄakovano ${e}, prejeto ${n}`}case"invalid_value":if(1===i.values.length)return`Neveljaven vnos: priÄakovano ${to(i.values[0])}`;return`Neveljavna možnost: priÄakovano eno izmed ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Preveliko: priÄakovano, da bo ${i.origin??"vrednost"} imelo ${t}${i.maximum.toString()} ${r.unit??"elementov"}`;return`Preveliko: priÄakovano, da bo ${i.origin??"vrednost"} ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Premajhno: priÄakovano, da bo ${i.origin} imelo ${t}${i.minimum.toString()} ${r.unit}`;return`Premajhno: priÄakovano, da bo ${i.origin} ${t}${i.minimum.toString()}`}
77case"invalid_format":if("starts_with"===i.format)return`Neveljaven niz: mora se zaÄeti z "${i.prefix}"`;if("ends_with"===i.format)return`Neveljaven niz: mora se konÄati z "${i.suffix}"`;if("includes"===i.format)return`Neveljaven niz: mora vsebovati "${i.includes}"`;if("regex"===i.format)return`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`;return`Neveljaven ${t[i.format]??i.format}`;case"not_multiple_of":return`Neveljavno Å¡tevilo: mora biti veÄkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i kljuÄi":" kljuÄ"}: ${eG(i.keys,", ")}`;case"invalid_key":return`Neveljaven kljuÄ v ${i.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`}})}},"sv",0,function(){let e,t,r;return{localeError:(e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehÃ¥lla"},set:{unit:"objekt",verb:"att innehÃ¥lla"}},t={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},r={nan:"NaN",number:"antal",array:"lista"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Ogiltig inmatning: f\xf6rv\xe4ntat instanceof ${i.expected}, fick ${n}`;return`Ogiltig inmatning: f\xf6rv\xe4ntat ${e}, fick ${n}`}case"invalid_value":if(1===i.values.length)return`Ogiltig inmatning: f\xf6rv\xe4ntat ${to(i.values[0])}`;return`Ogiltigt val: f\xf6rv\xe4ntade en av ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`F\xf6r stor(t): f\xf6rv\xe4ntade ${i.origin??"värdet"} att ha ${t}${i.maximum.toString()} ${r.unit??"element"}`;return`F\xf6r stor(t): f\xf6rv\xe4ntat ${i.origin??"värdet"} att ha ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`F\xf6r lite(t): f\xf6rv\xe4ntade ${i.origin??"värdet"} att ha ${t}${i.minimum.toString()} ${r.unit}`;return`F\xf6r lite(t): f\xf6rv\xe4ntade ${i.origin??"värdet"} att ha ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Ogiltig str\xe4ng: m\xe5ste b\xf6rja med "${i.prefix}"`;if("ends_with"===i.format)return`Ogiltig str\xe4ng: m\xe5ste sluta med "${i.suffix}"`;if("includes"===i.format)return`Ogiltig str\xe4ng: m\xe5ste inneh\xe5lla "${i.includes}"`;if("regex"===i.format)return`Ogiltig str\xe4ng: m\xe5ste matcha m\xf6nstret "${i.pattern}"`;return`Ogiltig(t) ${t[i.format]??i.format}`;case"not_multiple_of":return`Ogiltigt tal: m\xe5ste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${eG(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"värdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xe4rde i ${i.origin??"värdet"}`}})}},"ta",0,function(){let e,t,r;return{localeError:(e={string:{unit:"à®à®´à¯à®¤à¯à®¤à¯à®à¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"},file:{unit:"பà¯à®à¯à®à¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"},array:{unit:"à®à®±à¯à®ªà¯à®ªà¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"},set:{unit:"à®à®±à¯à®ªà¯à®ªà¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"}},t={regex:"à®à®³à¯à®³à¯à®à¯",email:"மினà¯à®©à®à¯à®à®²à¯ à®®à¯à®à®µà®°à®¿",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தà¯à®¤à®¿ நà¯à®°à®®à¯",date:"ISO தà¯à®¤à®¿",time:"ISO நà¯à®°à®®à¯",duration:"ISO à®à®¾à®² à®
ளவà¯",ipv4:"IPv4 à®®à¯à®à®µà®°à®¿",ipv6:"IPv6 à®®à¯à®à®µà®°à®¿",cidrv4:"IPv4 வரமà¯à®ª
77à¯",cidrv6:"IPv6 வரமà¯à®ªà¯",base64:"base64-encoded à®à®°à®®à¯",base64url:"base64url-encoded à®à®°à®®à¯",json_string:"JSON à®à®°à®®à¯",e164:"E.164 à®à®£à¯",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"à®à®£à¯",array:"à®
ணி",null:"வà¯à®±à¯à®®à¯"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`தவறான à®à®³à¯à®³à¯à®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ instanceof ${i.expected}, பà¯à®±à®ªà¯à®ªà®à¯à®à®¤à¯ ${n}`;return`தவறான à®à®³à¯à®³à¯à®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${e}, பà¯à®±à®ªà¯à®ªà®à¯à®à®¤à¯ ${n}`}case"invalid_value":if(1===i.values.length)return`தவறான à®à®³à¯à®³à¯à®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${to(i.values[0])}`;return`தவறான விரà¯à®ªà¯à®ªà®®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${eG(i.values,"|")} à®à®²à¯ à®à®©à¯à®±à¯`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`மி஠பà¯à®°à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${i.origin??"மதிபà¯à®ªà¯"} ${t}${i.maximum.toString()} ${r.unit??"à®à®±à¯à®ªà¯à®ªà¯à®à®³à¯"} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;return`மி஠பà¯à®°à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${i.origin??"மதிபà¯à®ªà¯"} ${t}${i.maximum.toString()} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`மிà®à®à¯ à®à®¿à®±à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${i.origin} ${t}${i.minimum.toString()} ${r.unit} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;return`மிà®à®à¯ à®à®¿à®±à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${i.origin} ${t}${i.minimum.toString()} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`}case"invalid_format":if("starts_with"===i.format)return`தவறான à®à®°à®®à¯: "${i.prefix}" à®à®²à¯ தà¯à®à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;if("ends_with"===i.format)return`தவறான à®à®°à®®à¯: "${i.suffix}" à®à®²à¯ à®®à¯à®à®¿à®µà®à¯à®¯ வà¯à®£à¯à®à¯à®®à¯`;if("includes"===i.format)return`தவறான à®à®°à®®à¯: "${i.includes}" à® à®à®³à¯à®³à®à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;if("regex"===i.format)return`தவறான à®à®°à®®à¯: ${i.pattern} à®®à¯à®±à¯à®ªà®¾à®à¯à®à¯à®à®©à¯ பà¯à®°à¯à®¨à¯à®¤ வà¯à®£à¯à®à¯à®®à¯`;return`தவறான ${t[i.format]??i.format}`;case"not_multiple_of":return`தவறான à®à®£à¯: ${i.divisor} à®à®©à¯ பலமா஠à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;case"unrecognized_keys":return`à®
à®à¯à®¯à®¾à®³à®®à¯ தà¯à®°à®¿à®¯à®¾à®¤ விà®à¯${i.keys.length>1?"à®à®³à¯":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`${i.origin} à®à®²à¯ தவறான விà®à¯`;case"invalid_union":default:return"தவறான à®à®³à¯à®³à¯à®à¯";case"invalid_element":return`${i.origin} à®à®²à¯ தவறான மதிபà¯à®ªà¯`}})}},"th",0,function(){let e,t,r;return{localeError:(e={string:{unit:"à¸à¸±à¸§à¸à¸±à¸à¸©à¸£",verb:"à¸à¸§à¸£à¸¡à¸µ"},file:{unit:"à¹à¸à¸à¹",verb:"à¸à¸§à¸£à¸¡à¸µ"},array:{unit:"รายà¸à¸²à¸£",verb:"à¸à¸§à¸£à¸¡à¸µ"},set:{unit:"รายà¸à¸²à¸£",verb:"à¸à¸§à¸£à¸¡à¸µ"}},t={regex:"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸µà¹à¸à¹à¸à¸",email:"à¸à¸µà¹à¸à¸¢à¸¹à¹à¸à¸µà¹à¸¡à¸¥",url:"URL",emoji:"à¸à¸´à¹à¸¡à¸à¸´",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วัà¸à¸à¸µà¹à¹à¸§à¸¥à¸²à¹à¸à¸ ISO",date:"วัà¸à¸à¸µà¹à¹à¸à¸ ISO",time:"à¹à¸§à¸¥à¸²à¹à¸à¸ ISO",duration:"à¸à¹à¸§à¸à¹à¸§à¸¥à¸²à¹à¸à¸ ISO",ipv4:"à¸à¸µà¹à¸à¸¢à¸¹à¹ IPv4",ipv6:"à¸à¸µà¹à¸à¸¢à¸¹à¹ IPv6",cidrv4:"à¸à¹à¸§à¸ IP à¹à¸à¸ IPv4",cidrv6:"à¸à¹à¸§à¸ IP à¹à¸à¸ IPv6",base64:"à¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸à¸ Base64",base64url:"à¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸à¸ Base64 สำหรัภURL",json_string:"à¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸à¸ JSON",e164:"à¹à¸à¸à¸£à¹à¹à¸à¸£à¸¨à¸±à¸à¸à¹à¸£à¸°à¸«à¸§à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨ (E.164)",jwt:"à¹à¸à¹à¸à¸ JWT",template_literal:"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸µà¹à¸à¹à¸à¸"},r={nan:"NaN",number:"à¸à¸±à¸§à¹à¸¥à¸",array:"à¸à¸²à¸£à¹à¹à¸£à¸¢à¹ (Array)",null:"à¹à¸¡à¹à¸¡à¸µà¸à¹à¸² (null)"},i=>
77{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`à¸à¸£à¸°à¹à¸ à¸à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸ instanceof ${i.expected} à¹à¸à¹à¹à¸à¹à¸£à¸±à¸ ${n}`;return`à¸à¸£à¸°à¹à¸ à¸à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸ ${e} à¹à¸à¹à¹à¸à¹à¸£à¸±à¸ ${n}`}case"invalid_value":if(1===i.values.length)return`à¸à¹à¸²à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸ ${to(i.values[0])}`;return`à¸à¸±à¸§à¹à¸¥à¸·à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸à¸«à¸à¸¶à¹à¸à¹à¸ ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"à¹à¸¡à¹à¹à¸à¸´à¸":"à¸à¹à¸à¸¢à¸à¸§à¹à¸²",r=e[i.origin]??null;if(r)return`à¹à¸à¸´à¸à¸à¸³à¸«à¸à¸: ${i.origin??"à¸à¹à¸²"} à¸à¸§à¸£à¸¡à¸µ${t} ${i.maximum.toString()} ${r.unit??"รายà¸à¸²à¸£"}`;return`à¹à¸à¸´à¸à¸à¸³à¸«à¸à¸: ${i.origin??"à¸à¹à¸²"} à¸à¸§à¸£à¸¡à¸µ${t} ${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?"à¸à¸¢à¹à¸²à¸à¸à¹à¸à¸¢":"มาà¸à¸à¸§à¹à¸²",r=e[i.origin]??null;if(r)return`à¸à¹à¸à¸¢à¸à¸§à¹à¸²à¸à¸³à¸«à¸à¸: ${i.origin} à¸à¸§à¸£à¸¡à¸µ${t} ${i.minimum.toString()} ${r.unit}`;return`à¸à¹à¸à¸¢à¸à¸§à¹à¸²à¸à¸³à¸«à¸à¸: ${i.origin} à¸à¸§à¸£à¸¡à¸µ${t} ${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¹à¸à¸à¸à¸¶à¹à¸à¸à¹à¸à¸à¹à¸§à¸¢ "${i.prefix}"`;if("ends_with"===i.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¹à¸à¸à¸¥à¸à¸à¹à¸²à¸¢à¸à¹à¸§à¸¢ "${i.suffix}"`;if("includes"===i.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¹à¸à¸à¸¡à¸µ "${i.includes}" à¸à¸¢à¸¹à¹à¹à¸à¸à¹à¸à¸à¸§à¸²à¸¡`;if("regex"===i.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸à¸£à¸à¸à¸±à¸à¸£à¸¹à¸à¹à¸à¸à¸à¸µà¹à¸à¸³à¸«à¸à¸ ${i.pattern}`;return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: ${t[i.format]??i.format}`;case"not_multiple_of":return`à¸à¸±à¸§à¹à¸¥à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¹à¸à¹à¸à¸à¸³à¸à¸§à¸à¸à¸µà¹à¸«à¸²à¸£à¸à¹à¸§à¸¢ ${i.divisor} à¹à¸à¹à¸¥à¸à¸à¸±à¸§`;case"unrecognized_keys":return`à¸à¸à¸à¸µà¸¢à¹à¸à¸µà¹à¹à¸¡à¹à¸£à¸¹à¹à¸à¸±à¸: ${eG(i.keys,", ")}`;case"invalid_key":return`à¸à¸µà¸¢à¹à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸à¹à¸ ${i.origin}`;case"invalid_union":return"à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¹à¸¡à¹à¸à¸£à¸à¸à¸±à¸à¸£à¸¹à¸à¹à¸à¸à¸¢à¸¹à¹à¸à¸µà¸¢à¸à¸à¸µà¹à¸à¸³à¸«à¸à¸à¹à¸§à¹";case"invalid_element":return`à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸à¹à¸ ${i.origin}`;default:return"à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸"}})}},"tr",0,function(){let e,t,r;return{localeError:(e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öÄe",verb:"olmalı"},set:{unit:"öÄe",verb:"olmalı"}},t={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralıÄı",cidrv6:"IPv6 aralıÄı",base64:"base64 ile ÅifrelenmiÅ metin",base64url:"base64url ile ÅifrelenmiÅ metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Åablon dizesi"},r={nan:"NaN"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Ge\xe7ersiz deÄer: beklenen instanceof ${i.expected}, alınan ${n}`;return`Ge\xe7ersiz deÄer: beklenen ${e}, alınan ${n}`}case"invalid_value":if(1===i.values.length)return`Ge\xe7ersiz deÄer: beklenen ${to(i.values[0])}`;return`Ge\xe7ersiz se\xe7enek: aÅaÄıdakilerden biri olmalı: ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`\xc7ok b\xfcy\xfck: beklenen ${i.origin??"deÄer"} ${t}${i.maximum.toString()} ${r.unit??"öÄe"}`;return`\xc7ok b\xfcy\xfck: beklenen ${i.origin??"deÄer"} ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`\xc7ok k\xfc\xe7\xfck: beklenen ${i.origin} ${t}${i.minimum.toString()} ${r.unit}`;return`\xc7ok k\xfc\xe7\xfck: beklenen ${i.origin} ${t}${i.minimum.toString()}`}
77case"invalid_format":if("starts_with"===i.format)return`Ge\xe7ersiz metin: "${i.prefix}" ile baÅlamalı`;if("ends_with"===i.format)return`Ge\xe7ersiz metin: "${i.suffix}" ile bitmeli`;if("includes"===i.format)return`Ge\xe7ersiz metin: "${i.includes}" i\xe7ermeli`;if("regex"===i.format)return`Ge\xe7ersiz metin: ${i.pattern} desenine uymalı`;return`Ge\xe7ersiz ${t[i.format]??i.format}`;case"not_multiple_of":return`Ge\xe7ersiz sayı: ${i.divisor} ile tam b\xf6l\xfcnebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${i.keys.length>1?"lar":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xe7inde ge\xe7ersiz anahtar`;case"invalid_union":default:return"Geçersiz deÄer";case"invalid_element":return`${i.origin} i\xe7inde ge\xe7ersiz deÄer`}})}},"ua",0,function(){return ua()},"uk",0,ua,"ur",0,function(){let e,t,r;return{localeError:(e={string:{unit:"ØØ±ÙÙ",verb:"ÛÙÙØ§"},file:{unit:"بائٹس",verb:"ÛÙÙØ§"},array:{unit:"آئٹÙ
ز",verb:"ÛÙÙØ§"},set:{unit:"آئٹÙ
ز",verb:"ÛÙÙØ§"}},t={regex:"ا٠پٹ",email:"Ø§Û Ù
Û٠اÛÚØ±Ûس",url:"Û٠آر اÛÙ",emoji:"اÛÙ
ÙØ¬Û",uuid:"ÛÙ ÛÙ Ø¢Ø¦Û ÚÛ",uuidv4:"ÛÙ ÛÙ Ø¢Ø¦Û ÚÛ ÙÛ 4",uuidv6:"ÛÙ ÛÙ Ø¢Ø¦Û ÚÛ ÙÛ 6",nanoid:"ÙÛÙÙ Ø¢Ø¦Û ÚÛ",guid:"Ø¬Û ÛÙ Ø¢Ø¦Û ÚÛ",cuid:"Ø³Û ÛÙ Ø¢Ø¦Û ÚÛ",cuid2:"Ø³Û ÛÙ Ø¢Ø¦Û ÚÛ 2",ulid:"Û٠اÛÙ Ø¢Ø¦Û ÚÛ",xid:"اÛکس Ø¢Ø¦Û ÚÛ",ksuid:"Ú©Û Ø§ÛØ³ ÛÙ Ø¢Ø¦Û ÚÛ",datetime:"Ø¢Ø¦Û Ø§ÛØ³ ا٠ÚÛÙ¹ ٹائÙ
",date:"Ø¢Ø¦Û Ø§ÛØ³ Ø§Ù ØªØ§Ø±ÛØ®",time:"Ø¢Ø¦Û Ø§ÛØ³ ا٠ÙÙØª",duration:"Ø¢Ø¦Û Ø§ÛØ³ ا٠Ù
دت",ipv4:"Ø¢Ø¦Û Ù¾Û ÙÛ 4 اÛÚØ±Ûس",ipv6:"Ø¢Ø¦Û Ù¾Û ÙÛ 6 اÛÚØ±Ûس",cidrv4:"Ø¢Ø¦Û Ù¾Û ÙÛ 4 رÛÙØ¬",cidrv6:"Ø¢Ø¦Û Ù¾Û ÙÛ 6 رÛÙØ¬",base64:"Ø¨ÛØ³ 64 ا٠کÙÚÚ Ø³Ù¹Ø±ÙÚ¯",base64url:"Ø¨ÛØ³ 64 Û٠آر اÛ٠ا٠کÙÚÚ Ø³Ù¹Ø±ÙÚ¯",json_string:"Ø¬Û Ø§ÛØ³ ا٠اÛ٠سٹرÙÚ¯",e164:"Ø§Û 164 ÙÙ
بر",jwt:"Ø¬Û ÚØ¨ÙÛÙ Ù¹Û",template_literal:"ا٠پٹ"},r={nan:"NaN",number:"ÙÙ
بر",array:"آرÛ",null:"ÙÙ"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`ØºÙØ· ا٠پٹ: instanceof ${i.expected} Ù
تÙÙØ¹ ØªÚ¾Ø§Ø ${n} Ù
ÙØµÙÙ ÛÙØ§`;return`ØºÙØ· ا٠پٹ: ${e} Ù
تÙÙØ¹ ØªÚ¾Ø§Ø ${n} Ù
ÙØµÙÙ ÛÙØ§`}case"invalid_value":if(1===i.values.length)return`ØºÙØ· ا٠پٹ: ${to(i.values[0])} Ù
تÙÙØ¹ تھا`;return`ØºÙØ· آپشÙ: ${eG(i.values,"|")} Ù
ÛÚº Ø³Û Ø§ÛÚ© Ù
تÙÙØ¹ تھا`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Ø¨ÛØª Ø¨ÚØ§: ${i.origin??"ÙÛÙÛÙ"} Ú©Û ${t}${i.maximum.toString()} ${r.unit??"Ø¹ÙØ§ØµØ±"} ÛÙÙÛ Ù
تÙÙØ¹ تھÛ`;return`Ø¨ÛØª Ø¨ÚØ§: ${i.origin??"ÙÛÙÛÙ"} کا ${t}${i.maximum.toString()} ÛÙÙØ§ Ù
تÙÙØ¹ تھا`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Ø¨ÛØª ÚÚ¾Ùٹا: ${i.origin} Ú©Û ${t}${i.minimum.toString()} ${r.unit} ÛÙÙÛ Ù
تÙÙØ¹ تھÛ`;return`Ø¨ÛØª ÚÚ¾Ùٹا: ${i.origin} کا ${t}${i.minimum.toString()} ÛÙÙØ§ Ù
تÙÙØ¹ تھا`}case"invalid_format":if("starts_with"===i.format)return`ØºÙØ· سٹرÙÚ¯: "${i.prefix}" Ø³Û Ø´Ø±ÙØ¹ ÛÙÙØ§ ÚØ§ÛÛÛ`;if("ends_with"===i.format)return`ØºÙØ· سٹرÙÚ¯: "${i.suffix}" پر ختÙ
ÛÙÙØ§ ÚØ§ÛÛÛ`;if("includes"===i.format)return`ØºÙØ· سٹرÙÚ¯: "${i.includes}" شاÙ
Ù ÛÙÙØ§ ÚØ§ÛÛÛ`;if("regex"===i.format)return`ØºÙØ· سٹرÙÚ¯: Ù¾Ûٹر٠${i.pattern} Ø³Û Ù
ÛÚ ÛÙÙØ§ ÚØ§ÛÛÛ`;return`ØºÙØ· ${t[i.format]??i.format}`;case"not_multiple_of":return`ØºÙØ· ÙÙ
بر: ${i.divisor} کا Ù
ضاع٠ÛÙÙØ§ ÚØ§ÛÛÛ`;case"unrecognized_keys":return`ØºÛØ± تسÙÛÙ
Ø´Ø¯Û Ú©Û${i.keys.length>1?"ز":""}: ${eG(i.keys,"Ø ")}`;case"invalid_key":return`${i.origin} Ù
ÛÚº ØºÙØ· Ú©Û`;case"invalid_union":default:return"ØºÙØ· ا٠پٹ";case"invalid_element":return`${i.origin} Ù
ÛÚº ØºÙØ· ÙÛÙÛÙ`}})}},"uz",0,function(){let e,t,r;return{localeError:(e={string:{unit:"belgi",verb:"boâlishi kerak"},file:{unit:"bayt",verb:"boâlishi kerak"},array:{unit:"element",verb:"boâlishi kerak"},set:{unit:"element",verb:"boâlishi kerak"},map:{unit:"yozuv",verb:"boâlishi kerak"}},t={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},r={nan:"NaN",number:"raqam",array:"massiv"},i=>
77{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Notoâgâri kirish: kutilgan instanceof ${i.expected}, qabul qilingan ${n}`;return`Notoâgâri kirish: kutilgan ${e}, qabul qilingan ${n}`}case"invalid_value":if(1===i.values.length)return`Notoâgâri kirish: kutilgan ${to(i.values[0])}`;return`Notoâgâri variant: quyidagilardan biri kutilgan ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Juda katta: kutilgan ${i.origin??"qiymat"} ${t}${i.maximum.toString()} ${r.unit} ${r.verb}`;return`Juda katta: kutilgan ${i.origin??"qiymat"} ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Juda kichik: kutilgan ${i.origin} ${t}${i.minimum.toString()} ${r.unit} ${r.verb}`;return`Juda kichik: kutilgan ${i.origin} ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Notoâgâri satr: "${i.prefix}" bilan boshlanishi kerak`;if("ends_with"===i.format)return`Notoâgâri satr: "${i.suffix}" bilan tugashi kerak`;if("includes"===i.format)return`Notoâgâri satr: "${i.includes}" ni oâz ichiga olishi kerak`;if("regex"===i.format)return`Notoâgâri satr: ${i.pattern} shabloniga mos kelishi kerak`;return`Notoâgâri ${t[i.format]??i.format}`;case"not_multiple_of":return`Notoâgâri raqam: ${i.divisor} ning karralisi boâlishi kerak`;case"unrecognized_keys":return`Nomaâlum kalit${i.keys.length>1?"lar":""}: ${eG(i.keys,", ")}`;case"invalid_key":return`${i.origin} dagi kalit notoâgâri`;case"invalid_union":default:return"Notoâgâri kirish";case"invalid_element":return`${i.origin} da notoâgâri qiymat`}})}},"vi",0,function(){let e,t,r;return{localeError:(e={string:{unit:"ký tá»±",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tá»",verb:"có"},set:{unit:"phần tá»",verb:"có"}},t={regex:"Äầu và o",email:"Äá»a chá» email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngà y giá» ISO",date:"ngà y ISO",time:"giá» ISO",duration:"khoảng thá»i gian ISO",ipv4:"Äá»a chá» IPv4",ipv6:"Äá»a chá» IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuá»i mã hóa base64",base64url:"chuá»i mã hóa base64url",json_string:"chuá»i JSON",e164:"sá» E.164",jwt:"JWT",template_literal:"Äầu và o"},r={nan:"NaN",number:"sá»",array:"mảng"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`Äầu v\xe0o kh\xf4ng hợp lá»: mong Äợi instanceof ${i.expected}, nháºn ÄÆ°á»£c ${n}`;return`Äầu v\xe0o kh\xf4ng hợp lá»: mong Äợi ${e}, nháºn ÄÆ°á»£c ${n}`}case"invalid_value":if(1===i.values.length)return`Äầu v\xe0o kh\xf4ng hợp lá»: mong Äợi ${to(i.values[0])}`;return`T\xf9y chá»n kh\xf4ng hợp lá»: mong Äợi má»t trong c\xe1c gi\xe1 trá» ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`Qu\xe1 lá»n: mong Äợi ${i.origin??"giá trá»"} ${r.verb} ${t}${i.maximum.toString()} ${r.unit??"phần tá»"}`;return`Qu\xe1 lá»n: mong Äợi ${i.origin??"giá trá»"} ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`Qu\xe1 nhá»: mong Äợi ${i.origin} ${r.verb} ${t}${i.minimum.toString()} ${r.unit}`;return`Qu\xe1 nhá»: mong Äợi ${i.origin} ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Chuá»i kh\xf4ng hợp lá»: phải bắt Äầu bằng "${i.prefix}"`;if("ends_with"===i.format)return`Chuá»i kh\xf4ng hợp lá»: phải kết th\xfac bằng "${i.suffix}"`;if("includes"===i.format)return`Chuá»i kh\xf4ng hợp lá»: phải bao gá»m "${i.includes}"`;if("regex"===i.format)return`Chuá»i kh\xf4ng hợp lá»: phải khá»p vá»i mẫu ${i.pattern}`;return`${t[i.format]??i.format} kh\xf4ng hợp lá»`;case"not_multiple_of":return`Sá» kh\xf4ng hợp lá»: phải l\xe0 bá»i sá» cá»§a ${i.divisor}`;case"unrecognized_keys":return`Kh\xf3a kh\xf4ng ÄÆ°á»£c nháºn dạng: ${eG(i.keys,", ")}`;
77case"invalid_key":return`Kh\xf3a kh\xf4ng hợp lá» trong ${i.origin}`;case"invalid_union":default:return"Äầu và o không hợp lá»";case"invalid_element":return`Gi\xe1 trá» kh\xf4ng hợp lá» trong ${i.origin}`}})}},"yo",0,function(){let e,t,r;return{localeError:(e={string:{unit:"à mi",verb:"nÃ"},file:{unit:"bytes",verb:"nÃ"},array:{unit:"nkan",verb:"nÃ"},set:{unit:"nkan",verb:"nÃ"}},t={regex:"ẹÌrỠìbáwá»lé",email:"à dÃrẹÌsì ìmẹÌlì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"à kókò ISO",date:"á»já»Ì ISO",time:"à kókò ISO",duration:"à kókò tó pé ISO",ipv4:"à dÃrẹÌsì IPv4",ipv6:"à dÃrẹÌsì IPv6",cidrv4:"à gbègbè IPv4",cidrv6:"à gbègbè IPv6",base64:"á»Ìrá»Ì tà a ká»Ì nà base64",base64url:"á»Ìrá»Ì base64url",json_string:"á»Ìrá»Ì JSON",e164:"ná»Ìmbà E.164",jwt:"JWT",template_literal:"ẹÌrỠìbáwá»lé"},r={nan:"NaN",number:"ná»Ìmbà ",array:"akopá»"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`\xccb\xe1wá»l\xe9 aá¹£\xecá¹£e: a n\xed l\xe1ti fi instanceof ${i.expected}, \xe0má»Ì a r\xed ${n}`;return`\xccb\xe1wá»l\xe9 aá¹£\xecá¹£e: a n\xed l\xe1ti fi ${e}, \xe0má»Ì a r\xed ${n}`}case"invalid_value":if(1===i.values.length)return`\xccb\xe1wá»l\xe9 aá¹£\xecá¹£e: a n\xed l\xe1ti fi ${to(i.values[0])}`;return`\xc0á¹£\xe0y\xe0n aá¹£\xecá¹£e: yan á»Ìkan l\xe1ra ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`T\xf3 pá»Ì j\xf9: a n\xed l\xe1ti jáº¹Ì p\xe9 ${i.origin??"iye"} ${r.verb} ${t}${i.maximum} ${r.unit}`;return`T\xf3 pá»Ì j\xf9: a n\xed l\xe1ti jáº¹Ì ${t}${i.maximum}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`K\xe9r\xe9 ju: a n\xed l\xe1ti jáº¹Ì p\xe9 ${i.origin} ${r.verb} ${t}${i.minimum} ${r.unit}`;return`K\xe9r\xe9 ju: a n\xed l\xe1ti jáº¹Ì ${t}${i.minimum}`}case"invalid_format":if("starts_with"===i.format)return`á»Ìrá»Ì aá¹£\xecá¹£e: gbá»Ìdá»Ì bẹÌráº¹Ì pẹÌl\xfa "${i.prefix}"`;if("ends_with"===i.format)return`á»Ìrá»Ì aá¹£\xecá¹£e: gbá»Ìdá»Ì par\xed pẹÌl\xfa "${i.suffix}"`;if("includes"===i.format)return`á»Ìrá»Ì aá¹£\xecá¹£e: gbá»Ìdá»Ì n\xed "${i.includes}"`;if("regex"===i.format)return`á»Ìrá»Ì aá¹£\xecá¹£e: gbá»Ìdá»Ì b\xe1 \xe0pẹẹrẹ mu ${i.pattern}`;return`Aá¹£\xecá¹£e: ${t[i.format]??i.format}`;case"not_multiple_of":return`Ná»Ìmb\xe0 aá¹£\xecá¹£e: gbá»Ìdá»Ì jáº¹Ì \xe8y\xe0 p\xedp\xedn ti ${i.divisor}`;case"unrecognized_keys":return`Bá»t\xecn\xec \xe0\xecmá»Ì: ${eG(i.keys,", ")}`;case"invalid_key":return`Bá»t\xecn\xec aá¹£\xecá¹£e n\xedn\xfa ${i.origin}`;case"invalid_union":default:return"Ãbáwá»lé aṣìṣe";case"invalid_element":return`Iye aá¹£\xecá¹£e n\xedn\xfa ${i.origin}`}})}},"zhCN",0,function(){let e,t,r;return{localeError:(e={string:{unit:"å符",verb:"å
å«"},file:{unit:"åè",verb:"å
å«"},array:{unit:"项",verb:"å
å«"},set:{unit:"项",verb:"å
å«"}},t={regex:"è¾å
¥",email:"çµåé®ä»¶",url:"URL",emoji:"表æ
符å·",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISOæ¥ææ¶é´",date:"ISOæ¥æ",time:"ISOæ¶é´",duration:"ISOæ¶é¿",ipv4:"IPv4å°å",ipv6:"IPv6å°å",cidrv4:"IPv4ç½æ®µ",cidrv6:"IPv6ç½æ®µ",base64:"base64ç¼ç å符串",base64url:"base64urlç¼ç å符串",json_string:"JSONå符串",e164:"E.164å·ç ",jwt:"JWT",template_literal:"è¾å
¥"},r={nan:"NaN",number:"æ°å",array:"æ°ç»",null:"空å¼(null)"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`æ æè¾å
¥ï¼ææ instanceof ${i.expected}ï¼å®é
æ¥æ¶ ${n}`;return`æ æè¾å
¥ï¼ææ ${e}ï¼å®é
æ¥æ¶ ${n}`}case"invalid_value":if(1===i.values.length)return`æ æè¾å
¥ï¼ææ ${to(i.values[0])}`;return`æ æéé¡¹ï¼ææä»¥ä¸ä¹ä¸ ${eG(i.values,"|")}`;
77case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`æ°å¼è¿å¤§ï¼ææ ${i.origin??"å¼"} ${t}${i.maximum.toString()} ${r.unit??"个å
ç´ "}`;return`æ°å¼è¿å¤§ï¼ææ ${i.origin??"å¼"} ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`æ°å¼è¿å°ï¼ææ ${i.origin} ${t}${i.minimum.toString()} ${r.unit}`;return`æ°å¼è¿å°ï¼ææ ${i.origin} ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`æ æå符串ï¼å¿
须以 "${i.prefix}" å¼å¤´`;if("ends_with"===i.format)return`æ æå符串ï¼å¿
须以 "${i.suffix}" ç»å°¾`;if("includes"===i.format)return`æ æå符串ï¼å¿
é¡»å
å« "${i.includes}"`;if("regex"===i.format)return`æ æå符串ï¼å¿
须满足æ£åè¡¨è¾¾å¼ ${i.pattern}`;return`æ æ${t[i.format]??i.format}`;case"not_multiple_of":return`æ ææ°åï¼å¿
é¡»æ¯ ${i.divisor} çåæ°`;case"unrecognized_keys":return`åºç°æªç¥çé®(key): ${eG(i.keys,", ")}`;case"invalid_key":return`${i.origin} ä¸çé®(key)æ æ`;case"invalid_union":default:return"æ æè¾å
¥";case"invalid_element":return`${i.origin} ä¸å
嫿 æå¼(value)`}})}},"zhTW",0,function(){let e,t,r;return{localeError:(e={string:{unit:"åå
",verb:"ææ"},file:{unit:"ä½å
çµ",verb:"ææ"},array:{unit:"é
ç®",verb:"ææ"},set:{unit:"é
ç®",verb:"ææ"}},t={regex:"輸å
¥",email:"éµä»¶å°å",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO æ¥ææé",date:"ISO æ¥æ",time:"ISO æé",duration:"ISO æé",ipv4:"IPv4 ä½å",ipv6:"IPv6 ä½å",cidrv4:"IPv4 ç¯å",cidrv6:"IPv6 ç¯å",base64:"base64 編碼å串",base64url:"base64url 編碼å串",json_string:"JSON å串",e164:"E.164 æ¸å¼",jwt:"JWT",template_literal:"輸å
¥"},r={nan:"NaN"},i=>{switch(i.code){case"invalid_type":{let e=r[i.expected]??i.expected,t=tv(i.input),n=r[t]??t;if(/^[A-Z]/.test(i.expected))return`ç¡æç輸å
¥å¼ï¼é æçº instanceof ${i.expected}ï¼ä½æ¶å° ${n}`;return`ç¡æç輸å
¥å¼ï¼é æçº ${e}ï¼ä½æ¶å° ${n}`}case"invalid_value":if(1===i.values.length)return`ç¡æç輸å
¥å¼ï¼é æçº ${to(i.values[0])}`;return`ç¡æçé¸é
ï¼é æçºä»¥ä¸å
¶ä¸ä¹ä¸ ${eG(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",r=e[i.origin]??null;if(r)return`æ¸å¼é大ï¼é æ ${i.origin??"å¼"} æçº ${t}${i.maximum.toString()} ${r.unit??"åå
ç´ "}`;return`æ¸å¼é大ï¼é æ ${i.origin??"å¼"} æçº ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",r=e[i.origin]??null;if(r)return`æ¸å¼éå°ï¼é æ ${i.origin} æçº ${t}${i.minimum.toString()} ${r.unit}`;return`æ¸å¼éå°ï¼é æ ${i.origin} æçº ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`ç¡æçå串ï¼å¿
é 以 "${i.prefix}" éé `;if("ends_with"===i.format)return`ç¡æçå串ï¼å¿
é 以 "${i.suffix}" çµå°¾`;if("includes"===i.format)return`ç¡æçå串ï¼å¿
é å
å« "${i.includes}"`;if("regex"===i.format)return`ç¡æçå串ï¼å¿
é ç¬¦åæ ¼å¼ ${i.pattern}`;return`ç¡æç ${t[i.format]??i.format}`;case"not_multiple_of":return`ç¡æçæ¸åï¼å¿
é çº ${i.divisor} ç忏`;case"unrecognized_keys":return`ç¡æ³èå¥çéµå¼${i.keys.length>1?"å":""}ï¼${eG(i.keys,"ã")}`;case"invalid_key":return`${i.origin} ä¸æç¡æçéµå¼`;case"invalid_union":default:return"ç¡æç輸å
¥å¼";case"invalid_element":return`${i.origin} ä¸æç¡æçå¼`}})}}],54580);var uo=e.i(54580);function us(e,t){return new e({type:"string",...ta(t)})}function uu(e,t){return new e({type:"string",coerce:!0,...ta(t)})}function ul(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ta(t)})}function ud(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ta(t)})}function uc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ta(t)})}function up(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ta(t)})}function uf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ta(t)})}function um(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ta(t)})}function uh(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ta(t)})}function ug(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ta(t)})}function uv(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ta(t)})}function uy(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ta(t)})}function u_(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ta(t)})}function ub(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ta(t)})}function u$(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ta(t)})}function ux(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ta(t)})}function uk(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ta(t)})}function uw(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ta(t)})}function uI(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...ta(t)})}function uS(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ta(t)})}function uE(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ta(t)})}function uO(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ta(t)})}function uZ(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ta(t)})}function uz(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ta(t)})}function uj(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ta(t)})}e.i(25527),e.i(98530);let uT={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function uU(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ta(t)})}function uN(e,t){return new e({type:"string",format:"date",check:"string_format",...ta(t)})}function uA(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ta(t)})}function uP(e,t){return new e({type:"string",format:"duration",check:"string_format",...ta(t)})}function uD(e,t){return new e({type:"number",checks:[],...ta(t)})}function uC(e,t){return new e({type:"number",coerce:!0,checks:[],...ta(t)})}function uR(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ta(t)})}function uM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ta(t)})}function uL(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ta(t)})}function uF(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ta(t)})}function uJ(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ta(t)})}function uB(e,t){return new e({type:"boolean",...ta(t)})}function uV(e,t){return new e({type:"boolean",coerce:!0,...ta(t)})}function uW(e,t){return new e({type:"bigint",...ta(t)})}function uq(e,t){return new e({type:"bigint",coerce:!0,...ta(t)})}function uG(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ta(t)})}function uK(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ta(t)})}function uX(e,t){return new e({type:"symbol",...ta(t)})}function uY(e,t){return new e({type:"undefined",...ta(t)})}function uH(e,t){return new e({type:"null",...ta(t)})}function uQ(e){return new e({type:"any"})}function u0(e){return new e({type:"unknown"})}function u1(e,t){return new e({type:"never",...ta(t)})}function u4(e,t){return new e({type:"void",...ta(t)})}function u6(e,t){return new e({type:"date",...ta(t)})}function u2(e,t){return new e({type:"date",coerce:!0,...ta(t)})}function u9(e,t){return new e({type:"nan",...ta(t)})}function u5(e,t){return new oi({check:"less_than",...ta(t),value:e,inclusive:!1})}function u3(e,t){return new oi({check:"less_than",...ta(t),value:e,inclusive:!0})}function u8(e,t){return new on({check:"greater_than",...ta(t),value:e,inclusive:!1})}function u7(e,t){return new on({check:"greater_than",...ta(t),value:e,inclusive:!0})}function le(e){return u8(0,e)}function lt(e){return u5(0,e)}function lr(e){return u3(0,e)}function li(e){return u7(0,e)}function ln(e,t){return new oa({check:"multiple_of",...ta(t),value:e})}function la(e,t){return new ou({check:"max_size",...ta(t),maximum:e})}function lo(e,t){return new ol({check:"min_size",...ta(t),minimum:e})}function ls(e,t){return new od({check:"size_equals",...ta(t),size:e})}function lu(e,t){return new oc({check:"max_length",...ta(t),maximum:e})}function ll(e,t){return new op({check:"min_length",...ta(t),minimum:e})}function ld(e,t){return new of({check:"length_equals",...ta(t),length:e})}function lc(e,t){return new oh({check:"string_format",format:"regex",...ta(t),pattern:e})}function lp(e){return new og({check:"string_format",format:"lowercase",...ta(e)})}
77function lf(e){return new ov({check:"string_format",format:"uppercase",...ta(e)})}function lm(e,t){return new oy({check:"string_format",format:"includes",...ta(t),includes:e})}function lh(e,t){return new o_({check:"string_format",format:"starts_with",...ta(t),prefix:e})}function lg(e,t){return new ob({check:"string_format",format:"ends_with",...ta(t),suffix:e})}function lv(e,t,r){return new ox({check:"property",property:e,schema:t,...ta(r)})}function ly(e,t){return new ok({check:"mime_type",mime:e,...ta(t)})}function l_(e){return new ow({check:"overwrite",tx:e})}function lb(e){return l_(t=>t.normalize(e))}function l$(){return l_(e=>e.trim())}function lx(){return l_(e=>e.toLowerCase())}function lk(){return l_(e=>e.toUpperCase())}function lw(){return l_(e=>e9(e))}function lI(e,t,r){return new e({type:"array",element:t,...ta(r)})}function lS(e,t,r){return new e({type:"union",options:t,...ta(r)})}function lE(e,t,r){return new e({type:"union",options:t,inclusive:!1,...ta(r)})}function lO(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...ta(i)})}function lZ(e,t,r){return new e({type:"intersection",left:t,right:r})}function lz(e,t,r,i){let n=r instanceof oE,a=n?i:r;return new e({type:"tuple",items:t,rest:n?r:null,...ta(a)})}function lj(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...ta(i)})}function lT(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...ta(i)})}function lU(e,t,r){return new e({type:"set",valueType:t,...ta(r)})}function lN(e,t,r){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...ta(r)})}function lA(e,t,r){return new e({type:"enum",entries:t,...ta(r)})}function lP(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...ta(r)})}function lD(e,t){return new e({type:"file",...ta(t)})}function lC(e,t){return new e({type:"transform",transform:t})}function lR(e,t){return new e({type:"optional",innerType:t})}function lM(e,t){return new e({type:"nullable",innerType:t})}function lL(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof r?r():te(r)}})}function lF(e,t,r){return new e({type:"nonoptional",innerType:t,...ta(r)})}function lJ(e,t){return new e({type:"success",innerType:t})}function lB(e,t,r){return new e({type:"catch",innerType:t,catchValue:"function"==typeof r?r:()=>r})}function lV(e,t,r){return new e({type:"pipe",in:t,out:r})}function lW(e,t){return new e({type:"readonly",innerType:t})}function lq(e,t,r){return new e({type:"template_literal",parts:t,...ta(r)})}function lG(e,t){return new e({type:"lazy",getter:t})}function lK(e,t){return new e({type:"promise",innerType:t})}function lX(e,t,r){let i=ta(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function lY(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ta(r)})}function lH(e,t){let r=lQ(t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(ty(e,t.value,r._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=t.value),e.inst??(e.inst=r),e.continue??(e.continue=!r._zod.def.abort),t.issues.push(ty(e)))},e(t.value,t)),t);return r}function lQ(e,t){let r=new ot({check:"custom",...ta(t)});return r._zod.check=e,r}function l0(e){let t=new ot({check:"describe"});return t._zod.onattach=[t=>{let r=ru.get(t)??{};ru.add(t,{...r,description:e})}],t._zod.check=()=>{},t}function l1(e){let t=new ot({check:"meta"});return t._zod.onattach=[t=>{let r=ru.get(t)??{};ru.add(t,{...r,...e})}],t._zod.check=()=>{},t}function l4(e,t){let r=ta(t),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];"sensitive"!==r.case&&(i=i.map(e=>"string"==typeof e?e.toLowerCase():e),n=n.map(e=>"string"==typeof e?e.toLowerCase():e));let a=new Set(i),o=new Set(n),s=e.Codec??sG,u=e.Boolean??o5,l=new s({type:"pipe",in:new(e.String??oO)({type:"string",error:r.error}),out:new u({type:"boolean",error:r.error}),transform:(e,t)=>{let i=e;return"sensitive"!==r.case&&(i=i.toLowerCase()),!!a.has(i)||!o.has(i)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input
77:t.value,inst:l,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?i[0]||"true":n[0]||"false",error:r.error});return l}function l6(e,t,r,i={}){let n=ta(i),a={...ta(i),check:"string_format",type:"string",format:t,fn:"function"==typeof r?r:e=>r.test(e),...n};return r instanceof RegExp&&(a.pattern=r),new e(a)}e.s(["TimePrecision",0,uT,"_any",0,uQ,"_array",0,lI,"_base64",0,uO,"_base64url",0,uZ,"_bigint",0,uW,"_boolean",0,uB,"_catch",0,lB,"_check",0,lQ,"_cidrv4",0,uS,"_cidrv6",0,uE,"_coercedBigint",0,uq,"_coercedBoolean",0,uV,"_coercedDate",0,u2,"_coercedNumber",0,uC,"_coercedString",0,uu,"_cuid",0,uy,"_cuid2",0,u_,"_custom",0,lX,"_date",0,u6,"_default",0,lL,"_discriminatedUnion",0,lO,"_e164",0,uz,"_email",0,ul,"_emoji",0,ug,"_endsWith",0,lg,"_enum",0,lN,"_file",0,lD,"_float32",0,uM,"_float64",0,uL,"_gt",0,u8,"_gte",0,u7,"_guid",0,ud,"_includes",0,lm,"_int",0,uR,"_int32",0,uF,"_int64",0,uG,"_intersection",0,lZ,"_ipv4",0,uk,"_ipv6",0,uw,"_isoDate",0,uN,"_isoDateTime",0,uU,"_isoDuration",0,uP,"_isoTime",0,uA,"_jwt",0,uj,"_ksuid",0,ux,"_lazy",0,lG,"_length",0,ld,"_literal",0,lP,"_lowercase",0,lp,"_lt",0,u5,"_lte",0,u3,"_mac",0,uI,"_map",0,lT,"_max",0,u3,"_maxLength",0,lu,"_maxSize",0,la,"_mime",0,ly,"_min",0,u7,"_minLength",0,ll,"_minSize",0,lo,"_multipleOf",0,ln,"_nan",0,u9,"_nanoid",0,uv,"_nativeEnum",0,lA,"_negative",0,lt,"_never",0,u1,"_nonnegative",0,li,"_nonoptional",0,lF,"_nonpositive",0,lr,"_normalize",0,lb,"_null",0,uH,"_nullable",0,lM,"_number",0,uD,"_optional",0,lR,"_overwrite",0,l_,"_pipe",0,lV,"_positive",0,le,"_promise",0,lK,"_property",0,lv,"_readonly",0,lW,"_record",0,lj,"_refine",0,lY,"_regex",0,lc,"_set",0,lU,"_size",0,ls,"_slugify",0,lw,"_startsWith",0,lh,"_string",0,us,"_stringFormat",0,l6,"_stringbool",0,l4,"_success",0,lJ,"_superRefine",0,lH,"_symbol",0,uX,"_templateLiteral",0,lq,"_toLowerCase",0,lx,"_toUpperCase",0,lk,"_transform",0,lC,"_trim",0,l$,"_tuple",0,lz,"_uint32",0,uJ,"_uint64",0,uK,"_ulid",0,ub,"_undefined",0,uY,"_union",0,lS,"_unknown",0,u0,"_uppercase",0,lf,"_url",0,uh,"_uuid",0,uc,"_uuidv4",0,up,"_uuidv6",0,uf,"_uuidv7",0,um,"_void",0,u4,"_xid",0,u$,"_xor",0,lE,"describe",0,l0,"meta",0,l1],50215),e.i(50215),e.i(34966),e.s([],18249);var l2=e.i(18249);e.s(["$ZodAny",0,sr,"$ZodArray",0,su,"$ZodAsyncError",0,eJ,"$ZodBase64",0,oY,"$ZodBase64URL",0,oQ,"$ZodBigInt",0,o3,"$ZodBigIntFormat",0,o8,"$ZodBoolean",0,o5,"$ZodCIDRv4",0,oG,"$ZodCIDRv6",0,oK,"$ZodCUID",0,oP,"$ZodCUID2",0,oD,"$ZodCatch",0,sB,"$ZodCheck",0,ot,"$ZodCheckBigIntFormat",0,os,"$ZodCheckEndsWith",0,ob,"$ZodCheckGreaterThan",0,on,"$ZodCheckIncludes",0,oy,"$ZodCheckLengthEquals",0,of,"$ZodCheckLessThan",0,oi,"$ZodCheckLowerCase",0,og,"$ZodCheckMaxLength",0,oc,"$ZodCheckMaxSize",0,ou,"$ZodCheckMimeType",0,ok,"$ZodCheckMinLength",0,op,"$ZodCheckMinSize",0,ol,"$ZodCheckMultipleOf",0,oa,"$ZodCheckNumberFormat",0,oo,"$ZodCheckOverwrite",0,ow,"$ZodCheckProperty",0,ox,"$ZodCheckRegex",0,oh,"$ZodCheckSizeEquals",0,od,"$ZodCheckStartsWith",0,o_,"$ZodCheckStringFormat",0,om,"$ZodCheckUpperCase",0,ov,"$ZodCodec",0,sG,"$ZodCustom",0,s2,"$ZodCustomStringFormat",0,o6,"$ZodDate",0,so,"$ZodDefault",0,sC,"$ZodDiscriminatedUnion",0,sy,"$ZodE164",0,o0,"$ZodEmail",0,oT,"$ZodEmoji",0,oN,"$ZodEncodeError",0,eB,"$ZodEnum",0,sz,"$ZodError",0,tx,"$ZodExactOptional",0,sP,"$ZodFile",0,sT,"$ZodFunction",0,s1,"$ZodGUID",0,oz,"$ZodIPv4",0,oV,"$ZodIPv6",0,oW,"$ZodISODate",0,oF,"$ZodISODateTime",0,oL,"$ZodISODuration",0,oB,"$ZodISOTime",0,oJ,"$ZodIntersection",0,s_,"$ZodJWT",0,o4,"$ZodKSUID",0,oM,"$ZodLazy",0,s6,"$ZodLiteral",0,sj,"$ZodMAC",0,oq,"$ZodMap",0,sS,"$ZodNaN",0,sV,"$ZodNanoID",0,oA,"$ZodNever",0,sn,"$ZodNonOptional",0,sL,"$ZodNull",0,st,"$ZodNullable",0,sD,"$ZodNumber",0,o2,"$ZodNumberFormat",0,o9,"$ZodObject",0,sp,"$ZodObjectJIT",0,sf,"$ZodOptional",0,sA,"$ZodPipe",0,sW,"$ZodPrefault",0,sM,"$ZodPreprocess",0,sY,"$ZodPromise",0,s4,"$ZodReadonly",0,sH,"$ZodRealError",0,tk,"$ZodRecord",0,sI,"$ZodRegistry",0,ro,"$ZodSet",0,sO,"$ZodString",0,oO,"$ZodStringFormat",0,oZ,"$ZodSuccess",0,sJ,"$ZodSymbol",0,o7,"$ZodTemplateLiteral",0,s0,"$ZodTransform",0,sU,"$ZodTuple",0,s$,"$ZodT
77ype",0,oE,"$ZodULID",0,oC,"$ZodURL",0,oU,"$ZodUUID",0,oj,"$ZodUndefined",0,se,"$ZodUnion",0,sh,"$ZodUnknown",0,si,"$ZodVoid",0,sa,"$ZodXID",0,oR,"$ZodXor",0,sv,"$brand",0,eF,"$constructor",0,eL,"$input",0,ra,"$output",0,rn,"Doc",0,oI,"JSONSchema",0,l2,"JSONSchemaGenerator",0,class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),this.ctx=rl({processors:r1,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return rd(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),rc(this.ctx,e);let{"~standard":r,...i}=rp(this.ctx,e);return i}},"NEVER",0,eM,"TimePrecision",0,uT,"_any",0,uQ,"_array",0,lI,"_base64",0,uO,"_base64url",0,uZ,"_bigint",0,uW,"_boolean",0,uB,"_catch",0,lB,"_check",0,lQ,"_cidrv4",0,uS,"_cidrv6",0,uE,"_coercedBigint",0,uq,"_coercedBoolean",0,uV,"_coercedDate",0,u2,"_coercedNumber",0,uC,"_coercedString",0,uu,"_cuid",0,uy,"_cuid2",0,u_,"_custom",0,lX,"_date",0,u6,"_decode",0,tR,"_decodeAsync",0,tJ,"_default",0,lL,"_discriminatedUnion",0,lO,"_e164",0,uz,"_email",0,ul,"_emoji",0,ug,"_encode",0,tD,"_encodeAsync",0,tL,"_endsWith",0,lg,"_enum",0,lN,"_file",0,lD,"_float32",0,uM,"_float64",0,uL,"_gt",0,u8,"_gte",0,u7,"_guid",0,ud,"_includes",0,lm,"_int",0,uR,"_int32",0,uF,"_int64",0,uG,"_intersection",0,lZ,"_ipv4",0,uk,"_ipv6",0,uw,"_isoDate",0,uN,"_isoDateTime",0,uU,"_isoDuration",0,uP,"_isoTime",0,uA,"_jwt",0,uj,"_ksuid",0,ux,"_lazy",0,lG,"_length",0,ld,"_literal",0,lP,"_lowercase",0,lp,"_lt",0,u5,"_lte",0,u3,"_mac",0,uI,"_map",0,lT,"_max",0,u3,"_maxLength",0,lu,"_maxSize",0,la,"_mime",0,ly,"_min",0,u7,"_minLength",0,ll,"_minSize",0,lo,"_multipleOf",0,ln,"_nan",0,u9,"_nanoid",0,uv,"_nativeEnum",0,lA,"_negative",0,lt,"_never",0,u1,"_nonnegative",0,li,"_nonoptional",0,lF,"_nonpositive",0,lr,"_normalize",0,lb,"_null",0,uH,"_nullable",0,lM,"_number",0,uD,"_optional",0,lR,"_overwrite",0,l_,"_parse",0,tZ,"_parseAsync",0,tj,"_pipe",0,lV,"_positive",0,le,"_promise",0,lK,"_property",0,lv,"_readonly",0,lW,"_record",0,lj,"_refine",0,lY,"_regex",0,lc,"_safeDecode",0,tq,"_safeDecodeAsync",0,tY,"_safeEncode",0,tV,"_safeEncodeAsync",0,tK,"_safeParse",0,tU,"_safeParseAsync",0,tA,"_set",0,lU,"_size",0,ls,"_slugify",0,lw,"_startsWith",0,lh,"_string",0,us,"_stringFormat",0,l6,"_stringbool",0,l4,"_success",0,lJ,"_superRefine",0,lH,"_symbol",0,uX,"_templateLiteral",0,lq,"_toLowerCase",0,lx,"_toUpperCase",0,lk,"_transform",0,lC,"_trim",0,l$,"_tuple",0,lz,"_uint32",0,uJ,"_uint64",0,uK,"_ulid",0,ub,"_undefined",0,uY,"_union",0,lS,"_unknown",0,u0,"_uppercase",0,lf,"_url",0,uh,"_uuid",0,uc,"_uuidv4",0,up,"_uuidv6",0,uf,"_uuidv7",0,um,"_void",0,u4,"_xid",0,u$,"_xor",0,lE,"clone",0,tn,"config",0,eW,"createStandardJSONSchemaMethod",0,rm,"createToJSONSchemaMethod",0,rf,"decode",0,tM,"decodeAsync",0,tB,"describe",0,l0,"encode",0,tC,"encodeAsync",0,tF,"extractDefs",0,rc,"finalize",0,rp,"flattenError",0,tw,"formatError",0,tI,"globalConfig",0,eV,"globalRegistry",0,ru,"initializeContext",0,rl,"isValidBase64",0,oX,"isValidBase64URL",0,oH,"isValidJWT",0,o1,"locales",0,uo,"meta",0,l1,"parse",0,tz,"parseAsync",0,tT,"prettifyError",0,tO,"process",0,rd,"regexes",0,s3,"registry",0,rs,"safeDecode",0,tG,"safeDecodeAsync",0,tH,"safeEncode",0,tW,"safeEncodeAsync",0,tX,"safeParse",0,tN,"safeParseAsync",0,tP,"toDotPath",0,tE,"toJSONSchema",0,r4,"treeifyError",0,tS,"util",0,s5,"version",0,oS],12717);var l9=e.i(12717),l5=s3,l3=s5;let l8=eL("ZodISODateTime",(e,t)=>{oL.init(e,t),df.init(e,t)});function l7(e){return uU(l8,e)}let de=eL("ZodISODate",(e,t)=>{oF.init(e,t),df.init(e,t)});function dt(e){return uN(de,e)}let dr=eL("ZodISOTime",(e,t)=>{oJ.init(e,t),df.init(e,t)});function di(e){return uA(dr,e)}let dn=eL("ZodISODuration",(e,t)=>{oB.init(e,t),df.init(e,t)});function da(e){return uP(dn,e)}let ds=new WeakMap;function du(e,t,r){let i=Object.getPrototypeOf(e),n=ds.get(i);if(n||(n=new Set,ds.set(i,n)),!n.has(t))for(let e in n.add(t),r){let t=r[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,get(){let r=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:r}),r},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}let dl=eL("ZodType",(e,t)=>(oE.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:rm(e,"input"),output:rm(e,"output")}}),e.toJSONSchema=rf(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,r)=>t4(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>t2(e,t,r),e.parseAsync=async(t,r)=>t6(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>t9(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>t5(e,t,r),e.decode=(t,r)=>t3(e,t,r),e.encodeAsync=async(t,r)=>t8(e,t,r),e.decodeAsync=async(t,r)=>t7(e,t,r),e.safeEncode=(t,r)=>re(e,t,r),e.safeDecode=(t,r)=>rt(e,t,r),e.safeEncodeAsync=async(t,r)=>rr(e,t,r),e.safeDecodeAsync=async(t,r)=>ri(e,t,r),du(e,"ZodType",{check(...e){let t=this.def;return this.clone(l3.mergeDefs(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)}
77,clone(e,t){return tn(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(pC(e,t))},superRefine(e,t){return this.check(pR(e,t))},overwrite(e){return this.check(l_(e))},optional(){return pt(this)},exactOptional(){return pi(this)},nullable(){return pa(this)},nullish(){return pt(pa(this))},nonoptional(e){return pp(this,e)},array(){return cj(this)},or(e){return cC([this,e])},and(e){return cB(this,e)},transform(e){return pb(this,c7(e))},default(e){return pu(this,e)},prefault(e){return pd(this,e)},catch(e){return pg(this,e)},pipe(e){return pb(this,e)},readonly(){return pS(this)},describe(e){let t=this.clone();return ru.add(t,{description:e}),t},meta(...e){if(0===e.length)return ru.get(this);let t=this.clone();return ru.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get:()=>ru.get(e)?.description,configurable:!0}),e)),dd=eL("_ZodString",(e,t)=>{oO.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rg(e,t,r,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,du(e,"_ZodString",{regex(...e){return this.check(lc(...e))},includes(...e){return this.check(lm(...e))},startsWith(...e){return this.check(lh(...e))},endsWith(...e){return this.check(lg(...e))},min(...e){return this.check(ll(...e))},max(...e){return this.check(lu(...e))},length(...e){return this.check(ld(...e))},nonempty(...e){return this.check(ll(1,...e))},lowercase(e){return this.check(lp(e))},uppercase(e){return this.check(lf(e))},trim(){return this.check(l$())},normalize(...e){return this.check(lb(...e))},toLowerCase(){return this.check(lx())},toUpperCase(){return this.check(lk())},slugify(){return this.check(lw())}})}),dc=eL("ZodString",(e,t)=>{oO.init(e,t),dd.init(e,t),e.email=t=>e.check(ul(dm,t)),e.url=t=>e.check(uh(dk,t)),e.jwt=t=>e.check(uj(d4,t)),e.emoji=t=>e.check(ug(dS,t)),e.guid=t=>e.check(ud(dg,t)),e.uuid=t=>e.check(uc(dy,t)),e.uuidv4=t=>e.check(up(dy,t)),e.uuidv6=t=>e.check(uf(dy,t)),e.uuidv7=t=>e.check(um(dy,t)),e.nanoid=t=>e.check(uv(dO,t)),e.guid=t=>e.check(ud(dg,t)),e.cuid=t=>e.check(uy(dz,t)),e.cuid2=t=>e.check(u_(dT,t)),e.ulid=t=>e.check(ub(dN,t)),e.base64=t=>e.check(uO(dX,t)),e.base64url=t=>e.check(uZ(dH,t)),e.xid=t=>e.check(u$(dP,t)),e.ksuid=t=>e.check(ux(dC,t)),e.ipv4=t=>e.check(uk(dM,t)),e.ipv6=t=>e.check(uw(dB,t)),e.cidrv4=t=>e.check(uS(dW,t)),e.cidrv6=t=>e.check(uE(dG,t)),e.e164=t=>e.check(uz(d0,t)),e.datetime=t=>e.check(l7(t)),e.date=t=>e.check(dt(t)),e.time=t=>e.check(di(t)),e.duration=t=>e.check(da(t))});function dp(e){return us(dc,e)}let df=eL("ZodStringFormat",(e,t)=>{oZ.init(e,t),dd.init(e,t)}),dm=eL("ZodEmail",(e,t)=>{oT.init(e,t),df.init(e,t)});function dh(e){return ul(dm,e)}let dg=eL("ZodGUID",(e,t)=>{oz.init(e,t),df.init(e,t)});function dv(e){return ud(dg,e)}let dy=eL("ZodUUID",(e,t)=>{oj.init(e,t),df.init(e,t)});function d_(e){return uc(dy,e)}function db(e){return up(dy,e)}function d$(e){return uf(dy,e)}function dx(e){return um(dy,e)}let dk=eL("ZodURL",(e,t)=>{oU.init(e,t),df.init(e,t)});function dw(e){return uh(dk,e)}function dI(e){return uh(dk,{protocol:l5.httpProtocol,hostname:l5.domain,...l3.normalizeParams(e)})}let dS=eL("ZodEmoji",(e,t)=>{oN.init(e,t),df.init(e,t)});function dE(e){return ug(dS,e)}let dO=eL("ZodNanoID",(e,t)=>{oA.init(e,t),df.init(e,t)});function dZ(e){return uv(dO,e)}let dz=eL("ZodCUID",(e,t)=>{oP.init(e,t),df.init(e,t)});function dj(e){return uy(dz,e)}let dT=eL("ZodCUID2",(e,t)=>{oD.init(e,t),df.init(e,t)});function dU(e){return u_(dT,e)}let dN=eL("ZodULID",(e,t)=>{oC.init(e,t),df.init(e,t)});function dA(e){return ub(dN,e)}let dP=eL("ZodXID",(e,t)=>{oR.init(e,t),df.init(e,t)});function dD(e){return u$(dP,e)}let dC=eL("ZodKSUID",(e,t)=>{oM.init(e,t),df.init(e,t)});function dR(e){return ux(dC,e)}let dM=eL("ZodIPv4",(e,t)=>{oV.init(e,t),df.init(e,t)});function dL(e){return uk(dM,e)}let dF=eL("ZodMAC",(e,t)=>{oq.init(e,t),df.init(e,t)});function dJ(e){return uI(dF,e)}let dB=eL("ZodIPv6",(e,t)=>{oW.init(e,t),df.init(e,t)});function dV(e){return uw(dB,e)}let dW=eL("ZodCIDRv4",(e,t)=>{oG.init(e,t),df.init(e,t)});function dq(e){return uS(dW,e)}let dG=eL("ZodCIDRv6",(e,t)=>{oK.init(e,t),df.init(e,t)});function dK(e){return uE(dG,e)}let dX=eL("ZodBase64",(e,t)=>{oY.init(e,t),df.init(e,t)});function dY(e){return uO(dX,e)}let dH=eL("ZodBase64URL",(e,t)=>{oQ.init(e,t),df.init(e,t)});function dQ(e){return uZ(dH,e)}let d0=eL("ZodE164",(e,t)=>{o0.init(e,t),df.init(e,t)});function d1(e){return uz(d0,e)}let d4=eL("ZodJWT",(e,t)=>{o4.init(e,t),df.init(e,t)});function d6(e){return uj(d4,e)}let d2=eL("ZodCustomStringFormat",(e,t)=>{o6.init(e,t),df.init(e,t)});function d9(e,t,r={}){return l6(d2,e,t,r)}function d5(e){return l6(d2,"hostname",l5.hostname,e)}function d3(e){return l6(d2,"hex",l5.hex,e)}function d8(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=l5[i];if(!n)throw Error(`Unrecognized hash format: ${i}`);return l6(d2,i,n,t)}let d7=eL("ZodNumber",(e,t)=>{o2.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>
77rv(e,t,r,i),du(e,"ZodNumber",{gt(e,t){return this.check(u8(e,t))},gte(e,t){return this.check(u7(e,t))},min(e,t){return this.check(u7(e,t))},lt(e,t){return this.check(u5(e,t))},lte(e,t){return this.check(u3(e,t))},max(e,t){return this.check(u3(e,t))},int(e){return this.check(cr(e))},safe(e){return this.check(cr(e))},positive(e){return this.check(u8(0,e))},nonnegative(e){return this.check(u7(0,e))},negative(e){return this.check(u5(0,e))},nonpositive(e){return this.check(u3(0,e))},multipleOf(e,t){return this.check(ln(e,t))},step(e,t){return this.check(ln(e,t))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function ce(e){return uD(d7,e)}let ct=eL("ZodNumberFormat",(e,t)=>{o9.init(e,t),d7.init(e,t)});function cr(e){return uR(ct,e)}function ci(e){return uM(ct,e)}function cn(e){return uL(ct,e)}function ca(e){return uF(ct,e)}function co(e){return uJ(ct,e)}let cs=eL("ZodBoolean",(e,t)=>{o5.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>ry(e,t,r,i)});function cu(e){return uB(cs,e)}let cl=eL("ZodBigInt",(e,t)=>{o3.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>r_(e,t,r,i),e.gte=(t,r)=>e.check(u7(t,r)),e.min=(t,r)=>e.check(u7(t,r)),e.gt=(t,r)=>e.check(u8(t,r)),e.gte=(t,r)=>e.check(u7(t,r)),e.min=(t,r)=>e.check(u7(t,r)),e.lt=(t,r)=>e.check(u5(t,r)),e.lte=(t,r)=>e.check(u3(t,r)),e.max=(t,r)=>e.check(u3(t,r)),e.positive=t=>e.check(u8(BigInt(0),t)),e.negative=t=>e.check(u5(BigInt(0),t)),e.nonpositive=t=>e.check(u3(BigInt(0),t)),e.nonnegative=t=>e.check(u7(BigInt(0),t)),e.multipleOf=(t,r)=>e.check(ln(t,r));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function cd(e){return uW(cl,e)}let cc=eL("ZodBigIntFormat",(e,t)=>{o8.init(e,t),cl.init(e,t)});function cp(e){return uG(cc,e)}function cf(e){return uK(cc,e)}let cm=eL("ZodSymbol",(e,t)=>{o7.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rb(e,t,r,i)});function ch(e){return uX(cm,e)}let cg=eL("ZodUndefined",(e,t)=>{se.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rx(e,t,r,i)});function cv(e){return uY(cg,e)}let cy=eL("ZodNull",(e,t)=>{st.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>r$(e,t,r,i)});function c_(e){return uH(cy,e)}let cb=eL("ZodAny",(e,t)=>{sr.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rI(e,t,r,i)});function c$(){return uQ(cb)}let cx=eL("ZodUnknown",(e,t)=>{si.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rS(e,t,r,i)});function ck(){return u0(cx)}let cw=eL("ZodNever",(e,t)=>{sn.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rw(e,t,r,i)});function cI(e){return u1(cw,e)}let cS=eL("ZodVoid",(e,t)=>{sa.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rk(e,t,r,i)});function cE(e){return u4(cS,e)}let cO=eL("ZodDate",(e,t)=>{so.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rE(e,t,r,i),e.min=(t,r)=>e.check(u7(t,r)),e.max=(t,r)=>e.check(u3(t,r));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function cZ(e){return u6(cO,e)}let cz=eL("ZodArray",(e,t)=>{su.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rR(e,t,r,i),e.element=t.element,du(e,"ZodArray",{min(e,t){return this.check(ll(e,t))},nonempty(e){return this.check(ll(1,e))},max(e,t){return this.check(lu(e,t))},length(e,t){return this.check(ld(e,t))},unwrap(){return this.element}})});function cj(e,t){return lI(cz,e,t)}function cT(e){return c4(Object.keys(e._zod.def.shape))}let cU=eL("ZodObject",(e,t)=>{sf.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rM(e,t,r,i),l3.defineLazy(e,"shape",()=>t.shape),du(e,"ZodObject",{keyof(){return c4(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:ck()})},loose(){return this.clone({...this._zod.def,catchall:ck()})},strict(){return this.clone({...this._zod.def,catchall:cI()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return l3.extend(this,e)},safeExtend(e){return l3.safeExtend(this,e)},merge(e){return l3.merge(this,e)},pick(e){return l3.pick(this,e)},omit(e){return l3.omit(this,e)},partial(...e){return l3.partial(pe,this,e[0])},required(...e){return l3.required(pc,this,e[0])}})});function cN(e,t){return new cU({type:"object",shape:e??{},...l3.normalizeParams(t)})}function cA(e,t){return new cU({type:"object",shape:e,catchall:cI(),...l3.normalizeParams(t)})}function cP(e,t){return new cU({type:"object",shape:e,catchall:ck(),...l3.normalizeParams(t)})}let cD=eL("ZodUnion",(e,t)=>{sh.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rL(e,t,r,i),e.options=t.options});
77function cC(e,t){return new cD({type:"union",options:e,...l3.normalizeParams(t)})}let cR=eL("ZodXor",(e,t)=>{cD.init(e,t),sv.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rL(e,t,r,i),e.options=t.options});function cM(e,t){return new cR({type:"union",options:e,inclusive:!1,...l3.normalizeParams(t)})}let cL=eL("ZodDiscriminatedUnion",(e,t)=>{cD.init(e,t),sy.init(e,t)});function cF(e,t,r){return new cL({type:"union",options:t,discriminator:e,...l3.normalizeParams(r)})}let cJ=eL("ZodIntersection",(e,t)=>{s_.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rF(e,t,r,i)});function cB(e,t){return new cJ({type:"intersection",left:e,right:t})}let cV=eL("ZodTuple",(e,t)=>{s$.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rJ(e,t,r,i),e.rest=t=>e.clone({...e._zod.def,rest:t})});function cW(e,t,r){let i=t instanceof oE,n=i?r:t;return new cV({type:"tuple",items:e,rest:i?t:null,...l3.normalizeParams(n)})}let cq=eL("ZodRecord",(e,t)=>{sI.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rB(e,t,r,i),e.keyType=t.keyType,e.valueType=t.valueType});function cG(e,t,r){return new cq(t&&t._zod?{type:"record",keyType:e,valueType:t,...l3.normalizeParams(r)}:{type:"record",keyType:dp(),valueType:e,...l3.normalizeParams(t)})}function cK(e,t,r){let i=tn(e);return i._zod.values=void 0,new cq({type:"record",keyType:i,valueType:t,...l3.normalizeParams(r)})}function cX(e,t,r){return new cq({type:"record",keyType:e,valueType:t,mode:"loose",...l3.normalizeParams(r)})}let cY=eL("ZodMap",(e,t)=>{sS.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rD(e,t,r,i),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(lo(...t)),e.nonempty=t=>e.check(lo(1,t)),e.max=(...t)=>e.check(la(...t)),e.size=(...t)=>e.check(ls(...t))});function cH(e,t,r){return new cY({type:"map",keyType:e,valueType:t,...l3.normalizeParams(r)})}let cQ=eL("ZodSet",(e,t)=>{sO.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rC(e,t,r,i),e.min=(...t)=>e.check(lo(...t)),e.nonempty=t=>e.check(lo(1,t)),e.max=(...t)=>e.check(la(...t)),e.size=(...t)=>e.check(ls(...t))});function c0(e,t){return new cQ({type:"set",valueType:e,...l3.normalizeParams(t)})}let c1=eL("ZodEnum",(e,t)=>{sz.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rO(e,t,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,i)=>{let n={};for(let i of e)if(r.has(i))n[i]=t.entries[i];else throw Error(`Key ${i} not found in enum`);return new c1({...t,checks:[],...l3.normalizeParams(i),entries:n})},e.exclude=(e,i)=>{let n={...t.entries};for(let t of e)if(r.has(t))delete n[t];else throw Error(`Key ${t} not found in enum`);return new c1({...t,checks:[],...l3.normalizeParams(i),entries:n})}});function c4(e,t){return new c1({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...l3.normalizeParams(t)})}function c6(e,t){return new c1({type:"enum",entries:e,...l3.normalizeParams(t)})}let c2=eL("ZodLiteral",(e,t)=>{sj.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rZ(e,t,r,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
77(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function c9(e,t){return new c2({type:"literal",values:Array.isArray(e)?e:[e],...l3.normalizeParams(t)})}let c5=eL("ZodFile",(e,t)=>{sT.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rT(e,t,r,i),e.min=(t,r)=>e.check(lo(t,r)),e.max=(t,r)=>e.check(la(t,r)),e.mime=(t,r)=>e.check(ly(Array.isArray(t)?t:[t],r))});function c3(e){return lD(c5,e)}let c8=eL("ZodTransform",(e,t)=>{sU.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rP(e,t,r,i),e._zod.parse=(r,i)=>{if("backward"===i.direction)throw new eB(e.constructor.name);r.addIssue=i=>{"string"==typeof i?r.issues.push(l3.issue(i,r.value,t)):(i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),r.issues.push(l3.issue(i)))};let n=t.transform(r.value,r);return n instanceof Promise?n.then(e=>(r.value=e,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function c7(e){return new c8({type:"transform",transform:e})}let pe=eL("ZodOptional",(e,t)=>{sA.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rQ(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function pt(e){return new pe({type:"optional",innerType:e})}let pr=eL("ZodExactOptional",(e,t)=>{sP.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rQ(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function pi(e){return new pr({type:"optional",innerType:e})}let pn=eL("ZodNullable",(e,t)=>{sD.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rV(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function pa(e){return new pn({type:"nullable",innerType:e})}function po(e){return pt(pa(e))}let ps=eL("ZodDefault",(e,t)=>{sC.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rq(e,t,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function pu(e,t){return new ps({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():l3.shallowClone(t)}})}let pl=eL("ZodPrefault",(e,t)=>{sM.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rG(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function pd(e,t){return new pl({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():l3.shallowClone(t)}})}let pc=eL("ZodNonOptional",(e,t)=>{sL.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rW(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function pp(e,t){return new pc({type:"nonoptional",innerType:e,...l3.normalizeParams(t)})}let pf=eL("ZodSuccess",(e,t)=>{sJ.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rU(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function pm(e){return new pf({type:"success",innerType:e})}let ph=eL("ZodCatch",(e,t)=>{sB.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rK(e,t,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function pg(e,t){return new ph({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let pv=eL("ZodNaN",(e,t)=>{sV.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rz(e,t,r,i)});function py(e){return u9(pv,e)}let p_=eL("ZodPipe",(e,t)=>{sW.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rX(e,t,r,i),e.in=t.in,e.out=t.out});function pb(e,t){return new p_({type:"pipe",in:e,out:t})}let p$=eL("ZodCodec",(e,t)=>{p_.init(e,t),sG.init(e,t)});function px(e,t,r){return new p$({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function pk(e){let t=e._zod.def;return new p$({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}let pw=eL("ZodPreprocess",(e,t)=>{p_.init(e,t),sY.init(e,t)}),pI=eL("ZodReadonly",(e,t)=>{sH.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rY(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function pS(e){return new pI({type:"readonly",innerType:e})}let pE=eL("ZodTemplateLiteral",(e,t)=>{s0.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rj(e,t,r,i)});function pO(e,t){return new pE({type:"template_literal",parts:e,...l3.normalizeParams(t)})}let pZ=eL("ZodLazy",(e,t)=>{s6.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>r0(e,t,r,i),e.unwrap=()=>e._zod.def.getter()});function pz(e){return new pZ({type:"lazy",getter:e})}let pj=eL("ZodPromise",(e,t)=>{s4.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rH(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function pT(e){return new pj({type:"promise",innerType:e})}let pU=eL("ZodFunction",(e,t)=>{s1.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>
77rA(e,t,r,i)});function pN(e){return new pU({type:"function",input:Array.isArray(e?.input)?cW(e?.input):e?.input??cj(ck()),output:e?.output??ck()})}let pA=eL("ZodCustom",(e,t)=>{s2.init(e,t),dl.init(e,t),e._zod.processJSONSchema=(t,r,i)=>rN(e,t,r,i)});function pP(e){let t=new ot({check:"custom"});return t._zod.check=e,t}function pD(e,t){return lX(pA,e??(()=>!0),t)}function pC(e,t={}){return lY(pA,e,t)}function pR(e,t){return lH(e,t)}let pM=l0,pL=l1;function pF(e,t={}){let r=new pA({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...l3.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:r,path:[...r._zod.def.path??[]]})},r}let pJ=(...e)=>l4({Codec:p$,Boolean:cs,String:dc},...e);function pB(e){let t=pz(()=>cC([dp(e),ce(),cu(),c_(),cj(t),cG(dp(),t)]));return t}function pV(e,t){return new pw({type:"pipe",in:c7(e),out:t})}var pW=e.i(62201);e.s([],42332),e.i(42332),e.s(["endsWith",0,lg,"gt",0,u8,"gte",0,u7,"includes",0,lm,"length",0,ld,"lowercase",0,lp,"lt",0,u5,"lte",0,u3,"maxLength",0,lu,"maxSize",0,la,"mime",0,ly,"minLength",0,ll,"minSize",0,lo,"multipleOf",0,ln,"negative",0,lt,"nonnegative",0,li,"nonpositive",0,lr,"normalize",0,lb,"overwrite",0,l_,"positive",0,le,"property",0,lv,"regex",0,lc,"size",0,ls,"slugify",0,lw,"startsWith",0,lh,"toLowerCase",0,lx,"toUpperCase",0,lk,"trim",0,l$,"uppercase",0,lf],30421);var pq=e.i(30421);e.i(21813),e.i(364);let pG={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function pK(e){eW({customError:e})}function pX(){return eW().customError}O||(O={}),e.s(["ZodFirstPartyTypeKind",0,O,"ZodIssueCode",0,pG,"getErrorMap",0,pX,"setErrorMap",0,pK],6034),e.i(6034),e.s(["$brand",0,eF,"ZodFirstPartyTypeKind",0,O,"ZodIssueCode",0,pG,"config",0,eW,"getErrorMap",0,pX,"setErrorMap",0,pK],58829),e.i(58829);var l5=s3,l3=s5,pY=e.i(49732);let pH={...pW,...pq,iso:pY},pQ=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);e.s(["bigint",0,function(e){return uq(cl,e)},"boolean",0,function(e){return uV(cs,e)},"date",0,function(e){return u2(cO,e)},"number",0,function(e){return uC(d7,e)},"string",0,function(e){return uu(dc,e)}],13657);var p0=e.i(13657);e.s(["$brand",0,eF,"$input",0,ra,"$output",0,rn,"NEVER",0,eM,"TimePrecision",0,uT,"ZodAny",0,cb,"ZodArray",0,cz,"ZodBase64",0,dX,"ZodBase64URL",0,dH,"ZodBigInt",0,cl,"ZodBigIntFormat",0,cc,"ZodBoolean",0,cs,"ZodCIDRv4",0,dW,"ZodCIDRv6",0,dG,"ZodCUID",0,dz,"ZodCUID2",0,dT,"ZodCatch",0,ph,"ZodCodec",0,p$,"ZodCustom",0,pA,"ZodCustomStringFormat",0,d2,"ZodDate",0,cO,"ZodDefault",0,ps,"ZodDiscriminatedUnion",0,cL,"ZodE164",0,d0,"ZodEmail",0,dm,"ZodEmoji",0,dS,"ZodEnum",0,c1,"ZodError",0,t0,"ZodExactOptional",0,pr,"ZodFile",0,c5,"ZodFirstPartyTypeKind",0,O,"ZodFunction",0,pU,"ZodGUID",0,dg,"ZodIPv4",0,dM,"ZodIPv6",0,dB,"ZodISODate",0,de,"ZodISODateTime",0,l8,"ZodISODuration",0,dn,"ZodISOTime",0,dr,"ZodIntersection",0,cJ,"ZodIssueCode",0,pG,"ZodJWT",0,d4,"ZodKSUID",0,dC,"ZodLazy",0,pZ,"ZodLiteral",0,c2,"ZodMAC",0,dF,"ZodMap",0,cY,"ZodNaN",0,pv,"ZodNanoID",0,dO,"ZodNever",0,cw,"ZodNonOptional",0,pc,"ZodNull",0,cy,"ZodNullable",0,pn,"ZodNumber",0,d7,"ZodNumberFormat",0,ct,"ZodObject",0,cU,"ZodOptional",0,pe,"ZodPipe",0,p_,"ZodPrefault",0,pl,"ZodPreprocess",0,pw,"ZodPromise",0,pj,"ZodReadonly",0,pI,"ZodRealError",0,t1,"ZodRecord",0,cq,"ZodSet",0,cQ,"ZodString",0,dc,"ZodStringFormat",0,df,"ZodSuccess",0,pf,"ZodSymbol",0,cm,"ZodTemplateLiteral",0,pE,"ZodTransform",0,c8,"ZodTuple",0,cV,"ZodType",0,dl,"ZodULID",0,dN,"ZodURL",0,dk,"ZodUUID",0,dy,"ZodUndefined",0,cg,"ZodUnion",0,cD,"ZodUnknown",0,cx,"ZodVoid",0,cS,"ZodXID",0,dP,"ZodXor",0,cR,"_ZodString",0,dd,"_default",0,pu,"_function",0,pN,"any",0,c$,"array",0,cj,"base64",0,dY,"base64url",0,dQ,"bigint",0,cd,"boolean",0,cu,"catch",0,pg,"check",0,pP,"cidrv4",0,dq,"cidrv6",0,dK,"clone",0,tn,"codec",0,px,"coerce",0,p0,"config",0,eW,"core",0,l9,"cuid",0,dj,"cuid2",0,dU,"custom",0,pD,"date",0,cZ,"decode",0,t3,"decodeAsync",0,t7,"describe",0,pM,"discriminatedUnion",0,cF,"e164",0,d1,"email",0,dh,"emoji",0,dE,"encode",0,t5,"encodeAsync",0,t8,"endsWith",0,lg,"enum",0,c4,"exactOptional",0,pi,"file",0,c3,"flattenError",0,tw,"float32",0,ci,"float64",0,cn,"formatError",0,tI,"fromJSONSchema",0,function(e,t){var r,i;let n,a;if("boolean"==typeof e)return e?pH.any():pH.never();try{n=JSON.parse(JSON.stringify(e))}
77catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o={version:(r=n,i=t?.defaultTarget,"https://json-schema.org/draft/2020-12/schema"===(a=r.$schema)?"draft-2020-12":"http://json-schema.org/draft-07/schema#"===a?"draft-7":"http://json-schema.org/draft-04/schema#"===a?"draft-4":i??"draft-2020-12"),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??ru};return function e(t,r){if("boolean"==typeof t)return t?pH.any():pH.never();let i=function t(r,i){let n;if(void 0!==r.not){if("object"==typeof r.not&&0===Object.keys(r.not).length)return pH.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==r.unevaluatedItems)throw Error("unevaluatedItems is not supported");if(void 0!==r.unevaluatedProperties)throw Error("unevaluatedProperties is not supported");if(void 0!==r.if||void 0!==r.then||void 0!==r.else)throw Error("Conditional schemas (if/then/else) are not supported");if(void 0!==r.dependentSchemas||void 0!==r.dependentRequired)throw Error("dependentSchemas and dependentRequired are not supported");if(r.$ref){let t=r.$ref;if(i.refs.has(t))return i.refs.get(t);if(i.processing.has(t))return pH.lazy(()=>{if(!i.refs.has(t))throw Error(`Circular reference not resolved: ${t}`);return i.refs.get(t)});i.processing.add(t);let n=e(function(e,t){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(0===r.length)return t.rootSchema;let i="draft-2020-12"===t.version?"$defs":"definitions";if(r[0]===i){let i=r[1];if(!i||!t.defs[i])throw Error(`Reference not found: ${e}`);return t.defs[i]}throw Error(`Reference not found: ${e}`)}(t,i),i);return i.refs.set(t,n),i.processing.delete(t),n}if(void 0!==r.enum){let e=r.enum;if("openapi-3.0"===i.version&&!0===r.nullable&&1===e.length&&null===e[0])return pH.null();if(0===e.length)return pH.never();if(1===e.length)return pH.literal(e[0]);if(e.every(e=>"string"==typeof e))return pH.enum(e);let t=e.map(e=>pH.literal(e));return t.length<2?t[0]:pH.union([t[0],t[1],...t.slice(2)])}if(void 0!==r.const)return pH.literal(r.const);let a=r.type;if(Array.isArray(a)){let e=a.map(e=>t({...r,type:e},i));return 0===e.length?pH.never():1===e.length?e[0]:pH.union(e)}if(!a)return pH.any();switch(a){case"string":{let e=pH.string();if(r.format){let t=r.format;"email"===t?e=e.check(pH.email()):"uri"===t||"uri-reference"===t?e=e.check(pH.url()):"uuid"===t||"guid"===t?e=e.check(pH.uuid()):"date-time"===t?e=e.check(pH.iso.datetime()):"date"===t?e=e.check(pH.iso.date()):"time"===t?e=e.check(pH.iso.time()):"duration"===t?e=e.check(pH.iso.duration()):"ipv4"===t?e=e.check(pH.ipv4()):"ipv6"===t?e=e.check(pH.ipv6()):"mac"===t?e=e.check(pH.mac()):"cidr"===t?e=e.check(pH.cidrv4()):"cidr-v6"===t?e=e.check(pH.cidrv6()):"base64"===t?e=e.check(pH.base64()):"base64url"===t?e=e.check(pH.base64url()):"e164"===t?e=e.check(pH.e164()):"jwt"===t?e=e.check(pH.jwt()):"emoji"===t?e=e.check(pH.emoji()):"nanoid"===t?e=e.check(pH.nanoid()):"cuid"===t?e=e.check(pH.cuid()):"cuid2"===t?e=e.check(pH.cuid2()):"ulid"===t?e=e.check(pH.ulid()):"xid"===t?e=e.check(pH.xid()):"ksuid"===t&&(e=e.check(pH.ksuid()))}"number"==typeof r.minLength&&(e=e.min(r.minLength)),"number"==typeof r.maxLength&&(e=e.max(r.maxLength)),r.pattern&&(e=e.regex(new RegExp(r.pattern))),n=e;break}case"number":case"integer":{let e="integer"===a?pH.number().int():pH.number();"number"==typeof r.minimum&&(e=e.min(r.minimum)),"number"==typeof r.maximum&&(e=e.max(r.maximum)),"number"==typeof r.exclusiveMinimum?e=e.gt(r.exclusiveMinimum):!0===r.exclusiveMinimum&&"number"==typeof r.minimum&&(e=e.gt(r.minimum)),"number"==typeof r.exclusiveMaximum?e=e.lt(r.exclusiveMaximum):!0===r.exclusiveMaximum&&"number"==typeof r.maximum&&(e=e.lt(r.maximum)),"number"==typeof r.multipleOf&&(e=e.multipleOf(r.multipleOf)),n=e;break}case"boolean":n=pH.boolean();break;case"null":n=pH.null();break;case"object":{let t={},a=r.properties||{},o=new Set(r.required||[]);for(let[r,n]of Object.entries(a)){let a=e(n,i);t[r]=o.has(r)?a:a.optional()}if(r.propertyNames){let a=e(r.propertyNames,i),o=r.additionalProperties&&"object"==typeof r.additionalProperties?e(r.additionalProperties,i):pH.any();if(0===Object.keys(t).length){n=pH.record(a,o);break}let s=pH.object(t).passthrough(),u=pH.looseRecord(a,o);n=pH.intersection(s,u);break}if(r.patternProperties){let a=r.patternProperties,o=Object.keys(a),s=[];for(let t of o){let r=e(a[t],i),n=pH.string().regex(new RegExp(t));s.push(pH.looseRecord(n,r))}let u=[];
77if(Object.keys(t).length>0&&u.push(pH.object(t).passthrough()),u.push(...s),0===u.length)n=pH.object({}).passthrough();else if(1===u.length)n=u[0];else{let e=pH.intersection(u[0],u[1]);for(let t=2;t<u.length;t++)e=pH.intersection(e,u[t]);n=e}break}let s=pH.object(t);n=!1===r.additionalProperties?s.strict():"object"==typeof r.additionalProperties?s.catchall(e(r.additionalProperties,i)):s.passthrough();break}case"array":{let t=r.prefixItems,a=r.items;if(t&&Array.isArray(t)){let o=t.map(t=>e(t,i)),s=a&&"object"==typeof a&&!Array.isArray(a)?e(a,i):void 0;n=s?pH.tuple(o).rest(s):pH.tuple(o),"number"==typeof r.minItems&&(n=n.check(pH.minLength(r.minItems))),"number"==typeof r.maxItems&&(n=n.check(pH.maxLength(r.maxItems)))}else if(Array.isArray(a)){let t=a.map(t=>e(t,i)),o=r.additionalItems&&"object"==typeof r.additionalItems?e(r.additionalItems,i):void 0;n=o?pH.tuple(t).rest(o):pH.tuple(t),"number"==typeof r.minItems&&(n=n.check(pH.minLength(r.minItems))),"number"==typeof r.maxItems&&(n=n.check(pH.maxLength(r.maxItems)))}else if(void 0!==a){let t=e(a,i),o=pH.array(t);"number"==typeof r.minItems&&(o=o.min(r.minItems)),"number"==typeof r.maxItems&&(o=o.max(r.maxItems)),n=o}else n=pH.array(pH.any());break}default:throw Error(`Unsupported type: ${a}`)}return n}(t,r),n=t.type||void 0!==t.enum||void 0!==t.const;if(t.anyOf&&Array.isArray(t.anyOf)){let a=t.anyOf.map(t=>e(t,r)),o=pH.union(a);i=n?pH.intersection(i,o):o}if(t.oneOf&&Array.isArray(t.oneOf)){let a=t.oneOf.map(t=>e(t,r)),o=pH.xor(a);i=n?pH.intersection(i,o):o}if(t.allOf&&Array.isArray(t.allOf))if(0===t.allOf.length)i=n?i:pH.any();else{let a=n?i:e(t.allOf[0],r),o=+!n;for(let i=o;i<t.allOf.length;i++)a=pH.intersection(a,e(t.allOf[i],r));i=a}!0===t.nullable&&"openapi-3.0"===r.version&&(i=pH.nullable(i)),!0===t.readOnly&&(i=pH.readonly(i)),void 0!==t.default&&(i=i.default(t.default));let a={};for(let e of["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"])e in t&&(a[e]=t[e]);for(let e of["contentEncoding","contentMediaType","contentSchema"])e in t&&(a[e]=t[e]);for(let e of Object.keys(t))pQ.has(e)||(a[e]=t[e]);return Object.keys(a).length>0&&r.registry.add(i,a),t.description&&(i=i.describe(t.description)),i}(n,o)},"function",0,pN,"getErrorMap",0,pX,"globalRegistry",0,ru,"gt",0,u8,"gte",0,u7,"guid",0,dv,"hash",0,d8,"hex",0,d3,"hostname",0,d5,"httpUrl",0,dI,"includes",0,lm,"instanceof",0,pF,"int",0,cr,"int32",0,ca,"int64",0,cp,"intersection",0,cB,"invertCodec",0,pk,"ipv4",0,dL,"ipv6",0,dV,"iso",0,pY,"json",0,pB,"jwt",0,d6,"keyof",0,cT,"ksuid",0,dR,"lazy",0,pz,"length",0,ld,"literal",0,c9,"locales",0,uo,"looseObject",0,cP,"looseRecord",0,cX,"lowercase",0,lp,"lt",0,u5,"lte",0,u3,"mac",0,dJ,"map",0,cH,"maxLength",0,lu,"maxSize",0,la,"meta",0,pL,"mime",0,ly,"minLength",0,ll,"minSize",0,lo,"multipleOf",0,ln,"nan",0,py,"nanoid",0,dZ,"nativeEnum",0,c6,"negative",0,lt,"never",0,cI,"nonnegative",0,li,"nonoptional",0,pp,"nonpositive",0,lr,"normalize",0,lb,"null",0,c_,"nullable",0,pa,"nullish",0,po,"number",0,ce,"object",0,cN,"optional",0,pt,"overwrite",0,l_,"parse",0,t4,"parseAsync",0,t6,"partialRecord",0,cK,"pipe",0,pb,"positive",0,le,"prefault",0,pd,"preprocess",0,pV,"prettifyError",0,tO,"promise",0,pT,"property",0,lv,"readonly",0,pS,"record",0,cG,"refine",0,pC,"regex",0,lc,"regexes",()=>l5,"registry",0,rs,"safeDecode",0,rt,"safeDecodeAsync",0,ri,"safeEncode",0,re,"safeEncodeAsync",0,rr,"safeParse",0,t2,"safeParseAsync",0,t9,"set",0,c0,"setErrorMap",0,pK,"size",0,ls,"slugify",0,lw,"startsWith",0,lh,"strictObject",0,cA,"string",0,dp,"stringFormat",0,d9,"stringbool",0,pJ,"success",0,pm,"superRefine",0,pR,"symbol",0,ch,"templateLiteral",0,pO,"toJSONSchema",0,r4,"toLowerCase",0,lx,"toUpperCase",0,lk,"transform",0,c7,"treeifyError",0,tS,"trim",0,l$,"tuple",0,cW,"uint32",0,co,"uint64",0,cf,"ulid",0,dA,"undefined",0,cv,"union",0,cC,"unknown",0,ck,"uppercase",0,lf,"url",0,dw,"util",()=>l3,"uuid",0,d_,"uuidv4",0,db,"uuidv6",0,d$,"uuidv7",0,dx,"void",0,cE,"xid",0,dD,"xor",0,cM],22219);var p1=e.i(22219),p1=p1,p4=e.i(25150),p6=Symbol.for("vercel.ai.gateway.error"),p2=class e extends(z=Error,Z=p6,z){constructor({message:e,statusCode:t=500,cause:r,generationId:i,isRetryable:n=null!=t&&(408===t||409===t||429===t||t>=500)}){super(i?`${e} [${i}]`:e),this[Z]=!0,this.statusCode=t,this.cause=r,this.generationId=i,this.isRetryable=n}static isInstance(t){return e.hasMarker(t)}static hasMarker(e){return"object"==typeof e&&null!==e&&p6 in e&&!0===e[p6]}},p9="GatewayAuthenticationError",p5=Symbol.for(`vercel.ai.gateway.error.${p9}`),p3=class e extends(T=p2,j=p5,T){constructor({message:e="Authentication failed",statusCode:t=401,cause:r,generationId:i}={}){super({message:e,statusCode:t,cause:r,generationId:i}),this[j]=!0,this.name=p9,this.type="authentication_error"}static isInstance(e){return p2.hasMarker(e)&&p5 in e}static createContextualError({apiKeyProvided:t,oidcTokenProvided:r,message:i="Authentication failed",statusCode:n=401,cause:a,generationId:o}){return new e({message:t?`AI Gateway authentication failed: Invalid API key. 78 79Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys 80 81Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.`:r?`AI Gateway authentication failed: Invalid OIDC token. 82 83Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token. 84 85Alternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys`:`AI Gateway authentication failed: No authentication provided. 86 87Option 1 - API key: 88Create an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys 89Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable. 90 91Option 2 - OIDC token: 92Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`,statusCode:n,cause:a,generationId:o})}},p8="GatewayInvalidRequestError",p7=Symbol.for(`vercel.ai.gateway.error.${p8}`),fe=class extends(N=p2,U=p7,N){constructor({message:e="Invalid request",statusCode:t=400,cause:r,generationId:i}={}){super({message:e,statusCode:t,cause:r,generationId:i}),this[U]=!0,this.name=p8,this.type="invalid_request_error"}static isInstance(e){return p2.hasMarker(e)&&p7 in e}},ft="GatewayRateLimitError",fr=Symbol.for(`vercel.ai.gateway.error.${ft}`),fi=class extends(P=p2,A=fr,P){constructor({message:e="Rate limit exceeded",statusCode:t=429,cause:r,generationId:i}={}){super({message:e,statusCode:t,cause:r,generationId:i}),this[A]=!0,this.name=ft,this.type="rate_limit_exceeded"}static isInstance(e){return p2.hasMarker(e)&&fr in e}},fn="GatewayModelNotFoundError",fa=Symbol.for(`vercel.ai.gateway.error.${fn}`),fo=n8(()=>at(p1.object({modelId:p1.string()}))),fs=class extends(C=p2,D=fa,C){constructor({message:e="Model not found",statusCode:t=404,modelId:r,cause:i,generationId:n}={}){super({message:e,statusCode:t,cause:i,generationId:n}),this[D]=!0,this.name=fn,this.type="model_not_found",this.modelId=r}static isInstance(e){return p2.hasMarker(e)&&fa in e}},fu="GatewayInternalServerError",fl=Symbol.for(`vercel.ai.gateway.error.${fu}`),fd=class extends(M=p2,R=fl,M){constructor({message:e="Internal server error",statusCode:t=500,cause:r,generationId:i}={}){super({message:e,statusCode:t,cause:r,generationId:i}),this[R]=!0,this.name=fu,this.type="internal_server_error"}static isInstance(e){return p2.hasMarker(e)&&fl in e}},fc="GatewayFailedDependencyError",fp=Symbol.for(`vercel.ai.gateway.error.${fc}`),ff=class extends(F=p2,L=fp,F){constructor({message:e="Failed dependency",statusCode:t=424,cause:r,generationId:i}={}){super({message:e,statusCode:t,cause:r,generationId:i}),this[L]=!0,this.name=fc,this.type="failed_dependency"}static isInstance(e){return p2.hasMarker(e)&&fp in e}},fm="GatewayForbiddenError",fh=Symbol.for(`vercel.ai.gateway.error.${fm}`),fg=class extends(B=p2,J=fh,B){constructor({message:e="Forbidden",statusCode:t=403,cause:r,generationId:i}={}){super({message:e,statusCode:t,cause:r,generationId:i}),this[J]=!0,this.name=fm,this.type="forbidden"}static isInstance(e){return p2.hasMarker(e)&&fh in e}},fv="GatewayResponseError",fy=Symbol.for(`vercel.ai.gateway.error.${fv}`),f_=class extends(W=p2,V=fy,W){constructor({message:e="Invalid response from Gateway",statusCode:t=502,response:r,validationError:i,cause:n,generationId:a}={}){super({message:e,statusCode:t,cause:n,generationId:a}),this[V]=!0,this.name=fv,this.type="response_error",this.response=r,this.validationError=i}static isInstance(e){return p2.hasMarker(e)&&fy in e}};async function fb({response:e,statusCode:t,defaultMessage:r="Gateway request failed",cause:i,authMethod:n}){var a;let o=await ai({value:e,schema:f$});if(!o.success){let n="object"==typeof e&&null!==e&&"generationId"in e?e.generationId:void 0;return new f_({message:`Invalid error response format: ${r}`,statusCode:t,response:e,validationError:o.error,cause:i,generationId:n})}let s=o.value,u=s.error.type,l=s.error.message,d=null!=(a=s.generationId)?a:void 0;switch(u){case"authentication_error":return p3.createContextualError({apiKeyProvided:"api-key"===n,oidcTokenProvided:"oidc"===n,statusCode:t,cause:i,generationId:d});
92case"invalid_request_error":return new fe({message:l,statusCode:t,cause:i,generationId:d});case"rate_limit_exceeded":return new fi({message:l,statusCode:t,cause:i,generationId:d});case"model_not_found":{let e=await ai({value:s.error.param,schema:fo});return new fs({message:l,statusCode:t,modelId:e.success?e.value.modelId:void 0,cause:i,generationId:d})}case"internal_server_error":default:return new fd({message:l,statusCode:t,cause:i,generationId:d});case"failed_dependency":return new ff({message:l,statusCode:t,cause:i,generationId:d});case"forbidden":return new fg({message:l,statusCode:t,cause:i,generationId:d})}}var f$=n8(()=>at(p1.object({error:p1.object({message:p1.string(),type:p1.string().nullish(),param:p1.unknown().nullish(),code:p1.union([p1.string(),p1.number()]).nullish()}),generationId:p1.string().nullish()}))),fx="GatewayTimeoutError",fk=Symbol.for(`vercel.ai.gateway.error.${fx}`),fw=class e extends(G=p2,q=fk,G){constructor({message:e="Request timed out",statusCode:t=408,cause:r,generationId:i}={}){super({message:e,statusCode:t,cause:r,generationId:i}),this[q]=!0,this.name=fx,this.type="timeout_error"}static isInstance(e){return p2.hasMarker(e)&&fk in e}static createTimeoutError({originalMessage:t,statusCode:r=408,cause:i,generationId:n}){return new e({message:`Gateway request timed out: ${t} 93 94 This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`,statusCode:r,cause:i,generationId:n})}};function fI(e){if(!(e instanceof Error))return!1;let t=e.code;return"string"==typeof t&&["UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"].includes(t)}async function fS(e,t){var r;return p2.isInstance(e)?e:fI(e)?fw.createTimeoutError({originalMessage:e instanceof Error?e.message:"Unknown error",cause:e}):e_.isInstance(e)?e.cause&&fI(e.cause)?fw.createTimeoutError({originalMessage:e.message,cause:e}):await fb({response:function(e){if(void 0!==e.data)return e.data;if(null!=e.responseBody)try{return JSON.parse(e.responseBody)}catch(t){return e.responseBody}return{}}(e),statusCode:null!=(r=e.statusCode)?r:500,defaultMessage:"Gateway request failed",cause:e,authMethod:t}):await fb({response:{},statusCode:500,defaultMessage:e instanceof Error?`Gateway request failed: ${e.message}`:"Unknown Gateway error",cause:e,authMethod:t})}var fE="ai-gateway-auth-method";async function fO(e){let t=await ai({value:e[fE],schema:fZ});return t.success?t.value:void 0}var fZ=n8(()=>at(p1.union([p1.literal("api-key"),p1.literal("oidc")]))),fz=["embedding","image","language","reranking","video"],fj=class{constructor(e){this.config=e}async getAvailableModels(){try{let{value:e}=await nE({url:`${this.config.baseURL}/config`,headers:await ac(this.config.headers()),successfulResponseHandler:af(fT),failedResponseHandler:ap({errorSchema:p1.any(),errorToMessage:e=>e}),fetch:this.config.fetch});return e}catch(e){throw await fS(e)}}async getCredits(){try{let e=new URL(this.config.baseURL),{value:t}=await nE({url:`${e.origin}/v1/credits`,headers:await ac(this.config.headers()),successfulResponseHandler:af(fU),failedResponseHandler:ap({errorSchema:p1.any(),errorToMessage:e=>e}),fetch:this.config.fetch});return t}catch(e){throw await fS(e)}}},fT=n8(()=>at(p1.object({models:p1.array(p1.object({id:p1.string(),name:p1.string(),description:p1.string().nullish(),pricing:p1.object({input:p1.string(),output:p1.string(),input_cache_read:p1.string().nullish(),input_cache_write:p1.string().nullish()}).transform(({input:e,output:t,input_cache_read:r,input_cache_write:i})=>({input:e,output:t,...r?{cachedInputTokens:r}:{},...i?{cacheCreationInputTokens:i}:{}})).nullish(),specification:p1.object({specificationVersion:p1.literal("v3"),provider:p1.string(),modelId:p1.string()}),modelType:p1.string().nullish()})).transform(e=>e.filter(e=>null==e.modelType||fz.includes(e.modelType)))}))),fU=n8(()=>at(p1.object({balance:p1.string(),total_used:p1.string()}).transform(({balance:e,total_used:t})=>({balance:e,totalUsed:t})))),fN=class{constructor(e){this.config=e}
94async getSpendReport(e){try{let t=new URL(this.config.baseURL),r=new URLSearchParams;r.set("start_date",e.startDate),r.set("end_date",e.endDate),e.groupBy&&r.set("group_by",e.groupBy),e.datePart&&r.set("date_part",e.datePart),e.userId&&r.set("user_id",e.userId),e.model&&r.set("model",e.model),e.provider&&r.set("provider",e.provider),e.credentialType&&r.set("credential_type",e.credentialType),e.tags&&e.tags.length>0&&r.set("tags",e.tags.join(","));let{value:i}=await nE({url:`${t.origin}/v1/report?${r.toString()}`,headers:await ac(this.config.headers()),successfulResponseHandler:af(fA),failedResponseHandler:ap({errorSchema:p1.any(),errorToMessage:e=>e}),fetch:this.config.fetch});return i}catch(e){throw await fS(e)}}},fA=n8(()=>at(p1.object({results:p1.array(p1.object({day:p1.string().optional(),hour:p1.string().optional(),user:p1.string().optional(),model:p1.string().optional(),tag:p1.string().optional(),provider:p1.string().optional(),credential_type:p1.enum(["byok","system"]).optional(),total_cost:p1.number(),market_cost:p1.number().optional(),input_tokens:p1.number().optional(),output_tokens:p1.number().optional(),cached_input_tokens:p1.number().optional(),cache_creation_input_tokens:p1.number().optional(),reasoning_tokens:p1.number().optional(),request_count:p1.number().optional()}).transform(({credential_type:e,total_cost:t,market_cost:r,input_tokens:i,output_tokens:n,cached_input_tokens:a,cache_creation_input_tokens:o,reasoning_tokens:s,request_count:u,...l})=>({...l,...void 0!==e?{credentialType:e}:{},totalCost:t,...void 0!==r?{marketCost:r}:{},...void 0!==i?{inputTokens:i}:{},...void 0!==n?{outputTokens:n}:{},...void 0!==a?{cachedInputTokens:a}:{},...void 0!==o?{cacheCreationInputTokens:o}:{},...void 0!==s?{reasoningTokens:s}:{},...void 0!==u?{requestCount:u}:{}})))}))),fP=class{constructor(e){this.config=e}async getGenerationInfo(e){try{let t=new URL(this.config.baseURL),{value:r}=await nE({url:`${t.origin}/v1/generation?id=${encodeURIComponent(e.id)}`,headers:await ac(this.config.headers()),successfulResponseHandler:af(fD),failedResponseHandler:ap({errorSchema:p1.any(),errorToMessage:e=>e}),fetch:this.config.fetch});return r}catch(e){throw await fS(e)}}},fD=n8(()=>at(p1.object({data:p1.object({id:p1.string(),total_cost:p1.number(),upstream_inference_cost:p1.number(),usage:p1.number(),created_at:p1.string(),model:p1.string(),is_byok:p1.boolean(),provider_name:p1.string(),streamed:p1.boolean(),finish_reason:p1.string(),latency:p1.number(),generation_time:p1.number(),native_tokens_prompt:p1.number(),native_tokens_completion:p1.number(),native_tokens_reasoning:p1.number(),native_tokens_cached:p1.number(),native_tokens_cache_creation:p1.number(),billable_web_search_calls:p1.number()}).transform(({total_cost:e,upstream_inference_cost:t,created_at:r,is_byok:i,provider_name:n,finish_reason:a,generation_time:o,native_tokens_prompt:s,native_tokens_completion:u,native_tokens_reasoning:l,native_tokens_cached:d,native_tokens_cache_creation:c,billable_web_search_calls:p,...f})=>({...f,totalCost:e,upstreamInferenceCost:t,createdAt:r,isByok:i,providerName:n,finishReason:a,generationTime:o,promptTokens:s,completionTokens:u,reasoningTokens:l,cachedTokens:d,cacheCreationTokens:c,billableWebSearchCalls:p}))}).transform(({data:e})=>e))),fC=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs(e){let{abortSignal:t,...r}=e;return{args:this.maybeEncodeFileParts(r),warnings:[]}}async doGenerate(e){let{args:t,warnings:r}=await this.getArgs(e),{abortSignal:i}=e,n=await ac(this.config.headers());try{let{responseHeaders:a,value:o,rawValue:s}=await au({url:this.getUrl(),headers:nr(n,e.headers,this.getModelConfigHeaders(this.modelId,!1),await ac(this.config.o11yHeaders)),body:t,successfulResponseHandler:af(p1.any()),failedResponseHandler:ap({errorSchema:p1.any(),errorToMessage:e=>e}),...i&&{abortSignal:i},fetch:this.config.fetch});return{...o,request:{body:t},response:{headers:a,body:s},warnings:r}}catch(e){throw await fS(e,await fO(n))}}async doStream(e){let{args:t,warnings:r}=await this.getArgs(e),{abortSignal:i}=e,n=await ac(this.config.headers());try{let a,{value:o,responseHeaders:s}=await au({url:this.getUrl(),headers:nr(n,e.headers,this.getModelConfigHeaders(this.modelId,!0),await ac(this.config.o11yHeaders)),body:t,successfulResponseHandler:(a=p1.any(),async({response:e})=>{let t=ni(e);if(null==e.body)throw new ek({});return{responseHeaders:t,value:ao({stream:e.body,schema:a})}}),failedResponseHandler:ap({errorSchema:p1.any(),errorToMessage:e=>e}),...i&&{abortSignal:i},fetch:this.config.fetch});
94return{stream:o.pipeThrough(new TransformStream({start(e){r.length>0&&e.enqueue({type:"stream-start",warnings:r})},transform(t,r){if(t.success){let i=t.value;("raw"!==i.type||e.includeRawChunks)&&("response-metadata"===i.type&&i.timestamp&&"string"==typeof i.timestamp&&(i.timestamp=new Date(i.timestamp)),r.enqueue(i))}else r.error(t.error)}})),request:{body:t},response:{headers:s}}}catch(e){throw await fS(e,await fO(n))}}isFilePart(e){return e&&"object"==typeof e&&"type"in e&&"file"===e.type}maybeEncodeFileParts(e){for(let t of e.prompt)for(let e of t.content)if(this.isFilePart(e)&&e.data instanceof Uint8Array){let t=Uint8Array.from(e.data),r=ep.Buffer.from(t).toString("base64");e.data=new URL(`data:${e.mediaType||"application/octet-stream"};base64,${r}`)}return e}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders(e,t){return{"ai-language-model-specification-version":"3","ai-language-model-id":e,"ai-language-model-streaming":String(t)}}},fR=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:r,providerOptions:i}){var n,a;let o=await ac(this.config.headers());try{let{responseHeaders:s,value:u,rawValue:l}=await au({url:this.getUrl(),headers:nr(o,null!=t?t:{},this.getModelConfigHeaders(),await ac(this.config.o11yHeaders)),body:{values:e,...i?{providerOptions:i}:{}},successfulResponseHandler:af(fL),failedResponseHandler:ap({errorSchema:p1.any(),errorToMessage:e=>e}),...r&&{abortSignal:r},fetch:this.config.fetch});return{embeddings:u.embeddings,usage:null!=(n=u.usage)?n:void 0,providerMetadata:u.providerMetadata,response:{headers:s,body:l},warnings:null!=(a=u.warnings)?a:[]}}catch(e){throw await fS(e,await fO(o))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"3","ai-model-id":this.modelId}}},fM=p1.discriminatedUnion("type",[p1.object({type:p1.literal("unsupported"),feature:p1.string(),details:p1.string().optional()}),p1.object({type:p1.literal("compatibility"),feature:p1.string(),details:p1.string().optional()}),p1.object({type:p1.literal("other"),message:p1.string()})]),fL=n8(()=>at(p1.object({embeddings:p1.array(p1.array(p1.number())),usage:p1.object({tokens:p1.number()}).nullish(),warnings:p1.array(fM).optional(),providerMetadata:p1.record(p1.string(),p1.record(p1.string(),p1.unknown())).optional()}))),fF=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,size:r,aspectRatio:i,seed:n,files:a,mask:o,providerOptions:s,headers:u,abortSignal:l}){var d,c,p,f;let m=await ac(this.config.headers());try{let{responseHeaders:h,value:g,rawValue:v}=await au({url:this.getUrl(),headers:nr(m,null!=u?u:{},this.getModelConfigHeaders(),await ac(this.config.o11yHeaders)),body:{prompt:e,n:t,...r&&{size:r},...i&&{aspectRatio:i},...n&&{seed:n},...s&&{providerOptions:s},...a&&{files:a.map(e=>fJ(e))},...o&&{mask:fJ(o)}},successfulResponseHandler:af(fq),failedResponseHandler:ap({errorSchema:p1.any(),errorToMessage:e=>e}),...l&&{abortSignal:l},fetch:this.config.fetch});return{images:g.images,warnings:null!=(d=g.warnings)?d:[],providerMetadata:g.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:h},...null!=g.usage&&{usage:{inputTokens:null!=(c=g.usage.inputTokens)?c:void 0,outputTokens:null!=(p=g.usage.outputTokens)?p:void 0,totalTokens:null!=(f=g.usage.totalTokens)?f:void 0}}}}catch(e){throw await fS(e,await fO(m))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"3","ai-model-id":this.modelId}}};function fJ(e){return"file"===e.type&&e.data instanceof Uint8Array?{...e,data:no(e.data)}:e}var fB=p1.object({images:p1.array(p1.unknown()).optional()}).catchall(p1.unknown()),fV=p1.discriminatedUnion("type",[p1.object({type:p1.literal("unsupported"),feature:p1.string(),details:p1.string().optional()}),p1.object({type:p1.literal("compatibility"),feature:p1.string(),details:p1.string().optional()}),p1.object({type:p1.literal("other"),message:p1.string()})]),fW=p1.object({inputTokens:p1.number().nullish(),outputTokens:p1.number().nullish(),totalTokens:p1.number().nullish()}),fq=p1.object({images:p1.array(p1.string()),warnings:p1.array(fV).optional(),providerMetadata:p1.record(p1.string(),fB).optional(),usage:fW.optional()}),fG=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxVideosPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,aspectRatio:r,resolution:i,duration:n,fps:a,seed:o,image:s,providerOptions:u,headers:l,abortSignal:d}){var c,p;let f=await ac(this.config.headers());try{let{responseHeaders:m,value:h}=await au({url:this.getUrl(),headers:nr(f,null!=l?l:{},this.getModelConfigHeaders(),await ac(this.config.o11yHeaders),{accept:"text/event-stream"}),body:{prompt:e,n:t,...r&&{aspectRatio:r},...i&&{resolution:i},...n&&{duration:n},...a&&{fps:a},...o&&{seed:o},...u&&{providerOptions:u},...s&&{image:(p=s,"file"===p.type&&p.data instanceof Uint8Array?{...p,data:no(p.data)}:p)}},successfulResponseHandler:async({response:e,url:t,requestBodyValues:r})=>{if(null==e.body)throw new e_({message:"SSE response body is empty",url:t,requestBodyValues:r,statusCode:e.status});let i=ao({stream:e.body,schema:fH}).getReader(),{done:n,value:a}=await i.read();if(i.releaseLock(),n||!a)throw new e_({message:"SSE stream ended without a data event",url:t,requestBodyValues:r,statusCode:e.status});if(!a.success)throw new e_({message:"Failed to parse video SSE event",cause:a.error,url:t,requestBodyValues:r,statusCode:e.status});let o=a.value;if("error"===o.type)throw new e_({message:o.message,statusCode:o.statusCode,url:t,requestBodyValues:r,responseHeaders:Object.fromEntries([...e.headers]),responseBody:JSON.stringify(o),data:{error:{message:o.message,type:o.errorType,param:o.param}}});return{value:{videos:o.videos,warnings:o.warnings,providerMetadata:o.providerMetadata},responseHeaders:Object.fromEntries([...e.headers])}},failedResponseHandler:ap({errorSchema:p1.any(),errorToMessage:e=>e}),...d&&{abortSignal:d},fetch:this.config.fetch});return{videos:h.videos,warnings:null!=(c=h.warnings)?c:[],providerMetadata:h.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:m}}}catch(e){throw await fS(e,await fO(f))}}getUrl(){return`${this.config.baseURL}/video-model`}getModelConfigHeaders(){return{"ai-video-model-specification-version":"3","ai-model-id":this.modelId}}},fK=p1.object({videos:p1.array(p1.unknown()).optional()}).catchall(p1.unknown()),fX=p1.union([p1.object({type:p1.literal("url"),url:p1.string(),mediaType:p1.string()}),p1.object({type:p1.literal("base64"),data:p1.string(),mediaType:p1.string()})]),fY=p1.discriminatedUnion("type",[p1.object({type:p1.literal("unsupported"),feature:p1.string(),details:p1.string().optional()}),p1.object({type:p1.literal("compatibility"),feature:p1.string(),details:p1.string().optional()}),p1.object({type:p1.literal("other"),message:p1.string()})]),fH=p1.discriminatedUnion("type",[p1.object({type:p1.literal("result"),videos:p1.array(fX),warnings:p1.array(fY).optional(),providerMetadata:p1.record(p1.string(),fK).optional()}),p1.object({type:p1.literal("error"),message:p1.string(),errorType:p1.string(),statusCode:p1.number(),param:p1.unknown().nullable()})]),fQ=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get provider(){return this.config.provider}async doRerank({documents:e,query:t,topN:r,headers:i,abortSignal:n,providerOptions:a}){var o;let s=await ac(this.config.headers());try{let{responseHeaders:u,value:l,rawValue:d}=await au({url:this.getUrl(),headers:nr(s,null!=i?i:{},this.getModelConfigHeaders(),await ac(this.config.o11yHeaders)),body:{documents:e,query:t,...null!=r?{topN:r}:{},...a?{providerOptions:a}:{}},successfulResponseHandler:af(f1),failedResponseHandler:ap({errorSchema:p1.any(),errorToMessage:e=>e}),...n&&{abortSignal:n},fetch:this.config.fetch});return{ranking:l.ranking,providerMetadata:l.providerMetadata,response:{headers:u,body:d},warnings:null!=(o=l.warnings)?o:[]}}catch(e){throw await fS(e,await fO(s))}}getUrl(){return`${this.config.baseURL}/reranking-model`}getModelConfigHeaders(){return{"ai-reranking-model-specification-version":"3","ai-model-id":this.modelId}}},f0=p1.discriminatedUnion("type",[p1.object({type:p1.literal("unsupported"),feature:p1.string(),details:p1.string().optional()}),p1.object({type:p1.literal("compatibility"),feature:p1.string(),details:p1.string().optional()}),p1.object({type:p1.literal("other"),message:p1.string()})]),f1=n8(()=>
94at(p1.object({ranking:p1.array(p1.object({index:p1.number(),relevanceScore:p1.number()})),warnings:p1.array(f0).optional(),providerMetadata:p1.record(p1.string(),p1.record(p1.string(),p1.unknown())).optional()}))),f4=ad({id:"gateway.parallel_search",inputSchema:n8(()=>at(p1.object({objective:p1.string().describe("Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."),search_queries:p1.array(p1.string()).optional().describe("Optional search queries to supplement the objective. Maximum 200 characters per query."),mode:p1.enum(["one-shot","agentic"]).optional().describe('Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'),max_results:p1.number().optional().describe("Maximum number of results to return (1-20). Defaults to 10 if not specified."),source_policy:p1.object({include_domains:p1.array(p1.string()).optional().describe("List of domains to include in search results."),exclude_domains:p1.array(p1.string()).optional().describe("List of domains to exclude from search results."),after_date:p1.string().optional().describe("Only include results published after this date (ISO 8601 format).")}).optional().describe("Source policy for controlling which domains to include/exclude and freshness."),excerpts:p1.object({max_chars_per_result:p1.number().optional().describe("Maximum characters per result."),max_chars_total:p1.number().optional().describe("Maximum total characters across all results.")}).optional().describe("Excerpt configuration for controlling result length."),fetch_policy:p1.object({max_age_seconds:p1.number().optional().describe("Maximum age in seconds for cached content. Set to 0 to always fetch fresh content.")}).optional().describe("Fetch policy for controlling content freshness.")}
94))),outputSchema:n8(()=>at(p1.union([p1.object({searchId:p1.string(),results:p1.array(p1.object({url:p1.string(),title:p1.string(),excerpt:p1.string(),publishDate:p1.string().nullable().optional(),relevanceScore:p1.number().optional()}))}),p1.object({error:p1.enum(["api_error","rate_limit","timeout","invalid_input","configuration_error","unknown"]),statusCode:p1.number().optional(),message:p1.string()})])))}),f6=ad({id:"gateway.perplexity_search",inputSchema:n8(()=>at(p1.object({query:p1.union([p1.string(),p1.array(p1.string())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:p1.number().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:p1.number().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:p1.number().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:p1.string().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:p1.array(p1.string()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:p1.array(p1.string()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:p1.string().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:p1.string().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:p1.string().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:p1.string().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:p1.enum(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}
94))),outputSchema:n8(()=>at(p1.union([p1.object({results:p1.array(p1.object({title:p1.string(),url:p1.string(),snippet:p1.string(),date:p1.string().optional(),lastUpdated:p1.string().optional()})),id:p1.string()}),p1.object({error:p1.enum(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:p1.number().optional(),message:p1.string()})])))}),f2={parallelSearch:(e={})=>f4(e),perplexitySearch:(e={})=>f6(e)};async function f9(){var e;return null==(e=(0,p4.getContext)().headers)?void 0:e["x-vercel-id"]}async function f5(e){let t=nO({settingValue:e.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});return t?{token:t,authMethod:"api-key"}:{token:await (0,p4.getVercelOidcToken)(),authMethod:"oidc"}}!function(e={}){var t,r,i;let n=null,a=null,o=null!=(t=e.metadataCacheRefreshMillis)?t:3e5,s=0,u=null!=(r=null==(i=e.baseURL)?void 0:i.replace(/\/$/,""))?r:"https://ai-gateway.vercel.sh/v3/ai",l=async()=>{try{let t=await f5(e);return nw({Authorization:`Bearer ${t.token}`,"ai-gateway-protocol-version":"0.0.1",[fE]:t.authMethod,...e.headers},"ai-sdk/gateway/3.0.133")}catch(e){throw p3.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:e})}},d=()=>{let e=nO({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),t=nO({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),r=nO({settingValue:void 0,environmentVariableName:"VERCEL_REGION"}),i=nO({settingValue:void 0,environmentVariableName:"VERCEL_PROJECT_ID"});return async()=>{let n=await f9();return{...e&&{"ai-o11y-deployment-id":e},...t&&{"ai-o11y-environment":t},...r&&{"ai-o11y-region":r},...n&&{"ai-o11y-request-id":n},...i&&{"ai-o11y-project-id":i}}}},c=t=>new fC(t,{provider:"gateway",baseURL:u,headers:l,fetch:e.fetch,o11yHeaders:d()}),p=async()=>{var t,r,i;let d=null!=(i=null==(r=null==(t=e._internal)?void 0:t.currentDate)?void 0:r.call(t).getTime())?i:Date.now();return(!n||d-s>o)&&(s=d,n=new fj({baseURL:u,headers:l,fetch:e.fetch}).getAvailableModels().then(e=>(a=e,e)).catch(async e=>{throw await fS(e,await fO(await l()))})),a?Promise.resolve(a):n},f=async()=>new fj({baseURL:u,headers:l,fetch:e.fetch}).getCredits().catch(async e=>{throw await fS(e,await fO(await l()))}),m=async t=>new fN({baseURL:u,headers:l,fetch:e.fetch}).getSpendReport(t).catch(async e=>{throw await fS(e,await fO(await l()))}),h=async t=>new fP({baseURL:u,headers:l,fetch:e.fetch}).getGenerationInfo(t).catch(async e=>{throw await fS(e,await fO(await l()))}),g=function(e){if(new.target)throw Error("The Gateway Provider model function cannot be called with the new keyword.");return c(e)};g.specificationVersion="v3",g.getAvailableModels=p,g.getCredits=f,g.getSpendReport=m,g.getGenerationInfo=h,g.imageModel=t=>new fF(t,{provider:"gateway",baseURL:u,headers:l,fetch:e.fetch,o11yHeaders:d()}),g.languageModel=c;let v=t=>new fR(t,{provider:"gateway",baseURL:u,headers:l,fetch:e.fetch,o11yHeaders:d()});g.embeddingModel=v,g.textEmbeddingModel=v,g.videoModel=t=>new fG(t,{provider:"gateway",baseURL:u,headers:l,fetch:e.fetch,o11yHeaders:d()});let y=t=>new fQ(t,{provider:"gateway",baseURL:u,headers:l,fetch:e.fetch,o11yHeaders:d()});g.rerankingModel=y,g.reranking=y,g.chat=g.languageModel,g.embedding=g.embeddingModel,g.image=g.imageModel,g.video=g.videoModel,g.tools=f2}();var p1=p1,f3="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:e.g,f8="1.9.0",f7=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,me=function(e){var t=new Set([e]),r=new Set,i=e.match(f7);if(!i)return function(){return!1};var n={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};if(null!=n.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var i=e.match(f7);if(!i)return a(e);var o={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};if(null!=o.prerelease||n.major!==o.major)return a(e);if(0===n.major)return n.minor===o.minor&&n.patch<=o.patch?(t.add(e),!0):a(e);return n.minor<=o.minor?(t.add(e),!0):a(e)}}(f8),mt=Symbol.for("opentelemetry.js.api."+f8.split(".")[0]);
94function mr(e,t,r,i){void 0===i&&(i=!1);var n,a=f3[mt]=null!=(n=f3[mt])?n:{version:f8};if(!i&&a[e]){var o=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(o.stack||o.message),!1}if(a.version!==f8){var o=Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+f8);return r.error(o.stack||o.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+f8+"."),!0}function mi(e){var t,r,i=null==(t=f3[mt])?void 0:t.version;if(i&&me(i))return null==(r=f3[mt])?void 0:r[e]}function mn(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+f8+".");var r=f3[mt];r&&delete r[e]}var ma=new function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(e){return r._currentContext.get(e)},r.setValue=function(t,i){var n=new e(r._currentContext);return n._currentContext.set(t,i),n},r.deleteValue=function(t){var i=new e(r._currentContext);return i._currentContext.delete(t),i}},mo=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},ms=function(e,t,r){if(r||2==arguments.length)for(var i,n=0,a=t.length;n<a;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},mu=function(){function e(){}return e.prototype.active=function(){return ma},e.prototype.with=function(e,t,r){for(var i=[],n=3;n<arguments.length;n++)i[n-3]=arguments[n];return t.call.apply(t,ms([r],mo(i),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),ml=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},md=function(e,t,r){if(r||2==arguments.length)for(var i,n=0,a=t.length;n<a;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},mc=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mp("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mp("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mp("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mp("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mp("verbose",this._namespace,e)},e}();function mp(e,t,r){var i=mi("diag");if(i)return r.unshift(t),i[e].apply(i,md([],ml(r),!1))}(a=K||(K={}))[a.NONE=0]="NONE",a[a.ERROR=30]="ERROR",a[a.WARN=50]="WARN",a[a.INFO=60]="INFO",a[a.DEBUG=70]="DEBUG",a[a.VERBOSE=80]="VERBOSE",a[a.ALL=9999]="ALL";var mf=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},mm=function(e,t,r){if(r||2==arguments.length)for(var i,n=0,a=t.length;n<a;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},mh=function(){function e(){function e(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=mi("diag");if(i)return i[e].apply(i,mm([],mf(t),!1))}}var t=this;t.setLogger=function(e,r){if(void 0===r&&(r={logLevel:K.INFO}),e===t){var i,n,a,o=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!=(i=o.stack)?i:o.message),!1}"number"==typeof r&&(r={logLevel:r});var s=mi("diag"),u=function(e,t){function r(r,i){var n=t[r];return"function"==typeof n&&e>=i?n.bind(t):function(){}}return e<K.NONE?e=K.NONE:e>K.ALL&&(e=K.ALL),t=t||{},{error:r("error",K.ERROR),warn:r("warn",K.WARN),info:r("info",K.INFO),debug:r("debug",K.DEBUG),verbose
94:r("verbose",K.VERBOSE)}}(null!=(n=r.logLevel)?n:K.INFO,e);if(s&&!r.suppressOverrideMessage){var l=null!=(a=Error().stack)?a:"<failed to generate stacktrace>";s.warn("Current logger will be overwritten from "+l),u.warn("Current logger will overwrite one already registered from "+l)}return mr("diag",u,t,!0)},t.disable=function(){mn("diag",t)},t.createComponentLogger=function(e){return new mc(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),mg=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},mv=function(e,t,r){if(r||2==arguments.length)for(var i,n=0,a=t.length;n<a;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},my="context",m_=new mu,mb=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return mr(my,e,mh.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,r){for(var i,n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a];return(i=this._getContextManager()).with.apply(i,mv([e,t,r],mg(n),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return mi(my)||m_},e.prototype.disable=function(){this._getContextManager().disable(),mn(my,mh.instance())},e}();(o=X||(X={}))[o.NONE=0]="NONE",o[o.SAMPLED=1]="SAMPLED";var m$="0000000000000000",mx="00000000000000000000000000000000",mk={traceId:mx,spanId:m$,traceFlags:X.NONE},mw=function(){function e(e){void 0===e&&(e=mk),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}(),mI=Symbol.for("OpenTelemetry Context Key SPAN");function mS(e){return e.getValue(mI)||void 0}function mE(){return mS(mb.getInstance().active())}function mO(e,t){return e.setValue(mI,t)}function mZ(e){return e.deleteValue(mI)}function mz(e,t){return mO(e,new mw(t))}function mj(e){var t;return null==(t=mS(e))?void 0:t.spanContext()}var mT=/^([0-9a-f]{32})$/i,mU=/^[0-9a-f]{16}$/i;function mN(e){var t,r;return t=e.traceId,mT.test(t)&&t!==mx&&(r=e.spanId,mU.test(r)&&r!==m$)}function mA(e){return new mw(e)}var mP=mb.getInstance(),mD=function(){function e(){}return e.prototype.startSpan=function(e,t,r){if(void 0===r&&(r=mP.active()),null==t?void 0:t.root)return new mw;var i,n=r&&mj(r);return"object"==typeof(i=n)&&"string"==typeof i.spanId&&"string"==typeof i.traceId&&"number"==typeof i.traceFlags&&mN(n)?new mw(n):new mw},e.prototype.startActiveSpan=function(e,t,r,i){if(!(arguments.length<2)){2==arguments.length?o=t:3==arguments.length?(n=t,o=r):(n=t,a=r,o=i);var n,a,o,s=null!=a?a:mP.active(),u=this.startSpan(e,n,s),l=mO(s,u);return mP.with(l,o,void 0,u)}},e}(),mC=new mD,mR=function(){function e(e,t,r,i){this._provider=e,this.name=t,this.version=r,this.options=i}return e.prototype.startSpan=function(e,t,r){return this._getTracer().startSpan(e,t,r)},e.prototype.startActiveSpan=function(e,t,r,i){var n=this._getTracer();return Reflect.apply(n.startActiveSpan,n,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):mC},e}(),mM=new(function(){function e(){}return e.prototype.getTracer=function(e,t,r){return new mD},e}()),mL=function(){function e(){}return e.prototype.getTracer=function(e,t,r){var i;return null!=(i=this.getDelegateTracer(e,t,r))?i:new mR(this,e,t,r)},e.prototype.getDelegate=function(){var e;return null!=(e=this._delegate)?e:mM},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,r){var i;return null==(i=this._delegate)?void 0:i.getTracer(e,t,r)},e}(),mF="trace";(function(){function e(){this._proxyTracerProvider=new mL,this.wrapSpanContext=mA,this.isSpanContextValid=mN,this.deleteSpan=mZ,this.get
94Span=mS,this.getActiveSpan=mE,this.getSpanContext=mj,this.setSpan=mO,this.setSpanContext=mz}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=mr(mF,this._proxyTracerProvider,mh.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return mi(mF)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){mn(mF,mh.instance()),this._proxyTracerProvider=new mL},e})().getInstance(),(s=Y||(Y={}))[s.UNSET=0]="UNSET",s[s.OK=1]="OK",s[s.ERROR=2]="ERROR",mb.getInstance();var mJ=Object.defineProperty,mB=(Symbol.for("vercel.ai.error.AI_InvalidArgumentError"),Symbol.for("vercel.ai.error.AI_InvalidStreamPartError"),Symbol.for("vercel.ai.error.AI_InvalidToolApprovalError"),Symbol.for("vercel.ai.error.AI_InvalidToolApprovalSignatureError"),Symbol.for("vercel.ai.error.AI_InvalidToolInputError"),Symbol.for("vercel.ai.error.AI_ToolCallNotFoundForApprovalError"),Symbol.for("vercel.ai.error.AI_MissingToolResultsError"),Symbol.for("vercel.ai.error.AI_NoImageGeneratedError"),"AI_NoObjectGeneratedError"),mV=`vercel.ai.error.${mB}`,mW=Symbol.for(mV),mq=class extends eh{constructor({message:e="No object generated.",cause:t,text:r,response:i,usage:n,finishReason:a}){super({name:mB,message:e,cause:t}),this[H]=!0,this.text=r,this.response=i,this.usage=n,this.finishReason=a}static isInstance(e){return eh.hasMarker(e,mV)}};H=mW,Symbol.for("vercel.ai.error.AI_NoOutputGeneratedError"),Symbol.for("vercel.ai.error.AI_NoSpeechGeneratedError"),Symbol.for("vercel.ai.error.AI_NoTranscriptGeneratedError"),Symbol.for("vercel.ai.error.AI_NoVideoGeneratedError"),Symbol.for("vercel.ai.error.AI_NoSuchToolError"),Symbol.for("vercel.ai.error.AI_ToolCallRepairError");var mG="AI_UIMessageStreamError",mK=`vercel.ai.error.${mG}`,mX=Symbol.for(mK),mY=class extends eh{constructor({chunkType:e,chunkId:t,message:r}){super({name:mG,message:r}),this[Q]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return eh.hasMarker(e,mK)}};Q=mX,Symbol.for("vercel.ai.error.AI_InvalidDataContentError"),Symbol.for("vercel.ai.error.AI_InvalidMessageRoleError"),Symbol.for("vercel.ai.error.AI_MessageConversionError"),Symbol.for("vercel.ai.error.AI_RetryError");var mH="6.0.208",mQ=async({url:e,maxBytes:t,abortSignal:r})=>{var i;let n=e.toString();try{let e=nw({},`ai-sdk/${mH}`,nx()),a=await nm({url:n,headers:e,abortSignal:r});if(!a.ok)throw await ns(a),new nc({url:n,statusCode:a.status,statusText:a.statusText});return{data:await nh({response:a,url:n,maxBytes:null!=t?t:0x80000000}),mediaType:null!=(i=a.headers.get("content-type"))?i:void 0}}catch(e){if(nc.isInstance(e))throw e;throw new nc({url:n,cause:e})}},m0=p1.union([p1.string(),p1.instanceof(Uint8Array),p1.instanceof(ArrayBuffer),p1.custom(e=>{var t,r;return null!=(r=null==(t=globalThis.Buffer)?void 0:t.isBuffer(e))&&r},{message:"Must be a Buffer"})]),m1=p1.lazy(()=>
94p1.union([p1.null(),p1.string(),p1.number(),p1.boolean(),p1.record(p1.string(),m1.optional()),p1.array(m1)])),m4=p1.record(p1.string(),p1.record(p1.string(),m1.optional())),m6=p1.object({type:p1.literal("text"),text:p1.string(),providerOptions:m4.optional()}),m2=p1.object({type:p1.literal("image"),image:p1.union([m0,p1.instanceof(URL)]),mediaType:p1.string().optional(),providerOptions:m4.optional()}),m9=p1.object({type:p1.literal("file"),data:p1.union([m0,p1.instanceof(URL)]),filename:p1.string().optional(),mediaType:p1.string(),providerOptions:m4.optional()}),m5=p1.object({type:p1.literal("reasoning"),text:p1.string(),providerOptions:m4.optional()}),m3=p1.object({type:p1.literal("tool-call"),toolCallId:p1.string(),toolName:p1.string(),input:p1.unknown(),providerOptions:m4.optional(),providerExecuted:p1.boolean().optional()}),m8=p1.discriminatedUnion("type",[p1.object({type:p1.literal("text"),value:p1.string(),providerOptions:m4.optional()}),p1.object({type:p1.literal("json"),value:m1,providerOptions:m4.optional()}),p1.object({type:p1.literal("execution-denied"),reason:p1.string().optional(),providerOptions:m4.optional()}),p1.object({type:p1.literal("error-text"),value:p1.string(),providerOptions:m4.optional()}),p1.object({type:p1.literal("error-json"),value:m1,providerOptions:m4.optional()}),p1.object({type:p1.literal("content"),value:p1.array(p1.union([p1.object({type:p1.literal("text"),text:p1.string(),providerOptions:m4.optional()}),p1.object({type:p1.literal("media"),data:p1.string(),mediaType:p1.string()}),p1.object({type:p1.literal("file-data"),data:p1.string(),mediaType:p1.string(),filename:p1.string().optional(),providerOptions:m4.optional()}),p1.object({type:p1.literal("file-url"),url:p1.string(),providerOptions:m4.optional()}),p1.object({type:p1.literal("file-id"),fileId:p1.union([p1.string(),p1.record(p1.string(),p1.string())]),providerOptions:m4.optional()}),p1.object({type:p1.literal("image-data"),data:p1.string(),mediaType:p1.string(),providerOptions:m4.optional()}),p1.object({type:p1.literal("image-url"),url:p1.string(),providerOptions:m4.optional()}),p1.object({type:p1.literal("image-file-id"),fileId:p1.union([p1.string(),p1.record(p1.string(),p1.string())]),providerOptions:m4.optional()}),p1.object({type:p1.literal("custom"),providerOptions:m4.optional()})]))})]),m7=p1.object({type:p1.literal("tool-result"),toolCallId:p1.string(),toolName:p1.string(),output:m8,providerOptions:m4.optional()}),he=p1.object({type:p1.literal("tool-approval-request"),approvalId:p1.string(),toolCallId:p1.string()}),ht=p1.object({type:p1.literal("tool-approval-response"),approvalId:p1.string(),approved:p1.boolean(),reason:p1.string().optional()}),hr=p1.object({role:p1.literal("system"),content:p1.string(),providerOptions:m4.optional()}),hi=p1.object({role:p1.literal("user"),content:p1.union([p1.string(),p1.array(p1.union([m6,m2,m9]))]),providerOptions:m4.optional()}),hn=p1.object({role:p1.literal("assistant"),content:p1.union([p1.string(),p1.array(p1.union([m6,m9,m5,m3,m7,he]))]),providerOptions:m4.optional()}),ha=p1.object({role:p1.literal("tool"),content:p1.array(p1.union([m7,ht])),providerOptions:m4.optional()});p1.union([hr,hi,hn,ha]),new TextEncoder;var ho={},hs={array:()=>hp,choice:()=>hf,json:()=>hm,object:()=>hc,text:()=>hd};for(var hu in hs)mJ(ho,hu,{get:hs[hu],enumerable:!0});async function hl(e){if(void 0===e)return{value:void 0,state:"undefined-input"};let t=await aa({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await aa({text:function(e){let t=["ROOT"],r=-1,i=null,n=0;function a(e,n,a){switch(e){case'"':r=n,t.pop(),t.push(a),t.push("INSIDE_STRING");break;case"f":case"t":case"n":r=n,i=n,t.pop(),t.push(a),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=n,t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"{":r=n,t.pop(),t.push(a),t.push("INSIDE_OBJECT_START");break;case"[":r=n,t.pop(),t.push(a),t.push("INSIDE_ARRAY_START")}}function o(e,i){switch(e){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":r=i,t.pop()}}function s(e,i){switch(e){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=i,t.pop()}}for(let u=0;u<e.length;u++){let l=e[u];switch(t[t.length-1]){case"ROOT":a(l,u,"FINISH");break;case"INSIDE_OBJECT_START":switch(l){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":r=u,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":":"===l&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":a(l,u,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":o(l,u);break;case"INSIDE_STRING":switch(l){case'"':t.pop(),r=u;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:r=u}break;case"INSIDE_ARRAY_START":"]"===l?(r=u,t.pop()):(r=u,a(l,u,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(l){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=u,t.pop();break;default:r=u}break;case"INSIDE_ARRAY_AFTER_COMMA":a(l,u,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),"u"===l?(n=0,t.push("INSIDE_STRING_UNICODE_ESCAPE")):r=u;break;case"INSIDE_STRING_UNICODE_ESCAPE":(l>="0"&&l<="9"||l>="A"&&l<="F"||l>="a"&&l<="f")&&4==++n&&(t.pop(),r=u);break;case"INSIDE_NUMBER":switch(l){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=u;break;case"e":case"E":case"-":case".":break;case",":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(l,u),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&o(l,u);break;case"}":t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&o(l,u);break;case"]":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(l,u);break;default:t.pop()}break;case"INSIDE_LITERAL":{let n=e.substring(i,u+1);"false".startsWith(n)||"true".startsWith(n)||"null".startsWith(n)?r=u:(t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]?o(l,u):"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(l,u))}}}let u=e.slice(0,r+1);for(let r=t.length-1;r>=0;r--)switch(t[r]){case"INSIDE_STRING":u+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":u+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":u+="]";break;case"INSIDE_LITERAL":{let t=e.substring(i,e.length);"true".startsWith(t)?u+="true".slice(t.length):"false".startsWith(t)?u+="false".slice(t.length):"null".startsWith(t)&&(u+="null".slice(t.length))}}return u}(e)})).success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"}}var hd=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),parseCompleteOutput:async({text:e})=>e,parsePartialOutput:async({text:e})=>({partial:e}),createElementStreamTransform(){}}),hc=({schema:e,name:t,description:r})=>{let i=ae(e);return{name:"object",responseFormat:ac(i.jsonSchema).then(e=>({type:"json",schema:e,...null!=t&&{name:t},...null!=r&&{description:r}})),async parseCompleteOutput({text:e},t){let r=await aa({text:e});if(!r.success)throw new mq({message:"No object generated: could not parse the response.",cause:r.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let n=await ai({value:r.value,schema:i});if(!n.success)throw new mq({message:"No object generated: response did not match sc
94hema.",cause:n.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});return n.value},async parsePartialOutput({text:e}){let t=await hl(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:t.value}}},createElementStreamTransform(){}}},hp=({element:e,name:t,description:r})=>{let i=ae(e);return{name:"array",responseFormat:ac(i.jsonSchema).then(e=>{let{$schema:i,...n}=e;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:n}},required:["elements"],additionalProperties:!1},...null!=t&&{name:t},...null!=r&&{description:r}}}),async parseCompleteOutput({text:e},t){let r=await aa({text:e});if(!r.success)throw new mq({message:"No object generated: could not parse the response.",cause:r.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let n=r.value;if(null==n||"object"!=typeof n||!("elements"in n)||!Array.isArray(n.elements))throw new mq({message:"No object generated: response did not match schema.",cause:new eC({value:n,cause:"response must be an object with an elements array"}),text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});for(let r of n.elements){let n=await ai({value:r,schema:i});if(!n.success)throw new mq({message:"No object generated: response did not match schema.",cause:n.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason})}return n.elements},async parsePartialOutput({text:e}){let t=await hl(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let e=t.value;if(null==e||"object"!=typeof e||!("elements"in e)||!Array.isArray(e.elements))return;let r="repaired-parse"===t.state&&e.elements.length>0?e.elements.slice(0,-1):e.elements,n=[];for(let e of r){let t=await ai({value:e,schema:i});t.success&&n.push(t.value)}return{partial:n}}}},createElementStreamTransform(){let e=0;return new TransformStream({transform({partialOutput:t},r){if(null!=t)for(;e<t.length;e++)r.enqueue(t[e])}})}}},hf=({options:e,name:t,description:r})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...null!=t&&{name:t},...null!=r&&{description:r}}),async parseCompleteOutput({text:t},r){let i=await aa({text:t});if(!i.success)throw new mq({message:"No object generated: could not parse the response.",cause:i.error,text:t,response:r.response,usage:r.usage,finishReason:r.finishReason});let n=i.value;if(null==n||"object"!=typeof n||!("result"in n)||"string"!=typeof n.result||!e.includes(n.result))throw new mq({message:"No object generated: response did not match schema.",cause:new eC({value:n,cause:"response must be an object that contains a choice value."}),text:t,response:r.response,usage:r.usage,finishReason:r.finishReason});return n.result},async parsePartialOutput({text:t}){let r=await hl(t);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let t=r.value;if(null==t||"object"!=typeof t||!("result"in t)||"string"!=typeof t.result)return;let i=e.filter(e=>e.startsWith(t.result));if("successful-parse"===r.state)return i.includes(t.result)?{partial:t.result}:void 0;return 1===i.length?{partial:i[0]}:void 0}}},createElementStreamTransform(){}}),hm=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...null!=e&&{name:e},...null!=t&&{description:t}}),async parseCompleteOutput({text:e},t){let r=await aa({text:e});if(!r.success)throw new mq({message:"No object generated: could not parse the response.",cause:r.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});return r.value},async parsePartialOutput({text:e}){let t=await hl(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return void 0===t.value?void 0:{partial:t.value}}},createElementStreamTransform(){}});ng({prefix:"aitxt",size:24}),TransformStream;var hh=p1.record(p1.string(),m1.optional()),hg=n8(()=>at(p1.union([p1.strictObject({type:p1.literal("text-start"),id:p1.string(),providerMetadata:m4.optional()}),p1.strictObject({type:p1.literal("text-delta"),id:p1.string(),delta:p1.string(),providerMetadata:m4.optional()}),p1.strictObject({type:p1.literal("text-end"),id:p1.string(),providerMetadata:m4.optional()}),p1.strictObject({type:p1.literal("error"),errorText:p1.string()}),p1.strictObject({type:p1.literal("tool-input-start"),toolCallId:p1.string(),toolName:p1.string(),providerExecuted:p1.boolean().optional(),providerMetadata:m4.optional(),toolMetadata:hh.optional(),dynamic:
94p1.boolean().optional(),title:p1.string().optional()}),p1.strictObject({type:p1.literal("tool-input-delta"),toolCallId:p1.string(),inputTextDelta:p1.string()}),p1.strictObject({type:p1.literal("tool-input-available"),toolCallId:p1.string(),toolName:p1.string(),input:p1.unknown(),providerExecuted:p1.boolean().optional(),providerMetadata:m4.optional(),toolMetadata:hh.optional(),dynamic:p1.boolean().optional(),title:p1.string().optional()}),p1.strictObject({type:p1.literal("tool-input-error"),toolCallId:p1.string(),toolName:p1.string(),input:p1.unknown(),providerExecuted:p1.boolean().optional(),providerMetadata:m4.optional(),toolMetadata:hh.optional(),dynamic:p1.boolean().optional(),errorText:p1.string(),title:p1.string().optional()}),p1.strictObject({type:p1.literal("tool-approval-request"),approvalId:p1.string(),toolCallId:p1.string(),signature:p1.string().optional()}),p1.strictObject({type:p1.literal("tool-output-available"),toolCallId:p1.string(),output:p1.unknown(),providerExecuted:p1.boolean().optional(),providerMetadata:m4.optional(),toolMetadata:hh.optional(),dynamic:
94p1.boolean().optional(),preliminary:p1.boolean().optional()}),p1.strictObject({type:p1.literal("tool-output-error"),toolCallId:p1.string(),errorText:p1.string(),providerExecuted:p1.boolean().optional(),providerMetadata:m4.optional(),toolMetadata:hh.optional(),dynamic:p1.boolean().optional()}),p1.strictObject({type:p1.literal("tool-output-denied"),toolCallId:p1.string()}),p1.strictObject({type:p1.literal("reasoning-start"),id:p1.string(),providerMetadata:m4.optional()}),p1.strictObject({type:p1.literal("reasoning-delta"),id:p1.string(),delta:p1.string(),providerMetadata:m4.optional()}),p1.strictObject({type:p1.literal("reasoning-end"),id:p1.string(),providerMetadata:m4.optional()}),p1.strictObject({type:p1.literal("source-url"),sourceId:p1.string(),url:p1.string(),title:p1.string().optional(),providerMetadata:m4.optional()}),p1.strictObject({type:p1.literal("source-document"),sourceId:p1.string(),mediaType:p1.string(),title:p1.string(),filename:p1.string().optional(),providerMetadata:m4.optional()}),p1.strictObject({type:p1.literal("file"),url:p1.string(),mediaType:p1.string(),providerMetadata:m4.optional()}),p1.strictObject({type:p1.custom(e=>"string"==typeof e&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:p1.string().optional(),data:p1.unknown(),transient:p1.boolean().optional()}),p1.strictObject({type:p1.literal("start-step")}),p1.strictObject({type:p1.literal("finish-step")}),p1.strictObject({type:p1.literal("start"),messageId:p1.string().optional(),messageMetadata:p1.unknown().optional()}),p1.strictObject({type:p1.literal("finish"),finishReason:p1.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:p1.unknown().optional()}),p1.strictObject({type:p1.literal("abort"),reason:p1.string().optional()}),p1.strictObject({type:p1.literal("message-metadata"),messageMetadata:p1.unknown()})])));function hv(){return Object.create(null)}function hy(e){return e.type.startsWith("tool-")}function h_(e){return hy(e)||"dynamic-tool"===e.type}function hb(e){return e.type.split("-").slice(1).join("-")}async function h$({stream:e,onError:t}){let r=e.getReader();try{for(;;){let{done:e}=await r.read();if(e)break}}catch(e){null==t||t(e)}finally{r.releaseLock()}}ng({prefix:"aitxt",size:24});var hx=p1.record(p1.string(),m1.optional());function hk(e){return({url:t,abortSignal:r})=>mQ({url:t,maxBytes:null==e?void 0:e.maxBytes,abortSignal:r})}n8(()=>at(p1.array(p1.object({id:p1.string(),role:p1.enum(["system","user","assistant"]),metadata:p1.unknown().optional(),parts:p1.array(p1.union([p1.object({type:p1.literal("text"),text:p1.string(),state:p1.enum(["streaming","done"]).optional(),providerMetadata:m4.optional()}),p1.object({type:p1.literal("reasoning"),text:p1.string(),state:p1.enum(["streaming","done"]).optional(),providerMetadata:m4.optional()}),p1.object({type:p1.literal("source-url"),sourceId:p1.string(),url:p1.string(),title:p1.string().optional(),providerMetadata:m4.optional()}),p1.object({type:p1.literal("source-document"),sourceId:p1.string(),mediaType:p1.string(),title:p1.string(),filename:p1.string().optional(),providerMetadata:m4.optional()}),p1.object({type:p1.literal("file"),mediaType:p1.string(),filename:p1.string().optional(),url:p1.string(),providerMetadata:m4.optional()}),p1.object({type:p1.literal("step-start")}),p1.object({type:p1.string().startsWith("data-"),id:p1.string().optional(),data:p1.unknown()}),p1.object({type:p1.literal("dynamic-tool"),toolName:p1.string(),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("input-streaming"),input:p1.unknown().optional(),providerExecuted:p1.boolean().optional(),callProviderMetadata:m4.optional(),output:p1.never().optional(),errorText:p1.never().optional(),approval:p1.never().optional()}),p1.object({type:p1.literal("dynamic-tool"),toolName:p1.string(),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("input-available"),input:p1.unknown(),providerExecuted:p1.boolean().optional(),output:p1.never().optional(),errorText:p1.never().optional(),callProviderMetadata:m4.optional(),approval:p1.never().optional()}),p1.object({type:p1.literal("dynamic-tool"),toolName:p1.string(),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("approval-requested"),input:p1.unknown(),providerExecuted:p1.boolean().optional(),output:p1.never().optional(),errorText:p1.never().optional(),callProviderMetadata:m4.optional(),approval:p1.object({id:p1.string(),approved:p1.never().optional(),reason:p1.never().optional(),signature:p1.string().optional()})}),p1.object({type:p1.literal("dynamic-tool"),toolName:p1.string(),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("approval-responded"),input:p1.unknown(),providerExecuted:p1.boolean().optional(),output:p1.never().optional(),errorText:p1.never().optional(),callProviderMetadata:m4.optional(),approval:p1.object({id:p1.string(),approved:p1.boolean(),reason:p1.string().optional(),signature:p1.string().optional()})}),p1.object({type:p1.literal("dynamic-tool"),toolName:p1.string(),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("output-available"),input:p1.unknown(),providerExecuted:p1.boolean().optional(),output:p1.unknown(),errorText:p1.never().optional(),callProviderMetadata:m4.optional(),resultProviderMetadata:m4.optional(),preliminary:p1.boolean().optional(),approval:p1.object({id:p1.string(),approved:p1.literal(!0),reason:p1.string().optional(),signature:p1.string().optional()}).optional()}),p1.object({type:p1.literal("dynamic-tool"),toolName:p1.string(),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("output-error"),input:p1.unknown().optional(),rawInput:p1.unknown().optional(),providerExecuted:p1.boolean().optional(),output:p1.never().optional(),errorText:p1.string(),callProviderMetadata:m4.optional(),resultProviderMetadata:m4.optional(),approval:p1.object({id:p1.string(),approved:p1.literal(!0),reason:p1.string().optional(),signature:p1.string().optional()}).optional()}),p1.object({type:p1.literal("dynamic-tool"),toolName:p1.string(),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("output-denied"),input:p1.unknown(),providerExecuted:p1.boolean().optional(),output:p1.never().optional(),errorText:p1.never().optional(),callProviderMetadata:m4.optional(),approval:p1.object({id:p1.string(),approved:p1.literal(!1),reason:p1.string().optional(),signature:p1.string().optional()})}),p1.object({type:p1.string().startsWith("tool-"),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("input-streaming"),providerExecuted:p1.boolean().optional(),callProviderMetadata:m4.optional(),input
94:p1.unknown().optional(),output:p1.never().optional(),errorText:p1.never().optional(),approval:p1.never().optional()}),p1.object({type:p1.string().startsWith("tool-"),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("input-available"),providerExecuted:p1.boolean().optional(),input:p1.unknown(),output:p1.never().optional(),errorText:p1.never().optional(),callProviderMetadata:m4.optional(),approval:p1.never().optional()}),p1.object({type:p1.string().startsWith("tool-"),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("approval-requested"),input:p1.unknown(),providerExecuted:p1.boolean().optional(),output:p1.never().optional(),errorText:p1.never().optional(),callProviderMetadata:m4.optional(),approval:p1.object({id:p1.string(),approved:p1.never().optional(),reason:p1.never().optional(),signature:p1.string().optional()})}),p1.object({type:p1.string().startsWith("tool-"),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("approval-responded"),input:p1.unknown(),providerExecuted:p1.boolean().optional(),output:p1.never().optional(),errorText:p1.never().optional(),callProviderMetadata:m4.optional(),approval:p1.object({id:p1.string(),approved:p1.boolean(),reason:p1.string().optional(),signature:p1.string().optional()})}),p1.object({type:p1.string().startsWith("tool-"),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("output-available"),providerExecuted:p1.boolean().optional(),input:p1.unknown(),output:p1.unknown(),errorText:p1.never().optional(),callProviderMetadata:m4.optional(),resultProviderMetadata:m4.optional(),preliminary:p1.boolean().optional(),approval:p1.object({id:p1.string(),approved:p1.literal(!0),reason:p1.string().optional(),signature:p1.string().optional()}).optional()}),p1.object({type:p1.string().startsWith("tool-"),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("output-error"),providerExecuted:p1.boolean().optional(),input:p1.unknown().optional(),rawInput:p1.unknown().optional(),output:p1.never().optional(),errorText:p1.string(),callProviderMetadata:m4.optional(),resultProviderMetadata:m4.optional(),approval:p1.object({id:p1.string(),approved:p1.literal(!0),reason:p1.string().optional(),signature:p1.string().optional()}).optional()}),p1.object({type:p1.string().startsWith("tool-"),toolCallId:p1.string(),toolMetadata:hx.optional(),state:p1.literal("output-denied"),providerExecuted:p1.boolean().optional(),input:p1.unknown(),output:p1.never().optional(),errorText:p1.never().optional(),callProviderMetadata:m4.optional(),approval:p1.object({id:p1.string(),approved:p1.literal(!1),reason:p1.string().optional(),signature:p1.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty"))),ng({prefix:"aiobj",size:24});var hw=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,r)=>{this.queue.push(async()=>{try{await e(),t()}catch(e){r(e)}}),this.processQueue()})}};async function hI({stream:e,onTextPart:t}){let r=e.pipeThrough(new TextDecoderStream).getReader();for(;;){let{done:e,value:i}=await r.read();if(e)break;await t(i)}}async function hS({api:e,prompt:t,credentials:r,headers:i,body:n,streamProtocol:a="data",setCompletion:o,setLoading:s,setError:u,setAbortController:l,onFinish:d,onError:c,fetch:p=fetch}){var f;try{s(!0),u(void 0);let c=new AbortController;l(c),o("");let m=await p(e,{method:"POST",body:JSON.stringify({prompt:t,...n}),credentials:r,headers:nw({"Content-Type":"application/json",...i},`ai-sdk/${mH}`,nx()),signal:c.signal}).catch(e=>{throw e});if(!m.ok)throw Error(null!=(f=await m.text())?f:"Failed to fetch the chat response.");if(!m.body)throw Error("The response body is empty.");let h="";switch(a){case"text":await hI({stream:m.body,onTextPart:e=>{h+=e,o(h)}});break;case"data":await h$({stream:ao({stream:m.body,schema:hg}).pipeThrough(new TransformStream({async transform(e){if(!e.success)throw e.error;let t=e.value;if("text-delta"===t.type)h+=t.delta,o(h);else if("error"===t.type)throw Error(t.errorText)}})),onError:e=>{throw e}});break;default:throw Error(`Unknown stream protocol: ${a}`)}return d&&d(t,h),l(null),h}catch(e){if("AbortError"===e.name)return l(null),null;e instanceof Error&&c&&c(e),u(e)}finally{s(!1)}}async function hE(e){if(null==e)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async e=>{let{name:t,type:r}=e;return{type:"file",mediaType:r,filename:t,url:await new Promise((t,r)=>{let i=new FileReader;i.onload=e=>{var r;t(null==(r=e.target)?void 0:r.result)},i.onerror=e=>r(e),i.readAsDataURL(e)})}}))}ng({prefix:"aiobj",size:24}
94),hk(),Symbol.for("vercel.ai.error.AI_NoSuchProviderError"),hk();var hO=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:i,fetch:n,prepareSendMessagesRequest:a,prepareReconnectToStreamRequest:o}){this.api=e,this.credentials=t,this.headers=r,this.body=i,this.fetch=n,this.prepareSendMessagesRequest=a,this.prepareReconnectToStreamRequest=o}async sendMessages({abortSignal:e,...t}){var r,i,n,a,o;let s=await ac(this.body),u=await ac(this.headers),l=await ac(this.credentials),d={...nk(u),...nk(t.headers)},c=await (null==(r=this.prepareSendMessagesRequest)?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:d,credentials:l,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),p=null!=(i=null==c?void 0:c.api)?i:this.api,f=(null==c?void 0:c.headers)!==void 0?nk(c.headers):d,m=(null==c?void 0:c.body)!==void 0?c.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},h=null!=(n=null==c?void 0:c.credentials)?n:l,g=null!=(a=this.fetch)?a:globalThis.fetch,v=await g(p,{method:"POST",headers:{"Content-Type":"application/json",...f},body:JSON.stringify(m),credentials:h,signal:e});if(!v.ok)throw Error(null!=(o=await v.text())?o:"Failed to fetch the chat response.");if(!v.body)throw Error("The response body is empty.");return this.processResponseStream(v.body)}async reconnectToStream(e){var t,r,i,n,a;let o=await ac(this.body),s=await ac(this.headers),u=await ac(this.credentials),l={...nk(s),...nk(e.headers)},d=await (null==(t=this.prepareReconnectToStreamRequest)?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...o,...e.body},headers:l,credentials:u,requestMetadata:e.metadata})),c=null!=(r=null==d?void 0:d.api)?r:`${this.api}/${e.chatId}/stream`,p=(null==d?void 0:d.headers)!==void 0?nk(d.headers):l,f=null!=(i=null==d?void 0:d.credentials)?i:u,m=null!=(n=this.fetch)?n:globalThis.fetch,h=await m(c,{method:"GET",headers:p,credentials:f});if(204===h.status)return null;if(!h.ok)throw Error(null!=(a=await h.text())?a:"Failed to fetch the chat response.");if(!h.body)throw Error("The response body is empty.");return this.processResponseStream(h.body)}},hZ=class extends hO{constructor(e={}){super(e)}processResponseStream(e){return ao({stream:e,schema:hg}).pipeThrough(new TransformStream({async transform(e,t){if(!e.success)throw e.error;t.enqueue(e.value)}}))}},hz=class{constructor({generateId:e=nv,id:t=e(),transport:r=new hZ,messageMetadataSchema:i,dataPartSchemas:n,state:a,onError:o,onToolCall:s,onFinish:u,onData:l,sendAutomaticallyWhen:d}){this.activeResponse=void 0,this.jobExecutor=new hw,this.sendMessage=async(e,t)=>{var r,i,n,a;let o;if(null==e)return void await this.makeRequest({trigger:"submit-message",messageId:null==(r=this.lastMessage)?void 0:r.id,...t});if(o="text"in e||"files"in e?{parts:[...Array.isArray(e.files)?e.files:await hE(e.files),..."text"in e&&null!=e.text?[{type:"text",text:e.text}]:[]]}:e,null!=e.messageId){let t=this.state.messages.findIndex(t=>t.id===e.messageId);if(-1===t)throw Error(`message with id ${e.messageId} not found`);if("user"!==this.state.messages[t].role)throw Error(`message with id ${e.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,t+1),this.state.replaceMessage(t,{...o,id:e.messageId,role:null!=(i=o.role)?i:"user",metadata:e.metadata})}else this.state.pushMessage({...o,id:null!=(n=o.id)?n:this.generateId(),role:null!=(a=o.role)?a:"user",metadata:e.metadata});await this.makeRequest({trigger:"submit-message",messageId:e.messageId,...t})},this.regenerate=async({messageId:e,...t}={})=>{let r=null==e?this.state.messages.length-1:this.state.messages.findIndex(t=>t.id===e);if(-1===r)throw Error(`message ${e} not found`);this.state.messages=this.state.messages.slice(0,"assistant"===this.messages[r].role?r:r+1),await this.makeRequest({trigger:"regenerate-message",messageId:e,...t})},this.resumeStream=async(e={})=>{await this.makeRequest({trigger:"resume-stream",...e})},this.clearError=()=>{"error"===this.status&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:e,approved:t,reason:r,options:i})=>this.jobExecutor.run(async()=>{let n=this.state.messages,a=n[n.length-1],o=i=>h_(i)&&"approval-requested"===i.state&&i.approval.id===e?{...i,state:"approval-responded",approval:{id:e,approved:t,reason:r}}:i;this.state.replaceMessage(n.length-1,{...a,parts:a.parts.map(o)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(o)),"streaming"!==this.status&&"submitted"!==this.status&&this.sendAutomaticallyWhen&&this.shouldSe
94ndAutomatically().then(e=>{var t;e&&this.makeRequest({trigger:"submit-message",messageId:null==(t=this.lastMessage)?void 0:t.id,...i})})}),this.addToolOutput=async({state:e="output-available",toolCallId:t,output:r,errorText:i,options:n})=>this.jobExecutor.run(async()=>{let a=this.state.messages,o=a[a.length-1],s=n=>h_(n)&&n.toolCallId===t?{...n,state:e,output:r,errorText:i}:n;this.state.replaceMessage(a.length-1,{...o,parts:o.parts.map(s)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(s)),"streaming"!==this.status&&"submitted"!==this.status&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(e=>{var t;e&&this.makeRequest({trigger:"submit-message",messageId:null==(t=this.lastMessage)?void 0:t.id,...n})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var e;("streaming"===this.status||"submitted"===this.status)&&(null==(e=this.activeResponse)?void 0:e.abortController)&&this.activeResponse.abortController.abort()},this.id=t,this.transport=r,this.generateId=e,this.messageMetadataSchema=i,this.dataPartSchemas=n,this.state=a,this.onError=o,this.onToolCall=s,this.onFinish=u,this.onData=l,this.sendAutomaticallyWhen=d}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;let e=this.sendAutomaticallyWhen({messages:this.state.messages});return e&&"object"==typeof e&&"then"in e?await e:e}async makeRequest({trigger:e,metadata:t,headers:r,body:i,messageId:n}){var a,o,s;let u;if("resume-stream"===e)try{let e=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:i});if(null==e)return;u=e}catch(e){this.onError&&e instanceof Error&&this.onError(e),this.setStatus({status:"error",error:e});return}this.setStatus({status:"submitted",error:void 0});let l=this.lastMessage,d=!1,c=!1,p=!1;try{let a,o={state:function({lastMessage:e,messageId:t}){return{message:(null==e?void 0:e.role)==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:hv(),activeReasoningParts:hv(),partialToolCalls:hv()}}({lastMessage:this.state.snapshot(l),messageId:this.generateId()}),abortController:new AbortController};o.abortController.signal.addEventListener("abort",()=>{d=!0}),this.activeResponse=o,a="resume-stream"===e?u:await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:o.abortController.signal,metadata:t,headers:r,body:i,trigger:e,messageId:n});let s=e=>this.jobExecutor.run(()=>e({state:o.state,write:()=>{var e;this.setStatus({status:"streaming"}),o.state.message.id===(null==(e=this.lastMessage)?void 0:e.id)?this.state.replaceMessage(this.state.messages.length-1,o.state.message):this.state.pushMessage(o.state.message)}}));await h$({stream:function({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:i,onError:n,onToolCall:a,onData:o}){return e.pipeThrough(new TransformStream({async transform(e,s){await i(async({state:i,write:u})=>{var l,d,c,p;function f(e){let t=i.message.parts.filter(h_).find(t=>t.toolCallId===e);if(null==t)throw new mY({chunkType:"tool-invocation",chunkId:e,message:`No tool invocation found for tool call ID "${e}".`});return t}function m(e){var t;let r=i.message.parts.find(t=>hy(t)&&t.toolCallId===e.toolCallId);if(null!=r){r.state=e.state,r.input=e.input,r.output=e.output,r.errorText=e.errorText,r.rawInput=e.rawInput,r.preliminary=e.preliminary,void 0!==e.title&&(r.title=e.title),void 0!==e.toolMetadata&&(r.toolMetadata=e.toolMetadata),r.providerExecuted=null!=(t=e.providerExecuted)?t:r.providerExecuted;let i=e.providerMetadata;null!=i&&("output-available"===e.state||"output-error"===e.state?r.resultProviderMetadata=i:r.callProviderMetadata=i)}else i.message.parts.push({type:`tool-${e.toolName}`,toolCallId:e.toolCallId,state:e.state,title:e.title,...void 0!==e.toolMetadata?{toolMetadata:e.toolMetadata}:{},input:e.input,output:e.output,rawInput:e.rawInput,errorText:e.errorText,providerExecuted:e.providerExecuted,preliminary:e.preliminary,...null!=e.providerMetadata&&("output-available"===e.state||"output-error"===e.state)?{resultProviderMetadata:e.providerMetadata}:{}
94,...null!=e.providerMetadata&&"output-available"!==e.state&&"output-error"!==e.state?{callProviderMetadata:e.providerMetadata}:{}})}function h(e){var t,r;let n=i.message.parts.find(t=>"dynamic-tool"===t.type&&t.toolCallId===e.toolCallId);if(null!=n){n.state=e.state,n.toolName=e.toolName,n.input=e.input,n.output=e.output,n.errorText=e.errorText,n.rawInput=null!=(t=e.rawInput)?t:n.rawInput,n.preliminary=e.preliminary,void 0!==e.title&&(n.title=e.title),void 0!==e.toolMetadata&&(n.toolMetadata=e.toolMetadata),n.providerExecuted=null!=(r=e.providerExecuted)?r:n.providerExecuted;let i=e.providerMetadata;null!=i&&("output-available"===e.state||"output-error"===e.state?n.resultProviderMetadata=i:n.callProviderMetadata=i)}else i.message.parts.push({type:"dynamic-tool",toolName:e.toolName,toolCallId:e.toolCallId,state:e.state,input:e.input,output:e.output,errorText:e.errorText,preliminary:e.preliminary,providerExecuted:e.providerExecuted,title:e.title,...void 0!==e.toolMetadata?{toolMetadata:e.toolMetadata}:{},...null!=e.providerMetadata&&("output-available"===e.state||"output-error"===e.state)?{resultProviderMetadata:e.providerMetadata}:{},...null!=e.providerMetadata&&"output-available"!==e.state&&"output-error"!==e.state?{callProviderMetadata:e.providerMetadata}:{}})}async function g(e){if(null!=e){let r=null!=i.message.metadata?function e(t,r){if(void 0===t&&void 0===r)return;if(void 0===t)return r;if(void 0===r)return t;let i={...t};for(let n in r)if("__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&Object.prototype.hasOwnProperty.call(r,n)){let a=r[n];if(void 0===a)continue;let o=n in t?t[n]:void 0,s=null!==a&&"object"==typeof a&&!Array.isArray(a)&&!(a instanceof Date)&&!(a instanceof RegExp),u=null!=o&&"object"==typeof o&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);s&&u?i[n]=e(o,a):i[n]=a}return i}(i.message.metadata,e):e;null!=t&&await ar({value:r,schema:t,context:{field:"message.metadata",entityId:i.message.id}}),i.message.metadata=r}}switch(e.type){case"text-start":{let t={type:"text",text:"",providerMetadata:e.providerMetadata,state:"streaming"};i.activeTextParts[e.id]=t,i.message.parts.push(t),u();break}case"text-delta":{let t=i.activeTextParts[e.id];if(null==t)throw new mY({chunkType:"text-delta",chunkId:e.id,message:`Received text-delta for missing text part with ID "${e.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});t.text+=e.delta,t.providerMetadata=null!=(l=e.providerMetadata)?l:t.providerMetadata,u();break}case"text-end":{let t=i.activeTextParts[e.id];if(null==t)throw new mY({chunkType:"text-end",chunkId:e.id,message:`Received text-end for missing text part with ID "${e.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});t.state="done",t.providerMetadata=null!=(d=e.providerMetadata)?d:t.providerMetadata,delete i.activeTextParts[e.id],u();break}case"reasoning-start":{let t={type:"reasoning",text:"",providerMetadata:e.providerMetadata,state:"streaming"};i.activeReasoningParts[e.id]=t,i.message.parts.push(t),u();break}case"reasoning-delta":{let t=i.activeReasoningParts[e.id];if(null==t)throw new mY({chunkType:"reasoning-delta",chunkId:e.id,message:`Received reasoning-delta for missing reasoning part with ID "${e.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});t.text+=e.delta,t.providerMetadata=null!=(c=e.providerMetadata)?c:t.providerMetadata,u();break}case"reasoning-end":{let t=i.activeReasoningParts[e.id];if(null==t)throw new mY({chunkType:"reasoning-end",chunkId:e.id,message:`Received reasoning-end for missing reasoning part with ID "${e.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});t.providerMetadata=null!=(p=e.providerMetadata)?p:t.providerMetadata,t.state="done",delete i.activeReasoningParts[e.id],u();break}case"file":i.message.parts.push({type:"file",mediaType:e.mediaType,url:e.url,...null!=e.providerMetadata?{providerMetadata:e.providerMetadata}:{}}),u();break;case"source-url":i.message.parts.push({type:"source-url",sourceId:e.sourceId,url:e.url,title:e.title,providerMetadata:e.providerMetadata}),u();break;case"source-document":i.message.parts.push({type:"source-document",sourceId:e.sourceId,mediaType:e.mediaType,title:e.title,filename:e.filename,providerMetadata:e.providerMetadata}),u();break;case"tool-input-start":{let t=i.message.parts.filter(hy);i.partialToolCalls[e.toolCallId]={text:"",toolName:e.toolName,index:t.length,dynamic:e.dynamic,title:e.title,toolMetadata:e.toolMetadata},e.dynamic?h({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0,providerExecuted:e.providerExecuted,title:e.title,toolMetadata:e.toolMetadata,providerMetadata:e.providerMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0,providerExecuted:e.providerExecuted,title:e.title,toolMetadata:e.toolMetadata,providerMetadata:e.providerMetadata}),u();break}case"tool-input-delta":{let t=i.partialToolCalls[e.toolCallId];if(null==t)throw new mY({chunkType:"tool-input-delta",chunkId:e.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${e.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});t.text+=e.inputTextDelta;let{value:r}=await hl(t.text);t.dynamic?h({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:r,title:t.title,toolMetadata:t.toolMetadata}):m({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:r,title:t.title,toolMetadata:t.toolMetadata}),u();break}case"tool-input-available":e.dynamic?h({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:e.title,toolMetadata:e.toolMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:e.title,toolMetadata:e.toolMetadata}),u(),a&&!e.providerExecuted&&await a({toolCall:e});break;case"tool-input-error":{let t=i.message.parts.filter(h_).find(t=>t.toolCallId===e.toolCallId);(null!=t?"dynamic-tool"===t.type:e.dynamic)?h({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,toolMetadata:e.toolMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:void 0,rawInput:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,toolMetadata:e.toolMetadata}),u();break}case"tool-approval-request":{let t=f(e.toolCallId);t.state="approval-requested",t.approval={id:e.approvalId,...null!=e.signature?{signature:e.signature}:{}},u();break}case"tool-output-denied":f(e.toolCallId).state="output-denied",u();break;case"tool-output-available":{let t=f(e.toolCallId);"dynamic-tool"===t.type?h({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-available",input:t.input,output:e.output,preliminary:e.preliminary,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata}):m({toolCallId:e.toolCallId,toolName:hb(t),state:"output-available",input:t.input,output:e.output,providerExecuted:e.providerExecuted,preliminary:e.preliminary,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata}),u();break}case"tool-output-error":{let t=f(e.toolCallId);"dynamic-tool"===t.type?h({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-error",input:t.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata}):m({toolCallId:e.toolCallId,toolName:hb(t),state:"output-error",input:t.input,rawInput:t.rawInput,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata}),u();break}case"start-step":i.message.parts.push({type:"step-start"});break;case"finish-step":i.activeTextParts=hv(),i.activeReasoningParts=hv();break;case"start":null!=e.messageId&&(i.message.id=e.messageId),await g(e.messageMetadata),(null!=e.messageId||null!=e.messageMetadata)&&u();break;
94case"finish":null!=e.finishReason&&(i.finishReason=e.finishReason),await g(e.messageMetadata),null!=e.messageMetadata&&u();break;case"message-metadata":await g(e.messageMetadata),null!=e.messageMetadata&&u();break;case"error":null==n||n(Error(e.errorText));break;default:if(e.type.startsWith("data-")){if((null==r?void 0:r[e.type])!=null){let t=i.message.parts.findIndex(t=>"id"in t&&"data"in t&&t.id===e.id&&t.type===e.type),n=t>=0?t:i.message.parts.length;await ar({value:e.data,schema:r[e.type],context:{field:`message.parts[${n}].data`,entityName:e.type,entityId:e.id}})}if(e.transient){null==o||o(e);break}let t=null!=e.id?i.message.parts.find(t=>e.type===t.type&&e.id===t.id):void 0;null!=t?t.data=e.data:i.message.parts.push(e),null==o||o(e),u()}}s.enqueue(e)})}}))}({stream:a,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:s,onError:e=>{throw e}}),onError:e=>{throw e}}),this.setStatus({status:"ready"})}catch(e){if(d||"AbortError"===e.name)return d=!0,this.setStatus({status:"ready"}),null;p=!0,e instanceof TypeError&&(e.message.toLowerCase().includes("fetch")||e.message.toLowerCase().includes("network"))&&(c=!0),this.onError&&e instanceof Error&&this.onError(e),this.setStatus({status:"error",error:e})}finally{try{null==(o=this.onFinish)||o.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:d,isDisconnect:c,isError:p,finishReason:null==(a=this.activeResponse)?void 0:a.state.finishReason})}catch(e){console.error(e)}this.activeResponse=void 0}!p&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:null==(s=this.lastMessage)?void 0:s.id,metadata:t,headers:r,body:i})}};e.s(["AbstractChat",0,hz,"DefaultChatTransport",0,hZ,"callCompletionApi",0,hS,"isDeepEqualData",0,function e(t,r){if(t===r)return!0;if(null==t||null==r)return!1;if("object"!=typeof t&&"object"!=typeof r)return t===r;if(t.constructor!==r.constructor)return!1;if(t instanceof Date&&r instanceof Date)return t.getTime()===r.getTime();if(Array.isArray(t)){if(t.length!==r.length)return!1;for(let i=0;i<t.length;i++)if(!e(t[i],r[i]))return!1;return!0}let i=Object.keys(t),n=Object.keys(r);if(i.length!==n.length)return!1;for(let a of i)if(!n.includes(a)||!e(t[a],r[a]))return!1;return!0},"parsePartialJson",0,hl],8030);var hj=e.i(61866),hT=e.i(2239);e.s(["ERROR_REVALIDATE_EVENT",0,3,"FOCUS_EVENT",0,0,"MUTATE_EVENT",0,2,"RECONNECT_EVENT",0,1],11671);var hU=Object.prototype.hasOwnProperty;let hN=new WeakMap,hA=()=>{},hP=hA(),hD=Object,hC=e=>e===hP,hR=(e,t)=>({...e,...t}),hM={},hL={},hF="undefined",hJ=typeof window!=hF,hB=typeof document!=hF,hV=hJ&&"Deno"in window,hW=(e,t)=>
94{let r=hN.get(e);return[()=>!hC(t)&&e.get(t)||hM,i=>{if(!hC(t)){let n=e.get(t);t in hL||(hL[t]=n),r[5](t,hR(n,i),n||hM)}},r[6],()=>!hC(t)&&t in hL?hL[t]:!hC(t)&&e.get(t)||hM]},hq=!0,[hG,hK]=hJ&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[hA,hA],hX={initFocus:e=>(hB&&document.addEventListener("visibilitychange",e),hG("focus",e),()=>{hB&&document.removeEventListener("visibilitychange",e),hK("focus",e)}),initReconnect:e=>{let t=()=>{hq=!0,e()},r=()=>{hq=!1};return hG("online",t),hG("offline",r),()=>{hK("online",t),hK("offline",r)}}},hY=!ed.default.useId,hH=!hJ||hV,hQ=hH?ed.useEffect:ed.useLayoutEffect,h0="u">typeof navigator&&navigator.connection,h1=!hH&&h0&&(["slow-2g","2g"].includes(h0.effectiveType)||h0.saveData),h4=new WeakMap,h6=(e,t)=>e===`[object ${t}]`,h2=0,h9=e=>{let t,r,i=typeof e,n=hD.prototype.toString.call(e),a=h6(n,"Date"),o=h6(n,"RegExp"),s=h6(n,"Object");if(hD(e)!==e||a||o)t=a?e.toJSON():"symbol"==i?e.toString():"string"==i?JSON.stringify(e):""+e;else{if(t=h4.get(e))return t;if(t=++h2+"~",h4.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=h9(e[r])+",";h4.set(e,t)}if(s){t="#";let i=hD.keys(e).sort();for(;!hC(r=i.pop());)hC(e[r])||(t+=r+":"+h9(e[r])+",");h4.set(e,t)}}return t},h5=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?h9(e):"",t]},h3=0,h8=()=>++h3;async function h7(...e){let[t,r,i,n]=e,a=hR({populateCache:!0,throwOnError:!0},"boolean"==typeof n?{revalidate:n}:n||{}),o=a.populateCache,s=a.rollbackOnError,u=a.optimisticData,l=a.throwOnError;if("function"==typeof r){let e=[];for(let i of t.keys())!/^\$(inf|sub)\$/.test(i)&&r(t.get(i)._k)&&e.push(i);return Promise.all(e.map(d))}return d(r);async function d(r){let n,[d]=h5(r);if(!d)return;let[c,p]=hW(t,d),[f,m,h,g]=hN.get(t),v=()=>{let e=f[d];return("function"==typeof a.revalidate?a.revalidate(c().data,r):!1!==a.revalidate)&&(delete h[d],delete g[d],e&&e[0])?e[0](2).then(()=>c().data):c().data};if(e.length<3)return v();let y=i,_=!1,b=h8();m[d]=[b,0];let $=!hC(u),x=c(),k=x.data,w=x._c,I=hC(w)?k:w;if($&&p({data:u="function"==typeof u?u(I,k):u,_c:I}),"function"==typeof y)try{y=y(I)}catch(e){n=e,_=!0}if(y&&"function"==typeof y.then){let e;if(y=await y.catch(e=>{n=e,_=!0}),b!==m[d][0]){if(_)throw n;return y}_&&$&&(e=n,"function"==typeof s?s(e):!1!==s)&&(o=!0,p({data:I,_c:hP}))}if(o&&!_&&("function"==typeof o?p({data:o(y,I),error:hP,_c:hP}):p({data:y,error:hP,_c:hP})),m[d][1]=h8(),Promise.resolve(v()).then(()=>{p({_c:hP})}),_){if(l)throw n;return}return y}}let ge=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},gt=(e,t)=>{if(!hN.has(e)){let r=hR(hX,t),i=Object.create(null),n=h7.bind(hP,e),a=hA,o=Object.create(null),s=(e,t)=>{let r=o[e]||[];return o[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},u=(t,r,i)=>{e.set(t,r);let n=o[t];if(n)for(let e of n)e(r,i)},l=()=>{if(!hN.has(e)&&(hN.set(e,[i,Object.create(null),Object.create(null),Object.create(null),n,u,s]),!hH)){let t=r.initFocus(setTimeout.bind(hP,ge.bind(hP,i,0))),n=r.initReconnect(setTimeout.bind(hP,ge.bind(hP,i,1)));a=()=>{t&&t(),n&&n(),hN.delete(e)}}};return l(),[e,n,l,a]}return[e,hN.get(e)[4]]},[gr,gi]=gt(new Map),gn=hR({onLoadingSlow:hA,onSuccess:hA,onError:hA,onErrorRetry:(e,t,r,i,n)=>{let a=r.errorRetryCount,o=n.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;(hC(a)||!(o>a))&&setTimeout(i,s,n)},onDiscarded:hA,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:h1?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:h1?5e3:3e3,compare:function e(t,r){var i,n;if(t===r)return!0;if(t&&r&&(i=t.constructor)===r.constructor){if(i===Date)return t.getTime()===r.getTime();if(i===RegExp)return t.toString()===r.toString();if(i===Array){if((n=t.length)===r.length)for(;n--&&e(t[n],r[n]););return -1===n}if(!i||"object"==typeof t){for(i in n=0,t)if(hU.call(t,i)&&++n&&!hU.call(r,i)||!(i in r)||!e(t[i],r[i]))return!1;return Object.keys(r).length===n}}return t!=t&&r!=r},isPaused:()=>!1,cache:gr,mutate:gi,fallback:{}},{isOnline:()=>hq,isVisible:()=>{let e=hB&&document.visibilityState;
94return hC(e)||"hidden"!==e}}),ga=(0,ed.createContext)({});e.i(11671);let go=hJ&&window.__SWR_DEVTOOLS_USE__;(go?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,r,i)=>{let n=r&&((...e)=>{let[i]=h5(t),[,,,n]=hN.get(gr);if(i.startsWith("$inf$"))return r(...e);let a=n[i];return hC(a)?r(...e):(delete n[i],a)});return e(t,n,i)}),go&&(window.__SWR_DEVTOOLS_REACT__=ed.default);let gs=()=>{},gu=gs(),gl=(new WeakMap,ed.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),gd={dedupe:!0},gc=Promise.resolve(hP);hD.defineProperty(e=>{let{value:t}=e,r=(0,ed.useContext)(ga),i="function"==typeof t,n=(0,ed.useMemo)(()=>i?t(r):t,[i,r,t]),a=(0,ed.useMemo)(()=>i?n:((e,t)=>{let r=hR(e,t);if(t){let{use:i,fallback:n}=e,{use:a,fallback:o}=t;i&&a&&(r.use=i.concat(a)),n&&o&&(r.fallback=hR(n,o))}return r})(r,n),[i,r,n]),o=n&&n.provider,s=(0,ed.useRef)(hP);o&&!s.current&&(s.current=gt(o(a.cache||gr),n));let u=s.current;return u&&(a.cache=u[0],a.mutate=u[1]),hQ(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,ed.createElement)(ga.Provider,hR(e,{value:a}))},"defaultValue",{value:gn});var gp=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},gf=(e,t,r)=>(gp(e,t,"read from private field"),r?r.call(e):t.get(e)),gm=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},gh=(e,t,r,i)=>(gp(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),gg=class{constructor(e=[]){gm(this,ee,void 0),gm(this,et,"ready"),gm(this,er,void 0),gm(this,ei,new Set),gm(this,en,new Set),gm(this,ea,new Set),this.pushMessage=e=>{gh(this,ee,gf(this,ee).concat(e)),gf(this,eo).call(this)},this.popMessage=()=>{gh(this,ee,gf(this,ee).slice(0,-1)),gf(this,eo).call(this)},this.replaceMessage=(e,t)=>{gh(this,ee,[...gf(this,ee).slice(0,e),this.snapshot(t),...gf(this,ee).slice(e+1)]),gf(this,eo).call(this)},this.snapshot=e=>structuredClone(e),this["~registerMessagesCallback"]=(e,t)=>{let r=t?null!=t?(0,hj.default)(e,t):e:e;return gf(this,ei).add(r),()=>{gf(this,ei).delete(r)}},this["~registerStatusCallback"]=e=>(gf(this,en).add(e),()=>{gf(this,en).delete(e)}),this["~registerErrorCallback"]=e=>(gf(this,ea).add(e),()=>{gf(this,ea).delete(e)}),gm(this,eo,()=>{gf(this,ei).forEach(e=>e())}),gm(this,es,()=>{gf(this,en).forEach(e=>e())}),gm(this,eu,()=>{gf(this,ea).forEach(e=>e())}),gh(this,ee,e)}get status(){return gf(this,et)}set status(e){gh(this,et,e),gf(this,es).call(this)}get error(){return gf(this,er)}set error(e){gh(this,er,e),gf(this,eu).call(this)}get messages(){return gf(this,ee)}set messages(e){gh(this,ee,[...e]),gf(this,eo).call(this)}};ee=new WeakMap,et=new WeakMap,er=new WeakMap,ei=new WeakMap,en=new WeakMap,ea=new WeakMap,eo=new WeakMap,es=new WeakMap,eu=new WeakMap;var gv=class extends hz{constructor({messages:e,...t}){const r=new gg(e);super({...t,state:r}),gm(this,el,void 0),this["~registerMessagesCallback"]=(e,t)=>gf(this,el)["~registerMessagesCallback"](e,t),this["~registerStatusCallback"]=e=>gf(this,el)["~registerStatusCallback"](e),this["~registerErrorCallback"]=e=>gf(this,el)["~registerErrorCallback"](e),gh(this,el,r)}};el=new WeakMap,e.s(["useChat",0,function({experimental_throttle:e,resume:t=!1,...r}={}){let i=(0,ed.useRef)("chat"in r?{}:{onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});"chat"in r||(i.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});let n={...r,onToolCall:e=>{var t,r;return null==(r=(t=i.current).onToolCall)?void 0:r.call(t,e)},onData:e=>{var t,r;return null==(r=(t=i.current).onData)?void 0:r.call(t,e)},onFinish:e=>{var t,r;return null==(r=(t=i.current).onFinish)?void 0:r.call(t,e)},onError:e=>{var t,r;return null==(r=(t=i.current).onError)?void 0:r.call(t,e)},sendAutomaticallyWhen:e=>{var t,r,n;return null!=(n=null==(r=(t=i.current).sendAutomaticallyWhen)?void 0:r.call(t,e))&&n}},a=(0,ed.useRef)("chat"in r?r.chat:new gv(n));("chat"in r&&r.chat!==a.current||"id"in r&&a.current.id!==r.id)&&
94(a.current="chat"in r?r.chat:new gv(n));let o=(0,ed.useCallback)(t=>a.current["~registerMessagesCallback"](t,e),[e,a.current.id]),s=(0,ed.useSyncExternalStore)(o,()=>a.current.messages,()=>a.current.messages),u=(0,ed.useSyncExternalStore)(a.current["~registerStatusCallback"],()=>a.current.status,()=>a.current.status),l=(0,ed.useSyncExternalStore)(a.current["~registerErrorCallback"],()=>a.current.error,()=>a.current.error),d=(0,ed.useCallback)(e=>{"function"==typeof e&&(e=e(a.current.messages)),a.current.messages=e},[a]);return(0,ed.useEffect)(()=>{t&&a.current.resumeStream()},[t,a]),{id:a.current.id,messages:s,setMessages:d,sendMessage:a.current.sendMessage,regenerate:a.current.regenerate,clearError:a.current.clearError,stop:a.current.stop,error:l,resumeStream:a.current.resumeStream,status:u,addToolResult:a.current.addToolOutput,addToolOutput:a.current.addToolOutput,addToolApprovalResponse:a.current.addToolApprovalResponse}}],99641);var p1=p1;p1.object({name:p1.string().trim().min(2).max(120),email:p1.string().trim().email().max(320),company:p1.string().trim().max(160).optional(),inquiryType:p1.string().trim().min(3).max(120),summary:p1.string().trim().min(24).max(3e3),timing:p1.string().trim().max(240).optional()}),e.s(["getLeadSubmissionStatus",0,function(e){for(let t=e.length-1;t>=0;t-=1){let r=e[t].parts??[];for(let e=r.length-1;e>=0;e-=1){let t=function(e){if(e&&"object"==typeof e)return"tool-submitLead"===e.type?e:void 0}(r[e]);if(t){if("input-streaming"===t.state||"input-available"===t.state)return"sending";if("output-error"===t.state)return"failed";if("output-available"===t.state)return t.output?.ok===!0?"sent":"failed"}}}return"idle"}],68566)},99970,(e,t,r)=>{"use strict";var i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={},u={SYMBOL_FOR_REQ_CONTEXT:()=>d,getContext:()=>c};for(var l in u)i(s,l,{get:u[l],enumerable:!0});t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))o.call(e,s)||void 0===s||i(e,s,{get:()=>t[s],enumerable:!(r=n(t,s))||r.enumerable});return e})(i({},"__esModule",{value:!0}),s);let d=Symbol.for("@vercel/request-context");function c(){let e=globalThis;return e[d]?.get?.()??{}}},91754,(e,t,r)=>{"use strict";var i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={},u={AccessTokenMissingError:()=>d,RefreshAccessTokenFailedError:()=>c};for(var l in u)i(s,l,{get:u[l],enumerable:!0});t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))o.call(e,s)||void 0===s||i(e,s,{get:()=>t[s],enumerable:!(r=n(t,s))||r.enumerable});return e})(i({},"__esModule",{value:!0}),s);class d extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login)."),this.name="AccessTokenMissingError"}}class c extends Error{constructor(e){super("Failed to refresh authentication token.",{cause:e}),this.name="RefreshAccessTokenFailedError"}}},25150,(e,t,r)=>{"use strict";var i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={},u={AccessTokenMissingError:()=>c.AccessTokenMissingError,RefreshAccessTokenFailedError:()=>c.RefreshAccessTokenFailedError,getContext:()=>d.getContext,getVercelOidcToken:()=>p,getVercelOidcTokenSync:()=>f,getVercelToken:()=>m};for(var l in u)i(s,l,{get:u[l],enumerable:!0});t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))o.call(e,s)||void 0===s||i(e,s,{get:()=>t[s],enumerable:!(r=n(t,s))||r.enumerable});return e})(i({},"__esModule",{value:!0}),s);var d=e.r(99970),c=e.r(91754);async function p(){return""}function f(){return""}async function m(){throw Error("getVercelToken is not supported in browser environments")}},67034,(e,t,r)=>{var i={872:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],i=t[1];return(r+i)*3/4-i},t.toByteArray=function(e){var t,r,a=u(e),o=a[0],s=a[1],l=new n((o+s)*3/4-s),d=0,c=s>0?o-4:o;for(r=0;r<c;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],l[d++]=t>>
9416&255,l[d++]=t>>8&255,l[d++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[d++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[d++]=t>>8&255,l[d++]=255&t),l},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,a=[],o=0,s=i-n;o<s;o+=16383)a.push(function(e,t,i){for(var n,a=[],o=t;o<i;o+=3)n=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(r[n>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===n?a.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===n&&a.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],i=[],n="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)r[o]=a[o],i[a.charCodeAt(o)]=o;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}i[45]=62,i[95]=63},230:function(e,t,r){"use strict";var i=r(872),n=r(321),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var i=e,n=t;if(("string"!=typeof n||""===n)&&(n="utf8"),!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);var a=0|f(i,n),u=o(a),l=u.write(i,n);return l!==a&&(u=u.slice(0,l)),u}if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return function(e,t,r){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),i}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var d=e.valueOf&&e.valueOf();if(null!=d&&d!==e)return s.from(d,t,r);var m=function(e){if(s.isBuffer(e)){var t=0|p(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(m)return m;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return l(e),o(e<0?0:0|p(e))}function c(e){for(var t=e.length<0?0:0|p(e.length),r=o(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(l(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return E(e).length;default:if(n)return i?-1:I(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n,a,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",a=t;a<r;++a)n+=z[e[a]];return n}(this,t,r);case"utf8":case"utf-8":return y(this,t,r);case"ascii":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}(this,t,r);case"latin1":case"binary":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}(this,t,r);case"base64":return n=this,a=t,o=r,0===a&&o===n.length?i.fromByteArray(n):i.fromByteArray(n.slice(a,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var i=e.slice(t,r),n="",a=0;a<i.length;a+=2)n+=String.fromCharCode(i[a]+256*i[a+1]);return n}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function h(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function g(e,t,r,i,n){var a;if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r*=1)!=a&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,i)),s.isBuffer(t))return 0===t.length?-1:v(e,t,r,i,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,i,n){var a,o=1,s=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;o=2,s/=2,u/=2,r/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var d=-1;for(a=r;a<s;a++)if(l(e,a)===l(t,-1===d?0:a-d)){if(-1===d&&(d=a),a-d+1===u)return d*o}else -1!==d&&(a-=a-d),d=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var c=!0,p=0;p<u;p++)if(l(e,a+p)!==l(t,p)){c=!1;break}if(c)return a}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(Z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:+(i<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,i=s.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var a=e[r];if(Z(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(i,n),n+=a.length}return i},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):m.apply(this,arguments)}
vendor: 10,318 bytes, line 94
94,s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,r,i,n){if(Z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var a=n-i,o=r-t,u=Math.min(a,o),l=this.slice(i,n),d=e.slice(t,r),c=0;c<u;++c)if(l[c]!==d[c]){a=l[c],o=d[c];break}return a<o?-1:+(o<a)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)};function y(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var a,o,s,u,l=e[n],d=null,c=l>239?4:l>223?3:l>191?2:1;if(n+c<=r)switch(c){case 1:l<128&&(d=l);break;case 2:(192&(a=e[n+1]))==128&&(u=(31&l)<<6|63&a)>127&&(d=u);break;case 3:a=e[n+1],o=e[n+2],(192&a)==128&&(192&o)==128&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(d=u);break;case 4:a=e[n+1],o=e[n+2],s=e[n+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(d=u)}null===d?(d=65533,c=1):d>65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|1023&d),i.push(d),n+=c}var p=i,f=p.length;if(f<=4096)return String.fromCharCode.apply(String,p);for(var m="",h=0;h<f;)m+=String.fromCharCode.apply(String,p.slice(h,h+=4096));return m}function _(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function b(e,t,r,i,n,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function $(e,t,r,i,n,a){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,r,i,a){return t*=1,r>>>=0,a||$(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,a){return t*=1,r>>>=0,a||$(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,a,o,s,u,l,d,c,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var f=!1;;)switch(i){case"hex":return function(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var a=t.length;i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s,u=parseInt(t.substr(2*o,2),16);if((s=u)!=s)break;e[r+o]=u}return o}(this,e,t,r);case"utf8":case"utf-8":return n=t,a=r,O(I(e,this.length-n),this,n,a);case"ascii":return o=t,s=r,O(S(e),this,o,s);case"latin1":case"binary":return function(e,t,r,i){return O(S(t),e,r,i)}(this,e,t,r);case"base64":return u=t,l=r,O(E(e),this,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,c=r,O(function(e,t){for(var r,i,n=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(r=e.charCodeAt(a))>>8,n.push(r%256),n.push(i);return n}(e,this.length-d),this,d,c);default:if(f)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,s.prototype),i},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},s.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var i=t,n=1,a=this[e+--i];i>0&&(n*=256);)a+=this[e+--i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||_(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||_(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),n.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;b(this,e,t,r,n,0)}var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;b(this,e,t,r,n,0)}var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);b(this,e,t,r,n-1,-n)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);b(this,e,t,r,n-1,-n)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,i){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var a=n-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},s.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var n,a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;
94else{var o=s.isBuffer(e)?e:s.from(e,i),u=o.length;if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%u]}return this};var w=/[^+/0-9A-Za-z-_]/g;function I(e,t){t=t||1/0;for(var r,i=e.length,n=null,a=[],o=0;o<i;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!n){if(r>56319||o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function S(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function E(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(w,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var z=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()},321:function(e,t){t.read=function(e,t,r,i,n){var a,o,s=8*n-i-1,u=(1<<s)-1,l=u>>1,d=-7,c=r?n-1:0,p=r?-1:1,f=e[t+c];for(c+=p,a=f&(1<<-d)-1,f>>=-d,d+=s;d>0;a=256*a+e[t+c],c+=p,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=i;d>0;o=256*o+e[t+c],c+=p,d-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),a-=l}return(f?-1:1)*o*Math.pow(2,a-i)},t.write=function(e,t,r,i,n,a){var o,s,u,l=8*a-n-1,d=(1<<l)-1,c=d>>1,p=5960464477539062e-23*(23===n),f=i?0:a-1,m=i?1:-1,h=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+c>=1?t+=p/u:t+=p*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=d?(s=0,o=d):o+c>=1?(s=(t*u-1)*Math.pow(2,n),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[r+f]=255&s,f+=m,s/=256,n-=8);for(o=o<<n|s,l+=n;l>0;e[r+f]=255&o,f+=m,o/=256,l-=8);e[r+f-m]|=128*h}}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}},o=!0;try{i[e](r,r.exports,a),o=!1}finally{o&&delete n[e]}return r.exports}a.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=a(230)},61866,(e,t,r)=>{t.exports=function(e,t){let r;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let i=0;return function(...n){clearTimeout(r);let a=Date.now(),o=t-(a-i);o<=0?(i=a,e.apply(this,n)):r=setTimeout(()=>{i=Date.now(),e.apply(this,n)},o)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.