PageSourceSearch

https://www.dice.com/platform/_next/static/chunks/3_wvxpc6-92xf.js

js dice.com collected 2026-09-24 08:28:26 UTC 125,614 bytes, 62 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,197753,922143,e=>{"use strict";var t;let n=Object.freeze({status:"aborted"}),r=Symbol("zod_brand");(t=globalThis).__zod_globalConfig??(t.__zod_globalConfig={});let o=globalThis.__zod_globalConfig;function i(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}e.s(["$ZodAsyncError",0,class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},"$ZodEncodeError",0,class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},"$brand",0,r,"$constructor",0,function(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:s,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let o=s.prototype,i=Object.keys(o);for(let e=0;e<i.length;e++){let t=i[e];t in n||(n[t]=o[t].bind(n))}}let o=n?.Parent??Object;class i extends o{}function s(e){var t;let o=n?.Parent?new i:this;for(let n of(r(o,e),(t=o._zod).deferred??(t.deferred=[]),o._zod.deferred))n();return o}return Object.defineProperty(i,"name",{value:e}),Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:t=>!!n?.Parent&&t instanceof n.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s},"NEVER",0,n,"config",0,function(e){return e&&Object.assign(o,e),o},"globalConfig",0,o],197753);let s=Symbol("evaluating");function a(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function u(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}let c="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function l(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let d=i(()=>
1{if(o.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function p(e){if(!1===l(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!1!==l(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}let f=new Set(["string","number","symbol"]),m=new Set(["string","number","bigint","boolean","symbol","undefined"]);function h(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function _(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}let y={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]},g={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function z(e){return"string"==typeof e?e:e?.message}function v(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function $(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}e.s(["BIGINT_FORMAT_RANGES",0,g,"Class",0,class{constructor(...e){}},"NUMBER_FORMAT_RANGES",0,y,"aborted",0,function(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1},"allowsEval",0,d,"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,a,"base64ToUint8Array",0,v,"base64urlToUint8Array",0,function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return v(t+n)},"cached",0,i,"captureStackTrace",0,c,"cleanEnum",0,function(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])},"cleanRegex",0,function(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)},"clone",0,h,"cloneDef",0,function(e){return u(e._zod.def)},"createTransparentProxy",0,function(e){let t;return new Proxy({},{get:(n,r,o)=>(t??(t=e()),Reflect.get(t,r,o)),set:(n,r,o,i)=>(t??(t=e()),Reflect.set(t,r,o,i)),has:(n,r)=>(t??(t=e()),Reflect.has(t,r)),deleteProperty:(n,r)=>(t??(t=e()),Reflect.deleteProperty(t,r)),ownKeys:n=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(n,r)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)),defineProperty:(n,r,o)=>(t??(t=e()),Reflect.defineProperty(t,r,o))})},"defineLazy",0,function(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==s)return void 0===r&&(r=s,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})},"esc",0,function(e){return JSON.stringify(e)},"escapeRegex",0,function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},"explicitlyAborted",0,function(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1},"extend",0,function(e,t){if(!p(t))throw Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=u(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return a(this,"shape",n),n}});return h(e,r)},"finalizeIssue",0,function(e,t,n){let r=e.message?e.message:z(e.inst?._zod.def?.error?.(e))??z(t?.error?.(e))??z(n.customError?.(e))??z(n.localeError?.(e))??"Invalid input",{inst:o,continue:i,input:s,...a}=e;return a.path??(a.path=[]),a.message=r,t?.reportInput&&(a.input=s),a},"floatSafeRemainder",0,function(e,t){let n=e/t,r=Math.round(n),o=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r},"getElementAtPath",0,function(e,t){return t?t.reduce((e,t)=>e?.[t],e):e},"getEnumValues",0,function(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}
1,"getLengthableOrigin",0,function(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"},"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,function(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"},"hexToUint8Array",0,function(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n},"isObject",0,l,"isPlainObject",0,p,"issue",0,function(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}},"joinValues",0,function(e,t="|"){return e.map(e=>_(e)).join(t)},"jsonStringifyReplacer",0,function(e,t){return"bigint"==typeof t?t.toString():t},"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 n=u(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return a(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return h(e,n)},"mergeDefs",0,u,"normalizeParams",0,function(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},"nullish",0,function(e){return null==e},"numKeys",0,function(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t},"objectClone",0,function(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))},"omit",0,function(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let o=u(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return a(this,"shape",r),r},checks:[]});return h(e,o)},"optionalKeys",0,function(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)},"parsedType",0,function(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},"partial",0,function(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let o=u(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(o[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t in r)o[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return a(this,"shape",o),o},checks:[]});return h(t,o)},"pick",0,function(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let o=u(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return a(this,"shape",e),e},checks:[]});return h(e,o)},"prefixIssues",0,function(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))},"primitiveTypes",0,m,"promiseAllObject",0,function(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})},"propertyKeyTypes",0,f,"randomString",0,function(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n},"required",0,function(e,t,n){let r=u(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(n)for(let t in n){if(!(t in o))throw Error(`Unrecognized key: "${t}"`);n[t]&&(o[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(let t in r)o[t]=new e({type:"nonoptional",innerType:r[t]});return a(this,"shape",o),o}});return h(t,r)}
1,"safeExtend",0,function(e,t){if(!p(t))throw Error("Invalid input to safeExtend: expected a plain object");let n=u(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return a(this,"shape",n),n}});return h(e,n)},"shallowClone",0,function(e){return p(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e},"slugify",0,function(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")},"stringifyPrimitive",0,_,"uint8ArrayToBase64",0,$,"uint8ArrayToBase64url",0,function(e){return $(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,z],922143)},374969,e=>{"use strict";var t=e.i(197753),n=e.i(922143);let r=(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,n.jsonStringifyReplacer,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},o=(0,t.$constructor)("$ZodError",r),i=(0,t.$constructor)("$ZodError",r,{Parent:Error});function s(e){let t=[];for(let n of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof n?t.push(`[${n}]`):"symbol"==typeof n?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}e.s(["$ZodError",0,o,"$ZodRealError",0,i,"flattenError",0,function(e,t=e=>e.message){let n={},r=[];for(let o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}},"formatError",0,function(e,t=e=>e.message){let n={_errors:[]},r=(e,o=[])=>{for(let i of e.issues)if("invalid_union"===i.code&&i.errors.length)i.errors.map(e=>r({issues:e},[...o,...i.path]));else if("invalid_key"===i.code)r({issues:i.issues},[...o,...i.path]);else if("invalid_element"===i.code)r({issues:i.issues},[...o,...i.path]);else{let e=[...o,...i.path];if(0===e.length)n._errors.push(t(i));else{let r=n,o=0;for(;o<e.length;){let n=e[o];o===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(i))):r[n]=r[n]||{_errors:[]},r=r[n],o++}}}};return r(e),n},"prettifyError",0,function(e){let t=[];for(let n of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push(`✖ ${n.message}`),n.path?.length&&t.push(`  → at ${s(n.path)}`);return t.join("\n")},"toDotPath",0,s,"treeifyError",0,function(e,t=e=>e.message){let n={errors:[]},r=(e,o=[])=>{var i,s;for(let a of e.issues)if("invalid_union"===a.code&&a.errors.length)a.errors.map(e=>r({issues:e},[...o,...a.path]));else if("invalid_key"===a.code)r({issues:a.issues},[...o,...a.path]);else if("invalid_element"===a.code)r({issues:a.issues},[...o,...a.path]);else{let e=[...o,...a.path];if(0===e.length){n.errors.push(t(a));continue}let r=n,u=0;for(;u<e.length;){let n=e[u],o=u===e.length-1;"string"==typeof n?(r.properties??(r.properties={}),(i=r.properties)[n]??(i[n]={errors:[]}),r=r.properties[n]):(r.items??(r.items=[]),(s=r.items)[n]??(s[n]={errors:[]}),r=r.items[n]),o&&r.errors.push(t(a)),u++}}};return r(e),n}])},803108,e=>{"use strict";var t=e.i(197753),n=e.i(374969),r=e.i(922143);let o=e=>(n,o,i,s)=>{let a=i?{...i,async:!1}:{async:!1},u=n._zod.run({value:o,issues:[]},a);if(u instanceof Promise)throw new t.$ZodAsyncError;if(u.issues.length){let n=new(s?.Err??e)(u.issues.map(e=>r.finalizeIssue(e,a,t.config())));throw r.captureStackTrace(n,s?.callee),n}return u.value},i=o(n.$ZodRealError),s=e=>async(n,o,i,s)=>{let a=i?{...i,async:!0}:{async:!0},u=n._zod.run({value:o,issues:[]},a);if(u instanceof Promise&&(u=await u),u.issues.length){let n=new(s?.Err??e)(u.issues.map(e=>r.finalizeIssue(e,a,t.config())));throw r.captureStackTrace(n,s?.callee),n}return u.value},a=s(n.$ZodRealError),u=e=>(o,i,s)=>{let a=s?{...s,async:!1}:{async:!1},u=o._zod.run({value:i,issues:[]},a);if(u instanceof Promise)throw new t.$ZodAsyncError;return u.issues.length?{success:!1,error:new(e??n.$ZodError)(u.issues.map(e=>r.finalizeIssue(e,a,t.config())))}:{success:!0,data:u.value}},c=u(n.$ZodRealError),l=e=>async(n,o,i)=>{let s=i?{...i,async:!0}:{async:!0},a=n._zod.run({value:o,issues:[]},s);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>r.finalizeIssue(e,s,t.config())))}:{success:!0,data:a.value}},d=l(n.$ZodRealError),p=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return o(e)(t,n,i)},f=p(n.$ZodRealError),m=e=>(t,n,r)=>o(e)(t,n,r),h=m(n.$ZodRealError),_=e=>async(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return s(e)(t,n,o)},y=_(n.$ZodRealError),g=e=>async(t,n,r)=>s(e)(t,n,r),z=g(n.$ZodRealError),v=e=>(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return u(e)(t,n,o)},$=v(n.$ZodRealError),b=e=>(t,n,r)=>u(e)(t,n,r),Z=b(n.$ZodRealError),w=e=>async(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return l(e)(t,n,o)},k=w(n.$ZodRealError),P=e=>async(t,n,r)=>l(e)(t,n,r),S=P(n.$ZodRealError);e.s(["_decode",0,m,"_decodeAsync",0,g,"_encode",0,p,"_encodeAsync",0,_,"_parse",0,o,"_parseAsync",0,s,"_safeDecode",0,b,"_safeDecodeAsync",0,P,"_safeEncode",0,v,"_safeEncodeAsync",0,w,"_safeParse",0,u,"_safeParseAsync",0,l,"decode",0,h,"decodeAsync",0,z,"encode",0,f,"encodeAsync",0,y,"parse",0,i,"parseAsync",0,a,"s
1afeDecode",0,Z,"safeDecodeAsync",0,S,"safeEncode",0,$,"safeEncodeAsync",0,k,"safeParse",0,c,"safeParseAsync",0,d])},355605,682358,698530,e=>{"use strict";var t=e.i(197753),n=e.i(922143);let r=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)$/,o=r(4),i=r(6),s=r(7),a=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,u="(?:(?:\\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])))",c=RegExp(`^${u}$`);function l(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+)?)?`}let d=/^-?\d+$/,p=/^[^A-Z]*$/,f=/^[^a-z]*$/;function m(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function h(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}let _=m(22,"=="),y=h(22),g=m(27,"="),z=h(27),v=m(43,"="),$=h(43),b=m(64,""),Z=h(64),w=m(86,"=="),k=h(86);e.s(["base64",0,/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,"base64url",0,/^[A-Za-z0-9_-]*$/,"bigint",0,/^-?\d+n?$/,"boolean",0,/^(?:true|false)$/i,"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,/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,"cidrv6",0,/^(([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])$/,"cuid",0,/^[cC][0-9a-z]{6,}$/,"cuid2",0,/^[0-9a-z]+$/,"date",0,c,"datetime",0,function(e){let t=l({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${t}(?:${n.join("|")})`;return RegExp(`^${u}T(?:${r})$`)},"domain",0,/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,"duration",0,/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,"e164",0,/^\+[1-9]\d{6,14}$/,"email",0,/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,"emoji",0,function(){return RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")},"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,/^([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})$/,"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,/^https?$/,"idnEmail",0,a,"integer",0,d,"ipv4",0,/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,"ipv6",0,/^(([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}|:))$/,"ksuid",0,/^[A-Za-z0-9]{27}$/,"lowercase",0,p,"mac",0,e=>{let t=n.escapeRegex(e??":");return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},"md5_base64",0,_,"md5_base64url",0,y,"md5_hex",0,/^[0-9a-fA-F]{32}$/,"nanoid",0,/^[a-zA-Z0-9_-]{21}$/,"null",0,/^null$/i,"number",0,/^-?\d+(?:\.\d+)?$/,"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,g,"sha1_base64url",0,z,"sha1_hex",0,/^[0-9a-fA-F]{40}$/,"sha256_base64",0,v,"sha256_base64url",0,$,"sha256_hex",0,/^[0-9a-fA-F]{64}$/,"sha384_base64",0,b,"sha384_base64url",0,Z,"sha384_hex",0,/^[0-9a-fA-F]{96}$/,"sha512_base64",0,w,"sha512_base64url",0,k,"sha512_hex",0,/^[0-9a-fA-F]{128}$/,"string",0,e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},"time",0,function(e){return RegExp(`^${l(e)}$`)}
1,"ulid",0,/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,"undefined",0,/^undefined$/i,"unicodeEmail",0,a,"uppercase",0,f,"uuid",0,r,"uuid4",0,o,"uuid6",0,i,"uuid7",0,s,"xid",0,/^[0-9a-vA-V]{20}$/],682358);let P=t.$constructor("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),S={number:"number",bigint:"bigint",object:"date"},O=t.$constructor("$ZodCheckLessThan",(e,t)=>{P.init(e,t);let n=S[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),x=t.$constructor("$ZodCheckGreaterThan",(e,t)=>{P.init(e,t);let n=S[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),E=t.$constructor("$ZodCheckMultipleOf",(e,t)=>{P.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.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===n.floatSafeRemainder(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})}}),T=t.$constructor("$ZodCheckNumberFormat",(e,t)=>{P.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[i,s]=n.NUMBER_FORMAT_RANGES[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=s,r&&(n.pattern=d)}),e._zod.check=n=>{let a=n.value;if(r){if(!Number.isInteger(a))return void n.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});if(!Number.isSafeInteger(a))return void(a>0?n.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):n.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}))}a<i&&n.issues.push({origin:"number",input:a,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),a>s&&n.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),A=t.$constructor("$ZodCheckBigIntFormat",(e,t)=>{P.init(e,t);let[r,o]=n.BIGINT_FORMAT_RANGES[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=r,n.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),I=t.$constructor("$ZodCheckMaxSize",(e,t)=>{var r;P.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!n.nullish(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let o=r.value;o.size<=t.maximum||r.issues.push({origin:n.getSizableOrigin(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),N=t.$constructor("$ZodCheckMinSize",(e,t)=>{var r;P.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!n.nullish(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let o=r.value;o.size>=t.minimum||r.issues.push({origin:n.getSizableOrigin(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),j=t.$constructor("$ZodCheckSizeEquals",(e,t)=>{var r;P.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!n.nullish(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=r=>{let o=r.value,i=o.size;if(i===t.size)return;let s=i>t.size;
1r.issues.push({origin:n.getSizableOrigin(o),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),C=t.$constructor("$ZodCheckMaxLength",(e,t)=>{var r;P.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!n.nullish(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let o=r.value;if(o.length<=t.maximum)return;let i=n.getLengthableOrigin(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),R=t.$constructor("$ZodCheckMinLength",(e,t)=>{var r;P.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!n.nullish(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let o=r.value;if(o.length>=t.minimum)return;let i=n.getLengthableOrigin(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),D=t.$constructor("$ZodCheckLengthEquals",(e,t)=>{var r;P.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!n.nullish(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=r=>{let o=r.value,i=o.length;if(i===t.length)return;let s=n.getLengthableOrigin(o),a=i>t.length;r.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),L=t.$constructor("$ZodCheckStringFormat",(e,t)=>{var n,r;P.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),F=t.$constructor("$ZodCheckRegex",(e,t)=>{L.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),U=t.$constructor("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=p),L.init(e,t)}),J=t.$constructor("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=f),L.init(e,t)}),M=t.$constructor("$ZodCheckIncludes",(e,t)=>{P.init(e,t);let r=n.escapeRegex(t.includes),o=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),B=t.$constructor("$ZodCheckStartsWith",(e,t)=>{P.init(e,t);let r=RegExp(`^${n.escapeRegex(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=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),V=t.$constructor("$ZodCheckEndsWith",(e,t)=>{P.init(e,t);let r=RegExp(`.*${n.escapeRegex(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=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function W(e,t,r){e.issues.length&&t.issues.push(...n.prefixIssues(r,e.issues))}let K=t.$constructor("$ZodCheckProperty",(e,t)=>{P.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>W(n,e,t.property));W(n,e,t.property)}}),G=t.$constructor("$ZodCheckMimeType",(e,t)=>{P.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),q=t.$constructor("$ZodCheckOverwrite",(e,t)=>{P.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});e.s(["$ZodCheck",0,P,"$ZodCheckBigIntFormat",0,A,"$ZodCheckEndsWith",0,V,"$ZodCheckGreaterThan",0,x,"$ZodCheckIncludes",0,M,"$ZodCheckLengthEquals",0,D,"$ZodCheckLessThan",0,O,"$ZodCheckLowerCase",0,U,"$ZodCheckMaxLength",0,C,"$ZodCheckMaxSize",0,I,"$ZodCheckMimeType",0,G,"$ZodCheckMinLength",0,R,"$ZodCheckMinSize",0,N,"$ZodCheckMultipleOf",0,E,"$ZodCheckNumberFormat",0,T,"$ZodCheckOverwrite",0,q,"$ZodCheckProperty",0,K,"$ZodCheckRegex",0,F,"$ZodCheckSizeEquals",0,j,"$ZodCheckStartsWith",0,B,"$ZodCheckStringFormat",0,L,"$ZodCheckUpperCase",0,J],355605),e.s(["Doc",0,class{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),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>`  ${e}`)].join("\n"))}}],698530)},676094,398477,525527,650215,e=>{"use strict";var t,n=e.i(355605),r=e.i(197753),o=e.i(698530),i=e.i(803108),s=e.i(682358),a=e.i(922143);let u={major:4,minor:4,patch:3};e.s(["version",0,u],398477);let c=r.$constructor("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=u;let o=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&o.unshift(e),o))for(let n of t._zod.onattach)n(e);if(0===o.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let o,i=a.aborted(e);for(let s of t){if(s._zod.def.when){if(a.explicitlyAborted(e)||!s._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,u=s._zod.check(e);if(u instanceof Promise&&n?.async===!1)throw new r.$ZodAsyncError;if(o||u instanceof Promise)o=(o??Promise.resolve()).then(async()=>{await u,e.issues.length!==t&&(i||(i=a.aborted(e,t)))});else{if(e.issues.length===t)continue;i||(i=a.aborted(e,t))}}return o?o.then(()=>e):e},n=(n,i,s)=>{if(a.aborted(n))return n.aborted=!0,n;let u=t(i,o,s);if(u instanceof Promise){if(!1===s.async)throw new r.$ZodAsyncError;return u.then(t=>e._zod.parse(t,s))}return e._zod.parse(u,s)};e._zod.run=(i,s)=>{if(s.skipChecks)return e._zod.parse(i,s);if("backward"===s.direction){let t=e._zod.parse({value:i.value,issues:[]},{...s,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,s)):n(t,i,s)}let a=e._zod.parse(i,s);if(a instanceof Promise){if(!1===s.async)throw new r.$ZodAsyncError;return a.then(e=>t(e,o,s))}return t(a,o,s)}}a.defineLazy(e,"~standard",()=>({validate:t=>{try{let n=(0,i.safeParse)(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return(0,i.safeParseAsync)(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),l=r.$constructor("$ZodString",(e,t)=>{c.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??s.string(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),d=r.$constructor("$ZodStringFormat",(e,t)=>{n.$ZodCheckStringFormat.init(e,t),l.init(e,t)}),p=r.$constructor("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=s.guid),d.init(e,t)}),f=r.$constructor("$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=s.uuid(e))}else t.pattern??(t.pattern=s.uuid());d.init(e,t)}),m=r.$constructor("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=s.email),d.init(e,t)}),h=r.$constructor("$ZodURL",(e,t)=>{d.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===s.httpProtocol.source&&!/^https?:\/\//i.test(r))return void n.issues.push({code:"invalid_format",format:"url",n
1ote:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});let o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),_=r.$constructor("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=s.emoji()),d.init(e,t)}),y=r.$constructor("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=s.nanoid),d.init(e,t)}),g=r.$constructor("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=s.cuid),d.init(e,t)}),z=r.$constructor("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=s.cuid2),d.init(e,t)}),v=r.$constructor("$ZodULID",(e,t)=>{t.pattern??(t.pattern=s.ulid),d.init(e,t)}),$=r.$constructor("$ZodXID",(e,t)=>{t.pattern??(t.pattern=s.xid),d.init(e,t)}),b=r.$constructor("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=s.ksuid),d.init(e,t)}),Z=r.$constructor("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=s.datetime(t)),d.init(e,t)}),w=r.$constructor("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=s.date),d.init(e,t)}),k=r.$constructor("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=s.time(t)),d.init(e,t)}),P=r.$constructor("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=s.duration),d.init(e,t)}),S=r.$constructor("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=s.ipv4),d.init(e,t),e._zod.bag.format="ipv4"}),O=r.$constructor("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=s.ipv6),d.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),x=r.$constructor("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=s.mac(t.delimiter)),d.init(e,t),e._zod.bag.format="mac"}),E=r.$constructor("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=s.cidrv4),d.init(e,t)}),T=r.$constructor("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=s.cidrv6),d.init(e,t),e._zod.check=n=>{let r=n.value.split("/");try{if(2!==r.length)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function A(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let I=r.$constructor("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=s.base64),d.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{A(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function N(e){if(!s.base64url.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return A(t.padEnd(4*Math.ceil(t.length/4),"="))}let j=r.$constructor("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=s.base64url),d.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{N(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),C=r.$constructor("$ZodE164",(e,t)=>{t.pattern??(t.pattern=s.e164),d.init(e,t)});function R(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let o=JSON.parse(atob(r));if("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))return!1;return!0}catch{return!1}}let D=r.$constructor("$ZodJWT",(e,t)=>{d.init(e,t),e._zod.check=n=>{R(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),L=r.$constructor("$ZodCustomStringFormat",(e,t)=>{d.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),F=r.$constructor("$ZodNumber",(e,t)=>{c.init(e,t),e._zod.pattern=e._zod.bag.pattern??s.number,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}let o=n.value;if("number"==typeof o&&!Number.isNaN(o)&&Number.isFinite(o))return n;let i="number"==typeof o?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),U=r.$constructor("$ZodNumberFormat",(e,t)=>{n.$ZodCheckNumberFormat.init(e,t),F.init(e,t)}),J=r.$constructor("$ZodBoolean",(e,t)=>{c.init(e,t),e._zod.pattern=s.boolean,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let o=n.value;return"boolean"==typeof o||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),M=r.$constructor("$ZodBigInt",(e,t)=>{c.init(e,t),e._zod.pattern=s.bigint,e._zod.parse=(n,r)=>
1{if(t.coerce)try{n.value=BigInt(n.value)}catch(e){}return"bigint"==typeof n.value||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),B=r.$constructor("$ZodBigIntFormat",(e,t)=>{n.$ZodCheckBigIntFormat.init(e,t),M.init(e,t)}),V=r.$constructor("$ZodSymbol",(e,t)=>{c.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return"symbol"==typeof r||t.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),t}}),W=r.$constructor("$ZodUndefined",(e,t)=>{c.init(e,t),e._zod.pattern=s.undefined,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return void 0===r||t.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),t}}),K=r.$constructor("$ZodNull",(e,t)=>{c.init(e,t),e._zod.pattern=s.null,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return null===r||t.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),t}}),G=r.$constructor("$ZodAny",(e,t)=>{c.init(e,t),e._zod.parse=e=>e}),q=r.$constructor("$ZodUnknown",(e,t)=>{c.init(e,t),e._zod.parse=e=>e}),X=r.$constructor("$ZodNever",(e,t)=>{c.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),H=r.$constructor("$ZodVoid",(e,t)=>{c.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return void 0===r||t.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),t}}),Y=r.$constructor("$ZodDate",(e,t)=>{c.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(e){}let o=n.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),n}});function Q(e,t,n){e.issues.length&&t.issues.push(...a.prefixIssues(n,e.issues)),t.value[n]=e.value}let ee=r.$constructor("$ZodArray",(e,t)=>{c.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);let i=[];for(let e=0;e<o.length;e++){let s=o[e],a=t.element._zod.run({value:s,issues:[]},r);a instanceof Promise?i.push(a.then(t=>Q(t,n,e))):Q(a,n,e)}return i.length?Promise.all(i).then(()=>n):n}});function et(e,t,n,r,o,i){let s=n in r;if(e.issues.length){if(o&&i&&!s)return;t.issues.push(...a.prefixIssues(n,e.issues))}if(!s&&!o){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}void 0===e.value?s&&(t.value[n]=void 0):t.value[n]=e.value}function en(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=a.optionalKeys(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function er(e,t,n,r,o,i){let s=[],a=o.keySet,u=o.catchall._zod,c=u.def.type,l="optional"===u.optin,d="optional"===u.optout;for(let o in t){if("__proto__"===o||a.has(o))continue;if("never"===c){s.push(o);continue}let i=u.run({value:t[o],issues:[]},r);i instanceof Promise?e.push(i.then(e=>et(e,n,o,t,l,d))):et(i,n,o,t,l,d)}return(s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length)?Promise.all(e).then(()=>n):n}let eo=r.$constructor("$ZodObject",(e,t)=>{let n;c.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape");if(!r?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let o=a.cached(()=>en(t));a.defineLazy(e._zod,"propValues",()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values)for(let e of(n[t]??(n[t]=new Set),r.values))n[t].add(e)}return n});let i=a.isObject,s=t.catchall;e._zod.parse=(t,r)=>{n??(n=o.value);let a=t.value;if(!i(a))return t.issues.push({expected:"object",code:"invalid_type",input:a,inst:e}),t;t.value={};let u=[],c=n.shape;for(let e of n.keys){let n=c[e],o="optional"===n._zod.optin,i="optional"===n._zod.optout,s=n._zod.run({value:a[e],issues:[]},r);s instanceof Promise?u.push(s.then(n=>et(n,t,e,a,o,i))):et(s,t,e,a,o,i)}return s?er(u,a,t,r,o.value,e):u.length?Promise.all(u).then(()=>t):t}}),ei=r.$constructor("$ZodObjectJIT",(e,t)=>{let n,i;eo.init(e,t);let s=e._zod.parse,u=a.cached(()=>en(t)),c=a.isObject,l=!r.globalConfig.jitless,d=a.allowsEval,p=l&&d.value,f=t.catchall;e._zod.parse=(r,d)=>{i??(i=u.value);let m=r.value;return c(m)?l&&p&&d?.async===!1&&!0!==d.jitless?(n||(n=(e=>{let t=new o.Doc(["shape","payload","ctx"]),n=u.value,r=e=>{let t=a.esc(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),s=0;for(let e of n.keys)i[e]=`key_${s++}`;for(let o of(t.write("const newResult = {};"),n.keys)){let n=i[o],s=a.esc(o),u=e[o],c=u?._zod?.optin==="optional",l=u?._zod?.optout==="optional";t.write(`const ${n} = ${r(o)};`),c&&l?t.write(`
2        if (${n}.issues.length) {
3          if (${s} in input) {
4            payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
5              ...iss,
6              path: iss.path ? [${s}, ...iss.path] : [${s}]
7            })));
8          }
9        }
10        
11        if (${n}.value === undefined) {
12          if (${s} in input) {
13            newResult[${s}] = undefined;
14          }
15        } else {
16          newResult[${s}] = ${n}.value;
17        }
18        
19      `):c?t.write(`
20        if (${n}.issues.length) {
21          payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
22            ...iss,
23            path: iss.path ? [${s}, ...iss.path] : [${s}]
24          })));
25        }
26        
27        if (${n}.value === undefined) {
28          if (${s} in input) {
29            newResult[${s}] = undefined;
30          }
31        } else {
32          newResult[${s}] = ${n}.value;
33        }
34        
35      `):t.write(`
36        const ${n}_present = ${s} in input;
37        if (${n}.issues.length) {
38          payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
39            ...iss,
40            path: iss.path ? [${s}, ...iss.path] : [${s}]
41          })));
42        }
43        if (!${n}_present && !${n}.issues.length) {
44          payload.issues.push({
45            code: "invalid_type",
46            expected: "nonoptional",
47            input: undefined,
48            path: [${s}]
49          });
50        }
51
52        if (${n}_present) {
53          if (${n}.value === undefined) {
54            newResult[${s}] = undefined;
55          } else {
56            newResult[${s}] = ${n}.value;
57          }
58        }
59
60      `)}t.write("payload.value = newResult;"),t.write("return payload;");let c=t.compile();return(t,n)=>c(e,t,n)})(t.shape)),r=n(r,d),f)?er([],m,r,d,i,e):r:s(r,d):(r.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),r)}});function es(e,t,n,o){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;let i=e.filter(e=>!a.aborted(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>a.finalizeIssue(e,o,r.config())))}),t)}let ea=r.$constructor("$ZodUnion",(e,t)=>{c.init(e,t),a.defineLazy(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),a.defineLazy(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),a.defineLazy(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),a.defineLazy(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=>a.cleanRegex(e.source)).join("|")})$`)}});let n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},o);if(t instanceof Promise)s.push(t),i=!0;else{if(0===t.issues.length)return t;s.push(t)}}return i?Promise.all(s).then(t=>es(t,r,e,o)):es(s,r,e,o)}});function eu(e,t,n,o){let i=e.filter(e=>0===e.issues.length);return 1===i.length?t.value=i[0].value:0===i.length?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>a.finalizeIssue(e,o,r.config())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t}let ec=r.$constructor("$ZodXor",(e,t)=>{ea.init(e,t),t.inclusive=!1;let n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},o);t instanceof Promise?(s.push(t),i=!0):s.push(t)}return i?Promise.all(s).then(t=>eu(t,r,e,o)):eu(s,r,e,o)}}),el=r.$constructor("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ea.init(e,t);let n=e._zod.parse;a.defineLazy(e._zod,"propValues",()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||0===Object.keys(r).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r))for(let r of(e[t]||(e[t]=new Set),n))e[t].add(r)}return e});let r=a.cached(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(o,i)=>{let s=o.value;if(!a.isObject(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let u=r.value.get(s?.[t.discriminator]);return u?u._zod.run(o,i):t.unionFallback||"backward"===i.direction?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:s,path:[t.discriminator],inst:e}),o)}}),ed=r.$constructor("$ZodIntersection",(e,t)=>{c.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,o=t.left._zod.run({value:r,issues:[]},n),i=t.right._zod.run({value:r,issues:[]},n);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([t,n])=>ep(e,t,n)):ep(e,o,i)}});function ep(e,t,n){let r,o=new Map;for(let n of t.issues)if("unrecognized_keys"===n.code)for(let e of(r??(r=n),n.keys))o.has(e)||o.set(e,{}),o.get(e).l=!0;else e.issues.push(n);for(let t of n.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)o.has(e)||o.set(e,{}),o.get(e).r=!0;else e.issues.push(t);let i=[...o].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(i.length&&r&&e.issues.push({...r,keys:i}),a.aborted(e))return e;let s=function e(t,n){if(t===n||t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(a.isPlainObject(t)&&a.isPlainObject(n)){let r=Object.keys(n),o=Object.keys(t).filter(e=>-1!==r.indexOf(e)),i={...t,...n};for(let r of o){let o=e(t[r],n[r]);
60if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};i[r]=o.data}return{valid:!0,data:i}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<t.length;o++){let i=e(t[o],n[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}(t.value,n.value);if(!s.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}let ef=r.$constructor("$ZodTuple",(e,t)=>{c.init(e,t);let n=t.items;e._zod.parse=(r,o)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let s=[],a=em(n,"optin"),u=em(n,"optout");if(!t.rest){if(i.length<a)return r.issues.push({code:"too_small",minimum:a,inclusive:!0,input:i,inst:e,origin:"array"}),r;i.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}let c=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:i[e],issues:[]},o);t instanceof Promise?s.push(t.then(t=>{c[e]=t})):c[e]=t}if(t.rest){let e=n.length-1;for(let a of i.slice(n.length)){e++;let n=t.rest._zod.run({value:a,issues:[]},o);n instanceof Promise?s.push(n.then(t=>eh(t,r,e))):eh(n,r,e)}}return s.length?Promise.all(s).then(()=>e_(c,r,n,i,u)):e_(c,r,n,i,u)}});function em(e,t){for(let n=e.length-1;n>=0;n--)if("optional"!==e[n]._zod[t])return n+1;return 0}function eh(e,t,n){e.issues.length&&t.issues.push(...a.prefixIssues(n,e.issues)),t.value[n]=e.value}function e_(e,t,n,r,o){for(let i=0;i<n.length;i++){let n=e[i],s=i<r.length;if(n.issues.length){if(!s&&i>=o){t.value.length=i;break}t.issues.push(...a.prefixIssues(i,n.issues))}t.value[i]=n.value}for(let e=t.value.length-1;e>=r.length;e--)if("optional"===n[e]._zod.optout&&void 0===t.value[e])t.value.length=e;else break;return t}let ey=r.$constructor("$ZodRecord",(e,t)=>{c.init(e,t),e._zod.parse=(n,o)=>{let i=n.value;if(!a.isPlainObject(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;let u=[],c=t.keyType._zod.values;if(c){let s;n.value={};let l=new Set;for(let s of c)if("string"==typeof s||"number"==typeof s||"symbol"==typeof s){l.add("number"==typeof s?s.toString():s);let c=t.keyType._zod.run({value:s,issues:[]},o);if(c instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(e=>a.finalizeIssue(e,o,r.config())),input:s,path:[s],inst:e});continue}let d=c.value,p=t.valueType._zod.run({value:i[s],issues:[]},o);p instanceof Promise?u.push(p.then(e=>{e.issues.length&&n.issues.push(...a.prefixIssues(s,e.issues)),n.value[d]=e.value})):(p.issues.length&&n.issues.push(...a.prefixIssues(s,p.issues)),n.value[d]=p.value)}for(let e in i)l.has(e)||(s=s??[]).push(e);s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else for(let c of(n.value={},Reflect.ownKeys(i))){if("__proto__"===c||!Object.prototype.propertyIsEnumerable.call(i,c))continue;let l=t.keyType._zod.run({value:c,issues:[]},o);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof c&&s.number.test(c)&&l.issues.length){let e=t.keyType._zod.run({value:Number(c),issues:[]},o);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(l=e)}if(l.issues.length){"loose"===t.mode?n.value[c]=i[c]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(e=>a.finalizeIssue(e,o,r.config())),input:c,path:[c],inst:e});continue}let d=t.valueType._zod.run({value:i[c],issues:[]},o);d instanceof Promise?u.push(d.then(e=>{e.issues.length&&n.issues.push(...a.prefixIssues(c,e.issues)),n.value[l.value]=e.value})):(d.issues.length&&n.issues.push(...a.prefixIssues(c,d.issues)),n.value[l.value]=d.value)}return u.length?Promise.all(u).then(()=>n):n}}),eg=r.$constructor("$ZodMap",(e,t)=>{c.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;if(!(o instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),n;let i=[];for(let[s,a]of(n.value=new Map,o)){let u=t.keyType._zod.run({value:s,issues:[]},r),c=t.valueType._zod.run({value:a,issues:[]},r);
60u instanceof Promise||c instanceof Promise?i.push(Promise.all([u,c]).then(([t,i])=>{ez(t,i,n,s,o,e,r)})):ez(u,c,n,s,o,e,r)}return i.length?Promise.all(i).then(()=>n):n}});function ez(e,t,n,o,i,s,u){e.issues.length&&(a.propertyKeyTypes.has(typeof o)?n.issues.push(...a.prefixIssues(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:i,inst:s,issues:e.issues.map(e=>a.finalizeIssue(e,u,r.config()))})),t.issues.length&&(a.propertyKeyTypes.has(typeof o)?n.issues.push(...a.prefixIssues(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:i,inst:s,key:o,issues:t.issues.map(e=>a.finalizeIssue(e,u,r.config()))})),n.value.set(e.value,t.value)}let ev=r.$constructor("$ZodSet",(e,t)=>{c.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;if(!(o instanceof Set))return n.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),n;let i=[];for(let e of(n.value=new Set,o)){let o=t.valueType._zod.run({value:e,issues:[]},r);o instanceof Promise?i.push(o.then(e=>e$(e,n))):e$(o,n)}return i.length?Promise.all(i).then(()=>n):n}});function e$(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let eb=r.$constructor("$ZodEnum",(e,t)=>{c.init(e,t);let n=a.getEnumValues(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>a.propertyKeyTypes.has(typeof e)).map(e=>"string"==typeof e?a.escapeRegex(e):e.toString()).join("|")})$`),e._zod.parse=(t,o)=>{let i=t.value;return r.has(i)||t.issues.push({code:"invalid_value",values:n,input:i,inst:e}),t}}),eZ=r.$constructor("$ZodLiteral",(e,t)=>{if(c.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?a.escapeRegex(e):e?a.escapeRegex(e.toString()):String(e)).join("|")})$`),e._zod.parse=(r,o)=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),ew=r.$constructor("$ZodFile",(e,t)=>{c.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),t}}),ek=r.$constructor("$ZodTransform",(e,t)=>{c.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>
60{if("backward"===o.direction)throw new r.$ZodEncodeError(e.constructor.name);let i=t.transform(n.value,n);if(o.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new r.$ZodAsyncError;return n.value=i,n.fallback=!0,n}});function eP(e,t){return void 0===t&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}let eS=r.$constructor("$ZodOptional",(e,t)=>{c.init(e,t),e._zod.optin="optional",e._zod.optout="optional",a.defineLazy(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),a.defineLazy(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${a.cleanRegex(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){let r=e.value,o=t.innerType._zod.run(e,n);return o instanceof Promise?o.then(e=>eP(e,r)):eP(o,r)}return void 0===e.value?e:t.innerType._zod.run(e,n)}}),eO=r.$constructor("$ZodExactOptional",(e,t)=>{eS.init(e,t),a.defineLazy(e._zod,"values",()=>t.innerType._zod.values),a.defineLazy(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),ex=r.$constructor("$ZodNullable",(e,t)=>{c.init(e,t),a.defineLazy(e._zod,"optin",()=>t.innerType._zod.optin),a.defineLazy(e._zod,"optout",()=>t.innerType._zod.optout),a.defineLazy(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${a.cleanRegex(e.source)}|null)$`):void 0}),a.defineLazy(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),eE=r.$constructor("$ZodDefault",(e,t)=>{c.init(e,t),e._zod.optin="optional",a.defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>eT(e,t)):eT(r,t)}});function eT(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let eA=r.$constructor("$ZodPrefault",(e,t)=>{c.init(e,t),e._zod.optin="optional",a.defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),eI=r.$constructor("$ZodNonOptional",(e,t)=>{c.init(e,t),a.defineLazy(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(t=>eN(t,e)):eN(o,e)}});function eN(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 ej=r.$constructor("$ZodSuccess",(e,t)=>{c.init(e,t),e._zod.parse=(e,n)=>{if("backward"===n.direction)throw new r.$ZodEncodeError("ZodSuccess");let o=t.innerType._zod.run(e,n);return o instanceof Promise?o.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===o.issues.length,e)}}),eC=r.$constructor("$ZodCatch",(e,t)=>{c.init(e,t),e._zod.optin="optional",a.defineLazy(e._zod,"optout",()=>t.innerType._zod.optout),a.defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let o=t.innerType._zod.run(e,n);return o instanceof Promise?o.then(o=>(e.value=o.value,o.issues.length&&(e.value=t.catchValue({...e,error:{issues:o.issues.map(e=>a.finalizeIssue(e,n,r.config()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=o.value,o.issues.length&&(e.value=t.catchValue({...e,error:{issues:o.issues.map(e=>a.finalizeIssue(e,n,r.config()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),eR=r.$constructor("$ZodNaN",(e,t)=>{c.init(e,t),e._zod.parse=(t,n)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),eD=r.$constructor("$ZodPipe",(e,t)=>{c.init(e,t),a.defineLazy(e._zod,"values",()=>t.in._zod.values),a.defineLazy(e._zod,"optin",()=>t.in._zod.optin),a.defineLazy(e._zod,"optout",()=>t.out._zod.optout),a.defineLazy(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("backward"===n.direction){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>eL(e,t.in,n)):eL(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>eL(e,t.out,n)):eL(r,t.out,n)}});
60function eL(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}let eF=r.$constructor("$ZodCodec",(e,t)=>{c.init(e,t),a.defineLazy(e._zod,"values",()=>t.in._zod.values),a.defineLazy(e._zod,"optin",()=>t.in._zod.optin),a.defineLazy(e._zod,"optout",()=>t.out._zod.optout),a.defineLazy(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("forward"===(n.direction||"forward")){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>eU(e,t,n)):eU(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>eU(e,t,n)):eU(r,t,n)}}});function eU(e,t,n){if(e.issues.length)return e.aborted=!0,e;if("forward"===(n.direction||"forward")){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>eJ(e,r,t.out,n)):eJ(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>eJ(e,r,t.in,n)):eJ(e,r,t.in,n)}}function eJ(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}let eM=r.$constructor("$ZodPreprocess",(e,t)=>{eD.init(e,t)}),eB=r.$constructor("$ZodReadonly",(e,t)=>{c.init(e,t),a.defineLazy(e._zod,"propValues",()=>t.innerType._zod.propValues),a.defineLazy(e._zod,"values",()=>t.innerType._zod.values),a.defineLazy(e._zod,"optin",()=>t.innerType?._zod?.optin),a.defineLazy(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(eV):eV(r)}});function eV(e){return e.value=Object.freeze(e.value),e}let eW=r.$constructor("$ZodTemplateLiteral",(e,t)=>{c.init(e,t);let n=[];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 r=+!!t.startsWith("^"),o=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(r,o))}else if(null===e||a.primitiveTypes.has(typeof e))n.push(a.escapeRegex(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join("")}$`),e._zod.parse=(n,r)=>("string"!=typeof n.value?n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),n)}),eK=r.$constructor("$ZodFunction",(e,t)=>(c.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(...n){let r=Reflect.apply(t,this,e._def.input?(0,i.parse)(e._def.input,n):n);return e._def.output?(0,i.parse)(e._def.output,r):r}},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return async function(...n){let r=e._def.input?await (0,i.parseAsync)(e._def.input,n):n,o=await Reflect.apply(t,this,r);return e._def.output?await (0,i.parseAsync)(e._def.output,o):o}},e._zod.parse=(t,n)=>("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 n=e.constructor;return new n(Array.isArray(t[0])?{type:"function",input:new ef({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)),eG=r.$constructor("$ZodPromise",(e,t)=>{c.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),eq=r.$constructor("$ZodLazy",(e,t)=>{c.init(e,t),a.defineLazy(e._zod,"innerType",()=>(t._cachedInner||(t._cachedInner=t.getter()),t._cachedInner)),a.defineLazy(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),a.defineLazy(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),a.defineLazy(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),a.defineLazy(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),eX=r.$constructor("$ZodCustom",(e,t)=>{n.$ZodCheck.init(e,t),c.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(t=>eH(t,n,r,e));eH(o,n,r,e)}});function eH(e,t,n,r){if(!e){let e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(a.issue(e))}}e.s(["$ZodAny",0,G,"$ZodArray",0,ee,"$ZodBase64",0,I,"$ZodBase64URL",0,j,"$ZodBigInt",0,M,"$ZodBigIntFormat",0,B,"$ZodB
60oolean",0,J,"$ZodCIDRv4",0,E,"$ZodCIDRv6",0,T,"$ZodCUID",0,g,"$ZodCUID2",0,z,"$ZodCatch",0,eC,"$ZodCodec",0,eF,"$ZodCustom",0,eX,"$ZodCustomStringFormat",0,L,"$ZodDate",0,Y,"$ZodDefault",0,eE,"$ZodDiscriminatedUnion",0,el,"$ZodE164",0,C,"$ZodEmail",0,m,"$ZodEmoji",0,_,"$ZodEnum",0,eb,"$ZodExactOptional",0,eO,"$ZodFile",0,ew,"$ZodFunction",0,eK,"$ZodGUID",0,p,"$ZodIPv4",0,S,"$ZodIPv6",0,O,"$ZodISODate",0,w,"$ZodISODateTime",0,Z,"$ZodISODuration",0,P,"$ZodISOTime",0,k,"$ZodIntersection",0,ed,"$ZodJWT",0,D,"$ZodKSUID",0,b,"$ZodLazy",0,eq,"$ZodLiteral",0,eZ,"$ZodMAC",0,x,"$ZodMap",0,eg,"$ZodNaN",0,eR,"$ZodNanoID",0,y,"$ZodNever",0,X,"$ZodNonOptional",0,eI,"$ZodNull",0,K,"$ZodNullable",0,ex,"$ZodNumber",0,F,"$ZodNumberFormat",0,U,"$ZodObject",0,eo,"$ZodObjectJIT",0,ei,"$ZodOptional",0,eS,"$ZodPipe",0,eD,"$ZodPrefault",0,eA,"$ZodPreprocess",0,eM,"$ZodPromise",0,eG,"$ZodReadonly",0,eB,"$ZodRecord",0,ey,"$ZodSet",0,ev,"$ZodString",0,l,"$ZodStringFormat",0,d,"$ZodSuccess",0,ej,"$ZodSymbol",0,V,"$ZodTemplateLiteral",0,eW,"$ZodTransform",0,ek,"$ZodTuple",0,ef,"$ZodType",0,c,"$ZodULID",0,v,"$ZodURL",0,h,"$ZodUUID",0,f,"$ZodUndefined",0,W,"$ZodUnion",0,ea,"$ZodUnknown",0,q,"$ZodVoid",0,H,"$ZodXID",0,$,"$ZodXor",0,ec,"isValidBase64",0,A,"isValidBase64URL",0,N,"isValidJWT",0,R],676094);let eY=Symbol("ZodOutput"),eQ=Symbol("ZodInput");class e0{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.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 n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function e1(){return new e0}(t=globalThis).__zod_globalRegistry??(t.__zod_globalRegistry=e1());let e4=globalThis.__zod_globalRegistry;function e2(e,t){return new n.$ZodCheckLessThan({check:"less_than",...a.normalizeParams(t),value:e,inclusive:!1})}function e6(e,t){return new n.$ZodCheckLessThan({check:"less_than",...a.normalizeParams(t),value:e,inclusive:!0})}function e9(e,t){return new n.$ZodCheckGreaterThan({check:"greater_than",...a.normalizeParams(t),value:e,inclusive:!1})}function e3(e,t){return new n.$ZodCheckGreaterThan({check:"greater_than",...a.normalizeParams(t),value:e,inclusive:!0})}function e5(e){return new n.$ZodCheckOverwrite({check:"overwrite",tx:e})}function e8(e,t){let r=new n.$ZodCheck({check:"custom",...a.normalizeParams(t)});return r._zod.check=e,r}e.s(["$ZodRegistry",0,e0,"$input",0,eQ,"$output",0,eY,"globalRegistry",0,e4,"registry",0,e1],525527),e.s(["TimePrecision",0,{Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6},"_any",0,function(e){return new e({type:"any"})},"_array",0,function(e,t,n){return new e({type:"array",element:t,...a.normalizeParams(n)})},"_base64",0,function(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_base64url",0,function(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_bigint",0,function(e,t){return new e({type:"bigint",...a.normalizeParams(t)})},"_boolean",0,function(e,t){return new e({type:"boolean",...a.normalizeParams(t)})},"_catch",0,function(e,t,n){return new e({type:"catch",innerType:t,catchValue:"function"==typeof n?n:()=>n})},"_check",0,e8,"_cidrv4",0,function(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_cidrv6",0,function(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_coercedBigint",0,function(e,t){return new e({type:"bigint",coerce:!0,...a.normalizeParams(t)})},"_coercedBoolean",0,function(e,t){return new e({type:"boolean",coerce:!0,...a.normalizeParams(t)})},"_coercedDate",0,function(e,t){return new e({type:"date",coerce:!0,...a.normalizeParams(t)})},"_coercedNumber",0,function(e,t){return new e({type:"number",coerce:!0,checks:[],...a.normalizeParams(t)})},"_coercedString",0,function(e,t){return new e({type:"string",coerce:!0,...a.normalizeParams(t)})},"_cuid",0,function(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_cuid2",0,function(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_custom",0,function(e,t,n){let r=a.normalizeParams(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})},"_date",0,function(e,t){return new e({type:"date",...a.normalizeParams(t)})},"_default",0,function(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():a.shallowClone(n)}})},"_discriminatedUnion",0,function(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...a.normalizeParams(r)})},"_e164",0,function(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_email",0,function(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_emoji",0,function(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_endsWith",0,function(e,t){return new n.$ZodCheckEndsWith({check:"string_format",format:"ends_with",...a.normalizeParams(t),suffix:e})},"_enum",0,function(e,t,n){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...a.normalizeParams(n)})},"_file",0,function(e,t){return new e({type:"file",...a.normalizeParams(t)})},"_float32",0,function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...a.normalizeParams(t)})},"_float64",0,function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...a.normalizeParams(t)})},"_gt",0,e9,"_gte",0,e3,"_guid",0,function(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_includes",0,function(e,t){return new n.$ZodCheckIncludes({check:"string_format",format:"includes",...a.normalizeParams(t),includes:e})},"_int",0,function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...a.normalizeParams(t)})},"_int32",0,function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...a.normalizeParams(t)})},"_int64",0,function(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...a.normalizeParams(t)})},"_intersection",0,function(e,t,n){return new e({type:"intersection",left:t,right:n})},"_ipv4",0,function(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_ipv6",0,function(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_isoDate",0,function(e,t){return new e({type:"string",format:"date",check:"string_format",...a.normalizeParams(t)})},"_isoDateTime",0,function(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...a.normalizeParams(t)})},"_isoDuration",0,function(e,t){return new e({type:"string",format:"duration",check:"string_format",...a.normalizeParams(t)})},"_isoTime",0,function(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...a.normalizeParams(t)})},"_jwt",0,function(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_ksuid",0,function(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_lazy",0,function(e,t){return new e({type:"lazy",getter:t})},"_length",0,function(e,t){return new n.$ZodCheckLengthEquals({check:"length_equals",...a.normalizeParams(t),length:e})},"_literal",0,function(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...a.normalizeParams(n)})},"_lowercase",0,function(e){return new n.$ZodCheckLowerCase({check:"string_format",format:"lowercase",...a.normalizeParams(e)})},"_lt",0,e2,"_lte",0,e6,"_mac",0,function(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_map",0,function(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...a.normalizeParams(r)})},"_max",0,e6,"_maxLength",0,function(e,t){return new n.$ZodCheckMaxLength({check:"max_length",...a.normalizeParams(t),maximum:e})},"_maxSize",0,function(e,t){return new n.$ZodCheckMaxSize({check:"max_size",...a.normalizeParams(t),maximum:e})},"_mime",0,function(e,t){return new n.$ZodCheckMimeType({check:"mime_type",mime:e,...a.normalizeParams(t)})},"_min",0,e3,"_minLength",0,function(e,t){return new n.$ZodCheckMinLength({check:"min_length",...a.normalizeParams(t),minimum:e})},"_minSize",0,function(e,t){return new n.$ZodCheckMinSize({check:"min_size",...a.normalizeParams(t),minimum:e})},"_multipleOf",0,function(e,t){return new n.$ZodCheckMultipleOf({check:"multiple_of",...a.normalizeParams(t),value:e})},"_nan",0,function(e,t){return new e({type:"nan",...a.normalizeParams(t)})},"_nanoid",0,function(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_nativeEnum",0,function(e,t,n){return new e({type:"enum",entries:t,...a.normalizeParams(n)})},"_negative",0,function(e){return e2(0,e)},"_never",0,function(e,t){return new e({type:"never",...a.normalizeParams(t)})},"_nonnegative",0,function(e){return e3(0,e)},"_nonoptional",0,function(e,t,n){return new e({type:"nonoptional",innerType:t,...a.normalizeParams(n)})},"_nonpositive",0,function(e){return e6(0,e)},"_normalize",0,function(e){return e5(t=>t.normalize(e))},"_null",0,function(e,t){return new e({type:"null",...a.normalizeParams(t)})},"_nullable",0,function(e,t){return new e({type:"nullable",innerType:t})},"_number",0,function(e,t){return new e({type:"number",checks:[],...a.normalizeParams(t)})},"_optional",0,function(e,t){return new e({type:"optional",innerType:t})}
60,"_overwrite",0,e5,"_pipe",0,function(e,t,n){return new e({type:"pipe",in:t,out:n})},"_positive",0,function(e){return e9(0,e)},"_promise",0,function(e,t){return new e({type:"promise",innerType:t})},"_property",0,function(e,t,r){return new n.$ZodCheckProperty({check:"property",property:e,schema:t,...a.normalizeParams(r)})},"_readonly",0,function(e,t){return new e({type:"readonly",innerType:t})},"_record",0,function(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...a.normalizeParams(r)})},"_refine",0,function(e,t,n){return new e({type:"custom",check:"custom",fn:t,...a.normalizeParams(n)})},"_regex",0,function(e,t){return new n.$ZodCheckRegex({check:"string_format",format:"regex",...a.normalizeParams(t),pattern:e})},"_set",0,function(e,t,n){return new e({type:"set",valueType:t,...a.normalizeParams(n)})},"_size",0,function(e,t){return new n.$ZodCheckSizeEquals({check:"size_equals",...a.normalizeParams(t),size:e})},"_slugify",0,function(){return e5(e=>a.slugify(e))},"_startsWith",0,function(e,t){return new n.$ZodCheckStartsWith({check:"string_format",format:"starts_with",...a.normalizeParams(t),prefix:e})},"_string",0,function(e,t){return new e({type:"string",...a.normalizeParams(t)})},"_stringFormat",0,function(e,t,n,r={}){let o=a.normalizeParams(r),i={...a.normalizeParams(r),check:"string_format",type:"string",format:t,fn:"function"==typeof n?n:e=>n.test(e),...o};return n instanceof RegExp&&(i.pattern=n),new e(i)},"_stringbool",0,function(e,t){let n=a.normalizeParams(t),r=n.truthy??["true","1","yes","on","y","enabled"],o=n.falsy??["false","0","no","off","n","disabled"];"sensitive"!==n.case&&(r=r.map(e=>"string"==typeof e?e.toLowerCase():e),o=o.map(e=>"string"==typeof e?e.toLowerCase():e));let i=new Set(r),s=new Set(o),u=e.Codec??eF,c=e.Boolean??J,d=new u({type:"pipe",in:new(e.String??l)({type:"string",error:n.error}),out:new c({type:"boolean",error:n.error}),transform:(e,t)=>{let r=e;return"sensitive"!==n.case&&(r=r.toLowerCase()),!!i.has(r)||!s.has(r)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:t.value,inst:d,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?r[0]||"true":o[0]||"false",error:n.error});return d},"_success",0,function(e,t){return new e({type:"success",innerType:t})},"_superRefine",0,function(e,t){let n=e8(t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(a.issue(e,t.value,n._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=t.value),e.inst??(e.inst=n),e.continue??(e.continue=!n._zod.def.abort),t.issues.push(a.issue(e)))},e(t.value,t)),t);return n},"_symbol",0,function(e,t){return new e({type:"symbol",...a.normalizeParams(t)})},"_templateLiteral",0,function(e,t,n){return new e({type:"template_literal",parts:t,...a.normalizeParams(n)})},"_toLowerCase",0,function(){return e5(e=>e.toLowerCase())},"_toUpperCase",0,function(){return e5(e=>e.toUpperCase())},"_transform",0,function(e,t){return new e({type:"transform",transform:t})},"_trim",0,function(){return e5(e=>e.trim())},"_tuple",0,function(e,t,n,r){let o=n instanceof c,i=o?r:n;return new e({type:"tuple",items:t,rest:o?n:null,...a.normalizeParams(i)})},"_uint32",0,function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...a.normalizeParams(t)})},"_uint64",0,function(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...a.normalizeParams(t)})},"_ulid",0,function(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_undefined",0,function(e,t){return new e({type:"undefined",...a.normalizeParams(t)})},"_union",0,function(e,t,n){return new e({type:"union",options:t,...a.normalizeParams(n)})},"_unknown",0,function(e){return new e({type:"unknown"})},"_uppercase",0,function(e){return new n.$ZodCheckUpperCase({check:"string_format",format:"uppercase",...a.normalizeParams(e)})},"_url",0,function(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_uuid",0,function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_uuidv4",0,function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...a.normalizeParams(t)})},"_uuidv6",0,function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...a.normalizeParams(t)})},"_uuidv7",0,function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...a.normalizeParams(t)})},"_void",0,function(e,t){return new e({type:"void",...a.normalizeParams(t)})},"_xid",0,function(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...a.normalizeParams(t)})},"_xor",0,function(e,t,n){return new e({type:"union",options:t,inclusive:!1,...a.normalizeParams(n)})},"describe",0,function(e){let t=new n.$ZodCheck({check:"describe"});return t._zod.onattach=[t=>{let n=e4.get(t)??{};e4.add(t,{...n,description:e})}],t._zod.check=()=>{},t},"meta",0,function(e){let t=new n.$ZodCheck({check:"meta"});return t._zod.onattach=[t=>{let n=e4.get(t)??{};e4.add(t,{...n,...e})}],t._zod.check=()=>{},t}],650215)},321678,34966,e=>{"use strict";var t=e.i(525527);
60function n(e){let n=e?.target??"draft-2020-12";return"draft-4"===n&&(n="draft-04"),"draft-7"===n&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??t.globalRegistry,target:n,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 r(e,t,n={path:[],schemaPath:[]}){var o;let i=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let u=e._zod.toJSONSchema?.();if(u)a.schema=u;else{let o={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,o);else{let n=a.schema,r=t.processors[i.type];if(!r)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);r(e,t,n,o)}let s=e._zod.parent;s&&(a.ref||(a.ref=s),r(s,t,o),t.seen.get(s).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),"input"===t.io&&function e(t,n){let r=n??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let o=t._zod.def;if("transform"===o.type)return!0;if("array"===o.type)return e(o.element,r);if("set"===o.type)return e(o.valueType,r);if("lazy"===o.type)return e(o.getter(),r);if("promise"===o.type||"optional"===o.type||"nonoptional"===o.type||"nullable"===o.type||"readonly"===o.type||"default"===o.type||"prefault"===o.type)return e(o.innerType,r);if("intersection"===o.type)return e(o.left,r)||e(o.right,r);if("record"===o.type||"map"===o.type)return e(o.keyType,r)||e(o.valueType,r);if("pipe"===o.type)return!!t._zod.traits.has("$ZodCodec")||e(o.in,r)||e(o.out,r);if("object"===o.type){for(let t in o.shape)if(e(o.shape[t],r))return!0;return!1}if("union"===o.type){for(let t of o.options)if(e(t,r))return!0;return!1}if("tuple"===o.type){for(let t of o.items)if(e(t,r))return!0;if(o.rest&&e(o.rest,r))return!0}return!1}(e)&&(delete a.schema.examples,delete a.schema.default),"input"===t.io&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function o(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let o=t=>{if(t[1].schema.$ref)return;let r=t[1],{ref:o,defId:i}=(t=>{let r="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let n=e.external.registry.get(t[0])?.id,o=e.external.uri??(e=>e);if(n)return{ref:o(n)};let i=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=i,{defId:i,ref:`${o("__shared")}#/${r}/${i}`}}if(t[1]===n)return{ref:"#"};let o=`#/${r}/`,i=t[1].schema.id??`__schema${e.counter++}`;return{defId:i,ref:o+i}})(t);r.def={...r.schema},i&&(r.defId=i);let s=r.schema;for(let e in s)delete s[e];s.$ref=o};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>
61
62Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){o(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){o(n);continue}}if(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&"ref"===e.reused){o(n);continue}}}function i(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let r=t=>{let n=e.seen.get(t);if(null===n.ref)return;let o=n.def??n.schema,i={...o},s=n.ref;if(n.ref=null,s){r(s);let n=e.seen.get(s),a=n.schema;if(a.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(o.allOf=o.allOf??[],o.allOf.push(a)):Object.assign(o,a),Object.assign(o,i),t._zod.parent===s)for(let e in o)"$ref"!==e&&"allOf"!==e&&(e in i||delete o[e]);if(a.$ref&&n.def)for(let e in o)"$ref"!==e&&"allOf"!==e&&e in n.def&&JSON.stringify(o[e])===JSON.stringify(n.def[e])&&delete o[e]}let a=t._zod.parent;if(a&&a!==s){r(a);let t=e.seen.get(a);if(t?.schema.$ref&&(o.$ref=t.schema.$ref,t.def))for(let e in o)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(o[e])===JSON.stringify(t.def[e])&&delete o[e]}e.override({zodSchema:t,jsonSchema:o,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let o={};
62if("draft-2020-12"===e.target?o.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?o.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");o.$id=e.external.uri(n)}Object.assign(o,n.def??n.schema);let i=e.metadataRegistry.get(t)?.id;void 0!==i&&o.id===i&&delete o.id;let a=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,a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?o.$defs=a:o.definitions=a);try{let n=JSON.parse(JSON.stringify(o));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:s(t,"input",e.processors),output:s(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw Error("Error converting schema to JSON.")}}let s=(e,t,s={})=>a=>{let{libraryOptions:u,target:c}=a??{},l=n({...u??{},target:c,io:t,processors:s});return r(e,l),o(l,e),i(l,e)};e.s(["createStandardJSONSchemaMethod",0,s,"createToJSONSchemaMethod",0,(e,t={})=>s=>{let a=n({...s,processors:t});return r(e,a),o(a,e),i(a,e)},"extractDefs",0,o,"finalize",0,i,"initializeContext",0,n,"process",0,r],34966);var a=e.i(922143);let u={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},c=(e,t,n,r)=>{n.type="string";let{minimum:o,maximum:i,format:s,patterns:a,contentEncoding:c}=e._zod.bag;if("number"==typeof o&&(n.minLength=o),"number"==typeof i&&(n.maxLength=i),s&&(n.format=u[s]??s,""===n.format&&delete n.format,"time"===s&&delete n.format),c&&(n.contentEncoding=c),a&&a.size>0){let e=[...a];1===e.length?n.pattern=e[0].source:e.length>1&&(n.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},l=(e,t,n,r)=>{let{minimum:o,maximum:i,format:s,multipleOf:a,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;"string"==typeof s&&s.includes("int")?n.type="integer":n.type="number";let l="number"==typeof c&&c>=(o??-1/0),d="number"==typeof u&&u<=(i??1/0),p="draft-04"===t.target||"openapi-3.0"===t.target;l?p?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c:"number"==typeof o&&(n.minimum=o),d?p?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:"number"==typeof i&&(n.maximum=i),"number"==typeof a&&(n.multipleOf=a)},d=(e,t,n,r)=>{n.type="boolean"},p=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema")},f=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema")},m=(e,t,n,r)=>{"openapi-3.0"===t.target?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},h=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema")},_=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Void cannot be represented in JSON Schema")},y=(e,t,n,r)=>{n.not={}},g=(e,t,n,r)=>{},z=(e,t,n,r)=>{},v=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")},$=(e,t,n,r)=>{let o=e._zod.def,i=(0,a.getEnumValues)(o.entries);i.every(e=>"number"==typeof e)&&(n.type="number"),i.every(e=>"string"==typeof e)&&(n.type="string"),n.enum=i},b=(e,t,n,r)=>{let o=e._zod.def,i=[];for(let e of o.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 i.push(Number(e));else i.push(e);if(0===i.length);else if(1===i.length){let e=i[0];n.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?n.enum=[e]:n.const=e}else i.every(e=>"number"==typeof e)&&(n.type="number"),i.every(e=>"string"==typeof e)&&(n.type="string"),i.every(e=>"boolean"==typeof e)&&(n.type="boolean"),i.every(e=>null===e)&&(n.type="null"),n.enum=i},Z=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("NaN cannot be represented in JSON Schema")},w=(e,t,n,r)=>{let o=e._zod.pattern;if(!o)throw Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},k=(e,t,n,r)=>{let o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:s,mime:a}=e._zod.bag;void 0!==i&&(o.minLength=i),void 0!==s&&(o.maxLength=s),a?1===a.length?(o.contentMediaType=a[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=a.map(e=>({contentMediaType:e}))):Object.assign(n,o)},P=(e,t,n,r)=>{n.type="boolean"},S=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")},O=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")},x=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")},E=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Map cannot be represented in JSON Schema")},T=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Set cannot be represented in JSON Schema")},A=(e,t,n,o)=>{let i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;"number"==typeof s&&(n.minItems=s),"number"==typeof a&&(n.maxItems=a),n.type="array",n.items=r(i.element,t,{...o,path:[...o.path,"items"]})},I=(e,t,n,o)=>{let i=e._zod.def;n.type="object",n.properties={};let s=i.shape;for(let e in s)n.properties[e]=r(s[e],t,{...o,path:[...o.path,"properties",e]});let a=new Set([...new Set(Object.keys(s))].filter(e=>{let n=i.shape[e]._zod;return"input"===t.io?void 0===n.optin:void 0===n.optout}));a.size>0&&(n.required=Array.from(a)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=r(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):"output"===t.io&&(n.additionalProperties=!1)},N=(e,t,n,o)=>{let i=e._zod.def,s=!1===i.inclusive,a=i.options.map((e,n)=>r(e,t,{...o,path:[...o.path,s?"oneOf":"anyOf",n]}));s?n.oneOf=a:n.anyOf=a},j=(e,t,n,o)=>{let i=e._zod.def,s=r(i.left,t,{...o,path:[...o.path,"allOf",0]}),a=r(i.right,t,{...o,path:[...o.path,"allOf",1]}),u=e=>"allOf"in e&&1===Object.keys(e).length;n.allOf=[...u(s)?s.allOf:[s],...u(a)?a.allOf:[a]]},C=(e,t,n,o)=>{let i=e._zod.def;n.type="array";
62let s="draft-2020-12"===t.target?"prefixItems":"items",a="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",u=i.items.map((e,n)=>r(e,t,{...o,path:[...o.path,s,n]})),c=i.rest?r(i.rest,t,{...o,path:[...o.path,a,..."openapi-3.0"===t.target?[i.items.length]:[]]}):null;"draft-2020-12"===t.target?(n.prefixItems=u,c&&(n.items=c)):"openapi-3.0"===t.target?(n.items={anyOf:u},c&&n.items.anyOf.push(c),n.minItems=u.length,c||(n.maxItems=u.length)):(n.items=u,c&&(n.additionalItems=c));let{minimum:l,maximum:d}=e._zod.bag;"number"==typeof l&&(n.minItems=l),"number"==typeof d&&(n.maxItems=d)},R=(e,t,n,o)=>{let i=e._zod.def;n.type="object";let s=i.keyType,a=s._zod.bag,u=a?.patterns;if("loose"===i.mode&&u&&u.size>0){let e=r(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});for(let t of(n.patternProperties={},u))n.patternProperties[t.source]=e}else("draft-07"===t.target||"draft-2020-12"===t.target)&&(n.propertyNames=r(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=r(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=s._zod.values;if(c){let e=[...c].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(n.required=e)}},D=(e,t,n,o)=>{let i=e._zod.def,s=r(i.innerType,t,o),a=t.seen.get(e);"openapi-3.0"===t.target?(a.ref=i.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},L=(e,t,n,o)=>{let i=e._zod.def;r(i.innerType,t,o),t.seen.get(e).ref=i.innerType},F=(e,t,n,o)=>{let i=e._zod.def;r(i.innerType,t,o),t.seen.get(e).ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},U=(e,t,n,o)=>{let i=e._zod.def;r(i.innerType,t,o),t.seen.get(e).ref=i.innerType,"input"===t.io&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},J=(e,t,n,o)=>{let i,s=e._zod.def;r(s.innerType,t,o),t.seen.get(e).ref=s.innerType;try{i=s.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},M=(e,t,n,o)=>{let i=e._zod.def,s=i.in._zod.traits.has("$ZodTransform"),a="input"===t.io?s?i.out:i.in:i.out;r(a,t,o),t.seen.get(e).ref=a},B=(e,t,n,o)=>{let i=e._zod.def;r(i.innerType,t,o),t.seen.get(e).ref=i.innerType,n.readOnly=!0},V=(e,t,n,o)=>{let i=e._zod.def;r(i.innerType,t,o),t.seen.get(e).ref=i.innerType},W=(e,t,n,o)=>{let i=e._zod.def;r(i.innerType,t,o),t.seen.get(e).ref=i.innerType},K=(e,t,n,o)=>{let i=e._zod.innerType;r(i,t,o),t.seen.get(e).ref=i},G={string:c,number:l,boolean:d,bigint:p,symbol:f,null:m,undefined:h,void:_,never:y,any:g,unknown:z,date:v,enum:$,literal:b,nan:Z,template_literal:w,file:k,success:P,custom:S,function:O,transform:x,map:E,set:T,array:A,object:I,union:N,intersection:j,tuple:C,record:R,nullable:D,nonoptional:L,default:F,prefault:U,catch:J,pipe:M,readonly:B,promise:V,optional:W,lazy:K};e.s(["allProcessors",0,G,"anyProcessor",0,g,"arrayProcessor",0,A,"bigintProcessor",0,p,"booleanProcessor",0,d,"catchProcessor",0,J,"customProcessor",0,S,"dateProcessor",0,v,"defaultProcessor",0,F,"enumProcessor",0,$,"fileProcessor",0,k,"functionProcessor",0,O,"intersectionProcessor",0,j,"lazyProcessor",0,K,"literalProcessor",0,b,"mapProcessor",0,E,"nanProcessor",0,Z,"neverProcessor",0,y,"nonoptionalProcessor",0,L,"nullProcessor",0,m,"nullableProcessor",0,D,"numberProcessor",0,l,"objectProcessor",0,I,"optionalProcessor",0,W,"pipeProcessor",0,M,"prefaultProcessor",0,U,"promiseProcessor",0,V,"readonlyProcessor",0,B,"recordProcessor",0,R,"setProcessor",0,T,"stringProcessor",0,c,"successProcessor",0,P,"symbolProcessor",0,f,"templateLiteralProcessor",0,w,"toJSONSchema",0,function(e,t){if("_idmap"in e){let s=n({...t,processors:G}),a={};
62for(let t of e._idmap.entries()){let[e,n]=t;r(n,s)}let u={};for(let n of(s.external={registry:e,uri:t?.uri,defs:a},e._idmap.entries())){let[e,t]=n;o(s,t),u[e]=i(s,t)}return Object.keys(a).length>0&&(u.__shared={["draft-2020-12"===s.target?"$defs":"definitions"]:a}),{schemas:u}}let s=n({...t,processors:G});return r(e,s),o(s,e),i(s,e)},"transformProcessor",0,x,"tupleProcessor",0,C,"undefinedProcessor",0,h,"unionProcessor",0,N,"unknownProcessor",0,z,"voidProcessor",0,_],321678)},429321,313088,e=>{"use strict";var t=e.i(682358);e.s(["regexes",0,t],429321);var n=e.i(922143);e.s(["util",0,n],313088)},663215,351778,388527,829030,755511,980002,843808,545323,5026,781897,834983,22810,348924,500954,95162,790190,288422,847135,401071,466990,49732,e=>{"use strict";var t=e.i(650215);e.s(["overwrite",()=>t._overwrite],663215),e.s(["regex",()=>t._regex],351778),e.s(["includes",()=>t._includes],388527),e.s(["startsWith",()=>t._startsWith],829030),e.s(["endsWith",()=>t._endsWith],755511),e.s(["minLength",()=>t._minLength],980002),e.s(["maxLength",()=>t._maxLength],843808),e.s(["length",()=>t._length],545323),e.s(["lowercase",()=>t._lowercase],5026),e.s(["uppercase",()=>t._uppercase],781897),e.s(["trim",()=>t._trim],834983),e.s(["normalize",()=>t._normalize],22810),e.s(["toLowerCase",()=>t._toLowerCase],348924),e.s(["toUpperCase",()=>t._toUpperCase],500954),e.s(["slugify",()=>t._slugify],95162),e.s(["gt",()=>t._gt],790190),e.s(["gte",()=>t._gte],288422),e.s(["lt",()=>t._lt],847135),e.s(["lte",()=>t._lte],401071),e.s(["multipleOf",()=>t._multipleOf],466990),e.s(["ZodISODate",()=>a,"ZodISODateTime",()=>i,"ZodISODuration",()=>d,"ZodISOTime",()=>c,"date",()=>u,"datetime",()=>s,"duration",()=>p,"time",()=>l],49732);var n=e.i(197753),r=e.i(676094),o=e.i(362201);let i=n.$constructor("ZodISODateTime",(e,t)=>{r.$ZodISODateTime.init(e,t),o.ZodStringFormat.init(e,t)});function s(e){return t._isoDateTime(i,e)}let a=n.$constructor("ZodISODate",(e,t)=>{r.$ZodISODate.init(e,t),o.ZodStringFormat.init(e,t)});function u(e){return t._isoDate(a,e)}let c=n.$constructor("ZodISOTime",(e,t)=>{r.$ZodISOTime.init(e,t),o.ZodStringFormat.init(e,t)});function l(e){return t._isoTime(c,e)}let d=n.$constructor("ZodISODuration",(e,t)=>{r.$ZodISODuration.init(e,t),o.ZodStringFormat.init(e,t)});function p(e){return t._isoDuration(d,e)}},789282,e=>{"use strict";var t=e.i(374969),n=e.i(197753),r=e.i(922143);let o=(e,n)=>{t.$ZodError.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>t.formatError(e,n)},flatten:{value:n=>t.flattenError(e,n)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,r.jsonStringifyReplacer,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,r.jsonStringifyReplacer,2)}},isEmpty:{get:()=>0===e.issues.length}})},i=n.$constructor("ZodError",o),s=n.$constructor("ZodError",o,{Parent:Error});e.s(["ZodError",0,i,"ZodRealError",0,s])},362201,100364,e=>{"use strict";e.s(["ZodAny",()=>ti,"ZodArray",()=>th,"ZodBase64",()=>ej,"ZodBase64URL",()=>eR,"ZodBigInt",()=>e6,"ZodBigIntFormat",()=>e3,"ZodBoolean",()=>e4,"ZodCIDRv4",()=>eT,"ZodCIDRv6",()=>eI,"ZodCUID",()=>eh,"ZodCUID2",()=>ey,"ZodCatch",()=>ne,"ZodCodec",()=>ns,"ZodCustom",()=>nv,"ZodCustomStringFormat",()=>eM,"ZodDate",()=>tf,"ZodDefault",()=>t4,"ZodDiscriminatedUnion",()=>tP,"ZodE164",()=>eL,"ZodEmail",()=>Q,"ZodEmoji",()=>ed,"ZodEnum",()=>tF,"ZodExactOptional",()=>tH,"ZodFile",()=>tV,"ZodFunction",()=>ng,"ZodGUID",()=>et,"ZodIPv4",()=>ek,"ZodIPv6",()=>ex,"ZodIntersection",()=>tO,"ZodJWT",()=>eU,"ZodKSUID",()=>eZ,"ZodLazy",()=>nm,"ZodLiteral",()=>tM,"ZodMAC",()=>eS,"ZodMap",()=>tC,"ZodNaN",()=>nn,"ZodNanoID",()=>ef,"ZodNever",()=>tc,"ZodNonOptional",()=>t3,"ZodNull",()=>tr,"ZodNullable",()=>tQ,"ZodNumber",()=>eG,"ZodNumberFormat",()=>eX,"ZodObject",()=>tg,"ZodOptional",()=>tq,"ZodPipe",()=>no,"ZodPrefault",()=>t6,"ZodPreprocess",()=>nc,"ZodPromise",()=>n_,"ZodReadonly",()=>nl,"ZodRecord",()=>tA,"ZodSet",()=>tD,"ZodString",()=>X,"ZodStringFormat",()=>Y,"ZodSuccess",()=>t8,"ZodSymbol",()=>e7,"ZodTemplateLiteral",()=>np,"ZodTransform",()=>tK,"ZodTuple",()=>tE,"ZodType",()=>G,"ZodULID",()=>ez,"ZodURL",()=>eu,"ZodUUID",()=>er,"ZodUndefined",()=>tt,"ZodUnion",()=>tb,"ZodUnknown",()=>ta,"ZodVoid",()=>td,"ZodXID",()=>e$,"ZodXor",()=>tw,"_ZodString",()=>q,"_default",()=>t2,"_function",()=>nz,"any",()=>ts,"array",()=>t_,"base64",()=>eC,"base64url",()=>eD,"bigint",()=>e9,"boolean",()=>e2,"catch",()=>nt,"check",()=>n$,"cidrv4",()=>eA,"cidrv6",()=>eN,"codec",()=>na,"cuid",()=>e_,"cuid2",()=>eg,"custom",()=>nb,"date",()=>tm,"describe",()=>nk,"discriminatedUnion",()=>tS,"e164",()=>eF,"email",()=>ee,"emoji",()=>ep,"enum",()=>tU,"exactOptional",()=>tY,"file",()=>tW,"float32",()=>eY,"float64",()=>eQ,"function",()=>nz,"guid",()=>en,"hash",()=>eK,"hex",()=>eW,"hostname",()=>eV,"httpUrl",()=>el,"instanceof",()=>nS,"int",()=>eH,"int32",()=>e0,"int64",()=>e5,"intersection",()=>tx,"invertCodec",()=>nu,"ipv4",()=>eP,"ipv6",()=>eE,"json",()=>nx,"jwt",()=>eJ,"keyof",()=>ty,"ksuid",()=>ew,"lazy",()=>nh,"literal",()=>tB,"looseObject",()=>t$,"looseRecord",()=>tj,"mac",()=>eO,"map",()=>tR,"meta",()=>nP,"nan",()=>nr,"nanoid",()=>em,"nativeEnum",()=>tJ,"never",()=>tl,"nonoptional",()=>t5,"null",()=>to,"nullable",()=>t0,"nullish",()=>t1,"number",()=>eq,"object",()=>tz,"optional",()=>tX,"partialRecord",()=>tN,"pipe",()=>ni,"prefault",()=>t9,"preprocess",()=>nE,"promise",()=>ny,"readonly",()=>nd,"record",()=>tI,"refine",()=>nZ,"set",()=>tL,"strictObject",()=>tv,"string",()=>H,"stringFormat",()=>eB,"stringbool",()=>nO,"success",()=>t7,"superRefine",()=>nw,"symbol",()=>te,"templateLiteral",()=>nf,"transform",()=>tG,"tuple",()=>tT,"uint32",()=>e1,"uint64",()=>e8,"ulid",()=>ev,"undefined",()=>tn,"union",()=>tZ,"unknown",()=>tu,"url",()=>ec,"uuid",()=>eo,"uuidv4",()=>ei,"uuidv6",()=>es,"uuidv7",()=>ea,"void",()=>tp,"xid",()=>eb,"xor",()=>tk],362201);var t=e.i(197753),n=e.i(676094),r=e.i(922143),o=e.i(525527),i=e.i(6
6250215),s=e.i(429321),a=e.i(355605),u=e.i(313088),c=e.i(321678),l=e.i(34966),d=e.i(663215),p=e.i(351778),f=e.i(388527),m=e.i(829030),h=e.i(755511),_=e.i(980002),y=e.i(843808),g=e.i(545323),z=e.i(5026),v=e.i(781897),$=e.i(834983),b=e.i(22810),Z=e.i(348924),w=e.i(500954),k=e.i(95162),P=e.i(790190),S=e.i(288422),O=e.i(847135),x=e.i(401071),E=e.i(466990),T=e.i(49732),A=e.i(803108),I=e.i(789282);let N=A._parse(I.ZodRealError),j=A._parseAsync(I.ZodRealError),C=A._safeParse(I.ZodRealError),R=A._safeParseAsync(I.ZodRealError),D=A._encode(I.ZodRealError),L=A._decode(I.ZodRealError),F=A._encodeAsync(I.ZodRealError),U=A._decodeAsync(I.ZodRealError),J=A._safeEncode(I.ZodRealError),M=A._safeDecode(I.ZodRealError),B=A._safeEncodeAsync(I.ZodRealError),V=A._safeDecodeAsync(I.ZodRealError);e.s(["decode",0,L,"decodeAsync",0,U,"encode",0,D,"encodeAsync",0,F,"parse",0,N,"parseAsync",0,j,"safeDecode",0,M,"safeDecodeAsync",0,V,"safeEncode",0,J,"safeEncodeAsync",0,B,"safeParse",0,C,"safeParseAsync",0,R],100364);let W=new WeakMap;function K(e,t,n){let r=Object.getPrototypeOf(e),o=W.get(r);if(o||(o=new Set,W.set(r,o)),!o.has(t))for(let e in o.add(t),n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}let G=t.$constructor("ZodType",(e,t)=>(n.$ZodType.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:(0,l.createStandardJSONSchemaMethod)(e,"input"),output:(0,l.createStandardJSONSchemaMethod)(e,"output")}}),e.toJSONSchema=(0,l.createToJSONSchemaMethod)(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>N(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>C(e,t,n),e.parseAsync=async(t,n)=>j(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>R(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>D(e,t,n),e.decode=(t,n)=>L(e,t,n),e.encodeAsync=async(t,n)=>F(e,t,n),e.decodeAsync=async(t,n)=>U(e,t,n),e.safeEncode=(t,n)=>J(e,t,n),e.safeDecode=(t,n)=>M(e,t,n),e.safeEncodeAsync=async(t,n)=>B(e,t,n),e.safeDecodeAsync=async(t,n)=>V(e,t,n),K(e,"ZodType",{check(...e){let t=this.def;return this.clone(u.util.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)},clone(e,t){return r.clone(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(nZ(e,t))},superRefine(e,t){return this.check(nw(e,t))},overwrite(e){return this.check(d.overwrite(e))},optional(){return tX(this)},exactOptional(){return tY(this)},nullable(){return t0(this)},nullish(){return tX(t0(this))},nonoptional(e){return t5(this,e)},array(){return t_(this)},or(e){return tZ([this,e])},and(e){return tx(this,e)},transform(e){return ni(this,tG(e))},default(e){return t2(this,e)},prefault(e){return t9(this,e)},catch(e){return nt(this,e)},pipe(e){return ni(this,e)},readonly(){return nd(this)},describe(e){let t=this.clone();return o.globalRegistry.add(t,{description:e}),t},meta(...e){if(0===e.length)return o.globalRegistry.get(this);let t=this.clone();return o.globalRegistry.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:()=>o.globalRegistry.get(e)?.description,configurable:!0}),e)),q=t.$constructor("_ZodString",(e,t)=>{n.$ZodString.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.stringProcessor(e,t,n,r);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,K(e,"_ZodString",{regex(...e){return this.check(p.regex(...e))},includes(...e){return this.check(f.includes(...e))},startsWith(...e){return this.check(m.startsWith(...e))},endsWith(...e){return this.check(h.endsWith(...e))},min(...e){return this.check(_.minLength(...e))},max(...e){return this.check(y.maxLength(...e))},length(...e){return this.check(g.length(...e))},nonempty(...e){return this.check(_.minLength(1,...e))},lowercase(e){return this.check(z.lowercase(e))},uppercase(e){return this.check(v.uppercase(e))},trim(){return this.check($.trim())},normalize(...e){return this.check(b.normalize(...e))},toLowerCase(){return this.check(Z.toLowerCase())},toUpperCase(){return this.check(w.toUpperCase())},slugify(){return this.check(k.slugify())}})}),X=t.$constructor("ZodString",(e,t)=>{n.$ZodString.init(e,t),q.init(e,t),e.email=t=>e.check(i._email(Q,t)),e.url=t=>e.check(i._url(eu,t)),e.jwt=t=>e.check(i._jwt(eU,t)),e.emoji=t=>e.check(i._emoji(ed,t)),e.guid=t=>e.check(i._guid(et,t)),e.uuid=t=>e.check(i._uuid(er,t)),e.uuidv4=t=>e.check(i._uuidv4(er,t)),e.uuidv6=t=>e.check(i._uuidv6(er,t)),e.uuidv7=t=>e.check(i._uuidv7(er,t)),e.nanoid=t=>e.check(i._nanoid(ef,t)),e.guid=t=>e.check(i._guid(et,t)),e.cuid=t=>e.check(i._cuid(eh,t)),e.cuid2=t=>e.check(i._cuid2(ey,t)),e.ulid=t=>e.check(i._ulid(ez,t)),e.base64=t=>e.check(i._base64(ej,t)),e.base64url=t=>e.check(i._base64url(eR,t)),e.xid=t=>e.check(i._xid(e$,t)),e.ksuid=t=>e.check(i._ksuid(eZ,t)),e.ipv4=t=>e.check(i._ipv4(ek,t)),e.ipv6=t=>e.check(i._ipv6(ex,t)),e.cidrv4=t=>e.check(i._cidrv4(eT,t)),e.cidrv6=t=>e.check(i._cidrv6(eI,t)),e.e164=t=>e.check(i._e164(eL,t)),e.datetime=t=>e.check(T.datetime(t)),e.date=t=>e.check(T.date(t)),e.time=t=>e.check(T.time(t)),e.duration=t=>e.check(T.duration(t))});
62function H(e){return i._string(X,e)}let Y=t.$constructor("ZodStringFormat",(e,t)=>{n.$ZodStringFormat.init(e,t),q.init(e,t)}),Q=t.$constructor("ZodEmail",(e,t)=>{n.$ZodEmail.init(e,t),Y.init(e,t)});function ee(e){return i._email(Q,e)}let et=t.$constructor("ZodGUID",(e,t)=>{n.$ZodGUID.init(e,t),Y.init(e,t)});function en(e){return i._guid(et,e)}let er=t.$constructor("ZodUUID",(e,t)=>{n.$ZodUUID.init(e,t),Y.init(e,t)});function eo(e){return i._uuid(er,e)}function ei(e){return i._uuidv4(er,e)}function es(e){return i._uuidv6(er,e)}function ea(e){return i._uuidv7(er,e)}let eu=t.$constructor("ZodURL",(e,t)=>{n.$ZodURL.init(e,t),Y.init(e,t)});function ec(e){return i._url(eu,e)}function el(e){return i._url(eu,{protocol:s.regexes.httpProtocol,hostname:s.regexes.domain,...u.util.normalizeParams(e)})}let ed=t.$constructor("ZodEmoji",(e,t)=>{n.$ZodEmoji.init(e,t),Y.init(e,t)});function ep(e){return i._emoji(ed,e)}let ef=t.$constructor("ZodNanoID",(e,t)=>{n.$ZodNanoID.init(e,t),Y.init(e,t)});function em(e){return i._nanoid(ef,e)}let eh=t.$constructor("ZodCUID",(e,t)=>{n.$ZodCUID.init(e,t),Y.init(e,t)});function e_(e){return i._cuid(eh,e)}let ey=t.$constructor("ZodCUID2",(e,t)=>{n.$ZodCUID2.init(e,t),Y.init(e,t)});function eg(e){return i._cuid2(ey,e)}let ez=t.$constructor("ZodULID",(e,t)=>{n.$ZodULID.init(e,t),Y.init(e,t)});function ev(e){return i._ulid(ez,e)}let e$=t.$constructor("ZodXID",(e,t)=>{n.$ZodXID.init(e,t),Y.init(e,t)});function eb(e){return i._xid(e$,e)}let eZ=t.$constructor("ZodKSUID",(e,t)=>{n.$ZodKSUID.init(e,t),Y.init(e,t)});function ew(e){return i._ksuid(eZ,e)}let ek=t.$constructor("ZodIPv4",(e,t)=>{n.$ZodIPv4.init(e,t),Y.init(e,t)});function eP(e){return i._ipv4(ek,e)}let eS=t.$constructor("ZodMAC",(e,t)=>{n.$ZodMAC.init(e,t),Y.init(e,t)});function eO(e){return i._mac(eS,e)}let ex=t.$constructor("ZodIPv6",(e,t)=>{n.$ZodIPv6.init(e,t),Y.init(e,t)});function eE(e){return i._ipv6(ex,e)}let eT=t.$constructor("ZodCIDRv4",(e,t)=>{n.$ZodCIDRv4.init(e,t),Y.init(e,t)});function eA(e){return i._cidrv4(eT,e)}let eI=t.$constructor("ZodCIDRv6",(e,t)=>{n.$ZodCIDRv6.init(e,t),Y.init(e,t)});function eN(e){return i._cidrv6(eI,e)}let ej=t.$constructor("ZodBase64",(e,t)=>{n.$ZodBase64.init(e,t),Y.init(e,t)});function eC(e){return i._base64(ej,e)}let eR=t.$constructor("ZodBase64URL",(e,t)=>{n.$ZodBase64URL.init(e,t),Y.init(e,t)});function eD(e){return i._base64url(eR,e)}let eL=t.$constructor("ZodE164",(e,t)=>{n.$ZodE164.init(e,t),Y.init(e,t)});function eF(e){return i._e164(eL,e)}let eU=t.$constructor("ZodJWT",(e,t)=>{n.$ZodJWT.init(e,t),Y.init(e,t)});function eJ(e){return i._jwt(eU,e)}let eM=t.$constructor("ZodCustomStringFormat",(e,t)=>{n.$ZodCustomStringFormat.init(e,t),Y.init(e,t)});function eB(e,t,n={}){return i._stringFormat(eM,e,t,n)}function eV(e){return i._stringFormat(eM,"hostname",s.regexes.hostname,e)}function eW(e){return i._stringFormat(eM,"hex",s.regexes.hex,e)}function eK(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,o=s.regexes[r];if(!o)throw Error(`Unrecognized hash format: ${r}`);return i._stringFormat(eM,r,o,t)}let eG=t.$constructor("ZodNumber",(e,t)=>{n.$ZodNumber.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.numberProcessor(e,t,n,r),K(e,"ZodNumber",{gt(e,t){return this.check(P.gt(e,t))},gte(e,t){return this.check(S.gte(e,t))},min(e,t){return this.check(S.gte(e,t))},lt(e,t){return this.check(O.lt(e,t))},lte(e,t){return this.check(x.lte(e,t))},max(e,t){return this.check(x.lte(e,t))},int(e){return this.check(eH(e))},safe(e){return this.check(eH(e))},positive(e){return this.check(P.gt(0,e))},nonnegative(e){return this.check(S.gte(0,e))},negative(e){return this.check(O.lt(0,e))},nonpositive(e){return this.check(x.lte(0,e))},multipleOf(e,t){return this.check(E.multipleOf(e,t))},step(e,t){return this.check(E.multipleOf(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 eq(e){return i._number(eG,e)}let eX=t.$constructor("ZodNumberFormat",(e,t)=>{n.$ZodNumberFormat.init(e,t),eG.init(e,t)});function eH(e){return i._int(eX,e)}function eY(e){return i._float32(eX,e)}function eQ(e){return i._float64(eX,e)}function e0(e){return i._int32(eX,e)}function e1(e){return i._uint32(eX,e)}let e4=t.$constructor("ZodBoolean",(e,t)=>{n.$ZodBoolean.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.booleanProcessor(e,t,n,r)});function e2(e){return i._boolean(e4,e)}let e6=t.$constructor("ZodBigInt",(e,t)=>{n.$ZodBigInt.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.bigintProcessor(e,t,n,r),e.gte=(t,n)=>e.check(S.gte(t,n)),e.min=(t,n)=>e.check(S.gte(t,n)),e.gt=(t,n)=>e.check(P.gt(t,n)),e.gte=(t,n)=>e.check(S.gte(t,n)),e.min=(t,n)=>e.check(S.gte(t,n)),e.lt=(t,n)=>e.check(O.lt(t,n)),e.lte=(t,n)=>e.check(x.lte(t,n)),e.max=(t,n)=>e.check(x.lte(t,n)),e.positive=t=>e.check(P.gt(BigInt(0),t)),e.negative=t=>e.check(O.lt(BigInt(0),t)),e.nonpositive=t=>e.check(x.lte(BigInt(0),t)),e.nonnegative=t=>e.check(S.gte(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(E.multipleOf(t,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function e9(e){return i._bigint(e6,e)}let e3=t.$constructor("ZodBigIntFormat",(e,t)=>{n.$ZodBigIntFormat.init(e,t),e6.init(e,t)});function e5(e){return i._int64(e3,e)}function e8(e){return i._uint64(e3,e)}let e7=t.$constructor("ZodSymbol",(e,t)=>{n.$ZodSymbol.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.symbolProcessor(e,t,n,r)});function te(e){return i._symbol(e7,e)}let tt=t.$constructor("ZodUndefined",(e,t)=>{n.$ZodUndefined.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.undefinedProcessor(e,t,n,r)});function tn(e){return i._undefined(tt,e)}let tr=t.$constructor("ZodNull",(e,t)=>{n.$ZodNull.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.nullProcessor(e,t,n,r)});function to(e){return i._null(tr,e)}let ti=t.$constructor("ZodAny",(e,t)=>{n.$ZodAny.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.anyProcessor(e,t,n,r)});function ts(){return i._any(ti)}let ta=t.$constructor("ZodUnknown",(e,t)=>{n.$ZodUnknown.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.unknownProcessor(e,t,n,r)});function tu(){return i._unknown(ta)}let tc=t.$constructor("ZodNever",(e,t)=>{n.$ZodNever.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.neverProcessor(e,t,n,r)});function tl(e){return i._never(tc,e)}let td=t.$constructor("ZodVoid",(e,t)=>{n.$ZodVoid.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.voidProcessor(e,t,n,r)});function tp(e){return i._void(td,e)}let tf=t.$constructor("ZodDate",(e,t)=>{n.$ZodDate.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.dateProcessor(e,t,n,r),e.min=(t,n)=>e.check(S.gte(t,n)),e.max=(t,n)=>e.check(x.lte(t,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function tm(e){return i._date(tf,e)}
62let th=t.$constructor("ZodArray",(e,t)=>{n.$ZodArray.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.arrayProcessor(e,t,n,r),e.element=t.element,K(e,"ZodArray",{min(e,t){return this.check(_.minLength(e,t))},nonempty(e){return this.check(_.minLength(1,e))},max(e,t){return this.check(y.maxLength(e,t))},length(e,t){return this.check(g.length(e,t))},unwrap(){return this.element}})});function t_(e,t){return i._array(th,e,t)}function ty(e){return tU(Object.keys(e._zod.def.shape))}let tg=t.$constructor("ZodObject",(e,t)=>{n.$ZodObjectJIT.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.objectProcessor(e,t,n,r),u.util.defineLazy(e,"shape",()=>t.shape),K(e,"ZodObject",{keyof(){return tU(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:tu()})},loose(){return this.clone({...this._zod.def,catchall:tu()})},strict(){return this.clone({...this._zod.def,catchall:tl()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return u.util.extend(this,e)},safeExtend(e){return u.util.safeExtend(this,e)},merge(e){return u.util.merge(this,e)},pick(e){return u.util.pick(this,e)},omit(e){return u.util.omit(this,e)},partial(...e){return u.util.partial(tq,this,e[0])},required(...e){return u.util.required(t3,this,e[0])}})});function tz(e,t){return new tg({type:"object",shape:e??{},...u.util.normalizeParams(t)})}function tv(e,t){return new tg({type:"object",shape:e,catchall:tl(),...u.util.normalizeParams(t)})}function t$(e,t){return new tg({type:"object",shape:e,catchall:tu(),...u.util.normalizeParams(t)})}let tb=t.$constructor("ZodUnion",(e,t)=>{n.$ZodUnion.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.unionProcessor(e,t,n,r),e.options=t.options});function tZ(e,t){return new tb({type:"union",options:e,...u.util.normalizeParams(t)})}let tw=t.$constructor("ZodXor",(e,t)=>{tb.init(e,t),n.$ZodXor.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.unionProcessor(e,t,n,r),e.options=t.options});function tk(e,t){return new tw({type:"union",options:e,inclusive:!1,...u.util.normalizeParams(t)})}let tP=t.$constructor("ZodDiscriminatedUnion",(e,t)=>{tb.init(e,t),n.$ZodDiscriminatedUnion.init(e,t)});function tS(e,t,n){return new tP({type:"union",options:t,discriminator:e,...u.util.normalizeParams(n)})}let tO=t.$constructor("ZodIntersection",(e,t)=>{n.$ZodIntersection.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.intersectionProcessor(e,t,n,r)});function tx(e,t){return new tO({type:"intersection",left:e,right:t})}let tE=t.$constructor("ZodTuple",(e,t)=>{n.$ZodTuple.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.tupleProcessor(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function tT(e,t,r){let o=t instanceof n.$ZodType,i=o?r:t;return new tE({type:"tuple",items:e,rest:o?t:null,...u.util.normalizeParams(i)})}let tA=t.$constructor("ZodRecord",(e,t)=>{n.$ZodRecord.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.recordProcessor(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function tI(e,t,n){return new tA(t&&t._zod?{type:"record",keyType:e,valueType:t,...u.util.normalizeParams(n)}:{type:"record",keyType:H(),valueType:e,...u.util.normalizeParams(t)})}function tN(e,t,n){let o=r.clone(e);return o._zod.values=void 0,new tA({type:"record",keyType:o,valueType:t,...u.util.normalizeParams(n)})}function tj(e,t,n){return new tA({type:"record",keyType:e,valueType:t,mode:"loose",...u.util.normalizeParams(n)})}let tC=t.$constructor("ZodMap",(e,t)=>{n.$ZodMap.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.mapProcessor(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(i._minSize(...t)),e.nonempty=t=>e.check(i._minSize(1,t)),e.max=(...t)=>e.check(i._maxSize(...t)),e.size=(...t)=>e.check(i._size(...t))});function tR(e,t,n){return new tC({type:"map",keyType:e,valueType:t,...u.util.normalizeParams(n)})}let tD=t.$constructor("ZodSet",(e,t)=>{n.$ZodSet.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.setProcessor(e,t,n,r),e.min=(...t)=>e.check(i._minSize(...t)),e.nonempty=t=>e.check(i._minSize(1,t)),e.max=(...t)=>e.check(i._maxSize(...t)),e.size=(...t)=>e.check(i._size(...t))});function tL(e,t){return new tD({type:"set",valueType:e,...u.util.normalizeParams(t)})}let tF=t.$constructor("ZodEnum",(e,t)=>{n.$ZodEnum.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.enumProcessor(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let o={};for(let n of e)if(r.has(n))o[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new tF({...t,checks:[],...u.util.normalizeParams(n),entries:o})},e.exclude=(e,n)=>{let o={...t.entries};for(let t of e)if(r.has(t))delete o[t];else throw Error(`Key ${t} not found in enum`);return new tF({...t,checks:[],...u.util.normalizeParams(n),entries:o})}});function tU(e,t){return new tF({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...u.util.normalizeParams(t)})}function tJ(e,t){return new tF({type:"enum",entries:e,...u.util.normalizeParams(t)})}let tM=t.$constructor("ZodLiteral",(e,t)=>{n.$ZodLiteral.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.literalProcessor(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
62(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function tB(e,t){return new tM({type:"literal",values:Array.isArray(e)?e:[e],...u.util.normalizeParams(t)})}let tV=t.$constructor("ZodFile",(e,t)=>{n.$ZodFile.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.fileProcessor(e,t,n,r),e.min=(t,n)=>e.check(i._minSize(t,n)),e.max=(t,n)=>e.check(i._maxSize(t,n)),e.mime=(t,n)=>e.check(i._mime(Array.isArray(t)?t:[t],n))});function tW(e){return i._file(tV,e)}let tK=t.$constructor("ZodTransform",(e,r)=>{n.$ZodTransform.init(e,r),G.init(e,r),e._zod.processJSONSchema=(t,n,r)=>c.transformProcessor(e,t,n,r),e._zod.parse=(n,o)=>{if("backward"===o.direction)throw new t.$ZodEncodeError(e.constructor.name);n.addIssue=t=>{"string"==typeof t?n.issues.push(u.util.issue(t,n.value,r)):(t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=n.value),t.inst??(t.inst=e),n.issues.push(u.util.issue(t)))};let i=r.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function tG(e){return new tK({type:"transform",transform:e})}let tq=t.$constructor("ZodOptional",(e,t)=>{n.$ZodOptional.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.optionalProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function tX(e){return new tq({type:"optional",innerType:e})}let tH=t.$constructor("ZodExactOptional",(e,t)=>{n.$ZodExactOptional.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.optionalProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function tY(e){return new tH({type:"optional",innerType:e})}let tQ=t.$constructor("ZodNullable",(e,t)=>{n.$ZodNullable.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.nullableProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function t0(e){return new tQ({type:"nullable",innerType:e})}function t1(e){return tX(t0(e))}let t4=t.$constructor("ZodDefault",(e,t)=>{n.$ZodDefault.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.defaultProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function t2(e,t){return new t4({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():u.util.shallowClone(t)}})}let t6=t.$constructor("ZodPrefault",(e,t)=>{n.$ZodPrefault.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.prefaultProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function t9(e,t){return new t6({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():u.util.shallowClone(t)}})}let t3=t.$constructor("ZodNonOptional",(e,t)=>{n.$ZodNonOptional.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.nonoptionalProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function t5(e,t){return new t3({type:"nonoptional",innerType:e,...u.util.normalizeParams(t)})}let t8=t.$constructor("ZodSuccess",(e,t)=>{n.$ZodSuccess.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.successProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function t7(e){return new t8({type:"success",innerType:e})}let ne=t.$constructor("ZodCatch",(e,t)=>{n.$ZodCatch.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.catchProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function nt(e,t){return new ne({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let nn=t.$constructor("ZodNaN",(e,t)=>{n.$ZodNaN.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.nanProcessor(e,t,n,r)});function nr(e){return i._nan(nn,e)}let no=t.$constructor("ZodPipe",(e,t)=>{n.$ZodPipe.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.pipeProcessor(e,t,n,r),e.in=t.in,e.out=t.out});function ni(e,t){return new no({type:"pipe",in:e,out:t})}let ns=t.$constructor("ZodCodec",(e,t)=>{no.init(e,t),n.$ZodCodec.init(e,t)});function na(e,t,n){return new ns({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function nu(e){let t=e._zod.def;return new ns({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}let nc=t.$constructor("ZodPreprocess",(e,t)=>{no.init(e,t),n.$ZodPreprocess.init(e,t)}),nl=t.$constructor("ZodReadonly",(e,t)=>{n.$ZodReadonly.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.readonlyProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});
62function nd(e){return new nl({type:"readonly",innerType:e})}let np=t.$constructor("ZodTemplateLiteral",(e,t)=>{n.$ZodTemplateLiteral.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.templateLiteralProcessor(e,t,n,r)});function nf(e,t){return new np({type:"template_literal",parts:e,...u.util.normalizeParams(t)})}let nm=t.$constructor("ZodLazy",(e,t)=>{n.$ZodLazy.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.lazyProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function nh(e){return new nm({type:"lazy",getter:e})}let n_=t.$constructor("ZodPromise",(e,t)=>{n.$ZodPromise.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.promiseProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ny(e){return new n_({type:"promise",innerType:e})}let ng=t.$constructor("ZodFunction",(e,t)=>{n.$ZodFunction.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.functionProcessor(e,t,n,r)});function nz(e){return new ng({type:"function",input:Array.isArray(e?.input)?tT(e?.input):e?.input??t_(tu()),output:e?.output??tu()})}let nv=t.$constructor("ZodCustom",(e,t)=>{n.$ZodCustom.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c.customProcessor(e,t,n,r)});function n$(e){let t=new a.$ZodCheck({check:"custom"});return t._zod.check=e,t}function nb(e,t){return i._custom(nv,e??(()=>!0),t)}function nZ(e,t={}){return i._refine(nv,e,t)}function nw(e,t){return i._superRefine(e,t)}let nk=i.describe,nP=i.meta;function nS(e,t={}){let n=new nv({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...u.util.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}let nO=(...e)=>i._stringbool({Codec:ns,Boolean:e4,String:X},...e);function nx(e){let t=nh(()=>tZ([H(e),eq(),e2(),to(),t_(t),tI(H(),t)]));return t}function nE(e,t){return new nc({type:"pipe",in:tG(e),out:t})}}]);

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.