@123ishatest/louter 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +53 -53
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +1515 -1512
- package/package.json +7 -4
package/dist/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("./LouterWarningType-DFvXKHOu.js"),La=e=>{const t={};for(const r in e)t[r]={};return{config:{debug:!0},content:t,files:[],kinds:e,objects:[],warnings:[]}};class km{_stages;constructor(t){this._stages=t}run(t){const r=La(t);return this._stages.forEach(i=>i.run(r)),r}}class Cr extends Error{}class ta extends Cr{}class wm extends Cr{}var na;const Ca=Object.freeze({status:"aborted"});function p(e,t,r){function i(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);const u=a.prototype,l=Object.keys(u);for(let d=0;d<l.length;d++){const f=l[d];f in s||(s[f]=u[f].bind(s))}}const n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function a(s){var c;const u=r?.Parent?new o:this;i(u,s),(c=u._zod).deferred??(c.deferred=[]);for(const l of u._zod.deferred)l();return u}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}const Ra=Symbol("zod_brand");class Ne extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class bn extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(na=globalThis).__zod_globalConfig??(na.__zod_globalConfig={});const gt=globalThis.__zod_globalConfig;function B(e){return e&&Object.assign(gt,e),gt}function Sm(e){return e}function Im(e){return e}function zm(e){}function Om(e){throw new Error("Unexpected value in exhaustive check")}function Nm(e){}function Rr(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function $(e,t="|"){return e.map(r=>O(r)).join(t)}function ln(e,t){return typeof t=="bigint"?t.toString():t}function wt(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function De(e){return e==null}function _n(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Ma(e,t){const r=e/t,i=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}const ra=Symbol("evaluating");function D(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==ra)return i===void 0&&(i=ra,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function xm(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function we(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function fe(...e){const t={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function jm(e){return fe(e._zod.def)}function Um(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function Tm(e){const t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{const n={};for(let o=0;o<t.length;o++)n[t[o]]=i[o];return n})}function Dm(e=10){const t="abcdefghijklmnopqrstuvwxyz";let r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function zr(e){return JSON.stringify(e)}function Fa(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Mr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ke(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ja=wt(()=>{if(gt.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function xe(e){if(Ke(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(Ke(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function kn(e){return xe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Em(e){let t=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}const Pm=e=>{const 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":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},dn=new Set(["string","number","symbol"]),Ka=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ge(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function y(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Am(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,o){return t??(t=e()),Reflect.set(t,i,n,o)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function O(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ba(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Va={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},qa={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Wa(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=fe(e._zod.def,{get shape(){const a={};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return we(this,"shape",a),a},checks:[]});return se(e,o)}function Ga(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=fe(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return we(this,"shape",a),a},checks:[]});return se(e,o)}function Xa(e,t){if(!xe(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const o=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const n=fe(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return we(this,"shape",o),o}});return se(e,n)}function Ya(e,t){if(!xe(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=fe(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return we(this,"shape",i),i}});return se(e,r)}function Ha(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const r=fe(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return we(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return se(e,r)}function Qa(e,t,r){const n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=fe(t._zod.def,{get shape(){const s=t._zod.def.shape,c={...s};if(r)for(const u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(const u in s)c[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return we(this,"shape",c),c},checks:[]});return se(t,a)}function es(e,t,r){const i=fe(t._zod.def,{get shape(){const n=t._zod.def.shape,o={...n};if(r)for(const a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(const a in n)o[a]=new e({type:"nonoptional",innerType:n[a]});return we(this,"shape",o),o}});return se(t,i)}function Ie(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ts(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function ne(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function lt(e){return typeof e=="string"?e:e?.message}function Y(e,t,r){const i=e.message?e.message:lt(e.inst?._zod.def?.error?.(e))??lt(t?.error?.(e))??lt(r.customError?.(e))??lt(r.localeError?.(e))??"Invalid input",{inst:n,continue:o,input:a,...s}=e;return s.path??(s.path=[]),s.message=i,t?.reportInput&&(s.input=a),s}function wn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Sn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function N(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Be(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function Zm(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function ns(e){const t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function rs(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Lm(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return ns(t+r)}function Cm(e){return rs(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Rm(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function Mm(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class Fm{constructor(...t){}}const is=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:qa,Class:Fm,NUMBER_FORMAT_RANGES:Va,aborted:Ie,allowsEval:Ja,assert:Nm,assertEqual:Sm,assertIs:zm,assertNever:Om,assertNotEqual:Im,assignProp:we,base64ToUint8Array:ns,base64urlToUint8Array:Lm,cached:wt,captureStackTrace:Mr,cleanEnum:Zm,cleanRegex:_n,clone:se,cloneDef:jm,createTransparentProxy:Am,defineLazy:D,esc:zr,escapeRegex:ge,explicitlyAborted:ts,extend:Xa,finalizeIssue:Y,floatSafeRemainder:Ma,getElementAtPath:Um,getEnumValues:Rr,getLengthableOrigin:Sn,getParsedType:Pm,getSizableOrigin:wn,hexToUint8Array:Rm,isObject:Ke,isPlainObject:xe,issue:Be,joinValues:$,jsonStringifyReplacer:ln,merge:Ha,mergeDefs:fe,normalizeParams:y,nullish:De,numKeys:Em,objectClone:xm,omit:Ga,optionalKeys:Ba,parsedType:N,partial:Qa,pick:Wa,prefixIssues:ne,primitiveTypes:Ka,promiseAllObject:Tm,propertyKeyTypes:dn,randomString:Dm,required:es,safeExtend:Ya,shallowClone:kn,slugify:Fa,stringifyPrimitive:O,uint8ArrayToBase64:rs,uint8ArrayToBase64url:Cm,uint8ArrayToHex:Mm,unwrapMessage:lt},Symbol.toStringTag,{value:"Module"})),os=(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,ln,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Fr=p("$ZodError",os),H=p("$ZodError",os,{Parent:Error});function Jr(e,t=r=>r.message){const r={},i=[];for(const n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function Kr(e,t=r=>r.message){const r={_errors:[]},i=(n,o=[])=>{for(const a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{const s=[...o,...a.path];if(s.length===0)r._errors.push(t(a));else{let c=r,u=0;for(;u<s.length;){const l=s[u];u===s.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(t(a))):c[l]=c[l]||{_errors:[]},c=c[l],u++}}}};return i(e),r}function as(e,t=r=>r.message){const r={errors:[]},i=(n,o=[])=>{var a,s;for(const c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>i({issues:u},[...o,...c.path]));else if(c.code==="invalid_key")i({issues:c.issues},[...o,...c.path]);else if(c.code==="invalid_element")i({issues:c.issues},[...o,...c.path]);else{const u=[...o,...c.path];if(u.length===0){r.errors.push(t(c));continue}let l=r,d=0;for(;d<u.length;){const f=u[d],m=d===u.length-1;typeof f=="string"?(l.properties??(l.properties={}),(a=l.properties)[f]??(a[f]={errors:[]}),l=l.properties[f]):(l.items??(l.items=[]),(s=l.items)[f]??(s[f]={errors:[]}),l=l.items[f]),m&&l.errors.push(t(c)),d++}}};return i(e),r}function ss(e){const t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(const i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function Br(e){const t=[],r=[...e.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(const i of r)t.push(`✖ ${i.message}`),i.path?.length&&t.push(` → at ${ss(i.path)}`);return t.join(`
|
|
2
|
-
`)}const St=e=>(t,r,i,n)=>{const o=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new Ne;if(a.issues.length){const s=new(n?.Err??e)(a.issues.map(c=>Y(c,o,B())));throw Mr(s,n?.callee),s}return a.value},Or=St(H),It=e=>async(t,r,i,n)=>{const o=i?{...i,async:!0}:{async:!0};let a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new(n?.Err??e)(a.issues.map(c=>Y(c,o,B())));throw Mr(s,n?.callee),s}return a.value},Nr=It(H),zt=e=>(t,r,i)=>{const n=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new Ne;return o.issues.length?{success:!1,error:new(e??Fr)(o.issues.map(a=>Y(a,n,B())))}:{success:!0,data:o.value}},cs=zt(H),Ot=e=>async(t,r,i)=>{const n=i?{...i,async:!0}:{async:!0};let o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>Y(a,n,B())))}:{success:!0,data:o.value}},us=Ot(H),Vr=e=>(t,r,i)=>{const n=i?{...i,direction:"backward"}:{direction:"backward"};return St(e)(t,r,n)},Jm=Vr(H),qr=e=>(t,r,i)=>St(e)(t,r,i),Km=qr(H),Wr=e=>async(t,r,i)=>{const n=i?{...i,direction:"backward"}:{direction:"backward"};return It(e)(t,r,n)},Bm=Wr(H),Gr=e=>async(t,r,i)=>It(e)(t,r,i),Vm=Gr(H),Xr=e=>(t,r,i)=>{const n=i?{...i,direction:"backward"}:{direction:"backward"};return zt(e)(t,r,n)},qm=Xr(H),Yr=e=>(t,r,i)=>zt(e)(t,r,i),Wm=Yr(H),Hr=e=>async(t,r,i)=>{const n=i?{...i,direction:"backward"}:{direction:"backward"};return Ot(e)(t,r,n)},Gm=Hr(H),Qr=e=>async(t,r,i)=>Ot(e)(t,r,i),Xm=Qr(H),ls=/^[cC][0-9a-z]{6,}$/,ds=/^[0-9a-z]+$/,fs=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ms=/^[0-9a-vA-V]{20}$/,ps=/^[A-Za-z0-9]{27}$/,gs=/^[a-zA-Z0-9_-]{21}$/,hs=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ym=/^[-+]?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)?)??$/,vs=/^([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})$/,Ve=e=>e?new 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)$/,Hm=Ve(4),Qm=Ve(6),ep=Ve(7),ys=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tp=/^[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])?)*$/,np=/^(([^<>()\[\]\\.,;:\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,}))$/,$s=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,rp=$s,ip=/^[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])?)*$/,op="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function bs(){return new RegExp(op,"u")}const _s=/^(?:(?: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])$/,ks=/^(([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}|:))$/,ws=e=>{const t=ge(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ss=/^((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])$/,Is=/^(([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])$/,zs=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ei=/^[A-Za-z0-9_-]*$/,Os=/^(?=.{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])?)*\.?$/,Ns=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ti=/^https?$/,xs=/^\+[1-9]\d{6,14}$/,js="(?:(?:\\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])))",Us=new RegExp(`^${js}$`);function Ts(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ds(e){return new RegExp(`^${Ts(e)}$`)}function Es(e){const t=Ts({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${r.join("|")})`;return new RegExp(`^${js}T(?:${i})$`)}const Ps=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},As=/^-?\d+n?$/,Zs=/^-?\d+$/,ni=/^-?\d+(?:\.\d+)?$/,Ls=/^(?:true|false)$/i,Cs=/^null$/i,Rs=/^undefined$/i,Ms=/^[^A-Z]*$/,Fs=/^[^a-z]*$/,Js=/^[0-9a-fA-F]*$/;function Nt(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function xt(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const ap=/^[0-9a-fA-F]{32}$/,sp=Nt(22,"=="),cp=xt(22),up=/^[0-9a-fA-F]{40}$/,lp=Nt(27,"="),dp=xt(27),fp=/^[0-9a-fA-F]{64}$/,mp=Nt(43,"="),pp=xt(43),gp=/^[0-9a-fA-F]{96}$/,hp=Nt(64,""),vp=xt(64),yp=/^[0-9a-fA-F]{128}$/,$p=Nt(86,"=="),bp=xt(86),ri=Object.freeze(Object.defineProperty({__proto__:null,base64:zs,base64url:ei,bigint:As,boolean:Ls,browserEmail:ip,cidrv4:Ss,cidrv6:Is,cuid:ls,cuid2:ds,date:Us,datetime:Es,domain:Ns,duration:hs,e164:xs,email:ys,emoji:bs,extendedDuration:Ym,guid:vs,hex:Js,hostname:Os,html5Email:tp,httpProtocol:ti,idnEmail:rp,integer:Zs,ipv4:_s,ipv6:ks,ksuid:ps,lowercase:Ms,mac:ws,md5_base64:sp,md5_base64url:cp,md5_hex:ap,nanoid:gs,null:Cs,number:ni,rfc5322Email:np,sha1_base64:lp,sha1_base64url:dp,sha1_hex:up,sha256_base64:mp,sha256_base64url:pp,sha256_hex:fp,sha384_base64:hp,sha384_base64url:vp,sha384_hex:gp,sha512_base64:$p,sha512_base64url:bp,sha512_hex:yp,string:Ps,time:Ds,ulid:fs,undefined:Rs,unicodeEmail:$s,uppercase:Fs,uuid:Ve,uuid4:Hm,uuid6:Qm,uuid7:ep,xid:ms},Symbol.toStringTag,{value:"Module"})),C=p("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Ks={number:"number",bigint:"bigint",object:"date"},ii=p("$ZodCheckLessThan",(e,t)=>{C.init(e,t);const r=Ks[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),oi=p("$ZodCheckGreaterThan",(e,t)=>{C.init(e,t);const r=Ks[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Bs=p("$ZodCheckMultipleOf",(e,t)=>{C.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Ma(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Vs=p("$ZodCheckNumberFormat",(e,t)=>{C.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),i=r?"int":"number",[n,o]=Va[t.format];e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=o,r&&(s.pattern=Zs)}),e._zod.check=a=>{const s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),qs=p("$ZodCheckBigIntFormat",(e,t)=>{C.init(e,t);const[r,i]=qa[t.format];e._zod.onattach.push(n=>{const o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=i}),e._zod.check=n=>{const o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Ws=p("$ZodCheckMaxSize",(e,t)=>{var r;C.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!De(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;n.size<=t.maximum||i.issues.push({origin:wn(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Gs=p("$ZodCheckMinSize",(e,t)=>{var r;C.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!De(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;n.size>=t.minimum||i.issues.push({origin:wn(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Xs=p("$ZodCheckSizeEquals",(e,t)=>{var r;C.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!De(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{const n=i.value,o=n.size;if(o===t.size)return;const a=o>t.size;i.issues.push({origin:wn(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ys=p("$ZodCheckMaxLength",(e,t)=>{var r;C.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!De(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;if(n.length<=t.maximum)return;const a=Sn(n);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Hs=p("$ZodCheckMinLength",(e,t)=>{var r;C.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!De(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;if(n.length>=t.minimum)return;const a=Sn(n);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Qs=p("$ZodCheckLengthEquals",(e,t)=>{var r;C.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!De(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{const n=i.value,o=n.length;if(o===t.length)return;const a=Sn(n),s=o>t.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),jt=p("$ZodCheckStringFormat",(e,t)=>{var r,i;C.init(e,t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.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})}):(i=e._zod).check??(i.check=()=>{})}),ec=p("$ZodCheckRegex",(e,t)=>{jt.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),tc=p("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ms),jt.init(e,t)}),nc=p("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Fs),jt.init(e,t)}),rc=p("$ZodCheckIncludes",(e,t)=>{C.init(e,t);const r=ge(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),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})}}),ic=p("$ZodCheckStartsWith",(e,t)=>{C.init(e,t);const r=new RegExp(`^${ge(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),oc=p("$ZodCheckEndsWith",(e,t)=>{C.init(e,t);const r=new RegExp(`.*${ge(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function ia(e,t,r){e.issues.length&&t.issues.push(...ne(r,e.issues))}const ac=p("$ZodCheckProperty",(e,t)=>{C.init(e,t),e._zod.check=r=>{const i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>ia(n,r,t.property));ia(i,r,t.property)}}),sc=p("$ZodCheckMimeType",(e,t)=>{C.init(e,t);const r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),cc=p("$ZodCheckOverwrite",(e,t)=>{C.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class uc{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("./LouterWarningType-DFvXKHOu.js"),La=e=>{const t={};for(const r in e)t[r]={};return{config:{debug:!0},content:t,files:[],kinds:e,objects:[],warnings:[]}};class wm{_stages;constructor(t){this._stages=t}run(t){const r=La(t);return this._stages.forEach(i=>i.run(r)),r}}class Rr extends Error{}class na extends Rr{}class Sm extends Rr{}var ra;const Ca=Object.freeze({status:"aborted"});function p(e,t,r){function i(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);const u=a.prototype,l=Object.keys(u);for(let d=0;d<l.length;d++){const f=l[d];f in s||(s[f]=u[f].bind(s))}}const n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function a(s){var c;const u=r?.Parent?new o:this;i(u,s),(c=u._zod).deferred??(c.deferred=[]);for(const l of u._zod.deferred)l();return u}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}const Ra=Symbol("zod_brand");class Ne extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class _n extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(ra=globalThis).__zod_globalConfig??(ra.__zod_globalConfig={});const ht=globalThis.__zod_globalConfig;function B(e){return e&&Object.assign(ht,e),ht}function Im(e){return e}function zm(e){return e}function Om(e){}function Nm(e){throw new Error("Unexpected value in exhaustive check")}function xm(e){}function Mr(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function $(e,t="|"){return e.map(r=>O(r)).join(t)}function ln(e,t){return typeof t=="bigint"?t.toString():t}function wt(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function De(e){return e==null}function kn(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Ma(e,t){const r=e/t,i=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}const ia=Symbol("evaluating");function D(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==ia)return i===void 0&&(i=ia,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function jm(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function we(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function fe(...e){const t={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function Um(e){return fe(e._zod.def)}function Tm(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function Dm(e){const t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{const n={};for(let o=0;o<t.length;o++)n[t[o]]=i[o];return n})}function Em(e=10){const t="abcdefghijklmnopqrstuvwxyz";let r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Or(e){return JSON.stringify(e)}function Fa(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Fr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ke(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ja=wt(()=>{if(ht.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function xe(e){if(Ke(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(Ke(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function wn(e){return xe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Pm(e){let t=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}const Am=e=>{const 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":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},dn=new Set(["string","number","symbol"]),Ka=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ge(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function y(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Zm(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,o){return t??(t=e()),Reflect.set(t,i,n,o)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function O(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ba(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Va={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},qa={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Wa(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=fe(e._zod.def,{get shape(){const a={};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return we(this,"shape",a),a},checks:[]});return se(e,o)}function Ga(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=fe(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return we(this,"shape",a),a},checks:[]});return se(e,o)}function Xa(e,t){if(!xe(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const o=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const n=fe(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return we(this,"shape",o),o}});return se(e,n)}function Ya(e,t){if(!xe(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=fe(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return we(this,"shape",i),i}});return se(e,r)}function Ha(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const r=fe(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return we(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return se(e,r)}function Qa(e,t,r){const n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=fe(t._zod.def,{get shape(){const s=t._zod.def.shape,c={...s};if(r)for(const u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(const u in s)c[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return we(this,"shape",c),c},checks:[]});return se(t,a)}function es(e,t,r){const i=fe(t._zod.def,{get shape(){const n=t._zod.def.shape,o={...n};if(r)for(const a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(const a in n)o[a]=new e({type:"nonoptional",innerType:n[a]});return we(this,"shape",o),o}});return se(t,i)}function Ie(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ts(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function ne(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function dt(e){return typeof e=="string"?e:e?.message}function Y(e,t,r){const i=e.message?e.message:dt(e.inst?._zod.def?.error?.(e))??dt(t?.error?.(e))??dt(r.customError?.(e))??dt(r.localeError?.(e))??"Invalid input",{inst:n,continue:o,input:a,...s}=e;return s.path??(s.path=[]),s.message=i,t?.reportInput&&(s.input=a),s}function Sn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function In(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function N(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Be(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function Lm(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function ns(e){const t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function rs(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Cm(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return ns(t+r)}function Rm(e){return rs(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Mm(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function Fm(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class Jm{constructor(...t){}}const is=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:qa,Class:Jm,NUMBER_FORMAT_RANGES:Va,aborted:Ie,allowsEval:Ja,assert:xm,assertEqual:Im,assertIs:Om,assertNever:Nm,assertNotEqual:zm,assignProp:we,base64ToUint8Array:ns,base64urlToUint8Array:Cm,cached:wt,captureStackTrace:Fr,cleanEnum:Lm,cleanRegex:kn,clone:se,cloneDef:Um,createTransparentProxy:Zm,defineLazy:D,esc:Or,escapeRegex:ge,explicitlyAborted:ts,extend:Xa,finalizeIssue:Y,floatSafeRemainder:Ma,getElementAtPath:Tm,getEnumValues:Mr,getLengthableOrigin:In,getParsedType:Am,getSizableOrigin:Sn,hexToUint8Array:Mm,isObject:Ke,isPlainObject:xe,issue:Be,joinValues:$,jsonStringifyReplacer:ln,merge:Ha,mergeDefs:fe,normalizeParams:y,nullish:De,numKeys:Pm,objectClone:jm,omit:Ga,optionalKeys:Ba,parsedType:N,partial:Qa,pick:Wa,prefixIssues:ne,primitiveTypes:Ka,promiseAllObject:Dm,propertyKeyTypes:dn,randomString:Em,required:es,safeExtend:Ya,shallowClone:wn,slugify:Fa,stringifyPrimitive:O,uint8ArrayToBase64:rs,uint8ArrayToBase64url:Rm,uint8ArrayToHex:Fm,unwrapMessage:dt},Symbol.toStringTag,{value:"Module"})),os=(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,ln,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Jr=p("$ZodError",os),H=p("$ZodError",os,{Parent:Error});function Kr(e,t=r=>r.message){const r={},i=[];for(const n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function Br(e,t=r=>r.message){const r={_errors:[]},i=(n,o=[])=>{for(const a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{const s=[...o,...a.path];if(s.length===0)r._errors.push(t(a));else{let c=r,u=0;for(;u<s.length;){const l=s[u];u===s.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(t(a))):c[l]=c[l]||{_errors:[]},c=c[l],u++}}}};return i(e),r}function as(e,t=r=>r.message){const r={errors:[]},i=(n,o=[])=>{var a,s;for(const c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>i({issues:u},[...o,...c.path]));else if(c.code==="invalid_key")i({issues:c.issues},[...o,...c.path]);else if(c.code==="invalid_element")i({issues:c.issues},[...o,...c.path]);else{const u=[...o,...c.path];if(u.length===0){r.errors.push(t(c));continue}let l=r,d=0;for(;d<u.length;){const f=u[d],m=d===u.length-1;typeof f=="string"?(l.properties??(l.properties={}),(a=l.properties)[f]??(a[f]={errors:[]}),l=l.properties[f]):(l.items??(l.items=[]),(s=l.items)[f]??(s[f]={errors:[]}),l=l.items[f]),m&&l.errors.push(t(c)),d++}}};return i(e),r}function ss(e){const t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(const i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function Vr(e){const t=[],r=[...e.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(const i of r)t.push(`✖ ${i.message}`),i.path?.length&&t.push(` → at ${ss(i.path)}`);return t.join(`
|
|
2
|
+
`)}const St=e=>(t,r,i,n)=>{const o=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new Ne;if(a.issues.length){const s=new(n?.Err??e)(a.issues.map(c=>Y(c,o,B())));throw Fr(s,n?.callee),s}return a.value},Nr=St(H),It=e=>async(t,r,i,n)=>{const o=i?{...i,async:!0}:{async:!0};let a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new(n?.Err??e)(a.issues.map(c=>Y(c,o,B())));throw Fr(s,n?.callee),s}return a.value},xr=It(H),zt=e=>(t,r,i)=>{const n=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new Ne;return o.issues.length?{success:!1,error:new(e??Jr)(o.issues.map(a=>Y(a,n,B())))}:{success:!0,data:o.value}},cs=zt(H),Ot=e=>async(t,r,i)=>{const n=i?{...i,async:!0}:{async:!0};let o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>Y(a,n,B())))}:{success:!0,data:o.value}},us=Ot(H),qr=e=>(t,r,i)=>{const n=i?{...i,direction:"backward"}:{direction:"backward"};return St(e)(t,r,n)},Km=qr(H),Wr=e=>(t,r,i)=>St(e)(t,r,i),Bm=Wr(H),Gr=e=>async(t,r,i)=>{const n=i?{...i,direction:"backward"}:{direction:"backward"};return It(e)(t,r,n)},Vm=Gr(H),Xr=e=>async(t,r,i)=>It(e)(t,r,i),qm=Xr(H),Yr=e=>(t,r,i)=>{const n=i?{...i,direction:"backward"}:{direction:"backward"};return zt(e)(t,r,n)},Wm=Yr(H),Hr=e=>(t,r,i)=>zt(e)(t,r,i),Gm=Hr(H),Qr=e=>async(t,r,i)=>{const n=i?{...i,direction:"backward"}:{direction:"backward"};return Ot(e)(t,r,n)},Xm=Qr(H),ei=e=>async(t,r,i)=>Ot(e)(t,r,i),Ym=ei(H),ls=/^[cC][0-9a-z]{6,}$/,ds=/^[0-9a-z]+$/,fs=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ms=/^[0-9a-vA-V]{20}$/,ps=/^[A-Za-z0-9]{27}$/,gs=/^[a-zA-Z0-9_-]{21}$/,hs=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Hm=/^[-+]?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)?)??$/,vs=/^([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})$/,Ve=e=>e?new 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)$/,Qm=Ve(4),ep=Ve(6),tp=Ve(7),ys=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,np=/^[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])?)*$/,rp=/^(([^<>()\[\]\\.,;:\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,}))$/,$s=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,ip=$s,op=/^[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])?)*$/,ap="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function bs(){return new RegExp(ap,"u")}const _s=/^(?:(?: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])$/,ks=/^(([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}|:))$/,ws=e=>{const t=ge(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ss=/^((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])$/,Is=/^(([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])$/,zs=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ti=/^[A-Za-z0-9_-]*$/,Os=/^(?=.{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])?)*\.?$/,Ns=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ni=/^https?$/,xs=/^\+[1-9]\d{6,14}$/,js="(?:(?:\\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])))",Us=new RegExp(`^${js}$`);function Ts(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ds(e){return new RegExp(`^${Ts(e)}$`)}function Es(e){const t=Ts({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${r.join("|")})`;return new RegExp(`^${js}T(?:${i})$`)}const Ps=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},As=/^-?\d+n?$/,Zs=/^-?\d+$/,ri=/^-?\d+(?:\.\d+)?$/,Ls=/^(?:true|false)$/i,Cs=/^null$/i,Rs=/^undefined$/i,Ms=/^[^A-Z]*$/,Fs=/^[^a-z]*$/,Js=/^[0-9a-fA-F]*$/;function Nt(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function xt(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const sp=/^[0-9a-fA-F]{32}$/,cp=Nt(22,"=="),up=xt(22),lp=/^[0-9a-fA-F]{40}$/,dp=Nt(27,"="),fp=xt(27),mp=/^[0-9a-fA-F]{64}$/,pp=Nt(43,"="),gp=xt(43),hp=/^[0-9a-fA-F]{96}$/,vp=Nt(64,""),yp=xt(64),$p=/^[0-9a-fA-F]{128}$/,bp=Nt(86,"=="),_p=xt(86),ii=Object.freeze(Object.defineProperty({__proto__:null,base64:zs,base64url:ti,bigint:As,boolean:Ls,browserEmail:op,cidrv4:Ss,cidrv6:Is,cuid:ls,cuid2:ds,date:Us,datetime:Es,domain:Ns,duration:hs,e164:xs,email:ys,emoji:bs,extendedDuration:Hm,guid:vs,hex:Js,hostname:Os,html5Email:np,httpProtocol:ni,idnEmail:ip,integer:Zs,ipv4:_s,ipv6:ks,ksuid:ps,lowercase:Ms,mac:ws,md5_base64:cp,md5_base64url:up,md5_hex:sp,nanoid:gs,null:Cs,number:ri,rfc5322Email:rp,sha1_base64:dp,sha1_base64url:fp,sha1_hex:lp,sha256_base64:pp,sha256_base64url:gp,sha256_hex:mp,sha384_base64:vp,sha384_base64url:yp,sha384_hex:hp,sha512_base64:bp,sha512_base64url:_p,sha512_hex:$p,string:Ps,time:Ds,ulid:fs,undefined:Rs,unicodeEmail:$s,uppercase:Fs,uuid:Ve,uuid4:Qm,uuid6:ep,uuid7:tp,xid:ms},Symbol.toStringTag,{value:"Module"})),C=p("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Ks={number:"number",bigint:"bigint",object:"date"},oi=p("$ZodCheckLessThan",(e,t)=>{C.init(e,t);const r=Ks[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ai=p("$ZodCheckGreaterThan",(e,t)=>{C.init(e,t);const r=Ks[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Bs=p("$ZodCheckMultipleOf",(e,t)=>{C.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Ma(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Vs=p("$ZodCheckNumberFormat",(e,t)=>{C.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),i=r?"int":"number",[n,o]=Va[t.format];e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=o,r&&(s.pattern=Zs)}),e._zod.check=a=>{const s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),qs=p("$ZodCheckBigIntFormat",(e,t)=>{C.init(e,t);const[r,i]=qa[t.format];e._zod.onattach.push(n=>{const o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=i}),e._zod.check=n=>{const o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Ws=p("$ZodCheckMaxSize",(e,t)=>{var r;C.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!De(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;n.size<=t.maximum||i.issues.push({origin:Sn(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Gs=p("$ZodCheckMinSize",(e,t)=>{var r;C.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!De(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;n.size>=t.minimum||i.issues.push({origin:Sn(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Xs=p("$ZodCheckSizeEquals",(e,t)=>{var r;C.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!De(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{const n=i.value,o=n.size;if(o===t.size)return;const a=o>t.size;i.issues.push({origin:Sn(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ys=p("$ZodCheckMaxLength",(e,t)=>{var r;C.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!De(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;if(n.length<=t.maximum)return;const a=In(n);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Hs=p("$ZodCheckMinLength",(e,t)=>{var r;C.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!De(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;if(n.length>=t.minimum)return;const a=In(n);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Qs=p("$ZodCheckLengthEquals",(e,t)=>{var r;C.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!De(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{const n=i.value,o=n.length;if(o===t.length)return;const a=In(n),s=o>t.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),jt=p("$ZodCheckStringFormat",(e,t)=>{var r,i;C.init(e,t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.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})}):(i=e._zod).check??(i.check=()=>{})}),ec=p("$ZodCheckRegex",(e,t)=>{jt.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),tc=p("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ms),jt.init(e,t)}),nc=p("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Fs),jt.init(e,t)}),rc=p("$ZodCheckIncludes",(e,t)=>{C.init(e,t);const r=ge(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),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})}}),ic=p("$ZodCheckStartsWith",(e,t)=>{C.init(e,t);const r=new RegExp(`^${ge(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),oc=p("$ZodCheckEndsWith",(e,t)=>{C.init(e,t);const r=new RegExp(`.*${ge(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function oa(e,t,r){e.issues.length&&t.issues.push(...ne(r,e.issues))}const ac=p("$ZodCheckProperty",(e,t)=>{C.init(e,t),e._zod.check=r=>{const i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>oa(n,r,t.property));oa(i,r,t.property)}}),sc=p("$ZodCheckMimeType",(e,t)=>{C.init(e,t);const r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),cc=p("$ZodCheckOverwrite",(e,t)=>{C.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class uc{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
|
|
3
3
|
`).filter(a=>a),n=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(const a of o)this.content.push(a)}compile(){const t=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,n.join(`
|
|
4
|
-
`))}}const lc={major:4,minor:4,patch:3},j=p("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=lc;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const n of i)for(const o of n._zod.onattach)o(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const n=(a,s,c)=>{let u=Ie(a),l;for(const d of s){if(d._zod.def.when){if(ts(a)||!d._zod.def.when(a))continue}else if(u)continue;const f=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&c?.async===!1)throw new Ne;if(l||m instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await m,a.issues.length!==f&&(u||(u=Ie(a,f)))});else{if(a.issues.length===f)continue;u||(u=Ie(a,f))}}return l?l.then(()=>a):a},o=(a,s,c)=>{if(Ie(a))return a.aborted=!0,a;const u=n(s,i,c);if(u instanceof Promise){if(c.async===!1)throw new Ne;return u.then(l=>e._zod.parse(l,c))}return e._zod.parse(u,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){const u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(l=>o(l,a,s)):o(u,a,s)}const c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new Ne;return c.then(u=>n(u,i,s))}return n(c,i,s)}}D(e,"~standard",()=>({validate:n=>{try{const o=cs(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return us(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Ut=p("$ZodString",(e,t)=>{j.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ps(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),A=p("$ZodStringFormat",(e,t)=>{jt.init(e,t),Ut.init(e,t)}),dc=p("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=vs),A.init(e,t)}),fc=p("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ve(i))}else t.pattern??(t.pattern=Ve());A.init(e,t)}),mc=p("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ys),A.init(e,t)}),pc=p("$ZodURL",(e,t)=>{A.init(e,t),e._zod.check=r=>{try{const i=r.value.trim();if(!t.normalize&&t.protocol?.source===ti.source&&!/^https?:\/\//i.test(i)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}const n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),gc=p("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=bs()),A.init(e,t)}),hc=p("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=gs),A.init(e,t)}),vc=p("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ls),A.init(e,t)}),yc=p("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ds),A.init(e,t)}),$c=p("$ZodULID",(e,t)=>{t.pattern??(t.pattern=fs),A.init(e,t)}),bc=p("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ms),A.init(e,t)}),_c=p("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ps),A.init(e,t)}),kc=p("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Es(t)),A.init(e,t)}),wc=p("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Us),A.init(e,t)}),Sc=p("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ds(t)),A.init(e,t)}),Ic=p("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=hs),A.init(e,t)}),zc=p("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_s),A.init(e,t),e._zod.bag.format="ipv4"}),Oc=p("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ks),A.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Nc=p("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=ws(t.delimiter)),A.init(e,t),e._zod.bag.format="mac"}),xc=p("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ss),A.init(e,t)}),jc=p("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Is),A.init(e,t),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[n,o]=i;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function ai(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Uc=p("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=zs),A.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{ai(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Tc(e){if(!ei.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return ai(r)}const Dc=p("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ei),A.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Tc(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Ec=p("$ZodE164",(e,t)=>{t.pattern??(t.pattern=xs),A.init(e,t)});function Pc(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}const Ac=p("$ZodJWT",(e,t)=>{A.init(e,t),e._zod.check=r=>{Pc(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Zc=p("$ZodCustomStringFormat",(e,t)=>{A.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),si=p("$ZodNumber",(e,t)=>{j.init(e,t),e._zod.pattern=e._zod.bag.pattern??ni,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;const o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),Lc=p("$ZodNumberFormat",(e,t)=>{Vs.init(e,t),si.init(e,t)}),ci=p("$ZodBoolean",(e,t)=>{j.init(e,t),e._zod.pattern=Ls,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}const n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),ui=p("$ZodBigInt",(e,t)=>{j.init(e,t),e._zod.pattern=As,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Cc=p("$ZodBigIntFormat",(e,t)=>{qs.init(e,t),ui.init(e,t)}),Rc=p("$ZodSymbol",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Mc=p("$ZodUndefined",(e,t)=>{j.init(e,t),e._zod.pattern=Rs,e._zod.values=new Set([void 0]),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Fc=p("$ZodNull",(e,t)=>{j.init(e,t),e._zod.pattern=Cs,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{const n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Jc=p("$ZodAny",(e,t)=>{j.init(e,t),e._zod.parse=r=>r}),Kc=p("$ZodUnknown",(e,t)=>{j.init(e,t),e._zod.parse=r=>r}),Bc=p("$ZodNever",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Vc=p("$ZodVoid",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),qc=p("$ZodDate",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}const n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function oa(e,t,r){e.issues.length&&t.issues.push(...ne(r,e.issues)),t.value[r]=e.value}const Wc=p("$ZodArray",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);const o=[];for(let a=0;a<n.length;a++){const s=n[a],c=t.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(u=>oa(u,r,a))):oa(c,r,a)}return o.length?Promise.all(o).then(()=>r):r}});function fn(e,t,r,i,n,o){const a=r in i;if(e.issues.length){if(n&&o&&!a)return;t.issues.push(...ne(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function Gc(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const r=Ba(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Xc(e,t,r,i,n,o){const a=[],s=n.keySet,c=n.catchall._zod,u=c.def.type,l=c.optin==="optional",d=c.optout==="optional";for(const f in t){if(f==="__proto__"||s.has(f))continue;if(u==="never"){a.push(f);continue}const m=c.run({value:t[f],issues:[]},i);m instanceof Promise?e.push(m.then(v=>fn(v,r,f,t,l,d))):fn(m,r,f,t,l,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}const Yc=p("$ZodObject",(e,t)=>{if(j.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}const i=wt(()=>Gc(t));D(e._zod,"propValues",()=>{const s=t.shape,c={};for(const u in s){const l=s[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(const d of l.values)c[u].add(d)}}return c});const n=Ke,o=t.catchall;let a;e._zod.parse=(s,c)=>{a??(a=i.value);const u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};const l=[],d=a.shape;for(const f of a.keys){const m=d[f],v=m._zod.optin==="optional",g=m._zod.optout==="optional",h=m._zod.run({value:u[f],issues:[]},c);h instanceof Promise?l.push(h.then(k=>fn(k,s,f,u,v,g))):fn(h,s,f,u,v,g)}return o?Xc(l,u,s,c,i.value,e):l.length?Promise.all(l).then(()=>s):s}}),Hc=p("$ZodObjectJIT",(e,t)=>{Yc.init(e,t);const r=e._zod.parse,i=wt(()=>Gc(t)),n=f=>{const m=new uc(["shape","payload","ctx"]),v=i.value,g=I=>{const _=zr(I);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};m.write("const input = payload.value;");const h=Object.create(null);let k=0;for(const I of v.keys)h[I]=`key_${k++}`;m.write("const newResult = {};");for(const I of v.keys){const _=h[I],w=zr(I),x=f[I],E=x?._zod?.optin==="optional",S=x?._zod?.optout==="optional";m.write(`const ${_} = ${g(I)};`),E&&S?m.write(`
|
|
4
|
+
`))}}const lc={major:4,minor:4,patch:3},j=p("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=lc;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const n of i)for(const o of n._zod.onattach)o(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const n=(a,s,c)=>{let u=Ie(a),l;for(const d of s){if(d._zod.def.when){if(ts(a)||!d._zod.def.when(a))continue}else if(u)continue;const f=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&c?.async===!1)throw new Ne;if(l||m instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await m,a.issues.length!==f&&(u||(u=Ie(a,f)))});else{if(a.issues.length===f)continue;u||(u=Ie(a,f))}}return l?l.then(()=>a):a},o=(a,s,c)=>{if(Ie(a))return a.aborted=!0,a;const u=n(s,i,c);if(u instanceof Promise){if(c.async===!1)throw new Ne;return u.then(l=>e._zod.parse(l,c))}return e._zod.parse(u,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){const u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(l=>o(l,a,s)):o(u,a,s)}const c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new Ne;return c.then(u=>n(u,i,s))}return n(c,i,s)}}D(e,"~standard",()=>({validate:n=>{try{const o=cs(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return us(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Ut=p("$ZodString",(e,t)=>{j.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ps(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),A=p("$ZodStringFormat",(e,t)=>{jt.init(e,t),Ut.init(e,t)}),dc=p("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=vs),A.init(e,t)}),fc=p("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ve(i))}else t.pattern??(t.pattern=Ve());A.init(e,t)}),mc=p("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ys),A.init(e,t)}),pc=p("$ZodURL",(e,t)=>{A.init(e,t),e._zod.check=r=>{try{const i=r.value.trim();if(!t.normalize&&t.protocol?.source===ni.source&&!/^https?:\/\//i.test(i)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}const n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),gc=p("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=bs()),A.init(e,t)}),hc=p("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=gs),A.init(e,t)}),vc=p("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ls),A.init(e,t)}),yc=p("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ds),A.init(e,t)}),$c=p("$ZodULID",(e,t)=>{t.pattern??(t.pattern=fs),A.init(e,t)}),bc=p("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ms),A.init(e,t)}),_c=p("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ps),A.init(e,t)}),kc=p("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Es(t)),A.init(e,t)}),wc=p("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Us),A.init(e,t)}),Sc=p("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ds(t)),A.init(e,t)}),Ic=p("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=hs),A.init(e,t)}),zc=p("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_s),A.init(e,t),e._zod.bag.format="ipv4"}),Oc=p("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ks),A.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Nc=p("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=ws(t.delimiter)),A.init(e,t),e._zod.bag.format="mac"}),xc=p("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ss),A.init(e,t)}),jc=p("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Is),A.init(e,t),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[n,o]=i;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function si(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Uc=p("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=zs),A.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{si(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Tc(e){if(!ti.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return si(r)}const Dc=p("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ti),A.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Tc(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Ec=p("$ZodE164",(e,t)=>{t.pattern??(t.pattern=xs),A.init(e,t)});function Pc(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}const Ac=p("$ZodJWT",(e,t)=>{A.init(e,t),e._zod.check=r=>{Pc(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Zc=p("$ZodCustomStringFormat",(e,t)=>{A.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),ci=p("$ZodNumber",(e,t)=>{j.init(e,t),e._zod.pattern=e._zod.bag.pattern??ri,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;const o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),Lc=p("$ZodNumberFormat",(e,t)=>{Vs.init(e,t),ci.init(e,t)}),ui=p("$ZodBoolean",(e,t)=>{j.init(e,t),e._zod.pattern=Ls,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}const n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),li=p("$ZodBigInt",(e,t)=>{j.init(e,t),e._zod.pattern=As,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Cc=p("$ZodBigIntFormat",(e,t)=>{qs.init(e,t),li.init(e,t)}),Rc=p("$ZodSymbol",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Mc=p("$ZodUndefined",(e,t)=>{j.init(e,t),e._zod.pattern=Rs,e._zod.values=new Set([void 0]),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Fc=p("$ZodNull",(e,t)=>{j.init(e,t),e._zod.pattern=Cs,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{const n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Jc=p("$ZodAny",(e,t)=>{j.init(e,t),e._zod.parse=r=>r}),Kc=p("$ZodUnknown",(e,t)=>{j.init(e,t),e._zod.parse=r=>r}),Bc=p("$ZodNever",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Vc=p("$ZodVoid",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),qc=p("$ZodDate",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}const n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function aa(e,t,r){e.issues.length&&t.issues.push(...ne(r,e.issues)),t.value[r]=e.value}const Wc=p("$ZodArray",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);const o=[];for(let a=0;a<n.length;a++){const s=n[a],c=t.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(u=>aa(u,r,a))):aa(c,r,a)}return o.length?Promise.all(o).then(()=>r):r}});function fn(e,t,r,i,n,o){const a=r in i;if(e.issues.length){if(n&&o&&!a)return;t.issues.push(...ne(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function Gc(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const r=Ba(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Xc(e,t,r,i,n,o){const a=[],s=n.keySet,c=n.catchall._zod,u=c.def.type,l=c.optin==="optional",d=c.optout==="optional";for(const f in t){if(f==="__proto__"||s.has(f))continue;if(u==="never"){a.push(f);continue}const m=c.run({value:t[f],issues:[]},i);m instanceof Promise?e.push(m.then(v=>fn(v,r,f,t,l,d))):fn(m,r,f,t,l,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}const Yc=p("$ZodObject",(e,t)=>{if(j.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}const i=wt(()=>Gc(t));D(e._zod,"propValues",()=>{const s=t.shape,c={};for(const u in s){const l=s[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(const d of l.values)c[u].add(d)}}return c});const n=Ke,o=t.catchall;let a;e._zod.parse=(s,c)=>{a??(a=i.value);const u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};const l=[],d=a.shape;for(const f of a.keys){const m=d[f],v=m._zod.optin==="optional",g=m._zod.optout==="optional",h=m._zod.run({value:u[f],issues:[]},c);h instanceof Promise?l.push(h.then(k=>fn(k,s,f,u,v,g))):fn(h,s,f,u,v,g)}return o?Xc(l,u,s,c,i.value,e):l.length?Promise.all(l).then(()=>s):s}}),Hc=p("$ZodObjectJIT",(e,t)=>{Yc.init(e,t);const r=e._zod.parse,i=wt(()=>Gc(t)),n=f=>{const m=new uc(["shape","payload","ctx"]),v=i.value,g=I=>{const _=Or(I);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};m.write("const input = payload.value;");const h=Object.create(null);let k=0;for(const I of v.keys)h[I]=`key_${k++}`;m.write("const newResult = {};");for(const I of v.keys){const _=h[I],w=Or(I),x=f[I],E=x?._zod?.optin==="optional",S=x?._zod?.optout==="optional";m.write(`const ${_} = ${g(I)};`),E&&S?m.write(`
|
|
5
5
|
if (${_}.issues.length) {
|
|
6
6
|
if (${w} in input) {
|
|
7
7
|
payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
|
|
@@ -60,43 +60,43 @@
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
`)}m.write("payload.value = newResult;"),m.write("return payload;");const z=m.compile();return(I,_)=>z(f,I,_)};let o;const a=Ke,s=!gt.jitless,u=s&&Ja.value,l=t.catchall;let d;e._zod.parse=(f,m)=>{d??(d=i.value);const v=f.value;return a(v)?s&&u&&m?.async===!1&&m.jitless!==!0?(o||(o=n(t.shape)),f=o(f,m),l?Xc([],v,f,m,d,e):f):r(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),f)}});function aa(e,t,r,i){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const n=e.filter(o=>!Ie(o));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>Y(a,i,B())))}),t)}const In=p("$ZodUnion",(e,t)=>{j.init(e,t),D(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),D(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),D(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),D(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${i.map(n=>_n(n.source)).join("|")})$`)}});const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1;const a=[];for(const s of t.options){const c=s._zod.run({value:i.value,issues:[]},n);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(s=>aa(s,i,e,n)):aa(a,i,e,n)}});function sa(e,t,r,i){const n=e.filter(o=>o.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>Y(a,i,B())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}const Qc=p("$ZodXor",(e,t)=>{In.init(e,t),t.inclusive=!1;const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1;const a=[];for(const s of t.options){const c=s._zod.run({value:i.value,issues:[]},n);c instanceof Promise?(a.push(c),o=!0):a.push(c)}return o?Promise.all(a).then(s=>sa(s,i,e,n)):sa(a,i,e,n)}}),eu=p("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,In.init(e,t);const r=e._zod.parse;D(e._zod,"propValues",()=>{const n={};for(const o of t.options){const a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const[s,c]of Object.entries(a)){n[s]||(n[s]=new Set);for(const u of c)n[s].add(u)}}return n});const i=wt(()=>{const n=t.options,o=new Map;for(const a of n){const s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const c of s){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a)}}return o});e._zod.parse=(n,o)=>{const a=n.value;if(!Ke(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;const s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(n,o):t.unionFallback||o.direction==="backward"?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),tu=p("$ZodIntersection",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value,o=t.left._zod.run({value:n,issues:[]},i),a=t.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,u])=>ca(r,c,u)):ca(r,o,a)}});function xr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xe(e)&&xe(t)){const r=Object.keys(t),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(const o of i){const a=xr(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n[o]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const n=e[i],o=t[i],a=xr(n,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function ca(e,t,r){const i=new Map;let n;for(const s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(const c of s.keys)i.has(c)||i.set(c,{}),i.get(c).l=!0}else e.issues.push(s);for(const s of r.issues)if(s.code==="unrecognized_keys")for(const c of s.keys)i.has(c)||i.set(c,{}),i.get(c).r=!0;else e.issues.push(s);const o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&n&&e.issues.push({...n,keys:o}),Ie(e))return e;const a=xr(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const li=p("$ZodTuple",(e,t)=>{j.init(e,t);const r=t.items;e._zod.parse=(i,n)=>{const o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const a=[],s=ua(r,"optin"),c=ua(r,"optout");if(!t.rest){if(o.length<s)return i.issues.push({code:"too_small",minimum:s,inclusive:!0,input:o,inst:e,origin:"array"}),i;o.length>r.length&&i.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:o,inst:e,origin:"array"})}const u=new Array(r.length);for(let l=0;l<r.length;l++){const d=r[l]._zod.run({value:o[l],issues:[]},n);d instanceof Promise?a.push(d.then(f=>{u[l]=f})):u[l]=d}if(t.rest){let l=r.length-1;const d=o.slice(r.length);for(const f of d){l++;const m=t.rest._zod.run({value:f,issues:[]},n);m instanceof Promise?a.push(m.then(v=>la(v,i,l))):la(m,i,l)}}return a.length?Promise.all(a).then(()=>da(u,i,r,o,c)):da(u,i,r,o,c)}});function ua(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function la(e,t,r){e.issues.length&&t.issues.push(...ne(r,e.issues)),t.value[r]=e.value}function da(e,t,r,i,n){for(let o=0;o<r.length;o++){const a=e[o],s=o<i.length;if(a.issues.length){if(!s&&o>=n){t.value.length=o;break}t.issues.push(...ne(o,a.issues))}t.value[o]=a.value}for(let o=t.value.length-1;o>=i.length&&(r[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}const nu=p("$ZodRecord",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!xe(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;const o=[],a=t.keyType._zod.values;if(a){r.value={};const s=new Set;for(const u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);const l=t.keyType._zod.run({value:u,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(m=>Y(m,i,B())),input:u,path:[u],inst:e});continue}const d=l.value,f=t.valueType._zod.run({value:n[u],issues:[]},i);f instanceof Promise?o.push(f.then(m=>{m.issues.length&&r.issues.push(...ne(u,m.issues)),r.value[d]=m.value})):(f.issues.length&&r.issues.push(...ne(u,f.issues)),r.value[d]=f.value)}let c;for(const u in n)s.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(const s of Reflect.ownKeys(n)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&ni.test(s)&&c.issues.length){const d=t.keyType._zod.run({value:Number(s),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>Y(d,i,B())),input:s,path:[s],inst:e});continue}const l=t.valueType._zod.run({value:n[s],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&r.issues.push(...ne(s,d.issues)),r.value[c.value]=d.value})):(l.issues.length&&r.issues.push(...ne(s,l.issues)),r.value[c.value]=l.value)}}return o.length?Promise.all(o).then(()=>r):r}}),ru=p("$ZodMap",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;const o=[];r.value=new Map;for(const[a,s]of n){const c=t.keyType._zod.run({value:a,issues:[]},i),u=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([l,d])=>{fa(l,d,r,a,n,e,i)})):fa(c,u,r,a,n,e,i)}return o.length?Promise.all(o).then(()=>r):r}});function fa(e,t,r,i,n,o,a){e.issues.length&&(dn.has(typeof i)?r.issues.push(...ne(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>Y(s,a,B()))})),t.issues.length&&(dn.has(typeof i)?r.issues.push(...ne(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(s=>Y(s,a,B()))})),r.value.set(e.value,t.value)}const iu=p("$ZodSet",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;const o=[];r.value=new Set;for(const a of n){const s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>ma(c,r))):ma(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function ma(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const ou=p("$ZodEnum",(e,t)=>{j.init(e,t);const r=Rr(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>dn.has(typeof n)).map(n=>typeof n=="string"?ge(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{const a=n.value;return i.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),au=p("$ZodLiteral",(e,t)=>{if(j.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?ge(i):i?ge(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{const o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),su=p("$ZodFile",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),cu=p("$ZodTransform",(e,t)=>{j.init(e,t),e._zod.optin="optional",e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new bn(e.constructor.name);const n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new Ne;return r.value=n,r.fallback=!0,r}});function pa(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const di=p("$ZodOptional",(e,t)=>{j.init(e,t),e._zod.optin="optional",e._zod.optout="optional",D(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),D(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${_n(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){const n=r.value,o=t.innerType._zod.run(r,i);return o instanceof Promise?o.then(a=>pa(a,n)):pa(o,n)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),uu=p("$ZodExactOptional",(e,t)=>{di.init(e,t),D(e._zod,"values",()=>t.innerType._zod.values),D(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),lu=p("$ZodNullable",(e,t)=>{j.init(e,t),D(e._zod,"optin",()=>t.innerType._zod.optin),D(e._zod,"optout",()=>t.innerType._zod.optout),D(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${_n(r.source)}|null)$`):void 0}),D(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),du=p("$ZodDefault",(e,t)=>{j.init(e,t),e._zod.optin="optional",D(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>ga(o,t)):ga(n,t)}});function ga(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const fu=p("$ZodPrefault",(e,t)=>{j.init(e,t),e._zod.optin="optional",D(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),mu=p("$ZodNonOptional",(e,t)=>{j.init(e,t),D(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>ha(o,e)):ha(n,e)}});function ha(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const pu=p("$ZodSuccess",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new bn("ZodSuccess");const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),gu=p("$ZodCatch",(e,t)=>{j.init(e,t),e._zod.optin="optional",D(e._zod,"optout",()=>t.innerType._zod.optout),D(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(a=>Y(a,i,B()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>Y(o,i,B()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),hu=p("$ZodNaN",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),fi=p("$ZodPipe",(e,t)=>{j.init(e,t),D(e._zod,"values",()=>t.in._zod.values),D(e._zod,"optin",()=>t.in._zod.optin),D(e._zod,"optout",()=>t.out._zod.optout),D(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Ht(a,t.in,i)):Ht(o,t.in,i)}const n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>Ht(o,t.out,i)):Ht(n,t.out,i)}});function Ht(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}const mi=p("$ZodCodec",(e,t)=>{j.init(e,t),D(e._zod,"values",()=>t.in._zod.values),D(e._zod,"optin",()=>t.in._zod.optin),D(e._zod,"optout",()=>t.out._zod.optout),D(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){const o=t.in._zod.run(r,i);return o instanceof Promise?o.then(a=>Qt(a,t,i)):Qt(o,t,i)}else{const o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Qt(a,t,i)):Qt(o,t,i)}}});function Qt(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){const n=t.transform(e.value,e);return n instanceof Promise?n.then(o=>en(e,o,t.out,r)):en(e,n,t.out,r)}else{const n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>en(e,o,t.in,r)):en(e,n,t.in,r)}}function en(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}const vu=p("$ZodPreprocess",(e,t)=>{fi.init(e,t)}),yu=p("$ZodReadonly",(e,t)=>{j.init(e,t),D(e._zod,"propValues",()=>t.innerType._zod.propValues),D(e._zod,"values",()=>t.innerType._zod.values),D(e._zod,"optin",()=>t.innerType?._zod?.optin),D(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(va):va(n)}});function va(e){return e.value=Object.freeze(e.value),e}const $u=p("$ZodTemplateLiteral",(e,t)=>{j.init(e,t);const r=[];for(const i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const o=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,a))}else if(i===null||Ka.has(typeof i))r.push(ge(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),bu=p("$ZodFunction",(e,t)=>(j.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){const n=e._def.input?Or(e._def.input,i):i,o=Reflect.apply(r,this,n);return e._def.output?Or(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){const n=e._def.input?await Nr(e._def.input,i):i,o=await Reflect.apply(r,this,n);return e._def.output?await Nr(e._def.output,o):o}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{const i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new li({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{const i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),_u=p("$ZodPromise",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),ku=p("$ZodLazy",(e,t)=>{j.init(e,t),D(e._zod,"innerType",()=>{const r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),D(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),D(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),D(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),D(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),wu=p("$ZodCustom",(e,t)=>{C.init(e,t),j.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(o=>ya(o,r,i,e));ya(n,r,i,e)}});function ya(e,t,r,i){if(!e){const n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(Be(n))}}const _p=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(n){return e[n]??null}const r={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${n.expected}، ولكن تم إدخال ${s}`:`مدخلات غير مقبولة: يفترض إدخال ${o}، ولكن تم إدخال ${s}`}case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${O(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${o} ${n.maximum.toString()} ${a.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${o} ${n.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:o.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${o.suffix}"`:o.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${o.includes}"`:o.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${r[o.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${$(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function kp(){return{localeError:_p()}}const wp=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(n){return e[n]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Yanlış dəyər: gözlənilən instanceof ${n.expected}, daxil olan ${s}`:`Yanlış dəyər: gözlənilən ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${O(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${o}${n.maximum.toString()} ${a.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Çox kiçik: gözlənilən ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Yanlış mətn: "${o.prefix}" ilə başlamalıdır`:o.format==="ends_with"?`Yanlış mətn: "${o.suffix}" ilə bitməlidir`:o.format==="includes"?`Yanlış mətn: "${o.includes}" daxil olmalıdır`:o.format==="regex"?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${r[o.format]??n.format}`}case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${n.keys.length>1?"lar":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function Sp(){return{localeError:wp()}}function $a(e,t,r,i){const n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}const Ip=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(n){return e[n]??null}const r={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},i={nan:"NaN",number:"лік",array:"масіў"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Няправільны ўвод: чакаўся instanceof ${n.expected}, атрымана ${s}`:`Няправільны ўвод: чакаўся ${o}, атрымана ${s}`}case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${O(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);if(a){const s=Number(n.maximum),c=$a(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${a.verb} ${o}${n.maximum.toString()} ${c}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);if(a){const s=Number(n.minimum),c=$a(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${a.verb} ${o}${n.minimum.toString()} ${c}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${o.prefix}"`:o.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${o.suffix}"`:o.format==="includes"?`Няправільны радок: павінен змяшчаць "${o.includes}"`:o.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${r[o.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${$(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function zp(){return{localeError:Ip()}}const Op=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(n){return e[n]??null}const r={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},i={nan:"NaN",number:"число",array:"масив"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Невалиден вход: очакван instanceof ${n.expected}, получен ${s}`:`Невалиден вход: очакван ${o}, получен ${s}`}case"invalid_value":return n.values.length===1?`Невалиден вход: очакван ${O(n.values[0])}`:`Невалидна опция: очаквано едно от ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Твърде голямо: очаква се ${n.origin??"стойност"} да съдържа ${o}${n.maximum.toString()} ${a.unit??"елемента"}`:`Твърде голямо: очаква се ${n.origin??"стойност"} да бъде ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Твърде малко: очаква се ${n.origin} да съдържа ${o}${n.minimum.toString()} ${a.unit}`:`Твърде малко: очаква се ${n.origin} да бъде ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;if(o.format==="starts_with")return`Невалиден низ: трябва да започва с "${o.prefix}"`;if(o.format==="ends_with")return`Невалиден низ: трябва да завършва с "${o.suffix}"`;if(o.format==="includes")return`Невалиден низ: трябва да включва "${o.includes}"`;if(o.format==="regex")return`Невалиден низ: трябва да съвпада с ${o.pattern}`;let a="Невалиден";return o.format==="emoji"&&(a="Невалидно"),o.format==="datetime"&&(a="Невалидно"),o.format==="date"&&(a="Невалидна"),o.format==="time"&&(a="Невалидно"),o.format==="duration"&&(a="Невалидна"),`${a} ${r[o.format]??n.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${n.divisor}`;case"unrecognized_keys":return`Неразпознат${n.keys.length>1?"и":""} ключ${n.keys.length>1?"ове":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${n.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${n.origin}`;default:return"Невалиден вход"}}};function Np(){return{localeError:Op()}}const xp=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}const r={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus invàlid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus invàlid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${O(n.values[0])}`:`Opció invàlida: s'esperava una de ${$(n.values," o ")}`;case"too_big":{const o=n.inclusive?"com a màxim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${o} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?"com a mínim":"més de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingués ${o} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Format invàlid: ha de començar amb "${o.prefix}"`:o.format==="ends_with"?`Format invàlid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format invàlid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${r[o.format]??n.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${n.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${n.origin}`;default:return"Entrada invàlida"}}};function jp(){return{localeError:xp()}}const Up=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(n){return e[n]??null}const r={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatný vstup: očekáváno instanceof ${n.expected}, obdrženo ${s}`:`Neplatný vstup: očekáváno ${o}, obdrženo ${s}`}case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${O(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${o}${n.maximum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${o}${n.minimum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Neplatný řetězec: musí začínat na "${o.prefix}"`:o.format==="ends_with"?`Neplatný řetězec: musí končit na "${o.suffix}"`:o.format==="includes"?`Neplatný řetězec: musí obsahovat "${o.includes}"`:o.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${n.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${$(n.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${n.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${n.origin}`;default:return"Neplatný vstup"}}};function Tp(){return{localeError:Up()}}const Dp=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}const r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig værdi: forventede ${O(n.values[0])}`:`Ugyldigt valg: forventede en af følgende ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche mønsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${$(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${n.origin}`;default:return"Ugyldigt input"}}};function Ep(){return{localeError:Dp()}}const Pp=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}const r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ungültige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ungültige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${O(n.values[0])}`:`Ungültige Option: erwartet eine von ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ungültiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ungültiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ungültiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${$(n.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${n.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${n.origin}`;default:return"Ungültige Eingabe"}}};function Ap(){return{localeError:Pp()}}const Zp=()=>{const e={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function t(n){return e[n]??null}const r={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${n.expected}, λήφθηκε ${s}`:`Μη έγκυρη είσοδος: αναμενόταν ${o}, λήφθηκε ${s}`}case"invalid_value":return n.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${O(n.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Πολύ μεγάλο: αναμενόταν ${n.origin??"τιμή"} να έχει ${o}${n.maximum.toString()} ${a.unit??"στοιχεία"}`:`Πολύ μεγάλο: αναμενόταν ${n.origin??"τιμή"} να είναι ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Πολύ μικρό: αναμενόταν ${n.origin} να έχει ${o}${n.minimum.toString()} ${a.unit}`:`Πολύ μικρό: αναμενόταν ${n.origin} να είναι ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${o.prefix}"`:o.format==="ends_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${o.suffix}"`:o.format==="includes"?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${o.includes}"`:o.format==="regex"?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${o.pattern}`:`Μη έγκυρο: ${r[o.format]??n.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${n.divisor}`;case"unrecognized_keys":return`Άγνωστ${n.keys.length>1?"α":"ο"} κλειδ${n.keys.length>1?"ιά":"ί"}: ${$(n.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${n.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${n.origin}`;default:return"Μη έγκυρη είσοδος"}}};function Lp(){return{localeError:Zp()}}const Cp=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${O(n.values[0])}`:`Invalid option: expected one of ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Su(){return{localeError:Cp()}}const Rp=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}const r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendiĝis instanceof ${n.expected}, riceviĝis ${s}`:`Nevalida enigo: atendiĝis ${o}, riceviĝis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendiĝis ${O(n.values[0])}`:`Nevalida opcio: atendiĝis unu el ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendiĝis ke ${n.origin} havu ${o}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} ŝlosilo${n.keys.length>1?"j":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function Mp(){return{localeError:Rp()}}const Fp=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}const r={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inválida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inválida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inválida: se esperaba ${O(n.values[0])}`:`Opción inválida: se esperaba una de ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado pequeño: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${a.unit}`:`Demasiado pequeño: se esperaba que ${s} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Cadena inválida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inválida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inválida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${o.pattern}`:`Inválido ${r[o.format]??n.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i[n.origin]??n.origin}`;default:return"Entrada inválida"}}};function Jp(){return{localeError:Fp()}}const Kp=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(n){return e[n]??null}const r={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},i={nan:"NaN",number:"عدد",array:"آرایه"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`ورودی نامعتبر: میبایست instanceof ${n.expected} میبود، ${s} دریافت شد`:`ورودی نامعتبر: میبایست ${o} میبود، ${s} دریافت شد`}case"invalid_value":return n.values.length===1?`ورودی نامعتبر: میبایست ${O(n.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${$(n.values,"|")} میبود`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${o}${n.maximum.toString()} ${a.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${o}${n.maximum.toString()} باشد`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`خیلی کوچک: ${n.origin} باید ${o}${n.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${o}${n.minimum.toString()} باشد`}case"invalid_format":{const o=n;return o.format==="starts_with"?`رشته نامعتبر: باید با "${o.prefix}" شروع شود`:o.format==="ends_with"?`رشته نامعتبر: باید با "${o.suffix}" تمام شود`:o.format==="includes"?`رشته نامعتبر: باید شامل "${o.includes}" باشد`:o.format==="regex"?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${r[o.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${$(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function Bp(){return{localeError:Kp()}}const Vp=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(n){return e[n]??null}const r={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${O(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${o}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${o}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen syöte: täytyy sisältää "${o.includes}"`:o.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${$(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function qp(){return{localeError:Vp()}}const Wp=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const r={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrée invalide : instanceof ${n.expected} attendu, ${s} reçu`:`Entrée invalide : ${o} attendu, ${s} reçu`}case"invalid_value":return n.values.length===1?`Entrée invalide : ${O(n.values[0])} attendu`:`Option invalide : une valeur parmi ${$(n.values,"|")} attendue`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"élément(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit être ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit être ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${$(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function Gp(){return{localeError:Wp()}}const Xp=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const r={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrée invalide : attendu instanceof ${n.expected}, reçu ${s}`:`Entrée invalide : attendu ${o}, reçu ${s}`}case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${O(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"≤":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?"≥":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${$(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function Yp(){return{localeError:Xp()}}const Hp=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=u=>u?e[u]:void 0,i=u=>{const l=r(u);return l?l.label:u??e.unknown.label},n=u=>`ה${i(u)}`,o=u=>(r(u)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות",a=u=>u?t[u]??null:null,s={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const l=u.expected,d=c[l??""]??i(l),f=N(u.input),m=c[f]??e[f]?.label??f;return/^[A-Z]/.test(u.expected)?`קלט לא תקין: צריך להיות instanceof ${u.expected}, התקבל ${m}`:`קלט לא תקין: צריך להיות ${d}, התקבל ${m}`}case"invalid_value":{if(u.values.length===1)return`ערך לא תקין: הערך חייב להיות ${O(u.values[0])}`;const l=u.values.map(m=>O(m));if(u.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${l[0]} או ${l[1]}`;const d=l[l.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${l.slice(0,-1).join(", ")} או ${d}`}case"too_big":{const l=a(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"ארוך"} מדי: ${d} צריכה להכיל ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"או פחות":"לכל היותר"}`.trim();if(u.origin==="number"){const v=u.inclusive?`קטן או שווה ל-${u.maximum}`:`קטן מ-${u.maximum}`;return`גדול מדי: ${d} צריך להיות ${v}`}if(u.origin==="array"||u.origin==="set"){const v=u.origin==="set"?"צריכה":"צריך",g=u.inclusive?`${u.maximum} ${l?.unit??""} או פחות`:`פחות מ-${u.maximum} ${l?.unit??""}`;return`גדול מדי: ${d} ${v} להכיל ${g}`.trim()}const f=u.inclusive?"<=":"<",m=o(u.origin??"value");return l?.unit?`${l.longLabel} מדי: ${d} ${m} ${f}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"גדול"} מדי: ${d} ${m} ${f}${u.maximum.toString()}`}case"too_small":{const l=a(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"קצר"} מדי: ${d} צריכה להכיל ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"או יותר":"לפחות"}`.trim();if(u.origin==="number"){const v=u.inclusive?`גדול או שווה ל-${u.minimum}`:`גדול מ-${u.minimum}`;return`קטן מדי: ${d} צריך להיות ${v}`}if(u.origin==="array"||u.origin==="set"){const v=u.origin==="set"?"צריכה":"צריך";if(u.minimum===1&&u.inclusive){const h=(u.origin==="set","לפחות פריט אחד");return`קטן מדי: ${d} ${v} להכיל ${h}`}const g=u.inclusive?`${u.minimum} ${l?.unit??""} או יותר`:`יותר מ-${u.minimum} ${l?.unit??""}`;return`קטן מדי: ${d} ${v} להכיל ${g}`.trim()}const f=u.inclusive?">=":">",m=o(u.origin??"value");return l?.unit?`${l.shortLabel} מדי: ${d} ${m} ${f}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"קטן"} מדי: ${d} ${m} ${f}${u.minimum.toString()}`}case"invalid_format":{const l=u;if(l.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${l.prefix}"`;if(l.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${l.suffix}"`;if(l.format==="includes")return`המחרוזת חייבת לכלול "${l.includes}"`;if(l.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${l.pattern}`;const d=s[l.format],f=d?.label??l.format,v=(d?.gender??"m")==="f"?"תקינה":"תקין";return`${f} לא ${v}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${u.divisor}`;case"unrecognized_keys":return`מפתח${u.keys.length>1?"ות":""} לא מזוה${u.keys.length>1?"ים":"ה"}: ${$(u.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n(u.origin??"array")}`;default:return"קלט לא תקין"}}};function Qp(){return{localeError:Hp()}}const eg=()=>{const e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}const r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: očekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: očekuje se ${o}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: očekivano ${O(n.values[0])}`:`Neispravna opcija: očekivano jedno od ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Preveliko: očekivano da ${s??"vrijednost"} ima ${o}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: očekivano da ${s??"vrijednost"} bude ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Premalo: očekivano da ${s} ima ${o}${n.minimum.toString()} ${a.unit}`:`Premalo: očekivano da ${s} bude ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Neispravan tekst: mora započinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora završavati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadržavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i ključevi":" ključ"}: ${$(n.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function tg(){return{localeError:eg()}}const ng=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}const r={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"szám",array:"tömb"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Érvénytelen bemenet: a várt érték instanceof ${n.expected}, a kapott érték ${s}`:`Érvénytelen bemenet: a várt érték ${o}, a kapott érték ${s}`}case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${O(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${o}${n.maximum.toString()} ${a.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${o}${n.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Érvénytelen string: "${o.prefix}" értékkel kell kezdődnie`:o.format==="ends_with"?`Érvénytelen string: "${o.suffix}" értékkel kell végződnie`:o.format==="includes"?`Érvénytelen string: "${o.includes}" értéket kell tartalmaznia`:o.format==="regex"?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${r[o.format]??n.format}`}case"not_multiple_of":return`Érvénytelen szám: ${n.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${n.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${n.origin}`;default:return"Érvénytelen bemenet"}}};function rg(){return{localeError:ng()}}function ba(e,t,r){return Math.abs(e)===1?t:r}function Ae(e){if(!e)return"";const t=["ա","ե","ը","ի","ո","ու","օ"],r=e[e.length-1];return e+(t.includes(r)?"ն":"ը")}const ig=()=>{const e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function t(n){return e[n]??null}const r={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},i={nan:"NaN",number:"թիվ",array:"զանգված"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${n.expected}, ստացվել է ${s}`:`Սխալ մուտքագրում․ սպասվում էր ${o}, ստացվել է ${s}`}case"invalid_value":return n.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${O(n.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);if(a){const s=Number(n.maximum),c=ba(s,a.unit.one,a.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Ae(n.origin??"արժեք")} կունենա ${o}${n.maximum.toString()} ${c}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Ae(n.origin??"արժեք")} լինի ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);if(a){const s=Number(n.minimum),c=ba(s,a.unit.one,a.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Ae(n.origin)} կունենա ${o}${n.minimum.toString()} ${c}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Ae(n.origin)} լինի ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${o.prefix}"-ով`:o.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${o.suffix}"-ով`:o.format==="includes"?`Սխալ տող․ պետք է պարունակի "${o.includes}"`:o.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${o.pattern} ձևաչափին`:`Սխալ ${r[o.format]??n.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${n.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${n.keys.length>1?"ներ":""}. ${$(n.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${Ae(n.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${Ae(n.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function og(){return{localeError:ig()}}const ag=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}const r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${O(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function sg(){return{localeError:ag()}}const cg=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(n){return e[n]??null}const r={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"númer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: Þú slóst inn ${s} þar sem á að vera instanceof ${n.expected}`:`Rangt gildi: Þú slóst inn ${s} þar sem á að vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert ráð fyrir ${O(n.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of stórt: gert er ráð fyrir að ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${n.origin??"gildi"} sé ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Of lítið: gert er ráð fyrir að ${n.origin} hafi ${o}${n.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${n.origin} sé ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ógildur strengur: verður að byrja á "${o.prefix}"`:o.format==="ends_with"?`Ógildur strengur: verður að enda á "${o.suffix}"`:o.format==="includes"?`Ógildur strengur: verður að innihalda "${o.includes}"`:o.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??n.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`Óþekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${$(n.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${n.origin}`;default:return"Rangt gildi"}}};function ug(){return{localeError:cg()}}const lg=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}const r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${O(n.values[0])}`:`Opzione non valida: atteso uno tra ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${r[o.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${$(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function dg(){return{localeError:lg()}}const fg=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(n){return e[n]??null}const r={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},i={nan:"NaN",number:"数値",array:"配列"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`無効な入力: instanceof ${n.expected}が期待されましたが、${s}が入力されました`:`無効な入力: ${o}が期待されましたが、${s}が入力されました`}case"invalid_value":return n.values.length===1?`無効な入力: ${O(n.values[0])}が期待されました`:`無効な選択: ${$(n.values,"、")}のいずれかである必要があります`;case"too_big":{const o=n.inclusive?"以下である":"より小さい",a=t(n.origin);return a?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${a.unit??"要素"}${o}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${o}必要があります`}case"too_small":{const o=n.inclusive?"以上である":"より大きい",a=t(n.origin);return a?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${a.unit}${o}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${o}必要があります`}case"invalid_format":{const o=n;return o.format==="starts_with"?`無効な文字列: "${o.prefix}"で始まる必要があります`:o.format==="ends_with"?`無効な文字列: "${o.suffix}"で終わる必要があります`:o.format==="includes"?`無効な文字列: "${o.includes}"を含む必要があります`:o.format==="regex"?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${r[o.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${$(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function mg(){return{localeError:fg()}}const pg=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(n){return e[n]??null}const r={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},i={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${n.expected}, მიღებული ${s}`:`არასწორი შეყვანა: მოსალოდნელი ${o}, მიღებული ${s}`}case"invalid_value":return n.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${O(n.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${$(n.values,"|")}-დან`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} იყოს ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${n.origin} იყოს ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`არასწორი ველი: უნდა იწყებოდეს "${o.prefix}"-ით`:o.format==="ends_with"?`არასწორი ველი: უნდა მთავრდებოდეს "${o.suffix}"-ით`:o.format==="includes"?`არასწორი ველი: უნდა შეიცავდეს "${o.includes}"-ს`:o.format==="regex"?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${o.pattern}`:`არასწორი ${r[o.format]??n.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${n.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${n.keys.length>1?"ები":"ი"}: ${$(n.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${n.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${n.origin}-ში`;default:return"არასწორი შეყვანა"}}};function gg(){return{localeError:pg()}}const hg=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(n){return e[n]??null}const r={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},i={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${n.expected} ប៉ុន្តែទទួលបាន ${s}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${o} ប៉ុន្តែទទួលបាន ${s}`}case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${O(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${o} ${n.maximum.toString()} ${a.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`តូចពេក៖ ត្រូវការ ${n.origin} ${o} ${n.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${o.prefix}"`:o.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${o.suffix}"`:o.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${o.includes}"`:o.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${r[o.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${$(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function Iu(){return{localeError:hg()}}function vg(){return Iu()}const yg=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(n){return e[n]??null}const r={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`잘못된 입력: 예상 타입은 instanceof ${n.expected}, 받은 타입은 ${s}입니다`:`잘못된 입력: 예상 타입은 ${o}, 받은 타입은 ${s}입니다`}case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${O(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${$(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const o=n.inclusive?"이하":"미만",a=o==="미만"?"이어야 합니다":"여야 합니다",s=t(n.origin),c=s?.unit??"요소";return s?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${c} ${o}${a}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${o}${a}`}case"too_small":{const o=n.inclusive?"이상":"초과",a=o==="이상"?"이어야 합니다":"여야 합니다",s=t(n.origin),c=s?.unit??"요소";return s?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${c} ${o}${a}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${o}${a}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`잘못된 문자열: "${o.prefix}"(으)로 시작해야 합니다`:o.format==="ends_with"?`잘못된 문자열: "${o.suffix}"(으)로 끝나야 합니다`:o.format==="includes"?`잘못된 문자열: "${o.includes}"을(를) 포함해야 합니다`:o.format==="regex"?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${r[o.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${$(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function $g(){return{localeError:yg()}}const ct=e=>e.charAt(0).toUpperCase()+e.slice(1);function _a(e){const t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}const bg=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(n,o,a,s){const c=e[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][a?"inclusive":"notInclusive"]}}const r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},i={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tikėtasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tikėtasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo būti ${O(n.values[0])}`:`Privalo būti vienas iš ${$(n.values,"|")} pasirinkimų`;case"too_big":{const o=i[n.origin]??n.origin,a=t(n.origin,_a(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${ct(o??n.origin??"reikšmė")} ${a.verb} ${n.maximum.toString()} ${a.unit??"elementų"}`;const s=n.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${ct(o??n.origin??"reikšmė")} turi būti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{const o=i[n.origin]??n.origin,a=t(n.origin,_a(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${ct(o??n.origin??"reikšmė")} ${a.verb} ${n.minimum.toString()} ${a.unit??"elementų"}`;const s=n.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${ct(o??n.origin??"reikšmė")} turi būti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Eilutė privalo prasidėti "${o.prefix}"`:o.format==="ends_with"?`Eilutė privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilutė privalo įtraukti "${o.includes}"`:o.format==="regex"?`Eilutė privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??n.format}`}case"not_multiple_of":return`Skaičius privalo būti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${$(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const o=i[n.origin]??n.origin;return`${ct(o??n.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function _g(){return{localeError:bg()}}const kg=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(n){return e[n]??null}const r={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},i={nan:"NaN",number:"број",array:"низа"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Грешен внес: се очекува instanceof ${n.expected}, примено ${s}`:`Грешен внес: се очекува ${o}, примено ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${O(n.values[0])}`:`Грешана опција: се очекува една ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${o}${n.maximum.toString()} ${a.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Премногу мал: се очекува ${n.origin} да има ${o}${n.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Неважечка низа: мора да започнува со "${o.prefix}"`:o.format==="ends_with"?`Неважечка низа: мора да завршува со "${o.suffix}"`:o.format==="includes"?`Неважечка низа: мора да вклучува "${o.includes}"`:o.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${$(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function wg(){return{localeError:kg()}}const Sg=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}const r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${O(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${$(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function Ig(){return{localeError:Sg()}}const zg=()=>{const e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}const r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${O(n.values[0])}`:`Ongeldige optie: verwacht één van ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function Og(){return{localeError:zg()}}const Ng=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(n){return e[n]??null}const r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${O(n.values[0])}`:`Ugyldig valg: forventet en av ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til å ha ${o}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til å ha ${o}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til å ha ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ugyldig streng: må starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: må ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: må inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${$(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function xg(){return{localeError:Ng()}}const jg=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(n){return e[n]??null}const r={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Fâsit giren: umulan instanceof ${n.expected}, alınan ${s}`:`Fâsit giren: umulan ${o}, alınan ${s}`}case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${O(n.values[0])}`:`Fâsit tercih: mûteberler ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla büyük: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${a.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmalıydı.`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla küçük: ${n.origin}, ${o}${n.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${o}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Fâsit metin: "${o.prefix}" ile başlamalı.`:o.format==="ends_with"?`Fâsit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`Fâsit metin: "${o.includes}" ihtivâ etmeli.`:o.format==="regex"?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${r[o.format]??n.format}`}case"not_multiple_of":return`Fâsit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function Ug(){return{localeError:jg()}}const Tg=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(n){return e[n]??null}const r={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},i={nan:"NaN",number:"عدد",array:"ارې"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`ناسم ورودي: باید instanceof ${n.expected} وای, مګر ${s} ترلاسه شو`:`ناسم ورودي: باید ${o} وای, مګر ${s} ترلاسه شو`}case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${O(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${$(n.values,"|")} څخه وای`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`ډیر لوی: ${n.origin??"ارزښت"} باید ${o}${n.maximum.toString()} ${a.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${o}${n.maximum.toString()} وي`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`ډیر کوچنی: ${n.origin} باید ${o}${n.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${o}${n.minimum.toString()} وي`}case"invalid_format":{const o=n;return o.format==="starts_with"?`ناسم متن: باید د "${o.prefix}" سره پیل شي`:o.format==="ends_with"?`ناسم متن: باید د "${o.suffix}" سره پای ته ورسيږي`:o.format==="includes"?`ناسم متن: باید "${o.includes}" ولري`:o.format==="regex"?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${r[o.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${$(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function Dg(){return{localeError:Tg()}}const Eg=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(n){return e[n]??null}const r={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawidłowe dane wejściowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${O(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${o}${n.maximum.toString()} ${a.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${o}${n.minimum.toString()} ${a.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${o.prefix}"`:o.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${o.suffix}"`:o.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${o.includes}"`:o.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${r[o.format]??n.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function Pg(){return{localeError:Eg()}}const Ag=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}const r={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"número",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inválido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inválido: esperado ${o}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${O(n.values[0])}`:`Opção inválida: esperada uma das ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Texto inválido: deve começar com "${o.prefix}"`:o.format==="ends_with"?`Texto inválido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inválido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${r[o.format]??n.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Chave inválida em ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${n.origin}`;default:return"Campo inválido"}}};function Zg(){return{localeError:Ag()}}const Lg=()=>{const e={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function t(n){return e[n]??null}const r={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return`Intrare invalidă: așteptat ${o}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalidă: așteptat ${O(n.values[0])}`:`Opțiune invalidă: așteptat una dintre ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: așteptat ca ${n.origin??"valoarea"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: așteptat ca ${n.origin??"valoarea"} să fie ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: așteptat ca ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Prea mic: așteptat ca ${n.origin} să fie ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Șir invalid: trebuie să înceapă cu "${o.prefix}"`:o.format==="ends_with"?`Șir invalid: trebuie să se termine cu "${o.suffix}"`:o.format==="includes"?`Șir invalid: trebuie să includă "${o.includes}"`:o.format==="regex"?`Șir invalid: trebuie să se potrivească cu modelul ${o.pattern}`:`Format invalid: ${r[o.format]??n.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${$(n.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${n.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${n.origin}`;default:return"Intrare invalidă"}}};function Cg(){return{localeError:Lg()}}function ka(e,t,r,i){const n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}const Rg=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(n){return e[n]??null}const r={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},i={nan:"NaN",number:"число",array:"массив"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Неверный ввод: ожидалось instanceof ${n.expected}, получено ${s}`:`Неверный ввод: ожидалось ${o}, получено ${s}`}case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${O(n.values[0])}`:`Неверный вариант: ожидалось одно из ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);if(a){const s=Number(n.maximum),c=ka(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${o}${n.maximum.toString()} ${c}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);if(a){const s=Number(n.minimum),c=ka(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${o}${n.minimum.toString()} ${c}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Неверная строка: должна начинаться с "${o.prefix}"`:o.format==="ends_with"?`Неверная строка: должна заканчиваться на "${o.suffix}"`:o.format==="includes"?`Неверная строка: должна содержать "${o.includes}"`:o.format==="regex"?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${r[o.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function Mg(){return{localeError:Rg()}}const Fg=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}const r={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"število",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pričakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pričakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${O(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pričakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Neveljaven niz: mora se začeti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se končati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??n.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${$(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function Jg(){return{localeError:Fg()}}const Kg=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(n){return e[n]??null}const r={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: förväntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: förväntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${O(n.values[0])}`:`Ogiltigt val: förväntade en av ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${o}${n.maximum.toString()} ${a.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${o}${n.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ogiltig sträng: måste börja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig sträng: måste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig sträng: måste innehålla "${o.includes}"`:o.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${$(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${n.origin??"värdet"}`;default:return"Ogiltig input"}}};function Bg(){return{localeError:Kg()}}const Vg=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(n){return e[n]??null}const r={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${n.expected}, பெறப்பட்டது ${s}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${o}, பெறப்பட்டது ${s}`}case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${O(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${$(n.values,"|")} இல் ஒன்று`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${o}${n.maximum.toString()} ${a.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${o}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${o}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const o=n;return o.format==="starts_with"?`தவறான சரம்: "${o.prefix}" இல் தொடங்க வேண்டும்`:o.format==="ends_with"?`தவறான சரம்: "${o.suffix}" இல் முடிவடைய வேண்டும்`:o.format==="includes"?`தவறான சரம்: "${o.includes}" ஐ உள்ளடக்க வேண்டும்`:o.format==="regex"?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${r[o.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function qg(){return{localeError:Vg()}}const Wg=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(n){return e[n]??null}const r={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},i={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${n.expected} แต่ได้รับ ${s}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${o} แต่ได้รับ ${s}`}case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${O(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"ไม่เกิน":"น้อยกว่า",a=t(n.origin);return a?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${o} ${n.maximum.toString()} ${a.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?"อย่างน้อย":"มากกว่า",a=t(n.origin);return a?`น้อยกว่ากำหนด: ${n.origin} ควรมี${o} ${n.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${o.prefix}"`:o.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${o.suffix}"`:o.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${o.includes}" อยู่ในข้อความ`:o.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${r[o.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${$(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function Gg(){return{localeError:Wg()}}const Xg=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(n){return e[n]??null}const r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Geçersiz değer: beklenen instanceof ${n.expected}, alınan ${s}`:`Geçersiz değer: beklenen ${o}, alınan ${s}`}case"invalid_value":return n.values.length===1?`Geçersiz değer: beklenen ${O(n.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Çok büyük: beklenen ${n.origin??"değer"} ${o}${n.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${n.origin??"değer"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Çok küçük: beklenen ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Geçersiz metin: "${o.prefix}" ile başlamalı`:o.format==="ends_with"?`Geçersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Geçersiz metin: "${o.includes}" içermeli`:o.format==="regex"?`Geçersiz metin: ${o.pattern} desenine uymalı`:`Geçersiz ${r[o.format]??n.format}`}case"not_multiple_of":return`Geçersiz sayı: ${n.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${n.keys.length>1?"lar":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${n.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Yg(){return{localeError:Xg()}}const Hg=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(n){return e[n]??null}const r={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},i={nan:"NaN",number:"число",array:"масив"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Неправильні вхідні дані: очікується instanceof ${n.expected}, отримано ${s}`:`Неправильні вхідні дані: очікується ${o}, отримано ${s}`}case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${O(n.values[0])}`:`Неправильна опція: очікується одне з ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Занадто велике: очікується, що ${n.origin??"значення"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Занадто мале: очікується, що ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Неправильний рядок: повинен починатися з "${o.prefix}"`:o.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${o.suffix}"`:o.format==="includes"?`Неправильний рядок: повинен містити "${o.includes}"`:o.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${r[o.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function zu(){return{localeError:Hg()}}function Qg(){return zu()}const eh=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(n){return e[n]??null}const r={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},i={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`غلط ان پٹ: instanceof ${n.expected} متوقع تھا، ${s} موصول ہوا`:`غلط ان پٹ: ${o} متوقع تھا، ${s} موصول ہوا`}case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${O(n.values[0])} متوقع تھا`:`غلط آپشن: ${$(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`بہت بڑا: ${n.origin??"ویلیو"} کے ${o}${n.maximum.toString()} ${a.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${o}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`بہت چھوٹا: ${n.origin} کے ${o}${n.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${o}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const o=n;return o.format==="starts_with"?`غلط سٹرنگ: "${o.prefix}" سے شروع ہونا چاہیے`:o.format==="ends_with"?`غلط سٹرنگ: "${o.suffix}" پر ختم ہونا چاہیے`:o.format==="includes"?`غلط سٹرنگ: "${o.includes}" شامل ہونا چاہیے`:o.format==="regex"?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${r[o.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${$(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function th(){return{localeError:eh()}}const nh=()=>{const e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function t(n){return e[n]??null}const r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto‘g‘ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto‘g‘ri kirish: kutilgan ${O(n.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Noto‘g‘ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto‘g‘ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto‘g‘ri satr: "${o.includes}" ni o‘z ichiga olishi kerak`:o.format==="regex"?`Noto‘g‘ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${r[o.format]??n.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${n.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${n.keys.length>1?"lar":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${n.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function rh(){return{localeError:nh()}}const ih=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(n){return e[n]??null}const r={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},i={nan:"NaN",number:"số",array:"mảng"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${n.expected}, nhận được ${s}`:`Đầu vào không hợp lệ: mong đợi ${o}, nhận được ${s}`}case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${O(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Quá nhỏ: mong đợi ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${o.prefix}"`:o.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${o.suffix}"`:o.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${o.includes}"`:o.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${r[o.format]??n.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${n.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${$(n.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${n.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${n.origin}`;default:return"Đầu vào không hợp lệ"}}};function oh(){return{localeError:ih()}}const ah=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(n){return e[n]??null}const r={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},i={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`无效输入:期望 instanceof ${n.expected},实际接收 ${s}`:`无效输入:期望 ${o},实际接收 ${s}`}case"invalid_value":return n.values.length===1?`无效输入:期望 ${O(n.values[0])}`:`无效选项:期望以下之一 ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`数值过大:期望 ${n.origin??"值"} ${o}${n.maximum.toString()} ${a.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`数值过小:期望 ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`数值过小:期望 ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`无效字符串:必须以 "${o.prefix}" 开头`:o.format==="ends_with"?`无效字符串:必须以 "${o.suffix}" 结尾`:o.format==="includes"?`无效字符串:必须包含 "${o.includes}"`:o.format==="regex"?`无效字符串:必须满足正则表达式 ${o.pattern}`:`无效${r[o.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function sh(){return{localeError:ah()}}const ch=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(n){return e[n]??null}const r={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`無效的輸入值:預期為 instanceof ${n.expected},但收到 ${s}`:`無效的輸入值:預期為 ${o},但收到 ${s}`}case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${O(n.values[0])}`:`無效的選項:預期為以下其中之一 ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`數值過大:預期 ${n.origin??"值"} 應為 ${o}${n.maximum.toString()} ${a.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`數值過小:預期 ${n.origin} 應為 ${o}${n.minimum.toString()} ${a.unit}`:`數值過小:預期 ${n.origin} 應為 ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`無效的字串:必須以 "${o.prefix}" 開頭`:o.format==="ends_with"?`無效的字串:必須以 "${o.suffix}" 結尾`:o.format==="includes"?`無效的字串:必須包含 "${o.includes}"`:o.format==="regex"?`無效的字串:必須符合格式 ${o.pattern}`:`無效的 ${r[o.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${$(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function uh(){return{localeError:ch()}}const lh=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(n){return e[n]??null}const r={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},i={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${n.expected}, àmọ̀ a rí ${s}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${o}, àmọ̀ a rí ${s}`}case"invalid_value":return n.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${O(n.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tó pọ̀ jù: a ní láti jẹ́ pé ${n.origin??"iye"} ${a.verb} ${o}${n.maximum} ${a.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${o}${n.maximum}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Kéré ju: a ní láti jẹ́ pé ${n.origin} ${a.verb} ${o}${n.minimum} ${a.unit}`:`Kéré ju: a ní láti jẹ́ ${o}${n.minimum}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${o.prefix}"`:o.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${o.suffix}"`:o.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${o.includes}"`:o.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${o.pattern}`:`Aṣìṣe: ${r[o.format]??n.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${n.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${$(n.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${n.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${n.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function dh(){return{localeError:lh()}}const Ou=Object.freeze(Object.defineProperty({__proto__:null,ar:kp,az:Sp,be:zp,bg:Np,ca:jp,cs:Tp,da:Ep,de:Ap,el:Lp,en:Su,eo:Mp,es:Jp,fa:Bp,fi:qp,fr:Gp,frCA:Yp,he:Qp,hr:tg,hu:rg,hy:og,id:sg,is:ug,it:dg,ja:mg,ka:gg,kh:vg,km:Iu,ko:$g,lt:_g,mk:wg,ms:Ig,nl:Og,no:xg,ota:Ug,pl:Pg,ps:Dg,pt:Zg,ro:Cg,ru:Mg,sl:Jg,sv:Bg,ta:qg,th:Gg,tr:Yg,ua:Qg,uk:zu,ur:th,uz:rh,vi:oh,yo:dh,zhCN:sh,zhTW:uh},Symbol.toStringTag,{value:"Module"}));var wa;const Nu=Symbol("ZodOutput"),xu=Symbol("ZodInput");class ju{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function pi(){return new ju}(wa=globalThis).__zod_globalRegistry??(wa.__zod_globalRegistry=pi());const re=globalThis.__zod_globalRegistry;function Uu(e,t){return new e({type:"string",...y(t)})}function Tu(e,t){return new e({type:"string",coerce:!0,...y(t)})}function gi(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...y(t)})}function mn(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...y(t)})}function hi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...y(t)})}function vi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...y(t)})}function yi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...y(t)})}function $i(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...y(t)})}function zn(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...y(t)})}function bi(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...y(t)})}function _i(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...y(t)})}function ki(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...y(t)})}function wi(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...y(t)})}function Si(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...y(t)})}function Ii(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...y(t)})}function zi(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...y(t)})}function Oi(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...y(t)})}function Ni(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...y(t)})}function Du(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...y(t)})}function xi(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...y(t)})}function ji(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...y(t)})}function Ui(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...y(t)})}function Ti(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...y(t)})}function Di(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...y(t)})}function Ei(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...y(t)})}const Eu={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Pu(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...y(t)})}function Au(e,t){return new e({type:"string",format:"date",check:"string_format",...y(t)})}function Zu(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...y(t)})}function Lu(e,t){return new e({type:"string",format:"duration",check:"string_format",...y(t)})}function Cu(e,t){return new e({type:"number",checks:[],...y(t)})}function Ru(e,t){return new e({type:"number",coerce:!0,checks:[],...y(t)})}function Mu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...y(t)})}function Fu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...y(t)})}function Ju(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...y(t)})}function Ku(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...y(t)})}function Bu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...y(t)})}function Vu(e,t){return new e({type:"boolean",...y(t)})}function qu(e,t){return new e({type:"boolean",coerce:!0,...y(t)})}function Wu(e,t){return new e({type:"bigint",...y(t)})}function Gu(e,t){return new e({type:"bigint",coerce:!0,...y(t)})}function Xu(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...y(t)})}function Yu(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...y(t)})}function Hu(e,t){return new e({type:"symbol",...y(t)})}function Qu(e,t){return new e({type:"undefined",...y(t)})}function el(e,t){return new e({type:"null",...y(t)})}function tl(e){return new e({type:"any"})}function nl(e){return new e({type:"unknown"})}function rl(e,t){return new e({type:"never",...y(t)})}function il(e,t){return new e({type:"void",...y(t)})}function ol(e,t){return new e({type:"date",...y(t)})}function al(e,t){return new e({type:"date",coerce:!0,...y(t)})}function sl(e,t){return new e({type:"nan",...y(t)})}function be(e,t){return new ii({check:"less_than",...y(t),value:e,inclusive:!1})}function ie(e,t){return new ii({check:"less_than",...y(t),value:e,inclusive:!0})}function _e(e,t){return new oi({check:"greater_than",...y(t),value:e,inclusive:!1})}function X(e,t){return new oi({check:"greater_than",...y(t),value:e,inclusive:!0})}function Pi(e){return _e(0,e)}function Ai(e){return be(0,e)}function Zi(e){return ie(0,e)}function Li(e){return X(0,e)}function qe(e,t){return new Bs({check:"multiple_of",...y(t),value:e})}function tt(e,t){return new Ws({check:"max_size",...y(t),maximum:e})}function ke(e,t){return new Gs({check:"min_size",...y(t),minimum:e})}function Tt(e,t){return new Xs({check:"size_equals",...y(t),size:e})}function Dt(e,t){return new Ys({check:"max_length",...y(t),maximum:e})}function je(e,t){return new Hs({check:"min_length",...y(t),minimum:e})}function Et(e,t){return new Qs({check:"length_equals",...y(t),length:e})}function On(e,t){return new ec({check:"string_format",format:"regex",...y(t),pattern:e})}function Nn(e){return new tc({check:"string_format",format:"lowercase",...y(e)})}function xn(e){return new nc({check:"string_format",format:"uppercase",...y(e)})}function jn(e,t){return new rc({check:"string_format",format:"includes",...y(t),includes:e})}function Un(e,t){return new ic({check:"string_format",format:"starts_with",...y(t),prefix:e})}function Tn(e,t){return new oc({check:"string_format",format:"ends_with",...y(t),suffix:e})}function Ci(e,t,r){return new ac({check:"property",property:e,schema:t,...y(r)})}function Dn(e,t){return new sc({check:"mime_type",mime:e,...y(t)})}function he(e){return new cc({check:"overwrite",tx:e})}function En(e){return he(t=>t.normalize(e))}function Pn(){return he(e=>e.trim())}function An(){return he(e=>e.toLowerCase())}function Zn(){return he(e=>e.toUpperCase())}function Ln(){return he(e=>Fa(e))}function cl(e,t,r){return new e({type:"array",element:t,...y(r)})}function fh(e,t,r){return new e({type:"union",options:t,...y(r)})}function mh(e,t,r){return new e({type:"union",options:t,inclusive:!1,...y(r)})}function ph(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...y(i)})}function gh(e,t,r){return new e({type:"intersection",left:t,right:r})}function hh(e,t,r,i){const n=r instanceof j,o=n?i:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...y(o)})}function vh(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...y(i)})}function yh(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...y(i)})}function $h(e,t,r){return new e({type:"set",valueType:t,...y(r)})}function bh(e,t,r){const i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...y(r)})}function _h(e,t,r){return new e({type:"enum",entries:t,...y(r)})}function kh(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...y(r)})}function ul(e,t){return new e({type:"file",...y(t)})}function wh(e,t){return new e({type:"transform",transform:t})}function Sh(e,t){return new e({type:"optional",innerType:t})}function Ih(e,t){return new e({type:"nullable",innerType:t})}function zh(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():kn(r)}})}function Oh(e,t,r){return new e({type:"nonoptional",innerType:t,...y(r)})}function Nh(e,t){return new e({type:"success",innerType:t})}function xh(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function jh(e,t,r){return new e({type:"pipe",in:t,out:r})}function Uh(e,t){return new e({type:"readonly",innerType:t})}function Th(e,t,r){return new e({type:"template_literal",parts:t,...y(r)})}function Dh(e,t){return new e({type:"lazy",getter:t})}function Eh(e,t){return new e({type:"promise",innerType:t})}function ll(e,t,r){const i=y(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function dl(e,t,r){return new e({type:"custom",check:"custom",fn:t,...y(r)})}function fl(e,t){const r=ml(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(Be(n,i.value,r._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(Be(o))}},e(i.value,i)),t);return r}function ml(e,t){const r=new C({check:"custom",...y(t)});return r._zod.check=e,r}function pl(e){const t=new C({check:"describe"});return t._zod.onattach=[r=>{const i=re.get(r)??{};re.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function gl(e){const t=new C({check:"meta"});return t._zod.onattach=[r=>{const i=re.get(r)??{};re.add(r,{...i,...e})}],t._zod.check=()=>{},t}function hl(e,t){const r=y(t);let i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(m=>typeof m=="string"?m.toLowerCase():m),n=n.map(m=>typeof m=="string"?m.toLowerCase():m));const o=new Set(i),a=new Set(n),s=e.Codec??mi,c=e.Boolean??ci,u=e.String??Ut,l=new u({type:"string",error:r.error}),d=new c({type:"boolean",error:r.error}),f=new s({type:"pipe",in:l,out:d,transform:((m,v)=>{let g=m;return r.case!=="sensitive"&&(g=g.toLowerCase()),o.has(g)?!0:a.has(g)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:v.value,inst:f,continue:!1}),{})}),reverseTransform:((m,v)=>m===!0?i[0]||"true":n[0]||"false"),error:r.error});return f}function Pt(e,t,r,i={}){const n=y(i),o={...y(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function We(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??re,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function P(e,t,r={path:[],schemaPath:[]}){var i;const n=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;const a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);const s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{const l={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,l);else{const f=a.schema,m=t.processors[n.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);m(e,t,f,l)}const d=e._zod.parent;d&&(a.ref||(a.ref=d),P(d,t,l),t.seen.get(d).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&q(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Ge(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const a of e.seen.entries()){const s=e.metadataRegistry.get(a[0])?.id;if(s){const c=i.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}const n=a=>{const s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(a[0])?.id,f=e.external.uri??(v=>v);if(d)return{ref:f(d)};const m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${f("__shared")}#/${s}/${m}`}}if(a[1]===r)return{ref:"#"};const u=`#/${s}/`,l=a[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+l}},o=a=>{if(a[1].schema.$ref)return;const s=a[1],{ref:c,defId:u}=n(a);s.def={...s.schema},u&&(s.defId=u);const l=s.schema;for(const d in l)delete l[d];l.$ref=c};if(e.cycles==="throw")for(const a of e.seen.entries()){const s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
63
|
+
`)}m.write("payload.value = newResult;"),m.write("return payload;");const z=m.compile();return(I,_)=>z(f,I,_)};let o;const a=Ke,s=!ht.jitless,u=s&&Ja.value,l=t.catchall;let d;e._zod.parse=(f,m)=>{d??(d=i.value);const v=f.value;return a(v)?s&&u&&m?.async===!1&&m.jitless!==!0?(o||(o=n(t.shape)),f=o(f,m),l?Xc([],v,f,m,d,e):f):r(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),f)}});function sa(e,t,r,i){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const n=e.filter(o=>!Ie(o));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>Y(a,i,B())))}),t)}const zn=p("$ZodUnion",(e,t)=>{j.init(e,t),D(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),D(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),D(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),D(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${i.map(n=>kn(n.source)).join("|")})$`)}});const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1;const a=[];for(const s of t.options){const c=s._zod.run({value:i.value,issues:[]},n);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(s=>sa(s,i,e,n)):sa(a,i,e,n)}});function ca(e,t,r,i){const n=e.filter(o=>o.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>Y(a,i,B())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}const Qc=p("$ZodXor",(e,t)=>{zn.init(e,t),t.inclusive=!1;const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1;const a=[];for(const s of t.options){const c=s._zod.run({value:i.value,issues:[]},n);c instanceof Promise?(a.push(c),o=!0):a.push(c)}return o?Promise.all(a).then(s=>ca(s,i,e,n)):ca(a,i,e,n)}}),eu=p("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,zn.init(e,t);const r=e._zod.parse;D(e._zod,"propValues",()=>{const n={};for(const o of t.options){const a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const[s,c]of Object.entries(a)){n[s]||(n[s]=new Set);for(const u of c)n[s].add(u)}}return n});const i=wt(()=>{const n=t.options,o=new Map;for(const a of n){const s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const c of s){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a)}}return o});e._zod.parse=(n,o)=>{const a=n.value;if(!Ke(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;const s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(n,o):t.unionFallback||o.direction==="backward"?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),tu=p("$ZodIntersection",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value,o=t.left._zod.run({value:n,issues:[]},i),a=t.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,u])=>ua(r,c,u)):ua(r,o,a)}});function jr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xe(e)&&xe(t)){const r=Object.keys(t),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(const o of i){const a=jr(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n[o]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const n=e[i],o=t[i],a=jr(n,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function ua(e,t,r){const i=new Map;let n;for(const s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(const c of s.keys)i.has(c)||i.set(c,{}),i.get(c).l=!0}else e.issues.push(s);for(const s of r.issues)if(s.code==="unrecognized_keys")for(const c of s.keys)i.has(c)||i.set(c,{}),i.get(c).r=!0;else e.issues.push(s);const o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&n&&e.issues.push({...n,keys:o}),Ie(e))return e;const a=jr(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const di=p("$ZodTuple",(e,t)=>{j.init(e,t);const r=t.items;e._zod.parse=(i,n)=>{const o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const a=[],s=la(r,"optin"),c=la(r,"optout");if(!t.rest){if(o.length<s)return i.issues.push({code:"too_small",minimum:s,inclusive:!0,input:o,inst:e,origin:"array"}),i;o.length>r.length&&i.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:o,inst:e,origin:"array"})}const u=new Array(r.length);for(let l=0;l<r.length;l++){const d=r[l]._zod.run({value:o[l],issues:[]},n);d instanceof Promise?a.push(d.then(f=>{u[l]=f})):u[l]=d}if(t.rest){let l=r.length-1;const d=o.slice(r.length);for(const f of d){l++;const m=t.rest._zod.run({value:f,issues:[]},n);m instanceof Promise?a.push(m.then(v=>da(v,i,l))):da(m,i,l)}}return a.length?Promise.all(a).then(()=>fa(u,i,r,o,c)):fa(u,i,r,o,c)}});function la(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function da(e,t,r){e.issues.length&&t.issues.push(...ne(r,e.issues)),t.value[r]=e.value}function fa(e,t,r,i,n){for(let o=0;o<r.length;o++){const a=e[o],s=o<i.length;if(a.issues.length){if(!s&&o>=n){t.value.length=o;break}t.issues.push(...ne(o,a.issues))}t.value[o]=a.value}for(let o=t.value.length-1;o>=i.length&&(r[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}const nu=p("$ZodRecord",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!xe(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;const o=[],a=t.keyType._zod.values;if(a){r.value={};const s=new Set;for(const u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);const l=t.keyType._zod.run({value:u,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(m=>Y(m,i,B())),input:u,path:[u],inst:e});continue}const d=l.value,f=t.valueType._zod.run({value:n[u],issues:[]},i);f instanceof Promise?o.push(f.then(m=>{m.issues.length&&r.issues.push(...ne(u,m.issues)),r.value[d]=m.value})):(f.issues.length&&r.issues.push(...ne(u,f.issues)),r.value[d]=f.value)}let c;for(const u in n)s.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(const s of Reflect.ownKeys(n)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&ri.test(s)&&c.issues.length){const d=t.keyType._zod.run({value:Number(s),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>Y(d,i,B())),input:s,path:[s],inst:e});continue}const l=t.valueType._zod.run({value:n[s],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&r.issues.push(...ne(s,d.issues)),r.value[c.value]=d.value})):(l.issues.length&&r.issues.push(...ne(s,l.issues)),r.value[c.value]=l.value)}}return o.length?Promise.all(o).then(()=>r):r}}),ru=p("$ZodMap",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;const o=[];r.value=new Map;for(const[a,s]of n){const c=t.keyType._zod.run({value:a,issues:[]},i),u=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([l,d])=>{ma(l,d,r,a,n,e,i)})):ma(c,u,r,a,n,e,i)}return o.length?Promise.all(o).then(()=>r):r}});function ma(e,t,r,i,n,o,a){e.issues.length&&(dn.has(typeof i)?r.issues.push(...ne(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>Y(s,a,B()))})),t.issues.length&&(dn.has(typeof i)?r.issues.push(...ne(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(s=>Y(s,a,B()))})),r.value.set(e.value,t.value)}const iu=p("$ZodSet",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;const o=[];r.value=new Set;for(const a of n){const s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>pa(c,r))):pa(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function pa(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const ou=p("$ZodEnum",(e,t)=>{j.init(e,t);const r=Mr(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>dn.has(typeof n)).map(n=>typeof n=="string"?ge(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{const a=n.value;return i.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),au=p("$ZodLiteral",(e,t)=>{if(j.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?ge(i):i?ge(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{const o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),su=p("$ZodFile",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),cu=p("$ZodTransform",(e,t)=>{j.init(e,t),e._zod.optin="optional",e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new _n(e.constructor.name);const n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new Ne;return r.value=n,r.fallback=!0,r}});function ga(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const fi=p("$ZodOptional",(e,t)=>{j.init(e,t),e._zod.optin="optional",e._zod.optout="optional",D(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),D(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${kn(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){const n=r.value,o=t.innerType._zod.run(r,i);return o instanceof Promise?o.then(a=>ga(a,n)):ga(o,n)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),uu=p("$ZodExactOptional",(e,t)=>{fi.init(e,t),D(e._zod,"values",()=>t.innerType._zod.values),D(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),lu=p("$ZodNullable",(e,t)=>{j.init(e,t),D(e._zod,"optin",()=>t.innerType._zod.optin),D(e._zod,"optout",()=>t.innerType._zod.optout),D(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${kn(r.source)}|null)$`):void 0}),D(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),du=p("$ZodDefault",(e,t)=>{j.init(e,t),e._zod.optin="optional",D(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>ha(o,t)):ha(n,t)}});function ha(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const fu=p("$ZodPrefault",(e,t)=>{j.init(e,t),e._zod.optin="optional",D(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),mu=p("$ZodNonOptional",(e,t)=>{j.init(e,t),D(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>va(o,e)):va(n,e)}});function va(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const pu=p("$ZodSuccess",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new _n("ZodSuccess");const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),gu=p("$ZodCatch",(e,t)=>{j.init(e,t),e._zod.optin="optional",D(e._zod,"optout",()=>t.innerType._zod.optout),D(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(a=>Y(a,i,B()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>Y(o,i,B()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),hu=p("$ZodNaN",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),mi=p("$ZodPipe",(e,t)=>{j.init(e,t),D(e._zod,"values",()=>t.in._zod.values),D(e._zod,"optin",()=>t.in._zod.optin),D(e._zod,"optout",()=>t.out._zod.optout),D(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Ht(a,t.in,i)):Ht(o,t.in,i)}const n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>Ht(o,t.out,i)):Ht(n,t.out,i)}});function Ht(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}const pi=p("$ZodCodec",(e,t)=>{j.init(e,t),D(e._zod,"values",()=>t.in._zod.values),D(e._zod,"optin",()=>t.in._zod.optin),D(e._zod,"optout",()=>t.out._zod.optout),D(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){const o=t.in._zod.run(r,i);return o instanceof Promise?o.then(a=>Qt(a,t,i)):Qt(o,t,i)}else{const o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Qt(a,t,i)):Qt(o,t,i)}}});function Qt(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){const n=t.transform(e.value,e);return n instanceof Promise?n.then(o=>en(e,o,t.out,r)):en(e,n,t.out,r)}else{const n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>en(e,o,t.in,r)):en(e,n,t.in,r)}}function en(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}const vu=p("$ZodPreprocess",(e,t)=>{mi.init(e,t)}),yu=p("$ZodReadonly",(e,t)=>{j.init(e,t),D(e._zod,"propValues",()=>t.innerType._zod.propValues),D(e._zod,"values",()=>t.innerType._zod.values),D(e._zod,"optin",()=>t.innerType?._zod?.optin),D(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(ya):ya(n)}});function ya(e){return e.value=Object.freeze(e.value),e}const $u=p("$ZodTemplateLiteral",(e,t)=>{j.init(e,t);const r=[];for(const i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const o=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,a))}else if(i===null||Ka.has(typeof i))r.push(ge(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),bu=p("$ZodFunction",(e,t)=>(j.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){const n=e._def.input?Nr(e._def.input,i):i,o=Reflect.apply(r,this,n);return e._def.output?Nr(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){const n=e._def.input?await xr(e._def.input,i):i,o=await Reflect.apply(r,this,n);return e._def.output?await xr(e._def.output,o):o}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{const i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new di({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{const i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),_u=p("$ZodPromise",(e,t)=>{j.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),ku=p("$ZodLazy",(e,t)=>{j.init(e,t),D(e._zod,"innerType",()=>{const r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),D(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),D(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),D(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),D(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),wu=p("$ZodCustom",(e,t)=>{C.init(e,t),j.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(o=>$a(o,r,i,e));$a(n,r,i,e)}});function $a(e,t,r,i){if(!e){const n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(Be(n))}}const kp=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(n){return e[n]??null}const r={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${n.expected}، ولكن تم إدخال ${s}`:`مدخلات غير مقبولة: يفترض إدخال ${o}، ولكن تم إدخال ${s}`}case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${O(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${o} ${n.maximum.toString()} ${a.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${o} ${n.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:o.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${o.suffix}"`:o.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${o.includes}"`:o.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${r[o.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${$(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function wp(){return{localeError:kp()}}const Sp=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(n){return e[n]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Yanlış dəyər: gözlənilən instanceof ${n.expected}, daxil olan ${s}`:`Yanlış dəyər: gözlənilən ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${O(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${o}${n.maximum.toString()} ${a.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Çox kiçik: gözlənilən ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Yanlış mətn: "${o.prefix}" ilə başlamalıdır`:o.format==="ends_with"?`Yanlış mətn: "${o.suffix}" ilə bitməlidir`:o.format==="includes"?`Yanlış mətn: "${o.includes}" daxil olmalıdır`:o.format==="regex"?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${r[o.format]??n.format}`}case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${n.keys.length>1?"lar":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function Ip(){return{localeError:Sp()}}function ba(e,t,r,i){const n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}const zp=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(n){return e[n]??null}const r={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},i={nan:"NaN",number:"лік",array:"масіў"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Няправільны ўвод: чакаўся instanceof ${n.expected}, атрымана ${s}`:`Няправільны ўвод: чакаўся ${o}, атрымана ${s}`}case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${O(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);if(a){const s=Number(n.maximum),c=ba(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${a.verb} ${o}${n.maximum.toString()} ${c}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);if(a){const s=Number(n.minimum),c=ba(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${a.verb} ${o}${n.minimum.toString()} ${c}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${o.prefix}"`:o.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${o.suffix}"`:o.format==="includes"?`Няправільны радок: павінен змяшчаць "${o.includes}"`:o.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${r[o.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${$(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function Op(){return{localeError:zp()}}const Np=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(n){return e[n]??null}const r={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},i={nan:"NaN",number:"число",array:"масив"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Невалиден вход: очакван instanceof ${n.expected}, получен ${s}`:`Невалиден вход: очакван ${o}, получен ${s}`}case"invalid_value":return n.values.length===1?`Невалиден вход: очакван ${O(n.values[0])}`:`Невалидна опция: очаквано едно от ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Твърде голямо: очаква се ${n.origin??"стойност"} да съдържа ${o}${n.maximum.toString()} ${a.unit??"елемента"}`:`Твърде голямо: очаква се ${n.origin??"стойност"} да бъде ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Твърде малко: очаква се ${n.origin} да съдържа ${o}${n.minimum.toString()} ${a.unit}`:`Твърде малко: очаква се ${n.origin} да бъде ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;if(o.format==="starts_with")return`Невалиден низ: трябва да започва с "${o.prefix}"`;if(o.format==="ends_with")return`Невалиден низ: трябва да завършва с "${o.suffix}"`;if(o.format==="includes")return`Невалиден низ: трябва да включва "${o.includes}"`;if(o.format==="regex")return`Невалиден низ: трябва да съвпада с ${o.pattern}`;let a="Невалиден";return o.format==="emoji"&&(a="Невалидно"),o.format==="datetime"&&(a="Невалидно"),o.format==="date"&&(a="Невалидна"),o.format==="time"&&(a="Невалидно"),o.format==="duration"&&(a="Невалидна"),`${a} ${r[o.format]??n.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${n.divisor}`;case"unrecognized_keys":return`Неразпознат${n.keys.length>1?"и":""} ключ${n.keys.length>1?"ове":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${n.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${n.origin}`;default:return"Невалиден вход"}}};function xp(){return{localeError:Np()}}const jp=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}const r={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus invàlid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus invàlid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${O(n.values[0])}`:`Opció invàlida: s'esperava una de ${$(n.values," o ")}`;case"too_big":{const o=n.inclusive?"com a màxim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${o} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?"com a mínim":"més de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingués ${o} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Format invàlid: ha de començar amb "${o.prefix}"`:o.format==="ends_with"?`Format invàlid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format invàlid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${r[o.format]??n.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${n.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${n.origin}`;default:return"Entrada invàlida"}}};function Up(){return{localeError:jp()}}const Tp=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(n){return e[n]??null}const r={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatný vstup: očekáváno instanceof ${n.expected}, obdrženo ${s}`:`Neplatný vstup: očekáváno ${o}, obdrženo ${s}`}case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${O(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${o}${n.maximum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${o}${n.minimum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Neplatný řetězec: musí začínat na "${o.prefix}"`:o.format==="ends_with"?`Neplatný řetězec: musí končit na "${o.suffix}"`:o.format==="includes"?`Neplatný řetězec: musí obsahovat "${o.includes}"`:o.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${n.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${$(n.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${n.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${n.origin}`;default:return"Neplatný vstup"}}};function Dp(){return{localeError:Tp()}}const Ep=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}const r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig værdi: forventede ${O(n.values[0])}`:`Ugyldigt valg: forventede en af følgende ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche mønsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${$(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${n.origin}`;default:return"Ugyldigt input"}}};function Pp(){return{localeError:Ep()}}const Ap=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}const r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ungültige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ungültige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${O(n.values[0])}`:`Ungültige Option: erwartet eine von ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ungültiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ungültiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ungültiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${$(n.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${n.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${n.origin}`;default:return"Ungültige Eingabe"}}};function Zp(){return{localeError:Ap()}}const Lp=()=>{const e={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function t(n){return e[n]??null}const r={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${n.expected}, λήφθηκε ${s}`:`Μη έγκυρη είσοδος: αναμενόταν ${o}, λήφθηκε ${s}`}case"invalid_value":return n.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${O(n.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Πολύ μεγάλο: αναμενόταν ${n.origin??"τιμή"} να έχει ${o}${n.maximum.toString()} ${a.unit??"στοιχεία"}`:`Πολύ μεγάλο: αναμενόταν ${n.origin??"τιμή"} να είναι ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Πολύ μικρό: αναμενόταν ${n.origin} να έχει ${o}${n.minimum.toString()} ${a.unit}`:`Πολύ μικρό: αναμενόταν ${n.origin} να είναι ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${o.prefix}"`:o.format==="ends_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${o.suffix}"`:o.format==="includes"?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${o.includes}"`:o.format==="regex"?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${o.pattern}`:`Μη έγκυρο: ${r[o.format]??n.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${n.divisor}`;case"unrecognized_keys":return`Άγνωστ${n.keys.length>1?"α":"ο"} κλειδ${n.keys.length>1?"ιά":"ί"}: ${$(n.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${n.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${n.origin}`;default:return"Μη έγκυρη είσοδος"}}};function Cp(){return{localeError:Lp()}}const Rp=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${O(n.values[0])}`:`Invalid option: expected one of ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Su(){return{localeError:Rp()}}const Mp=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}const r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendiĝis instanceof ${n.expected}, riceviĝis ${s}`:`Nevalida enigo: atendiĝis ${o}, riceviĝis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendiĝis ${O(n.values[0])}`:`Nevalida opcio: atendiĝis unu el ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendiĝis ke ${n.origin} havu ${o}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} ŝlosilo${n.keys.length>1?"j":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function Fp(){return{localeError:Mp()}}const Jp=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}const r={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inválida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inválida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inválida: se esperaba ${O(n.values[0])}`:`Opción inválida: se esperaba una de ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado pequeño: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${a.unit}`:`Demasiado pequeño: se esperaba que ${s} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Cadena inválida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inválida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inválida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${o.pattern}`:`Inválido ${r[o.format]??n.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i[n.origin]??n.origin}`;default:return"Entrada inválida"}}};function Kp(){return{localeError:Jp()}}const Bp=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(n){return e[n]??null}const r={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},i={nan:"NaN",number:"عدد",array:"آرایه"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`ورودی نامعتبر: میبایست instanceof ${n.expected} میبود، ${s} دریافت شد`:`ورودی نامعتبر: میبایست ${o} میبود، ${s} دریافت شد`}case"invalid_value":return n.values.length===1?`ورودی نامعتبر: میبایست ${O(n.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${$(n.values,"|")} میبود`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${o}${n.maximum.toString()} ${a.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${o}${n.maximum.toString()} باشد`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`خیلی کوچک: ${n.origin} باید ${o}${n.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${o}${n.minimum.toString()} باشد`}case"invalid_format":{const o=n;return o.format==="starts_with"?`رشته نامعتبر: باید با "${o.prefix}" شروع شود`:o.format==="ends_with"?`رشته نامعتبر: باید با "${o.suffix}" تمام شود`:o.format==="includes"?`رشته نامعتبر: باید شامل "${o.includes}" باشد`:o.format==="regex"?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${r[o.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${$(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function Vp(){return{localeError:Bp()}}const qp=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(n){return e[n]??null}const r={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${O(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${o}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${o}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen syöte: täytyy sisältää "${o.includes}"`:o.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${$(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function Wp(){return{localeError:qp()}}const Gp=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const r={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrée invalide : instanceof ${n.expected} attendu, ${s} reçu`:`Entrée invalide : ${o} attendu, ${s} reçu`}case"invalid_value":return n.values.length===1?`Entrée invalide : ${O(n.values[0])} attendu`:`Option invalide : une valeur parmi ${$(n.values,"|")} attendue`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"élément(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit être ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit être ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${$(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function Xp(){return{localeError:Gp()}}const Yp=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const r={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrée invalide : attendu instanceof ${n.expected}, reçu ${s}`:`Entrée invalide : attendu ${o}, reçu ${s}`}case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${O(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"≤":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?"≥":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${$(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function Hp(){return{localeError:Yp()}}const Qp=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=u=>u?e[u]:void 0,i=u=>{const l=r(u);return l?l.label:u??e.unknown.label},n=u=>`ה${i(u)}`,o=u=>(r(u)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות",a=u=>u?t[u]??null:null,s={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const l=u.expected,d=c[l??""]??i(l),f=N(u.input),m=c[f]??e[f]?.label??f;return/^[A-Z]/.test(u.expected)?`קלט לא תקין: צריך להיות instanceof ${u.expected}, התקבל ${m}`:`קלט לא תקין: צריך להיות ${d}, התקבל ${m}`}case"invalid_value":{if(u.values.length===1)return`ערך לא תקין: הערך חייב להיות ${O(u.values[0])}`;const l=u.values.map(m=>O(m));if(u.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${l[0]} או ${l[1]}`;const d=l[l.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${l.slice(0,-1).join(", ")} או ${d}`}case"too_big":{const l=a(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"ארוך"} מדי: ${d} צריכה להכיל ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"או פחות":"לכל היותר"}`.trim();if(u.origin==="number"){const v=u.inclusive?`קטן או שווה ל-${u.maximum}`:`קטן מ-${u.maximum}`;return`גדול מדי: ${d} צריך להיות ${v}`}if(u.origin==="array"||u.origin==="set"){const v=u.origin==="set"?"צריכה":"צריך",g=u.inclusive?`${u.maximum} ${l?.unit??""} או פחות`:`פחות מ-${u.maximum} ${l?.unit??""}`;return`גדול מדי: ${d} ${v} להכיל ${g}`.trim()}const f=u.inclusive?"<=":"<",m=o(u.origin??"value");return l?.unit?`${l.longLabel} מדי: ${d} ${m} ${f}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"גדול"} מדי: ${d} ${m} ${f}${u.maximum.toString()}`}case"too_small":{const l=a(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"קצר"} מדי: ${d} צריכה להכיל ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"או יותר":"לפחות"}`.trim();if(u.origin==="number"){const v=u.inclusive?`גדול או שווה ל-${u.minimum}`:`גדול מ-${u.minimum}`;return`קטן מדי: ${d} צריך להיות ${v}`}if(u.origin==="array"||u.origin==="set"){const v=u.origin==="set"?"צריכה":"צריך";if(u.minimum===1&&u.inclusive){const h=(u.origin==="set","לפחות פריט אחד");return`קטן מדי: ${d} ${v} להכיל ${h}`}const g=u.inclusive?`${u.minimum} ${l?.unit??""} או יותר`:`יותר מ-${u.minimum} ${l?.unit??""}`;return`קטן מדי: ${d} ${v} להכיל ${g}`.trim()}const f=u.inclusive?">=":">",m=o(u.origin??"value");return l?.unit?`${l.shortLabel} מדי: ${d} ${m} ${f}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"קטן"} מדי: ${d} ${m} ${f}${u.minimum.toString()}`}case"invalid_format":{const l=u;if(l.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${l.prefix}"`;if(l.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${l.suffix}"`;if(l.format==="includes")return`המחרוזת חייבת לכלול "${l.includes}"`;if(l.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${l.pattern}`;const d=s[l.format],f=d?.label??l.format,v=(d?.gender??"m")==="f"?"תקינה":"תקין";return`${f} לא ${v}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${u.divisor}`;case"unrecognized_keys":return`מפתח${u.keys.length>1?"ות":""} לא מזוה${u.keys.length>1?"ים":"ה"}: ${$(u.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n(u.origin??"array")}`;default:return"קלט לא תקין"}}};function eg(){return{localeError:Qp()}}const tg=()=>{const e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}const r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: očekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: očekuje se ${o}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: očekivano ${O(n.values[0])}`:`Neispravna opcija: očekivano jedno od ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Preveliko: očekivano da ${s??"vrijednost"} ima ${o}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: očekivano da ${s??"vrijednost"} bude ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Premalo: očekivano da ${s} ima ${o}${n.minimum.toString()} ${a.unit}`:`Premalo: očekivano da ${s} bude ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Neispravan tekst: mora započinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora završavati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadržavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i ključevi":" ključ"}: ${$(n.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function ng(){return{localeError:tg()}}const rg=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}const r={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"szám",array:"tömb"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Érvénytelen bemenet: a várt érték instanceof ${n.expected}, a kapott érték ${s}`:`Érvénytelen bemenet: a várt érték ${o}, a kapott érték ${s}`}case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${O(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${o}${n.maximum.toString()} ${a.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${o}${n.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Érvénytelen string: "${o.prefix}" értékkel kell kezdődnie`:o.format==="ends_with"?`Érvénytelen string: "${o.suffix}" értékkel kell végződnie`:o.format==="includes"?`Érvénytelen string: "${o.includes}" értéket kell tartalmaznia`:o.format==="regex"?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${r[o.format]??n.format}`}case"not_multiple_of":return`Érvénytelen szám: ${n.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${n.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${n.origin}`;default:return"Érvénytelen bemenet"}}};function ig(){return{localeError:rg()}}function _a(e,t,r){return Math.abs(e)===1?t:r}function Ae(e){if(!e)return"";const t=["ա","ե","ը","ի","ո","ու","օ"],r=e[e.length-1];return e+(t.includes(r)?"ն":"ը")}const og=()=>{const e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function t(n){return e[n]??null}const r={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},i={nan:"NaN",number:"թիվ",array:"զանգված"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${n.expected}, ստացվել է ${s}`:`Սխալ մուտքագրում․ սպասվում էր ${o}, ստացվել է ${s}`}case"invalid_value":return n.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${O(n.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);if(a){const s=Number(n.maximum),c=_a(s,a.unit.one,a.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Ae(n.origin??"արժեք")} կունենա ${o}${n.maximum.toString()} ${c}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Ae(n.origin??"արժեք")} լինի ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);if(a){const s=Number(n.minimum),c=_a(s,a.unit.one,a.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Ae(n.origin)} կունենա ${o}${n.minimum.toString()} ${c}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Ae(n.origin)} լինի ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${o.prefix}"-ով`:o.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${o.suffix}"-ով`:o.format==="includes"?`Սխալ տող․ պետք է պարունակի "${o.includes}"`:o.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${o.pattern} ձևաչափին`:`Սխալ ${r[o.format]??n.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${n.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${n.keys.length>1?"ներ":""}. ${$(n.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${Ae(n.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${Ae(n.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function ag(){return{localeError:og()}}const sg=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}const r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${O(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function cg(){return{localeError:sg()}}const ug=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(n){return e[n]??null}const r={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"númer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: Þú slóst inn ${s} þar sem á að vera instanceof ${n.expected}`:`Rangt gildi: Þú slóst inn ${s} þar sem á að vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert ráð fyrir ${O(n.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of stórt: gert er ráð fyrir að ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${n.origin??"gildi"} sé ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Of lítið: gert er ráð fyrir að ${n.origin} hafi ${o}${n.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${n.origin} sé ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ógildur strengur: verður að byrja á "${o.prefix}"`:o.format==="ends_with"?`Ógildur strengur: verður að enda á "${o.suffix}"`:o.format==="includes"?`Ógildur strengur: verður að innihalda "${o.includes}"`:o.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??n.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`Óþekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${$(n.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${n.origin}`;default:return"Rangt gildi"}}};function lg(){return{localeError:ug()}}const dg=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}const r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${O(n.values[0])}`:`Opzione non valida: atteso uno tra ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${r[o.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${$(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function fg(){return{localeError:dg()}}const mg=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(n){return e[n]??null}const r={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},i={nan:"NaN",number:"数値",array:"配列"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`無効な入力: instanceof ${n.expected}が期待されましたが、${s}が入力されました`:`無効な入力: ${o}が期待されましたが、${s}が入力されました`}case"invalid_value":return n.values.length===1?`無効な入力: ${O(n.values[0])}が期待されました`:`無効な選択: ${$(n.values,"、")}のいずれかである必要があります`;case"too_big":{const o=n.inclusive?"以下である":"より小さい",a=t(n.origin);return a?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${a.unit??"要素"}${o}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${o}必要があります`}case"too_small":{const o=n.inclusive?"以上である":"より大きい",a=t(n.origin);return a?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${a.unit}${o}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${o}必要があります`}case"invalid_format":{const o=n;return o.format==="starts_with"?`無効な文字列: "${o.prefix}"で始まる必要があります`:o.format==="ends_with"?`無効な文字列: "${o.suffix}"で終わる必要があります`:o.format==="includes"?`無効な文字列: "${o.includes}"を含む必要があります`:o.format==="regex"?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${r[o.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${$(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function pg(){return{localeError:mg()}}const gg=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(n){return e[n]??null}const r={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},i={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${n.expected}, მიღებული ${s}`:`არასწორი შეყვანა: მოსალოდნელი ${o}, მიღებული ${s}`}case"invalid_value":return n.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${O(n.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${$(n.values,"|")}-დან`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} იყოს ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${n.origin} იყოს ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`არასწორი ველი: უნდა იწყებოდეს "${o.prefix}"-ით`:o.format==="ends_with"?`არასწორი ველი: უნდა მთავრდებოდეს "${o.suffix}"-ით`:o.format==="includes"?`არასწორი ველი: უნდა შეიცავდეს "${o.includes}"-ს`:o.format==="regex"?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${o.pattern}`:`არასწორი ${r[o.format]??n.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${n.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${n.keys.length>1?"ები":"ი"}: ${$(n.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${n.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${n.origin}-ში`;default:return"არასწორი შეყვანა"}}};function hg(){return{localeError:gg()}}const vg=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(n){return e[n]??null}const r={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},i={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${n.expected} ប៉ុន្តែទទួលបាន ${s}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${o} ប៉ុន្តែទទួលបាន ${s}`}case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${O(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${o} ${n.maximum.toString()} ${a.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`តូចពេក៖ ត្រូវការ ${n.origin} ${o} ${n.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${o.prefix}"`:o.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${o.suffix}"`:o.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${o.includes}"`:o.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${r[o.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${$(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function Iu(){return{localeError:vg()}}function yg(){return Iu()}const $g=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(n){return e[n]??null}const r={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`잘못된 입력: 예상 타입은 instanceof ${n.expected}, 받은 타입은 ${s}입니다`:`잘못된 입력: 예상 타입은 ${o}, 받은 타입은 ${s}입니다`}case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${O(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${$(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const o=n.inclusive?"이하":"미만",a=o==="미만"?"이어야 합니다":"여야 합니다",s=t(n.origin),c=s?.unit??"요소";return s?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${c} ${o}${a}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${o}${a}`}case"too_small":{const o=n.inclusive?"이상":"초과",a=o==="이상"?"이어야 합니다":"여야 합니다",s=t(n.origin),c=s?.unit??"요소";return s?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${c} ${o}${a}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${o}${a}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`잘못된 문자열: "${o.prefix}"(으)로 시작해야 합니다`:o.format==="ends_with"?`잘못된 문자열: "${o.suffix}"(으)로 끝나야 합니다`:o.format==="includes"?`잘못된 문자열: "${o.includes}"을(를) 포함해야 합니다`:o.format==="regex"?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${r[o.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${$(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function bg(){return{localeError:$g()}}const ut=e=>e.charAt(0).toUpperCase()+e.slice(1);function ka(e){const t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}const _g=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(n,o,a,s){const c=e[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][a?"inclusive":"notInclusive"]}}const r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},i={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tikėtasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tikėtasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo būti ${O(n.values[0])}`:`Privalo būti vienas iš ${$(n.values,"|")} pasirinkimų`;case"too_big":{const o=i[n.origin]??n.origin,a=t(n.origin,ka(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${ut(o??n.origin??"reikšmė")} ${a.verb} ${n.maximum.toString()} ${a.unit??"elementų"}`;const s=n.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${ut(o??n.origin??"reikšmė")} turi būti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{const o=i[n.origin]??n.origin,a=t(n.origin,ka(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${ut(o??n.origin??"reikšmė")} ${a.verb} ${n.minimum.toString()} ${a.unit??"elementų"}`;const s=n.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${ut(o??n.origin??"reikšmė")} turi būti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Eilutė privalo prasidėti "${o.prefix}"`:o.format==="ends_with"?`Eilutė privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilutė privalo įtraukti "${o.includes}"`:o.format==="regex"?`Eilutė privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??n.format}`}case"not_multiple_of":return`Skaičius privalo būti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${$(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const o=i[n.origin]??n.origin;return`${ut(o??n.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function kg(){return{localeError:_g()}}const wg=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(n){return e[n]??null}const r={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},i={nan:"NaN",number:"број",array:"низа"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Грешен внес: се очекува instanceof ${n.expected}, примено ${s}`:`Грешен внес: се очекува ${o}, примено ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${O(n.values[0])}`:`Грешана опција: се очекува една ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${o}${n.maximum.toString()} ${a.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Премногу мал: се очекува ${n.origin} да има ${o}${n.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Неважечка низа: мора да започнува со "${o.prefix}"`:o.format==="ends_with"?`Неважечка низа: мора да завршува со "${o.suffix}"`:o.format==="includes"?`Неважечка низа: мора да вклучува "${o.includes}"`:o.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${$(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function Sg(){return{localeError:wg()}}const Ig=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}const r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${O(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${$(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function zg(){return{localeError:Ig()}}const Og=()=>{const e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}const r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${O(n.values[0])}`:`Ongeldige optie: verwacht één van ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function Ng(){return{localeError:Og()}}const xg=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(n){return e[n]??null}const r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${O(n.values[0])}`:`Ugyldig valg: forventet en av ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til å ha ${o}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til å ha ${o}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til å ha ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ugyldig streng: må starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: må ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: må inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${$(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function jg(){return{localeError:xg()}}const Ug=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(n){return e[n]??null}const r={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Fâsit giren: umulan instanceof ${n.expected}, alınan ${s}`:`Fâsit giren: umulan ${o}, alınan ${s}`}case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${O(n.values[0])}`:`Fâsit tercih: mûteberler ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla büyük: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${a.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmalıydı.`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla küçük: ${n.origin}, ${o}${n.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${o}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Fâsit metin: "${o.prefix}" ile başlamalı.`:o.format==="ends_with"?`Fâsit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`Fâsit metin: "${o.includes}" ihtivâ etmeli.`:o.format==="regex"?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${r[o.format]??n.format}`}case"not_multiple_of":return`Fâsit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function Tg(){return{localeError:Ug()}}const Dg=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(n){return e[n]??null}const r={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},i={nan:"NaN",number:"عدد",array:"ارې"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`ناسم ورودي: باید instanceof ${n.expected} وای, مګر ${s} ترلاسه شو`:`ناسم ورودي: باید ${o} وای, مګر ${s} ترلاسه شو`}case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${O(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${$(n.values,"|")} څخه وای`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`ډیر لوی: ${n.origin??"ارزښت"} باید ${o}${n.maximum.toString()} ${a.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${o}${n.maximum.toString()} وي`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`ډیر کوچنی: ${n.origin} باید ${o}${n.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${o}${n.minimum.toString()} وي`}case"invalid_format":{const o=n;return o.format==="starts_with"?`ناسم متن: باید د "${o.prefix}" سره پیل شي`:o.format==="ends_with"?`ناسم متن: باید د "${o.suffix}" سره پای ته ورسيږي`:o.format==="includes"?`ناسم متن: باید "${o.includes}" ولري`:o.format==="regex"?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${r[o.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${$(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function Eg(){return{localeError:Dg()}}const Pg=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(n){return e[n]??null}const r={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawidłowe dane wejściowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${O(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${o}${n.maximum.toString()} ${a.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${o}${n.minimum.toString()} ${a.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${o.prefix}"`:o.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${o.suffix}"`:o.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${o.includes}"`:o.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${r[o.format]??n.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function Ag(){return{localeError:Pg()}}const Zg=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}const r={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"número",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inválido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inválido: esperado ${o}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${O(n.values[0])}`:`Opção inválida: esperada uma das ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Texto inválido: deve começar com "${o.prefix}"`:o.format==="ends_with"?`Texto inválido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inválido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${r[o.format]??n.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Chave inválida em ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${n.origin}`;default:return"Campo inválido"}}};function Lg(){return{localeError:Zg()}}const Cg=()=>{const e={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function t(n){return e[n]??null}const r={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return`Intrare invalidă: așteptat ${o}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalidă: așteptat ${O(n.values[0])}`:`Opțiune invalidă: așteptat una dintre ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: așteptat ca ${n.origin??"valoarea"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: așteptat ca ${n.origin??"valoarea"} să fie ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: așteptat ca ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Prea mic: așteptat ca ${n.origin} să fie ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Șir invalid: trebuie să înceapă cu "${o.prefix}"`:o.format==="ends_with"?`Șir invalid: trebuie să se termine cu "${o.suffix}"`:o.format==="includes"?`Șir invalid: trebuie să includă "${o.includes}"`:o.format==="regex"?`Șir invalid: trebuie să se potrivească cu modelul ${o.pattern}`:`Format invalid: ${r[o.format]??n.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${$(n.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${n.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${n.origin}`;default:return"Intrare invalidă"}}};function Rg(){return{localeError:Cg()}}function wa(e,t,r,i){const n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}const Mg=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(n){return e[n]??null}const r={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},i={nan:"NaN",number:"число",array:"массив"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Неверный ввод: ожидалось instanceof ${n.expected}, получено ${s}`:`Неверный ввод: ожидалось ${o}, получено ${s}`}case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${O(n.values[0])}`:`Неверный вариант: ожидалось одно из ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);if(a){const s=Number(n.maximum),c=wa(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${o}${n.maximum.toString()} ${c}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);if(a){const s=Number(n.minimum),c=wa(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${o}${n.minimum.toString()} ${c}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Неверная строка: должна начинаться с "${o.prefix}"`:o.format==="ends_with"?`Неверная строка: должна заканчиваться на "${o.suffix}"`:o.format==="includes"?`Неверная строка: должна содержать "${o.includes}"`:o.format==="regex"?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${r[o.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function Fg(){return{localeError:Mg()}}const Jg=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}const r={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"število",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pričakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pričakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${O(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pričakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Neveljaven niz: mora se začeti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se končati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??n.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${$(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function Kg(){return{localeError:Jg()}}const Bg=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(n){return e[n]??null}const r={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: förväntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: förväntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${O(n.values[0])}`:`Ogiltigt val: förväntade en av ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${o}${n.maximum.toString()} ${a.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${o}${n.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ogiltig sträng: måste börja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig sträng: måste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig sträng: måste innehålla "${o.includes}"`:o.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${$(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${n.origin??"värdet"}`;default:return"Ogiltig input"}}};function Vg(){return{localeError:Bg()}}const qg=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(n){return e[n]??null}const r={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${n.expected}, பெறப்பட்டது ${s}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${o}, பெறப்பட்டது ${s}`}case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${O(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${$(n.values,"|")} இல் ஒன்று`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${o}${n.maximum.toString()} ${a.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${o}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${o}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const o=n;return o.format==="starts_with"?`தவறான சரம்: "${o.prefix}" இல் தொடங்க வேண்டும்`:o.format==="ends_with"?`தவறான சரம்: "${o.suffix}" இல் முடிவடைய வேண்டும்`:o.format==="includes"?`தவறான சரம்: "${o.includes}" ஐ உள்ளடக்க வேண்டும்`:o.format==="regex"?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${r[o.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Wg(){return{localeError:qg()}}const Gg=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(n){return e[n]??null}const r={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},i={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${n.expected} แต่ได้รับ ${s}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${o} แต่ได้รับ ${s}`}case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${O(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"ไม่เกิน":"น้อยกว่า",a=t(n.origin);return a?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${o} ${n.maximum.toString()} ${a.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?"อย่างน้อย":"มากกว่า",a=t(n.origin);return a?`น้อยกว่ากำหนด: ${n.origin} ควรมี${o} ${n.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${o.prefix}"`:o.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${o.suffix}"`:o.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${o.includes}" อยู่ในข้อความ`:o.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${r[o.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${$(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function Xg(){return{localeError:Gg()}}const Yg=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(n){return e[n]??null}const r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Geçersiz değer: beklenen instanceof ${n.expected}, alınan ${s}`:`Geçersiz değer: beklenen ${o}, alınan ${s}`}case"invalid_value":return n.values.length===1?`Geçersiz değer: beklenen ${O(n.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Çok büyük: beklenen ${n.origin??"değer"} ${o}${n.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${n.origin??"değer"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Çok küçük: beklenen ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Geçersiz metin: "${o.prefix}" ile başlamalı`:o.format==="ends_with"?`Geçersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Geçersiz metin: "${o.includes}" içermeli`:o.format==="regex"?`Geçersiz metin: ${o.pattern} desenine uymalı`:`Geçersiz ${r[o.format]??n.format}`}case"not_multiple_of":return`Geçersiz sayı: ${n.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${n.keys.length>1?"lar":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${n.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Hg(){return{localeError:Yg()}}const Qg=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(n){return e[n]??null}const r={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},i={nan:"NaN",number:"число",array:"масив"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Неправильні вхідні дані: очікується instanceof ${n.expected}, отримано ${s}`:`Неправильні вхідні дані: очікується ${o}, отримано ${s}`}case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${O(n.values[0])}`:`Неправильна опція: очікується одне з ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Занадто велике: очікується, що ${n.origin??"значення"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Занадто мале: очікується, що ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Неправильний рядок: повинен починатися з "${o.prefix}"`:o.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${o.suffix}"`:o.format==="includes"?`Неправильний рядок: повинен містити "${o.includes}"`:o.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${r[o.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function zu(){return{localeError:Qg()}}function eh(){return zu()}const th=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(n){return e[n]??null}const r={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},i={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`غلط ان پٹ: instanceof ${n.expected} متوقع تھا، ${s} موصول ہوا`:`غلط ان پٹ: ${o} متوقع تھا، ${s} موصول ہوا`}case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${O(n.values[0])} متوقع تھا`:`غلط آپشن: ${$(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`بہت بڑا: ${n.origin??"ویلیو"} کے ${o}${n.maximum.toString()} ${a.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${o}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`بہت چھوٹا: ${n.origin} کے ${o}${n.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${o}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const o=n;return o.format==="starts_with"?`غلط سٹرنگ: "${o.prefix}" سے شروع ہونا چاہیے`:o.format==="ends_with"?`غلط سٹرنگ: "${o.suffix}" پر ختم ہونا چاہیے`:o.format==="includes"?`غلط سٹرنگ: "${o.includes}" شامل ہونا چاہیے`:o.format==="regex"?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${r[o.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${$(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function nh(){return{localeError:th()}}const rh=()=>{const e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function t(n){return e[n]??null}const r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto‘g‘ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto‘g‘ri kirish: kutilgan ${O(n.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Noto‘g‘ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto‘g‘ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto‘g‘ri satr: "${o.includes}" ni o‘z ichiga olishi kerak`:o.format==="regex"?`Noto‘g‘ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${r[o.format]??n.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${n.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${n.keys.length>1?"lar":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${n.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function ih(){return{localeError:rh()}}const oh=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(n){return e[n]??null}const r={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},i={nan:"NaN",number:"số",array:"mảng"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${n.expected}, nhận được ${s}`:`Đầu vào không hợp lệ: mong đợi ${o}, nhận được ${s}`}case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${O(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Quá nhỏ: mong đợi ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${o.prefix}"`:o.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${o.suffix}"`:o.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${o.includes}"`:o.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${r[o.format]??n.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${n.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${$(n.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${n.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${n.origin}`;default:return"Đầu vào không hợp lệ"}}};function ah(){return{localeError:oh()}}const sh=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(n){return e[n]??null}const r={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},i={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`无效输入:期望 instanceof ${n.expected},实际接收 ${s}`:`无效输入:期望 ${o},实际接收 ${s}`}case"invalid_value":return n.values.length===1?`无效输入:期望 ${O(n.values[0])}`:`无效选项:期望以下之一 ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`数值过大:期望 ${n.origin??"值"} ${o}${n.maximum.toString()} ${a.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`数值过小:期望 ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`数值过小:期望 ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`无效字符串:必须以 "${o.prefix}" 开头`:o.format==="ends_with"?`无效字符串:必须以 "${o.suffix}" 结尾`:o.format==="includes"?`无效字符串:必须包含 "${o.includes}"`:o.format==="regex"?`无效字符串:必须满足正则表达式 ${o.pattern}`:`无效${r[o.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function ch(){return{localeError:sh()}}const uh=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(n){return e[n]??null}const r={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`無效的輸入值:預期為 instanceof ${n.expected},但收到 ${s}`:`無效的輸入值:預期為 ${o},但收到 ${s}`}case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${O(n.values[0])}`:`無效的選項:預期為以下其中之一 ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`數值過大:預期 ${n.origin??"值"} 應為 ${o}${n.maximum.toString()} ${a.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`數值過小:預期 ${n.origin} 應為 ${o}${n.minimum.toString()} ${a.unit}`:`數值過小:預期 ${n.origin} 應為 ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`無效的字串:必須以 "${o.prefix}" 開頭`:o.format==="ends_with"?`無效的字串:必須以 "${o.suffix}" 結尾`:o.format==="includes"?`無效的字串:必須包含 "${o.includes}"`:o.format==="regex"?`無效的字串:必須符合格式 ${o.pattern}`:`無效的 ${r[o.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${$(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function lh(){return{localeError:uh()}}const dh=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(n){return e[n]??null}const r={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},i={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return n=>{switch(n.code){case"invalid_type":{const o=i[n.expected]??n.expected,a=N(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${n.expected}, àmọ̀ a rí ${s}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${o}, àmọ̀ a rí ${s}`}case"invalid_value":return n.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${O(n.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${$(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tó pọ̀ jù: a ní láti jẹ́ pé ${n.origin??"iye"} ${a.verb} ${o}${n.maximum} ${a.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${o}${n.maximum}`}case"too_small":{const o=n.inclusive?">=":">",a=t(n.origin);return a?`Kéré ju: a ní láti jẹ́ pé ${n.origin} ${a.verb} ${o}${n.minimum} ${a.unit}`:`Kéré ju: a ní láti jẹ́ ${o}${n.minimum}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${o.prefix}"`:o.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${o.suffix}"`:o.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${o.includes}"`:o.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${o.pattern}`:`Aṣìṣe: ${r[o.format]??n.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${n.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${$(n.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${n.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${n.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function fh(){return{localeError:dh()}}const Ou=Object.freeze(Object.defineProperty({__proto__:null,ar:wp,az:Ip,be:Op,bg:xp,ca:Up,cs:Dp,da:Pp,de:Zp,el:Cp,en:Su,eo:Fp,es:Kp,fa:Vp,fi:Wp,fr:Xp,frCA:Hp,he:eg,hr:ng,hu:ig,hy:ag,id:cg,is:lg,it:fg,ja:pg,ka:hg,kh:yg,km:Iu,ko:bg,lt:kg,mk:Sg,ms:zg,nl:Ng,no:jg,ota:Tg,pl:Ag,ps:Eg,pt:Lg,ro:Rg,ru:Fg,sl:Kg,sv:Vg,ta:Wg,th:Xg,tr:Hg,ua:eh,uk:zu,ur:nh,uz:ih,vi:ah,yo:fh,zhCN:ch,zhTW:lh},Symbol.toStringTag,{value:"Module"}));var Sa;const Nu=Symbol("ZodOutput"),xu=Symbol("ZodInput");class ju{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function gi(){return new ju}(Sa=globalThis).__zod_globalRegistry??(Sa.__zod_globalRegistry=gi());const re=globalThis.__zod_globalRegistry;function Uu(e,t){return new e({type:"string",...y(t)})}function Tu(e,t){return new e({type:"string",coerce:!0,...y(t)})}function hi(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...y(t)})}function mn(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...y(t)})}function vi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...y(t)})}function yi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...y(t)})}function $i(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...y(t)})}function bi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...y(t)})}function On(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...y(t)})}function _i(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...y(t)})}function ki(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...y(t)})}function wi(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...y(t)})}function Si(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...y(t)})}function Ii(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...y(t)})}function zi(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...y(t)})}function Oi(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...y(t)})}function Ni(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...y(t)})}function xi(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...y(t)})}function Du(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...y(t)})}function ji(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...y(t)})}function Ui(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...y(t)})}function Ti(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...y(t)})}function Di(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...y(t)})}function Ei(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...y(t)})}function Pi(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...y(t)})}const Eu={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Pu(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...y(t)})}function Au(e,t){return new e({type:"string",format:"date",check:"string_format",...y(t)})}function Zu(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...y(t)})}function Lu(e,t){return new e({type:"string",format:"duration",check:"string_format",...y(t)})}function Cu(e,t){return new e({type:"number",checks:[],...y(t)})}function Ru(e,t){return new e({type:"number",coerce:!0,checks:[],...y(t)})}function Mu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...y(t)})}function Fu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...y(t)})}function Ju(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...y(t)})}function Ku(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...y(t)})}function Bu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...y(t)})}function Vu(e,t){return new e({type:"boolean",...y(t)})}function qu(e,t){return new e({type:"boolean",coerce:!0,...y(t)})}function Wu(e,t){return new e({type:"bigint",...y(t)})}function Gu(e,t){return new e({type:"bigint",coerce:!0,...y(t)})}function Xu(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...y(t)})}function Yu(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...y(t)})}function Hu(e,t){return new e({type:"symbol",...y(t)})}function Qu(e,t){return new e({type:"undefined",...y(t)})}function el(e,t){return new e({type:"null",...y(t)})}function tl(e){return new e({type:"any"})}function nl(e){return new e({type:"unknown"})}function rl(e,t){return new e({type:"never",...y(t)})}function il(e,t){return new e({type:"void",...y(t)})}function ol(e,t){return new e({type:"date",...y(t)})}function al(e,t){return new e({type:"date",coerce:!0,...y(t)})}function sl(e,t){return new e({type:"nan",...y(t)})}function be(e,t){return new oi({check:"less_than",...y(t),value:e,inclusive:!1})}function ie(e,t){return new oi({check:"less_than",...y(t),value:e,inclusive:!0})}function _e(e,t){return new ai({check:"greater_than",...y(t),value:e,inclusive:!1})}function X(e,t){return new ai({check:"greater_than",...y(t),value:e,inclusive:!0})}function Ai(e){return _e(0,e)}function Zi(e){return be(0,e)}function Li(e){return ie(0,e)}function Ci(e){return X(0,e)}function qe(e,t){return new Bs({check:"multiple_of",...y(t),value:e})}function nt(e,t){return new Ws({check:"max_size",...y(t),maximum:e})}function ke(e,t){return new Gs({check:"min_size",...y(t),minimum:e})}function Tt(e,t){return new Xs({check:"size_equals",...y(t),size:e})}function Dt(e,t){return new Ys({check:"max_length",...y(t),maximum:e})}function je(e,t){return new Hs({check:"min_length",...y(t),minimum:e})}function Et(e,t){return new Qs({check:"length_equals",...y(t),length:e})}function Nn(e,t){return new ec({check:"string_format",format:"regex",...y(t),pattern:e})}function xn(e){return new tc({check:"string_format",format:"lowercase",...y(e)})}function jn(e){return new nc({check:"string_format",format:"uppercase",...y(e)})}function Un(e,t){return new rc({check:"string_format",format:"includes",...y(t),includes:e})}function Tn(e,t){return new ic({check:"string_format",format:"starts_with",...y(t),prefix:e})}function Dn(e,t){return new oc({check:"string_format",format:"ends_with",...y(t),suffix:e})}function Ri(e,t,r){return new ac({check:"property",property:e,schema:t,...y(r)})}function En(e,t){return new sc({check:"mime_type",mime:e,...y(t)})}function he(e){return new cc({check:"overwrite",tx:e})}function Pn(e){return he(t=>t.normalize(e))}function An(){return he(e=>e.trim())}function Zn(){return he(e=>e.toLowerCase())}function Ln(){return he(e=>e.toUpperCase())}function Cn(){return he(e=>Fa(e))}function cl(e,t,r){return new e({type:"array",element:t,...y(r)})}function mh(e,t,r){return new e({type:"union",options:t,...y(r)})}function ph(e,t,r){return new e({type:"union",options:t,inclusive:!1,...y(r)})}function gh(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...y(i)})}function hh(e,t,r){return new e({type:"intersection",left:t,right:r})}function vh(e,t,r,i){const n=r instanceof j,o=n?i:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...y(o)})}function yh(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...y(i)})}function $h(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...y(i)})}function bh(e,t,r){return new e({type:"set",valueType:t,...y(r)})}function _h(e,t,r){const i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...y(r)})}function kh(e,t,r){return new e({type:"enum",entries:t,...y(r)})}function wh(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...y(r)})}function ul(e,t){return new e({type:"file",...y(t)})}function Sh(e,t){return new e({type:"transform",transform:t})}function Ih(e,t){return new e({type:"optional",innerType:t})}function zh(e,t){return new e({type:"nullable",innerType:t})}function Oh(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():wn(r)}})}function Nh(e,t,r){return new e({type:"nonoptional",innerType:t,...y(r)})}function xh(e,t){return new e({type:"success",innerType:t})}function jh(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function Uh(e,t,r){return new e({type:"pipe",in:t,out:r})}function Th(e,t){return new e({type:"readonly",innerType:t})}function Dh(e,t,r){return new e({type:"template_literal",parts:t,...y(r)})}function Eh(e,t){return new e({type:"lazy",getter:t})}function Ph(e,t){return new e({type:"promise",innerType:t})}function ll(e,t,r){const i=y(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function dl(e,t,r){return new e({type:"custom",check:"custom",fn:t,...y(r)})}function fl(e,t){const r=ml(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(Be(n,i.value,r._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(Be(o))}},e(i.value,i)),t);return r}function ml(e,t){const r=new C({check:"custom",...y(t)});return r._zod.check=e,r}function pl(e){const t=new C({check:"describe"});return t._zod.onattach=[r=>{const i=re.get(r)??{};re.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function gl(e){const t=new C({check:"meta"});return t._zod.onattach=[r=>{const i=re.get(r)??{};re.add(r,{...i,...e})}],t._zod.check=()=>{},t}function hl(e,t){const r=y(t);let i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(m=>typeof m=="string"?m.toLowerCase():m),n=n.map(m=>typeof m=="string"?m.toLowerCase():m));const o=new Set(i),a=new Set(n),s=e.Codec??pi,c=e.Boolean??ui,u=e.String??Ut,l=new u({type:"string",error:r.error}),d=new c({type:"boolean",error:r.error}),f=new s({type:"pipe",in:l,out:d,transform:((m,v)=>{let g=m;return r.case!=="sensitive"&&(g=g.toLowerCase()),o.has(g)?!0:a.has(g)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:v.value,inst:f,continue:!1}),{})}),reverseTransform:((m,v)=>m===!0?i[0]||"true":n[0]||"false"),error:r.error});return f}function Pt(e,t,r,i={}){const n=y(i),o={...y(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function We(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??re,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function P(e,t,r={path:[],schemaPath:[]}){var i;const n=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;const a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);const s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{const l={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,l);else{const f=a.schema,m=t.processors[n.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);m(e,t,f,l)}const d=e._zod.parent;d&&(a.ref||(a.ref=d),P(d,t,l),t.seen.get(d).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&q(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Ge(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const a of e.seen.entries()){const s=e.metadataRegistry.get(a[0])?.id;if(s){const c=i.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}const n=a=>{const s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(a[0])?.id,f=e.external.uri??(v=>v);if(d)return{ref:f(d)};const m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${f("__shared")}#/${s}/${m}`}}if(a[1]===r)return{ref:"#"};const u=`#/${s}/`,l=a[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+l}},o=a=>{if(a[1].schema.$ref)return;const s=a[1],{ref:c,defId:u}=n(a);s.def={...s.schema},u&&(s.defId=u);const l=s.schema;for(const d in l)delete l[d];l.$ref=c};if(e.cycles==="throw")for(const a of e.seen.entries()){const s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
64
64
|
|
|
65
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const s=a[1];if(t===a[0]){o(a);continue}if(e.external){const u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function Xe(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=s=>{const c=e.seen.get(s);if(c.ref===null)return;const u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){i(d);const m=e.seen.get(d),v=m.schema;if(v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(v)):Object.assign(u,v),Object.assign(u,l),s._zod.parent===d)for(const h in u)h==="$ref"||h==="allOf"||h in l||delete u[h];if(v.$ref&&m.def)for(const h in u)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(u[h])===JSON.stringify(m.def[h])&&delete u[h]}const f=s._zod.parent;if(f&&f!==d){i(f);const m=e.seen.get(f);if(m?.schema.$ref&&(u.$ref=m.schema.$ref,m.def))for(const v in u)v==="$ref"||v==="allOf"||v in m.def&&JSON.stringify(u[v])===JSON.stringify(m.def[v])&&delete u[v]}e.override({zodSchema:s,jsonSchema:u,path:c.path??[]})};for(const s of[...e.seen.entries()].reverse())i(s[0]);const n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Object.assign(n,r.def??r.schema);const o=e.metadataRegistry.get(t)?.id;o!==void 0&&n.id===o&&delete n.id;const a=e.external?.defs??{};for(const s of e.seen.entries()){const c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{const s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:ht(t,"input",e.processors),output:ht(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function q(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return q(i.element,r);if(i.type==="set")return q(i.valueType,r);if(i.type==="lazy")return q(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return q(i.innerType,r);if(i.type==="intersection")return q(i.left,r)||q(i.right,r);if(i.type==="record"||i.type==="map")return q(i.keyType,r)||q(i.valueType,r);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:q(i.in,r)||q(i.out,r);if(i.type==="object"){for(const n in i.shape)if(q(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(const n of i.options)if(q(n,r))return!0;return!1}if(i.type==="tuple"){for(const n of i.items)if(q(n,r))return!0;return!!(i.rest&&q(i.rest,r))}return!1}const vl=(e,t={})=>r=>{const i=We({...r,processors:t});return P(e,i),Ge(i,e),Xe(i,e)},ht=(e,t,r={})=>i=>{const{libraryOptions:n,target:o}=i??{},a=We({...n??{},target:o,io:t,processors:r});return P(e,a),Ge(a,e),Xe(a,e)},Ph={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},yl=(e,t,r,i)=>{const n=r;n.type="string";const{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),s&&(n.format=Ph[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){const l=[...c];l.length===1?n.pattern=l[0].source:l.length>1&&(n.allOf=[...l.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},$l=(e,t,r,i)=>{const n=r,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number";const d=typeof l=="number"&&l>=(o??Number.NEGATIVE_INFINITY),f=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),m=t.target==="draft-04"||t.target==="openapi-3.0";d?m?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:typeof o=="number"&&(n.minimum=o),f?m?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:typeof a=="number"&&(n.maximum=a),typeof c=="number"&&(n.multipleOf=c)},bl=(e,t,r,i)=>{r.type="boolean"},_l=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},kl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},wl=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Sl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Il=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},zl=(e,t,r,i)=>{r.not={}},Ol=(e,t,r,i)=>{},Nl=(e,t,r,i)=>{},xl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},jl=(e,t,r,i)=>{const n=e._zod.def,o=Rr(n.entries);o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},Ul=(e,t,r,i)=>{const n=e._zod.def,o=[];for(const a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){const a=o[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o},Tl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Dl=(e,t,r,i)=>{const n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},El=(e,t,r,i)=>{const n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),c?c.length===1?(o.contentMediaType=c[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(n,o)},Pl=(e,t,r,i)=>{r.type="boolean"},Al=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Zl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ll=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Cl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Rl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Ml=(e,t,r,i)=>{const n=r,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=P(o.element,t,{...i,path:[...i.path,"items"]})},Fl=(e,t,r,i)=>{const n=r,o=e._zod.def;n.type="object",n.properties={};const a=o.shape;for(const u in a)n.properties[u]=P(a[u],t,{...i,path:[...i.path,"properties",u]});const s=new Set(Object.keys(a)),c=new Set([...s].filter(u=>{const l=o.shape[u]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(n.required=Array.from(c)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=P(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Ri=(e,t,r,i)=>{const n=e._zod.def,o=n.inclusive===!1,a=n.options.map((s,c)=>P(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=a:r.anyOf=a},Jl=(e,t,r,i)=>{const n=e._zod.def,o=P(n.left,t,{...i,path:[...i.path,"allOf",0]}),a=P(n.right,t,{...i,path:[...i.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];r.allOf=c},Kl=(e,t,r,i)=>{const n=r,o=e._zod.def;n.type="array";const a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((f,m)=>P(f,t,{...i,path:[...i.path,a,m]})),u=o.rest?P(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),n.minItems=c.length,u||(n.maxItems=c.length)):(n.items=c,u&&(n.additionalItems=u));const{minimum:l,maximum:d}=e._zod.bag;typeof l=="number"&&(n.minItems=l),typeof d=="number"&&(n.maxItems=d)},Bl=(e,t,r,i)=>{const n=r,o=e._zod.def;n.type="object";const a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){const l=P(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(const d of c)n.patternProperties[d.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=P(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=P(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});const u=a._zod.values;if(u){const l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(n.required=l)}},Vl=(e,t,r,i)=>{const n=e._zod.def,o=P(n.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},ql=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType},Wl=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Gl=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Xl=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Yl=(e,t,r,i)=>{const n=e._zod.def,o=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?n.out:n.in:n.out;P(a,t,i);const s=t.seen.get(e);s.ref=a},Hl=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},Ql=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType},Mi=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType},ed=(e,t,r,i)=>{const n=e._zod.innerType;P(n,t,i);const o=t.seen.get(e);o.ref=n},jr={string:yl,number:$l,boolean:bl,bigint:_l,symbol:kl,null:wl,undefined:Sl,void:Il,never:zl,any:Ol,unknown:Nl,date:xl,enum:jl,literal:Ul,nan:Tl,template_literal:Dl,file:El,success:Pl,custom:Al,function:Zl,transform:Ll,map:Cl,set:Rl,array:Ml,object:Fl,union:Ri,intersection:Jl,tuple:Kl,record:Bl,nullable:Vl,nonoptional:ql,default:Wl,prefault:Gl,catch:Xl,pipe:Yl,readonly:Hl,promise:Ql,optional:Mi,lazy:ed};function td(e,t){if("_idmap"in e){const i=e,n=We({...t,processors:jr}),o={};for(const c of i._idmap.entries()){const[u,l]=c;P(l,n)}const a={},s={registry:i,uri:t?.uri,defs:o};n.external=s;for(const c of i._idmap.entries()){const[u,l]=c;Ge(n,l),a[u]=Xe(n,l)}if(Object.keys(o).length>0){const c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}const r=We({...t,processors:jr});return P(e,r),Ge(r,e),Xe(r,e)}class Ah{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=We({processors:jr,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return P(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Ge(this.ctx,t);const i=Xe(this.ctx,t),{"~standard":n,...o}=i;return o}}const Zh=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Lh=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:Jc,$ZodArray:Wc,$ZodAsyncError:Ne,$ZodBase64:Uc,$ZodBase64URL:Dc,$ZodBigInt:ui,$ZodBigIntFormat:Cc,$ZodBoolean:ci,$ZodCIDRv4:xc,$ZodCIDRv6:jc,$ZodCUID:vc,$ZodCUID2:yc,$ZodCatch:gu,$ZodCheck:C,$ZodCheckBigIntFormat:qs,$ZodCheckEndsWith:oc,$ZodCheckGreaterThan:oi,$ZodCheckIncludes:rc,$ZodCheckLengthEquals:Qs,$ZodCheckLessThan:ii,$ZodCheckLowerCase:tc,$ZodCheckMaxLength:Ys,$ZodCheckMaxSize:Ws,$ZodCheckMimeType:sc,$ZodCheckMinLength:Hs,$ZodCheckMinSize:Gs,$ZodCheckMultipleOf:Bs,$ZodCheckNumberFormat:Vs,$ZodCheckOverwrite:cc,$ZodCheckProperty:ac,$ZodCheckRegex:ec,$ZodCheckSizeEquals:Xs,$ZodCheckStartsWith:ic,$ZodCheckStringFormat:jt,$ZodCheckUpperCase:nc,$ZodCodec:mi,$ZodCustom:wu,$ZodCustomStringFormat:Zc,$ZodDate:qc,$ZodDefault:du,$ZodDiscriminatedUnion:eu,$ZodE164:Ec,$ZodEmail:mc,$ZodEmoji:gc,$ZodEncodeError:bn,$ZodEnum:ou,$ZodError:Fr,$ZodExactOptional:uu,$ZodFile:su,$ZodFunction:bu,$ZodGUID:dc,$ZodIPv4:zc,$ZodIPv6:Oc,$ZodISODate:wc,$ZodISODateTime:kc,$ZodISODuration:Ic,$ZodISOTime:Sc,$ZodIntersection:tu,$ZodJWT:Ac,$ZodKSUID:_c,$ZodLazy:ku,$ZodLiteral:au,$ZodMAC:Nc,$ZodMap:ru,$ZodNaN:hu,$ZodNanoID:hc,$ZodNever:Bc,$ZodNonOptional:mu,$ZodNull:Fc,$ZodNullable:lu,$ZodNumber:si,$ZodNumberFormat:Lc,$ZodObject:Yc,$ZodObjectJIT:Hc,$ZodOptional:di,$ZodPipe:fi,$ZodPrefault:fu,$ZodPreprocess:vu,$ZodPromise:_u,$ZodReadonly:yu,$ZodRealError:H,$ZodRecord:nu,$ZodRegistry:ju,$ZodSet:iu,$ZodString:Ut,$ZodStringFormat:A,$ZodSuccess:pu,$ZodSymbol:Rc,$ZodTemplateLiteral:$u,$ZodTransform:cu,$ZodTuple:li,$ZodType:j,$ZodULID:$c,$ZodURL:pc,$ZodUUID:fc,$ZodUndefined:Mc,$ZodUnion:In,$ZodUnknown:Kc,$ZodVoid:Vc,$ZodXID:bc,$ZodXor:Qc,$brand:Ra,$constructor:p,$input:xu,$output:Nu,Doc:uc,JSONSchema:Zh,JSONSchemaGenerator:Ah,NEVER:Ca,TimePrecision:Eu,_any:tl,_array:cl,_base64:Ui,_base64url:Ti,_bigint:Wu,_boolean:Vu,_catch:xh,_check:ml,_cidrv4:xi,_cidrv6:ji,_coercedBigint:Gu,_coercedBoolean:qu,_coercedDate:al,_coercedNumber:Ru,_coercedString:Tu,_cuid:ki,_cuid2:wi,_custom:ll,_date:ol,_decode:qr,_decodeAsync:Gr,_default:zh,_discriminatedUnion:ph,_e164:Di,_email:gi,_emoji:bi,_encode:Vr,_encodeAsync:Wr,_endsWith:Tn,_enum:bh,_file:ul,_float32:Fu,_float64:Ju,_gt:_e,_gte:X,_guid:mn,_includes:jn,_int:Mu,_int32:Ku,_int64:Xu,_intersection:gh,_ipv4:Oi,_ipv6:Ni,_isoDate:Au,_isoDateTime:Pu,_isoDuration:Lu,_isoTime:Zu,_jwt:Ei,_ksuid:zi,_lazy:Dh,_length:Et,_literal:kh,_lowercase:Nn,_lt:be,_lte:ie,_mac:Du,_map:yh,_max:ie,_maxLength:Dt,_maxSize:tt,_mime:Dn,_min:X,_minLength:je,_minSize:ke,_multipleOf:qe,_nan:sl,_nanoid:_i,_nativeEnum:_h,_negative:Ai,_never:rl,_nonnegative:Li,_nonoptional:Oh,_nonpositive:Zi,_normalize:En,_null:el,_nullable:Ih,_number:Cu,_optional:Sh,_overwrite:he,_parse:St,_parseAsync:It,_pipe:jh,_positive:Pi,_promise:Eh,_property:Ci,_readonly:Uh,_record:vh,_refine:dl,_regex:On,_safeDecode:Yr,_safeDecodeAsync:Qr,_safeEncode:Xr,_safeEncodeAsync:Hr,_safeParse:zt,_safeParseAsync:Ot,_set:$h,_size:Tt,_slugify:Ln,_startsWith:Un,_string:Uu,_stringFormat:Pt,_stringbool:hl,_success:Nh,_superRefine:fl,_symbol:Hu,_templateLiteral:Th,_toLowerCase:An,_toUpperCase:Zn,_transform:wh,_trim:Pn,_tuple:hh,_uint32:Bu,_uint64:Yu,_ulid:Si,_undefined:Qu,_union:fh,_unknown:nl,_uppercase:xn,_url:zn,_uuid:hi,_uuidv4:vi,_uuidv6:yi,_uuidv7:$i,_void:il,_xid:Ii,_xor:mh,clone:se,config:B,createStandardJSONSchemaMethod:ht,createToJSONSchemaMethod:vl,decode:Km,decodeAsync:Vm,describe:pl,encode:Jm,encodeAsync:Bm,extractDefs:Ge,finalize:Xe,flattenError:Jr,formatError:Kr,globalConfig:gt,globalRegistry:re,initializeContext:We,isValidBase64:ai,isValidBase64URL:Tc,isValidJWT:Pc,locales:Ou,meta:gl,parse:Or,parseAsync:Nr,prettifyError:Br,process:P,regexes:ri,registry:pi,safeDecode:Wm,safeDecodeAsync:Xm,safeEncode:qm,safeEncodeAsync:Gm,safeParse:cs,safeParseAsync:us,toDotPath:ss,toJSONSchema:td,treeifyError:as,util:is,version:lc},Symbol.toStringTag,{value:"Module"})),Ch=Object.freeze(Object.defineProperty({__proto__:null,endsWith:Tn,gt:_e,gte:X,includes:jn,length:Et,lowercase:Nn,lt:be,lte:ie,maxLength:Dt,maxSize:tt,mime:Dn,minLength:je,minSize:ke,multipleOf:qe,negative:Ai,nonnegative:Li,nonpositive:Zi,normalize:En,overwrite:he,positive:Pi,property:Ci,regex:On,size:Tt,slugify:Ln,startsWith:Un,toLowerCase:An,toUpperCase:Zn,trim:Pn,uppercase:xn},Symbol.toStringTag,{value:"Module"})),Fi=p("ZodISODateTime",(e,t)=>{kc.init(e,t),Z.init(e,t)});function nd(e){return Pu(Fi,e)}const Ji=p("ZodISODate",(e,t)=>{wc.init(e,t),Z.init(e,t)});function rd(e){return Au(Ji,e)}const Ki=p("ZodISOTime",(e,t)=>{Sc.init(e,t),Z.init(e,t)});function id(e){return Zu(Ki,e)}const Bi=p("ZodISODuration",(e,t)=>{Ic.init(e,t),Z.init(e,t)});function od(e){return Lu(Bi,e)}const ad=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Ji,ZodISODateTime:Fi,ZodISODuration:Bi,ZodISOTime:Ki,date:rd,datetime:nd,duration:od,time:id},Symbol.toStringTag,{value:"Module"})),sd=(e,t)=>{Fr.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Kr(e,r)},flatten:{value:r=>Jr(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ln,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ln,2)}},isEmpty:{get(){return e.issues.length===0}}})},Rh=p("ZodError",sd),Q=p("ZodError",sd,{Parent:Error}),cd=St(Q),ud=It(Q),ld=zt(Q),dd=Ot(Q),fd=Vr(Q),md=qr(Q),pd=Wr(Q),gd=Gr(Q),hd=Xr(Q),vd=Yr(Q),yd=Hr(Q),$d=Qr(Q),Sa=new WeakMap;function At(e,t,r){const i=Object.getPrototypeOf(e);let n=Sa.get(i);if(n||(n=new Set,Sa.set(i,n)),!n.has(t)){n.add(t);for(const o in r){const a=r[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){const s=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}const T=p("ZodType",(e,t)=>(j.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:ht(e,"input"),output:ht(e,"output")}}),e.toJSONSchema=vl(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,i)=>cd(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>ld(e,r,i),e.parseAsync=async(r,i)=>ud(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>dd(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>fd(e,r,i),e.decode=(r,i)=>md(e,r,i),e.encodeAsync=async(r,i)=>pd(e,r,i),e.decodeAsync=async(r,i)=>gd(e,r,i),e.safeEncode=(r,i)=>hd(e,r,i),e.safeDecode=(r,i)=>vd(e,r,i),e.safeEncodeAsync=async(r,i)=>yd(e,r,i),e.safeDecodeAsync=async(r,i)=>$d(e,r,i),At(e,"ZodType",{check(...r){const i=this.def;return this.clone(fe(i,{checks:[...i.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,i){return se(this,r,i)},brand(){return this},register(r,i){return r.add(this,i),this},refine(r,i){return this.check(Zo(r,i))},superRefine(r,i){return this.check(Lo(r,i))},overwrite(r){return this.check(he(r))},optional(){return $t(this)},exactOptional(){return yo(this)},nullable(){return bt(this)},nullish(){return $t(bt(this))},nonoptional(r){return So(this,r)},array(){return Ft(this)},or(r){return or([this,r])},and(r){return so(this,r)},transform(r){return gn(this,sr(r))},default(r){return _o(this,r)},prefault(r){return wo(this,r)},catch(r){return Oo(this,r)},pipe(r){return gn(this,r)},readonly(){return Uo(this)},describe(r){const i=this.clone();return re.add(i,{description:r}),i},meta(...r){if(r.length===0)return re.get(this);const i=this.clone();return re.add(i,r[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return re.get(e)?.description},configurable:!0}),e)),Cn=p("_ZodString",(e,t)=>{Ut.init(e,t),T.init(e,t),e._zod.processJSONSchema=(i,n,o)=>yl(e,i,n);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,At(e,"_ZodString",{regex(...i){return this.check(On(...i))},includes(...i){return this.check(jn(...i))},startsWith(...i){return this.check(Un(...i))},endsWith(...i){return this.check(Tn(...i))},min(...i){return this.check(je(...i))},max(...i){return this.check(Dt(...i))},length(...i){return this.check(Et(...i))},nonempty(...i){return this.check(je(1,...i))},lowercase(i){return this.check(Nn(i))},uppercase(i){return this.check(xn(i))},trim(){return this.check(Pn())},normalize(...i){return this.check(En(...i))},toLowerCase(){return this.check(An())},toUpperCase(){return this.check(Zn())},slugify(){return this.check(Ln())}})}),Zt=p("ZodString",(e,t)=>{Ut.init(e,t),Cn.init(e,t),e.email=r=>e.check(gi(Rn,r)),e.url=r=>e.check(zn(Lt,r)),e.jwt=r=>e.check(Ei(tr,r)),e.emoji=r=>e.check(bi(Mn,r)),e.guid=r=>e.check(mn(yt,r)),e.uuid=r=>e.check(hi(le,r)),e.uuidv4=r=>e.check(vi(le,r)),e.uuidv6=r=>e.check(yi(le,r)),e.uuidv7=r=>e.check($i(le,r)),e.nanoid=r=>e.check(_i(Fn,r)),e.guid=r=>e.check(mn(yt,r)),e.cuid=r=>e.check(ki(Jn,r)),e.cuid2=r=>e.check(wi(Kn,r)),e.ulid=r=>e.check(Si(Bn,r)),e.base64=r=>e.check(Ui(Hn,r)),e.base64url=r=>e.check(Ti(Qn,r)),e.xid=r=>e.check(Ii(Vn,r)),e.ksuid=r=>e.check(zi(qn,r)),e.ipv4=r=>e.check(Oi(Wn,r)),e.ipv6=r=>e.check(Ni(Gn,r)),e.cidrv4=r=>e.check(xi(Xn,r)),e.cidrv6=r=>e.check(ji(Yn,r)),e.e164=r=>e.check(Di(er,r)),e.datetime=r=>e.check(nd(r)),e.date=r=>e.check(rd(r)),e.time=r=>e.check(id(r)),e.duration=r=>e.check(od(r))});function vt(e){return Uu(Zt,e)}const Z=p("ZodStringFormat",(e,t)=>{A.init(e,t),Cn.init(e,t)}),Rn=p("ZodEmail",(e,t)=>{mc.init(e,t),Z.init(e,t)});function bd(e){return gi(Rn,e)}const yt=p("ZodGUID",(e,t)=>{dc.init(e,t),Z.init(e,t)});function _d(e){return mn(yt,e)}const le=p("ZodUUID",(e,t)=>{fc.init(e,t),Z.init(e,t)});function kd(e){return hi(le,e)}function wd(e){return vi(le,e)}function Sd(e){return yi(le,e)}function Id(e){return $i(le,e)}const Lt=p("ZodURL",(e,t)=>{pc.init(e,t),Z.init(e,t)});function zd(e){return zn(Lt,e)}function Od(e){return zn(Lt,{protocol:ti,hostname:Ns,...y(e)})}const Mn=p("ZodEmoji",(e,t)=>{gc.init(e,t),Z.init(e,t)});function Nd(e){return bi(Mn,e)}const Fn=p("ZodNanoID",(e,t)=>{hc.init(e,t),Z.init(e,t)});function xd(e){return _i(Fn,e)}const Jn=p("ZodCUID",(e,t)=>{vc.init(e,t),Z.init(e,t)});function jd(e){return ki(Jn,e)}const Kn=p("ZodCUID2",(e,t)=>{yc.init(e,t),Z.init(e,t)});function Ud(e){return wi(Kn,e)}const Bn=p("ZodULID",(e,t)=>{$c.init(e,t),Z.init(e,t)});function Td(e){return Si(Bn,e)}const Vn=p("ZodXID",(e,t)=>{bc.init(e,t),Z.init(e,t)});function Dd(e){return Ii(Vn,e)}const qn=p("ZodKSUID",(e,t)=>{_c.init(e,t),Z.init(e,t)});function Ed(e){return zi(qn,e)}const Wn=p("ZodIPv4",(e,t)=>{zc.init(e,t),Z.init(e,t)});function Pd(e){return Oi(Wn,e)}const Vi=p("ZodMAC",(e,t)=>{Nc.init(e,t),Z.init(e,t)});function Ad(e){return Du(Vi,e)}const Gn=p("ZodIPv6",(e,t)=>{Oc.init(e,t),Z.init(e,t)});function Zd(e){return Ni(Gn,e)}const Xn=p("ZodCIDRv4",(e,t)=>{xc.init(e,t),Z.init(e,t)});function Ld(e){return xi(Xn,e)}const Yn=p("ZodCIDRv6",(e,t)=>{jc.init(e,t),Z.init(e,t)});function Cd(e){return ji(Yn,e)}const Hn=p("ZodBase64",(e,t)=>{Uc.init(e,t),Z.init(e,t)});function Rd(e){return Ui(Hn,e)}const Qn=p("ZodBase64URL",(e,t)=>{Dc.init(e,t),Z.init(e,t)});function Md(e){return Ti(Qn,e)}const er=p("ZodE164",(e,t)=>{Ec.init(e,t),Z.init(e,t)});function Fd(e){return Di(er,e)}const tr=p("ZodJWT",(e,t)=>{Ac.init(e,t),Z.init(e,t)});function Jd(e){return Ei(tr,e)}const nt=p("ZodCustomStringFormat",(e,t)=>{Zc.init(e,t),Z.init(e,t)});function Kd(e,t,r={}){return Pt(nt,e,t,r)}function Bd(e){return Pt(nt,"hostname",Os,e)}function Vd(e){return Pt(nt,"hex",Js,e)}function qd(e,t){const r=t?.enc??"hex",i=`${e}_${r}`,n=ri[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Pt(nt,i,n,t)}const Ct=p("ZodNumber",(e,t)=>{si.init(e,t),T.init(e,t),e._zod.processJSONSchema=(i,n,o)=>$l(e,i,n),At(e,"ZodNumber",{gt(i,n){return this.check(_e(i,n))},gte(i,n){return this.check(X(i,n))},min(i,n){return this.check(X(i,n))},lt(i,n){return this.check(be(i,n))},lte(i,n){return this.check(ie(i,n))},max(i,n){return this.check(ie(i,n))},int(i){return this.check(pn(i))},safe(i){return this.check(pn(i))},positive(i){return this.check(_e(0,i))},nonnegative(i){return this.check(X(0,i))},negative(i){return this.check(be(0,i))},nonpositive(i){return this.check(ie(0,i))},multipleOf(i,n){return this.check(qe(i,n))},step(i,n){return this.check(qe(i,n))},finite(){return this}});const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function qi(e){return Cu(Ct,e)}const Ee=p("ZodNumberFormat",(e,t)=>{Lc.init(e,t),Ct.init(e,t)});function pn(e){return Mu(Ee,e)}function Wd(e){return Fu(Ee,e)}function Gd(e){return Ju(Ee,e)}function Xd(e){return Ku(Ee,e)}function Yd(e){return Bu(Ee,e)}const Rt=p("ZodBoolean",(e,t)=>{ci.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>bl(e,r,i)});function Wi(e){return Vu(Rt,e)}const Mt=p("ZodBigInt",(e,t)=>{ui.init(e,t),T.init(e,t),e._zod.processJSONSchema=(i,n,o)=>_l(e,i),e.gte=(i,n)=>e.check(X(i,n)),e.min=(i,n)=>e.check(X(i,n)),e.gt=(i,n)=>e.check(_e(i,n)),e.gte=(i,n)=>e.check(X(i,n)),e.min=(i,n)=>e.check(X(i,n)),e.lt=(i,n)=>e.check(be(i,n)),e.lte=(i,n)=>e.check(ie(i,n)),e.max=(i,n)=>e.check(ie(i,n)),e.positive=i=>e.check(_e(BigInt(0),i)),e.negative=i=>e.check(be(BigInt(0),i)),e.nonpositive=i=>e.check(ie(BigInt(0),i)),e.nonnegative=i=>e.check(X(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(qe(i,n));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Hd(e){return Wu(Mt,e)}const nr=p("ZodBigIntFormat",(e,t)=>{Cc.init(e,t),Mt.init(e,t)});function Qd(e){return Xu(nr,e)}function ef(e){return Yu(nr,e)}const Gi=p("ZodSymbol",(e,t)=>{Rc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>kl(e,r)});function tf(e){return Hu(Gi,e)}const Xi=p("ZodUndefined",(e,t)=>{Mc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Sl(e,r)});function nf(e){return Qu(Xi,e)}const Yi=p("ZodNull",(e,t)=>{Fc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>wl(e,r,i)});function Hi(e){return el(Yi,e)}const Qi=p("ZodAny",(e,t)=>{Jc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ol()});function rf(){return tl(Qi)}const eo=p("ZodUnknown",(e,t)=>{Kc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Nl()});function Ue(){return nl(eo)}const to=p("ZodNever",(e,t)=>{Bc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>zl(e,r,i)});function rr(e){return rl(to,e)}const no=p("ZodVoid",(e,t)=>{Vc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Il(e,r)});function of(e){return il(no,e)}const ir=p("ZodDate",(e,t)=>{qc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(i,n,o)=>xl(e,i),e.min=(i,n)=>e.check(X(i,n)),e.max=(i,n)=>e.check(ie(i,n));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function af(e){return ol(ir,e)}const ro=p("ZodArray",(e,t)=>{Wc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ml(e,r,i,n),e.element=t.element,At(e,"ZodArray",{min(r,i){return this.check(je(r,i))},nonempty(r){return this.check(je(1,r))},max(r,i){return this.check(Dt(r,i))},length(r,i){return this.check(Et(r,i))},unwrap(){return this.element}})});function Ft(e,t){return cl(ro,e,t)}function sf(e){const t=e._zod.def.shape;return ar(Object.keys(t))}const Jt=p("ZodObject",(e,t)=>{Hc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fl(e,r,i,n),D(e,"shape",()=>t.shape),At(e,"ZodObject",{keyof(){return ar(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:Ue()})},loose(){return this.clone({...this._zod.def,catchall:Ue()})},strict(){return this.clone({...this._zod.def,catchall:rr()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return Xa(this,r)},safeExtend(r){return Ya(this,r)},merge(r){return Ha(this,r)},pick(r){return Wa(this,r)},omit(r){return Ga(this,r)},partial(...r){return Qa(cr,this,r[0])},required(...r){return es(ur,this,r[0])}})});function cf(e,t){const r={type:"object",shape:e??{},...y(t)};return new Jt(r)}function uf(e,t){return new Jt({type:"object",shape:e,catchall:rr(),...y(t)})}function lf(e,t){return new Jt({type:"object",shape:e,catchall:Ue(),...y(t)})}const Kt=p("ZodUnion",(e,t)=>{In.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ri(e,r,i,n),e.options=t.options});function or(e,t){return new Kt({type:"union",options:e,...y(t)})}const io=p("ZodXor",(e,t)=>{Kt.init(e,t),Qc.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ri(e,r,i,n),e.options=t.options});function df(e,t){return new io({type:"union",options:e,inclusive:!1,...y(t)})}const oo=p("ZodDiscriminatedUnion",(e,t)=>{Kt.init(e,t),eu.init(e,t)});function ff(e,t,r){return new oo({type:"union",options:t,discriminator:e,...y(r)})}const ao=p("ZodIntersection",(e,t)=>{tu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Jl(e,r,i,n)});function so(e,t){return new ao({type:"intersection",left:e,right:t})}const co=p("ZodTuple",(e,t)=>{li.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Kl(e,r,i,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function uo(e,t,r){const i=t instanceof j,n=i?r:t,o=i?t:null;return new co({type:"tuple",items:e,rest:o,...y(n)})}const Ye=p("ZodRecord",(e,t)=>{nu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Bl(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function lo(e,t,r){return!t||!t._zod?new Ye({type:"record",keyType:vt(),valueType:e,...y(t)}):new Ye({type:"record",keyType:e,valueType:t,...y(r)})}function mf(e,t,r){const i=se(e);return i._zod.values=void 0,new Ye({type:"record",keyType:i,valueType:t,...y(r)})}function pf(e,t,r){return new Ye({type:"record",keyType:e,valueType:t,mode:"loose",...y(r)})}const fo=p("ZodMap",(e,t)=>{ru.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cl(e,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(ke(...r)),e.nonempty=r=>e.check(ke(1,r)),e.max=(...r)=>e.check(tt(...r)),e.size=(...r)=>e.check(Tt(...r))});function gf(e,t,r){return new fo({type:"map",keyType:e,valueType:t,...y(r)})}const mo=p("ZodSet",(e,t)=>{iu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Rl(e,r),e.min=(...r)=>e.check(ke(...r)),e.nonempty=r=>e.check(ke(1,r)),e.max=(...r)=>e.check(tt(...r)),e.size=(...r)=>e.check(Tt(...r))});function hf(e,t){return new mo({type:"set",valueType:e,...y(t)})}const He=p("ZodEnum",(e,t)=>{ou.init(e,t),T.init(e,t),e._zod.processJSONSchema=(i,n,o)=>jl(e,i,n),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{const o={};for(const a of i)if(r.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new He({...t,checks:[],...y(n),entries:o})},e.exclude=(i,n)=>{const o={...t.entries};for(const a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new He({...t,checks:[],...y(n),entries:o})}});function ar(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new He({type:"enum",entries:r,...y(t)})}function vf(e,t){return new He({type:"enum",entries:e,...y(t)})}const po=p("ZodLiteral",(e,t)=>{au.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ul(e,r,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function yf(e,t){return new po({type:"literal",values:Array.isArray(e)?e:[e],...y(t)})}const go=p("ZodFile",(e,t)=>{su.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>El(e,r,i),e.min=(r,i)=>e.check(ke(r,i)),e.max=(r,i)=>e.check(tt(r,i)),e.mime=(r,i)=>e.check(Dn(Array.isArray(r)?r:[r],i))});function $f(e){return ul(go,e)}const ho=p("ZodTransform",(e,t)=>{cu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ll(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new bn(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(Be(o,r.value,t));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Be(a))}};const n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function sr(e){return new ho({type:"transform",transform:e})}const cr=p("ZodOptional",(e,t)=>{di.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mi(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function $t(e){return new cr({type:"optional",innerType:e})}const vo=p("ZodExactOptional",(e,t)=>{uu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mi(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function yo(e){return new vo({type:"optional",innerType:e})}const $o=p("ZodNullable",(e,t)=>{lu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Vl(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function bt(e){return new $o({type:"nullable",innerType:e})}function bf(e){return $t(bt(e))}const bo=p("ZodDefault",(e,t)=>{du.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Wl(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function _o(e,t){return new bo({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():kn(t)}})}const ko=p("ZodPrefault",(e,t)=>{fu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Gl(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function wo(e,t){return new ko({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():kn(t)}})}const ur=p("ZodNonOptional",(e,t)=>{mu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ql(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function So(e,t){return new ur({type:"nonoptional",innerType:e,...y(t)})}const Io=p("ZodSuccess",(e,t)=>{pu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Pl(e,r,i),e.unwrap=()=>e._zod.def.innerType});function _f(e){return new Io({type:"success",innerType:e})}const zo=p("ZodCatch",(e,t)=>{gu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Xl(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Oo(e,t){return new zo({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const No=p("ZodNaN",(e,t)=>{hu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Tl(e,r)});function kf(e){return sl(No,e)}const Bt=p("ZodPipe",(e,t)=>{fi.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Yl(e,r,i,n),e.in=t.in,e.out=t.out});function gn(e,t){return new Bt({type:"pipe",in:e,out:t})}const Vt=p("ZodCodec",(e,t)=>{Bt.init(e,t),mi.init(e,t)});function wf(e,t,r){return new Vt({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function Sf(e){const t=e._zod.def;return new Vt({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}const xo=p("ZodPreprocess",(e,t)=>{Bt.init(e,t),vu.init(e,t)}),jo=p("ZodReadonly",(e,t)=>{yu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Hl(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Uo(e){return new jo({type:"readonly",innerType:e})}const To=p("ZodTemplateLiteral",(e,t)=>{$u.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Dl(e,r,i)});function If(e,t){return new To({type:"template_literal",parts:e,...y(t)})}const Do=p("ZodLazy",(e,t)=>{ku.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ed(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function Eo(e){return new Do({type:"lazy",getter:e})}const Po=p("ZodPromise",(e,t)=>{_u.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ql(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function zf(e){return new Po({type:"promise",innerType:e})}const Ao=p("ZodFunction",(e,t)=>{bu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zl(e,r)});function hn(e){return new Ao({type:"function",input:Array.isArray(e?.input)?uo(e?.input):e?.input??Ft(Ue()),output:e?.output??Ue()})}const qt=p("ZodCustom",(e,t)=>{wu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Al(e,r)});function Of(e){const t=new C({check:"custom"});return t._zod.check=e,t}function Nf(e,t){return ll(qt,e??(()=>!0),t)}function Zo(e,t={}){return dl(qt,e,t)}function Lo(e,t){return fl(e,t)}const xf=pl,jf=gl;function Uf(e,t={}){const r=new qt({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...y(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}const Tf=(...e)=>hl({Codec:Vt,Boolean:Rt,String:Zt},...e);function Df(e){const t=Eo(()=>or([vt(e),qi(),Wi(),Hi(),Ft(t),lo(vt(),t)]));return t}function Ef(e,t){return new xo({type:"pipe",in:sr(e),out:t})}const Mh=Object.freeze(Object.defineProperty({__proto__:null,ZodAny:Qi,ZodArray:ro,ZodBase64:Hn,ZodBase64URL:Qn,ZodBigInt:Mt,ZodBigIntFormat:nr,ZodBoolean:Rt,ZodCIDRv4:Xn,ZodCIDRv6:Yn,ZodCUID:Jn,ZodCUID2:Kn,ZodCatch:zo,ZodCodec:Vt,ZodCustom:qt,ZodCustomStringFormat:nt,ZodDate:ir,ZodDefault:bo,ZodDiscriminatedUnion:oo,ZodE164:er,ZodEmail:Rn,ZodEmoji:Mn,ZodEnum:He,ZodExactOptional:vo,ZodFile:go,ZodFunction:Ao,ZodGUID:yt,ZodIPv4:Wn,ZodIPv6:Gn,ZodIntersection:ao,ZodJWT:tr,ZodKSUID:qn,ZodLazy:Do,ZodLiteral:po,ZodMAC:Vi,ZodMap:fo,ZodNaN:No,ZodNanoID:Fn,ZodNever:to,ZodNonOptional:ur,ZodNull:Yi,ZodNullable:$o,ZodNumber:Ct,ZodNumberFormat:Ee,ZodObject:Jt,ZodOptional:cr,ZodPipe:Bt,ZodPrefault:ko,ZodPreprocess:xo,ZodPromise:Po,ZodReadonly:jo,ZodRecord:Ye,ZodSet:mo,ZodString:Zt,ZodStringFormat:Z,ZodSuccess:Io,ZodSymbol:Gi,ZodTemplateLiteral:To,ZodTransform:ho,ZodTuple:co,ZodType:T,ZodULID:Bn,ZodURL:Lt,ZodUUID:le,ZodUndefined:Xi,ZodUnion:Kt,ZodUnknown:eo,ZodVoid:no,ZodXID:Vn,ZodXor:io,_ZodString:Cn,_default:_o,_function:hn,any:rf,array:Ft,base64:Rd,base64url:Md,bigint:Hd,boolean:Wi,catch:Oo,check:Of,cidrv4:Ld,cidrv6:Cd,codec:wf,cuid:jd,cuid2:Ud,custom:Nf,date:af,describe:xf,discriminatedUnion:ff,e164:Fd,email:bd,emoji:Nd,enum:ar,exactOptional:yo,file:$f,float32:Wd,float64:Gd,function:hn,guid:_d,hash:qd,hex:Vd,hostname:Bd,httpUrl:Od,instanceof:Uf,int:pn,int32:Xd,int64:Qd,intersection:so,invertCodec:Sf,ipv4:Pd,ipv6:Zd,json:Df,jwt:Jd,keyof:sf,ksuid:Ed,lazy:Eo,literal:yf,looseObject:lf,looseRecord:pf,mac:Ad,map:gf,meta:jf,nan:kf,nanoid:xd,nativeEnum:vf,never:rr,nonoptional:So,null:Hi,nullable:bt,nullish:bf,number:qi,object:cf,optional:$t,partialRecord:mf,pipe:gn,prefault:wo,preprocess:Ef,promise:zf,readonly:Uo,record:lo,refine:Zo,set:hf,strictObject:uf,string:vt,stringFormat:Kd,stringbool:Tf,success:_f,superRefine:Lo,symbol:tf,templateLiteral:If,transform:sr,tuple:uo,uint32:Yd,uint64:ef,ulid:Td,undefined:nf,union:or,unknown:Ue,url:zd,uuid:kd,uuidv4:wd,uuidv6:Sd,uuidv7:Id,void:of,xid:Dd,xor:df},Symbol.toStringTag,{value:"Module"})),Fh={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Jh(e){B({customError:e})}function Kh(){return B().customError}var Ur;Ur||(Ur={});const b={...Mh,...Ch,iso:ad},Bh=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Vh(e,t){const r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function qh(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;const i=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){const n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function Pf(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return b.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return b.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);const o=qh(n,t),a=V(o,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){const n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return b.null();if(n.length===0)return b.never();if(n.length===1)return b.literal(n[0]);if(n.every(a=>typeof a=="string"))return b.enum(n);const o=n.map(a=>b.literal(a));return o.length<2?o[0]:b.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return b.literal(e.const);const r=e.type;if(Array.isArray(r)){const n=r.map(o=>{const a={...e,type:o};return Pf(a,t)});return n.length===0?b.never():n.length===1?n[0]:b.union(n)}if(!r)return b.any();let i;switch(r){case"string":{let n=b.string();if(e.format){const o=e.format;o==="email"?n=n.check(b.email()):o==="uri"||o==="uri-reference"?n=n.check(b.url()):o==="uuid"||o==="guid"?n=n.check(b.uuid()):o==="date-time"?n=n.check(b.iso.datetime()):o==="date"?n=n.check(b.iso.date()):o==="time"?n=n.check(b.iso.time()):o==="duration"?n=n.check(b.iso.duration()):o==="ipv4"?n=n.check(b.ipv4()):o==="ipv6"?n=n.check(b.ipv6()):o==="mac"?n=n.check(b.mac()):o==="cidr"?n=n.check(b.cidrv4()):o==="cidr-v6"?n=n.check(b.cidrv6()):o==="base64"?n=n.check(b.base64()):o==="base64url"?n=n.check(b.base64url()):o==="e164"?n=n.check(b.e164()):o==="jwt"?n=n.check(b.jwt()):o==="emoji"?n=n.check(b.emoji()):o==="nanoid"?n=n.check(b.nanoid()):o==="cuid"?n=n.check(b.cuid()):o==="cuid2"?n=n.check(b.cuid2()):o==="ulid"?n=n.check(b.ulid()):o==="xid"?n=n.check(b.xid()):o==="ksuid"&&(n=n.check(b.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?b.number().int():b.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case"boolean":{i=b.boolean();break}case"null":{i=b.null();break}case"object":{const n={},o=e.properties||{},a=new Set(e.required||[]);for(const[c,u]of Object.entries(o)){const l=V(u,t);n[c]=a.has(c)?l:l.optional()}if(e.propertyNames){const c=V(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?V(e.additionalProperties,t):b.any();if(Object.keys(n).length===0){i=b.record(c,u);break}const l=b.object(n).passthrough(),d=b.looseRecord(c,u);i=b.intersection(l,d);break}if(e.patternProperties){const c=e.patternProperties,u=Object.keys(c),l=[];for(const f of u){const m=V(c[f],t),v=b.string().regex(new RegExp(f));l.push(b.looseRecord(v,m))}const d=[];if(Object.keys(n).length>0&&d.push(b.object(n).passthrough()),d.push(...l),d.length===0)i=b.object({}).passthrough();else if(d.length===1)i=d[0];else{let f=b.intersection(d[0],d[1]);for(let m=2;m<d.length;m++)f=b.intersection(f,d[m]);i=f}break}const s=b.object(n);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(V(e.additionalProperties,t)):i=s.passthrough();break}case"array":{const n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){const a=n.map(c=>V(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?V(o,t):void 0;s?i=b.tuple(a).rest(s):i=b.tuple(a),typeof e.minItems=="number"&&(i=i.check(b.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(b.maxLength(e.maxItems)))}else if(Array.isArray(o)){const a=o.map(c=>V(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?V(e.additionalItems,t):void 0;s?i=b.tuple(a).rest(s):i=b.tuple(a),typeof e.minItems=="number"&&(i=i.check(b.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(b.maxLength(e.maxItems)))}else if(o!==void 0){const a=V(o,t);let s=b.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=b.array(b.any());break}default:throw new Error(`Unsupported type: ${r}`)}return i}function V(e,t){if(typeof e=="boolean")return e?b.any():b.never();let r=Pf(e,t);const i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const s=e.anyOf.map(u=>V(u,t)),c=b.union(s);r=i?b.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){const s=e.oneOf.map(u=>V(u,t)),c=b.xor(s);r=i?b.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:b.any();else{let s=i?r:V(e.allOf[0],t);const c=i?0:1;for(let u=c;u<e.allOf.length;u++)s=b.intersection(s,V(e.allOf[u],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=b.nullable(r)),e.readOnly===!0&&(r=b.readonly(r)),e.default!==void 0&&(r=r.default(e.default));const n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const s of o)s in e&&(n[s]=e[s]);const a=["contentEncoding","contentMediaType","contentSchema"];for(const s of a)s in e&&(n[s]=e[s]);for(const s of Object.keys(e))Bh.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function Wh(e,t){if(typeof e=="boolean")return e?b.any():b.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}const i=Vh(r,t?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??re};return V(r,o)}function Gh(e){return Tu(Zt,e)}function Xh(e){return Ru(Ct,e)}function Yh(e){return qu(Rt,e)}function Hh(e){return Gu(Mt,e)}function Qh(e){return al(ir,e)}const ev=Object.freeze(Object.defineProperty({__proto__:null,bigint:Hh,boolean:Yh,date:Qh,number:Xh,string:Gh},Symbol.toStringTag,{value:"Module"}));B(Su());const Ia=Object.freeze(Object.defineProperty({__proto__:null,$brand:Ra,$input:xu,$output:Nu,NEVER:Ca,TimePrecision:Eu,ZodAny:Qi,ZodArray:ro,ZodBase64:Hn,ZodBase64URL:Qn,ZodBigInt:Mt,ZodBigIntFormat:nr,ZodBoolean:Rt,ZodCIDRv4:Xn,ZodCIDRv6:Yn,ZodCUID:Jn,ZodCUID2:Kn,ZodCatch:zo,ZodCodec:Vt,ZodCustom:qt,ZodCustomStringFormat:nt,ZodDate:ir,ZodDefault:bo,ZodDiscriminatedUnion:oo,ZodE164:er,ZodEmail:Rn,ZodEmoji:Mn,ZodEnum:He,ZodError:Rh,ZodExactOptional:vo,ZodFile:go,get ZodFirstPartyTypeKind(){return Ur},ZodFunction:Ao,ZodGUID:yt,ZodIPv4:Wn,ZodIPv6:Gn,ZodISODate:Ji,ZodISODateTime:Fi,ZodISODuration:Bi,ZodISOTime:Ki,ZodIntersection:ao,ZodIssueCode:Fh,ZodJWT:tr,ZodKSUID:qn,ZodLazy:Do,ZodLiteral:po,ZodMAC:Vi,ZodMap:fo,ZodNaN:No,ZodNanoID:Fn,ZodNever:to,ZodNonOptional:ur,ZodNull:Yi,ZodNullable:$o,ZodNumber:Ct,ZodNumberFormat:Ee,ZodObject:Jt,ZodOptional:cr,ZodPipe:Bt,ZodPrefault:ko,ZodPreprocess:xo,ZodPromise:Po,ZodReadonly:jo,ZodRealError:Q,ZodRecord:Ye,ZodSet:mo,ZodString:Zt,ZodStringFormat:Z,ZodSuccess:Io,ZodSymbol:Gi,ZodTemplateLiteral:To,ZodTransform:ho,ZodTuple:co,ZodType:T,ZodULID:Bn,ZodURL:Lt,ZodUUID:le,ZodUndefined:Xi,ZodUnion:Kt,ZodUnknown:eo,ZodVoid:no,ZodXID:Vn,ZodXor:io,_ZodString:Cn,_default:_o,_function:hn,any:rf,array:Ft,base64:Rd,base64url:Md,bigint:Hd,boolean:Wi,catch:Oo,check:Of,cidrv4:Ld,cidrv6:Cd,clone:se,codec:wf,coerce:ev,config:B,core:Lh,cuid:jd,cuid2:Ud,custom:Nf,date:af,decode:md,decodeAsync:gd,describe:xf,discriminatedUnion:ff,e164:Fd,email:bd,emoji:Nd,encode:fd,encodeAsync:pd,endsWith:Tn,enum:ar,exactOptional:yo,file:$f,flattenError:Jr,float32:Wd,float64:Gd,formatError:Kr,fromJSONSchema:Wh,function:hn,getErrorMap:Kh,globalRegistry:re,gt:_e,gte:X,guid:_d,hash:qd,hex:Vd,hostname:Bd,httpUrl:Od,includes:jn,instanceof:Uf,int:pn,int32:Xd,int64:Qd,intersection:so,invertCodec:Sf,ipv4:Pd,ipv6:Zd,iso:ad,json:Df,jwt:Jd,keyof:sf,ksuid:Ed,lazy:Eo,length:Et,literal:yf,locales:Ou,looseObject:lf,looseRecord:pf,lowercase:Nn,lt:be,lte:ie,mac:Ad,map:gf,maxLength:Dt,maxSize:tt,meta:jf,mime:Dn,minLength:je,minSize:ke,multipleOf:qe,nan:kf,nanoid:xd,nativeEnum:vf,negative:Ai,never:rr,nonnegative:Li,nonoptional:So,nonpositive:Zi,normalize:En,null:Hi,nullable:bt,nullish:bf,number:qi,object:cf,optional:$t,overwrite:he,parse:cd,parseAsync:ud,partialRecord:mf,pipe:gn,positive:Pi,prefault:wo,preprocess:Ef,prettifyError:Br,promise:zf,property:Ci,readonly:Uo,record:lo,refine:Zo,regex:On,regexes:ri,registry:pi,safeDecode:vd,safeDecodeAsync:$d,safeEncode:hd,safeEncodeAsync:yd,safeParse:ld,safeParseAsync:dd,set:hf,setErrorMap:Jh,size:Tt,slugify:Ln,startsWith:Un,strictObject:uf,string:vt,stringFormat:Kd,stringbool:Tf,success:_f,superRefine:Lo,symbol:tf,templateLiteral:If,toJSONSchema:td,toLowerCase:An,toUpperCase:Zn,transform:sr,treeifyError:as,trim:Pn,tuple:uo,uint32:Yd,uint64:ef,ulid:Td,undefined:nf,union:or,unknown:Ue,uppercase:xn,url:zd,util:is,uuid:kd,uuidv4:wd,uuidv6:Sd,uuidv7:Id,void:of,xid:Dd,xor:df},Symbol.toStringTag,{value:"Module"})),tv=Ia.object({id:Ia.string()});class nv{_content={};_kinds;constructor(t){this._kinds=t,this.clear()}load(t){for(const r in t)this.loadKind(r,Object.values(t[r]))}loadKind(t,r){const i=this.getMap(t);for(const n of r)i[n.id]=n}getMap(t){const r=this._content[t];if(!r)throw new ta(`Could not get map of ${t.toString()}`);return r}getList(t){return Object.values(this.getMap(t))}get(t,r){const i=this._content[r]?.[t];if(!i)throw new wm(`Could not get '${r.toString()}' with id '${t}'`);return i}getSchema(t){const r=this._kinds[t];if(!r)throw new ta(`Could not get schema of ${t.toString()}`);return r}clear(){for(const t in this._kinds)this._content[t]={}}}const Af=e=>{if(e.path.includes("."))return e.path.split(".").pop()},Zf=e=>{const t=e.path.split(".");if(!(t.length<3))return t[t.length-2]};class rv{run(t){t.objects=t.files.flatMap(r=>{if(Af(r)!="json")return[];const n=Zf(r);if(!n)return t.warnings.push({type:ee.LouterWarningType.MissingKind,path:r.path,message:"Could not get kind. Is the file formatted as 'id.kind.json'?"}),[];try{return[{path:r.path,kind:n,data:JSON.parse(r.data)}]}catch{return t.warnings.push({path:r.path,type:ee.LouterWarningType.InvalidJson,message:"Could not parse file. Is it valid Json?"}),[]}})}}const Co=Symbol.for("yaml.alias"),Tr=Symbol.for("yaml.document"),$e=Symbol.for("yaml.map"),Lf=Symbol.for("yaml.pair"),de=Symbol.for("yaml.scalar"),rt=Symbol.for("yaml.seq"),ae=Symbol.for("yaml.node.type"),it=e=>!!e&&typeof e=="object"&&e[ae]===Co,lr=e=>!!e&&typeof e=="object"&&e[ae]===Tr,Wt=e=>!!e&&typeof e=="object"&&e[ae]===$e,F=e=>!!e&&typeof e=="object"&&e[ae]===Lf,L=e=>!!e&&typeof e=="object"&&e[ae]===de,Gt=e=>!!e&&typeof e=="object"&&e[ae]===rt;function R(e){if(e&&typeof e=="object")switch(e[ae]){case $e:case rt:return!0}return!1}function M(e){if(e&&typeof e=="object")switch(e[ae]){case Co:case $e:case de:case rt:return!0}return!1}const Cf=e=>(L(e)||R(e))&&!!e.anchor,Se=Symbol("break visit"),iv=Symbol("skip children"),mt=Symbol("remove node");function ot(e,t){const r=ov(t);lr(e)?Ce(null,e.contents,r,Object.freeze([e]))===mt&&(e.contents=null):Ce(null,e,r,Object.freeze([]))}ot.BREAK=Se;ot.SKIP=iv;ot.REMOVE=mt;function Ce(e,t,r,i){const n=av(e,t,r,i);if(M(n)||F(n))return sv(e,i,n),Ce(e,n,r,i);if(typeof n!="symbol"){if(R(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){const a=Ce(o,t.items[o],r,i);if(typeof a=="number")o=a-1;else{if(a===Se)return Se;a===mt&&(t.items.splice(o,1),o-=1)}}}else if(F(t)){i=Object.freeze(i.concat(t));const o=Ce("key",t.key,r,i);if(o===Se)return Se;o===mt&&(t.key=null);const a=Ce("value",t.value,r,i);if(a===Se)return Se;a===mt&&(t.value=null)}}return n}function ov(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function av(e,t,r,i){if(typeof r=="function")return r(e,t,i);if(Wt(t))return r.Map?.(e,t,i);if(Gt(t))return r.Seq?.(e,t,i);if(F(t))return r.Pair?.(e,t,i);if(L(t))return r.Scalar?.(e,t,i);if(it(t))return r.Alias?.(e,t,i)}function sv(e,t,r){const i=t[t.length-1];if(R(i))i.items[e]=r;else if(F(i))e==="key"?i.key=r:i.value=r;else if(lr(i))i.contents=r;else{const n=it(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}const cv={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},uv=e=>e.replace(/[!,[\]{}]/g,t=>cv[t]);class W{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},W.defaultYaml,t),this.tags=Object.assign({},W.defaultTags,r)}clone(){const t=new W(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new W(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:W.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},W.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:W.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},W.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),n=i.shift();switch(n){case"%TAG":{if(i.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[o,a]=i;return this.tags[o]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[o]=i;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{const a=/^\d+\.\d+$/.test(o);return r(6,`Unsupported YAML version ${o}`,a),!1}}default:return r(0,`Unknown directive ${n}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const a=t.slice(2,-1);return a==="!"||a==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),a)}const[,i,n]=t.match(/^(.*!)([^!]*)$/s);n||r(`The ${t} tag has no suffix`);const o=this.tags[i];if(o)try{return o+decodeURIComponent(n)}catch(a){return r(String(a)),null}return i==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[r,i]of Object.entries(this.tags))if(t.startsWith(i))return r+uv(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let n;if(t&&i.length>0&&M(t.contents)){const o={};ot(t.contents,(a,s)=>{M(s)&&s.tag&&(o[s.tag]=!0)}),n=Object.keys(o)}else n=[];for(const[o,a]of i)o==="!!"&&a==="tag:yaml.org,2002:"||(!t||n.some(s=>s.startsWith(a)))&&r.push(`%TAG ${o} ${a}`);return r.join(`
|
|
66
|
-
`)}}W.defaultYaml={explicit:!1,version:"1.2"};W.defaultTags={"!!":"tag:yaml.org,2002:"};function
|
|
65
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const s=a[1];if(t===a[0]){o(a);continue}if(e.external){const u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function Xe(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=s=>{const c=e.seen.get(s);if(c.ref===null)return;const u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){i(d);const m=e.seen.get(d),v=m.schema;if(v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(v)):Object.assign(u,v),Object.assign(u,l),s._zod.parent===d)for(const h in u)h==="$ref"||h==="allOf"||h in l||delete u[h];if(v.$ref&&m.def)for(const h in u)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(u[h])===JSON.stringify(m.def[h])&&delete u[h]}const f=s._zod.parent;if(f&&f!==d){i(f);const m=e.seen.get(f);if(m?.schema.$ref&&(u.$ref=m.schema.$ref,m.def))for(const v in u)v==="$ref"||v==="allOf"||v in m.def&&JSON.stringify(u[v])===JSON.stringify(m.def[v])&&delete u[v]}e.override({zodSchema:s,jsonSchema:u,path:c.path??[]})};for(const s of[...e.seen.entries()].reverse())i(s[0]);const n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Object.assign(n,r.def??r.schema);const o=e.metadataRegistry.get(t)?.id;o!==void 0&&n.id===o&&delete n.id;const a=e.external?.defs??{};for(const s of e.seen.entries()){const c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{const s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:vt(t,"input",e.processors),output:vt(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function q(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return q(i.element,r);if(i.type==="set")return q(i.valueType,r);if(i.type==="lazy")return q(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return q(i.innerType,r);if(i.type==="intersection")return q(i.left,r)||q(i.right,r);if(i.type==="record"||i.type==="map")return q(i.keyType,r)||q(i.valueType,r);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:q(i.in,r)||q(i.out,r);if(i.type==="object"){for(const n in i.shape)if(q(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(const n of i.options)if(q(n,r))return!0;return!1}if(i.type==="tuple"){for(const n of i.items)if(q(n,r))return!0;return!!(i.rest&&q(i.rest,r))}return!1}const vl=(e,t={})=>r=>{const i=We({...r,processors:t});return P(e,i),Ge(i,e),Xe(i,e)},vt=(e,t,r={})=>i=>{const{libraryOptions:n,target:o}=i??{},a=We({...n??{},target:o,io:t,processors:r});return P(e,a),Ge(a,e),Xe(a,e)},Ah={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},yl=(e,t,r,i)=>{const n=r;n.type="string";const{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),s&&(n.format=Ah[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){const l=[...c];l.length===1?n.pattern=l[0].source:l.length>1&&(n.allOf=[...l.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},$l=(e,t,r,i)=>{const n=r,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number";const d=typeof l=="number"&&l>=(o??Number.NEGATIVE_INFINITY),f=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),m=t.target==="draft-04"||t.target==="openapi-3.0";d?m?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:typeof o=="number"&&(n.minimum=o),f?m?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:typeof a=="number"&&(n.maximum=a),typeof c=="number"&&(n.multipleOf=c)},bl=(e,t,r,i)=>{r.type="boolean"},_l=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},kl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},wl=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Sl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Il=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},zl=(e,t,r,i)=>{r.not={}},Ol=(e,t,r,i)=>{},Nl=(e,t,r,i)=>{},xl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},jl=(e,t,r,i)=>{const n=e._zod.def,o=Mr(n.entries);o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},Ul=(e,t,r,i)=>{const n=e._zod.def,o=[];for(const a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){const a=o[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o},Tl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Dl=(e,t,r,i)=>{const n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},El=(e,t,r,i)=>{const n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),c?c.length===1?(o.contentMediaType=c[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(n,o)},Pl=(e,t,r,i)=>{r.type="boolean"},Al=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Zl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ll=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Cl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Rl=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Ml=(e,t,r,i)=>{const n=r,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=P(o.element,t,{...i,path:[...i.path,"items"]})},Fl=(e,t,r,i)=>{const n=r,o=e._zod.def;n.type="object",n.properties={};const a=o.shape;for(const u in a)n.properties[u]=P(a[u],t,{...i,path:[...i.path,"properties",u]});const s=new Set(Object.keys(a)),c=new Set([...s].filter(u=>{const l=o.shape[u]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(n.required=Array.from(c)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=P(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Mi=(e,t,r,i)=>{const n=e._zod.def,o=n.inclusive===!1,a=n.options.map((s,c)=>P(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=a:r.anyOf=a},Jl=(e,t,r,i)=>{const n=e._zod.def,o=P(n.left,t,{...i,path:[...i.path,"allOf",0]}),a=P(n.right,t,{...i,path:[...i.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];r.allOf=c},Kl=(e,t,r,i)=>{const n=r,o=e._zod.def;n.type="array";const a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((f,m)=>P(f,t,{...i,path:[...i.path,a,m]})),u=o.rest?P(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),n.minItems=c.length,u||(n.maxItems=c.length)):(n.items=c,u&&(n.additionalItems=u));const{minimum:l,maximum:d}=e._zod.bag;typeof l=="number"&&(n.minItems=l),typeof d=="number"&&(n.maxItems=d)},Bl=(e,t,r,i)=>{const n=r,o=e._zod.def;n.type="object";const a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){const l=P(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(const d of c)n.patternProperties[d.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=P(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=P(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});const u=a._zod.values;if(u){const l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(n.required=l)}},Vl=(e,t,r,i)=>{const n=e._zod.def,o=P(n.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},ql=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType},Wl=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Gl=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Xl=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Yl=(e,t,r,i)=>{const n=e._zod.def,o=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?n.out:n.in:n.out;P(a,t,i);const s=t.seen.get(e);s.ref=a},Hl=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},Ql=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType},Fi=(e,t,r,i)=>{const n=e._zod.def;P(n.innerType,t,i);const o=t.seen.get(e);o.ref=n.innerType},ed=(e,t,r,i)=>{const n=e._zod.innerType;P(n,t,i);const o=t.seen.get(e);o.ref=n},Ur={string:yl,number:$l,boolean:bl,bigint:_l,symbol:kl,null:wl,undefined:Sl,void:Il,never:zl,any:Ol,unknown:Nl,date:xl,enum:jl,literal:Ul,nan:Tl,template_literal:Dl,file:El,success:Pl,custom:Al,function:Zl,transform:Ll,map:Cl,set:Rl,array:Ml,object:Fl,union:Mi,intersection:Jl,tuple:Kl,record:Bl,nullable:Vl,nonoptional:ql,default:Wl,prefault:Gl,catch:Xl,pipe:Yl,readonly:Hl,promise:Ql,optional:Fi,lazy:ed};function td(e,t){if("_idmap"in e){const i=e,n=We({...t,processors:Ur}),o={};for(const c of i._idmap.entries()){const[u,l]=c;P(l,n)}const a={},s={registry:i,uri:t?.uri,defs:o};n.external=s;for(const c of i._idmap.entries()){const[u,l]=c;Ge(n,l),a[u]=Xe(n,l)}if(Object.keys(o).length>0){const c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}const r=We({...t,processors:Ur});return P(e,r),Ge(r,e),Xe(r,e)}class Zh{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=We({processors:Ur,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return P(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Ge(this.ctx,t);const i=Xe(this.ctx,t),{"~standard":n,...o}=i;return o}}const Lh=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ch=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:Jc,$ZodArray:Wc,$ZodAsyncError:Ne,$ZodBase64:Uc,$ZodBase64URL:Dc,$ZodBigInt:li,$ZodBigIntFormat:Cc,$ZodBoolean:ui,$ZodCIDRv4:xc,$ZodCIDRv6:jc,$ZodCUID:vc,$ZodCUID2:yc,$ZodCatch:gu,$ZodCheck:C,$ZodCheckBigIntFormat:qs,$ZodCheckEndsWith:oc,$ZodCheckGreaterThan:ai,$ZodCheckIncludes:rc,$ZodCheckLengthEquals:Qs,$ZodCheckLessThan:oi,$ZodCheckLowerCase:tc,$ZodCheckMaxLength:Ys,$ZodCheckMaxSize:Ws,$ZodCheckMimeType:sc,$ZodCheckMinLength:Hs,$ZodCheckMinSize:Gs,$ZodCheckMultipleOf:Bs,$ZodCheckNumberFormat:Vs,$ZodCheckOverwrite:cc,$ZodCheckProperty:ac,$ZodCheckRegex:ec,$ZodCheckSizeEquals:Xs,$ZodCheckStartsWith:ic,$ZodCheckStringFormat:jt,$ZodCheckUpperCase:nc,$ZodCodec:pi,$ZodCustom:wu,$ZodCustomStringFormat:Zc,$ZodDate:qc,$ZodDefault:du,$ZodDiscriminatedUnion:eu,$ZodE164:Ec,$ZodEmail:mc,$ZodEmoji:gc,$ZodEncodeError:_n,$ZodEnum:ou,$ZodError:Jr,$ZodExactOptional:uu,$ZodFile:su,$ZodFunction:bu,$ZodGUID:dc,$ZodIPv4:zc,$ZodIPv6:Oc,$ZodISODate:wc,$ZodISODateTime:kc,$ZodISODuration:Ic,$ZodISOTime:Sc,$ZodIntersection:tu,$ZodJWT:Ac,$ZodKSUID:_c,$ZodLazy:ku,$ZodLiteral:au,$ZodMAC:Nc,$ZodMap:ru,$ZodNaN:hu,$ZodNanoID:hc,$ZodNever:Bc,$ZodNonOptional:mu,$ZodNull:Fc,$ZodNullable:lu,$ZodNumber:ci,$ZodNumberFormat:Lc,$ZodObject:Yc,$ZodObjectJIT:Hc,$ZodOptional:fi,$ZodPipe:mi,$ZodPrefault:fu,$ZodPreprocess:vu,$ZodPromise:_u,$ZodReadonly:yu,$ZodRealError:H,$ZodRecord:nu,$ZodRegistry:ju,$ZodSet:iu,$ZodString:Ut,$ZodStringFormat:A,$ZodSuccess:pu,$ZodSymbol:Rc,$ZodTemplateLiteral:$u,$ZodTransform:cu,$ZodTuple:di,$ZodType:j,$ZodULID:$c,$ZodURL:pc,$ZodUUID:fc,$ZodUndefined:Mc,$ZodUnion:zn,$ZodUnknown:Kc,$ZodVoid:Vc,$ZodXID:bc,$ZodXor:Qc,$brand:Ra,$constructor:p,$input:xu,$output:Nu,Doc:uc,JSONSchema:Lh,JSONSchemaGenerator:Zh,NEVER:Ca,TimePrecision:Eu,_any:tl,_array:cl,_base64:Ti,_base64url:Di,_bigint:Wu,_boolean:Vu,_catch:jh,_check:ml,_cidrv4:ji,_cidrv6:Ui,_coercedBigint:Gu,_coercedBoolean:qu,_coercedDate:al,_coercedNumber:Ru,_coercedString:Tu,_cuid:wi,_cuid2:Si,_custom:ll,_date:ol,_decode:Wr,_decodeAsync:Xr,_default:Oh,_discriminatedUnion:gh,_e164:Ei,_email:hi,_emoji:_i,_encode:qr,_encodeAsync:Gr,_endsWith:Dn,_enum:_h,_file:ul,_float32:Fu,_float64:Ju,_gt:_e,_gte:X,_guid:mn,_includes:Un,_int:Mu,_int32:Ku,_int64:Xu,_intersection:hh,_ipv4:Ni,_ipv6:xi,_isoDate:Au,_isoDateTime:Pu,_isoDuration:Lu,_isoTime:Zu,_jwt:Pi,_ksuid:Oi,_lazy:Eh,_length:Et,_literal:wh,_lowercase:xn,_lt:be,_lte:ie,_mac:Du,_map:$h,_max:ie,_maxLength:Dt,_maxSize:nt,_mime:En,_min:X,_minLength:je,_minSize:ke,_multipleOf:qe,_nan:sl,_nanoid:ki,_nativeEnum:kh,_negative:Zi,_never:rl,_nonnegative:Ci,_nonoptional:Nh,_nonpositive:Li,_normalize:Pn,_null:el,_nullable:zh,_number:Cu,_optional:Ih,_overwrite:he,_parse:St,_parseAsync:It,_pipe:Uh,_positive:Ai,_promise:Ph,_property:Ri,_readonly:Th,_record:yh,_refine:dl,_regex:Nn,_safeDecode:Hr,_safeDecodeAsync:ei,_safeEncode:Yr,_safeEncodeAsync:Qr,_safeParse:zt,_safeParseAsync:Ot,_set:bh,_size:Tt,_slugify:Cn,_startsWith:Tn,_string:Uu,_stringFormat:Pt,_stringbool:hl,_success:xh,_superRefine:fl,_symbol:Hu,_templateLiteral:Dh,_toLowerCase:Zn,_toUpperCase:Ln,_transform:Sh,_trim:An,_tuple:vh,_uint32:Bu,_uint64:Yu,_ulid:Ii,_undefined:Qu,_union:mh,_unknown:nl,_uppercase:jn,_url:On,_uuid:vi,_uuidv4:yi,_uuidv6:$i,_uuidv7:bi,_void:il,_xid:zi,_xor:ph,clone:se,config:B,createStandardJSONSchemaMethod:vt,createToJSONSchemaMethod:vl,decode:Bm,decodeAsync:qm,describe:pl,encode:Km,encodeAsync:Vm,extractDefs:Ge,finalize:Xe,flattenError:Kr,formatError:Br,globalConfig:ht,globalRegistry:re,initializeContext:We,isValidBase64:si,isValidBase64URL:Tc,isValidJWT:Pc,locales:Ou,meta:gl,parse:Nr,parseAsync:xr,prettifyError:Vr,process:P,regexes:ii,registry:gi,safeDecode:Gm,safeDecodeAsync:Ym,safeEncode:Wm,safeEncodeAsync:Xm,safeParse:cs,safeParseAsync:us,toDotPath:ss,toJSONSchema:td,treeifyError:as,util:is,version:lc},Symbol.toStringTag,{value:"Module"})),Rh=Object.freeze(Object.defineProperty({__proto__:null,endsWith:Dn,gt:_e,gte:X,includes:Un,length:Et,lowercase:xn,lt:be,lte:ie,maxLength:Dt,maxSize:nt,mime:En,minLength:je,minSize:ke,multipleOf:qe,negative:Zi,nonnegative:Ci,nonpositive:Li,normalize:Pn,overwrite:he,positive:Ai,property:Ri,regex:Nn,size:Tt,slugify:Cn,startsWith:Tn,toLowerCase:Zn,toUpperCase:Ln,trim:An,uppercase:jn},Symbol.toStringTag,{value:"Module"})),Ji=p("ZodISODateTime",(e,t)=>{kc.init(e,t),Z.init(e,t)});function nd(e){return Pu(Ji,e)}const Ki=p("ZodISODate",(e,t)=>{wc.init(e,t),Z.init(e,t)});function rd(e){return Au(Ki,e)}const Bi=p("ZodISOTime",(e,t)=>{Sc.init(e,t),Z.init(e,t)});function id(e){return Zu(Bi,e)}const Vi=p("ZodISODuration",(e,t)=>{Ic.init(e,t),Z.init(e,t)});function od(e){return Lu(Vi,e)}const ad=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Ki,ZodISODateTime:Ji,ZodISODuration:Vi,ZodISOTime:Bi,date:rd,datetime:nd,duration:od,time:id},Symbol.toStringTag,{value:"Module"})),sd=(e,t)=>{Jr.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Br(e,r)},flatten:{value:r=>Kr(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ln,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ln,2)}},isEmpty:{get(){return e.issues.length===0}}})},Mh=p("ZodError",sd),Q=p("ZodError",sd,{Parent:Error}),cd=St(Q),ud=It(Q),ld=zt(Q),dd=Ot(Q),fd=qr(Q),md=Wr(Q),pd=Gr(Q),gd=Xr(Q),hd=Yr(Q),vd=Hr(Q),yd=Qr(Q),$d=ei(Q),Ia=new WeakMap;function At(e,t,r){const i=Object.getPrototypeOf(e);let n=Ia.get(i);if(n||(n=new Set,Ia.set(i,n)),!n.has(t)){n.add(t);for(const o in r){const a=r[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){const s=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}const T=p("ZodType",(e,t)=>(j.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:vt(e,"input"),output:vt(e,"output")}}),e.toJSONSchema=vl(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,i)=>cd(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>ld(e,r,i),e.parseAsync=async(r,i)=>ud(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>dd(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>fd(e,r,i),e.decode=(r,i)=>md(e,r,i),e.encodeAsync=async(r,i)=>pd(e,r,i),e.decodeAsync=async(r,i)=>gd(e,r,i),e.safeEncode=(r,i)=>hd(e,r,i),e.safeDecode=(r,i)=>vd(e,r,i),e.safeEncodeAsync=async(r,i)=>yd(e,r,i),e.safeDecodeAsync=async(r,i)=>$d(e,r,i),At(e,"ZodType",{check(...r){const i=this.def;return this.clone(fe(i,{checks:[...i.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,i){return se(this,r,i)},brand(){return this},register(r,i){return r.add(this,i),this},refine(r,i){return this.check(Lo(r,i))},superRefine(r,i){return this.check(Co(r,i))},overwrite(r){return this.check(he(r))},optional(){return $t(this)},exactOptional(){return $o(this)},nullable(){return bt(this)},nullish(){return $t(bt(this))},nonoptional(r){return Io(this,r)},array(){return Ft(this)},or(r){return ar([this,r])},and(r){return co(this,r)},transform(r){return gn(this,cr(r))},default(r){return ko(this,r)},prefault(r){return So(this,r)},catch(r){return No(this,r)},pipe(r){return gn(this,r)},readonly(){return To(this)},describe(r){const i=this.clone();return re.add(i,{description:r}),i},meta(...r){if(r.length===0)return re.get(this);const i=this.clone();return re.add(i,r[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return re.get(e)?.description},configurable:!0}),e)),Rn=p("_ZodString",(e,t)=>{Ut.init(e,t),T.init(e,t),e._zod.processJSONSchema=(i,n,o)=>yl(e,i,n);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,At(e,"_ZodString",{regex(...i){return this.check(Nn(...i))},includes(...i){return this.check(Un(...i))},startsWith(...i){return this.check(Tn(...i))},endsWith(...i){return this.check(Dn(...i))},min(...i){return this.check(je(...i))},max(...i){return this.check(Dt(...i))},length(...i){return this.check(Et(...i))},nonempty(...i){return this.check(je(1,...i))},lowercase(i){return this.check(xn(i))},uppercase(i){return this.check(jn(i))},trim(){return this.check(An())},normalize(...i){return this.check(Pn(...i))},toLowerCase(){return this.check(Zn())},toUpperCase(){return this.check(Ln())},slugify(){return this.check(Cn())}})}),Zt=p("ZodString",(e,t)=>{Ut.init(e,t),Rn.init(e,t),e.email=r=>e.check(hi(Mn,r)),e.url=r=>e.check(On(Lt,r)),e.jwt=r=>e.check(Pi(nr,r)),e.emoji=r=>e.check(_i(Fn,r)),e.guid=r=>e.check(mn(yt,r)),e.uuid=r=>e.check(vi(le,r)),e.uuidv4=r=>e.check(yi(le,r)),e.uuidv6=r=>e.check($i(le,r)),e.uuidv7=r=>e.check(bi(le,r)),e.nanoid=r=>e.check(ki(Jn,r)),e.guid=r=>e.check(mn(yt,r)),e.cuid=r=>e.check(wi(Kn,r)),e.cuid2=r=>e.check(Si(Bn,r)),e.ulid=r=>e.check(Ii(Vn,r)),e.base64=r=>e.check(Ti(Qn,r)),e.base64url=r=>e.check(Di(er,r)),e.xid=r=>e.check(zi(qn,r)),e.ksuid=r=>e.check(Oi(Wn,r)),e.ipv4=r=>e.check(Ni(Gn,r)),e.ipv6=r=>e.check(xi(Xn,r)),e.cidrv4=r=>e.check(ji(Yn,r)),e.cidrv6=r=>e.check(Ui(Hn,r)),e.e164=r=>e.check(Ei(tr,r)),e.datetime=r=>e.check(nd(r)),e.date=r=>e.check(rd(r)),e.time=r=>e.check(id(r)),e.duration=r=>e.check(od(r))});function Ye(e){return Uu(Zt,e)}const Z=p("ZodStringFormat",(e,t)=>{A.init(e,t),Rn.init(e,t)}),Mn=p("ZodEmail",(e,t)=>{mc.init(e,t),Z.init(e,t)});function bd(e){return hi(Mn,e)}const yt=p("ZodGUID",(e,t)=>{dc.init(e,t),Z.init(e,t)});function _d(e){return mn(yt,e)}const le=p("ZodUUID",(e,t)=>{fc.init(e,t),Z.init(e,t)});function kd(e){return vi(le,e)}function wd(e){return yi(le,e)}function Sd(e){return $i(le,e)}function Id(e){return bi(le,e)}const Lt=p("ZodURL",(e,t)=>{pc.init(e,t),Z.init(e,t)});function zd(e){return On(Lt,e)}function Od(e){return On(Lt,{protocol:ni,hostname:Ns,...y(e)})}const Fn=p("ZodEmoji",(e,t)=>{gc.init(e,t),Z.init(e,t)});function Nd(e){return _i(Fn,e)}const Jn=p("ZodNanoID",(e,t)=>{hc.init(e,t),Z.init(e,t)});function xd(e){return ki(Jn,e)}const Kn=p("ZodCUID",(e,t)=>{vc.init(e,t),Z.init(e,t)});function jd(e){return wi(Kn,e)}const Bn=p("ZodCUID2",(e,t)=>{yc.init(e,t),Z.init(e,t)});function Ud(e){return Si(Bn,e)}const Vn=p("ZodULID",(e,t)=>{$c.init(e,t),Z.init(e,t)});function Td(e){return Ii(Vn,e)}const qn=p("ZodXID",(e,t)=>{bc.init(e,t),Z.init(e,t)});function Dd(e){return zi(qn,e)}const Wn=p("ZodKSUID",(e,t)=>{_c.init(e,t),Z.init(e,t)});function Ed(e){return Oi(Wn,e)}const Gn=p("ZodIPv4",(e,t)=>{zc.init(e,t),Z.init(e,t)});function Pd(e){return Ni(Gn,e)}const qi=p("ZodMAC",(e,t)=>{Nc.init(e,t),Z.init(e,t)});function Ad(e){return Du(qi,e)}const Xn=p("ZodIPv6",(e,t)=>{Oc.init(e,t),Z.init(e,t)});function Zd(e){return xi(Xn,e)}const Yn=p("ZodCIDRv4",(e,t)=>{xc.init(e,t),Z.init(e,t)});function Ld(e){return ji(Yn,e)}const Hn=p("ZodCIDRv6",(e,t)=>{jc.init(e,t),Z.init(e,t)});function Cd(e){return Ui(Hn,e)}const Qn=p("ZodBase64",(e,t)=>{Uc.init(e,t),Z.init(e,t)});function Rd(e){return Ti(Qn,e)}const er=p("ZodBase64URL",(e,t)=>{Dc.init(e,t),Z.init(e,t)});function Md(e){return Di(er,e)}const tr=p("ZodE164",(e,t)=>{Ec.init(e,t),Z.init(e,t)});function Fd(e){return Ei(tr,e)}const nr=p("ZodJWT",(e,t)=>{Ac.init(e,t),Z.init(e,t)});function Jd(e){return Pi(nr,e)}const rt=p("ZodCustomStringFormat",(e,t)=>{Zc.init(e,t),Z.init(e,t)});function Kd(e,t,r={}){return Pt(rt,e,t,r)}function Bd(e){return Pt(rt,"hostname",Os,e)}function Vd(e){return Pt(rt,"hex",Js,e)}function qd(e,t){const r=t?.enc??"hex",i=`${e}_${r}`,n=ii[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Pt(rt,i,n,t)}const Ct=p("ZodNumber",(e,t)=>{ci.init(e,t),T.init(e,t),e._zod.processJSONSchema=(i,n,o)=>$l(e,i,n),At(e,"ZodNumber",{gt(i,n){return this.check(_e(i,n))},gte(i,n){return this.check(X(i,n))},min(i,n){return this.check(X(i,n))},lt(i,n){return this.check(be(i,n))},lte(i,n){return this.check(ie(i,n))},max(i,n){return this.check(ie(i,n))},int(i){return this.check(pn(i))},safe(i){return this.check(pn(i))},positive(i){return this.check(_e(0,i))},nonnegative(i){return this.check(X(0,i))},negative(i){return this.check(be(0,i))},nonpositive(i){return this.check(ie(0,i))},multipleOf(i,n){return this.check(qe(i,n))},step(i,n){return this.check(qe(i,n))},finite(){return this}});const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function Wi(e){return Cu(Ct,e)}const Ee=p("ZodNumberFormat",(e,t)=>{Lc.init(e,t),Ct.init(e,t)});function pn(e){return Mu(Ee,e)}function Wd(e){return Fu(Ee,e)}function Gd(e){return Ju(Ee,e)}function Xd(e){return Ku(Ee,e)}function Yd(e){return Bu(Ee,e)}const Rt=p("ZodBoolean",(e,t)=>{ui.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>bl(e,r,i)});function Gi(e){return Vu(Rt,e)}const Mt=p("ZodBigInt",(e,t)=>{li.init(e,t),T.init(e,t),e._zod.processJSONSchema=(i,n,o)=>_l(e,i),e.gte=(i,n)=>e.check(X(i,n)),e.min=(i,n)=>e.check(X(i,n)),e.gt=(i,n)=>e.check(_e(i,n)),e.gte=(i,n)=>e.check(X(i,n)),e.min=(i,n)=>e.check(X(i,n)),e.lt=(i,n)=>e.check(be(i,n)),e.lte=(i,n)=>e.check(ie(i,n)),e.max=(i,n)=>e.check(ie(i,n)),e.positive=i=>e.check(_e(BigInt(0),i)),e.negative=i=>e.check(be(BigInt(0),i)),e.nonpositive=i=>e.check(ie(BigInt(0),i)),e.nonnegative=i=>e.check(X(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(qe(i,n));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Hd(e){return Wu(Mt,e)}const rr=p("ZodBigIntFormat",(e,t)=>{Cc.init(e,t),Mt.init(e,t)});function Qd(e){return Xu(rr,e)}function ef(e){return Yu(rr,e)}const Xi=p("ZodSymbol",(e,t)=>{Rc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>kl(e,r)});function tf(e){return Hu(Xi,e)}const Yi=p("ZodUndefined",(e,t)=>{Mc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Sl(e,r)});function nf(e){return Qu(Yi,e)}const Hi=p("ZodNull",(e,t)=>{Fc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>wl(e,r,i)});function Qi(e){return el(Hi,e)}const eo=p("ZodAny",(e,t)=>{Jc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ol()});function rf(){return tl(eo)}const to=p("ZodUnknown",(e,t)=>{Kc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Nl()});function Ue(){return nl(to)}const no=p("ZodNever",(e,t)=>{Bc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>zl(e,r,i)});function ir(e){return rl(no,e)}const ro=p("ZodVoid",(e,t)=>{Vc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Il(e,r)});function of(e){return il(ro,e)}const or=p("ZodDate",(e,t)=>{qc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(i,n,o)=>xl(e,i),e.min=(i,n)=>e.check(X(i,n)),e.max=(i,n)=>e.check(ie(i,n));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function af(e){return ol(or,e)}const io=p("ZodArray",(e,t)=>{Wc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ml(e,r,i,n),e.element=t.element,At(e,"ZodArray",{min(r,i){return this.check(je(r,i))},nonempty(r){return this.check(je(1,r))},max(r,i){return this.check(Dt(r,i))},length(r,i){return this.check(Et(r,i))},unwrap(){return this.element}})});function Ft(e,t){return cl(io,e,t)}function sf(e){const t=e._zod.def.shape;return sr(Object.keys(t))}const Jt=p("ZodObject",(e,t)=>{Hc.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fl(e,r,i,n),D(e,"shape",()=>t.shape),At(e,"ZodObject",{keyof(){return sr(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:Ue()})},loose(){return this.clone({...this._zod.def,catchall:Ue()})},strict(){return this.clone({...this._zod.def,catchall:ir()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return Xa(this,r)},safeExtend(r){return Ya(this,r)},merge(r){return Ha(this,r)},pick(r){return Wa(this,r)},omit(r){return Ga(this,r)},partial(...r){return Qa(ur,this,r[0])},required(...r){return es(lr,this,r[0])}})});function cf(e,t){const r={type:"object",shape:e??{},...y(t)};return new Jt(r)}function uf(e,t){return new Jt({type:"object",shape:e,catchall:ir(),...y(t)})}function lf(e,t){return new Jt({type:"object",shape:e,catchall:Ue(),...y(t)})}const Kt=p("ZodUnion",(e,t)=>{zn.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mi(e,r,i,n),e.options=t.options});function ar(e,t){return new Kt({type:"union",options:e,...y(t)})}const oo=p("ZodXor",(e,t)=>{Kt.init(e,t),Qc.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mi(e,r,i,n),e.options=t.options});function df(e,t){return new oo({type:"union",options:e,inclusive:!1,...y(t)})}const ao=p("ZodDiscriminatedUnion",(e,t)=>{Kt.init(e,t),eu.init(e,t)});function ff(e,t,r){return new ao({type:"union",options:t,discriminator:e,...y(r)})}const so=p("ZodIntersection",(e,t)=>{tu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Jl(e,r,i,n)});function co(e,t){return new so({type:"intersection",left:e,right:t})}const uo=p("ZodTuple",(e,t)=>{di.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Kl(e,r,i,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function lo(e,t,r){const i=t instanceof j,n=i?r:t,o=i?t:null;return new uo({type:"tuple",items:e,rest:o,...y(n)})}const He=p("ZodRecord",(e,t)=>{nu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Bl(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function fo(e,t,r){return!t||!t._zod?new He({type:"record",keyType:Ye(),valueType:e,...y(t)}):new He({type:"record",keyType:e,valueType:t,...y(r)})}function mf(e,t,r){const i=se(e);return i._zod.values=void 0,new He({type:"record",keyType:i,valueType:t,...y(r)})}function pf(e,t,r){return new He({type:"record",keyType:e,valueType:t,mode:"loose",...y(r)})}const mo=p("ZodMap",(e,t)=>{ru.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cl(e,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(ke(...r)),e.nonempty=r=>e.check(ke(1,r)),e.max=(...r)=>e.check(nt(...r)),e.size=(...r)=>e.check(Tt(...r))});function gf(e,t,r){return new mo({type:"map",keyType:e,valueType:t,...y(r)})}const po=p("ZodSet",(e,t)=>{iu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Rl(e,r),e.min=(...r)=>e.check(ke(...r)),e.nonempty=r=>e.check(ke(1,r)),e.max=(...r)=>e.check(nt(...r)),e.size=(...r)=>e.check(Tt(...r))});function hf(e,t){return new po({type:"set",valueType:e,...y(t)})}const Qe=p("ZodEnum",(e,t)=>{ou.init(e,t),T.init(e,t),e._zod.processJSONSchema=(i,n,o)=>jl(e,i,n),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{const o={};for(const a of i)if(r.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Qe({...t,checks:[],...y(n),entries:o})},e.exclude=(i,n)=>{const o={...t.entries};for(const a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Qe({...t,checks:[],...y(n),entries:o})}});function sr(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Qe({type:"enum",entries:r,...y(t)})}function vf(e,t){return new Qe({type:"enum",entries:e,...y(t)})}const go=p("ZodLiteral",(e,t)=>{au.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ul(e,r,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function yf(e,t){return new go({type:"literal",values:Array.isArray(e)?e:[e],...y(t)})}const ho=p("ZodFile",(e,t)=>{su.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>El(e,r,i),e.min=(r,i)=>e.check(ke(r,i)),e.max=(r,i)=>e.check(nt(r,i)),e.mime=(r,i)=>e.check(En(Array.isArray(r)?r:[r],i))});function $f(e){return ul(ho,e)}const vo=p("ZodTransform",(e,t)=>{cu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ll(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new _n(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(Be(o,r.value,t));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Be(a))}};const n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function cr(e){return new vo({type:"transform",transform:e})}const ur=p("ZodOptional",(e,t)=>{fi.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fi(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function $t(e){return new ur({type:"optional",innerType:e})}const yo=p("ZodExactOptional",(e,t)=>{uu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fi(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function $o(e){return new yo({type:"optional",innerType:e})}const bo=p("ZodNullable",(e,t)=>{lu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Vl(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function bt(e){return new bo({type:"nullable",innerType:e})}function bf(e){return $t(bt(e))}const _o=p("ZodDefault",(e,t)=>{du.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Wl(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ko(e,t){return new _o({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():wn(t)}})}const wo=p("ZodPrefault",(e,t)=>{fu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Gl(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function So(e,t){return new wo({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():wn(t)}})}const lr=p("ZodNonOptional",(e,t)=>{mu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ql(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Io(e,t){return new lr({type:"nonoptional",innerType:e,...y(t)})}const zo=p("ZodSuccess",(e,t)=>{pu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Pl(e,r,i),e.unwrap=()=>e._zod.def.innerType});function _f(e){return new zo({type:"success",innerType:e})}const Oo=p("ZodCatch",(e,t)=>{gu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Xl(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function No(e,t){return new Oo({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const xo=p("ZodNaN",(e,t)=>{hu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Tl(e,r)});function kf(e){return sl(xo,e)}const Bt=p("ZodPipe",(e,t)=>{mi.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Yl(e,r,i,n),e.in=t.in,e.out=t.out});function gn(e,t){return new Bt({type:"pipe",in:e,out:t})}const Vt=p("ZodCodec",(e,t)=>{Bt.init(e,t),pi.init(e,t)});function wf(e,t,r){return new Vt({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function Sf(e){const t=e._zod.def;return new Vt({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}const jo=p("ZodPreprocess",(e,t)=>{Bt.init(e,t),vu.init(e,t)}),Uo=p("ZodReadonly",(e,t)=>{yu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Hl(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function To(e){return new Uo({type:"readonly",innerType:e})}const Do=p("ZodTemplateLiteral",(e,t)=>{$u.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Dl(e,r,i)});function If(e,t){return new Do({type:"template_literal",parts:e,...y(t)})}const Eo=p("ZodLazy",(e,t)=>{ku.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ed(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function Po(e){return new Eo({type:"lazy",getter:e})}const Ao=p("ZodPromise",(e,t)=>{_u.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ql(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function zf(e){return new Ao({type:"promise",innerType:e})}const Zo=p("ZodFunction",(e,t)=>{bu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zl(e,r)});function hn(e){return new Zo({type:"function",input:Array.isArray(e?.input)?lo(e?.input):e?.input??Ft(Ue()),output:e?.output??Ue()})}const qt=p("ZodCustom",(e,t)=>{wu.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Al(e,r)});function Of(e){const t=new C({check:"custom"});return t._zod.check=e,t}function Nf(e,t){return ll(qt,e??(()=>!0),t)}function Lo(e,t={}){return dl(qt,e,t)}function Co(e,t){return fl(e,t)}const xf=pl,jf=gl;function Uf(e,t={}){const r=new qt({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...y(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}const Tf=(...e)=>hl({Codec:Vt,Boolean:Rt,String:Zt},...e);function Df(e){const t=Po(()=>ar([Ye(e),Wi(),Gi(),Qi(),Ft(t),fo(Ye(),t)]));return t}function Ef(e,t){return new jo({type:"pipe",in:cr(e),out:t})}const Fh=Object.freeze(Object.defineProperty({__proto__:null,ZodAny:eo,ZodArray:io,ZodBase64:Qn,ZodBase64URL:er,ZodBigInt:Mt,ZodBigIntFormat:rr,ZodBoolean:Rt,ZodCIDRv4:Yn,ZodCIDRv6:Hn,ZodCUID:Kn,ZodCUID2:Bn,ZodCatch:Oo,ZodCodec:Vt,ZodCustom:qt,ZodCustomStringFormat:rt,ZodDate:or,ZodDefault:_o,ZodDiscriminatedUnion:ao,ZodE164:tr,ZodEmail:Mn,ZodEmoji:Fn,ZodEnum:Qe,ZodExactOptional:yo,ZodFile:ho,ZodFunction:Zo,ZodGUID:yt,ZodIPv4:Gn,ZodIPv6:Xn,ZodIntersection:so,ZodJWT:nr,ZodKSUID:Wn,ZodLazy:Eo,ZodLiteral:go,ZodMAC:qi,ZodMap:mo,ZodNaN:xo,ZodNanoID:Jn,ZodNever:no,ZodNonOptional:lr,ZodNull:Hi,ZodNullable:bo,ZodNumber:Ct,ZodNumberFormat:Ee,ZodObject:Jt,ZodOptional:ur,ZodPipe:Bt,ZodPrefault:wo,ZodPreprocess:jo,ZodPromise:Ao,ZodReadonly:Uo,ZodRecord:He,ZodSet:po,ZodString:Zt,ZodStringFormat:Z,ZodSuccess:zo,ZodSymbol:Xi,ZodTemplateLiteral:Do,ZodTransform:vo,ZodTuple:uo,ZodType:T,ZodULID:Vn,ZodURL:Lt,ZodUUID:le,ZodUndefined:Yi,ZodUnion:Kt,ZodUnknown:to,ZodVoid:ro,ZodXID:qn,ZodXor:oo,_ZodString:Rn,_default:ko,_function:hn,any:rf,array:Ft,base64:Rd,base64url:Md,bigint:Hd,boolean:Gi,catch:No,check:Of,cidrv4:Ld,cidrv6:Cd,codec:wf,cuid:jd,cuid2:Ud,custom:Nf,date:af,describe:xf,discriminatedUnion:ff,e164:Fd,email:bd,emoji:Nd,enum:sr,exactOptional:$o,file:$f,float32:Wd,float64:Gd,function:hn,guid:_d,hash:qd,hex:Vd,hostname:Bd,httpUrl:Od,instanceof:Uf,int:pn,int32:Xd,int64:Qd,intersection:co,invertCodec:Sf,ipv4:Pd,ipv6:Zd,json:Df,jwt:Jd,keyof:sf,ksuid:Ed,lazy:Po,literal:yf,looseObject:lf,looseRecord:pf,mac:Ad,map:gf,meta:jf,nan:kf,nanoid:xd,nativeEnum:vf,never:ir,nonoptional:Io,null:Qi,nullable:bt,nullish:bf,number:Wi,object:cf,optional:$t,partialRecord:mf,pipe:gn,prefault:So,preprocess:Ef,promise:zf,readonly:To,record:fo,refine:Lo,set:hf,strictObject:uf,string:Ye,stringFormat:Kd,stringbool:Tf,success:_f,superRefine:Co,symbol:tf,templateLiteral:If,transform:cr,tuple:lo,uint32:Yd,uint64:ef,ulid:Td,undefined:nf,union:ar,unknown:Ue,url:zd,uuid:kd,uuidv4:wd,uuidv6:Sd,uuidv7:Id,void:of,xid:Dd,xor:df},Symbol.toStringTag,{value:"Module"})),Jh={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Kh(e){B({customError:e})}function Bh(){return B().customError}var Tr;Tr||(Tr={});const b={...Fh,...Rh,iso:ad},Vh=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function qh(e,t){const r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function Wh(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;const i=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){const n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function Pf(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return b.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return b.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);const o=Wh(n,t),a=V(o,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){const n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return b.null();if(n.length===0)return b.never();if(n.length===1)return b.literal(n[0]);if(n.every(a=>typeof a=="string"))return b.enum(n);const o=n.map(a=>b.literal(a));return o.length<2?o[0]:b.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return b.literal(e.const);const r=e.type;if(Array.isArray(r)){const n=r.map(o=>{const a={...e,type:o};return Pf(a,t)});return n.length===0?b.never():n.length===1?n[0]:b.union(n)}if(!r)return b.any();let i;switch(r){case"string":{let n=b.string();if(e.format){const o=e.format;o==="email"?n=n.check(b.email()):o==="uri"||o==="uri-reference"?n=n.check(b.url()):o==="uuid"||o==="guid"?n=n.check(b.uuid()):o==="date-time"?n=n.check(b.iso.datetime()):o==="date"?n=n.check(b.iso.date()):o==="time"?n=n.check(b.iso.time()):o==="duration"?n=n.check(b.iso.duration()):o==="ipv4"?n=n.check(b.ipv4()):o==="ipv6"?n=n.check(b.ipv6()):o==="mac"?n=n.check(b.mac()):o==="cidr"?n=n.check(b.cidrv4()):o==="cidr-v6"?n=n.check(b.cidrv6()):o==="base64"?n=n.check(b.base64()):o==="base64url"?n=n.check(b.base64url()):o==="e164"?n=n.check(b.e164()):o==="jwt"?n=n.check(b.jwt()):o==="emoji"?n=n.check(b.emoji()):o==="nanoid"?n=n.check(b.nanoid()):o==="cuid"?n=n.check(b.cuid()):o==="cuid2"?n=n.check(b.cuid2()):o==="ulid"?n=n.check(b.ulid()):o==="xid"?n=n.check(b.xid()):o==="ksuid"&&(n=n.check(b.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?b.number().int():b.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case"boolean":{i=b.boolean();break}case"null":{i=b.null();break}case"object":{const n={},o=e.properties||{},a=new Set(e.required||[]);for(const[c,u]of Object.entries(o)){const l=V(u,t);n[c]=a.has(c)?l:l.optional()}if(e.propertyNames){const c=V(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?V(e.additionalProperties,t):b.any();if(Object.keys(n).length===0){i=b.record(c,u);break}const l=b.object(n).passthrough(),d=b.looseRecord(c,u);i=b.intersection(l,d);break}if(e.patternProperties){const c=e.patternProperties,u=Object.keys(c),l=[];for(const f of u){const m=V(c[f],t),v=b.string().regex(new RegExp(f));l.push(b.looseRecord(v,m))}const d=[];if(Object.keys(n).length>0&&d.push(b.object(n).passthrough()),d.push(...l),d.length===0)i=b.object({}).passthrough();else if(d.length===1)i=d[0];else{let f=b.intersection(d[0],d[1]);for(let m=2;m<d.length;m++)f=b.intersection(f,d[m]);i=f}break}const s=b.object(n);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(V(e.additionalProperties,t)):i=s.passthrough();break}case"array":{const n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){const a=n.map(c=>V(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?V(o,t):void 0;s?i=b.tuple(a).rest(s):i=b.tuple(a),typeof e.minItems=="number"&&(i=i.check(b.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(b.maxLength(e.maxItems)))}else if(Array.isArray(o)){const a=o.map(c=>V(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?V(e.additionalItems,t):void 0;s?i=b.tuple(a).rest(s):i=b.tuple(a),typeof e.minItems=="number"&&(i=i.check(b.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(b.maxLength(e.maxItems)))}else if(o!==void 0){const a=V(o,t);let s=b.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=b.array(b.any());break}default:throw new Error(`Unsupported type: ${r}`)}return i}function V(e,t){if(typeof e=="boolean")return e?b.any():b.never();let r=Pf(e,t);const i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const s=e.anyOf.map(u=>V(u,t)),c=b.union(s);r=i?b.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){const s=e.oneOf.map(u=>V(u,t)),c=b.xor(s);r=i?b.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:b.any();else{let s=i?r:V(e.allOf[0],t);const c=i?0:1;for(let u=c;u<e.allOf.length;u++)s=b.intersection(s,V(e.allOf[u],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=b.nullable(r)),e.readOnly===!0&&(r=b.readonly(r)),e.default!==void 0&&(r=r.default(e.default));const n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const s of o)s in e&&(n[s]=e[s]);const a=["contentEncoding","contentMediaType","contentSchema"];for(const s of a)s in e&&(n[s]=e[s]);for(const s of Object.keys(e))Vh.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function Gh(e,t){if(typeof e=="boolean")return e?b.any():b.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}const i=qh(r,t?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??re};return V(r,o)}function Xh(e){return Tu(Zt,e)}function Yh(e){return Ru(Ct,e)}function Hh(e){return qu(Rt,e)}function Qh(e){return Gu(Mt,e)}function ev(e){return al(or,e)}const tv=Object.freeze(Object.defineProperty({__proto__:null,bigint:Qh,boolean:Hh,date:ev,number:Yh,string:Xh},Symbol.toStringTag,{value:"Module"}));B(Su());const za=Object.freeze(Object.defineProperty({__proto__:null,$brand:Ra,$input:xu,$output:Nu,NEVER:Ca,TimePrecision:Eu,ZodAny:eo,ZodArray:io,ZodBase64:Qn,ZodBase64URL:er,ZodBigInt:Mt,ZodBigIntFormat:rr,ZodBoolean:Rt,ZodCIDRv4:Yn,ZodCIDRv6:Hn,ZodCUID:Kn,ZodCUID2:Bn,ZodCatch:Oo,ZodCodec:Vt,ZodCustom:qt,ZodCustomStringFormat:rt,ZodDate:or,ZodDefault:_o,ZodDiscriminatedUnion:ao,ZodE164:tr,ZodEmail:Mn,ZodEmoji:Fn,ZodEnum:Qe,ZodError:Mh,ZodExactOptional:yo,ZodFile:ho,get ZodFirstPartyTypeKind(){return Tr},ZodFunction:Zo,ZodGUID:yt,ZodIPv4:Gn,ZodIPv6:Xn,ZodISODate:Ki,ZodISODateTime:Ji,ZodISODuration:Vi,ZodISOTime:Bi,ZodIntersection:so,ZodIssueCode:Jh,ZodJWT:nr,ZodKSUID:Wn,ZodLazy:Eo,ZodLiteral:go,ZodMAC:qi,ZodMap:mo,ZodNaN:xo,ZodNanoID:Jn,ZodNever:no,ZodNonOptional:lr,ZodNull:Hi,ZodNullable:bo,ZodNumber:Ct,ZodNumberFormat:Ee,ZodObject:Jt,ZodOptional:ur,ZodPipe:Bt,ZodPrefault:wo,ZodPreprocess:jo,ZodPromise:Ao,ZodReadonly:Uo,ZodRealError:Q,ZodRecord:He,ZodSet:po,ZodString:Zt,ZodStringFormat:Z,ZodSuccess:zo,ZodSymbol:Xi,ZodTemplateLiteral:Do,ZodTransform:vo,ZodTuple:uo,ZodType:T,ZodULID:Vn,ZodURL:Lt,ZodUUID:le,ZodUndefined:Yi,ZodUnion:Kt,ZodUnknown:to,ZodVoid:ro,ZodXID:qn,ZodXor:oo,_ZodString:Rn,_default:ko,_function:hn,any:rf,array:Ft,base64:Rd,base64url:Md,bigint:Hd,boolean:Gi,catch:No,check:Of,cidrv4:Ld,cidrv6:Cd,clone:se,codec:wf,coerce:tv,config:B,core:Ch,cuid:jd,cuid2:Ud,custom:Nf,date:af,decode:md,decodeAsync:gd,describe:xf,discriminatedUnion:ff,e164:Fd,email:bd,emoji:Nd,encode:fd,encodeAsync:pd,endsWith:Dn,enum:sr,exactOptional:$o,file:$f,flattenError:Kr,float32:Wd,float64:Gd,formatError:Br,fromJSONSchema:Gh,function:hn,getErrorMap:Bh,globalRegistry:re,gt:_e,gte:X,guid:_d,hash:qd,hex:Vd,hostname:Bd,httpUrl:Od,includes:Un,instanceof:Uf,int:pn,int32:Xd,int64:Qd,intersection:co,invertCodec:Sf,ipv4:Pd,ipv6:Zd,iso:ad,json:Df,jwt:Jd,keyof:sf,ksuid:Ed,lazy:Po,length:Et,literal:yf,locales:Ou,looseObject:lf,looseRecord:pf,lowercase:xn,lt:be,lte:ie,mac:Ad,map:gf,maxLength:Dt,maxSize:nt,meta:jf,mime:En,minLength:je,minSize:ke,multipleOf:qe,nan:kf,nanoid:xd,nativeEnum:vf,negative:Zi,never:ir,nonnegative:Ci,nonoptional:Io,nonpositive:Li,normalize:Pn,null:Qi,nullable:bt,nullish:bf,number:Wi,object:cf,optional:$t,overwrite:he,parse:cd,parseAsync:ud,partialRecord:mf,pipe:gn,positive:Ai,prefault:So,preprocess:Ef,prettifyError:Vr,promise:zf,property:Ri,readonly:To,record:fo,refine:Lo,regex:Nn,regexes:ii,registry:gi,safeDecode:vd,safeDecodeAsync:$d,safeEncode:hd,safeEncodeAsync:yd,safeParse:ld,safeParseAsync:dd,set:hf,setErrorMap:Kh,size:Tt,slugify:Cn,startsWith:Tn,strictObject:uf,string:Ye,stringFormat:Kd,stringbool:Tf,success:_f,superRefine:Co,symbol:tf,templateLiteral:If,toJSONSchema:td,toLowerCase:Zn,toUpperCase:Ln,transform:cr,treeifyError:as,trim:An,tuple:lo,uint32:Yd,uint64:ef,ulid:Td,undefined:nf,union:ar,unknown:Ue,uppercase:jn,url:zd,util:is,uuid:kd,uuidv4:wd,uuidv6:Sd,uuidv7:Id,void:of,xid:Dd,xor:df},Symbol.toStringTag,{value:"Module"})),nv=za.object({id:za.string()}),Af="$ref",vn=":";function rv(e){return Ye().transform(t=>`${Af}${vn}${e}${vn}${t}`)}class iv{_content={};_kinds;constructor(t){this._kinds=t,this.clear()}load(t){for(const r in t)this.loadKind(r,Object.values(t[r]))}loadKind(t,r){const i=this.getMap(t);for(const n of r)i[n.id]=n}getMap(t){const r=this._content[t];if(!r)throw new na(`Could not get map of ${t.toString()}`);return r}getList(t){return Object.values(this.getMap(t))}get(t,r){const i=this._content[r]?.[t];if(!i)throw new Sm(`Could not get '${r.toString()}' with id '${t}'`);return i}getSchema(t){const r=this._kinds[t];if(!r)throw new na(`Could not get schema of ${t.toString()}`);return r}clear(){for(const t in this._kinds)this._content[t]={}}}const Zf=e=>{if(e.path.includes("."))return e.path.split(".").pop()},Lf=e=>{const t=e.path.split(".");if(!(t.length<3))return t[t.length-2]};class ov{run(t){t.objects=t.files.flatMap(r=>{if(Zf(r)!="json")return[];const n=Lf(r);if(!n)return t.warnings.push({type:ee.LouterWarningType.MissingKind,path:r.path,message:"Could not get kind. Is the file formatted as 'id.kind.json'?"}),[];try{return[{path:r.path,kind:n,data:JSON.parse(r.data)}]}catch{return t.warnings.push({path:r.path,type:ee.LouterWarningType.InvalidJson,message:"Could not parse file. Is it valid Json?"}),[]}})}}const Ro=Symbol.for("yaml.alias"),Dr=Symbol.for("yaml.document"),$e=Symbol.for("yaml.map"),Cf=Symbol.for("yaml.pair"),de=Symbol.for("yaml.scalar"),it=Symbol.for("yaml.seq"),ae=Symbol.for("yaml.node.type"),ot=e=>!!e&&typeof e=="object"&&e[ae]===Ro,dr=e=>!!e&&typeof e=="object"&&e[ae]===Dr,Wt=e=>!!e&&typeof e=="object"&&e[ae]===$e,F=e=>!!e&&typeof e=="object"&&e[ae]===Cf,L=e=>!!e&&typeof e=="object"&&e[ae]===de,Gt=e=>!!e&&typeof e=="object"&&e[ae]===it;function R(e){if(e&&typeof e=="object")switch(e[ae]){case $e:case it:return!0}return!1}function M(e){if(e&&typeof e=="object")switch(e[ae]){case Ro:case $e:case de:case it:return!0}return!1}const Rf=e=>(L(e)||R(e))&&!!e.anchor,Se=Symbol("break visit"),av=Symbol("skip children"),pt=Symbol("remove node");function at(e,t){const r=sv(t);dr(e)?Ce(null,e.contents,r,Object.freeze([e]))===pt&&(e.contents=null):Ce(null,e,r,Object.freeze([]))}at.BREAK=Se;at.SKIP=av;at.REMOVE=pt;function Ce(e,t,r,i){const n=cv(e,t,r,i);if(M(n)||F(n))return uv(e,i,n),Ce(e,n,r,i);if(typeof n!="symbol"){if(R(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){const a=Ce(o,t.items[o],r,i);if(typeof a=="number")o=a-1;else{if(a===Se)return Se;a===pt&&(t.items.splice(o,1),o-=1)}}}else if(F(t)){i=Object.freeze(i.concat(t));const o=Ce("key",t.key,r,i);if(o===Se)return Se;o===pt&&(t.key=null);const a=Ce("value",t.value,r,i);if(a===Se)return Se;a===pt&&(t.value=null)}}return n}function sv(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function cv(e,t,r,i){if(typeof r=="function")return r(e,t,i);if(Wt(t))return r.Map?.(e,t,i);if(Gt(t))return r.Seq?.(e,t,i);if(F(t))return r.Pair?.(e,t,i);if(L(t))return r.Scalar?.(e,t,i);if(ot(t))return r.Alias?.(e,t,i)}function uv(e,t,r){const i=t[t.length-1];if(R(i))i.items[e]=r;else if(F(i))e==="key"?i.key=r:i.value=r;else if(dr(i))i.contents=r;else{const n=ot(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}const lv={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},dv=e=>e.replace(/[!,[\]{}]/g,t=>lv[t]);class W{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},W.defaultYaml,t),this.tags=Object.assign({},W.defaultTags,r)}clone(){const t=new W(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new W(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:W.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},W.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:W.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},W.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),n=i.shift();switch(n){case"%TAG":{if(i.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[o,a]=i;return this.tags[o]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[o]=i;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{const a=/^\d+\.\d+$/.test(o);return r(6,`Unsupported YAML version ${o}`,a),!1}}default:return r(0,`Unknown directive ${n}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const a=t.slice(2,-1);return a==="!"||a==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),a)}const[,i,n]=t.match(/^(.*!)([^!]*)$/s);n||r(`The ${t} tag has no suffix`);const o=this.tags[i];if(o)try{return o+decodeURIComponent(n)}catch(a){return r(String(a)),null}return i==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[r,i]of Object.entries(this.tags))if(t.startsWith(i))return r+dv(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let n;if(t&&i.length>0&&M(t.contents)){const o={};at(t.contents,(a,s)=>{M(s)&&s.tag&&(o[s.tag]=!0)}),n=Object.keys(o)}else n=[];for(const[o,a]of i)o==="!!"&&a==="tag:yaml.org,2002:"||(!t||n.some(s=>s.startsWith(a)))&&r.push(`%TAG ${o} ${a}`);return r.join(`
|
|
66
|
+
`)}}W.defaultYaml={explicit:!1,version:"1.2"};W.defaultTags={"!!":"tag:yaml.org,2002:"};function Mf(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function Ff(e){const t=new Set;return at(e,{Value(r,i){i.anchor&&t.add(i.anchor)}}),t}function Jf(e,t){for(let r=1;;++r){const i=`${e}${r}`;if(!t.has(i))return i}}function fv(e,t){const r=[],i=new Map;let n=null;return{onAnchor:o=>{r.push(o),n??(n=Ff(e));const a=Jf(t,n);return n.add(a),a},setAnchors:()=>{for(const o of r){const a=i.get(o);if(typeof a=="object"&&a.anchor&&(L(a.node)||R(a.node)))a.node.anchor=a.anchor;else{const s=new Error("Failed to resolve repeated object (this should not happen)");throw s.source=o,s}}},sourceObjects:i}}function Re(e,t,r,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let n=0,o=i.length;n<o;++n){const a=i[n],s=Re(e,i,String(n),a);s===void 0?delete i[n]:s!==a&&(i[n]=s)}else if(i instanceof Map)for(const n of Array.from(i.keys())){const o=i.get(n),a=Re(e,i,n,o);a===void 0?i.delete(n):a!==o&&i.set(n,a)}else if(i instanceof Set)for(const n of Array.from(i)){const o=Re(e,i,n,n);o===void 0?i.delete(n):o!==n&&(i.delete(n),i.add(o))}else for(const[n,o]of Object.entries(i)){const a=Re(e,i,n,o);a===void 0?delete i[n]:a!==o&&(i[n]=a)}return e.call(t,r,i)}function oe(e,t,r){if(Array.isArray(e))return e.map((i,n)=>oe(i,String(n),r));if(e&&typeof e.toJSON=="function"){if(!r||!Rf(e))return e.toJSON(t,r);const i={aliasCount:0,count:1,res:void 0};r.anchors.set(e,i),r.onCreate=o=>{i.res=o,delete r.onCreate};const n=e.toJSON(t,r);return r.onCreate&&r.onCreate(n),n}return typeof e=="bigint"&&!r?.keep?Number(e):e}class Mo{constructor(t){Object.defineProperty(this,ae,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:i,onAnchor:n,reviver:o}={}){if(!dr(t))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},s=oe(this,"",a);if(typeof n=="function")for(const{count:c,res:u}of a.anchors.values())n(u,c);return typeof o=="function"?Re(o,{"":s},"",s):s}}class Fo extends Mo{constructor(t){super(Ro),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,r){if(r?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let i;r?.aliasResolveCache?i=r.aliasResolveCache:(i=[],at(t,{Node:(o,a)=>{(ot(a)||Rf(a))&&i.push(a)}}),r&&(r.aliasResolveCache=i));let n;for(const o of i){if(o===this)break;o.anchor===this.source&&(n=o)}return n}toJSON(t,r){if(!r)return{source:this.source};const{anchors:i,doc:n,maxAliasCount:o}=r,a=this.resolve(n,r);if(!a){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let s=i.get(a);if(s||(oe(a,null,r),s=i.get(a)),s?.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(o>=0&&(s.count+=1,s.aliasCount===0&&(s.aliasCount=sn(n,a,i)),s.count*s.aliasCount>o)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return s.res}toString(t,r,i){const n=`*${this.source}`;if(t){if(Mf(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(t.implicitKey)return`${n} `}return n}}function sn(e,t,r){if(ot(t)){const i=t.resolve(e),n=r&&i&&r.get(i);return n?n.count*n.aliasCount:0}else if(R(t)){let i=0;for(const n of t.items){const o=sn(e,n,r);o>i&&(i=o)}return i}else if(F(t)){const i=sn(e,t.key,r),n=sn(e,t.value,r);return Math.max(i,n)}return 1}const Kf=e=>!e||typeof e!="function"&&typeof e!="object";class U extends Mo{constructor(t){super(de),this.value=t}toJSON(t,r){return r?.keep?this.value:oe(this.value,t,r)}toString(){return String(this.value)}}U.BLOCK_FOLDED="BLOCK_FOLDED";U.BLOCK_LITERAL="BLOCK_LITERAL";U.PLAIN="PLAIN";U.QUOTE_DOUBLE="QUOTE_DOUBLE";U.QUOTE_SINGLE="QUOTE_SINGLE";const mv="tag:yaml.org,2002:";function pv(e,t,r){if(t){const i=r.filter(o=>o.tag===t),n=i.find(o=>!o.format)??i[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find(i=>i.identify?.(e)&&!i.format)}function _t(e,t,r){if(dr(e)&&(e=e.contents),M(e))return e;if(F(e)){const d=r.schema[$e].createNode?.(r.schema,null,r);return d.items.push(e),d}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:n,onTagObj:o,schema:a,sourceObjects:s}=r;let c;if(i&&e&&typeof e=="object"){if(c=s.get(e),c)return c.anchor??(c.anchor=n(e)),new Fo(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith("!!")&&(t=mv+t.slice(2));let u=pv(e,t,a.tags);if(!u){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const d=new U(e);return c&&(c.node=d),d}u=e instanceof Map?a[$e]:Symbol.iterator in Object(e)?a[it]:a[$e]}o&&(o(u),delete r.onTagObj);const l=u?.createNode?u.createNode(r.schema,e,r):typeof u?.nodeClass?.from=="function"?u.nodeClass.from(r.schema,e,r):new U(e);return t?l.tag=t:u.default||(l.tag=u.tag),c&&(c.node=l),l}function yn(e,t,r){let i=r;for(let n=t.length-1;n>=0;--n){const o=t[n];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){const a=[];a[o]=i,i=a}else i=new Map([[o,i]])}return _t(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const ft=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Bf extends Mo{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(i=>M(i)||F(i)?i.clone(t):i),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(ft(t))this.add(r);else{const[i,...n]=t,o=this.get(i,!0);if(R(o))o.addIn(n,r);else if(o===void 0&&this.schema)this.set(i,yn(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}deleteIn(t){const[r,...i]=t;if(i.length===0)return this.delete(r);const n=this.get(r,!0);if(R(n))return n.deleteIn(i);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}getIn(t,r){const[i,...n]=t,o=this.get(i,!0);return n.length===0?!r&&L(o)?o.value:o:R(o)?o.getIn(n,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!F(r))return!1;const i=r.value;return i==null||t&&L(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[r,...i]=t;if(i.length===0)return this.has(r);const n=this.get(r,!0);return R(n)?n.hasIn(i):!1}setIn(t,r){const[i,...n]=t;if(n.length===0)this.set(i,r);else{const o=this.get(i,!0);if(R(o))o.setIn(n,r);else if(o===void 0&&this.schema)this.set(i,yn(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}}const gv=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function me(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const ze=(e,t,r)=>e.endsWith(`
|
|
67
67
|
`)?me(r,t):r.includes(`
|
|
68
68
|
`)?`
|
|
69
|
-
`+me(r,t):(e.endsWith(" ")?"":" ")+r,
|
|
70
|
-
`)r===
|
|
69
|
+
`+me(r,t):(e.endsWith(" ")?"":" ")+r,Vf="flow",Er="block",cn="quoted";function fr(e,t,r="flow",{indentAtStart:i,lineWidth:n=80,minContentWidth:o=20,onFold:a,onOverflow:s}={}){if(!n||n<0)return e;n<o&&(o=0);const c=Math.max(1+o,1+n-t.length);if(e.length<=c)return e;const u=[],l={};let d=n-t.length;typeof i=="number"&&(i>n-Math.max(2,o)?u.push(0):d=n-i);let f,m,v=!1,g=-1,h=-1,k=-1;r===Er&&(g=Oa(e,g,t.length),g!==-1&&(d=g+c));for(let I;I=e[g+=1];){if(r===cn&&I==="\\"){switch(h=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}k=g}if(I===`
|
|
70
|
+
`)r===Er&&(g=Oa(e,g,t.length)),d=g+t.length+c,f=void 0;else{if(I===" "&&m&&m!==" "&&m!==`
|
|
71
71
|
`&&m!==" "){const _=e[g+1];_&&_!==" "&&_!==`
|
|
72
72
|
`&&_!==" "&&(f=g)}if(g>=d)if(f)u.push(f),d=f+c,f=void 0;else if(r===cn){for(;m===" "||m===" ";)m=I,I=e[g+=1],v=!0;const _=g>k+1?g-2:h-1;if(l[_])return e;u.push(_),l[_]=!0,d=_+c,f=void 0}else v=!0}m=I}if(v&&s&&s(),u.length===0)return e;a&&a();let z=e.slice(0,u[0]);for(let I=0;I<u.length;++I){const _=u[I],w=u[I+1]||e.length;_===0?z=`
|
|
73
73
|
${t}${e.slice(0,w)}`:(r===cn&&l[_]&&(z+=`${e[_]}\\`),z+=`
|
|
74
|
-
${t}${e.slice(_+1,w)}`)}return z}function
|
|
75
|
-
`);i=t,n=t+1,o=e[n]}return i}const
|
|
76
|
-
`){if(o-a>i)return!0;if(a=o+1,n-a<=i)return!1}return!0}function
|
|
74
|
+
${t}${e.slice(_+1,w)}`)}return z}function Oa(e,t,r){let i=t,n=t+1,o=e[n];for(;o===" "||o===" ";)if(t<n+r)o=e[++t];else{do o=e[++t];while(o&&o!==`
|
|
75
|
+
`);i=t,n=t+1,o=e[n]}return i}const mr=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),pr=e=>/^(%|---|\.\.\.)/m.test(e);function hv(e,t,r){if(!t||t<0)return!1;const i=t-r,n=e.length;if(n<=i)return!1;for(let o=0,a=0;o<n;++o)if(e[o]===`
|
|
76
|
+
`){if(o-a>i)return!0;if(a=o+1,n-a<=i)return!1}return!0}function gt(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:i}=t,n=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(pr(e)?" ":"");let a="",s=0;for(let c=0,u=r[c];u;u=r[++c])if(u===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(a+=r.slice(s,c)+"\\ ",c+=1,s=c,u="\\"),u==="\\")switch(r[c+1]){case"u":{a+=r.slice(s,c);const l=r.substr(c+2,4);switch(l){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:l.substr(0,2)==="00"?a+="\\x"+l.substr(2):a+=r.substr(c,6)}c+=5,s=c+1}break;case"n":if(i||r[c+2]==='"'||r.length<n)c+=1;else{for(a+=r.slice(s,c)+`
|
|
77
77
|
|
|
78
78
|
`;r[c+2]==="\\"&&r[c+3]==="n"&&r[c+4]!=='"';)a+=`
|
|
79
|
-
`,c+=2;a+=o,r[c+2]===" "&&(a+="\\"),c+=1,s=c+1}break;default:c+=1}return a=s?a+r.slice(s):r,i?a:
|
|
80
|
-
`)||/[ \t]\n|\n[ \t]/.test(e))return
|
|
81
|
-
${r}`)+"'";return t.implicitKey?i:
|
|
79
|
+
`,c+=2;a+=o,r[c+2]===" "&&(a+="\\"),c+=1,s=c+1}break;default:c+=1}return a=s?a+r.slice(s):r,i?a:fr(a,o,cn,mr(t,!1))}function Pr(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
80
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return gt(e,t);const r=t.indent||(pr(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
81
|
+
${r}`)+"'";return t.implicitKey?i:fr(i,r,Vf,mr(t,!1))}function Me(e,t){const{singleQuote:r}=t.options;let i;if(r===!1)i=gt;else{const n=e.includes('"'),o=e.includes("'");n&&!o?i=Pr:o&&!n?i=gt:i=r?Pr:gt}return i(e,t)}let Ar;try{Ar=new RegExp(`(^|(?<!
|
|
82
82
|
))
|
|
83
83
|
+(?!
|
|
84
|
-
|$)`,"g")}catch{
|
|
84
|
+
|$)`,"g")}catch{Ar=/\n+(?!\n|$)/g}function un({comment:e,type:t,value:r},i,n,o){const{blockQuote:a,commentString:s,lineWidth:c}=i.options;if(!a||/\n[\t ]+$/.test(r))return Me(r,i);const u=i.indent||(i.forceBlockIndent||pr(r)?" ":""),l=a==="literal"?!0:a==="folded"||t===U.BLOCK_FOLDED?!1:t===U.BLOCK_LITERAL?!0:!hv(r,c,u.length);if(!r)return l?`|
|
|
85
85
|
`:`>
|
|
86
86
|
`;let d,f;for(f=r.length;f>0;--f){const w=r[f-1];if(w!==`
|
|
87
87
|
`&&w!==" "&&w!==" ")break}let m=r.substring(f);const v=m.indexOf(`
|
|
88
88
|
`);v===-1?d="-":r===m||v!==m.length-1?(d="+",o&&o()):d="",m&&(r=r.slice(0,-m.length),m[m.length-1]===`
|
|
89
|
-
`&&(m=m.slice(0,-1)),m=m.replace(
|
|
89
|
+
`&&(m=m.slice(0,-1)),m=m.replace(Ar,`$&${u}`));let g=!1,h,k=-1;for(h=0;h<r.length;++h){const w=r[h];if(w===" ")g=!0;else if(w===`
|
|
90
90
|
`)k=h;else break}let z=r.substring(0,k<h?k+1:h);z&&(r=r.substring(z.length),z=z.replace(/\n+/g,`$&${u}`));let _=(g?u?"2":"1":"")+d;if(e&&(_+=" "+s(e.replace(/ ?[\r\n]+/g," ")),n&&n()),!l){const w=r.replace(/\n+/g,`
|
|
91
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);let x=!1;const E=
|
|
91
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);let x=!1;const E=mr(i,!0);a!=="folded"&&t!==U.BLOCK_FOLDED&&(E.onOverflow=()=>{x=!0});const S=fr(`${z}${w}${m}`,u,Er,E);if(!x)return`>${_}
|
|
92
92
|
${u}${S}`}return r=r.replace(/\n+/g,`$&${u}`),`|${_}
|
|
93
|
-
${u}${z}${r}${m}`}function
|
|
93
|
+
${u}${z}${r}${m}`}function vv(e,t,r,i){const{type:n,value:o}=e,{actualString:a,implicitKey:s,indent:c,indentStep:u,inFlow:l}=t;if(s&&o.includes(`
|
|
94
94
|
`)||l&&/[[\]{},]/.test(o))return Me(o,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return s||l||!o.includes(`
|
|
95
95
|
`)?Me(o,t):un(e,t,r,i);if(!s&&!l&&n!==U.PLAIN&&o.includes(`
|
|
96
|
-
`))return un(e,t,r,i);if(
|
|
97
|
-
${c}`);if(a){const f=g=>g.default&&g.tag!=="tag:yaml.org,2002:str"&&g.test?.test(d),{compat:m,tags:v}=t.doc.schema;if(v.some(f)||m?.some(f))return Me(o,t)}return s?d:
|
|
98
|
-
${t.indent}${s}`:s}function
|
|
99
|
-
${s}:`):(h=`${h}:`,f&&(h+=ze(h,r.indent,u(f))));let k,z,I;M(t)?(k=!!t.spaceBefore,z=t.commentBefore,I=t.comment):(k=!1,z=null,I=null,t&&typeof t=="object"&&(t=a.createNode(t))),r.implicitKey=!1,!m&&!f&&L(t)&&(r.indentAtStart=h.length+1),g=!1,!l&&c.length>=2&&!r.inFlow&&!m&&Gt(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let _=!1;const w=
|
|
96
|
+
`))return un(e,t,r,i);if(pr(o)){if(c==="")return t.forceBlockIndent=!0,un(e,t,r,i);if(s&&c===u)return Me(o,t)}const d=o.replace(/\n+/g,`$&
|
|
97
|
+
${c}`);if(a){const f=g=>g.default&&g.tag!=="tag:yaml.org,2002:str"&&g.test?.test(d),{compat:m,tags:v}=t.doc.schema;if(v.some(f)||m?.some(f))return Me(o,t)}return s?d:fr(d,c,Vf,mr(t,!1))}function Jo(e,t,r,i){const{implicitKey:n,inFlow:o}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:s}=e;s!==U.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=U.QUOTE_DOUBLE);const c=l=>{switch(l){case U.BLOCK_FOLDED:case U.BLOCK_LITERAL:return n||o?Me(a.value,t):un(a,t,r,i);case U.QUOTE_DOUBLE:return gt(a.value,t);case U.QUOTE_SINGLE:return Pr(a.value,t);case U.PLAIN:return vv(a,t,r,i);default:return null}};let u=c(s);if(u===null){const{defaultKeyType:l,defaultStringType:d}=t.options,f=n&&l||d;if(u=c(f),u===null)throw new Error(`Unsupported default string type ${f}`)}return u}function qf(e,t){const r=Object.assign({blockQuote:!0,commentString:gv,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let i;switch(r.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:i,options:r}}function yv(e,t){if(t.tag){const n=e.filter(o=>o.tag===t.tag);if(n.length>0)return n.find(o=>o.format===t.format)??n[0]}let r,i;if(L(t)){i=t.value;let n=e.filter(o=>o.identify?.(i));if(n.length>1){const o=n.filter(a=>a.test);o.length>0&&(n=o)}r=n.find(o=>o.format===t.format)??n.find(o=>!o.format)}else i=t,r=e.find(n=>n.nodeClass&&i instanceof n.nodeClass);if(!r){const n=i?.constructor?.name??(i===null?"null":typeof i);throw new Error(`Tag not resolved for ${n} value`)}return r}function $v(e,t,{anchors:r,doc:i}){if(!i.directives)return"";const n=[],o=(L(e)||R(e))&&e.anchor;o&&Mf(o)&&(r.add(o),n.push(`&${o}`));const a=e.tag??(t.default?null:t.tag);return a&&n.push(i.directives.tagString(a)),n.join(" ")}function et(e,t,r,i){if(F(e))return e.toString(t,r,i);if(ot(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let n;const o=M(e)?e:t.doc.createNode(e,{onTagObj:c=>n=c});n??(n=yv(t.doc.schema.tags,o));const a=$v(o,n,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);const s=typeof n.stringify=="function"?n.stringify(o,t,r,i):L(o)?Jo(o,t,r,i):o.toString(t,r,i);return a?L(o)||s[0]==="{"||s[0]==="["?`${a} ${s}`:`${a}
|
|
98
|
+
${t.indent}${s}`:s}function bv({key:e,value:t},r,i,n){const{allNullValues:o,doc:a,indent:s,indentStep:c,options:{commentString:u,indentSeq:l,simpleKeys:d}}=r;let f=M(e)&&e.comment||null;if(d){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(R(e)||!M(e)&&typeof e=="object"){const E="With simple keys, collection cannot be used as a key value";throw new Error(E)}}let m=!d&&(!e||f&&t==null&&!r.inFlow||R(e)||(L(e)?e.type===U.BLOCK_FOLDED||e.type===U.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!m&&(d||!o),indent:s+c});let v=!1,g=!1,h=et(e,r,()=>v=!0,()=>g=!0);if(!m&&!r.inFlow&&h.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0}if(r.inFlow){if(o||t==null)return v&&i&&i(),h===""?"?":m?`? ${h}`:h}else if(o&&!d||t==null&&m)return h=`? ${h}`,f&&!v?h+=ze(h,r.indent,u(f)):g&&n&&n(),h;v&&(f=null),m?(f&&(h+=ze(h,r.indent,u(f))),h=`? ${h}
|
|
99
|
+
${s}:`):(h=`${h}:`,f&&(h+=ze(h,r.indent,u(f))));let k,z,I;M(t)?(k=!!t.spaceBefore,z=t.commentBefore,I=t.comment):(k=!1,z=null,I=null,t&&typeof t=="object"&&(t=a.createNode(t))),r.implicitKey=!1,!m&&!f&&L(t)&&(r.indentAtStart=h.length+1),g=!1,!l&&c.length>=2&&!r.inFlow&&!m&&Gt(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let _=!1;const w=et(t,r,()=>_=!0,()=>g=!0);let x=" ";if(f||k||z){if(x=k?`
|
|
100
100
|
`:"",z){const E=u(z);x+=`
|
|
101
101
|
${me(E,r.indent)}`}w===""&&!r.inFlow?x===`
|
|
102
102
|
`&&I&&(x=`
|
|
@@ -105,32 +105,32 @@ ${me(E,r.indent)}`}w===""&&!r.inFlow?x===`
|
|
|
105
105
|
${r.indent}`}else if(!m&&R(t)){const E=w[0],S=w.indexOf(`
|
|
106
106
|
`),J=S!==-1,ve=r.inFlow??t.flow??t.items.length===0;if(J||!ve){let Pe=!1;if(J&&(E==="&"||E==="!")){let K=w.indexOf(" ");E==="&"&&K!==-1&&K<S&&w[K+1]==="!"&&(K=w.indexOf(" ",K+1)),(K===-1||S<K)&&(Pe=!0)}Pe||(x=`
|
|
107
107
|
${r.indent}`)}}else(w===""||w[0]===`
|
|
108
|
-
`)&&(x="");return h+=x+w,r.inFlow?_&&i&&i():I&&!_?h+=ze(h,r.indent,u(I)):g&&n&&n(),h}function
|
|
108
|
+
`)&&(x="");return h+=x+w,r.inFlow?_&&i&&i():I&&!_?h+=ze(h,r.indent,u(I)):g&&n&&n(),h}function Wf(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const tn="<<",pe={identify:e=>e===tn||typeof e=="symbol"&&e.description===tn,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new U(Symbol(tn)),{addToJSMap:Gf}),stringify:()=>tn},_v=(e,t)=>(pe.identify(t)||L(t)&&(!t.type||t.type===U.PLAIN)&&pe.identify(t.value))&&e?.doc.schema.tags.some(r=>r.tag===pe.tag&&r.default);function Gf(e,t,r){const i=Xf(e,r);if(Gt(i))for(const n of i.items)_r(e,t,n);else if(Array.isArray(i))for(const n of i)_r(e,t,n);else _r(e,t,i)}function _r(e,t,r){const i=Xf(e,r);if(!Wt(i))throw new Error("Merge sources must be maps or map aliases");const n=i.toJSON(null,e,Map);for(const[o,a]of n)t instanceof Map?t.has(o)||t.set(o,a):t instanceof Set?t.add(o):Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}function Xf(e,t){return e&&ot(t)?t.resolve(e.doc,e):t}function Yf(e,t,{key:r,value:i}){if(M(r)&&r.addToJSMap)r.addToJSMap(e,t,i);else if(_v(e,r))Gf(e,t,i);else{const n=oe(r,"",e);if(t instanceof Map)t.set(n,oe(i,n,e));else if(t instanceof Set)t.add(n);else{const o=kv(r,n,e),a=oe(i,o,e);o in t?Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[o]=a}}return t}function kv(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(M(e)&&r?.doc){const i=qf(r.doc,{});i.anchors=new Set;for(const o of r.anchors.keys())i.anchors.add(o.anchor);i.inFlow=!0,i.inStringifyKey=!0;const n=e.toString(i);if(!r.mapKeyWarned){let o=JSON.stringify(n);o.length>40&&(o=o.substring(0,36)+'..."'),Wf(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(t)}function Ko(e,t,r){const i=_t(e,void 0,r),n=_t(t,void 0,r);return new G(i,n)}class G{constructor(t,r=null){Object.defineProperty(this,ae,{value:Cf}),this.key=t,this.value=r}clone(t){let{key:r,value:i}=this;return M(r)&&(r=r.clone(t)),M(i)&&(i=i.clone(t)),new G(r,i)}toJSON(t,r){const i=r?.mapAsMap?new Map:{};return Yf(r,i,this)}toString(t,r,i){return t?.doc?bv(this,t,r,i):JSON.stringify(this)}}function Hf(e,t,r){return(t.inFlow??e.flow?Sv:wv)(e,t,r)}function wv({comment:e,items:t},r,{blockItemPrefix:i,flowChars:n,itemIndent:o,onChompKeep:a,onComment:s}){const{indent:c,options:{commentString:u}}=r,l=Object.assign({},r,{indent:o,type:null});let d=!1;const f=[];for(let v=0;v<t.length;++v){const g=t[v];let h=null;if(M(g))!d&&g.spaceBefore&&f.push(""),$n(r,f,g.commentBefore,d),g.comment&&(h=g.comment);else if(F(g)){const z=M(g.key)?g.key:null;z&&(!d&&z.spaceBefore&&f.push(""),$n(r,f,z.commentBefore,d))}d=!1;let k=et(g,l,()=>h=null,()=>d=!0);h&&(k+=ze(k,o,u(h))),d&&h&&(d=!1),f.push(i+k)}let m;if(f.length===0)m=n.start+n.end;else{m=f[0];for(let v=1;v<f.length;++v){const g=f[v];m+=g?`
|
|
109
109
|
${c}${g}`:`
|
|
110
110
|
`}}return e?(m+=`
|
|
111
|
-
`+me(u(e),c),s&&s()):d&&a&&a(),m}function
|
|
111
|
+
`+me(u(e),c),s&&s()):d&&a&&a(),m}function Sv({items:e},t,{flowChars:r,itemIndent:i}){const{indent:n,indentStep:o,flowCollectionPadding:a,options:{commentString:s}}=t;i+=o;const c=Object.assign({},t,{indent:i,inFlow:!0,type:null});let u=!1,l=0;const d=[];for(let v=0;v<e.length;++v){const g=e[v];let h=null;if(M(g))g.spaceBefore&&d.push(""),$n(t,d,g.commentBefore,!1),g.comment&&(h=g.comment);else if(F(g)){const z=M(g.key)?g.key:null;z&&(z.spaceBefore&&d.push(""),$n(t,d,z.commentBefore,!1),z.comment&&(u=!0));const I=M(g.value)?g.value:null;I?(I.comment&&(h=I.comment),I.commentBefore&&(u=!0)):g.value==null&&z?.comment&&(h=z.comment)}h&&(u=!0);let k=et(g,c,()=>h=null);u||(u=d.length>l||k.includes(`
|
|
112
112
|
`)),v<e.length-1?k+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(u||(u=d.reduce((z,I)=>z+I.length+2,2)+(k.length+2)>t.options.lineWidth)),u&&(k+=",")),h&&(k+=ze(k,i,s(h))),d.push(k),l=d.length}const{start:f,end:m}=r;if(d.length===0)return f+m;if(!u){const v=d.reduce((g,h)=>g+h.length+2,2);u=t.options.lineWidth>0&&v>t.options.lineWidth}if(u){let v=f;for(const g of d)v+=g?`
|
|
113
113
|
${o}${n}${g}`:`
|
|
114
114
|
`;return`${v}
|
|
115
|
-
${n}${m}`}else return`${f}${a}${d.join(" ")}${a}${m}`}function
|
|
116
|
-
`:" ")}return
|
|
115
|
+
${n}${m}`}else return`${f}${a}${d.join(" ")}${a}${m}`}function $n({indent:e,options:{commentString:t}},r,i,n){if(i&&n&&(i=i.replace(/^\n+/,"")),i){const o=me(t(i),e);r.push(o.trimStart())}}function Oe(e,t){const r=L(t)?t.value:t;for(const i of e)if(F(i)&&(i.key===t||i.key===r||L(i.key)&&i.key.value===r))return i}class te extends Bf{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super($e,t),this.items=[]}static from(t,r,i){const{keepUndefined:n,replacer:o}=i,a=new this(t),s=(c,u)=>{if(typeof o=="function")u=o.call(r,c,u);else if(Array.isArray(o)&&!o.includes(c))return;(u!==void 0||n)&&a.items.push(Ko(c,u,i))};if(r instanceof Map)for(const[c,u]of r)s(c,u);else if(r&&typeof r=="object")for(const c of Object.keys(r))s(c,r[c]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,r){let i;F(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new G(t,t?.value):i=new G(t.key,t.value);const n=Oe(this.items,i.key),o=this.schema?.sortMapEntries;if(n){if(!r)throw new Error(`Key ${i.key} already set`);L(n.value)&&Kf(i.value)?n.value.value=i.value:n.value=i.value}else if(o){const a=this.items.findIndex(s=>o(i,s)<0);a===-1?this.items.push(i):this.items.splice(a,0,i)}else this.items.push(i)}delete(t){const r=Oe(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){const n=Oe(this.items,t)?.value;return(!r&&L(n)?n.value:n)??void 0}has(t){return!!Oe(this.items,t)}set(t,r){this.add(new G(t,r),!0)}toJSON(t,r,i){const n=i?new i:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(n);for(const o of this.items)Yf(r,n,o);return n}toString(t,r,i){if(!t)return JSON.stringify(this);for(const n of this.items)if(!F(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Hf(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:r})}}const st={collection:"map",default:!0,nodeClass:te,tag:"tag:yaml.org,2002:map",resolve(e,t){return Wt(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>te.from(e,t,r)};class Te extends Bf{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(it,t),this.items=[]}add(t){this.items.push(t)}delete(t){const r=nn(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){const i=nn(t);if(typeof i!="number")return;const n=this.items[i];return!r&&L(n)?n.value:n}has(t){const r=nn(t);return typeof r=="number"&&r<this.items.length}set(t,r){const i=nn(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const n=this.items[i];L(n)&&Kf(r)?n.value=r:this.items[i]=r}toJSON(t,r){const i=[];r?.onCreate&&r.onCreate(i);let n=0;for(const o of this.items)i.push(oe(o,String(n++),r));return i}toString(t,r,i){return t?Hf(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:r}):JSON.stringify(this)}static from(t,r,i){const{replacer:n}=i,o=new this(t);if(r&&Symbol.iterator in Object(r)){let a=0;for(let s of r){if(typeof n=="function"){const c=r instanceof Set?s:String(a++);s=n.call(r,c,s)}o.items.push(_t(s,void 0,i))}}return o}}function nn(e){let t=L(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const ct={collection:"seq",default:!0,nodeClass:Te,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Gt(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>Te.from(e,t,r)},gr={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,i){return t=Object.assign({actualString:!0},t),Jo(e,t,r,i)}},hr={identify:e=>e==null,createNode:()=>new U(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new U(null),stringify:({source:e},t)=>typeof e=="string"&&hr.test.test(e)?e:t.options.nullStr},Bo={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new U(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&Bo.test.test(e)){const i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?r.options.trueStr:r.options.falseStr}};function ue({format:e,minFractionDigits:t,tag:r,value:i}){if(typeof i=="bigint")return String(i);const n=typeof i=="number"?i:Number(i);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let o=Object.is(i,-0)?"-0":JSON.stringify(i);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^-?\d/.test(o)&&!o.includes("e")){let a=o.indexOf(".");a<0&&(a=o.length,o+=".");let s=t-(o.length-a-1);for(;s-- >0;)o+="0"}return o}const Qf={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ue},em={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():ue(e)}},tm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new U(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:ue},vr=e=>typeof e=="bigint"||Number.isInteger(e),Vo=(e,t,r,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),r);function nm(e,t,r){const{value:i}=e;return vr(i)&&i>=0?r+i.toString(t):ue(e)}const rm={identify:e=>vr(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>Vo(e,2,8,r),stringify:e=>nm(e,8,"0o")},im={identify:vr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>Vo(e,0,10,r),stringify:ue},om={identify:e=>vr(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>Vo(e,2,16,r),stringify:e=>nm(e,16,"0x")},Iv=[st,ct,gr,hr,Bo,rm,im,om,Qf,em,tm];function Na(e){return typeof e=="bigint"||Number.isInteger(e)}const rn=({value:e})=>JSON.stringify(e),zv=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:rn},{identify:e=>e==null,createNode:()=>new U(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:rn},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:rn},{identify:Na,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>Na(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:rn}],Ov={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Nv=[st,ct].concat(zv,Ov),qo={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const r=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(r.length);for(let n=0;n<r.length;++n)i[n]=r.charCodeAt(n);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:r},i,n,o){if(!r)return"";const a=r;let s;if(typeof btoa=="function"){let c="";for(let u=0;u<a.length;++u)c+=String.fromCharCode(a[u]);s=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=U.BLOCK_LITERAL),t!==U.QUOTE_DOUBLE){const c=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),u=Math.ceil(s.length/c),l=new Array(u);for(let d=0,f=0;d<u;++d,f+=c)l[d]=s.substr(f,c);s=l.join(t===U.BLOCK_LITERAL?`
|
|
116
|
+
`:" ")}return Jo({comment:e,type:t,value:s},i,n,o)}};function am(e,t){if(Gt(e))for(let r=0;r<e.items.length;++r){let i=e.items[r];if(!F(i)){if(Wt(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const n=i.items[0]||new G(new U(null));if(i.commentBefore&&(n.key.commentBefore=n.key.commentBefore?`${i.commentBefore}
|
|
117
117
|
${n.key.commentBefore}`:i.commentBefore),i.comment){const o=n.value??n.key;o.comment=o.comment?`${i.comment}
|
|
118
|
-
${o.comment}`:i.comment}i=n}e.items[r]=F(i)?i:new G(i)}}else t("Expected a sequence for this tag");return e}function
|
|
118
|
+
${o.comment}`:i.comment}i=n}e.items[r]=F(i)?i:new G(i)}}else t("Expected a sequence for this tag");return e}function sm(e,t,r){const{replacer:i}=r,n=new Te(e);n.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof i=="function"&&(a=i.call(t,String(o++),a));let s,c;if(Array.isArray(a))if(a.length===2)s=a[0],c=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){const u=Object.keys(a);if(u.length===1)s=u[0],c=a[s];else throw new TypeError(`Expected tuple with one key, not ${u.length} keys`)}else s=a;n.items.push(Ko(s,c,r))}return n}const Wo={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:am,createNode:sm};class Fe extends Te{constructor(){super(),this.add=te.prototype.add.bind(this),this.delete=te.prototype.delete.bind(this),this.get=te.prototype.get.bind(this),this.has=te.prototype.has.bind(this),this.set=te.prototype.set.bind(this),this.tag=Fe.tag}toJSON(t,r){if(!r)return super.toJSON(t);const i=new Map;r?.onCreate&&r.onCreate(i);for(const n of this.items){let o,a;if(F(n)?(o=oe(n.key,"",r),a=oe(n.value,o,r)):o=oe(n,"",r),i.has(o))throw new Error("Ordered maps must not include duplicate keys");i.set(o,a)}return i}static from(t,r,i){const n=sm(t,r,i),o=new this;return o.items=n.items,o}}Fe.tag="tag:yaml.org,2002:omap";const Go={collection:"seq",identify:e=>e instanceof Map,nodeClass:Fe,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=am(e,t),i=[];for(const{key:n}of r.items)L(n)&&(i.includes(n.value)?t(`Ordered maps must not include duplicate keys: ${n.value}`):i.push(n.value));return Object.assign(new Fe,r)},createNode:(e,t,r)=>Fe.from(e,t,r)};function cm({value:e,source:t},r){return t&&(e?um:lm).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}const um={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new U(!0),stringify:cm},lm={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new U(!1),stringify:cm},xv={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ue},jv={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():ue(e)}},Uv={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new U(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){const i=e.substring(r+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:ue},Xt=e=>typeof e=="bigint"||Number.isInteger(e);function yr(e,t,r,{intAsBigInt:i}){const n=e[0];if((n==="-"||n==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const a=BigInt(e);return n==="-"?BigInt(-1)*a:a}const o=parseInt(e,r);return n==="-"?-1*o:o}function Xo(e,t,r){const{value:i}=e;if(Xt(i)){const n=i.toString(t);return i<0?"-"+r+n.substr(1):r+n}return ue(e)}const Tv={identify:Xt,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>yr(e,2,2,r),stringify:e=>Xo(e,2,"0b")},Dv={identify:Xt,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>yr(e,1,8,r),stringify:e=>Xo(e,8,"0")},Ev={identify:Xt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>yr(e,0,10,r),stringify:ue},Pv={identify:Xt,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>yr(e,2,16,r),stringify:e=>Xo(e,16,"0x")};class Je extends te{constructor(t){super(t),this.tag=Je.tag}add(t){let r;F(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new G(t.key,null):r=new G(t,null),Oe(this.items,r.key)||this.items.push(r)}get(t,r){const i=Oe(this.items,t);return!r&&F(i)?L(i.key)?i.key.value:i.key:i}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const i=Oe(this.items,t);i&&!r?this.items.splice(this.items.indexOf(i),1):!i&&r&&this.items.push(new G(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,i);throw new Error("Set items must all have null values")}static from(t,r,i){const{replacer:n}=i,o=new this(t);if(r&&Symbol.iterator in Object(r))for(let a of r)typeof n=="function"&&(a=n.call(r,a,a)),o.items.push(Ko(a,null,i));return o}}Je.tag="tag:yaml.org,2002:set";const Yo={collection:"map",identify:e=>e instanceof Set,nodeClass:Je,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>Je.from(e,t,r),resolve(e,t){if(Wt(e)){if(e.hasAllNullValues(!0))return Object.assign(new Je,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Ho(e,t){const r=e[0],i=r==="-"||r==="+"?e.substring(1):e,n=a=>t?BigInt(a):Number(a),o=i.replace(/_/g,"").split(":").reduce((a,s)=>a*n(60)+n(s),n(0));return r==="-"?n(-1)*o:o}function dm(e){let{value:t}=e,r=a=>a;if(typeof t=="bigint")r=a=>BigInt(a);else if(isNaN(t)||!isFinite(t))return ue(e);let i="";t<0&&(i="-",t*=r(-1));const n=r(60),o=[t%n];return t<60?o.unshift(0):(t=(t-o[0])/n,o.unshift(t%n),t>=60&&(t=(t-o[0])/n,o.unshift(t))),i+o.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const fm={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>Ho(e,r),stringify:dm},mm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Ho(e,!1),stringify:dm},$r={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match($r.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,i,n,o,a,s]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(r,i-1,n,o||0,a||0,s||0,c);const l=t[8];if(l&&l!=="Z"){let d=Ho(l,!1);Math.abs(d)<30&&(d*=60),u-=6e4*d}return new Date(u)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},xa=[st,ct,gr,hr,um,lm,Tv,Dv,Ev,Pv,xv,jv,Uv,qo,pe,Go,Wo,Yo,fm,mm,$r],ja=new Map([["core",Iv],["failsafe",[st,ct,gr]],["json",Nv],["yaml11",xa],["yaml-1.1",xa]]),Ua={binary:qo,bool:Bo,float:tm,floatExp:em,floatNaN:Qf,floatTime:mm,int:im,intHex:om,intOct:rm,intTime:fm,map:st,merge:pe,null:hr,omap:Go,pairs:Wo,seq:ct,set:Yo,timestamp:$r},Av={"tag:yaml.org,2002:binary":qo,"tag:yaml.org,2002:merge":pe,"tag:yaml.org,2002:omap":Go,"tag:yaml.org,2002:pairs":Wo,"tag:yaml.org,2002:set":Yo,"tag:yaml.org,2002:timestamp":$r};function kr(e,t,r){const i=ja.get(t);if(i&&!e)return r&&!i.includes(pe)?i.concat(pe):i.slice();let n=i;if(!n)if(Array.isArray(e))n=[];else{const o=Array.from(ja.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${o} or define customTags array`)}if(Array.isArray(e))for(const o of e)n=n.concat(o);else typeof e=="function"&&(n=e(n.slice()));return r&&(n=n.concat(pe)),n.reduce((o,a)=>{const s=typeof a=="string"?Ua[a]:a;if(!s){const c=JSON.stringify(a),u=Object.keys(Ua).map(l=>JSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${u}`)}return o.includes(s)||o.push(s),o},[])}const Zv=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Qo{constructor({compat:t,customTags:r,merge:i,resolveKnownTags:n,schema:o,sortMapEntries:a,toStringDefaults:s}){this.compat=Array.isArray(t)?kr(t,"compat"):t?kr(null,t):null,this.name=typeof o=="string"&&o||"core",this.knownTags=n?Av:{},this.tags=kr(r,this.name,i),this.toStringOptions=s??null,Object.defineProperty(this,$e,{value:st}),Object.defineProperty(this,de,{value:gr}),Object.defineProperty(this,it,{value:ct}),this.sortMapEntries=typeof a=="function"?a:a===!0?Zv:null}clone(){const t=Object.create(Qo.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Lv(e,t){const r=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const c=e.directives.toString(e);c?(r.push(c),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");const n=qf(e,t),{commentString:o}=n.options;if(e.commentBefore){r.length!==1&&r.unshift("");const c=o(e.commentBefore);r.unshift(me(c,""))}let a=!1,s=null;if(e.contents){if(M(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){const l=o(e.contents.commentBefore);r.push(me(l,""))}n.forceBlockIndent=!!e.comment,s=e.contents.comment}const c=s?void 0:()=>a=!0;let u=et(e.contents,n,()=>s=null,c);s&&(u+=ze(u,"",o(s))),(u[0]==="|"||u[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${u}`:r.push(u)}else r.push(et(e.contents,n));if(e.directives?.docEnd)if(e.comment){const c=o(e.comment);c.includes(`
|
|
119
119
|
`)?(r.push("..."),r.push(me(c,""))):r.push(`... ${c}`)}else r.push("...");else{let c=e.comment;c&&a&&(c=c.replace(/^\n+/,"")),c&&((!a||s)&&r[r.length-1]!==""&&r.push(""),r.push(me(o(c),"")))}return r.join(`
|
|
120
120
|
`)+`
|
|
121
|
-
`}class
|
|
121
|
+
`}class br{constructor(t,r,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ae,{value:Dr});let n=null;typeof r=="function"||Array.isArray(r)?n=r:i===void 0&&r&&(i=r,r=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=o;let{version:a}=o;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new W({version:a}),this.setSchema(a,i),this.contents=t===void 0?null:this.createNode(t,n,i)}clone(){const t=Object.create(br.prototype,{[ae]:{value:Dr}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=M(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Ze(this.contents)&&this.contents.add(t)}addIn(t,r){Ze(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){const i=Ff(this);t.anchor=!r||i.has(r)?Jf(r||"a",i):r}return new Fo(t.anchor)}createNode(t,r,i){let n;if(typeof r=="function")t=r.call({"":t},"",t),n=r;else if(Array.isArray(r)){const h=z=>typeof z=="number"||z instanceof String||z instanceof Number,k=r.filter(h).map(String);k.length>0&&(r=r.concat(k)),n=r}else i===void 0&&r&&(i=r,r=void 0);const{aliasDuplicateObjects:o,anchorPrefix:a,flow:s,keepUndefined:c,onTagObj:u,tag:l}=i??{},{onAnchor:d,setAnchors:f,sourceObjects:m}=fv(this,a||"a"),v={aliasDuplicateObjects:o??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:m},g=_t(t,l,v);return s&&R(g)&&(g.flow=!0),f(),g}createPair(t,r,i={}){const n=this.createNode(t,null,i),o=this.createNode(r,null,i);return new G(n,o)}delete(t){return Ze(this.contents)?this.contents.delete(t):!1}deleteIn(t){return ft(t)?this.contents==null?!1:(this.contents=null,!0):Ze(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return R(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return ft(t)?!r&&L(this.contents)?this.contents.value:this.contents:R(this.contents)?this.contents.getIn(t,r):void 0}has(t){return R(this.contents)?this.contents.has(t):!1}hasIn(t){return ft(t)?this.contents!==void 0:R(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=yn(this.schema,[t],r):Ze(this.contents)&&this.contents.set(t,r)}setIn(t,r){ft(t)?this.contents=r:this.contents==null?this.contents=yn(this.schema,Array.from(t),r):Ze(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new W({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new W({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{const n=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(i)this.schema=new Qo(Object.assign(i,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:i,maxAliasCount:n,onAnchor:o,reviver:a}={}){const s={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},c=oe(this.contents,r??"",s);if(typeof o=="function")for(const{count:u,res:l}of s.anchors.values())o(l,u);return typeof a=="function"?Re(a,{"":c},"",c):c}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return Lv(this,t)}}function Ze(e){if(R(e))return!0;throw new Error("Expected a YAML collection as document contents")}class pm extends Error{constructor(t,r,i,n){super(),this.name=t,this.code=i,this.message=n,this.pos=r}}class mt extends pm{constructor(t,r,i){super("YAMLParseError",t,r,i)}}class Cv extends pm{constructor(t,r,i){super("YAMLWarning",t,r,i)}}const Ta=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(s=>t.linePos(s));const{line:i,col:n}=r.linePos[0];r.message+=` at line ${i}, column ${n}`;let o=n-1,a=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(o>=60&&a.length>80){const s=Math.min(o-39,a.length-79);a="…"+a.substring(s),o-=s-1}if(a.length>80&&(a=a.substring(0,79)+"…"),i>1&&/^ *$/.test(a.substring(0,o))){let s=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);s.length>80&&(s=s.substring(0,79)+`…
|
|
122
122
|
`),a=s+a}if(/[^ ]/.test(a)){let s=1;const c=r.linePos[1];c?.line===i&&c.col>n&&(s=Math.max(1,Math.min(c.col-n,80-o)));const u=" ".repeat(o)+"^".repeat(s);r.message+=`:
|
|
123
123
|
|
|
124
124
|
${a}
|
|
125
125
|
${u}
|
|
126
|
-
`}};function
|
|
127
|
-
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const r of t.start)if(r.type==="newline")return!0;if(t.sep){for(const r of t.sep)if(r.type==="newline")return!0}if(kt(t.key)||kt(t.value))return!0}return!1;default:return!0}}function
|
|
128
|
-
`+g.comment:s.comment=g.comment);continue}(g.newlineAfterProp||kt(f))&&n(f??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else g.found?.indent!==i.indent&&n(c,"BAD_INDENT",
|
|
129
|
-
`+I.comment:z.comment=I.comment);const _=new G(z);r.options.keepSourceTokens&&(_.srcToken=l),s.items.push(_)}}return u&&u<c&&n(u,"IMPOSSIBLE","Map comment with trailing content"),s.range=[i.offset,c,u??c],s}function
|
|
126
|
+
`}};function tt(e,{flow:t,indicator:r,next:i,offset:n,onError:o,parentIndent:a,startOnNewline:s}){let c=!1,u=s,l=s,d="",f="",m=!1,v=!1,g=null,h=null,k=null,z=null,I=null,_=null,w=null;for(const S of e)switch(v&&(S.type!=="space"&&S.type!=="newline"&&S.type!=="comma"&&o(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),v=!1),g&&(u&&S.type!=="comment"&&S.type!=="newline"&&o(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),g=null),S.type){case"space":!t&&(r!=="doc-start"||i?.type!=="flow-collection")&&S.source.includes(" ")&&(g=S),l=!0;break;case"comment":{l||o(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const J=S.source.substring(1)||" ";d?d+=f+J:d=J,f="",u=!1;break}case"newline":u?d?d+=S.source:(!_||r!=="seq-item-ind")&&(c=!0):f+=S.source,u=!0,m=!0,(h||k)&&(z=S),l=!0;break;case"anchor":h&&o(S,"MULTIPLE_ANCHORS","A node can have at most one anchor"),S.source.endsWith(":")&&o(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),h=S,w??(w=S.offset),u=!1,l=!1,v=!0;break;case"tag":{k&&o(S,"MULTIPLE_TAGS","A node can have at most one tag"),k=S,w??(w=S.offset),u=!1,l=!1,v=!0;break}case r:(h||k)&&o(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`),_&&o(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${t??"collection"}`),_=S,u=r==="seq-item-ind"||r==="explicit-key-ind",l=!1;break;case"comma":if(t){I&&o(S,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),I=S,u=!1,l=!1;break}default:o(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),u=!1,l=!1}const x=e[e.length-1],E=x?x.offset+x.source.length:n;return v&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&o(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g&&(u&&g.indent<=a||i?.type==="block-map"||i?.type==="block-seq")&&o(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:I,found:_,spaceBefore:c,comment:d,hasNewline:m,anchor:h,tag:k,newlineAfterProp:z,end:E,start:w??E}}function kt(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
127
|
+
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const r of t.start)if(r.type==="newline")return!0;if(t.sep){for(const r of t.sep)if(r.type==="newline")return!0}if(kt(t.key)||kt(t.value))return!0}return!1;default:return!0}}function Zr(e,t,r){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&kt(t)&&r(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function gm(e,t,r){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const n=typeof i=="function"?i:(o,a)=>o===a||L(o)&&L(a)&&o.value===a.value;return t.some(o=>n(o.key,r))}const Da="All mapping items must start at the same column";function Rv({composeNode:e,composeEmptyNode:t},r,i,n,o){const a=o?.nodeClass??te,s=new a(r.schema);r.atRoot&&(r.atRoot=!1);let c=i.offset,u=null;for(const l of i.items){const{start:d,key:f,sep:m,value:v}=l,g=tt(d,{indicator:"explicit-key-ind",next:f??m?.[0],offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0}),h=!g.found;if(h){if(f&&(f.type==="block-seq"?n(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in f&&f.indent!==i.indent&&n(c,"BAD_INDENT",Da)),!g.anchor&&!g.tag&&!m){u=g.end,g.comment&&(s.comment?s.comment+=`
|
|
128
|
+
`+g.comment:s.comment=g.comment);continue}(g.newlineAfterProp||kt(f))&&n(f??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else g.found?.indent!==i.indent&&n(c,"BAD_INDENT",Da);r.atKey=!0;const k=g.end,z=f?e(r,f,g,n):t(r,k,d,null,g,n);r.schema.compat&&Zr(i.indent,f,n),r.atKey=!1,gm(r,s.items,z)&&n(k,"DUPLICATE_KEY","Map keys must be unique");const I=tt(m??[],{indicator:"map-value-ind",next:v,offset:z.range[2],onError:n,parentIndent:i.indent,startOnNewline:!f||f.type==="block-scalar"});if(c=I.end,I.found){h&&(v?.type==="block-map"&&!I.hasNewline&&n(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&g.start<I.found.offset-1024&&n(z.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const _=v?e(r,v,I,n):t(r,c,m,null,I,n);r.schema.compat&&Zr(i.indent,v,n),c=_.range[2];const w=new G(z,_);r.options.keepSourceTokens&&(w.srcToken=l),s.items.push(w)}else{h&&n(z.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),I.comment&&(z.comment?z.comment+=`
|
|
129
|
+
`+I.comment:z.comment=I.comment);const _=new G(z);r.options.keepSourceTokens&&(_.srcToken=l),s.items.push(_)}}return u&&u<c&&n(u,"IMPOSSIBLE","Map comment with trailing content"),s.range=[i.offset,c,u??c],s}function Mv({composeNode:e,composeEmptyNode:t},r,i,n,o){const a=o?.nodeClass??Te,s=new a(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=i.offset,u=null;for(const{start:l,value:d}of i.items){const f=tt(l,{indicator:"seq-item-ind",next:d,offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||d)d?.type==="block-seq"?n(f.end,"BAD_INDENT","All sequence items must start at the same column"):n(c,"MISSING_CHAR","Sequence item without - indicator");else{u=f.end,f.comment&&(s.comment=f.comment);continue}const m=d?e(r,d,f,n):t(r,f.end,l,null,f,n);r.schema.compat&&Zr(i.indent,d,n),c=m.range[2],s.items.push(m)}return s.range=[i.offset,c,u??c],s}function Yt(e,t,r,i){let n="";if(e){let o=!1,a="";for(const s of e){const{source:c,type:u}=s;switch(u){case"space":o=!0;break;case"comment":{r&&!o&&i(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const l=c.substring(1)||" ";n?n+=a+l:n=l,a="";break}case"newline":n&&(a+=c),o=!0;break;default:i(s,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=c.length}}return{comment:n,offset:t}}const wr="Block collections are not allowed within flow collections",Sr=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Fv({composeNode:e,composeEmptyNode:t},r,i,n,o){const a=i.start.source==="{",s=a?"flow map":"flow sequence",c=o?.nodeClass??(a?te:Te),u=new c(r.schema);u.flow=!0;const l=r.atRoot;l&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let d=i.offset+i.start.source.length;for(let h=0;h<i.items.length;++h){const k=i.items[h],{start:z,key:I,sep:_,value:w}=k,x=tt(z,{flow:s,indicator:"explicit-key-ind",next:I??_?.[0],offset:d,onError:n,parentIndent:i.indent,startOnNewline:!1});if(!x.found){if(!x.anchor&&!x.tag&&!_&&!w){h===0&&x.comma?n(x.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):h<i.items.length-1&&n(x.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),x.comment&&(u.comment?u.comment+=`
|
|
130
130
|
`+x.comment:u.comment=x.comment),d=x.end;continue}!a&&r.options.strict&&kt(I)&&n(I,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(h===0)x.comma&&n(x.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(x.comma||n(x.start,"MISSING_CHAR",`Missing , between ${s} items`),x.comment){let E="";e:for(const S of z)switch(S.type){case"comma":case"space":break;case"comment":E=S.source.substring(1);break e;default:break e}if(E){let S=u.items[u.items.length-1];F(S)&&(S=S.value??S.key),S.comment?S.comment+=`
|
|
131
|
-
`+E:S.comment=E,x.comment=x.comment.substring(E.length+1)}}if(!a&&!_&&!x.found){const E=w?e(r,w,x,n):t(r,x.end,_,null,x,n);u.items.push(E),d=E.range[2],
|
|
132
|
-
`+J.comment:S.comment=J.comment);const Pe=new G(S,ve);if(r.options.keepSourceTokens&&(Pe.srcToken=k),a){const K=u;
|
|
133
|
-
`+h.comment:u.comment=h.comment),u.range=[i.offset,g,h.offset]}else u.range=[i.offset,g,g];return u}function
|
|
131
|
+
`+E:S.comment=E,x.comment=x.comment.substring(E.length+1)}}if(!a&&!_&&!x.found){const E=w?e(r,w,x,n):t(r,x.end,_,null,x,n);u.items.push(E),d=E.range[2],Sr(w)&&n(E.range,"BLOCK_IN_FLOW",wr)}else{r.atKey=!0;const E=x.end,S=I?e(r,I,x,n):t(r,E,z,null,x,n);Sr(I)&&n(S.range,"BLOCK_IN_FLOW",wr),r.atKey=!1;const J=tt(_??[],{flow:s,indicator:"map-value-ind",next:w,offset:S.range[2],onError:n,parentIndent:i.indent,startOnNewline:!1});if(J.found){if(!a&&!x.found&&r.options.strict){if(_)for(const K of _){if(K===J.found)break;if(K.type==="newline"){n(K,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}x.start<J.found.offset-1024&&n(J.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else w&&("source"in w&&w.source?.[0]===":"?n(w,"MISSING_CHAR",`Missing space after : in ${s}`):n(J.start,"MISSING_CHAR",`Missing , or : between ${s} items`));const ve=w?e(r,w,J,n):J.found?t(r,J.end,_,null,J,n):null;ve?Sr(w)&&n(ve.range,"BLOCK_IN_FLOW",wr):J.comment&&(S.comment?S.comment+=`
|
|
132
|
+
`+J.comment:S.comment=J.comment);const Pe=new G(S,ve);if(r.options.keepSourceTokens&&(Pe.srcToken=k),a){const K=u;gm(r,K.items,S)&&n(E,"DUPLICATE_KEY","Map keys must be unique"),K.items.push(Pe)}else{const K=new te(r.schema);K.flow=!0,K.items.push(Pe);const ta=(ve??S).range;K.range=[S.range[0],ta[1],ta[2]],u.items.push(K)}d=ve?ve.range[2]:J.end}}const f=a?"}":"]",[m,...v]=i.end;let g=d;if(m?.source===f)g=m.offset+m.source.length;else{const h=s[0].toUpperCase()+s.substring(1),k=l?`${h} must end with a ${f}`:`${h} in block collection must be sufficiently indented and end with a ${f}`;n(d,l?"MISSING_CHAR":"BAD_INDENT",k),m&&m.source.length!==1&&v.unshift(m)}if(v.length>0){const h=Yt(v,g,r.options.strict,n);h.comment&&(u.comment?u.comment+=`
|
|
133
|
+
`+h.comment:u.comment=h.comment),u.range=[i.offset,g,h.offset]}else u.range=[i.offset,g,g];return u}function Ir(e,t,r,i,n,o){const a=r.type==="block-map"?Rv(e,t,r,i,o):r.type==="block-seq"?Mv(e,t,r,i,o):Fv(e,t,r,i,o),s=a.constructor;return n==="!"||n===s.tagName?(a.tag=s.tagName,a):(n&&(a.tag=n),a)}function Jv(e,t,r,i,n){const o=i.tag,a=o?t.directives.tagName(o.source,f=>n(o,"TAG_RESOLVE_FAILED",f)):null;if(r.type==="block-seq"){const{anchor:f,newlineAfterProp:m}=i,v=f&&o?f.offset>o.offset?f:o:f??o;v&&(!m||m.offset<v.offset)&&n(v,"MISSING_CHAR","Missing newline after block sequence props")}const s=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!o||!a||a==="!"||a===te.tagName&&s==="map"||a===Te.tagName&&s==="seq")return Ir(e,t,r,n,a);let c=t.schema.tags.find(f=>f.tag===a&&f.collection===s);if(!c){const f=t.schema.knownTags[a];if(f?.collection===s)t.schema.tags.push(Object.assign({},f,{default:!1})),c=f;else return f?n(o,"BAD_COLLECTION_TYPE",`${f.tag} used for ${s} collection, but expects ${f.collection??"scalar"}`,!0):n(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),Ir(e,t,r,n,a)}const u=Ir(e,t,r,n,a,c),l=c.resolve?.(u,f=>n(o,"TAG_RESOLVE_FAILED",f),t.options)??u,d=M(l)?l:new U(l);return d.range=u.range,d.tag=a,c?.format&&(d.format=c.format),d}function Kv(e,t,r){const i=t.offset,n=Bv(t,e.options.strict,r);if(!n)return{value:"",type:null,comment:"",range:[i,i,i]};const o=n.mode===">"?U.BLOCK_FOLDED:U.BLOCK_LITERAL,a=t.source?Vv(t.source):[];let s=a.length;for(let g=a.length-1;g>=0;--g){const h=a[g][1];if(h===""||h==="\r")s=g;else break}if(s===0){const g=n.chomp==="+"&&a.length>0?`
|
|
134
134
|
`.repeat(Math.max(1,a.length-1)):"";let h=i+n.length;return t.source&&(h+=t.source.length),{value:g,type:o,comment:n.comment,range:[i,h,h]}}let c=t.indent+n.indent,u=t.offset+n.length,l=0;for(let g=0;g<s;++g){const[h,k]=a[g];if(k===""||k==="\r")n.indent===0&&h.length>c&&(c=h.length);else{h.length<c&&r(u+h.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),n.indent===0&&(c=h.length),l=g,c===0&&!e.atRoot&&r(u,"BAD_INDENT","Block scalar values in collections must be indented");break}u+=h.length+k.length+1}for(let g=a.length-1;g>=s;--g)a[g][0].length>c&&(s=g+1);let d="",f="",m=!1;for(let g=0;g<l;++g)d+=a[g][0].slice(c)+`
|
|
135
135
|
`;for(let g=l;g<s;++g){let[h,k]=a[g];u+=h.length+k.length+1;const z=k[k.length-1]==="\r";if(z&&(k=k.slice(0,-1)),k&&h.length<c){const _=`Block scalar lines must not be less indented than their ${n.indent?"explicit indentation indicator":"first line"}`;r(u-k.length-(z?2:1),"BAD_INDENT",_),h=""}o===U.BLOCK_LITERAL?(d+=f+h.slice(c)+k,f=`
|
|
136
136
|
`):h.length>c||k[0]===" "?(f===" "?f=`
|
|
@@ -145,51 +145,51 @@ ${u}
|
|
|
145
145
|
`+a[g][0].slice(c);d[d.length-1]!==`
|
|
146
146
|
`&&(d+=`
|
|
147
147
|
`);break;default:d+=`
|
|
148
|
-
`}const v=i+n.length+t.source.length;return{value:d,type:o,comment:n.comment,range:[i,v,v]}}function
|
|
148
|
+
`}const v=i+n.length+t.source.length;return{value:d,type:o,comment:n.comment,range:[i,v,v]}}function Bv({offset:e,props:t},r,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:n}=t[0],o=n[0];let a=0,s="",c=-1;for(let f=1;f<n.length;++f){const m=n[f];if(!s&&(m==="-"||m==="+"))s=m;else{const v=Number(m);!a&&v?a=v:c===-1&&(c=e+f)}}c!==-1&&i(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let u=!1,l="",d=n.length;for(let f=1;f<t.length;++f){const m=t[f];switch(m.type){case"space":u=!0;case"newline":d+=m.source.length;break;case"comment":r&&!u&&i(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=m.source.length,l=m.source.substring(1);break;case"error":i(m,"UNEXPECTED_TOKEN",m.message),d+=m.source.length;break;default:{const v=`Unexpected token in block scalar header: ${m.type}`;i(m,"UNEXPECTED_TOKEN",v);const g=m.source;g&&typeof g=="string"&&(d+=g.length)}}}return{mode:o,indent:a,chomp:s,comment:l,length:d}}function Vv(e){const t=e.split(/\n( *)/),r=t[0],i=r.match(/^( *)/),o=[i?.[1]?[i[1],r.slice(i[1].length)]:["",r]];for(let a=1;a<t.length;a+=2)o.push([t[a],t[a+1]]);return o}function qv(e,t,r){const{offset:i,type:n,source:o,end:a}=e;let s,c;const u=(f,m,v)=>r(i+f,m,v);switch(n){case"scalar":s=U.PLAIN,c=Wv(o,u);break;case"single-quoted-scalar":s=U.QUOTE_SINGLE,c=Gv(o,u);break;case"double-quoted-scalar":s=U.QUOTE_DOUBLE,c=Xv(o,u);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${n}`),{value:"",type:null,comment:"",range:[i,i+o.length,i+o.length]}}const l=i+o.length,d=Yt(a,l,t,r);return{value:c,type:s,comment:d.comment,range:[i,l,d.offset]}}function Wv(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),hm(e)}function Gv(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),hm(e.slice(1,-1)).replace(/''/g,"'")}function hm(e){let t,r;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
149
149
|
`,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
150
150
|
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let n=i[1],o=" ",a=t.lastIndex;for(r.lastIndex=a;i=r.exec(e);)i[1]===""?o===`
|
|
151
151
|
`?n+=o:o=`
|
|
152
|
-
`:(n+=o+i[1],o=" "),a=r.lastIndex;const s=/[ \t]*(.*)/sy;return s.lastIndex=a,i=s.exec(e),n+o+(i?.[1]??"")}function
|
|
152
|
+
`:(n+=o+i[1],o=" "),a=r.lastIndex;const s=/[ \t]*(.*)/sy;return s.lastIndex=a,i=s.exec(e),n+o+(i?.[1]??"")}function Xv(e,t){let r="";for(let i=1;i<e.length-1;++i){const n=e[i];if(!(n==="\r"&&e[i+1]===`
|
|
153
153
|
`))if(n===`
|
|
154
|
-
`){const{fold:o,offset:a}=
|
|
154
|
+
`){const{fold:o,offset:a}=Yv(e,i);r+=o,i=a}else if(n==="\\"){let o=e[++i];const a=Hv[o];if(a)r+=a;else if(o===`
|
|
155
155
|
`)for(o=e[i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="\r"&&e[i+1]===`
|
|
156
|
-
`)for(o=e[++i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="x"||o==="u"||o==="U"){const s=o==="x"?2:o==="u"?4:8;r+=
|
|
156
|
+
`)for(o=e[++i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="x"||o==="u"||o==="U"){const s=o==="x"?2:o==="u"?4:8;r+=Qv(e,i+1,s,t),i+=s}else{const s=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),r+=s}}else if(n===" "||n===" "){const o=i;let a=e[i+1];for(;a===" "||a===" ";)a=e[++i+1];a!==`
|
|
157
157
|
`&&!(a==="\r"&&e[i+2]===`
|
|
158
|
-
`)&&(r+=i>o?e.slice(o,i+1):n)}else r+=n}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function
|
|
158
|
+
`)&&(r+=i>o?e.slice(o,i+1):n)}else r+=n}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function Yv(e,t){let r="",i=e[t+1];for(;(i===" "||i===" "||i===`
|
|
159
159
|
`||i==="\r")&&!(i==="\r"&&e[t+2]!==`
|
|
160
160
|
`);)i===`
|
|
161
161
|
`&&(r+=`
|
|
162
|
-
`),t+=1,i=e[t+1];return r||(r=" "),{fold:r,offset:t}}const
|
|
163
|
-
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function
|
|
162
|
+
`),t+=1,i=e[t+1];return r||(r=" "),{fold:r,offset:t}}const Hv={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
163
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Qv(e,t,r,i){const n=e.substr(t,r),a=n.length===r&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;try{return String.fromCodePoint(a)}catch{const s=e.substr(t-2,r+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),s}}function vm(e,t,r,i){const{value:n,type:o,comment:a,range:s}=t.type==="block-scalar"?Kv(e,t,i):qv(t,e.options.strict,i),c=r?e.directives.tagName(r.source,d=>i(r,"TAG_RESOLVE_FAILED",d)):null;let u;e.options.stringKeys&&e.atKey?u=e.schema[de]:c?u=ey(e.schema,n,c,r,i):t.type==="scalar"?u=ty(e,n,t,i):u=e.schema[de];let l;try{const d=u.resolve(n,f=>i(r??t,"TAG_RESOLVE_FAILED",f),e.options);l=L(d)?d:new U(d)}catch(d){const f=d instanceof Error?d.message:String(d);i(r??t,"TAG_RESOLVE_FAILED",f),l=new U(n)}return l.range=s,l.source=n,o&&(l.type=o),c&&(l.tag=c),u.format&&(l.format=u.format),a&&(l.comment=a),l}function ey(e,t,r,i,n){if(r==="!")return e[de];const o=[];for(const s of e.tags)if(!s.collection&&s.tag===r)if(s.default&&s.test)o.push(s);else return s;for(const s of o)if(s.test?.test(t))return s;const a=e.knownTags[r];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(n(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[de])}function ty({atKey:e,directives:t,schema:r},i,n,o){const a=r.tags.find(s=>(s.default===!0||e&&s.default==="key")&&s.test?.test(i))||r[de];if(r.compat){const s=r.compat.find(c=>c.default&&c.test?.test(i))??r[de];if(a.tag!==s.tag){const c=t.tagString(a.tag),u=t.tagString(s.tag),l=`Value may be parsed as either ${c} or ${u}`;o(n,"TAG_RESOLVE_FAILED",l,!0)}}return a}function ny(e,t,r){if(t){r??(r=t.length);for(let i=r-1;i>=0;--i){let n=t[i];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++i];n?.type==="space";)e+=n.source.length,n=t[++i];break}}return e}const ry={composeNode:ym,composeEmptyNode:ea};function ym(e,t,r,i){const n=e.atKey,{spaceBefore:o,comment:a,anchor:s,tag:c}=r;let u,l=!0;switch(t.type){case"alias":u=iy(e,t,i),(s||c)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=vm(e,t,c,i),s&&(u.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{u=Jv(ry,e,t,r,i),s&&(u.anchor=s.source.substring(1))}catch(d){const f=d instanceof Error?d.message:String(d);i(t,"RESOURCE_EXHAUSTION",f)}break;default:{const d=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",d),l=!1}}return u??(u=ea(e,t.offset,void 0,null,r,i)),s&&u.anchor===""&&i(s,"BAD_ALIAS","Anchor cannot be an empty string"),n&&e.options.stringKeys&&(!L(u)||typeof u.value!="string"||u.tag&&u.tag!=="tag:yaml.org,2002:str")&&i(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(u.spaceBefore=!0),a&&(t.type==="scalar"&&t.source===""?u.comment=a:u.commentBefore=a),e.options.keepSourceTokens&&l&&(u.srcToken=t),u}function ea(e,t,r,i,{spaceBefore:n,comment:o,anchor:a,tag:s,end:c},u){const l={type:"scalar",offset:ny(t,r,i),indent:-1,source:""},d=vm(e,l,s,u);return a&&(d.anchor=a.source.substring(1),d.anchor===""&&u(a,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(d.spaceBefore=!0),o&&(d.comment=o,d.range[2]=c),d}function iy({options:e},{offset:t,source:r,end:i},n){const o=new Fo(r.substring(1));o.source===""&&n(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&n(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const a=t+r.length,s=Yt(i,a,e.strict,n);return o.range=[t,a,s.offset],s.comment&&(o.comment=s.comment),o}function oy(e,t,{offset:r,start:i,value:n,end:o},a){const s=Object.assign({_directives:t},e),c=new br(void 0,s),u={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},l=tt(i,{indicator:"doc-start",next:n??o?.[0],offset:r,onError:a,parentIndent:0,startOnNewline:!0});l.found&&(c.directives.docStart=!0,n&&(n.type==="block-map"||n.type==="block-seq")&&!l.hasNewline&&a(l.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=n?ym(u,n,l,a):ea(u,l.end,i,null,l,a);const d=c.contents.range[2],f=Yt(o,d,!1,a);return f.comment&&(c.comment=f.comment),c.range=[r,d,f.offset],c}function lt(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function Ea(e){let t="",r=!1,i=!1;for(let n=0;n<e.length;++n){const o=e[n];switch(o[0]){case"#":t+=(t===""?"":i?`
|
|
164
164
|
|
|
165
165
|
`:`
|
|
166
|
-
`)+(o.substring(1)||" "),r=!0,i=!1;break;case"%":e[n+1]?.[0]!=="#"&&(n+=1),r=!1;break;default:r||(i=!0),r=!1}}return{comment:t,afterEmptyLine:i}}class
|
|
166
|
+
`)+(o.substring(1)||" "),r=!0,i=!1;break;case"%":e[n+1]?.[0]!=="#"&&(n+=1),r=!1;break;default:r||(i=!0),r=!1}}return{comment:t,afterEmptyLine:i}}class ay{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,i,n,o)=>{const a=lt(r);o?this.warnings.push(new Cv(a,i,n)):this.errors.push(new mt(a,i,n))},this.directives=new W({version:t.version||"1.2"}),this.options=t}decorate(t,r){const{comment:i,afterEmptyLine:n}=Ea(this.prelude);if(i){const o=t.contents;if(r)t.comment=t.comment?`${t.comment}
|
|
167
167
|
${i}`:i;else if(n||t.directives.docStart||!o)t.commentBefore=i;else if(R(o)&&!o.flow&&o.items.length>0){let a=o.items[0];F(a)&&(a=a.key);const s=a.commentBefore;a.commentBefore=s?`${i}
|
|
168
168
|
${s}`:i}else{const a=o.commentBefore;o.commentBefore=a?`${i}
|
|
169
|
-
${a}`:i}}if(r){for(let o=0;o<this.errors.length;++o)t.errors.push(this.errors[o]);for(let o=0;o<this.warnings.length;++o)t.warnings.push(this.warnings[o])}else t.errors=this.errors,t.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:
|
|
170
|
-
${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new
|
|
169
|
+
${a}`:i}}if(r){for(let o=0;o<this.errors.length;++o)t.errors.push(this.errors[o]);for(let o=0;o<this.warnings.length;++o)t.warnings.push(this.warnings[o])}else t.errors=this.errors,t.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Ea(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,i=-1){for(const n of t)yield*this.next(n);yield*this.end(r,i)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(r,i,n)=>{const o=lt(t);o[0]+=r,this.onError(o,"BAD_DIRECTIVE",i,n)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const r=oy(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new mt(lt(t),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){const i="Unexpected doc-end without preceding document";this.errors.push(new mt(lt(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const r=Yt(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const i=this.doc.comment;this.doc.comment=i?`${i}
|
|
170
|
+
${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new mt(lt(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const i=Object.assign({_directives:this.directives},this.options),n=new br(void 0,i);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,r,r],this.decorate(n,!1),yield n}}}const $m="\uFEFF",bm="",_m="",Lr="";function sy(e){switch(e){case $m:return"byte-order-mark";case bm:return"doc-mode";case _m:return"flow-error-end";case Lr:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
171
171
|
`:case`\r
|
|
172
172
|
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function ce(e){switch(e){case void 0:case" ":case`
|
|
173
|
-
`:case"\r":case" ":return!0;default:return!1}}const
|
|
174
|
-
\r `),
|
|
173
|
+
`:case"\r":case" ":return!0;default:return!1}}const Pa=new Set("0123456789ABCDEFabcdef"),cy=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),on=new Set(",[]{}"),uy=new Set(` ,[]{}
|
|
174
|
+
\r `),zr=e=>!e||uy.has(e);class ly{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,r=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!r;let i=this.next??"stream";for(;i&&(r||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===`
|
|
175
175
|
`?!0:r==="\r"?this.buffer[t+1]===`
|
|
176
176
|
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let r=this.buffer[t];if(this.indentNext>0){let i=0;for(;r===" ";)r=this.buffer[++i+t];if(r==="\r"){const n=this.buffer[i+t+1];if(n===`
|
|
177
177
|
`||!n&&!this.atEnd)return t+i+1}return r===`
|
|
178
178
|
`||i>=this.indentNext||!r&&!this.atEnd?t+i:-1}if(r==="-"||r==="."){const i=this.buffer.substr(t,3);if((i==="---"||i==="...")&&ce(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
|
179
|
-
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]
|
|
179
|
+
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===$m&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let r=t.length,i=t.indexOf("#");for(;i!==-1;){const o=t[i-1];if(o===" "||o===" "){r=i-1;break}else i=t.indexOf("#",i+1)}for(;;){const o=t[r-1];if(o===" "||o===" ")r-=1;else break}const n=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){const r=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-r),yield*this.pushNewline(),"stream"}return yield bm,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const r=this.peek(3);if((r==="---"||r==="...")&&ce(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!ce(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&ce(r)){const i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(zr),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,i=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=i=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);const n=this.getLine();if(n===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&n[0]!=="#"||i===0&&(n.startsWith("---")||n.startsWith("..."))&&ce(n[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield _m,yield*this.parseLineStart();let o=0;for(;n[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),n[o]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(zr),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const a=this.charAt(1);if(this.flowKey||ce(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let r=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let o=0;for(;this.buffer[r-1-o]==="\\";)o+=1;if(o%2===0)break;r=this.buffer.indexOf('"',r+1)}const i=this.buffer.substring(0,r);let n=i.indexOf(`
|
|
180
180
|
`,this.pos);if(n!==-1){for(;n!==-1;){const o=this.continueScalar(n+1);if(o===-1)break;n=i.indexOf(`
|
|
181
181
|
`,o)}n!==-1&&(r=n-(i[n-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const r=this.buffer[++t];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>ce(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,i;e:for(let o=this.pos;i=this.buffer[o];++o)switch(i){case" ":r+=1;break;case`
|
|
182
182
|
`:t=o,r=0;break;case"\r":{const a=this.buffer[o+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===`
|
|
183
183
|
`)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const o=this.continueScalar(t+1);if(o===-1)break;t=this.buffer.indexOf(`
|
|
184
184
|
`,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let n=t+1;for(i=this.buffer[n];i===" ";)i=this.buffer[++n];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
|
|
185
185
|
`;)i=this.buffer[++n];t=n-1}else if(!this.blockScalarKeep)do{let o=t-1,a=this.buffer[o];a==="\r"&&(a=this.buffer[--o]);const s=o;for(;a===" ";)a=this.buffer[--o];if(a===`
|
|
186
|
-
`&&o>=this.pos&&o+1+r>s)t=o;else break}while(!0);return yield
|
|
186
|
+
`&&o>=this.pos&&o+1+r>s)t=o;else break}while(!0);return yield Lr,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let r=this.pos-1,i=this.pos-1,n;for(;n=this.buffer[++i];)if(n===":"){const o=this.buffer[i+1];if(ce(o)||t&&on.has(o))break;r=i}else if(ce(n)){let o=this.buffer[i+1];if(n==="\r"&&(o===`
|
|
187
187
|
`?(i+=1,n=`
|
|
188
188
|
`,o=this.buffer[i+1]):r=i),o==="#"||t&&on.has(o))break;if(n===`
|
|
189
|
-
`){const a=this.continueScalar(i+1);if(a===-1)break;i=Math.max(i,a-2)}}else{if(t&&on.has(n))break;r=i}return!n&&!this.atEnd?this.setNext("plain-scalar"):(yield
|
|
189
|
+
`){const a=this.continueScalar(i+1);if(a===-1)break;i=Math.max(i,a-2)}}else{if(t&&on.has(n))break;r=i}return!n&&!this.atEnd?this.setNext("plain-scalar"):(yield Lr,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){const i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(r&&(yield""),0)}*pushIndicators(){let t=0;e:for(;;){switch(this.charAt(0)){case"!":t+=yield*this.pushTag(),t+=yield*this.pushSpaces(!0);continue e;case"&":t+=yield*this.pushUntil(zr),t+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{const r=this.flowLevel>0,i=this.charAt(1);if(ce(i)||r&&on.has(i)){r?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,t+=yield*this.pushCount(1),t+=yield*this.pushSpaces(!0);continue e}}}break e}return t}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!ce(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(cy.has(r))r=this.buffer[++t];else if(r==="%"&&Pa.has(this.buffer[t+1])&&Pa.has(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
|
|
190
190
|
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
191
|
-
`?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,i;do i=this.buffer[++r];while(i===" "||t&&i===" ");const n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(t){let r=this.pos,i=this.buffer[r];for(;!t(i);)i=this.buffer[++r];return yield*this.pushToIndex(r,!1)}}class
|
|
191
|
+
`?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,i;do i=this.buffer[++r];while(i===" "||t&&i===" ");const n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(t){let r=this.pos,i=this.buffer[r];for(;!t(i);)i=this.buffer[++r];return yield*this.pushToIndex(r,!1)}}class dy{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,i=this.lineStarts.length;for(;r<i;){const o=r+i>>1;this.lineStarts[o]<t?r=o+1:i=o}if(this.lineStarts[r]===t)return{line:r+1,col:1};if(r===0)return{line:0,col:t};const n=this.lineStarts[r-1];return{line:r,col:t-n+1}}}}function ye(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function Aa(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function km(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function an(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Le(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function bn(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let r=0;r<t.length;++r)e.push(t[r])}function Za(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!ye(t.start,"explicit-key-ind")&&!ye(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,km(t.value)?t.value.end?bn(t.value.end,t.sep):t.value.end=t.sep:bn(t.start,t.sep),delete t.sep)}class fy{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new ly,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const i of this.lexer.lex(t,r))yield*this.next(i);r||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const r=sy(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const r=t??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{const i=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in i?i.indent:0:r.type==="flow-collection"&&i.type==="document"&&(r.indent=0),r.type==="flow-collection"&&Za(r),i.type){case"document":i.value=r;break;case"block-scalar":i.props.push(r);break;case"block-map":{const n=i.items[i.items.length-1];if(n.value){i.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=r;else{Object.assign(n,{key:r,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{const n=i.items[i.items.length-1];n.value?i.items.push({start:[],value:r}):n.value=r;break}case"flow-collection":{const n=i.items[i.items.length-1];!n||n.value?i.items.push({start:[],key:r,sep:[]}):n.sep?n.value=r:Object.assign(n,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const n=r.items[r.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&Aa(n.start)===-1&&(r.indent===0||n.start.every(o=>o.type!=="comment"||o.indent<r.indent))&&(i.type==="document"?i.end=n.start:i.items.push({start:n.start}),r.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{Aa(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const r=an(this.peek(2)),i=Le(r);let n;t.end?(n=t.end,n.push(this.sourceToken),delete t.end):n=[this.sourceToken];const o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
|
|
192
192
|
`)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
|
|
193
|
-
`,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const r=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const i="end"in r.value?r.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){const n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){
|
|
193
|
+
`,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const r=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const i="end"in r.value?r.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){const n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){bn(n,r.start),n.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent,n=i&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(n&&r.sep&&!r.value){const a=[];for(let s=0;s<r.sep.length;++s){const c=r.sep[s];switch(c.type){case"newline":a.push(s);break;case"space":break;case"comment":c.indent>t.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(o=r.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":n||r.value?(o.push(this.sourceToken),t.items.push({start:o}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):n||r.value?(o.push(this.sourceToken),t.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ye(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(km(r.key)&&!ye(r.sep,"newline")){const a=Le(r.start),s=r.key,c=r.sep;c.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:s,sep:c}]})}else o.length>0?r.sep=r.sep.concat(o,this.sourceToken):r.sep.push(this.sourceToken);else if(ye(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const a=Le(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||n?t.items.push({start:o,key:null,sep:[this.sourceToken]}):ye(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);n||r.value?(t.items.push({start:o,key:a,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(a):(Object.assign(r,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{const a=this.startBlockValue(t);if(a){if(a.type==="block-seq"){if(!r.explicitKey&&r.sep&&!ye(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else i&&t.items.push({start:o});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){const i="end"in r.value?r.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){const n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){bn(n,r.start),n.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||ye(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const r=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:n,sep:[]}):r.sep?this.stack.push(n):Object.assign(r,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{const i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){const n=an(i),o=Le(n);Za(t);const a=t.end.splice(1,t.end.length);a.push(this.sourceToken);const s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:o,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(`
|
|
194
194
|
`)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
|
|
195
|
-
`,r)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=an(t),i=Le(r);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const r=an(t),i=Le(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function
|
|
195
|
+
`,r)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=an(t),i=Le(r);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const r=an(t),i=Le(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function my(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new dy||null,prettyErrors:t}}function py(e,t={}){const{lineCounter:r,prettyErrors:i}=my(t),n=new fy(r?.addNewLine),o=new ay(t);let a=null;for(const s of o.compose(n.parse(e),!0,e.length))if(!a)a=s;else if(a.options.logLevel!=="silent"){a.errors.push(new mt(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&r&&(a.errors.forEach(Ta(e,r)),a.warnings.forEach(Ta(e,r))),a}function gy(e,t,r){let i;const n=py(e,r);if(!n)return null;if(n.warnings.forEach(o=>Wf(n.options.logLevel,o)),n.errors.length>0){if(n.options.logLevel!=="silent")throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:i},r))}class hy{run(t){t.objects=t.files.flatMap(r=>{if(Zf(r)!="yaml")return[];const n=Lf(r);if(!n)return t.warnings.push({type:ee.LouterWarningType.MissingKind,path:r.path,message:"Could not get kind. Is the file formatted as 'id.kind.yaml'?"}),[];try{const o=gy(r.data);return o==null?(t.warnings.push({path:r.path,type:ee.LouterWarningType.InvalidYaml,message:"Yaml file is empty"}),[]):[{path:r.path,kind:n,data:o}]}catch{return t.warnings.push({path:r.path,type:ee.LouterWarningType.InvalidYaml,message:"Could not parse Yaml file"}),[]}})}}function vy(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function yy(e,{delimiter:t="."}={}){return Cr(e,"",t)}function Cr(e,t,r){const i={},n=Object.keys(e);for(let o=0;o<n.length;o++){const a=n[o],s=e[a],c=t?`${t}${r}${a}`:a;if(vy(s)&&Object.keys(s).length>0){Object.assign(i,Cr(s,c,r));continue}if(Array.isArray(s)&&s.length>0){Object.assign(i,Cr(s,c,r));continue}i[c]=s}return i}class $y{run(t){this.parse(t),this.validateReferences(t)}parse(t){t.objects.forEach(r=>{const i=t.kinds[r.kind];if(!i){t.warnings.push({path:r.path,type:ee.LouterWarningType.InvalidKind,message:`Invalid content kind '${r.kind}'`});return}const n=r.data.id;if(!n){t.warnings.push({path:r.path,type:ee.LouterWarningType.MissingGlobalIdKey,message:"Content does not have the global idKey 'id'"});return}const o=i.safeParse(r.data);if(!o.success){t.warnings.push({path:r.path,type:ee.LouterWarningType.ZodParsingFailed,message:Vr(o.error).toString()});return}if(t.content[r.kind]?.[n]){t.warnings.push({path:r.path,type:ee.LouterWarningType.DuplicateId,message:`Duplicate id '${n}'`});return}t.content[r.kind][n]=o.data})}validateReferences(t){Object.values(t.content).forEach(r=>{Object.values(r).forEach(i=>{const n=yy(i);Object.entries(n).forEach(([o,a])=>{if(a.toString().startsWith(Af)){const[s,c,...u]=a.split(vn),l=u.join(vn);if(!t.content[c]){t.warnings.push({type:ee.LouterWarningType.MissingReferenceKind,message:`Missing reference kind '${c}'`,path:o});return}if(!t.content[c][l]){t.warnings.push({type:ee.LouterWarningType.MissingReference,message:`Missing reference '${a}'`,path:o});return}}})})})}}exports.LouterWarningType=ee.LouterWarningType;exports.ContentManager=iv;exports.ContentSchema=nv;exports.Louter=wm;exports.LouterError=Rr;exports.LouterJsonParser=ov;exports.LouterValidator=$y;exports.LouterYamlParser=hy;exports.createContext=La;exports.ref=rv;
|