@learncard/network-plugin 2.10.15 → 2.11.2
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/lcn-plugin.cjs.development.js +421 -18
- package/dist/lcn-plugin.cjs.development.js.map +3 -3
- package/dist/lcn-plugin.cjs.production.min.js +16 -16
- package/dist/lcn-plugin.cjs.production.min.js.map +3 -3
- package/dist/lcn-plugin.esm.js +421 -18
- package/dist/lcn-plugin.esm.js.map +3 -3
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +46 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"use strict";var Zt=Object.defineProperty;var yl=Object.getOwnPropertyDescriptor;var bl=Object.getOwnPropertyNames;var $l=Object.prototype.hasOwnProperty;var s=(e,r)=>Zt(e,"name",{value:r,configurable:!0});var de=(e,r)=>{for(var i in r)Zt(e,i,{get:r[i],enumerable:!0})},_l=(e,r,i,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of bl(r))!$l.call(e,t)&&t!==i&&Zt(e,t,{get:()=>r[t],enumerable:!(n=yl(r,t))||n.enumerable});return e};var kl=e=>_l(Zt({},"__esModule",{value:!0}),e);var vv={};de(vv,{getLearnCardNetworkPlugin:()=>fv,getVerifyBoostPlugin:()=>gv});module.exports=kl(vv);var en=require("@learncard/network-brain-client");var a={};de(a,{$brand:()=>Vt,$input:()=>va,$output:()=>ga,NEVER:()=>tn,TimePrecision:()=>_a,ZodAny:()=>sc,ZodArray:()=>dc,ZodBase64:()=>Ls,ZodBase64URL:()=>Fs,ZodBigInt:()=>Ut,ZodBigIntFormat:()=>qs,ZodBoolean:()=>Nt,ZodCIDRv4:()=>Vs,ZodCIDRv6:()=>Rs,ZodCUID:()=>Us,ZodCUID2:()=>Ds,ZodCatch:()=>Cc,ZodCodec:()=>tu,ZodCustom:()=>Mr,ZodCustomStringFormat:()=>Pt,ZodDate:()=>Lr,ZodDefault:()=>wc,ZodDiscriminatedUnion:()=>pc,ZodE164:()=>Bs,ZodEmail:()=>Ps,ZodEmoji:()=>Cs,ZodEnum:()=>zt,ZodError:()=>Yp,ZodFile:()=>_c,ZodFirstPartyTypeKind:()=>ru,ZodFunction:()=>Vc,ZodGUID:()=>Ar,ZodIPv4:()=>Ts,ZodIPv6:()=>Zs,ZodISODate:()=>Ur,ZodISODateTime:()=>Nr,ZodISODuration:()=>Or,ZodISOTime:()=>Dr,ZodIntersection:()=>mc,ZodIssueCode:()=>ff,ZodJWT:()=>Ms,ZodKSUID:()=>As,ZodLazy:()=>Ac,ZodLiteral:()=>$c,ZodMAC:()=>ec,ZodMap:()=>yc,ZodNaN:()=>Uc,ZodNanoID:()=>Ns,ZodNever:()=>cc,ZodNonOptional:()=>Ys,ZodNull:()=>oc,ZodNullable:()=>xc,ZodNumber:()=>Ct,ZodNumberFormat:()=>Re,ZodObject:()=>Br,ZodOptional:()=>Qs,ZodPipe:()=>eu,ZodPrefault:()=>Sc,ZodPromise:()=>Zc,ZodReadonly:()=>Dc,ZodRealError:()=>J,ZodRecord:()=>Ks,ZodSet:()=>bc,ZodString:()=>jt,ZodStringFormat:()=>O,ZodSuccess:()=>Pc,ZodSymbol:()=>nc,ZodTemplateLiteral:()=>Ec,ZodTransform:()=>kc,ZodTuple:()=>gc,ZodType:()=>P,ZodULID:()=>Os,ZodURL:()=>Rr,ZodUUID:()=>ce,ZodUndefined:()=>ic,ZodUnion:()=>Gs,ZodUnknown:()=>uc,ZodVoid:()=>lc,ZodXID:()=>Es,_ZodString:()=>js,_default:()=>Ic,_function:()=>of,any:()=>Zm,array:()=>Fr,base64:()=>_m,base64url:()=>km,bigint:()=>Dm,boolean:()=>rc,catch:()=>Nc,check:()=>af,cidrv4:()=>bm,cidrv6:()=>$m,clone:()=>R,codec:()=>tf,coerce:()=>nu,config:()=>T,core:()=>ue,cuid:()=>dm,cuid2:()=>pm,custom:()=>sf,date:()=>Rm,decode:()=>bs,decodeAsync:()=>_s,describe:()=>uf,discriminatedUnion:()=>qm,e164:()=>xm,email:()=>tm,emoji:()=>cm,encode:()=>ys,encodeAsync:()=>$s,endsWith:()=>bt,enum:()=>Xs,file:()=>Hm,flattenError:()=>Qe,float32:()=>Pm,float64:()=>Cm,formatError:()=>Ye,function:()=>of,getErrorMap:()=>vf,globalRegistry:()=>L,gt:()=>se,gte:()=>q,guid:()=>rm,hash:()=>jm,hex:()=>zm,hostname:()=>Sm,httpUrl:()=>um,includes:()=>ht,instanceof:()=>lf,int:()=>zs,int32:()=>Nm,int64:()=>Om,intersection:()=>fc,ipv4:()=>vm,ipv6:()=>ym,iso:()=>Er,json:()=>pf,jwt:()=>wm,keyof:()=>Lm,ksuid:()=>gm,lazy:()=>Tc,length:()=>Te,literal:()=>Xm,locales:()=>lt,looseObject:()=>Mm,lowercase:()=>gt,lt:()=>ae,lte:()=>Y,mac:()=>hm,map:()=>Gm,maxLength:()=>Ae,maxSize:()=>Ee,meta:()=>cf,mime:()=>$t,minLength:()=>ye,minSize:()=>xe,multipleOf:()=>ke,nan:()=>ef,nanoid:()=>lm,nativeEnum:()=>Km,negative:()=>Xa,never:()=>Js,nonnegative:()=>Qa,nonoptional:()=>jc,nonpositive:()=>Ha,normalize:()=>_t,null:()=>ac,nullable:()=>Zr,nullish:()=>Qm,number:()=>tc,object:()=>Fm,optional:()=>Tr,overwrite:()=>ne,parse:()=>fs,parseAsync:()=>gs,partialRecord:()=>Jm,pipe:()=>Vr,positive:()=>Ka,prefault:()=>zc,preprocess:()=>mf,prettifyError:()=>hn,promise:()=>nf,property:()=>Ya,readonly:()=>Oc,record:()=>hc,refine:()=>Rc,regex:()=>ft,regexes:()=>Q,registry:()=>lr,safeDecode:()=>xs,safeDecodeAsync:()=>Is,safeEncode:()=>ks,safeEncodeAsync:()=>ws,safeParse:()=>vs,safeParseAsync:()=>hs,set:()=>Wm,setErrorMap:()=>gf,size:()=>mt,slugify:()=>It,startsWith:()=>yt,strictObject:()=>Bm,string:()=>Ss,stringFormat:()=>Im,stringbool:()=>df,success:()=>Ym,superRefine:()=>Lc,symbol:()=>Am,templateLiteral:()=>rf,toJSONSchema:()=>us,toLowerCase:()=>xt,toUpperCase:()=>wt,transform:()=>Hs,treeifyError:()=>vn,trim:()=>kt,tuple:()=>vc,uint32:()=>Um,uint64:()=>Em,ulid:()=>mm,undefined:()=>Tm,union:()=>Ws,unknown:()=>Ve,uppercase:()=>vt,url:()=>sm,util:()=>x,uuid:()=>nm,uuidv4:()=>im,uuidv6:()=>om,uuidv7:()=>am,void:()=>Vm,xid:()=>fm});var ue={};de(ue,{$ZodAny:()=>Gi,$ZodArray:()=>Qi,$ZodAsyncError:()=>te,$ZodBase64:()=>Ti,$ZodBase64URL:()=>Zi,$ZodBigInt:()=>sr,$ZodBigIntFormat:()=>Bi,$ZodBoolean:()=>nt,$ZodCIDRv4:()=>Oi,$ZodCIDRv6:()=>Ei,$ZodCUID:()=>ki,$ZodCUID2:()=>xi,$ZodCatch:()=>vo,$ZodCheck:()=>D,$ZodCheckBigIntFormat:()=>Hn,$ZodCheckEndsWith:()=>ci,$ZodCheckGreaterThan:()=>er,$ZodCheckIncludes:()=>si,$ZodCheckLengthEquals:()=>ni,$ZodCheckLessThan:()=>Yt,$ZodCheckLowerCase:()=>oi,$ZodCheckMaxLength:()=>ti,$ZodCheckMaxSize:()=>Qn,$ZodCheckMimeType:()=>di,$ZodCheckMinLength:()=>ri,$ZodCheckMinSize:()=>Yn,$ZodCheckMultipleOf:()=>Kn,$ZodCheckNumberFormat:()=>Xn,$ZodCheckOverwrite:()=>pi,$ZodCheckProperty:()=>li,$ZodCheckRegex:()=>ii,$ZodCheckSizeEquals:()=>ei,$ZodCheckStartsWith:()=>ui,$ZodCheckStringFormat:()=>De,$ZodCheckUpperCase:()=>ai,$ZodCodec:()=>it,$ZodCustom:()=>wo,$ZodCustomStringFormat:()=>Li,$ZodDate:()=>Hi,$ZodDefault:()=>po,$ZodDiscriminatedUnion:()=>eo,$ZodE164:()=>Vi,$ZodEmail:()=>yi,$ZodEmoji:()=>$i,$ZodEncodeError:()=>pe,$ZodEnum:()=>oo,$ZodError:()=>He,$ZodFile:()=>so,$ZodFunction:()=>_o,$ZodGUID:()=>vi,$ZodIPv4:()=>Ni,$ZodIPv6:()=>Ui,$ZodISODate:()=>ji,$ZodISODateTime:()=>zi,$ZodISODuration:()=>Ci,$ZodISOTime:()=>Pi,$ZodIntersection:()=>to,$ZodJWT:()=>Ri,$ZodKSUID:()=>Si,$ZodLazy:()=>xo,$ZodLiteral:()=>ao,$ZodMAC:()=>Di,$ZodMap:()=>no,$ZodNaN:()=>ho,$ZodNanoID:()=>_i,$ZodNever:()=>Ki,$ZodNonOptional:()=>fo,$ZodNull:()=>Ji,$ZodNullable:()=>lo,$ZodNumber:()=>ar,$ZodNumberFormat:()=>Fi,$ZodObject:()=>qu,$ZodObjectJIT:()=>Yi,$ZodOptional:()=>co,$ZodPipe:()=>yo,$ZodPrefault:()=>mo,$ZodPromise:()=>ko,$ZodReadonly:()=>bo,$ZodRealError:()=>M,$ZodRecord:()=>ro,$ZodRegistry:()=>Oe,$ZodSet:()=>io,$ZodString:()=>_e,$ZodStringFormat:()=>U,$ZodSuccess:()=>go,$ZodSymbol:()=>Mi,$ZodTemplateLiteral:()=>$o,$ZodTransform:()=>uo,$ZodTuple:()=>cr,$ZodType:()=>z,$ZodULID:()=>wi,$ZodURL:()=>bi,$ZodUUID:()=>hi,$ZodUndefined:()=>qi,$ZodUnion:()=>ur,$ZodUnknown:()=>Wi,$ZodVoid:()=>Xi,$ZodXID:()=>Ii,$brand:()=>Vt,$constructor:()=>h,$input:()=>va,$output:()=>ga,Doc:()=>rt,JSONSchema:()=>Hu,JSONSchemaGenerator:()=>St,NEVER:()=>tn,TimePrecision:()=>_a,_any:()=>Fa,_array:()=>es,_base64:()=>zr,_base64url:()=>jr,_bigint:()=>Ea,_boolean:()=>Da,_catch:()=>Jp,_check:()=>Xu,_cidrv4:()=>Ir,_cidrv6:()=>Sr,_coercedBigint:()=>Aa,_coercedBoolean:()=>Oa,_coercedDate:()=>Ga,_coercedNumber:()=>za,_coercedString:()=>ba,_cuid:()=>yr,_cuid2:()=>br,_custom:()=>rs,_date:()=>Ja,_decode:()=>qt,_decodeAsync:()=>Gt,_default:()=>Bp,_discriminatedUnion:()=>Np,_e164:()=>Pr,_email:()=>dr,_emoji:()=>vr,_encode:()=>Mt,_encodeAsync:()=>Jt,_endsWith:()=>bt,_enum:()=>Tp,_file:()=>ts,_float32:()=>Pa,_float64:()=>Ca,_gt:()=>se,_gte:()=>q,_guid:()=>dt,_includes:()=>ht,_int:()=>ja,_int32:()=>Na,_int64:()=>Ta,_intersection:()=>Up,_ipv4:()=>xr,_ipv6:()=>wr,_isoDate:()=>xa,_isoDateTime:()=>ka,_isoDuration:()=>Ia,_isoTime:()=>wa,_jwt:()=>Cr,_ksuid:()=>kr,_lazy:()=>Xp,_length:()=>Te,_literal:()=>Vp,_lowercase:()=>gt,_lt:()=>ae,_lte:()=>Y,_mac:()=>$a,_map:()=>Ep,_max:()=>Y,_maxLength:()=>Ae,_maxSize:()=>Ee,_mime:()=>$t,_min:()=>q,_minLength:()=>ye,_minSize:()=>xe,_multipleOf:()=>ke,_nan:()=>Wa,_nanoid:()=>hr,_nativeEnum:()=>Zp,_negative:()=>Xa,_never:()=>Ma,_nonnegative:()=>Qa,_nonoptional:()=>Mp,_nonpositive:()=>Ha,_normalize:()=>_t,_null:()=>La,_nullable:()=>Fp,_number:()=>Sa,_optional:()=>Lp,_overwrite:()=>ne,_parse:()=>Pe,_parseAsync:()=>Ce,_pipe:()=>Gp,_positive:()=>Ka,_promise:()=>Hp,_property:()=>Ya,_readonly:()=>Wp,_record:()=>Op,_refine:()=>ns,_regex:()=>ft,_safeDecode:()=>Kt,_safeDecodeAsync:()=>Ht,_safeEncode:()=>Wt,_safeEncodeAsync:()=>Xt,_safeParse:()=>Ne,_safeParseAsync:()=>Ue,_set:()=>Ap,_size:()=>mt,_slugify:()=>It,_startsWith:()=>yt,_string:()=>ya,_stringFormat:()=>Ze,_stringbool:()=>ss,_success:()=>qp,_superRefine:()=>is,_symbol:()=>Va,_templateLiteral:()=>Kp,_toLowerCase:()=>xt,_toUpperCase:()=>wt,_transform:()=>Rp,_trim:()=>kt,_tuple:()=>Dp,_uint32:()=>Ua,_uint64:()=>Za,_ulid:()=>$r,_undefined:()=>Ra,_union:()=>Cp,_unknown:()=>Ba,_uppercase:()=>vt,_url:()=>pt,_uuid:()=>pr,_uuidv4:()=>mr,_uuidv6:()=>fr,_uuidv7:()=>gr,_void:()=>qa,_xid:()=>_r,clone:()=>R,config:()=>T,decode:()=>Xl,decodeAsync:()=>Ql,describe:()=>os,encode:()=>Kl,encodeAsync:()=>Hl,flattenError:()=>Qe,formatError:()=>Ye,globalConfig:()=>Me,globalRegistry:()=>L,isValidBase64:()=>Ai,isValidBase64URL:()=>Lu,isValidJWT:()=>Fu,locales:()=>lt,meta:()=>as,parse:()=>Ft,parseAsync:()=>Bt,prettifyError:()=>hn,regexes:()=>Q,registry:()=>lr,safeDecode:()=>ed,safeDecodeAsync:()=>rd,safeEncode:()=>Yl,safeEncodeAsync:()=>td,safeParse:()=>yn,safeParseAsync:()=>bn,toDotPath:()=>wu,toJSONSchema:()=>us,treeifyError:()=>vn,util:()=>x,version:()=>fi});var tn=Object.freeze({status:"aborted"});function h(e,r,i){function n(f,g){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:g,constr:u,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),r(f,g);let m=u.prototype,y=Object.keys(m);for(let p=0;p<y.length;p++){let c=y[p];c in f||(f[c]=m[c].bind(f))}}s(n,"init");let t=i?.Parent??Object,l=class l extends t{};s(l,"Definition");let o=l;Object.defineProperty(o,"name",{value:e});function u(f){var g;let m=i?.Parent?new o:this;n(m,f),(g=m._zod).deferred??(g.deferred=[]);for(let y of m._zod.deferred)y();return m}return s(u,"_"),Object.defineProperty(u,"init",{value:n}),Object.defineProperty(u,Symbol.hasInstance,{value:s(f=>i?.Parent&&f instanceof i.Parent?!0:f?._zod?.traits?.has(e),"value")}),Object.defineProperty(u,"name",{value:e}),u}s(h,"$constructor");var Vt=Symbol("zod_brand"),nn=class nn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};s(nn,"$ZodAsyncError");var te=nn,on=class on extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};s(on,"$ZodEncodeError");var pe=on,Me={};function T(e){return e&&Object.assign(Me,e),Me}s(T,"config");var x={};de(x,{BIGINT_FORMAT_RANGES:()=>fn,Class:()=>an,NUMBER_FORMAT_RANGES:()=>mn,aborted:()=>he,allowsEval:()=>cn,assert:()=>zl,assertEqual:()=>xl,assertIs:()=>Il,assertNever:()=>Sl,assertNotEqual:()=>wl,assignProp:()=>fe,base64ToUint8Array:()=>_u,base64urlToUint8Array:()=>Ml,cached:()=>ze,captureStackTrace:()=>Lt,cleanEnum:()=>Bl,cleanRegex:()=>Ge,clone:()=>R,cloneDef:()=>Pl,createTransparentProxy:()=>El,defineLazy:()=>N,esc:()=>Rt,escapeRegex:()=>H,extend:()=>Zl,finalizeIssue:()=>K,floatSafeRemainder:()=>sn,getElementAtPath:()=>Cl,getEnumValues:()=>Je,getLengthableOrigin:()=>Xe,getParsedType:()=>Ol,getSizableOrigin:()=>Ke,hexToUint8Array:()=>Jl,isObject:()=>be,isPlainObject:()=>ve,issue:()=>je,joinValues:()=>b,jsonStringifyReplacer:()=>Se,merge:()=>Rl,mergeDefs:()=>ge,normalizeParams:()=>k,nullish:()=>me,numKeys:()=>Dl,objectClone:()=>jl,omit:()=>Tl,optionalKeys:()=>pn,partial:()=>Ll,pick:()=>Al,prefixIssues:()=>W,primitiveTypes:()=>dn,promiseAllObject:()=>Nl,propertyKeyTypes:()=>We,randomString:()=>Ul,required:()=>Fl,safeExtend:()=>Vl,shallowClone:()=>ln,slugify:()=>un,stringifyPrimitive:()=>_,uint8ArrayToBase64:()=>ku,uint8ArrayToBase64url:()=>ql,uint8ArrayToHex:()=>Gl,unwrapMessage:()=>qe});function xl(e){return e}s(xl,"assertEqual");function wl(e){return e}s(wl,"assertNotEqual");function Il(e){}s(Il,"assertIs");function Sl(e){throw new Error}s(Sl,"assertNever");function zl(e){}s(zl,"assert");function Je(e){let r=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,t])=>r.indexOf(+n)===-1).map(([n,t])=>t)}s(Je,"getEnumValues");function b(e,r="|"){return e.map(i=>_(i)).join(r)}s(b,"joinValues");function Se(e,r){return typeof r=="bigint"?r.toString():r}s(Se,"jsonStringifyReplacer");function ze(e){return{get value(){{let i=e();return Object.defineProperty(this,"value",{value:i}),i}throw new Error("cached value already set")}}}s(ze,"cached");function me(e){return e==null}s(me,"nullish");function Ge(e){let r=e.startsWith("^")?1:0,i=e.endsWith("$")?e.length-1:e.length;return e.slice(r,i)}s(Ge,"cleanRegex");function sn(e,r){let i=(e.toString().split(".")[1]||"").length,n=r.toString(),t=(n.split(".")[1]||"").length;if(t===0&&/\d?e-\d?/.test(n)){let f=n.match(/\d?e-(\d?)/);f?.[1]&&(t=Number.parseInt(f[1]))}let o=i>t?i:t,u=Number.parseInt(e.toFixed(o).replace(".","")),l=Number.parseInt(r.toFixed(o).replace(".",""));return u%l/10**o}s(sn,"floatSafeRemainder");var $u=Symbol("evaluating");function N(e,r,i){let n;Object.defineProperty(e,r,{get(){if(n!==$u)return n===void 0&&(n=$u,n=i()),n},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}s(N,"defineLazy");function jl(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}s(jl,"objectClone");function fe(e,r,i){Object.defineProperty(e,r,{value:i,writable:!0,enumerable:!0,configurable:!0})}s(fe,"assignProp");function ge(...e){let r={};for(let i of e){let n=Object.getOwnPropertyDescriptors(i);Object.assign(r,n)}return Object.defineProperties({},r)}s(ge,"mergeDefs");function Pl(e){return ge(e._zod.def)}s(Pl,"cloneDef");function Cl(e,r){return r?r.reduce((i,n)=>i?.[n],e):e}s(Cl,"getElementAtPath");function Nl(e){let r=Object.keys(e),i=r.map(n=>e[n]);return Promise.all(i).then(n=>{let t={};for(let o=0;o<r.length;o++)t[r[o]]=n[o];return t})}s(Nl,"promiseAllObject");function Ul(e=10){let r="abcdefghijklmnopqrstuvwxyz",i="";for(let n=0;n<e;n++)i+=r[Math.floor(Math.random()*r.length)];return i}s(Ul,"randomString");function Rt(e){return JSON.stringify(e)}s(Rt,"esc");function un(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(un,"slugify");var Lt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function be(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(be,"isObject");var cn=ze(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function ve(e){if(be(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let i=r.prototype;return!(be(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}s(ve,"isPlainObject");function ln(e){return ve(e)?{...e}:Array.isArray(e)?[...e]:e}s(ln,"shallowClone");function Dl(e){let r=0;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&r++;return r}s(Dl,"numKeys");var Ol=s(e=>{let r=typeof e;switch(r){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: ${r}`)}},"getParsedType"),We=new Set(["string","number","symbol"]),dn=new Set(["string","number","bigint","boolean","symbol","undefined"]);function H(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(H,"escapeRegex");function R(e,r,i){let n=new e._zod.constr(r??e._zod.def);return(!r||i?.parent)&&(n._zod.parent=e),n}s(R,"clone");function k(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:s(()=>r,"error")};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:s(()=>r.error,"error")}:r}s(k,"normalizeParams");function El(e){let r;return new Proxy({},{get(i,n,t){return r??(r=e()),Reflect.get(r,n,t)},set(i,n,t,o){return r??(r=e()),Reflect.set(r,n,t,o)},has(i,n){return r??(r=e()),Reflect.has(r,n)},deleteProperty(i,n){return r??(r=e()),Reflect.deleteProperty(r,n)},ownKeys(i){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(i,n){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,n)},defineProperty(i,n,t){return r??(r=e()),Reflect.defineProperty(r,n,t)}})}s(El,"createTransparentProxy");function _(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}s(_,"stringifyPrimitive");function pn(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}s(pn,"optionalKeys");var mn={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]},fn={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Al(e,r){let i=e._zod.def,n=ge(e._zod.def,{get shape(){let t={};for(let o in r){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(t[o]=i.shape[o])}return fe(this,"shape",t),t},checks:[]});return R(e,n)}s(Al,"pick");function Tl(e,r){let i=e._zod.def,n=ge(e._zod.def,{get shape(){let t={...e._zod.def.shape};for(let o in r){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);r[o]&&delete t[o]}return fe(this,"shape",t),t},checks:[]});return R(e,n)}s(Tl,"omit");function Zl(e,r){if(!ve(r))throw new Error("Invalid input to extend: expected a plain object");let i=e._zod.def.checks;if(i&&i.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let t=ge(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r};return fe(this,"shape",o),o},checks:[]});return R(e,t)}s(Zl,"extend");function Vl(e,r){if(!ve(r))throw new Error("Invalid input to safeExtend: expected a plain object");let i={...e._zod.def,get shape(){let n={...e._zod.def.shape,...r};return fe(this,"shape",n),n},checks:e._zod.def.checks};return R(e,i)}s(Vl,"safeExtend");function Rl(e,r){let i=ge(e._zod.def,{get shape(){let n={...e._zod.def.shape,...r._zod.def.shape};return fe(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:[]});return R(e,i)}s(Rl,"merge");function Ll(e,r,i){let n=ge(r._zod.def,{get shape(){let t=r._zod.def.shape,o={...t};if(i)for(let u in i){if(!(u in t))throw new Error(`Unrecognized key: "${u}"`);i[u]&&(o[u]=e?new e({type:"optional",innerType:t[u]}):t[u])}else for(let u in t)o[u]=e?new e({type:"optional",innerType:t[u]}):t[u];return fe(this,"shape",o),o},checks:[]});return R(r,n)}s(Ll,"partial");function Fl(e,r,i){let n=ge(r._zod.def,{get shape(){let t=r._zod.def.shape,o={...t};if(i)for(let u in i){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);i[u]&&(o[u]=new e({type:"nonoptional",innerType:t[u]}))}else for(let u in t)o[u]=new e({type:"nonoptional",innerType:t[u]});return fe(this,"shape",o),o},checks:[]});return R(r,n)}s(Fl,"required");function he(e,r=0){if(e.aborted===!0)return!0;for(let i=r;i<e.issues.length;i++)if(e.issues[i]?.continue!==!0)return!0;return!1}s(he,"aborted");function W(e,r){return r.map(i=>{var n;return(n=i).path??(n.path=[]),i.path.unshift(e),i})}s(W,"prefixIssues");function qe(e){return typeof e=="string"?e:e?.message}s(qe,"unwrapMessage");function K(e,r,i){let n={...e,path:e.path??[]};if(!e.message){let t=qe(e.inst?._zod.def?.error?.(e))??qe(r?.error?.(e))??qe(i.customError?.(e))??qe(i.localeError?.(e))??"Invalid input";n.message=t}return delete n.inst,delete n.continue,r?.reportInput||delete n.input,n}s(K,"finalizeIssue");function Ke(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}s(Ke,"getSizableOrigin");function Xe(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}s(Xe,"getLengthableOrigin");function je(...e){let[r,i,n]=e;return typeof r=="string"?{message:r,code:"custom",input:i,inst:n}:{...r}}s(je,"issue");function Bl(e){return Object.entries(e).filter(([r,i])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}s(Bl,"cleanEnum");function _u(e){let r=atob(e),i=new Uint8Array(r.length);for(let n=0;n<r.length;n++)i[n]=r.charCodeAt(n);return i}s(_u,"base64ToUint8Array");function ku(e){let r="";for(let i=0;i<e.length;i++)r+=String.fromCharCode(e[i]);return btoa(r)}s(ku,"uint8ArrayToBase64");function Ml(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),i="=".repeat((4-r.length%4)%4);return _u(r+i)}s(Ml,"base64urlToUint8Array");function ql(e){return ku(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(ql,"uint8ArrayToBase64url");function Jl(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let i=new Uint8Array(r.length/2);for(let n=0;n<r.length;n+=2)i[n/2]=Number.parseInt(r.slice(n,n+2),16);return i}s(Jl,"hexToUint8Array");function Gl(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}s(Gl,"uint8ArrayToHex");var gn=class gn{constructor(...r){}};s(gn,"Class");var an=gn;var xu=s((e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Se,2),Object.defineProperty(e,"toString",{value:s(()=>e.message,"value"),enumerable:!1})},"initializer"),He=h("$ZodError",xu),M=h("$ZodError",xu,{Parent:Error});function Qe(e,r=i=>i.message){let i={},n=[];for(let t of e.issues)t.path.length>0?(i[t.path[0]]=i[t.path[0]]||[],i[t.path[0]].push(r(t))):n.push(r(t));return{formErrors:n,fieldErrors:i}}s(Qe,"flattenError");function Ye(e,r=i=>i.message){let i={_errors:[]},n=s(t=>{for(let o of t.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(u=>n({issues:u}));else if(o.code==="invalid_key")n({issues:o.issues});else if(o.code==="invalid_element")n({issues:o.issues});else if(o.path.length===0)i._errors.push(r(o));else{let u=i,l=0;for(;l<o.path.length;){let f=o.path[l];l===o.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(r(o))):u[f]=u[f]||{_errors:[]},u=u[f],l++}}},"processError");return n(e),i}s(Ye,"formatError");function vn(e,r=i=>i.message){let i={errors:[]},n=s((t,o=[])=>{var u,l;for(let f of t.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(g=>n({issues:g},f.path));else if(f.code==="invalid_key")n({issues:f.issues},f.path);else if(f.code==="invalid_element")n({issues:f.issues},f.path);else{let g=[...o,...f.path];if(g.length===0){i.errors.push(r(f));continue}let m=i,y=0;for(;y<g.length;){let p=g[y],c=y===g.length-1;typeof p=="string"?(m.properties??(m.properties={}),(u=m.properties)[p]??(u[p]={errors:[]}),m=m.properties[p]):(m.items??(m.items=[]),(l=m.items)[p]??(l[p]={errors:[]}),m=m.items[p]),c&&m.errors.push(r(f)),y++}}},"processError");return n(e),i}s(vn,"treeifyError");function wu(e){let r=[],i=e.map(n=>typeof n=="object"?n.key:n);for(let n of i)typeof n=="number"?r.push(`[${n}]`):typeof n=="symbol"?r.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?r.push(`[${JSON.stringify(n)}]`):(r.length&&r.push("."),r.push(n));return r.join("")}s(wu,"toDotPath");function hn(e){let r=[],i=[...e.issues].sort((n,t)=>(n.path??[]).length-(t.path??[]).length);for(let n of i)r.push(`\u2716 ${n.message}`),n.path?.length&&r.push(` \u2192 at ${wu(n.path)}`);return r.join(`
|
|
2
|
-
`)}s(hn,"prettifyError");var Pe=s(e=>(r,i,n,t)=>{let o=n?Object.assign(n,{async:!1}):{async:!1},u=r._zod.run({value:i,issues:[]},o);if(u instanceof Promise)throw new te;if(u.issues.length){let l=new(t?.Err??e)(u.issues.map(f=>K(f,o,T())));throw Lt(l,t?.callee),l}return u.value},"_parse"),Ft=Pe(M),Ce=s(e=>async(r,i,n,t)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},u=r._zod.run({value:i,issues:[]},o);if(u instanceof Promise&&(u=await u),u.issues.length){let l=new(t?.Err??e)(u.issues.map(f=>K(f,o,T())));throw Lt(l,t?.callee),l}return u.value},"_parseAsync"),Bt=Ce(M),Ne=s(e=>(r,i,n)=>{let t=n?{...n,async:!1}:{async:!1},o=r._zod.run({value:i,issues:[]},t);if(o instanceof Promise)throw new te;return o.issues.length?{success:!1,error:new(e??He)(o.issues.map(u=>K(u,t,T())))}:{success:!0,data:o.value}},"_safeParse"),yn=Ne(M),Ue=s(e=>async(r,i,n)=>{let t=n?Object.assign(n,{async:!0}):{async:!0},o=r._zod.run({value:i,issues:[]},t);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(u=>K(u,t,T())))}:{success:!0,data:o.value}},"_safeParseAsync"),bn=Ue(M),Mt=s(e=>(r,i,n)=>{let t=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Pe(e)(r,i,t)},"_encode"),Kl=Mt(M),qt=s(e=>(r,i,n)=>Pe(e)(r,i,n),"_decode"),Xl=qt(M),Jt=s(e=>async(r,i,n)=>{let t=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ce(e)(r,i,t)},"_encodeAsync"),Hl=Jt(M),Gt=s(e=>async(r,i,n)=>Ce(e)(r,i,n),"_decodeAsync"),Ql=Gt(M),Wt=s(e=>(r,i,n)=>{let t=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ne(e)(r,i,t)},"_safeEncode"),Yl=Wt(M),Kt=s(e=>(r,i,n)=>Ne(e)(r,i,n),"_safeDecode"),ed=Kt(M),Xt=s(e=>async(r,i,n)=>{let t=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ue(e)(r,i,t)},"_safeEncodeAsync"),td=Xt(M),Ht=s(e=>async(r,i,n)=>Ue(e)(r,i,n),"_safeDecodeAsync"),rd=Ht(M);var Q={};de(Q,{base64:()=>En,base64url:()=>Qt,bigint:()=>Ln,boolean:()=>Mn,browserEmail:()=>ld,cidrv4:()=>Dn,cidrv6:()=>On,cuid:()=>$n,cuid2:()=>_n,date:()=>Tn,datetime:()=>Vn,domain:()=>md,duration:()=>Sn,e164:()=>An,email:()=>jn,emoji:()=>Pn,extendedDuration:()=>nd,guid:()=>zn,hex:()=>fd,hostname:()=>pd,html5Email:()=>sd,idnEmail:()=>cd,integer:()=>Fn,ipv4:()=>Cn,ipv6:()=>Nn,ksuid:()=>wn,lowercase:()=>Gn,mac:()=>Un,md5_base64:()=>vd,md5_base64url:()=>hd,md5_hex:()=>gd,nanoid:()=>In,null:()=>qn,number:()=>Bn,rfc5322Email:()=>ud,sha1_base64:()=>bd,sha1_base64url:()=>$d,sha1_hex:()=>yd,sha256_base64:()=>kd,sha256_base64url:()=>xd,sha256_hex:()=>_d,sha384_base64:()=>Id,sha384_base64url:()=>Sd,sha384_hex:()=>wd,sha512_base64:()=>jd,sha512_base64url:()=>Pd,sha512_hex:()=>zd,string:()=>Rn,time:()=>Zn,ulid:()=>kn,undefined:()=>Jn,unicodeEmail:()=>Iu,uppercase:()=>Wn,uuid:()=>$e,uuid4:()=>id,uuid6:()=>od,uuid7:()=>ad,xid:()=>xn});var $n=/^[cC][^\s-]{8,}$/,_n=/^[0-9a-z]+$/,kn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,xn=/^[0-9a-vA-V]{20}$/,wn=/^[A-Za-z0-9]{27}$/,In=/^[a-zA-Z0-9_-]{21}$/,Sn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,nd=/^[-+]?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)?)??$/,zn=/^([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})$/,$e=s(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)$/,"uuid"),id=$e(4),od=$e(6),ad=$e(7),jn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,sd=/^[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])?)*$/,ud=/^(([^<>()\[\]\\.,;:\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,}))$/,Iu=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,cd=Iu,ld=/^[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])?)*$/,dd="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Pn(){return new RegExp(dd,"u")}s(Pn,"emoji");var Cn=/^(?:(?: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])$/,Nn=/^(([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}|:))$/,Un=s(e=>{let r=H(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},"mac"),Dn=/^((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])$/,On=/^(([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])$/,En=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Qt=/^[A-Za-z0-9_-]*$/,pd=/^(?=.{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])?)*\.?$/,md=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,An=/^\+(?:[0-9]){6,14}[0-9]$/,Su="(?:(?:\\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])))",Tn=new RegExp(`^${Su}$`);function zu(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}s(zu,"timeSource");function Zn(e){return new RegExp(`^${zu(e)}$`)}s(Zn,"time");function Vn(e){let r=zu({precision:e.precision}),i=["Z"];e.local&&i.push(""),e.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${r}(?:${i.join("|")})`;return new RegExp(`^${Su}T(?:${n})$`)}s(Vn,"datetime");var Rn=s(e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},"string"),Ln=/^-?\d+n?$/,Fn=/^-?\d+$/,Bn=/^-?\d+(?:\.\d+)?/,Mn=/^(?:true|false)$/i,qn=/^null$/i;var Jn=/^undefined$/i;var Gn=/^[^A-Z]*$/,Wn=/^[^a-z]*$/,fd=/^[0-9a-fA-F]*$/;function et(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}s(et,"fixedBase64");function tt(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}s(tt,"fixedBase64url");var gd=/^[0-9a-fA-F]{32}$/,vd=et(22,"=="),hd=tt(22),yd=/^[0-9a-fA-F]{40}$/,bd=et(27,"="),$d=tt(27),_d=/^[0-9a-fA-F]{64}$/,kd=et(43,"="),xd=tt(43),wd=/^[0-9a-fA-F]{96}$/,Id=et(64,""),Sd=tt(64),zd=/^[0-9a-fA-F]{128}$/,jd=et(86,"=="),Pd=tt(86);var D=h("$ZodCheck",(e,r)=>{var i;e._zod??(e._zod={}),e._zod.def=r,(i=e._zod).onattach??(i.onattach=[])}),Pu={number:"number",bigint:"bigint",object:"date"},Yt=h("$ZodCheckLessThan",(e,r)=>{D.init(e,r);let i=Pu[typeof r.value];e._zod.onattach.push(n=>{let t=n._zod.bag,o=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<o&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=n=>{(r.inclusive?n.value<=r.value:n.value<r.value)||n.issues.push({origin:i,code:"too_big",maximum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),er=h("$ZodCheckGreaterThan",(e,r)=>{D.init(e,r);let i=Pu[typeof r.value];e._zod.onattach.push(n=>{let t=n._zod.bag,o=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>o&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=n=>{(r.inclusive?n.value>=r.value:n.value>r.value)||n.issues.push({origin:i,code:"too_small",minimum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Kn=h("$ZodCheckMultipleOf",(e,r)=>{D.init(e,r),e._zod.onattach.push(i=>{var n;(n=i._zod.bag).multipleOf??(n.multipleOf=r.value)}),e._zod.check=i=>{if(typeof i.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%r.value===BigInt(0):sn(i.value,r.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:r.value,input:i.value,inst:e,continue:!r.abort})}}),Xn=h("$ZodCheckNumberFormat",(e,r)=>{D.init(e,r),r.format=r.format||"float64";let i=r.format?.includes("int"),n=i?"int":"number",[t,o]=mn[r.format];e._zod.onattach.push(u=>{let l=u._zod.bag;l.format=r.format,l.minimum=t,l.maximum=o,i&&(l.pattern=Fn)}),e._zod.check=u=>{let l=u.value;if(i){if(!Number.isInteger(l)){u.issues.push({expected:n,format:r.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?u.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort}):u.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort});return}}l<t&&u.issues.push({origin:"number",input:l,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),l>o&&u.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inst:e})}}),Hn=h("$ZodCheckBigIntFormat",(e,r)=>{D.init(e,r);let[i,n]=fn[r.format];e._zod.onattach.push(t=>{let o=t._zod.bag;o.format=r.format,o.minimum=i,o.maximum=n}),e._zod.check=t=>{let o=t.value;o<i&&t.issues.push({origin:"bigint",input:o,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!r.abort}),o>n&&t.issues.push({origin:"bigint",input:o,code:"too_big",maximum:n,inst:e})}}),Qn=h("$ZodCheckMaxSize",(e,r)=>{var i;D.init(e,r),(i=e._zod.def).when??(i.when=n=>{let t=n.value;return!me(t)&&t.size!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(n._zod.bag.maximum=r.maximum)}),e._zod.check=n=>{let t=n.value;t.size<=r.maximum||n.issues.push({origin:Ke(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Yn=h("$ZodCheckMinSize",(e,r)=>{var i;D.init(e,r),(i=e._zod.def).when??(i.when=n=>{let t=n.value;return!me(t)&&t.size!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(n._zod.bag.minimum=r.minimum)}),e._zod.check=n=>{let t=n.value;t.size>=r.minimum||n.issues.push({origin:Ke(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),ei=h("$ZodCheckSizeEquals",(e,r)=>{var i;D.init(e,r),(i=e._zod.def).when??(i.when=n=>{let t=n.value;return!me(t)&&t.size!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=n=>{let t=n.value,o=t.size;if(o===r.size)return;let u=o>r.size;n.issues.push({origin:Ke(t),...u?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!r.abort})}}),ti=h("$ZodCheckMaxLength",(e,r)=>{var i;D.init(e,r),(i=e._zod.def).when??(i.when=n=>{let t=n.value;return!me(t)&&t.length!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(n._zod.bag.maximum=r.maximum)}),e._zod.check=n=>{let t=n.value;if(t.length<=r.maximum)return;let u=Xe(t);n.issues.push({origin:u,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),ri=h("$ZodCheckMinLength",(e,r)=>{var i;D.init(e,r),(i=e._zod.def).when??(i.when=n=>{let t=n.value;return!me(t)&&t.length!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(n._zod.bag.minimum=r.minimum)}),e._zod.check=n=>{let t=n.value;if(t.length>=r.minimum)return;let u=Xe(t);n.issues.push({origin:u,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),ni=h("$ZodCheckLengthEquals",(e,r)=>{var i;D.init(e,r),(i=e._zod.def).when??(i.when=n=>{let t=n.value;return!me(t)&&t.length!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=n=>{let t=n.value,o=t.length;if(o===r.length)return;let u=Xe(t),l=o>r.length;n.issues.push({origin:u,...l?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!r.abort})}}),De=h("$ZodCheckStringFormat",(e,r)=>{var i,n;D.init(e,r),e._zod.onattach.push(t=>{let o=t._zod.bag;o.format=r.format,r.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(r.pattern))}),r.pattern?(i=e._zod).check??(i.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(n=e._zod).check??(n.check=()=>{})}),ii=h("$ZodCheckRegex",(e,r)=>{De.init(e,r),e._zod.check=i=>{r.pattern.lastIndex=0,!r.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),oi=h("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Gn),De.init(e,r)}),ai=h("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Wn),De.init(e,r)}),si=h("$ZodCheckIncludes",(e,r)=>{D.init(e,r);let i=H(r.includes),n=new RegExp(typeof r.position=="number"?`^.{${r.position}}${i}`:i);r.pattern=n,e._zod.onattach.push(t=>{let o=t._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),ui=h("$ZodCheckStartsWith",(e,r)=>{D.init(e,r);let i=new RegExp(`^${H(r.prefix)}.*`);r.pattern??(r.pattern=i),e._zod.onattach.push(n=>{let t=n._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=n=>{n.value.startsWith(r.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:n.value,inst:e,continue:!r.abort})}}),ci=h("$ZodCheckEndsWith",(e,r)=>{D.init(e,r);let i=new RegExp(`.*${H(r.suffix)}$`);r.pattern??(r.pattern=i),e._zod.onattach.push(n=>{let t=n._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=n=>{n.value.endsWith(r.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:n.value,inst:e,continue:!r.abort})}});function ju(e,r,i){e.issues.length&&r.issues.push(...W(i,e.issues))}s(ju,"handleCheckPropertyResult");var li=h("$ZodCheckProperty",(e,r)=>{D.init(e,r),e._zod.check=i=>{let n=r.schema._zod.run({value:i.value[r.property],issues:[]},{});if(n instanceof Promise)return n.then(t=>ju(t,i,r.property));ju(n,i,r.property)}}),di=h("$ZodCheckMimeType",(e,r)=>{D.init(e,r);let i=new Set(r.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=r.mime}),e._zod.check=n=>{i.has(n.value.type)||n.issues.push({code:"invalid_value",values:r.mime,input:n.value.type,inst:e,continue:!r.abort})}}),pi=h("$ZodCheckOverwrite",(e,r)=>{D.init(e,r),e._zod.check=i=>{i.value=r.tx(i.value)}});var mi=class mi{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let n=r.split(`
|
|
3
|
-
`).filter(
|
|
4
|
-
`))}};s(mi,"Doc");var rt=mi;var fi={major:4,minor:1,patch:13};var z=h("$ZodType",(e,r)=>{var i;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=fi;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let t of n)for(let o of t._zod.onattach)o(e);if(n.length===0)(i=e._zod).deferred??(i.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=s((u,l,f)=>{let g=he(u),m;for(let y of l){if(y._zod.def.when){if(!y._zod.def.when(u))continue}else if(g)continue;let p=u.issues.length,c=y._zod.check(u);if(c instanceof Promise&&f?.async===!1)throw new te;if(m||c instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await c,u.issues.length!==p&&(g||(g=he(u,p)))});else{if(u.issues.length===p)continue;g||(g=he(u,p))}}return m?m.then(()=>u):u},"runChecks"),o=s((u,l,f)=>{if(he(u))return u.aborted=!0,u;let g=t(l,n,f);if(g instanceof Promise){if(f.async===!1)throw new te;return g.then(m=>e._zod.parse(m,f))}return e._zod.parse(g,f)},"handleCanaryResult");e._zod.run=(u,l)=>{if(l.skipChecks)return e._zod.parse(u,l);if(l.direction==="backward"){let g=e._zod.parse({value:u.value,issues:[]},{...l,skipChecks:!0});return g instanceof Promise?g.then(m=>o(m,u,l)):o(g,u,l)}let f=e._zod.parse(u,l);if(f instanceof Promise){if(l.async===!1)throw new te;return f.then(g=>t(g,n,l))}return t(f,n,l)}}e["~standard"]={validate:s(t=>{try{let o=yn(e,t);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return bn(e,t).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},"validate"),vendor:"zod",version:1}}),_e=h("$ZodString",(e,r)=>{z.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Rn(e._zod.bag),e._zod.parse=(i,n)=>{if(r.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),U=h("$ZodStringFormat",(e,r)=>{De.init(e,r),_e.init(e,r)}),vi=h("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=zn),U.init(e,r)}),hi=h("$ZodUUID",(e,r)=>{if(r.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(n===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=$e(n))}else r.pattern??(r.pattern=$e());U.init(e,r)}),yi=h("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=jn),U.init(e,r)}),bi=h("$ZodURL",(e,r)=>{U.init(e,r),e._zod.check=i=>{try{let n=i.value.trim(),t=new URL(n);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:i.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:i.value,inst:e,continue:!r.abort})),r.normalize?i.value=t.href:i.value=n;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!r.abort})}}}),$i=h("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Pn()),U.init(e,r)}),_i=h("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=In),U.init(e,r)}),ki=h("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=$n),U.init(e,r)}),xi=h("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=_n),U.init(e,r)}),wi=h("$ZodULID",(e,r)=>{r.pattern??(r.pattern=kn),U.init(e,r)}),Ii=h("$ZodXID",(e,r)=>{r.pattern??(r.pattern=xn),U.init(e,r)}),Si=h("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=wn),U.init(e,r)}),zi=h("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Vn(r)),U.init(e,r)}),ji=h("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Tn),U.init(e,r)}),Pi=h("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Zn(r)),U.init(e,r)}),Ci=h("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Sn),U.init(e,r)}),Ni=h("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Cn),U.init(e,r),e._zod.bag.format="ipv4"}),Ui=h("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Nn),U.init(e,r),e._zod.bag.format="ipv6",e._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!r.abort})}}}),Di=h("$ZodMAC",(e,r)=>{r.pattern??(r.pattern=Un(r.delimiter)),U.init(e,r),e._zod.bag.format="mac"}),Oi=h("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Dn),U.init(e,r)}),Ei=h("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=On),U.init(e,r),e._zod.check=i=>{let n=i.value.split("/");try{if(n.length!==2)throw new Error;let[t,o]=n;if(!o)throw new Error;let u=Number(o);if(`${u}`!==o)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${t}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!r.abort})}}});function Ai(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}s(Ai,"isValidBase64");var Ti=h("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=En),U.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=i=>{Ai(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!r.abort})}});function Lu(e){if(!Qt.test(e))return!1;let r=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),i=r.padEnd(Math.ceil(r.length/4)*4,"=");return Ai(i)}s(Lu,"isValidBase64URL");var Zi=h("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=Qt),U.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=i=>{Lu(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!r.abort})}}),Vi=h("$ZodE164",(e,r)=>{r.pattern??(r.pattern=An),U.init(e,r)});function Fu(e,r=null){try{let i=e.split(".");if(i.length!==3)return!1;let[n]=i;if(!n)return!1;let t=JSON.parse(atob(n));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}s(Fu,"isValidJWT");var Ri=h("$ZodJWT",(e,r)=>{U.init(e,r),e._zod.check=i=>{Fu(i.value,r.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:e,continue:!r.abort})}}),Li=h("$ZodCustomStringFormat",(e,r)=>{U.init(e,r),e._zod.check=i=>{r.fn(i.value)||i.issues.push({code:"invalid_format",format:r.format,input:i.value,inst:e,continue:!r.abort})}}),ar=h("$ZodNumber",(e,r)=>{z.init(e,r),e._zod.pattern=e._zod.bag.pattern??Bn,e._zod.parse=(i,n)=>{if(r.coerce)try{i.value=Number(i.value)}catch{}let t=i.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return i;let o=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...o?{received:o}:{}}),i}}),Fi=h("$ZodNumberFormat",(e,r)=>{Xn.init(e,r),ar.init(e,r)}),nt=h("$ZodBoolean",(e,r)=>{z.init(e,r),e._zod.pattern=Mn,e._zod.parse=(i,n)=>{if(r.coerce)try{i.value=!!i.value}catch{}let t=i.value;return typeof t=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),i}}),sr=h("$ZodBigInt",(e,r)=>{z.init(e,r),e._zod.pattern=Ln,e._zod.parse=(i,n)=>{if(r.coerce)try{i.value=BigInt(i.value)}catch{}return typeof i.value=="bigint"||i.issues.push({expected:"bigint",code:"invalid_type",input:i.value,inst:e}),i}}),Bi=h("$ZodBigIntFormat",(e,r)=>{Hn.init(e,r),sr.init(e,r)}),Mi=h("$ZodSymbol",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>{let t=i.value;return typeof t=="symbol"||i.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),i}}),qi=h("$ZodUndefined",(e,r)=>{z.init(e,r),e._zod.pattern=Jn,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(i,n)=>{let t=i.value;return typeof t>"u"||i.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),i}}),Ji=h("$ZodNull",(e,r)=>{z.init(e,r),e._zod.pattern=qn,e._zod.values=new Set([null]),e._zod.parse=(i,n)=>{let t=i.value;return t===null||i.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),i}}),Gi=h("$ZodAny",(e,r)=>{z.init(e,r),e._zod.parse=i=>i}),Wi=h("$ZodUnknown",(e,r)=>{z.init(e,r),e._zod.parse=i=>i}),Ki=h("$ZodNever",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:e}),i)}),Xi=h("$ZodVoid",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>{let t=i.value;return typeof t>"u"||i.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),i}}),Hi=h("$ZodDate",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>{if(r.coerce)try{i.value=new Date(i.value)}catch{}let t=i.value,o=t instanceof Date;return o&&!Number.isNaN(t.getTime())||i.issues.push({expected:"date",code:"invalid_type",input:t,...o?{received:"Invalid Date"}:{},inst:e}),i}});function Nu(e,r,i){e.issues.length&&r.issues.push(...W(i,e.issues)),r.value[i]=e.value}s(Nu,"handleArrayResult");var Qi=h("$ZodArray",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>{let t=i.value;if(!Array.isArray(t))return i.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),i;i.value=Array(t.length);let o=[];for(let u=0;u<t.length;u++){let l=t[u],f=r.element._zod.run({value:l,issues:[]},n);f instanceof Promise?o.push(f.then(g=>Nu(g,i,u))):Nu(f,i,u)}return o.length?Promise.all(o).then(()=>i):i}});function or(e,r,i,n){e.issues.length&&r.issues.push(...W(i,e.issues)),e.value===void 0?i in n&&(r.value[i]=void 0):r.value[i]=e.value}s(or,"handlePropertyResult");function Bu(e){let r=Object.keys(e.shape);for(let n of r)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let i=pn(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(i)}}s(Bu,"normalizeDef");function Mu(e,r,i,n,t,o){let u=[],l=t.keySet,f=t.catchall._zod,g=f.def.type;for(let m in r){if(l.has(m))continue;if(g==="never"){u.push(m);continue}let y=f.run({value:r[m],issues:[]},n);y instanceof Promise?e.push(y.then(p=>or(p,i,m,r))):or(y,i,m,r)}return u.length&&i.issues.push({code:"unrecognized_keys",keys:u,input:r,inst:o}),e.length?Promise.all(e).then(()=>i):i}s(Mu,"handleCatchall");var qu=h("$ZodObject",(e,r)=>{if(z.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let l=r.shape;Object.defineProperty(r,"shape",{get:s(()=>{let f={...l};return Object.defineProperty(r,"shape",{value:f}),f},"get")})}let n=ze(()=>Bu(r));N(e._zod,"propValues",()=>{let l=r.shape,f={};for(let g in l){let m=l[g]._zod;if(m.values){f[g]??(f[g]=new Set);for(let y of m.values)f[g].add(y)}}return f});let t=be,o=r.catchall,u;e._zod.parse=(l,f)=>{u??(u=n.value);let g=l.value;if(!t(g))return l.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),l;l.value={};let m=[],y=u.shape;for(let p of u.keys){let d=y[p]._zod.run({value:g[p],issues:[]},f);d instanceof Promise?m.push(d.then(v=>or(v,l,p,g))):or(d,l,p,g)}return o?Mu(m,g,l,f,n.value,e):m.length?Promise.all(m).then(()=>l):l}}),Yi=h("$ZodObjectJIT",(e,r)=>{qu.init(e,r);let i=e._zod.parse,n=ze(()=>Bu(r)),t=s(p=>{let c=new rt(["shape","payload","ctx"]),d=n.value,v=s(S=>{let C=Rt(S);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`},"parseStr");c.write("const input = payload.value;");let $=Object.create(null),w=0;for(let S of d.keys)$[S]=`key_${w++}`;c.write("const newResult = {};");for(let S of d.keys){let C=$[S],A=Rt(S);c.write(`const ${C} = ${v(S)};`),c.write(`
|
|
5
|
-
if (${
|
|
6
|
-
payload.issues = payload.issues.concat(${
|
|
1
|
+
"use strict";var Jt=Object.defineProperty;var Dl=Object.getOwnPropertyDescriptor;var Al=Object.getOwnPropertyNames;var El=Object.prototype.hasOwnProperty;var s=(e,r)=>Jt(e,"name",{value:r,configurable:!0});var he=(e,r)=>{for(var o in r)Jt(e,o,{get:r[o],enumerable:!0})},Ol=(e,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of Al(r))!El.call(e,t)&&t!==o&&Jt(e,t,{get:()=>r[t],enumerable:!(i=Dl(r,t))||i.enumerable});return e};var Tl=e=>Ol(Jt({},"__esModule",{value:!0}),e);var Vv={};he(Vv,{getLearnCardNetworkPlugin:()=>Zv,getVerifyBoostPlugin:()=>Rv});module.exports=Tl(Vv);var ln=require("@learncard/network-brain-client");var n={};he(n,{$brand:()=>Wt,$input:()=>Ia,$output:()=>xa,NEVER:()=>dn,TimePrecision:()=>Pa,ZodAny:()=>$u,ZodArray:()=>xu,ZodBase64:()=>Xs,ZodBase64URL:()=>Hs,ZodBigInt:()=>Vt,ZodBigIntFormat:()=>ec,ZodBoolean:()=>Rt,ZodCIDRv4:()=>Ws,ZodCIDRv6:()=>Ks,ZodCUID:()=>Ls,ZodCUID2:()=>Fs,ZodCatch:()=>Bu,ZodCodec:()=>lc,ZodCustom:()=>Yr,ZodCustomStringFormat:()=>Tt,ZodDate:()=>Xr,ZodDefault:()=>Tu,ZodDiscriminatedUnion:()=>Iu,ZodE164:()=>Qs,ZodEmail:()=>Zs,ZodEmoji:()=>Rs,ZodEnum:()=>Et,ZodError:()=>gm,ZodFile:()=>Au,ZodFirstPartyTypeKind:()=>dc,ZodFunction:()=>Qu,ZodGUID:()=>qr,ZodIPv4:()=>Gs,ZodIPv6:()=>Js,ZodISODate:()=>Lr,ZodISODateTime:()=>Vr,ZodISODuration:()=>Br,ZodISOTime:()=>Fr,ZodIntersection:()=>Su,ZodIssueCode:()=>jg,ZodJWT:()=>Ys,ZodKSUID:()=>qs,ZodLazy:()=>Ku,ZodLiteral:()=>Du,ZodMAC:()=>mu,ZodMap:()=>Nu,ZodNaN:()=>qu,ZodNanoID:()=>Vs,ZodNever:()=>ku,ZodNonOptional:()=>cc,ZodNull:()=>yu,ZodNullable:()=>Ou,ZodNumber:()=>Zt,ZodNumberFormat:()=>We,ZodObject:()=>Qr,ZodOptional:()=>sc,ZodPipe:()=>uc,ZodPrefault:()=>Ru,ZodPromise:()=>Hu,ZodReadonly:()=>Gu,ZodRealError:()=>X,ZodRecord:()=>ic,ZodSet:()=>Uu,ZodString:()=>Ot,ZodStringFormat:()=>O,ZodSuccess:()=>Fu,ZodSymbol:()=>vu,ZodTemplateLiteral:()=>Wu,ZodTransform:()=>Eu,ZodTuple:()=>ju,ZodType:()=>N,ZodULID:()=>Bs,ZodURL:()=>Kr,ZodUUID:()=>fe,ZodUndefined:()=>hu,ZodUnion:()=>rc,ZodUnknown:()=>_u,ZodVoid:()=>wu,ZodXID:()=>Ms,_ZodString:()=>Ts,_default:()=>Zu,_function:()=>bg,any:()=>Ym,array:()=>Hr,base64:()=>Om,base64url:()=>Tm,bigint:()=>Wm,boolean:()=>fu,catch:()=>Mu,check:()=>$g,cidrv4:()=>Am,cidrv6:()=>Em,clone:()=>B,codec:()=>vg,coerce:()=>pc,config:()=>Z,core:()=>ge,cuid:()=>Sm,cuid2:()=>zm,custom:()=>_g,date:()=>tg,decode:()=>js,decodeAsync:()=>Ps,describe:()=>kg,discriminatedUnion:()=>ag,e164:()=>Zm,email:()=>vm,emoji:()=>xm,encode:()=>zs,encodeAsync:()=>Cs,endsWith:()=>zt,enum:()=>oc,file:()=>pg,flattenError:()=>at,float32:()=>Mm,float64:()=>qm,formatError:()=>st,function:()=>bg,getErrorMap:()=>Pg,globalRegistry:()=>M,gt:()=>me,gte:()=>K,guid:()=>hm,hash:()=>Bm,hex:()=>Fm,hostname:()=>Lm,httpUrl:()=>wm,includes:()=>It,instanceof:()=>xg,int:()=>Os,int32:()=>Gm,int64:()=>Km,intersection:()=>zu,ipv4:()=>Nm,ipv6:()=>Dm,iso:()=>Mr,json:()=>Sg,jwt:()=>Rm,keyof:()=>rg,ksuid:()=>Pm,lazy:()=>Xu,length:()=>qe,literal:()=>dg,locales:()=>yt,looseObject:()=>og,lowercase:()=>wt,lt:()=>pe,lte:()=>ne,mac:()=>Um,map:()=>cg,maxLength:()=>Me,maxSize:()=>Be,meta:()=>wg,mime:()=>jt,minLength:()=>xe,minSize:()=>Pe,multipleOf:()=>Ce,nan:()=>fg,nanoid:()=>Im,nativeEnum:()=>lg,negative:()=>os,never:()=>tc,nonnegative:()=>ss,nonoptional:()=>Lu,nonpositive:()=>as,normalize:()=>Ct,null:()=>bu,nullable:()=>Jr,nullish:()=>mg,number:()=>gu,object:()=>ng,optional:()=>Gr,overwrite:()=>le,parse:()=>ws,parseAsync:()=>xs,partialRecord:()=>sg,pipe:()=>Wr,positive:()=>is,prefault:()=>Vu,preprocess:()=>zg,prettifyError:()=>Sn,promise:()=>yg,property:()=>cs,readonly:()=>Ju,record:()=>Pu,refine:()=>Yu,regex:()=>kt,regexes:()=>re,registry:()=>br,safeDecode:()=>Us,safeDecodeAsync:()=>As,safeEncode:()=>Ns,safeEncodeAsync:()=>Ds,safeParse:()=>Is,safeParseAsync:()=>Ss,set:()=>ug,setErrorMap:()=>Cg,size:()=>_t,slugify:()=>Dt,startsWith:()=>St,strictObject:()=>ig,string:()=>Es,stringFormat:()=>Vm,stringbool:()=>Ig,success:()=>gg,superRefine:()=>el,symbol:()=>Hm,templateLiteral:()=>hg,toJSONSchema:()=>hs,toLowerCase:()=>Nt,toUpperCase:()=>Ut,transform:()=>ac,treeifyError:()=>In,trim:()=>Pt,tuple:()=>Cu,uint32:()=>Jm,uint64:()=>Xm,ulid:()=>jm,undefined:()=>Qm,union:()=>nc,unknown:()=>Je,uppercase:()=>xt,url:()=>km,util:()=>x,uuid:()=>ym,uuidv4:()=>bm,uuidv6:()=>$m,uuidv7:()=>_m,void:()=>eg,xid:()=>Cm});var ge={};he(ge,{$ZodAny:()=>ro,$ZodArray:()=>so,$ZodAsyncError:()=>ce,$ZodBase64:()=>Gi,$ZodBase64URL:()=>Ji,$ZodBigInt:()=>vr,$ZodBigIntFormat:()=>Qi,$ZodBoolean:()=>dt,$ZodCIDRv4:()=>Bi,$ZodCIDRv6:()=>Mi,$ZodCUID:()=>Ni,$ZodCUID2:()=>Ui,$ZodCatch:()=>Io,$ZodCheck:()=>E,$ZodCheckBigIntFormat:()=>ai,$ZodCheckEndsWith:()=>yi,$ZodCheckGreaterThan:()=>ur,$ZodCheckIncludes:()=>vi,$ZodCheckLengthEquals:()=>pi,$ZodCheckLessThan:()=>cr,$ZodCheckLowerCase:()=>gi,$ZodCheckMaxLength:()=>li,$ZodCheckMaxSize:()=>si,$ZodCheckMimeType:()=>$i,$ZodCheckMinLength:()=>di,$ZodCheckMinSize:()=>ci,$ZodCheckMultipleOf:()=>ii,$ZodCheckNumberFormat:()=>oi,$ZodCheckOverwrite:()=>_i,$ZodCheckProperty:()=>bi,$ZodCheckRegex:()=>mi,$ZodCheckSizeEquals:()=>ui,$ZodCheckStartsWith:()=>hi,$ZodCheckStringFormat:()=>Le,$ZodCheckUpperCase:()=>fi,$ZodCodec:()=>pt,$ZodCustom:()=>Do,$ZodCustomStringFormat:()=>Xi,$ZodDate:()=>ao,$ZodDefault:()=>_o,$ZodDiscriminatedUnion:()=>uo,$ZodE164:()=>Wi,$ZodEmail:()=>zi,$ZodEmoji:()=>Ci,$ZodEncodeError:()=>ye,$ZodEnum:()=>fo,$ZodError:()=>ot,$ZodFile:()=>ho,$ZodFunction:()=>Po,$ZodGUID:()=>Ii,$ZodIPv4:()=>Vi,$ZodIPv6:()=>Li,$ZodISODate:()=>Ti,$ZodISODateTime:()=>Oi,$ZodISODuration:()=>Ri,$ZodISOTime:()=>Zi,$ZodIntersection:()=>lo,$ZodJWT:()=>Ki,$ZodKSUID:()=>Ei,$ZodLazy:()=>Uo,$ZodLiteral:()=>vo,$ZodMAC:()=>Fi,$ZodMap:()=>mo,$ZodNaN:()=>So,$ZodNanoID:()=>Pi,$ZodNever:()=>io,$ZodNonOptional:()=>wo,$ZodNull:()=>to,$ZodNullable:()=>$o,$ZodNumber:()=>fr,$ZodNumberFormat:()=>Hi,$ZodObject:()=>iu,$ZodObjectJIT:()=>co,$ZodOptional:()=>bo,$ZodPipe:()=>zo,$ZodPrefault:()=>ko,$ZodPromise:()=>No,$ZodReadonly:()=>jo,$ZodRealError:()=>W,$ZodRecord:()=>po,$ZodRegistry:()=>Fe,$ZodSet:()=>go,$ZodString:()=>je,$ZodStringFormat:()=>A,$ZodSuccess:()=>xo,$ZodSymbol:()=>Yi,$ZodTemplateLiteral:()=>Co,$ZodTransform:()=>yo,$ZodTuple:()=>yr,$ZodType:()=>C,$ZodULID:()=>Di,$ZodURL:()=>ji,$ZodUUID:()=>Si,$ZodUndefined:()=>eo,$ZodUnion:()=>hr,$ZodUnknown:()=>no,$ZodVoid:()=>oo,$ZodXID:()=>Ai,$brand:()=>Wt,$constructor:()=>v,$input:()=>Ia,$output:()=>xa,Doc:()=>lt,JSONSchema:()=>lu,JSONSchemaGenerator:()=>At,NEVER:()=>dn,TimePrecision:()=>Pa,_any:()=>Ha,_array:()=>us,_base64:()=>Or,_base64url:()=>Tr,_bigint:()=>Ma,_boolean:()=>Fa,_catch:()=>sm,_check:()=>uu,_cidrv4:()=>Ar,_cidrv6:()=>Er,_coercedBigint:()=>qa,_coercedBoolean:()=>Ba,_coercedDate:()=>rs,_coercedNumber:()=>Oa,_coercedString:()=>ja,_cuid:()=>zr,_cuid2:()=>jr,_custom:()=>ds,_date:()=>ts,_decode:()=>er,_decodeAsync:()=>rr,_default:()=>im,_discriminatedUnion:()=>Gp,_e164:()=>Zr,_email:()=>$r,_emoji:()=>Ir,_encode:()=>Yt,_encodeAsync:()=>tr,_endsWith:()=>zt,_enum:()=>Qp,_file:()=>ls,_float32:()=>Za,_float64:()=>Ra,_gt:()=>me,_gte:()=>K,_guid:()=>bt,_includes:()=>It,_int:()=>Ta,_int32:()=>Va,_int64:()=>Ga,_intersection:()=>Jp,_ipv4:()=>Ur,_ipv6:()=>Dr,_isoDate:()=>Ua,_isoDateTime:()=>Na,_isoDuration:()=>Aa,_isoTime:()=>Da,_jwt:()=>Rr,_ksuid:()=>Nr,_lazy:()=>dm,_length:()=>qe,_literal:()=>em,_lowercase:()=>wt,_lt:()=>pe,_lte:()=>ne,_mac:()=>Ca,_map:()=>Xp,_max:()=>ne,_maxLength:()=>Me,_maxSize:()=>Be,_mime:()=>jt,_min:()=>K,_minLength:()=>xe,_minSize:()=>Pe,_multipleOf:()=>Ce,_nan:()=>ns,_nanoid:()=>Sr,_nativeEnum:()=>Yp,_negative:()=>os,_never:()=>Ya,_nonnegative:()=>ss,_nonoptional:()=>om,_nonpositive:()=>as,_normalize:()=>Ct,_null:()=>Xa,_nullable:()=>nm,_number:()=>Ea,_optional:()=>rm,_overwrite:()=>le,_parse:()=>Te,_parseAsync:()=>Ze,_pipe:()=>cm,_positive:()=>is,_promise:()=>pm,_property:()=>cs,_readonly:()=>um,_record:()=>Kp,_refine:()=>ps,_regex:()=>kt,_safeDecode:()=>ir,_safeDecodeAsync:()=>ar,_safeEncode:()=>nr,_safeEncodeAsync:()=>or,_safeParse:()=>Re,_safeParseAsync:()=>Ve,_set:()=>Hp,_size:()=>_t,_slugify:()=>Dt,_startsWith:()=>St,_string:()=>za,_stringFormat:()=>Ge,_stringbool:()=>vs,_success:()=>am,_superRefine:()=>ms,_symbol:()=>Wa,_templateLiteral:()=>lm,_toLowerCase:()=>Nt,_toUpperCase:()=>Ut,_transform:()=>tm,_trim:()=>Pt,_tuple:()=>Wp,_uint32:()=>La,_uint64:()=>Ja,_ulid:()=>Cr,_undefined:()=>Ka,_union:()=>qp,_unknown:()=>Qa,_uppercase:()=>xt,_url:()=>$t,_uuid:()=>_r,_uuidv4:()=>kr,_uuidv6:()=>wr,_uuidv7:()=>xr,_void:()=>es,_xid:()=>Pr,clone:()=>B,config:()=>Z,decode:()=>dd,decodeAsync:()=>md,describe:()=>gs,encode:()=>ld,encodeAsync:()=>pd,flattenError:()=>at,formatError:()=>st,globalConfig:()=>Qe,globalRegistry:()=>M,isValidBase64:()=>qi,isValidBase64URL:()=>eu,isValidJWT:()=>tu,locales:()=>yt,meta:()=>fs,parse:()=>Ht,parseAsync:()=>Qt,prettifyError:()=>Sn,regexes:()=>re,registry:()=>br,safeDecode:()=>fd,safeDecodeAsync:()=>hd,safeEncode:()=>gd,safeEncodeAsync:()=>vd,safeParse:()=>zn,safeParseAsync:()=>jn,toDotPath:()=>Tc,toJSONSchema:()=>hs,treeifyError:()=>In,util:()=>x,version:()=>wi});var dn=Object.freeze({status:"aborted"});function v(e,r,o){function i(l,g){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:g,constr:c,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),r(l,g);let h=c.prototype,p=Object.keys(h);for(let I=0;I<p.length;I++){let _=p[I];_ in l||(l[_]=h[_].bind(l))}}s(i,"init");let t=o?.Parent??Object,f=class f extends t{};s(f,"Definition");let a=f;Object.defineProperty(a,"name",{value:e});function c(l){var g;let h=o?.Parent?new a:this;i(h,l),(g=h._zod).deferred??(g.deferred=[]);for(let p of h._zod.deferred)p();return h}return s(c,"_"),Object.defineProperty(c,"init",{value:i}),Object.defineProperty(c,Symbol.hasInstance,{value:s(l=>o?.Parent&&l instanceof o.Parent?!0:l?._zod?.traits?.has(e),"value")}),Object.defineProperty(c,"name",{value:e}),c}s(v,"$constructor");var Wt=Symbol("zod_brand"),mn=class mn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};s(mn,"$ZodAsyncError");var ce=mn,gn=class gn extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};s(gn,"$ZodEncodeError");var ye=gn,Qe={};function Z(e){return e&&Object.assign(Qe,e),Qe}s(Z,"config");var x={};he(x,{BIGINT_FORMAT_RANGES:()=>wn,Class:()=>fn,NUMBER_FORMAT_RANGES:()=>kn,aborted:()=>we,allowsEval:()=>yn,assert:()=>Fl,assertEqual:()=>Zl,assertIs:()=>Vl,assertNever:()=>Ll,assertNotEqual:()=>Rl,assignProp:()=>$e,base64ToUint8Array:()=>Ac,base64urlToUint8Array:()=>od,cached:()=>Ee,captureStackTrace:()=>Xt,cleanEnum:()=>id,cleanRegex:()=>tt,clone:()=>B,cloneDef:()=>Ml,createTransparentProxy:()=>Xl,defineLazy:()=>U,esc:()=>Kt,escapeRegex:()=>te,extend:()=>Yl,finalizeIssue:()=>Y,floatSafeRemainder:()=>vn,getElementAtPath:()=>ql,getEnumValues:()=>et,getLengthableOrigin:()=>it,getParsedType:()=>Kl,getSizableOrigin:()=>nt,hexToUint8Array:()=>sd,isObject:()=>Se,isPlainObject:()=>ke,issue:()=>Oe,joinValues:()=>b,jsonStringifyReplacer:()=>Ae,merge:()=>td,mergeDefs:()=>_e,normalizeParams:()=>w,nullish:()=>be,numKeys:()=>Wl,objectClone:()=>Bl,omit:()=>Ql,optionalKeys:()=>_n,partial:()=>rd,pick:()=>Hl,prefixIssues:()=>Q,primitiveTypes:()=>$n,promiseAllObject:()=>Gl,propertyKeyTypes:()=>rt,randomString:()=>Jl,required:()=>nd,safeExtend:()=>ed,shallowClone:()=>bn,slugify:()=>hn,stringifyPrimitive:()=>k,uint8ArrayToBase64:()=>Ec,uint8ArrayToBase64url:()=>ad,uint8ArrayToHex:()=>cd,unwrapMessage:()=>Ye});function Zl(e){return e}s(Zl,"assertEqual");function Rl(e){return e}s(Rl,"assertNotEqual");function Vl(e){}s(Vl,"assertIs");function Ll(e){throw new Error}s(Ll,"assertNever");function Fl(e){}s(Fl,"assert");function et(e){let r=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,t])=>r.indexOf(+i)===-1).map(([i,t])=>t)}s(et,"getEnumValues");function b(e,r="|"){return e.map(o=>k(o)).join(r)}s(b,"joinValues");function Ae(e,r){return typeof r=="bigint"?r.toString():r}s(Ae,"jsonStringifyReplacer");function Ee(e){return{get value(){{let o=e();return Object.defineProperty(this,"value",{value:o}),o}throw new Error("cached value already set")}}}s(Ee,"cached");function be(e){return e==null}s(be,"nullish");function tt(e){let r=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(r,o)}s(tt,"cleanRegex");function vn(e,r){let o=(e.toString().split(".")[1]||"").length,i=r.toString(),t=(i.split(".")[1]||"").length;if(t===0&&/\d?e-\d?/.test(i)){let l=i.match(/\d?e-(\d?)/);l?.[1]&&(t=Number.parseInt(l[1]))}let a=o>t?o:t,c=Number.parseInt(e.toFixed(a).replace(".","")),f=Number.parseInt(r.toFixed(a).replace(".",""));return c%f/10**a}s(vn,"floatSafeRemainder");var Dc=Symbol("evaluating");function U(e,r,o){let i;Object.defineProperty(e,r,{get(){if(i!==Dc)return i===void 0&&(i=Dc,i=o()),i},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}s(U,"defineLazy");function Bl(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}s(Bl,"objectClone");function $e(e,r,o){Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}s($e,"assignProp");function _e(...e){let r={};for(let o of e){let i=Object.getOwnPropertyDescriptors(o);Object.assign(r,i)}return Object.defineProperties({},r)}s(_e,"mergeDefs");function Ml(e){return _e(e._zod.def)}s(Ml,"cloneDef");function ql(e,r){return r?r.reduce((o,i)=>o?.[i],e):e}s(ql,"getElementAtPath");function Gl(e){let r=Object.keys(e),o=r.map(i=>e[i]);return Promise.all(o).then(i=>{let t={};for(let a=0;a<r.length;a++)t[r[a]]=i[a];return t})}s(Gl,"promiseAllObject");function Jl(e=10){let r="abcdefghijklmnopqrstuvwxyz",o="";for(let i=0;i<e;i++)o+=r[Math.floor(Math.random()*r.length)];return o}s(Jl,"randomString");function Kt(e){return JSON.stringify(e)}s(Kt,"esc");function hn(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(hn,"slugify");var Xt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Se(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(Se,"isObject");var yn=Ee(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function ke(e){if(Se(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let o=r.prototype;return!(Se(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}s(ke,"isPlainObject");function bn(e){return ke(e)?{...e}:Array.isArray(e)?[...e]:e}s(bn,"shallowClone");function Wl(e){let r=0;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&r++;return r}s(Wl,"numKeys");var Kl=s(e=>{let r=typeof e;switch(r){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: ${r}`)}},"getParsedType"),rt=new Set(["string","number","symbol"]),$n=new Set(["string","number","bigint","boolean","symbol","undefined"]);function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(te,"escapeRegex");function B(e,r,o){let i=new e._zod.constr(r??e._zod.def);return(!r||o?.parent)&&(i._zod.parent=e),i}s(B,"clone");function w(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:s(()=>r,"error")};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:s(()=>r.error,"error")}:r}s(w,"normalizeParams");function Xl(e){let r;return new Proxy({},{get(o,i,t){return r??(r=e()),Reflect.get(r,i,t)},set(o,i,t,a){return r??(r=e()),Reflect.set(r,i,t,a)},has(o,i){return r??(r=e()),Reflect.has(r,i)},deleteProperty(o,i){return r??(r=e()),Reflect.deleteProperty(r,i)},ownKeys(o){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,i){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,i)},defineProperty(o,i,t){return r??(r=e()),Reflect.defineProperty(r,i,t)}})}s(Xl,"createTransparentProxy");function k(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}s(k,"stringifyPrimitive");function _n(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}s(_n,"optionalKeys");var kn={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]},wn={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Hl(e,r){let o=e._zod.def,i=_e(e._zod.def,{get shape(){let t={};for(let a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(t[a]=o.shape[a])}return $e(this,"shape",t),t},checks:[]});return B(e,i)}s(Hl,"pick");function Ql(e,r){let o=e._zod.def,i=_e(e._zod.def,{get shape(){let t={...e._zod.def.shape};for(let a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete t[a]}return $e(this,"shape",t),t},checks:[]});return B(e,i)}s(Ql,"omit");function Yl(e,r){if(!ke(r))throw new Error("Invalid input to extend: expected a plain object");let o=e._zod.def.checks;if(o&&o.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let t=_e(e._zod.def,{get shape(){let a={...e._zod.def.shape,...r};return $e(this,"shape",a),a},checks:[]});return B(e,t)}s(Yl,"extend");function ed(e,r){if(!ke(r))throw new Error("Invalid input to safeExtend: expected a plain object");let o={...e._zod.def,get shape(){let i={...e._zod.def.shape,...r};return $e(this,"shape",i),i},checks:e._zod.def.checks};return B(e,o)}s(ed,"safeExtend");function td(e,r){let o=_e(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r._zod.def.shape};return $e(this,"shape",i),i},get catchall(){return r._zod.def.catchall},checks:[]});return B(e,o)}s(td,"merge");function rd(e,r,o){let i=_e(r._zod.def,{get shape(){let t=r._zod.def.shape,a={...t};if(o)for(let c in o){if(!(c in t))throw new Error(`Unrecognized key: "${c}"`);o[c]&&(a[c]=e?new e({type:"optional",innerType:t[c]}):t[c])}else for(let c in t)a[c]=e?new e({type:"optional",innerType:t[c]}):t[c];return $e(this,"shape",a),a},checks:[]});return B(r,i)}s(rd,"partial");function nd(e,r,o){let i=_e(r._zod.def,{get shape(){let t=r._zod.def.shape,a={...t};if(o)for(let c in o){if(!(c in a))throw new Error(`Unrecognized key: "${c}"`);o[c]&&(a[c]=new e({type:"nonoptional",innerType:t[c]}))}else for(let c in t)a[c]=new e({type:"nonoptional",innerType:t[c]});return $e(this,"shape",a),a},checks:[]});return B(r,i)}s(nd,"required");function we(e,r=0){if(e.aborted===!0)return!0;for(let o=r;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}s(we,"aborted");function Q(e,r){return r.map(o=>{var i;return(i=o).path??(i.path=[]),o.path.unshift(e),o})}s(Q,"prefixIssues");function Ye(e){return typeof e=="string"?e:e?.message}s(Ye,"unwrapMessage");function Y(e,r,o){let i={...e,path:e.path??[]};if(!e.message){let t=Ye(e.inst?._zod.def?.error?.(e))??Ye(r?.error?.(e))??Ye(o.customError?.(e))??Ye(o.localeError?.(e))??"Invalid input";i.message=t}return delete i.inst,delete i.continue,r?.reportInput||delete i.input,i}s(Y,"finalizeIssue");function nt(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}s(nt,"getSizableOrigin");function it(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}s(it,"getLengthableOrigin");function Oe(...e){let[r,o,i]=e;return typeof r=="string"?{message:r,code:"custom",input:o,inst:i}:{...r}}s(Oe,"issue");function id(e){return Object.entries(e).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}s(id,"cleanEnum");function Ac(e){let r=atob(e),o=new Uint8Array(r.length);for(let i=0;i<r.length;i++)o[i]=r.charCodeAt(i);return o}s(Ac,"base64ToUint8Array");function Ec(e){let r="";for(let o=0;o<e.length;o++)r+=String.fromCharCode(e[o]);return btoa(r)}s(Ec,"uint8ArrayToBase64");function od(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return Ac(r+o)}s(od,"base64urlToUint8Array");function ad(e){return Ec(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(ad,"uint8ArrayToBase64url");function sd(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let o=new Uint8Array(r.length/2);for(let i=0;i<r.length;i+=2)o[i/2]=Number.parseInt(r.slice(i,i+2),16);return o}s(sd,"hexToUint8Array");function cd(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}s(cd,"uint8ArrayToHex");var xn=class xn{constructor(...r){}};s(xn,"Class");var fn=xn;var Oc=s((e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Ae,2),Object.defineProperty(e,"toString",{value:s(()=>e.message,"value"),enumerable:!1})},"initializer"),ot=v("$ZodError",Oc),W=v("$ZodError",Oc,{Parent:Error});function at(e,r=o=>o.message){let o={},i=[];for(let t of e.issues)t.path.length>0?(o[t.path[0]]=o[t.path[0]]||[],o[t.path[0]].push(r(t))):i.push(r(t));return{formErrors:i,fieldErrors:o}}s(at,"flattenError");function st(e,r=o=>o.message){let o={_errors:[]},i=s(t=>{for(let a of t.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>i({issues:c}));else if(a.code==="invalid_key")i({issues:a.issues});else if(a.code==="invalid_element")i({issues:a.issues});else if(a.path.length===0)o._errors.push(r(a));else{let c=o,f=0;for(;f<a.path.length;){let l=a.path[f];f===a.path.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(r(a))):c[l]=c[l]||{_errors:[]},c=c[l],f++}}},"processError");return i(e),o}s(st,"formatError");function In(e,r=o=>o.message){let o={errors:[]},i=s((t,a=[])=>{var c,f;for(let l of t.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(g=>i({issues:g},l.path));else if(l.code==="invalid_key")i({issues:l.issues},l.path);else if(l.code==="invalid_element")i({issues:l.issues},l.path);else{let g=[...a,...l.path];if(g.length===0){o.errors.push(r(l));continue}let h=o,p=0;for(;p<g.length;){let I=g[p],_=p===g.length-1;typeof I=="string"?(h.properties??(h.properties={}),(c=h.properties)[I]??(c[I]={errors:[]}),h=h.properties[I]):(h.items??(h.items=[]),(f=h.items)[I]??(f[I]={errors:[]}),h=h.items[I]),_&&h.errors.push(r(l)),p++}}},"processError");return i(e),o}s(In,"treeifyError");function Tc(e){let r=[],o=e.map(i=>typeof i=="object"?i.key:i);for(let i of o)typeof i=="number"?r.push(`[${i}]`):typeof i=="symbol"?r.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?r.push(`[${JSON.stringify(i)}]`):(r.length&&r.push("."),r.push(i));return r.join("")}s(Tc,"toDotPath");function Sn(e){let r=[],o=[...e.issues].sort((i,t)=>(i.path??[]).length-(t.path??[]).length);for(let i of o)r.push(`\u2716 ${i.message}`),i.path?.length&&r.push(` \u2192 at ${Tc(i.path)}`);return r.join(`
|
|
2
|
+
`)}s(Sn,"prettifyError");var Te=s(e=>(r,o,i,t)=>{let a=i?Object.assign(i,{async:!1}):{async:!1},c=r._zod.run({value:o,issues:[]},a);if(c instanceof Promise)throw new ce;if(c.issues.length){let f=new(t?.Err??e)(c.issues.map(l=>Y(l,a,Z())));throw Xt(f,t?.callee),f}return c.value},"_parse"),Ht=Te(W),Ze=s(e=>async(r,o,i,t)=>{let a=i?Object.assign(i,{async:!0}):{async:!0},c=r._zod.run({value:o,issues:[]},a);if(c instanceof Promise&&(c=await c),c.issues.length){let f=new(t?.Err??e)(c.issues.map(l=>Y(l,a,Z())));throw Xt(f,t?.callee),f}return c.value},"_parseAsync"),Qt=Ze(W),Re=s(e=>(r,o,i)=>{let t=i?{...i,async:!1}:{async:!1},a=r._zod.run({value:o,issues:[]},t);if(a instanceof Promise)throw new ce;return a.issues.length?{success:!1,error:new(e??ot)(a.issues.map(c=>Y(c,t,Z())))}:{success:!0,data:a.value}},"_safeParse"),zn=Re(W),Ve=s(e=>async(r,o,i)=>{let t=i?Object.assign(i,{async:!0}):{async:!0},a=r._zod.run({value:o,issues:[]},t);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(c=>Y(c,t,Z())))}:{success:!0,data:a.value}},"_safeParseAsync"),jn=Ve(W),Yt=s(e=>(r,o,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Te(e)(r,o,t)},"_encode"),ld=Yt(W),er=s(e=>(r,o,i)=>Te(e)(r,o,i),"_decode"),dd=er(W),tr=s(e=>async(r,o,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ze(e)(r,o,t)},"_encodeAsync"),pd=tr(W),rr=s(e=>async(r,o,i)=>Ze(e)(r,o,i),"_decodeAsync"),md=rr(W),nr=s(e=>(r,o,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Re(e)(r,o,t)},"_safeEncode"),gd=nr(W),ir=s(e=>(r,o,i)=>Re(e)(r,o,i),"_safeDecode"),fd=ir(W),or=s(e=>async(r,o,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ve(e)(r,o,t)},"_safeEncodeAsync"),vd=or(W),ar=s(e=>async(r,o,i)=>Ve(e)(r,o,i),"_safeDecodeAsync"),hd=ar(W);var re={};he(re,{base64:()=>Mn,base64url:()=>sr,bigint:()=>Xn,boolean:()=>Yn,browserEmail:()=>Id,cidrv4:()=>Fn,cidrv6:()=>Bn,cuid:()=>Cn,cuid2:()=>Pn,date:()=>Gn,datetime:()=>Wn,domain:()=>jd,duration:()=>En,e164:()=>qn,email:()=>Tn,emoji:()=>Zn,extendedDuration:()=>yd,guid:()=>On,hex:()=>Cd,hostname:()=>zd,html5Email:()=>kd,idnEmail:()=>xd,integer:()=>Hn,ipv4:()=>Rn,ipv6:()=>Vn,ksuid:()=>Dn,lowercase:()=>ri,mac:()=>Ln,md5_base64:()=>Nd,md5_base64url:()=>Ud,md5_hex:()=>Pd,nanoid:()=>An,null:()=>ei,number:()=>Qn,rfc5322Email:()=>wd,sha1_base64:()=>Ad,sha1_base64url:()=>Ed,sha1_hex:()=>Dd,sha256_base64:()=>Td,sha256_base64url:()=>Zd,sha256_hex:()=>Od,sha384_base64:()=>Vd,sha384_base64url:()=>Ld,sha384_hex:()=>Rd,sha512_base64:()=>Bd,sha512_base64url:()=>Md,sha512_hex:()=>Fd,string:()=>Kn,time:()=>Jn,ulid:()=>Nn,undefined:()=>ti,unicodeEmail:()=>Zc,uppercase:()=>ni,uuid:()=>ze,uuid4:()=>bd,uuid6:()=>$d,uuid7:()=>_d,xid:()=>Un});var Cn=/^[cC][^\s-]{8,}$/,Pn=/^[0-9a-z]+$/,Nn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Un=/^[0-9a-vA-V]{20}$/,Dn=/^[A-Za-z0-9]{27}$/,An=/^[a-zA-Z0-9_-]{21}$/,En=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,yd=/^[-+]?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)?)??$/,On=/^([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})$/,ze=s(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)$/,"uuid"),bd=ze(4),$d=ze(6),_d=ze(7),Tn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kd=/^[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])?)*$/,wd=/^(([^<>()\[\]\\.,;:\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,}))$/,Zc=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,xd=Zc,Id=/^[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])?)*$/,Sd="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Zn(){return new RegExp(Sd,"u")}s(Zn,"emoji");var Rn=/^(?:(?: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])$/,Vn=/^(([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}|:))$/,Ln=s(e=>{let r=te(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},"mac"),Fn=/^((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])$/,Bn=/^(([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])$/,Mn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,sr=/^[A-Za-z0-9_-]*$/,zd=/^(?=.{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])?)*\.?$/,jd=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,qn=/^\+(?:[0-9]){6,14}[0-9]$/,Rc="(?:(?:\\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])))",Gn=new RegExp(`^${Rc}$`);function Vc(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}s(Vc,"timeSource");function Jn(e){return new RegExp(`^${Vc(e)}$`)}s(Jn,"time");function Wn(e){let r=Vc({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${r}(?:${o.join("|")})`;return new RegExp(`^${Rc}T(?:${i})$`)}s(Wn,"datetime");var Kn=s(e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},"string"),Xn=/^-?\d+n?$/,Hn=/^-?\d+$/,Qn=/^-?\d+(?:\.\d+)?/,Yn=/^(?:true|false)$/i,ei=/^null$/i;var ti=/^undefined$/i;var ri=/^[^A-Z]*$/,ni=/^[^a-z]*$/,Cd=/^[0-9a-fA-F]*$/;function ct(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}s(ct,"fixedBase64");function ut(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}s(ut,"fixedBase64url");var Pd=/^[0-9a-fA-F]{32}$/,Nd=ct(22,"=="),Ud=ut(22),Dd=/^[0-9a-fA-F]{40}$/,Ad=ct(27,"="),Ed=ut(27),Od=/^[0-9a-fA-F]{64}$/,Td=ct(43,"="),Zd=ut(43),Rd=/^[0-9a-fA-F]{96}$/,Vd=ct(64,""),Ld=ut(64),Fd=/^[0-9a-fA-F]{128}$/,Bd=ct(86,"=="),Md=ut(86);var E=v("$ZodCheck",(e,r)=>{var o;e._zod??(e._zod={}),e._zod.def=r,(o=e._zod).onattach??(o.onattach=[])}),Fc={number:"number",bigint:"bigint",object:"date"},cr=v("$ZodCheckLessThan",(e,r)=>{E.init(e,r);let o=Fc[typeof r.value];e._zod.onattach.push(i=>{let t=i._zod.bag,a=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<a&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=i=>{(r.inclusive?i.value<=r.value:i.value<r.value)||i.issues.push({origin:o,code:"too_big",maximum:r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),ur=v("$ZodCheckGreaterThan",(e,r)=>{E.init(e,r);let o=Fc[typeof r.value];e._zod.onattach.push(i=>{let t=i._zod.bag,a=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>a&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=i=>{(r.inclusive?i.value>=r.value:i.value>r.value)||i.issues.push({origin:o,code:"too_small",minimum:r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),ii=v("$ZodCheckMultipleOf",(e,r)=>{E.init(e,r),e._zod.onattach.push(o=>{var i;(i=o._zod.bag).multipleOf??(i.multipleOf=r.value)}),e._zod.check=o=>{if(typeof o.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%r.value===BigInt(0):vn(o.value,r.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:r.value,input:o.value,inst:e,continue:!r.abort})}}),oi=v("$ZodCheckNumberFormat",(e,r)=>{E.init(e,r),r.format=r.format||"float64";let o=r.format?.includes("int"),i=o?"int":"number",[t,a]=kn[r.format];e._zod.onattach.push(c=>{let f=c._zod.bag;f.format=r.format,f.minimum=t,f.maximum=a,o&&(f.pattern=Hn)}),e._zod.check=c=>{let f=c.value;if(o){if(!Number.isInteger(f)){c.issues.push({expected:i,format:r.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?c.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!r.abort}):c.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!r.abort});return}}f<t&&c.issues.push({origin:"number",input:f,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),f>a&&c.issues.push({origin:"number",input:f,code:"too_big",maximum:a,inst:e})}}),ai=v("$ZodCheckBigIntFormat",(e,r)=>{E.init(e,r);let[o,i]=wn[r.format];e._zod.onattach.push(t=>{let a=t._zod.bag;a.format=r.format,a.minimum=o,a.maximum=i}),e._zod.check=t=>{let a=t.value;a<o&&t.issues.push({origin:"bigint",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!r.abort}),a>i&&t.issues.push({origin:"bigint",input:a,code:"too_big",maximum:i,inst:e})}}),si=v("$ZodCheckMaxSize",(e,r)=>{var o;E.init(e,r),(o=e._zod.def).when??(o.when=i=>{let t=i.value;return!be(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(i._zod.bag.maximum=r.maximum)}),e._zod.check=i=>{let t=i.value;t.size<=r.maximum||i.issues.push({origin:nt(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),ci=v("$ZodCheckMinSize",(e,r)=>{var o;E.init(e,r),(o=e._zod.def).when??(o.when=i=>{let t=i.value;return!be(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(i._zod.bag.minimum=r.minimum)}),e._zod.check=i=>{let t=i.value;t.size>=r.minimum||i.issues.push({origin:nt(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),ui=v("$ZodCheckSizeEquals",(e,r)=>{var o;E.init(e,r),(o=e._zod.def).when??(o.when=i=>{let t=i.value;return!be(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=i=>{let t=i.value,a=t.size;if(a===r.size)return;let c=a>r.size;i.issues.push({origin:nt(t),...c?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!r.abort})}}),li=v("$ZodCheckMaxLength",(e,r)=>{var o;E.init(e,r),(o=e._zod.def).when??(o.when=i=>{let t=i.value;return!be(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(i._zod.bag.maximum=r.maximum)}),e._zod.check=i=>{let t=i.value;if(t.length<=r.maximum)return;let c=it(t);i.issues.push({origin:c,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),di=v("$ZodCheckMinLength",(e,r)=>{var o;E.init(e,r),(o=e._zod.def).when??(o.when=i=>{let t=i.value;return!be(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(i._zod.bag.minimum=r.minimum)}),e._zod.check=i=>{let t=i.value;if(t.length>=r.minimum)return;let c=it(t);i.issues.push({origin:c,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),pi=v("$ZodCheckLengthEquals",(e,r)=>{var o;E.init(e,r),(o=e._zod.def).when??(o.when=i=>{let t=i.value;return!be(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{let t=i._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=i=>{let t=i.value,a=t.length;if(a===r.length)return;let c=it(t),f=a>r.length;i.issues.push({origin:c,...f?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!r.abort})}}),Le=v("$ZodCheckStringFormat",(e,r)=>{var o,i;E.init(e,r),e._zod.onattach.push(t=>{let a=t._zod.bag;a.format=r.format,r.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(r.pattern))}),r.pattern?(o=e._zod).check??(o.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(i=e._zod).check??(i.check=()=>{})}),mi=v("$ZodCheckRegex",(e,r)=>{Le.init(e,r),e._zod.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),gi=v("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=ri),Le.init(e,r)}),fi=v("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=ni),Le.init(e,r)}),vi=v("$ZodCheckIncludes",(e,r)=>{E.init(e,r);let o=te(r.includes),i=new RegExp(typeof r.position=="number"?`^.{${r.position}}${o}`:o);r.pattern=i,e._zod.onattach.push(t=>{let a=t._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),hi=v("$ZodCheckStartsWith",(e,r)=>{E.init(e,r);let o=new RegExp(`^${te(r.prefix)}.*`);r.pattern??(r.pattern=o),e._zod.onattach.push(i=>{let t=i._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=i=>{i.value.startsWith(r.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:i.value,inst:e,continue:!r.abort})}}),yi=v("$ZodCheckEndsWith",(e,r)=>{E.init(e,r);let o=new RegExp(`.*${te(r.suffix)}$`);r.pattern??(r.pattern=o),e._zod.onattach.push(i=>{let t=i._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=i=>{i.value.endsWith(r.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:i.value,inst:e,continue:!r.abort})}});function Lc(e,r,o){e.issues.length&&r.issues.push(...Q(o,e.issues))}s(Lc,"handleCheckPropertyResult");var bi=v("$ZodCheckProperty",(e,r)=>{E.init(e,r),e._zod.check=o=>{let i=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(i instanceof Promise)return i.then(t=>Lc(t,o,r.property));Lc(i,o,r.property)}}),$i=v("$ZodCheckMimeType",(e,r)=>{E.init(e,r);let o=new Set(r.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=r.mime}),e._zod.check=i=>{o.has(i.value.type)||i.issues.push({code:"invalid_value",values:r.mime,input:i.value.type,inst:e,continue:!r.abort})}}),_i=v("$ZodCheckOverwrite",(e,r)=>{E.init(e,r),e._zod.check=o=>{o.value=r.tx(o.value)}});var ki=class ki{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let i=r.split(`
|
|
3
|
+
`).filter(c=>c),t=Math.min(...i.map(c=>c.length-c.trimStart().length)),a=i.map(c=>c.slice(t)).map(c=>" ".repeat(this.indent*2)+c);for(let c of a)this.content.push(c)}compile(){let r=Function,o=this?.args,t=[...(this?.content??[""]).map(a=>` ${a}`)];return new r(...o,t.join(`
|
|
4
|
+
`))}};s(ki,"Doc");var lt=ki;var wi={major:4,minor:1,patch:13};var C=v("$ZodType",(e,r)=>{var o;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=wi;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let t of i)for(let a of t._zod.onattach)a(e);if(i.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=s((c,f,l)=>{let g=we(c),h;for(let p of f){if(p._zod.def.when){if(!p._zod.def.when(c))continue}else if(g)continue;let I=c.issues.length,_=p._zod.check(c);if(_ instanceof Promise&&l?.async===!1)throw new ce;if(h||_ instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await _,c.issues.length!==I&&(g||(g=we(c,I)))});else{if(c.issues.length===I)continue;g||(g=we(c,I))}}return h?h.then(()=>c):c},"runChecks"),a=s((c,f,l)=>{if(we(c))return c.aborted=!0,c;let g=t(f,i,l);if(g instanceof Promise){if(l.async===!1)throw new ce;return g.then(h=>e._zod.parse(h,l))}return e._zod.parse(g,l)},"handleCanaryResult");e._zod.run=(c,f)=>{if(f.skipChecks)return e._zod.parse(c,f);if(f.direction==="backward"){let g=e._zod.parse({value:c.value,issues:[]},{...f,skipChecks:!0});return g instanceof Promise?g.then(h=>a(h,c,f)):a(g,c,f)}let l=e._zod.parse(c,f);if(l instanceof Promise){if(f.async===!1)throw new ce;return l.then(g=>t(g,i,f))}return t(l,i,f)}}e["~standard"]={validate:s(t=>{try{let a=zn(e,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return jn(e,t).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},"validate"),vendor:"zod",version:1}}),je=v("$ZodString",(e,r)=>{C.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Kn(e._zod.bag),e._zod.parse=(o,i)=>{if(r.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),A=v("$ZodStringFormat",(e,r)=>{Le.init(e,r),je.init(e,r)}),Ii=v("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=On),A.init(e,r)}),Si=v("$ZodUUID",(e,r)=>{if(r.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(i===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=ze(i))}else r.pattern??(r.pattern=ze());A.init(e,r)}),zi=v("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Tn),A.init(e,r)}),ji=v("$ZodURL",(e,r)=>{A.init(e,r),e._zod.check=o=>{try{let i=o.value.trim(),t=new URL(i);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:o.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:e,continue:!r.abort})),r.normalize?o.value=t.href:o.value=i;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!r.abort})}}}),Ci=v("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Zn()),A.init(e,r)}),Pi=v("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=An),A.init(e,r)}),Ni=v("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Cn),A.init(e,r)}),Ui=v("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Pn),A.init(e,r)}),Di=v("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Nn),A.init(e,r)}),Ai=v("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Un),A.init(e,r)}),Ei=v("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Dn),A.init(e,r)}),Oi=v("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Wn(r)),A.init(e,r)}),Ti=v("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Gn),A.init(e,r)}),Zi=v("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Jn(r)),A.init(e,r)}),Ri=v("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=En),A.init(e,r)}),Vi=v("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Rn),A.init(e,r),e._zod.bag.format="ipv4"}),Li=v("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Vn),A.init(e,r),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!r.abort})}}}),Fi=v("$ZodMAC",(e,r)=>{r.pattern??(r.pattern=Ln(r.delimiter)),A.init(e,r),e._zod.bag.format="mac"}),Bi=v("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Fn),A.init(e,r)}),Mi=v("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Bn),A.init(e,r),e._zod.check=o=>{let i=o.value.split("/");try{if(i.length!==2)throw new Error;let[t,a]=i;if(!a)throw new Error;let c=Number(a);if(`${c}`!==a)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${t}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!r.abort})}}});function qi(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}s(qi,"isValidBase64");var Gi=v("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Mn),A.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{qi(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!r.abort})}});function eu(e){if(!sr.test(e))return!1;let r=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return qi(o)}s(eu,"isValidBase64URL");var Ji=v("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=sr),A.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{eu(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!r.abort})}}),Wi=v("$ZodE164",(e,r)=>{r.pattern??(r.pattern=qn),A.init(e,r)});function tu(e,r=null){try{let o=e.split(".");if(o.length!==3)return!1;let[i]=o;if(!i)return!1;let t=JSON.parse(atob(i));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}s(tu,"isValidJWT");var Ki=v("$ZodJWT",(e,r)=>{A.init(e,r),e._zod.check=o=>{tu(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!r.abort})}}),Xi=v("$ZodCustomStringFormat",(e,r)=>{A.init(e,r),e._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:e,continue:!r.abort})}}),fr=v("$ZodNumber",(e,r)=>{C.init(e,r),e._zod.pattern=e._zod.bag.pattern??Qn,e._zod.parse=(o,i)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}let t=o.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return o;let a=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...a?{received:a}:{}}),o}}),Hi=v("$ZodNumberFormat",(e,r)=>{oi.init(e,r),fr.init(e,r)}),dt=v("$ZodBoolean",(e,r)=>{C.init(e,r),e._zod.pattern=Yn,e._zod.parse=(o,i)=>{if(r.coerce)try{o.value=!!o.value}catch{}let t=o.value;return typeof t=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),o}}),vr=v("$ZodBigInt",(e,r)=>{C.init(e,r),e._zod.pattern=Xn,e._zod.parse=(o,i)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),Qi=v("$ZodBigIntFormat",(e,r)=>{ai.init(e,r),vr.init(e,r)}),Yi=v("$ZodSymbol",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;return typeof t=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),o}}),eo=v("$ZodUndefined",(e,r)=>{C.init(e,r),e._zod.pattern=ti,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(o,i)=>{let t=o.value;return typeof t>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),o}}),to=v("$ZodNull",(e,r)=>{C.init(e,r),e._zod.pattern=ei,e._zod.values=new Set([null]),e._zod.parse=(o,i)=>{let t=o.value;return t===null||o.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),o}}),ro=v("$ZodAny",(e,r)=>{C.init(e,r),e._zod.parse=o=>o}),no=v("$ZodUnknown",(e,r)=>{C.init(e,r),e._zod.parse=o=>o}),io=v("$ZodNever",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),oo=v("$ZodVoid",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;return typeof t>"u"||o.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),o}}),ao=v("$ZodDate",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}let t=o.value,a=t instanceof Date;return a&&!Number.isNaN(t.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:t,...a?{received:"Invalid Date"}:{},inst:e}),o}});function Mc(e,r,o){e.issues.length&&r.issues.push(...Q(o,e.issues)),r.value[o]=e.value}s(Mc,"handleArrayResult");var so=v("$ZodArray",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;if(!Array.isArray(t))return o.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),o;o.value=Array(t.length);let a=[];for(let c=0;c<t.length;c++){let f=t[c],l=r.element._zod.run({value:f,issues:[]},i);l instanceof Promise?a.push(l.then(g=>Mc(g,o,c))):Mc(l,o,c)}return a.length?Promise.all(a).then(()=>o):o}});function gr(e,r,o,i){e.issues.length&&r.issues.push(...Q(o,e.issues)),e.value===void 0?o in i&&(r.value[o]=void 0):r.value[o]=e.value}s(gr,"handlePropertyResult");function ru(e){let r=Object.keys(e.shape);for(let i of r)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let o=_n(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}s(ru,"normalizeDef");function nu(e,r,o,i,t,a){let c=[],f=t.keySet,l=t.catchall._zod,g=l.def.type;for(let h in r){if(f.has(h))continue;if(g==="never"){c.push(h);continue}let p=l.run({value:r[h],issues:[]},i);p instanceof Promise?e.push(p.then(I=>gr(I,o,h,r))):gr(p,o,h,r)}return c.length&&o.issues.push({code:"unrecognized_keys",keys:c,input:r,inst:a}),e.length?Promise.all(e).then(()=>o):o}s(nu,"handleCatchall");var iu=v("$ZodObject",(e,r)=>{if(C.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let f=r.shape;Object.defineProperty(r,"shape",{get:s(()=>{let l={...f};return Object.defineProperty(r,"shape",{value:l}),l},"get")})}let i=Ee(()=>ru(r));U(e._zod,"propValues",()=>{let f=r.shape,l={};for(let g in f){let h=f[g]._zod;if(h.values){l[g]??(l[g]=new Set);for(let p of h.values)l[g].add(p)}}return l});let t=Se,a=r.catchall,c;e._zod.parse=(f,l)=>{c??(c=i.value);let g=f.value;if(!t(g))return f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f;f.value={};let h=[],p=c.shape;for(let I of c.keys){let d=p[I]._zod.run({value:g[I],issues:[]},l);d instanceof Promise?h.push(d.then(u=>gr(u,f,I,g))):gr(d,f,I,g)}return a?nu(h,g,f,l,i.value,e):h.length?Promise.all(h).then(()=>f):f}}),co=v("$ZodObjectJIT",(e,r)=>{iu.init(e,r);let o=e._zod.parse,i=Ee(()=>ru(r)),t=s(I=>{let _=new lt(["shape","payload","ctx"]),d=i.value,u=s(S=>{let z=Kt(S);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`},"parseStr");_.write("const input = payload.value;");let m=Object.create(null),y=0;for(let S of d.keys)m[S]=`key_${y++}`;_.write("const newResult = {};");for(let S of d.keys){let z=m[S],j=Kt(S);_.write(`const ${z} = ${u(S)};`),_.write(`
|
|
5
|
+
if (${z}.issues.length) {
|
|
6
|
+
payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
|
|
7
7
|
...iss,
|
|
8
|
-
path: iss.path ? [${
|
|
8
|
+
path: iss.path ? [${j}, ...iss.path] : [${j}]
|
|
9
9
|
})));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
if (${
|
|
14
|
-
if (${
|
|
15
|
-
newResult[${
|
|
13
|
+
if (${z}.value === undefined) {
|
|
14
|
+
if (${j} in input) {
|
|
15
|
+
newResult[${j}] = undefined;
|
|
16
16
|
}
|
|
17
17
|
} else {
|
|
18
|
-
newResult[${
|
|
18
|
+
newResult[${j}] = ${z}.value;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
`)}c.write("payload.value = newResult;"),c.write("return payload;");let I=c.compile();return(S,C)=>I(p,S,C)},"generateFastpass"),o,u=be,l=!Me.jitless,g=l&&cn.value,m=r.catchall,y;e._zod.parse=(p,c)=>{y??(y=n.value);let d=p.value;return u(d)?l&&g&&c?.async===!1&&c.jitless!==!0?(o||(o=t(r.shape)),p=o(p,c),m?Mu([],d,p,c,y,e):p):i(p,c):(p.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),p)}});function Uu(e,r,i,n){for(let o of e)if(o.issues.length===0)return r.value=o.value,r;let t=e.filter(o=>!he(o));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:i,errors:e.map(o=>o.issues.map(u=>K(u,n,T())))}),r)}s(Uu,"handleUnionResults");var ur=h("$ZodUnion",(e,r)=>{z.init(e,r),N(e._zod,"optin",()=>r.options.some(t=>t._zod.optin==="optional")?"optional":void 0),N(e._zod,"optout",()=>r.options.some(t=>t._zod.optout==="optional")?"optional":void 0),N(e._zod,"values",()=>{if(r.options.every(t=>t._zod.values))return new Set(r.options.flatMap(t=>Array.from(t._zod.values)))}),N(e._zod,"pattern",()=>{if(r.options.every(t=>t._zod.pattern)){let t=r.options.map(o=>o._zod.pattern);return new RegExp(`^(${t.map(o=>Ge(o.source)).join("|")})$`)}});let i=r.options.length===1,n=r.options[0]._zod.run;e._zod.parse=(t,o)=>{if(i)return n(t,o);let u=!1,l=[];for(let f of r.options){let g=f._zod.run({value:t.value,issues:[]},o);if(g instanceof Promise)l.push(g),u=!0;else{if(g.issues.length===0)return g;l.push(g)}}return u?Promise.all(l).then(f=>Uu(f,t,e,o)):Uu(l,t,e,o)}}),eo=h("$ZodDiscriminatedUnion",(e,r)=>{ur.init(e,r);let i=e._zod.parse;N(e._zod,"propValues",()=>{let t={};for(let o of r.options){let u=o._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(o)}"`);for(let[l,f]of Object.entries(u)){t[l]||(t[l]=new Set);for(let g of f)t[l].add(g)}}return t});let n=ze(()=>{let t=r.options,o=new Map;for(let u of t){let l=u._zod.propValues?.[r.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(u)}"`);for(let f of l){if(o.has(f))throw new Error(`Duplicate discriminator value "${String(f)}"`);o.set(f,u)}}return o});e._zod.parse=(t,o)=>{let u=t.value;if(!be(u))return t.issues.push({code:"invalid_type",expected:"object",input:u,inst:e}),t;let l=n.value.get(u?.[r.discriminator]);return l?l._zod.run(t,o):r.unionFallback?i(t,o):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:u,path:[r.discriminator],inst:e}),t)}}),to=h("$ZodIntersection",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>{let t=i.value,o=r.left._zod.run({value:t,issues:[]},n),u=r.right._zod.run({value:t,issues:[]},n);return o instanceof Promise||u instanceof Promise?Promise.all([o,u]).then(([f,g])=>Du(i,f,g)):Du(i,o,u)}});function gi(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(ve(e)&&ve(r)){let i=Object.keys(r),n=Object.keys(e).filter(o=>i.indexOf(o)!==-1),t={...e,...r};for(let o of n){let u=gi(e[o],r[o]);if(!u.valid)return{valid:!1,mergeErrorPath:[o,...u.mergeErrorPath]};t[o]=u.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let i=[];for(let n=0;n<e.length;n++){let t=e[n],o=r[n],u=gi(t,o);if(!u.valid)return{valid:!1,mergeErrorPath:[n,...u.mergeErrorPath]};i.push(u.data)}return{valid:!0,data:i}}return{valid:!1,mergeErrorPath:[]}}s(gi,"mergeValues");function Du(e,r,i){if(r.issues.length&&e.issues.push(...r.issues),i.issues.length&&e.issues.push(...i.issues),he(e))return e;let n=gi(r.value,i.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}s(Du,"handleIntersectionResults");var cr=h("$ZodTuple",(e,r)=>{z.init(e,r);let i=r.items;e._zod.parse=(n,t)=>{let o=n.value;if(!Array.isArray(o))return n.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let u=[],l=[...i].reverse().findIndex(m=>m._zod.optin!=="optional"),f=l===-1?0:i.length-l;if(!r.rest){let m=o.length>i.length,y=o.length<f-1;if(m||y)return n.issues.push({...m?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},input:o,inst:e,origin:"array"}),n}let g=-1;for(let m of i){if(g++,g>=o.length&&g>=f)continue;let y=m._zod.run({value:o[g],issues:[]},t);y instanceof Promise?u.push(y.then(p=>tr(p,n,g))):tr(y,n,g)}if(r.rest){let m=o.slice(i.length);for(let y of m){g++;let p=r.rest._zod.run({value:y,issues:[]},t);p instanceof Promise?u.push(p.then(c=>tr(c,n,g))):tr(p,n,g)}}return u.length?Promise.all(u).then(()=>n):n}});function tr(e,r,i){e.issues.length&&r.issues.push(...W(i,e.issues)),r.value[i]=e.value}s(tr,"handleTupleResult");var ro=h("$ZodRecord",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>{let t=i.value;if(!ve(t))return i.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),i;let o=[],u=r.keyType._zod.values;if(u){i.value={};let l=new Set;for(let g of u)if(typeof g=="string"||typeof g=="number"||typeof g=="symbol"){l.add(typeof g=="number"?g.toString():g);let m=r.valueType._zod.run({value:t[g],issues:[]},n);m instanceof Promise?o.push(m.then(y=>{y.issues.length&&i.issues.push(...W(g,y.issues)),i.value[g]=y.value})):(m.issues.length&&i.issues.push(...W(g,m.issues)),i.value[g]=m.value)}let f;for(let g in t)l.has(g)||(f=f??[],f.push(g));f&&f.length>0&&i.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:f})}else{i.value={};for(let l of Reflect.ownKeys(t)){if(l==="__proto__")continue;let f=r.keyType._zod.run({value:l,issues:[]},n);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(f.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(m=>K(m,n,T())),input:l,path:[l],inst:e}),i.value[f.value]=f.value;continue}let g=r.valueType._zod.run({value:t[l],issues:[]},n);g instanceof Promise?o.push(g.then(m=>{m.issues.length&&i.issues.push(...W(l,m.issues)),i.value[f.value]=m.value})):(g.issues.length&&i.issues.push(...W(l,g.issues)),i.value[f.value]=g.value)}}return o.length?Promise.all(o).then(()=>i):i}}),no=h("$ZodMap",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>{let t=i.value;if(!(t instanceof Map))return i.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),i;let o=[];i.value=new Map;for(let[u,l]of t){let f=r.keyType._zod.run({value:u,issues:[]},n),g=r.valueType._zod.run({value:l,issues:[]},n);f instanceof Promise||g instanceof Promise?o.push(Promise.all([f,g]).then(([m,y])=>{Ou(m,y,i,u,t,e,n)})):Ou(f,g,i,u,t,e,n)}return o.length?Promise.all(o).then(()=>i):i}});function Ou(e,r,i,n,t,o,u){e.issues.length&&(We.has(typeof n)?i.issues.push(...W(n,e.issues)):i.issues.push({code:"invalid_key",origin:"map",input:t,inst:o,issues:e.issues.map(l=>K(l,u,T()))})),r.issues.length&&(We.has(typeof n)?i.issues.push(...W(n,r.issues)):i.issues.push({origin:"map",code:"invalid_element",input:t,inst:o,key:n,issues:r.issues.map(l=>K(l,u,T()))})),i.value.set(e.value,r.value)}s(Ou,"handleMapResult");var io=h("$ZodSet",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>{let t=i.value;if(!(t instanceof Set))return i.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),i;let o=[];i.value=new Set;for(let u of t){let l=r.valueType._zod.run({value:u,issues:[]},n);l instanceof Promise?o.push(l.then(f=>Eu(f,i))):Eu(l,i)}return o.length?Promise.all(o).then(()=>i):i}});function Eu(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}s(Eu,"handleSetResult");var oo=h("$ZodEnum",(e,r)=>{z.init(e,r);let i=Je(r.entries),n=new Set(i);e._zod.values=n,e._zod.pattern=new RegExp(`^(${i.filter(t=>We.has(typeof t)).map(t=>typeof t=="string"?H(t):t.toString()).join("|")})$`),e._zod.parse=(t,o)=>{let u=t.value;return n.has(u)||t.issues.push({code:"invalid_value",values:i,input:u,inst:e}),t}}),ao=h("$ZodLiteral",(e,r)=>{if(z.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let i=new Set(r.values);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.values.map(n=>typeof n=="string"?H(n):n?H(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,t)=>{let o=n.value;return i.has(o)||n.issues.push({code:"invalid_value",values:r.values,input:o,inst:e}),n}}),so=h("$ZodFile",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>{let t=i.value;return t instanceof File||i.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),i}}),uo=h("$ZodTransform",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>{if(n.direction==="backward")throw new pe(e.constructor.name);let t=r.transform(i.value,i);if(n.async)return(t instanceof Promise?t:Promise.resolve(t)).then(u=>(i.value=u,i));if(t instanceof Promise)throw new te;return i.value=t,i}});function Au(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}s(Au,"handleOptionalResult");var co=h("$ZodOptional",(e,r)=>{z.init(e,r),e._zod.optin="optional",e._zod.optout="optional",N(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),N(e._zod,"pattern",()=>{let i=r.innerType._zod.pattern;return i?new RegExp(`^(${Ge(i.source)})?$`):void 0}),e._zod.parse=(i,n)=>{if(r.innerType._zod.optin==="optional"){let t=r.innerType._zod.run(i,n);return t instanceof Promise?t.then(o=>Au(o,i.value)):Au(t,i.value)}return i.value===void 0?i:r.innerType._zod.run(i,n)}}),lo=h("$ZodNullable",(e,r)=>{z.init(e,r),N(e._zod,"optin",()=>r.innerType._zod.optin),N(e._zod,"optout",()=>r.innerType._zod.optout),N(e._zod,"pattern",()=>{let i=r.innerType._zod.pattern;return i?new RegExp(`^(${Ge(i.source)}|null)$`):void 0}),N(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(i,n)=>i.value===null?i:r.innerType._zod.run(i,n)}),po=h("$ZodDefault",(e,r)=>{z.init(e,r),e._zod.optin="optional",N(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(i,n)=>{if(n.direction==="backward")return r.innerType._zod.run(i,n);if(i.value===void 0)return i.value=r.defaultValue,i;let t=r.innerType._zod.run(i,n);return t instanceof Promise?t.then(o=>Tu(o,r)):Tu(t,r)}});function Tu(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}s(Tu,"handleDefaultResult");var mo=h("$ZodPrefault",(e,r)=>{z.init(e,r),e._zod.optin="optional",N(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(i,n)=>(n.direction==="backward"||i.value===void 0&&(i.value=r.defaultValue),r.innerType._zod.run(i,n))}),fo=h("$ZodNonOptional",(e,r)=>{z.init(e,r),N(e._zod,"values",()=>{let i=r.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),e._zod.parse=(i,n)=>{let t=r.innerType._zod.run(i,n);return t instanceof Promise?t.then(o=>Zu(o,e)):Zu(t,e)}});function Zu(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}s(Zu,"handleNonOptionalResult");var go=h("$ZodSuccess",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>{if(n.direction==="backward")throw new pe("ZodSuccess");let t=r.innerType._zod.run(i,n);return t instanceof Promise?t.then(o=>(i.value=o.issues.length===0,i)):(i.value=t.issues.length===0,i)}}),vo=h("$ZodCatch",(e,r)=>{z.init(e,r),N(e._zod,"optin",()=>r.innerType._zod.optin),N(e._zod,"optout",()=>r.innerType._zod.optout),N(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(i,n)=>{if(n.direction==="backward")return r.innerType._zod.run(i,n);let t=r.innerType._zod.run(i,n);return t instanceof Promise?t.then(o=>(i.value=o.value,o.issues.length&&(i.value=r.catchValue({...i,error:{issues:o.issues.map(u=>K(u,n,T()))},input:i.value}),i.issues=[]),i)):(i.value=t.value,t.issues.length&&(i.value=r.catchValue({...i,error:{issues:t.issues.map(o=>K(o,n,T()))},input:i.value}),i.issues=[]),i)}}),ho=h("$ZodNaN",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>((typeof i.value!="number"||!Number.isNaN(i.value))&&i.issues.push({input:i.value,inst:e,expected:"nan",code:"invalid_type"}),i)}),yo=h("$ZodPipe",(e,r)=>{z.init(e,r),N(e._zod,"values",()=>r.in._zod.values),N(e._zod,"optin",()=>r.in._zod.optin),N(e._zod,"optout",()=>r.out._zod.optout),N(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(i,n)=>{if(n.direction==="backward"){let o=r.out._zod.run(i,n);return o instanceof Promise?o.then(u=>rr(u,r.in,n)):rr(o,r.in,n)}let t=r.in._zod.run(i,n);return t instanceof Promise?t.then(o=>rr(o,r.out,n)):rr(t,r.out,n)}});function rr(e,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},i)}s(rr,"handlePipeResult");var it=h("$ZodCodec",(e,r)=>{z.init(e,r),N(e._zod,"values",()=>r.in._zod.values),N(e._zod,"optin",()=>r.in._zod.optin),N(e._zod,"optout",()=>r.out._zod.optout),N(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(i,n)=>{if((n.direction||"forward")==="forward"){let o=r.in._zod.run(i,n);return o instanceof Promise?o.then(u=>nr(u,r,n)):nr(o,r,n)}else{let o=r.out._zod.run(i,n);return o instanceof Promise?o.then(u=>nr(u,r,n)):nr(o,r,n)}}});function nr(e,r,i){if(e.issues.length)return e.aborted=!0,e;if((i.direction||"forward")==="forward"){let t=r.transform(e.value,e);return t instanceof Promise?t.then(o=>ir(e,o,r.out,i)):ir(e,t,r.out,i)}else{let t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(o=>ir(e,o,r.in,i)):ir(e,t,r.in,i)}}s(nr,"handleCodecAResult");function ir(e,r,i,n){return e.issues.length?(e.aborted=!0,e):i._zod.run({value:r,issues:e.issues},n)}s(ir,"handleCodecTxResult");var bo=h("$ZodReadonly",(e,r)=>{z.init(e,r),N(e._zod,"propValues",()=>r.innerType._zod.propValues),N(e._zod,"values",()=>r.innerType._zod.values),N(e._zod,"optin",()=>r.innerType?._zod?.optin),N(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(i,n)=>{if(n.direction==="backward")return r.innerType._zod.run(i,n);let t=r.innerType._zod.run(i,n);return t instanceof Promise?t.then(Vu):Vu(t)}});function Vu(e){return e.value=Object.freeze(e.value),e}s(Vu,"handleReadonlyResult");var $o=h("$ZodTemplateLiteral",(e,r)=>{z.init(e,r);let i=[];for(let n of r.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let t=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let o=t.startsWith("^")?1:0,u=t.endsWith("$")?t.length-1:t.length;i.push(t.slice(o,u))}else if(n===null||dn.has(typeof n))i.push(H(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${i.join("")}$`),e._zod.parse=(n,t)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"template_literal",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),n)}),_o=h("$ZodFunction",(e,r)=>(z.init(e,r),e._def=r,e._zod.def=r,e.implement=i=>{if(typeof i!="function")throw new Error("implement() must be called with a function");return function(...n){let t=e._def.input?Ft(e._def.input,n):n,o=Reflect.apply(i,this,t);return e._def.output?Ft(e._def.output,o):o}},e.implementAsync=i=>{if(typeof i!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let t=e._def.input?await Bt(e._def.input,n):n,o=await Reflect.apply(i,this,t);return e._def.output?await Bt(e._def.output,o):o}},e._zod.parse=(i,n)=>typeof i.value!="function"?(i.issues.push({code:"invalid_type",expected:"function",input:i.value,inst:e}),i):(e._def.output&&e._def.output._zod.def.type==="promise"?i.value=e.implementAsync(i.value):i.value=e.implement(i.value),i),e.input=(...i)=>{let n=e.constructor;return Array.isArray(i[0])?new n({type:"function",input:new cr({type:"tuple",items:i[0],rest:i[1]}),output:e._def.output}):new n({type:"function",input:i[0],output:e._def.output})},e.output=i=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:i})},e)),ko=h("$ZodPromise",(e,r)=>{z.init(e,r),e._zod.parse=(i,n)=>Promise.resolve(i.value).then(t=>r.innerType._zod.run({value:t,issues:[]},n))}),xo=h("$ZodLazy",(e,r)=>{z.init(e,r),N(e._zod,"innerType",()=>r.getter()),N(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),N(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),N(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),N(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(i,n)=>e._zod.innerType._zod.run(i,n)}),wo=h("$ZodCustom",(e,r)=>{D.init(e,r),z.init(e,r),e._zod.parse=(i,n)=>i,e._zod.check=i=>{let n=i.value,t=r.fn(n);if(t instanceof Promise)return t.then(o=>Ru(o,i,n,e));Ru(t,i,n,e)}});function Ru(e,r,i,n){if(!e){let t={code:"custom",input:i,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(t.params=n._zod.def.params),r.issues.push(je(t))}}s(Ru,"handleRefineResult");var lt={};de(lt,{ar:()=>Io,az:()=>So,be:()=>zo,bg:()=>jo,ca:()=>Po,cs:()=>Co,da:()=>No,de:()=>Uo,en:()=>ot,eo:()=>Do,es:()=>Oo,fa:()=>Eo,fi:()=>Ao,fr:()=>To,frCA:()=>Zo,he:()=>Vo,hu:()=>Ro,id:()=>Lo,is:()=>Fo,it:()=>Bo,ja:()=>Mo,ka:()=>qo,kh:()=>Jo,km:()=>at,ko:()=>Go,lt:()=>Wo,mk:()=>Ko,ms:()=>Xo,nl:()=>Ho,no:()=>Qo,ota:()=>Yo,pl:()=>ta,ps:()=>ea,pt:()=>ra,ru:()=>na,sl:()=>ia,sv:()=>oa,ta:()=>aa,th:()=>sa,tr:()=>ua,ua:()=>ca,uk:()=>ct,ur:()=>la,vi:()=>da,yo:()=>fa,zhCN:()=>pa,zhTW:()=>ma});var Nd=s(()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return t=>{switch(t.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${i(t.input)}`;case"invalid_value":return t.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${_(t.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${t.maximum.toString()} ${u.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${t.minimum.toString()} ${u.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${t.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${n[o.format]??t.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${b(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Io(){return{localeError:Nd()}}s(Io,"default");var Ud=s(()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${t.expected}, daxil olan ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${_(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${o}${t.maximum.toString()} ${u.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${o}${t.minimum.toString()} ${u.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[o.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${b(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function So(){return{localeError:Ud()}}s(So,"default");function Ju(e,r,i,n){let t=Math.abs(e),o=t%10,u=t%100;return u>=11&&u<=19?n:o===1?r:o>=2&&o<=4?i:n}s(Ju,"getBelarusianPlural");var Dd=s(()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(t))return"\u043C\u0430\u0441\u0456\u045E";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return t=>{switch(t.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${i(t.input)}`;case"invalid_value":return t.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${_(t.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);if(u){let l=Number(t.maximum),f=Ju(l,u.unit.one,u.unit.few,u.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${u.verb} ${o}${t.maximum.toString()} ${f}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);if(u){let l=Number(t.minimum),f=Ju(l,u.unit.one,u.unit.few,u.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${u.verb} ${o}${t.minimum.toString()} ${f}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[o.format]??t.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${b(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function zo(){return{localeError:Dd()}}s(zo,"default");var Od=s(e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(e))return"\u043C\u0430\u0441\u0438\u0432";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},"parsedType"),Ed=s(()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(n){return e[n]??null}s(r,"getSizing");let i={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"};return n=>{switch(n.code){case"invalid_type":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${Od(n.input)}`;case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${_(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${b(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",o=r(n.origin);return o?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${t}${n.maximum.toString()} ${o.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",o=r(n.origin);return o?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${t}${n.minimum.toString()} ${o.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${t}${n.minimum.toString()}`}case"invalid_format":{let t=n;if(t.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${t.prefix}"`;if(t.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${t.suffix}"`;if(t.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${t.includes}"`;if(t.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${t.pattern}`;let o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return t.format==="emoji"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),t.format==="datetime"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),t.format==="date"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),t.format==="time"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),t.format==="duration"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${o} ${i[t.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${b(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function jo(){return{localeError:Ed()}}s(jo,"default");var Ad=s(()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${t.expected}, s'ha rebut ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${_(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${b(t.values," o ")}`;case"too_big":{let o=t.inclusive?"com a m\xE0xim":"menys de",u=r(t.origin);return u?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${o} ${t.maximum.toString()} ${u.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?"com a m\xEDnim":"m\xE9s de",u=r(t.origin);return u?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${o} ${t.minimum.toString()} ${u.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${n[o.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function Po(){return{localeError:Ad()}}s(Po,"default");var Td=s(()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(t))return"pole";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return t=>{switch(t.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${t.expected}, obdr\u017Eeno ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${_(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${o}${t.maximum.toString()} ${u.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${o}${t.minimum.toString()} ${u.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${b(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function Co(){return{localeError:Td()}}s(Co,"default");var Zd=s(()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},r={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};function i(u){return e[u]??null}s(i,"getSizing");function n(u){return r[u]??u}s(n,"getTypeName");let t=s(u=>{let l=typeof u;switch(l){case"number":return Number.isNaN(u)?"NaN":"tal";case"object":return Array.isArray(u)?"liste":u===null?"null":Object.getPrototypeOf(u)!==Object.prototype&&u.constructor?u.constructor.name:"objekt"}return l},"parsedType"),o={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\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return u=>{switch(u.code){case"invalid_type":return`Ugyldigt input: forventede ${n(u.expected)}, fik ${n(t(u.input))}`;case"invalid_value":return u.values.length===1?`Ugyldig v\xE6rdi: forventede ${_(u.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${b(u.values,"|")}`;case"too_big":{let l=u.inclusive?"<=":"<",f=i(u.origin),g=n(u.origin);return f?`For stor: forventede ${g??"value"} ${f.verb} ${l} ${u.maximum.toString()} ${f.unit??"elementer"}`:`For stor: forventede ${g??"value"} havde ${l} ${u.maximum.toString()}`}case"too_small":{let l=u.inclusive?">=":">",f=i(u.origin),g=n(u.origin);return f?`For lille: forventede ${g} ${f.verb} ${l} ${u.minimum.toString()} ${f.unit}`:`For lille: forventede ${g} havde ${l} ${u.minimum.toString()}`}case"invalid_format":{let l=u;return l.format==="starts_with"?`Ugyldig streng: skal starte med "${l.prefix}"`:l.format==="ends_with"?`Ugyldig streng: skal ende med "${l.suffix}"`:l.format==="includes"?`Ugyldig streng: skal indeholde "${l.includes}"`:l.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${l.pattern}`:`Ugyldig ${o[l.format]??u.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${b(u.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${u.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${u.origin}`;default:return"Ugyldigt input"}}},"error");function No(){return{localeError:Zd()}}s(No,"default");var Vd=s(()=>{let 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 r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"Zahl";case"object":{if(Array.isArray(t))return"Array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return t=>{switch(t.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${t.expected}, erhalten ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${_(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${o}${t.maximum.toString()} ${u.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${o}${t.maximum.toString()} ist`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Zu klein: erwartet, dass ${t.origin} ${o}${t.minimum.toString()} ${u.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${o}${t.minimum.toString()} ist`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${n[o.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${b(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function Uo(){return{localeError:Vd()}}s(Uo,"default");var Rd=s(e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},"parsedType"),Ld=s(()=>{let 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"}};function r(n){return e[n]??null}s(r,"getSizing");let i={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"};return n=>{switch(n.code){case"invalid_type":return`Invalid input: expected ${n.expected}, received ${Rd(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${_(n.values[0])}`:`Invalid option: expected one of ${b(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",o=r(n.origin);return o?`Too big: expected ${n.origin??"value"} to have ${t}${n.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",o=r(n.origin);return o?`Too small: expected ${n.origin} to have ${t}${n.minimum.toString()} ${o.unit}`:`Too small: expected ${n.origin} to be ${t}${n.minimum.toString()}`}case"invalid_format":{let t=n;return t.format==="starts_with"?`Invalid string: must start with "${t.prefix}"`:t.format==="ends_with"?`Invalid string: must end with "${t.suffix}"`:t.format==="includes"?`Invalid string: must include "${t.includes}"`:t.format==="regex"?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${i[t.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":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}},"error");function ot(){return{localeError:Ld()}}s(ot,"default");var Fd=s(e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},"parsedType"),Bd=s(()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(n){return e[n]??null}s(r,"getSizing");let i={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return n=>{switch(n.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${n.expected}, ricevi\u011Dis ${Fd(n.input)}`;case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${_(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${b(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",o=r(n.origin);return o?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${t}${n.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",o=r(n.origin);return o?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${t}${n.minimum.toString()} ${o.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${t}${n.minimum.toString()}`}case"invalid_format":{let t=n;return t.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${t.prefix}"`:t.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${t.suffix}"`:t.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${i[t.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":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${b(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}},"error");function Do(){return{localeError:Bd()}}s(Do,"default");var Md=s(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},r={string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};function i(u){return e[u]??null}s(i,"getSizing");function n(u){return r[u]??u}s(n,"getTypeName");let t=s(u=>{let l=typeof u;switch(l){case"number":return Number.isNaN(u)?"NaN":"number";case"object":return Array.isArray(u)?"array":u===null?"null":Object.getPrototypeOf(u)!==Object.prototype?u.constructor.name:"object"}return l},"parsedType"),o={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return u=>{switch(u.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${n(u.expected)}, recibido ${n(t(u.input))}`;case"invalid_value":return u.values.length===1?`Entrada inv\xE1lida: se esperaba ${_(u.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${b(u.values,"|")}`;case"too_big":{let l=u.inclusive?"<=":"<",f=i(u.origin),g=n(u.origin);return f?`Demasiado grande: se esperaba que ${g??"valor"} tuviera ${l}${u.maximum.toString()} ${f.unit??"elementos"}`:`Demasiado grande: se esperaba que ${g??"valor"} fuera ${l}${u.maximum.toString()}`}case"too_small":{let l=u.inclusive?">=":">",f=i(u.origin),g=n(u.origin);return f?`Demasiado peque\xF1o: se esperaba que ${g} tuviera ${l}${u.minimum.toString()} ${f.unit}`:`Demasiado peque\xF1o: se esperaba que ${g} fuera ${l}${u.minimum.toString()}`}case"invalid_format":{let l=u;return l.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${l.prefix}"`:l.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${l.suffix}"`:l.format==="includes"?`Cadena inv\xE1lida: debe incluir "${l.includes}"`:l.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${l.pattern}`:`Inv\xE1lido ${o[l.format]??u.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${u.divisor}`;case"unrecognized_keys":return`Llave${u.keys.length>1?"s":""} desconocida${u.keys.length>1?"s":""}: ${b(u.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n(u.origin)}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n(u.origin)}`;default:return"Entrada inv\xE1lida"}}},"error");function Oo(){return{localeError:Md()}}s(Oo,"default");var qd=s(()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(t))return"\u0622\u0631\u0627\u06CC\u0647";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return t=>{switch(t.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${i(t.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${_(t.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${b(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} ${u.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} ${u.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[o.format]??t.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${b(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function Eo(){return{localeError:qd()}}s(Eo,"default");var Jd=s(()=>{let e={string:{unit:"merkki\xE4",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\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return t=>{switch(t.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${t.expected}, oli ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${_(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Liian suuri: ${u.subject} t\xE4ytyy olla ${o}${t.maximum.toString()} ${u.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Liian pieni: ${u.subject} t\xE4ytyy olla ${o}${t.minimum.toString()} ${u.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${b(t.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\xF6te"}}},"error");function Ao(){return{localeError:Jd()}}s(Ao,"default");var Gd=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"nombre";case"object":{if(Array.isArray(t))return"tableau";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return t=>{switch(t.code){case"invalid_type":return`Entr\xE9e invalide : ${t.expected} attendu, ${i(t.input)} re\xE7u`;case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${_(t.values[0])} attendu`:`Option invalide : une valeur parmi ${b(t.values,"|")} attendue`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Trop grand : ${t.origin??"valeur"} doit ${u.verb} ${o}${t.maximum.toString()} ${u.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${t.origin??"valeur"} doit \xEAtre ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Trop petit : ${t.origin} doit ${u.verb} ${o}${t.minimum.toString()} ${u.unit}`:`Trop petit : ${t.origin} doit \xEAtre ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${n[o.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${b(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}},"error");function To(){return{localeError:Gd()}}s(To,"default");var Wd=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return t=>{switch(t.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${t.expected}, re\xE7u ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${_(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"\u2264":"<",u=r(t.origin);return u?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${o}${t.maximum.toString()} ${u.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?"\u2265":">",u=r(t.origin);return u?`Trop petit : attendu que ${t.origin} ait ${o}${t.minimum.toString()} ${u.unit}`:`Trop petit : attendu que ${t.origin} soit ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${b(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}},"error");function Zo(){return{localeError:Wd()}}s(Zo,"default");var Kd=s(()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},i=s(g=>g?e[g]:void 0,"typeEntry"),n=s(g=>{let m=i(g);return m?m.label:g??e.unknown.label},"typeLabel"),t=s(g=>`\u05D4${n(g)}`,"withDefinite"),o=s(g=>(i(g)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),u=s(g=>g?r[g]??null:null,"getSizing"),l=s(g=>{let m=typeof g;switch(m){case"number":return Number.isNaN(g)?"NaN":"number";case"object":return Array.isArray(g)?"array":g===null?"null":Object.getPrototypeOf(g)!==Object.prototype&&g.constructor?g.constructor.name:"object";default:return m}},"parsedType"),f={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",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:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}};return g=>{switch(g.code){case"invalid_type":{let m=g.expected,y=n(m),p=l(g.input),c=e[p]?.label??p;return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}, \u05D4\u05EA\u05E7\u05D1\u05DC ${c}`}case"invalid_value":{if(g.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${_(g.values[0])}`;let m=g.values.map(c=>_(c));if(g.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${m[0]} \u05D0\u05D5 ${m[1]}`;let y=m[m.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${m.slice(0,-1).join(", ")} \u05D0\u05D5 ${y}`}case"too_big":{let m=u(g.origin),y=t(g.origin??"value");if(g.origin==="string")return`${m?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${g.maximum.toString()} ${m?.unit??""} ${g.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(g.origin==="number"){let d=g.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${g.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${g.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}`}if(g.origin==="array"||g.origin==="set"){let d=g.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",v=g.inclusive?`${g.maximum} ${m?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${g.maximum} ${m?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${y} ${d} \u05DC\u05D4\u05DB\u05D9\u05DC ${v}`.trim()}let p=g.inclusive?"<=":"<",c=o(g.origin??"value");return m?.unit?`${m.longLabel} \u05DE\u05D3\u05D9: ${y} ${c} ${p}${g.maximum.toString()} ${m.unit}`:`${m?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${y} ${c} ${p}${g.maximum.toString()}`}case"too_small":{let m=u(g.origin),y=t(g.origin??"value");if(g.origin==="string")return`${m?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${g.minimum.toString()} ${m?.unit??""} ${g.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(g.origin==="number"){let d=g.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${g.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${g.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}`}if(g.origin==="array"||g.origin==="set"){let d=g.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(g.minimum===1&&g.inclusive){let $=(g.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} ${d} \u05DC\u05D4\u05DB\u05D9\u05DC ${$}`}let v=g.inclusive?`${g.minimum} ${m?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${g.minimum} ${m?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} ${d} \u05DC\u05D4\u05DB\u05D9\u05DC ${v}`.trim()}let p=g.inclusive?">=":">",c=o(g.origin??"value");return m?.unit?`${m.shortLabel} \u05DE\u05D3\u05D9: ${y} ${c} ${p}${g.minimum.toString()} ${m.unit}`:`${m?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${y} ${c} ${p}${g.minimum.toString()}`}case"invalid_format":{let m=g;if(m.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${m.prefix}"`;if(m.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${m.suffix}"`;if(m.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${m.includes}"`;if(m.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${m.pattern}`;let y=f[m.format],p=y?.label??m.format,d=(y?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${d}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${g.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${g.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${g.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${b(g.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t(g.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function Vo(){return{localeError:Kd()}}s(Vo,"default");var Xd=s(()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(t))return"t\xF6mb";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return t=>{switch(t.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${t.expected}, a kapott \xE9rt\xE9k ${i(t.input)}`;case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${_(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${t.maximum.toString()} ${u.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${o}${t.minimum.toString()} ${u.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[o.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function Ro(){return{localeError:Xd()}}s(Ro,"default");var Hd=s(()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak valid: diharapkan ${t.expected}, diterima ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${_(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${o}${t.maximum.toString()} ${u.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Terlalu kecil: diharapkan ${t.origin} memiliki ${o}${t.minimum.toString()} ${u.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;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}`:`${n[o.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}},"error");function Lo(){return{localeError:Hd()}}s(Lo,"default");var Qd=s(e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"n\xFAmer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},"parsedType"),Yd=s(()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(n){return e[n]??null}s(r,"getSizing");let i={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",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\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",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\xF6lugildi",jwt:"JWT",template_literal:"gildi"};return n=>{switch(n.code){case"invalid_type":return`Rangt gildi: \xDE\xFA sl\xF3st inn ${Qd(n.input)} \xFEar sem \xE1 a\xF0 vera ${n.expected}`;case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${_(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${b(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",o=r(n.origin);return o?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${t}${n.maximum.toString()} ${o.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",o=r(n.origin);return o?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${t}${n.minimum.toString()} ${o.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${t}${n.minimum.toString()}`}case"invalid_format":{let t=n;return t.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${t.prefix}"`:t.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${t.suffix}"`:t.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${t.includes}"`:t.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${t.pattern}`:`Rangt ${i[t.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${b(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}},"error");function Fo(){return{localeError:Yd()}}s(Fo,"default");var ep=s(()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"numero";case"object":{if(Array.isArray(t))return"vettore";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input non valido: atteso ${t.expected}, ricevuto ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Input non valido: atteso ${_(t.values[0])}`:`Opzione non valida: atteso uno tra ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Troppo grande: ${t.origin??"valore"} deve avere ${o}${t.maximum.toString()} ${u.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Troppo piccolo: ${t.origin} deve avere ${o}${t.minimum.toString()} ${u.unit}`:`Troppo piccolo: ${t.origin} deve essere ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;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}`:`Invalid ${n[o.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${b(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}},"error");function Bo(){return{localeError:ep()}}s(Bo,"default");var tp=s(()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(t))return"\u914D\u5217";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return t=>{switch(t.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${i(t.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${_(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${b(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",u=r(t.origin);return u?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${u.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",u=r(t.origin);return u?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${u.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[o.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${t.keys.length>1?"\u7FA4":""}: ${b(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function Mo(){return{localeError:tp()}}s(Mo,"default");var rp=s(e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8";case"object":{if(Array.isArray(e))return"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0"}[r]??r},"parsedType"),np=s(()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(n){return e[n]??null}s(r,"getSizing");let i={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"};return n=>{switch(n.code){case"invalid_type":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${rp(n.input)}`;case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${_(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${b(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let t=n.inclusive?"<=":"<",o=r(n.origin);return o?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${o.verb} ${t}${n.maximum.toString()} ${o.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",o=r(n.origin);return o?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${o.verb} ${t}${n.minimum.toString()} ${o.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${t}${n.minimum.toString()}`}case"invalid_format":{let t=n;return t.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${t.prefix}"-\u10D8\u10D7`:t.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${t.suffix}"-\u10D8\u10D7`:t.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${t.includes}"-\u10E1`:t.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${t.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${i[t.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${b(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function qo(){return{localeError:np()}}s(qo,"default");var ip=s(()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(t))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(t===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return t=>{switch(t.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${i(t.input)}`;case"invalid_value":return t.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${_(t.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${t.maximum.toString()} ${u.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${o} ${t.minimum.toString()} ${u.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[o.format]??t.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${b(t.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},"error");function at(){return{localeError:ip()}}s(at,"default");function Jo(){return at()}s(Jo,"default");var op=s(()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return t=>{switch(t.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${i(t.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${_(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${b(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",u=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=r(t.origin),f=l?.unit??"\uC694\uC18C";return l?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${f} ${o}${u}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${o}${u}`}case"too_small":{let o=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",u=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=r(t.origin),f=l?.unit??"\uC694\uC18C";return l?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${f} ${o}${u}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${o}${u}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[o.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${b(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function Go(){return{localeError:op()}}s(Go,"default");var ap=s(e=>ut(typeof e,e),"parsedType"),ut=s((e,r=void 0)=>{switch(e){case"number":return Number.isNaN(r)?"NaN":"skai\u010Dius";case"bigint":return"sveikasis skai\u010Dius";case"string":return"eilut\u0117";case"boolean":return"login\u0117 reik\u0161m\u0117";case"undefined":case"void":return"neapibr\u0117\u017Eta reik\u0161m\u0117";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return r===void 0?"ne\u017Einomas objektas":r===null?"nulin\u0117 reik\u0161m\u0117":Array.isArray(r)?"masyvas":Object.getPrototypeOf(r)!==Object.prototype&&r.constructor?r.constructor.name:"objektas";case"null":return"nulin\u0117 reik\u0161m\u0117"}return e},"parsedTypeFromType"),st=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function Gu(e){let r=Math.abs(e),i=r%10,n=r%100;return n>=11&&n<=19||i===0?"many":i===1?"one":"few"}s(Gu,"getUnitTypeFromNumber");var sp=s(()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(n,t,o,u){let l=e[n]??null;return l===null?l:{unit:l.unit[t],verb:l.verb[u][o?"inclusive":"notInclusive"]}}s(r,"getSizing");let i={regex:"\u012Fvestis",email:"el. pa\u0161to 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\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"};return n=>{switch(n.code){case"invalid_type":return`Gautas tipas ${ap(n.input)}, o tik\u0117tasi - ${ut(n.expected)}`;case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${_(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${b(n.values,"|")} pasirinkim\u0173`;case"too_big":{let t=ut(n.origin),o=r(n.origin,Gu(Number(n.maximum)),n.inclusive??!1,"smaller");if(o?.verb)return`${st(t??n.origin??"reik\u0161m\u0117")} ${o.verb} ${n.maximum.toString()} ${o.unit??"element\u0173"}`;let u=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${st(t??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.maximum.toString()} ${o?.unit}`}case"too_small":{let t=ut(n.origin),o=r(n.origin,Gu(Number(n.minimum)),n.inclusive??!1,"bigger");if(o?.verb)return`${st(t??n.origin??"reik\u0161m\u0117")} ${o.verb} ${n.minimum.toString()} ${o.unit??"element\u0173"}`;let u=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${st(t??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.minimum.toString()} ${o?.unit}`}case"invalid_format":{let t=n;return t.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${t.prefix}"`:t.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${t.suffix}"`:t.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${t.includes}"`:t.format==="regex"?`Eilut\u0117 privalo atitikti ${t.pattern}`:`Neteisingas ${i[t.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${b(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let t=ut(n.origin);return`${st(t??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function Wo(){return{localeError:sp()}}s(Wo,"default");var up=s(()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(t))return"\u043D\u0438\u0437\u0430";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return t=>{switch(t.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Invalid input: expected ${_(t.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${t.maximum.toString()} ${u.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${t.minimum.toString()} ${u.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${n[o.format]??t.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${b(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function Ko(){return{localeError:up()}}s(Ko,"default");var cp=s(()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"nombor";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak sah: dijangka ${t.expected}, diterima ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${_(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Terlalu besar: dijangka ${t.origin??"nilai"} ${u.verb} ${o}${t.maximum.toString()} ${u.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Terlalu kecil: dijangka ${t.origin} ${u.verb} ${o}${t.minimum.toString()} ${u.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;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}`:`${n[o.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${b(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}},"error");function Xo(){return{localeError:cp()}}s(Xo,"default");var lp=s(()=>{let e={string:{unit:"tekens",verb:"te hebben"},file:{unit:"bytes",verb:"te hebben"},array:{unit:"elementen",verb:"te hebben"},set:{unit:"elementen",verb:"te hebben"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"getal";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return t=>{switch(t.code){case"invalid_type":return`Ongeldige invoer: verwacht ${t.expected}, ontving ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${_(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Te groot: verwacht dat ${t.origin??"waarde"} ${u.verb} ${o}${t.maximum.toString()} ${u.unit??"elementen"}`:`Te groot: verwacht dat ${t.origin??"waarde"} ${o}${t.maximum.toString()} is`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Te klein: verwacht dat ${t.origin} ${u.verb} ${o}${t.minimum.toString()} ${u.unit}`:`Te klein: verwacht dat ${t.origin} ${o}${t.minimum.toString()} is`}case"invalid_format":{let o=t;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: ${n[o.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}},"error");function Ho(){return{localeError:lp()}}s(Ho,"default");var dp=s(()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"tall";case"object":{if(Array.isArray(t))return"liste";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={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\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Ugyldig input: forventet ${t.expected}, fikk ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${_(t.values[0])}`:`Ugyldig valg: forventet en av ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${o}${t.maximum.toString()} ${u.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`For lite(n): forventet ${t.origin} til \xE5 ha ${o}${t.minimum.toString()} ${u.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${b(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}},"error");function Qo(){return{localeError:dp()}}s(Qo,"default");var pp=s(()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"numara";case"object":{if(Array.isArray(t))return"saf";if(t===null)return"gayb";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return t=>{switch(t.code){case"invalid_type":return`F\xE2sit giren: umulan ${t.expected}, al\u0131nan ${i(t.input)}`;case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${_(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${o}${t.maximum.toString()} ${u.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${o}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${o}${t.minimum.toString()} ${u.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${o}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=t;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[o.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function Yo(){return{localeError:pp()}}s(Yo,"default");var mp=s(()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(t))return"\u0627\u0631\u06D0";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return t=>{switch(t.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${i(t.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${_(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${b(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} ${u.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} ${u.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[o.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${b(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function ea(){return{localeError:mp()}}s(ea,"default");var fp=s(()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"liczba";case"object":{if(Array.isArray(t))return"tablica";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"wyra\u017Cenie",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\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return t=>{switch(t.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${t.expected}, otrzymano ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${_(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${t.maximum.toString()} ${u.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${t.minimum.toString()} ${u.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[o.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function ta(){return{localeError:fp()}}s(ta,"default");var gp=s(()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(t))return"array";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"padr\xE3o",email:"endere\xE7o 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\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o 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\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${t.expected}, recebido ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${_(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${o}${t.maximum.toString()} ${u.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Muito pequeno: esperado que ${t.origin} tivesse ${o}${t.minimum.toString()} ${u.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${n[o.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}},"error");function ra(){return{localeError:gp()}}s(ra,"default");function Wu(e,r,i,n){let t=Math.abs(e),o=t%10,u=t%100;return u>=11&&u<=19?n:o===1?r:o>=2&&o<=4?i:n}s(Wu,"getRussianPlural");var vp=s(()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(t))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return t=>{switch(t.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${i(t.input)}`;case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${_(t.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);if(u){let l=Number(t.maximum),f=Wu(l,u.unit.one,u.unit.few,u.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${t.maximum.toString()} ${f}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);if(u){let l=Number(t.minimum),f=Wu(l,u.unit.one,u.unit.few,u.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${t.minimum.toString()} ${f}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[o.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${b(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},"error");function na(){return{localeError:vp()}}s(na,"default");var hp=s(()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(t))return"tabela";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",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 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return t=>{switch(t.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${t.expected}, prejeto ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${_(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${o}${t.maximum.toString()} ${u.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${o}${t.minimum.toString()} ${u.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${b(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}},"error");function ia(){return{localeError:hp()}}s(ia,"default");var yp=s(()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"antal";case"object":{if(Array.isArray(t))return"lista";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"regulj\xE4rt 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\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return t=>{switch(t.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${t.expected}, fick ${i(t.input)}`;case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${_(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${o}${t.maximum.toString()} ${u.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${o}${t.minimum.toString()} ${u.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${b(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function oa(){return{localeError:yp()}}s(oa,"default");var bp=s(()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(t))return"\u0B85\u0BA3\u0BBF";if(t===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i(t.input)}`;case"invalid_value":return t.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${_(t.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${b(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${t.maximum.toString()} ${u.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${o}${t.minimum.toString()} ${u.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${o}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[o.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${b(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}},"error");function aa(){return{localeError:bp()}}s(aa,"default");var $p=s(()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(t))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(t===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return t=>{switch(t.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${i(t.input)}`;case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${_(t.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",u=r(t.origin);return u?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.maximum.toString()} ${u.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",u=r(t.origin);return u?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.minimum.toString()} ${u.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[o.format]??t.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${t.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${b(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function sa(){return{localeError:$p()}}s(sa,"default");var _p=s(e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},"parsedType"),kp=s(()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(n){return e[n]??null}s(r,"getSizing");let i={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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return n=>{switch(n.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${n.expected}, al\u0131nan ${_p(n.input)}`;case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${_(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${b(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",o=r(n.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${t}${n.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",o=r(n.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${t}${n.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${t}${n.minimum.toString()}`}case"invalid_format":{let t=n;return t.format==="starts_with"?`Ge\xE7ersiz metin: "${t.prefix}" ile ba\u015Flamal\u0131`:t.format==="ends_with"?`Ge\xE7ersiz metin: "${t.suffix}" ile bitmeli`:t.format==="includes"?`Ge\xE7ersiz metin: "${t.includes}" i\xE7ermeli`:t.format==="regex"?`Ge\xE7ersiz metin: ${t.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${i[t.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${b(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function ua(){return{localeError:kp()}}s(ua,"default");var xp=s(()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(t))return"\u043C\u0430\u0441\u0438\u0432";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return t=>{switch(t.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${i(t.input)}`;case"invalid_value":return t.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${_(t.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${u.verb} ${o}${t.maximum.toString()} ${u.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${u.verb} ${o}${t.minimum.toString()} ${u.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[o.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${b(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},"error");function ct(){return{localeError:xp()}}s(ct,"default");function ca(){return ct()}s(ca,"default");var wp=s(()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(t))return"\u0622\u0631\u06D2";if(t===null)return"\u0646\u0644";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return t=>{switch(t.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${i(t.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${_(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${b(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${t.maximum.toString()} ${u.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${o}${t.minimum.toString()} ${u.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${o}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[o.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${t.keys.length>1?"\u0632":""}: ${b(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function la(){return{localeError:wp()}}s(la,"default");var Ip=s(()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(t))return"m\u1EA3ng";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return t=>{switch(t.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${i(t.input)}`;case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${_(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${u.verb} ${o}${t.maximum.toString()} ${u.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${u.verb} ${o}${t.minimum.toString()} ${u.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${n[o.format]??t.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${b(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function da(){return{localeError:Ip()}}s(da,"default");var Sp=s(()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(t))return"\u6570\u7EC4";if(t===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return t=>{switch(t.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${i(t.input)}`;case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${_(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${o}${t.maximum.toString()} ${u.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${o}${t.minimum.toString()} ${u.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${n[o.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${b(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function pa(){return{localeError:Sp()}}s(pa,"default");var zp=s(()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return t=>{switch(t.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${t.expected}\uFF0C\u4F46\u6536\u5230 ${i(t.input)}`;case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${_(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${o}${t.maximum.toString()} ${u.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${o}${t.minimum.toString()} ${u.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${n[o.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${b(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function ma(){return{localeError:zp()}}s(ma,"default");var jp=s(()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(t){return e[t]??null}s(r,"getSizing");let i=s(t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"n\u1ECD\u0301mb\xE0";case"object":{if(Array.isArray(t))return"akop\u1ECD";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},"parsedType"),n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"};return t=>{switch(t.code){case"invalid_type":return`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${i(t.input)}`;case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${_(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${b(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",u=r(t.origin);return u?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${u.verb} ${o}${t.maximum} ${u.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${t.maximum}`}case"too_small":{let o=t.inclusive?">=":">",u=r(t.origin);return u?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${u.verb} ${o}${t.minimum} ${u.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${t.minimum}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${n[o.format]??t.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${b(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function fa(){return{localeError:jp()}}s(fa,"default");var Ku,ga=Symbol("ZodOutput"),va=Symbol("ZodInput"),ha=class ha{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...i){let n=i[0];if(this._map.set(r,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,r)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let i=this._map.get(r);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(r),this}get(r){let i=r._zod.parent;if(i){let n={...this.get(i)??{}};delete n.id;let t={...n,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};s(ha,"$ZodRegistry");var Oe=ha;function lr(){return new Oe}s(lr,"registry");(Ku=globalThis).__zod_globalRegistry??(Ku.__zod_globalRegistry=lr());var L=globalThis.__zod_globalRegistry;function ya(e,r){return new e({type:"string",...k(r)})}s(ya,"_string");function ba(e,r){return new e({type:"string",coerce:!0,...k(r)})}s(ba,"_coercedString");function dr(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...k(r)})}s(dr,"_email");function dt(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...k(r)})}s(dt,"_guid");function pr(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...k(r)})}s(pr,"_uuid");function mr(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...k(r)})}s(mr,"_uuidv4");function fr(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...k(r)})}s(fr,"_uuidv6");function gr(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...k(r)})}s(gr,"_uuidv7");function pt(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...k(r)})}s(pt,"_url");function vr(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...k(r)})}s(vr,"_emoji");function hr(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...k(r)})}s(hr,"_nanoid");function yr(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...k(r)})}s(yr,"_cuid");function br(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...k(r)})}s(br,"_cuid2");function $r(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...k(r)})}s($r,"_ulid");function _r(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...k(r)})}s(_r,"_xid");function kr(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...k(r)})}s(kr,"_ksuid");function xr(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...k(r)})}s(xr,"_ipv4");function wr(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...k(r)})}s(wr,"_ipv6");function $a(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...k(r)})}s($a,"_mac");function Ir(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...k(r)})}s(Ir,"_cidrv4");function Sr(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...k(r)})}s(Sr,"_cidrv6");function zr(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...k(r)})}s(zr,"_base64");function jr(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...k(r)})}s(jr,"_base64url");function Pr(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...k(r)})}s(Pr,"_e164");function Cr(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...k(r)})}s(Cr,"_jwt");var _a={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function ka(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...k(r)})}s(ka,"_isoDateTime");function xa(e,r){return new e({type:"string",format:"date",check:"string_format",...k(r)})}s(xa,"_isoDate");function wa(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...k(r)})}s(wa,"_isoTime");function Ia(e,r){return new e({type:"string",format:"duration",check:"string_format",...k(r)})}s(Ia,"_isoDuration");function Sa(e,r){return new e({type:"number",checks:[],...k(r)})}s(Sa,"_number");function za(e,r){return new e({type:"number",coerce:!0,checks:[],...k(r)})}s(za,"_coercedNumber");function ja(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...k(r)})}s(ja,"_int");function Pa(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...k(r)})}s(Pa,"_float32");function Ca(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...k(r)})}s(Ca,"_float64");function Na(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...k(r)})}s(Na,"_int32");function Ua(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...k(r)})}s(Ua,"_uint32");function Da(e,r){return new e({type:"boolean",...k(r)})}s(Da,"_boolean");function Oa(e,r){return new e({type:"boolean",coerce:!0,...k(r)})}s(Oa,"_coercedBoolean");function Ea(e,r){return new e({type:"bigint",...k(r)})}s(Ea,"_bigint");function Aa(e,r){return new e({type:"bigint",coerce:!0,...k(r)})}s(Aa,"_coercedBigint");function Ta(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...k(r)})}s(Ta,"_int64");function Za(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...k(r)})}s(Za,"_uint64");function Va(e,r){return new e({type:"symbol",...k(r)})}s(Va,"_symbol");function Ra(e,r){return new e({type:"undefined",...k(r)})}s(Ra,"_undefined");function La(e,r){return new e({type:"null",...k(r)})}s(La,"_null");function Fa(e){return new e({type:"any"})}s(Fa,"_any");function Ba(e){return new e({type:"unknown"})}s(Ba,"_unknown");function Ma(e,r){return new e({type:"never",...k(r)})}s(Ma,"_never");function qa(e,r){return new e({type:"void",...k(r)})}s(qa,"_void");function Ja(e,r){return new e({type:"date",...k(r)})}s(Ja,"_date");function Ga(e,r){return new e({type:"date",coerce:!0,...k(r)})}s(Ga,"_coercedDate");function Wa(e,r){return new e({type:"nan",...k(r)})}s(Wa,"_nan");function ae(e,r){return new Yt({check:"less_than",...k(r),value:e,inclusive:!1})}s(ae,"_lt");function Y(e,r){return new Yt({check:"less_than",...k(r),value:e,inclusive:!0})}s(Y,"_lte");function se(e,r){return new er({check:"greater_than",...k(r),value:e,inclusive:!1})}s(se,"_gt");function q(e,r){return new er({check:"greater_than",...k(r),value:e,inclusive:!0})}s(q,"_gte");function Ka(e){return se(0,e)}s(Ka,"_positive");function Xa(e){return ae(0,e)}s(Xa,"_negative");function Ha(e){return Y(0,e)}s(Ha,"_nonpositive");function Qa(e){return q(0,e)}s(Qa,"_nonnegative");function ke(e,r){return new Kn({check:"multiple_of",...k(r),value:e})}s(ke,"_multipleOf");function Ee(e,r){return new Qn({check:"max_size",...k(r),maximum:e})}s(Ee,"_maxSize");function xe(e,r){return new Yn({check:"min_size",...k(r),minimum:e})}s(xe,"_minSize");function mt(e,r){return new ei({check:"size_equals",...k(r),size:e})}s(mt,"_size");function Ae(e,r){return new ti({check:"max_length",...k(r),maximum:e})}s(Ae,"_maxLength");function ye(e,r){return new ri({check:"min_length",...k(r),minimum:e})}s(ye,"_minLength");function Te(e,r){return new ni({check:"length_equals",...k(r),length:e})}s(Te,"_length");function ft(e,r){return new ii({check:"string_format",format:"regex",...k(r),pattern:e})}s(ft,"_regex");function gt(e){return new oi({check:"string_format",format:"lowercase",...k(e)})}s(gt,"_lowercase");function vt(e){return new ai({check:"string_format",format:"uppercase",...k(e)})}s(vt,"_uppercase");function ht(e,r){return new si({check:"string_format",format:"includes",...k(r),includes:e})}s(ht,"_includes");function yt(e,r){return new ui({check:"string_format",format:"starts_with",...k(r),prefix:e})}s(yt,"_startsWith");function bt(e,r){return new ci({check:"string_format",format:"ends_with",...k(r),suffix:e})}s(bt,"_endsWith");function Ya(e,r,i){return new li({check:"property",property:e,schema:r,...k(i)})}s(Ya,"_property");function $t(e,r){return new di({check:"mime_type",mime:e,...k(r)})}s($t,"_mime");function ne(e){return new pi({check:"overwrite",tx:e})}s(ne,"_overwrite");function _t(e){return ne(r=>r.normalize(e))}s(_t,"_normalize");function kt(){return ne(e=>e.trim())}s(kt,"_trim");function xt(){return ne(e=>e.toLowerCase())}s(xt,"_toLowerCase");function wt(){return ne(e=>e.toUpperCase())}s(wt,"_toUpperCase");function It(){return ne(e=>un(e))}s(It,"_slugify");function es(e,r,i){return new e({type:"array",element:r,...k(i)})}s(es,"_array");function Cp(e,r,i){return new e({type:"union",options:r,...k(i)})}s(Cp,"_union");function Np(e,r,i,n){return new e({type:"union",options:i,discriminator:r,...k(n)})}s(Np,"_discriminatedUnion");function Up(e,r,i){return new e({type:"intersection",left:r,right:i})}s(Up,"_intersection");function Dp(e,r,i,n){let t=i instanceof z,o=t?n:i,u=t?i:null;return new e({type:"tuple",items:r,rest:u,...k(o)})}s(Dp,"_tuple");function Op(e,r,i,n){return new e({type:"record",keyType:r,valueType:i,...k(n)})}s(Op,"_record");function Ep(e,r,i,n){return new e({type:"map",keyType:r,valueType:i,...k(n)})}s(Ep,"_map");function Ap(e,r,i){return new e({type:"set",valueType:r,...k(i)})}s(Ap,"_set");function Tp(e,r,i){let n=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:n,...k(i)})}s(Tp,"_enum");function Zp(e,r,i){return new e({type:"enum",entries:r,...k(i)})}s(Zp,"_nativeEnum");function Vp(e,r,i){return new e({type:"literal",values:Array.isArray(r)?r:[r],...k(i)})}s(Vp,"_literal");function ts(e,r){return new e({type:"file",...k(r)})}s(ts,"_file");function Rp(e,r){return new e({type:"transform",transform:r})}s(Rp,"_transform");function Lp(e,r){return new e({type:"optional",innerType:r})}s(Lp,"_optional");function Fp(e,r){return new e({type:"nullable",innerType:r})}s(Fp,"_nullable");function Bp(e,r,i){return new e({type:"default",innerType:r,get defaultValue(){return typeof i=="function"?i():ln(i)}})}s(Bp,"_default");function Mp(e,r,i){return new e({type:"nonoptional",innerType:r,...k(i)})}s(Mp,"_nonoptional");function qp(e,r){return new e({type:"success",innerType:r})}s(qp,"_success");function Jp(e,r,i){return new e({type:"catch",innerType:r,catchValue:typeof i=="function"?i:()=>i})}s(Jp,"_catch");function Gp(e,r,i){return new e({type:"pipe",in:r,out:i})}s(Gp,"_pipe");function Wp(e,r){return new e({type:"readonly",innerType:r})}s(Wp,"_readonly");function Kp(e,r,i){return new e({type:"template_literal",parts:r,...k(i)})}s(Kp,"_templateLiteral");function Xp(e,r){return new e({type:"lazy",getter:r})}s(Xp,"_lazy");function Hp(e,r){return new e({type:"promise",innerType:r})}s(Hp,"_promise");function rs(e,r,i){let n=k(i);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:r,...n})}s(rs,"_custom");function ns(e,r,i){return new e({type:"custom",check:"custom",fn:r,...k(i)})}s(ns,"_refine");function is(e){let r=Xu(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(je(n,i.value,r._zod.def));else{let t=n;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=i.value),t.inst??(t.inst=r),t.continue??(t.continue=!r._zod.def.abort),i.issues.push(je(t))}},e(i.value,i)));return r}s(is,"_superRefine");function Xu(e,r){let i=new D({check:"custom",...k(r)});return i._zod.check=e,i}s(Xu,"_check");function os(e){let r=new D({check:"describe"});return r._zod.onattach=[i=>{let n=L.get(i)??{};L.add(i,{...n,description:e})}],r._zod.check=()=>{},r}s(os,"describe");function as(e){let r=new D({check:"meta"});return r._zod.onattach=[i=>{let n=L.get(i)??{};L.add(i,{...n,...e})}],r._zod.check=()=>{},r}s(as,"meta");function ss(e,r){let i=k(r),n=i.truthy??["true","1","yes","on","y","enabled"],t=i.falsy??["false","0","no","off","n","disabled"];i.case!=="sensitive"&&(n=n.map(c=>typeof c=="string"?c.toLowerCase():c),t=t.map(c=>typeof c=="string"?c.toLowerCase():c));let o=new Set(n),u=new Set(t),l=e.Codec??it,f=e.Boolean??nt,g=e.String??_e,m=new g({type:"string",error:i.error}),y=new f({type:"boolean",error:i.error}),p=new l({type:"pipe",in:m,out:y,transform:s(((c,d)=>{let v=c;return i.case!=="sensitive"&&(v=v.toLowerCase()),o.has(v)?!0:u.has(v)?!1:(d.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...u],input:d.value,inst:p,continue:!1}),{})}),"transform"),reverseTransform:s(((c,d)=>c===!0?n[0]||"true":t[0]||"false"),"reverseTransform"),error:i.error});return p}s(ss,"_stringbool");function Ze(e,r,i,n={}){let t=k(n),o={...k(n),check:"string_format",type:"string",format:r,fn:typeof i=="function"?i:l=>i.test(l),...t};return i instanceof RegExp&&(o.pattern=i),new e(o)}s(Ze,"_stringFormat");var cs=class cs{constructor(r){this.counter=0,this.metadataRegistry=r?.metadata??L,this.target=r?.target??"draft-2020-12",this.unrepresentable=r?.unrepresentable??"throw",this.override=r?.override??(()=>{}),this.io=r?.io??"output",this.seen=new Map}process(r,i={path:[],schemaPath:[]}){var n;let t=r._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},u=this.seen.get(r);if(u)return u.count++,i.schemaPath.includes(r)&&(u.cycle=i.path),u.schema;let l={schema:{},count:1,cycle:void 0,path:i.path};this.seen.set(r,l);let f=r._zod.toJSONSchema?.();if(f)l.schema=f;else{let y={...i,schemaPath:[...i.schemaPath,r],path:i.path},p=r._zod.parent;if(p)l.ref=p,this.process(p,y),this.seen.get(p).isParent=!0;else{let c=l.schema;switch(t.type){case"string":{let d=c;d.type="string";let{minimum:v,maximum:$,format:w,patterns:I,contentEncoding:S}=r._zod.bag;if(typeof v=="number"&&(d.minLength=v),typeof $=="number"&&(d.maxLength=$),w&&(d.format=o[w]??w,d.format===""&&delete d.format),S&&(d.contentEncoding=S),I&&I.size>0){let C=[...I];C.length===1?d.pattern=C[0].source:C.length>1&&(l.schema.allOf=[...C.map(A=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:A.source}))])}break}case"number":{let d=c,{minimum:v,maximum:$,format:w,multipleOf:I,exclusiveMaximum:S,exclusiveMinimum:C}=r._zod.bag;typeof w=="string"&&w.includes("int")?d.type="integer":d.type="number",typeof C=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(d.minimum=C,d.exclusiveMinimum=!0):d.exclusiveMinimum=C),typeof v=="number"&&(d.minimum=v,typeof C=="number"&&this.target!=="draft-4"&&(C>=v?delete d.minimum:delete d.exclusiveMinimum)),typeof S=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(d.maximum=S,d.exclusiveMaximum=!0):d.exclusiveMaximum=S),typeof $=="number"&&(d.maximum=$,typeof S=="number"&&this.target!=="draft-4"&&(S<=$?delete d.maximum:delete d.exclusiveMaximum)),typeof I=="number"&&(d.multipleOf=I);break}case"boolean":{let d=c;d.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(c.type="string",c.nullable=!0,c.enum=[null]):c.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{c.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let d=c,{minimum:v,maximum:$}=r._zod.bag;typeof v=="number"&&(d.minItems=v),typeof $=="number"&&(d.maxItems=$),d.type="array",d.items=this.process(t.element,{...y,path:[...y.path,"items"]});break}case"object":{let d=c;d.type="object",d.properties={};let v=t.shape;for(let I in v)d.properties[I]=this.process(v[I],{...y,path:[...y.path,"properties",I]});let $=new Set(Object.keys(v)),w=new Set([...$].filter(I=>{let S=t.shape[I]._zod;return this.io==="input"?S.optin===void 0:S.optout===void 0}));w.size>0&&(d.required=Array.from(w)),t.catchall?._zod.def.type==="never"?d.additionalProperties=!1:t.catchall?t.catchall&&(d.additionalProperties=this.process(t.catchall,{...y,path:[...y.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{let d=c,v=t.discriminator!==void 0,$=t.options.map((w,I)=>this.process(w,{...y,path:[...y.path,v?"oneOf":"anyOf",I]}));v?d.oneOf=$:d.anyOf=$;break}case"intersection":{let d=c,v=this.process(t.left,{...y,path:[...y.path,"allOf",0]}),$=this.process(t.right,{...y,path:[...y.path,"allOf",1]}),w=s(S=>"allOf"in S&&Object.keys(S).length===1,"isSimpleIntersection"),I=[...w(v)?v.allOf:[v],...w($)?$.allOf:[$]];d.allOf=I;break}case"tuple":{let d=c;d.type="array";let v=this.target==="draft-2020-12"?"prefixItems":"items",$=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",w=t.items.map((A,X)=>this.process(A,{...y,path:[...y.path,v,X]})),I=t.rest?this.process(t.rest,{...y,path:[...y.path,$,...this.target==="openapi-3.0"?[t.items.length]:[]]}):null;this.target==="draft-2020-12"?(d.prefixItems=w,I&&(d.items=I)):this.target==="openapi-3.0"?(d.items={anyOf:w},I&&d.items.anyOf.push(I),d.minItems=w.length,I||(d.maxItems=w.length)):(d.items=w,I&&(d.additionalItems=I));let{minimum:S,maximum:C}=r._zod.bag;typeof S=="number"&&(d.minItems=S),typeof C=="number"&&(d.maxItems=C);break}case"record":{let d=c;d.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(d.propertyNames=this.process(t.keyType,{...y,path:[...y.path,"propertyNames"]})),d.additionalProperties=this.process(t.valueType,{...y,path:[...y.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let d=c,v=Je(t.entries);v.every($=>typeof $=="number")&&(d.type="number"),v.every($=>typeof $=="string")&&(d.type="string"),d.enum=v;break}case"literal":{let d=c,v=[];for(let $ of t.values)if($===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof $=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");v.push(Number($))}else v.push($);if(v.length!==0)if(v.length===1){let $=v[0];d.type=$===null?"null":typeof $,this.target==="draft-4"||this.target==="openapi-3.0"?d.enum=[$]:d.const=$}else v.every($=>typeof $=="number")&&(d.type="number"),v.every($=>typeof $=="string")&&(d.type="string"),v.every($=>typeof $=="boolean")&&(d.type="string"),v.every($=>$===null)&&(d.type="null"),d.enum=v;break}case"file":{let d=c,v={type:"string",format:"binary",contentEncoding:"binary"},{minimum:$,maximum:w,mime:I}=r._zod.bag;$!==void 0&&(v.minLength=$),w!==void 0&&(v.maxLength=w),I?I.length===1?(v.contentMediaType=I[0],Object.assign(d,v)):d.anyOf=I.map(S=>({...v,contentMediaType:S})):Object.assign(d,v);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let d=this.process(t.innerType,y);this.target==="openapi-3.0"?(l.ref=t.innerType,c.nullable=!0):c.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,y),l.ref=t.innerType;break}case"success":{let d=c;d.type="boolean";break}case"default":{this.process(t.innerType,y),l.ref=t.innerType,c.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,y),l.ref=t.innerType,this.io==="input"&&(c._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,y),l.ref=t.innerType;let d;try{d=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}c.default=d;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let d=c,v=r._zod.pattern;if(!v)throw new Error("Pattern not found in template literal");d.type="string",d.pattern=v.source;break}case"pipe":{let d=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(d,y),l.ref=d;break}case"readonly":{this.process(t.innerType,y),l.ref=t.innerType,c.readOnly=!0;break}case"promise":{this.process(t.innerType,y),l.ref=t.innerType;break}case"optional":{this.process(t.innerType,y),l.ref=t.innerType;break}case"lazy":{let d=r._zod.innerType;this.process(d,y),l.ref=d;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}default:}}}let g=this.metadataRegistry.get(r);return g&&Object.assign(l.schema,g),this.io==="input"&&F(r)&&(delete l.schema.examples,delete l.schema.default),this.io==="input"&&l.schema._prefault&&((n=l.schema).default??(n.default=l.schema._prefault)),delete l.schema._prefault,this.seen.get(r).schema}emit(r,i){let n={cycles:i?.cycles??"ref",reused:i?.reused??"inline",external:i?.external??void 0},t=this.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s(m=>{let y=this.target==="draft-2020-12"?"$defs":"definitions";if(n.external){let v=n.external.registry.get(m[0])?.id,$=n.external.uri??(I=>I);if(v)return{ref:$(v)};let w=m[1].defId??m[1].schema.id??`schema${this.counter++}`;return m[1].defId=w,{defId:w,ref:`${$("__shared")}#/${y}/${w}`}}if(m[1]===t)return{ref:"#"};let c=`#/${y}/`,d=m[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:c+d}},"makeURI"),u=s(m=>{if(m[1].schema.$ref)return;let y=m[1],{ref:p,defId:c}=o(m);y.def={...y.schema},c&&(y.defId=c);let d=y.schema;for(let v in d)delete d[v];d.$ref=p},"extractToDef");if(n.cycles==="throw")for(let m of this.seen.entries()){let y=m[1];if(y.cycle)throw new Error(`Cycle detected: #/${y.cycle?.join("/")}/<root>
|
|
21
|
+
`)}_.write("payload.value = newResult;"),_.write("return payload;");let $=_.compile();return(S,z)=>$(I,S,z)},"generateFastpass"),a,c=Se,f=!Qe.jitless,g=f&&yn.value,h=r.catchall,p;e._zod.parse=(I,_)=>{p??(p=i.value);let d=I.value;return c(d)?f&&g&&_?.async===!1&&_.jitless!==!0?(a||(a=t(r.shape)),I=a(I,_),h?nu([],d,I,_,p,e):I):o(I,_):(I.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),I)}});function qc(e,r,o,i){for(let a of e)if(a.issues.length===0)return r.value=a.value,r;let t=e.filter(a=>!we(a));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:e.map(a=>a.issues.map(c=>Y(c,i,Z())))}),r)}s(qc,"handleUnionResults");var hr=v("$ZodUnion",(e,r)=>{C.init(e,r),U(e._zod,"optin",()=>r.options.some(t=>t._zod.optin==="optional")?"optional":void 0),U(e._zod,"optout",()=>r.options.some(t=>t._zod.optout==="optional")?"optional":void 0),U(e._zod,"values",()=>{if(r.options.every(t=>t._zod.values))return new Set(r.options.flatMap(t=>Array.from(t._zod.values)))}),U(e._zod,"pattern",()=>{if(r.options.every(t=>t._zod.pattern)){let t=r.options.map(a=>a._zod.pattern);return new RegExp(`^(${t.map(a=>tt(a.source)).join("|")})$`)}});let o=r.options.length===1,i=r.options[0]._zod.run;e._zod.parse=(t,a)=>{if(o)return i(t,a);let c=!1,f=[];for(let l of r.options){let g=l._zod.run({value:t.value,issues:[]},a);if(g instanceof Promise)f.push(g),c=!0;else{if(g.issues.length===0)return g;f.push(g)}}return c?Promise.all(f).then(l=>qc(l,t,e,a)):qc(f,t,e,a)}}),uo=v("$ZodDiscriminatedUnion",(e,r)=>{hr.init(e,r);let o=e._zod.parse;U(e._zod,"propValues",()=>{let t={};for(let a of r.options){let c=a._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(let[f,l]of Object.entries(c)){t[f]||(t[f]=new Set);for(let g of l)t[f].add(g)}}return t});let i=Ee(()=>{let t=r.options,a=new Map;for(let c of t){let f=c._zod.propValues?.[r.discriminator];if(!f||f.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(c)}"`);for(let l of f){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,c)}}return a});e._zod.parse=(t,a)=>{let c=t.value;if(!Se(c))return t.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),t;let f=i.value.get(c?.[r.discriminator]);return f?f._zod.run(t,a):r.unionFallback?o(t,a):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:c,path:[r.discriminator],inst:e}),t)}}),lo=v("$ZodIntersection",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>{let t=o.value,a=r.left._zod.run({value:t,issues:[]},i),c=r.right._zod.run({value:t,issues:[]},i);return a instanceof Promise||c instanceof Promise?Promise.all([a,c]).then(([l,g])=>Gc(o,l,g)):Gc(o,a,c)}});function xi(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(ke(e)&&ke(r)){let o=Object.keys(r),i=Object.keys(e).filter(a=>o.indexOf(a)!==-1),t={...e,...r};for(let a of i){let c=xi(e[a],r[a]);if(!c.valid)return{valid:!1,mergeErrorPath:[a,...c.mergeErrorPath]};t[a]=c.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let o=[];for(let i=0;i<e.length;i++){let t=e[i],a=r[i],c=xi(t,a);if(!c.valid)return{valid:!1,mergeErrorPath:[i,...c.mergeErrorPath]};o.push(c.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}s(xi,"mergeValues");function Gc(e,r,o){if(r.issues.length&&e.issues.push(...r.issues),o.issues.length&&e.issues.push(...o.issues),we(e))return e;let i=xi(r.value,o.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}s(Gc,"handleIntersectionResults");var yr=v("$ZodTuple",(e,r)=>{C.init(e,r);let o=r.items;e._zod.parse=(i,t)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let c=[],f=[...o].reverse().findIndex(h=>h._zod.optin!=="optional"),l=f===-1?0:o.length-f;if(!r.rest){let h=a.length>o.length,p=a.length<l-1;if(h||p)return i.issues.push({...h?{code:"too_big",maximum:o.length}:{code:"too_small",minimum:o.length},input:a,inst:e,origin:"array"}),i}let g=-1;for(let h of o){if(g++,g>=a.length&&g>=l)continue;let p=h._zod.run({value:a[g],issues:[]},t);p instanceof Promise?c.push(p.then(I=>lr(I,i,g))):lr(p,i,g)}if(r.rest){let h=a.slice(o.length);for(let p of h){g++;let I=r.rest._zod.run({value:p,issues:[]},t);I instanceof Promise?c.push(I.then(_=>lr(_,i,g))):lr(I,i,g)}}return c.length?Promise.all(c).then(()=>i):i}});function lr(e,r,o){e.issues.length&&r.issues.push(...Q(o,e.issues)),r.value[o]=e.value}s(lr,"handleTupleResult");var po=v("$ZodRecord",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;if(!ke(t))return o.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),o;let a=[],c=r.keyType._zod.values;if(c){o.value={};let f=new Set;for(let g of c)if(typeof g=="string"||typeof g=="number"||typeof g=="symbol"){f.add(typeof g=="number"?g.toString():g);let h=r.valueType._zod.run({value:t[g],issues:[]},i);h instanceof Promise?a.push(h.then(p=>{p.issues.length&&o.issues.push(...Q(g,p.issues)),o.value[g]=p.value})):(h.issues.length&&o.issues.push(...Q(g,h.issues)),o.value[g]=h.value)}let l;for(let g in t)f.has(g)||(l=l??[],l.push(g));l&&l.length>0&&o.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:l})}else{o.value={};for(let f of Reflect.ownKeys(t)){if(f==="__proto__")continue;let l=r.keyType._zod.run({value:f,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(h=>Y(h,i,Z())),input:f,path:[f],inst:e}),o.value[l.value]=l.value;continue}let g=r.valueType._zod.run({value:t[f],issues:[]},i);g instanceof Promise?a.push(g.then(h=>{h.issues.length&&o.issues.push(...Q(f,h.issues)),o.value[l.value]=h.value})):(g.issues.length&&o.issues.push(...Q(f,g.issues)),o.value[l.value]=g.value)}}return a.length?Promise.all(a).then(()=>o):o}}),mo=v("$ZodMap",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;if(!(t instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),o;let a=[];o.value=new Map;for(let[c,f]of t){let l=r.keyType._zod.run({value:c,issues:[]},i),g=r.valueType._zod.run({value:f,issues:[]},i);l instanceof Promise||g instanceof Promise?a.push(Promise.all([l,g]).then(([h,p])=>{Jc(h,p,o,c,t,e,i)})):Jc(l,g,o,c,t,e,i)}return a.length?Promise.all(a).then(()=>o):o}});function Jc(e,r,o,i,t,a,c){e.issues.length&&(rt.has(typeof i)?o.issues.push(...Q(i,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:t,inst:a,issues:e.issues.map(f=>Y(f,c,Z()))})),r.issues.length&&(rt.has(typeof i)?o.issues.push(...Q(i,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:t,inst:a,key:i,issues:r.issues.map(f=>Y(f,c,Z()))})),o.value.set(e.value,r.value)}s(Jc,"handleMapResult");var go=v("$ZodSet",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;if(!(t instanceof Set))return o.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),o;let a=[];o.value=new Set;for(let c of t){let f=r.valueType._zod.run({value:c,issues:[]},i);f instanceof Promise?a.push(f.then(l=>Wc(l,o))):Wc(f,o)}return a.length?Promise.all(a).then(()=>o):o}});function Wc(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}s(Wc,"handleSetResult");var fo=v("$ZodEnum",(e,r)=>{C.init(e,r);let o=et(r.entries),i=new Set(o);e._zod.values=i,e._zod.pattern=new RegExp(`^(${o.filter(t=>rt.has(typeof t)).map(t=>typeof t=="string"?te(t):t.toString()).join("|")})$`),e._zod.parse=(t,a)=>{let c=t.value;return i.has(c)||t.issues.push({code:"invalid_value",values:o,input:c,inst:e}),t}}),vo=v("$ZodLiteral",(e,r)=>{if(C.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let o=new Set(r.values);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.values.map(i=>typeof i=="string"?te(i):i?te(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,t)=>{let a=i.value;return o.has(a)||i.issues.push({code:"invalid_value",values:r.values,input:a,inst:e}),i}}),ho=v("$ZodFile",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;return t instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),o}}),yo=v("$ZodTransform",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>{if(i.direction==="backward")throw new ye(e.constructor.name);let t=r.transform(o.value,o);if(i.async)return(t instanceof Promise?t:Promise.resolve(t)).then(c=>(o.value=c,o));if(t instanceof Promise)throw new ce;return o.value=t,o}});function Kc(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}s(Kc,"handleOptionalResult");var bo=v("$ZodOptional",(e,r)=>{C.init(e,r),e._zod.optin="optional",e._zod.optout="optional",U(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),U(e._zod,"pattern",()=>{let o=r.innerType._zod.pattern;return o?new RegExp(`^(${tt(o.source)})?$`):void 0}),e._zod.parse=(o,i)=>{if(r.innerType._zod.optin==="optional"){let t=r.innerType._zod.run(o,i);return t instanceof Promise?t.then(a=>Kc(a,o.value)):Kc(t,o.value)}return o.value===void 0?o:r.innerType._zod.run(o,i)}}),$o=v("$ZodNullable",(e,r)=>{C.init(e,r),U(e._zod,"optin",()=>r.innerType._zod.optin),U(e._zod,"optout",()=>r.innerType._zod.optout),U(e._zod,"pattern",()=>{let o=r.innerType._zod.pattern;return o?new RegExp(`^(${tt(o.source)}|null)$`):void 0}),U(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(o,i)=>o.value===null?o:r.innerType._zod.run(o,i)}),_o=v("$ZodDefault",(e,r)=>{C.init(e,r),e._zod.optin="optional",U(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,i)=>{if(i.direction==="backward")return r.innerType._zod.run(o,i);if(o.value===void 0)return o.value=r.defaultValue,o;let t=r.innerType._zod.run(o,i);return t instanceof Promise?t.then(a=>Xc(a,r)):Xc(t,r)}});function Xc(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}s(Xc,"handleDefaultResult");var ko=v("$ZodPrefault",(e,r)=>{C.init(e,r),e._zod.optin="optional",U(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,i)=>(i.direction==="backward"||o.value===void 0&&(o.value=r.defaultValue),r.innerType._zod.run(o,i))}),wo=v("$ZodNonOptional",(e,r)=>{C.init(e,r),U(e._zod,"values",()=>{let o=r.innerType._zod.values;return o?new Set([...o].filter(i=>i!==void 0)):void 0}),e._zod.parse=(o,i)=>{let t=r.innerType._zod.run(o,i);return t instanceof Promise?t.then(a=>Hc(a,e)):Hc(t,e)}});function Hc(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}s(Hc,"handleNonOptionalResult");var xo=v("$ZodSuccess",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>{if(i.direction==="backward")throw new ye("ZodSuccess");let t=r.innerType._zod.run(o,i);return t instanceof Promise?t.then(a=>(o.value=a.issues.length===0,o)):(o.value=t.issues.length===0,o)}}),Io=v("$ZodCatch",(e,r)=>{C.init(e,r),U(e._zod,"optin",()=>r.innerType._zod.optin),U(e._zod,"optout",()=>r.innerType._zod.optout),U(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,i)=>{if(i.direction==="backward")return r.innerType._zod.run(o,i);let t=r.innerType._zod.run(o,i);return t instanceof Promise?t.then(a=>(o.value=a.value,a.issues.length&&(o.value=r.catchValue({...o,error:{issues:a.issues.map(c=>Y(c,i,Z()))},input:o.value}),o.issues=[]),o)):(o.value=t.value,t.issues.length&&(o.value=r.catchValue({...o,error:{issues:t.issues.map(a=>Y(a,i,Z()))},input:o.value}),o.issues=[]),o)}}),So=v("$ZodNaN",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),zo=v("$ZodPipe",(e,r)=>{C.init(e,r),U(e._zod,"values",()=>r.in._zod.values),U(e._zod,"optin",()=>r.in._zod.optin),U(e._zod,"optout",()=>r.out._zod.optout),U(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,i)=>{if(i.direction==="backward"){let a=r.out._zod.run(o,i);return a instanceof Promise?a.then(c=>dr(c,r.in,i)):dr(a,r.in,i)}let t=r.in._zod.run(o,i);return t instanceof Promise?t.then(a=>dr(a,r.out,i)):dr(t,r.out,i)}});function dr(e,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},o)}s(dr,"handlePipeResult");var pt=v("$ZodCodec",(e,r)=>{C.init(e,r),U(e._zod,"values",()=>r.in._zod.values),U(e._zod,"optin",()=>r.in._zod.optin),U(e._zod,"optout",()=>r.out._zod.optout),U(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,i)=>{if((i.direction||"forward")==="forward"){let a=r.in._zod.run(o,i);return a instanceof Promise?a.then(c=>pr(c,r,i)):pr(a,r,i)}else{let a=r.out._zod.run(o,i);return a instanceof Promise?a.then(c=>pr(c,r,i)):pr(a,r,i)}}});function pr(e,r,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){let t=r.transform(e.value,e);return t instanceof Promise?t.then(a=>mr(e,a,r.out,o)):mr(e,t,r.out,o)}else{let t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(a=>mr(e,a,r.in,o)):mr(e,t,r.in,o)}}s(pr,"handleCodecAResult");function mr(e,r,o,i){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:r,issues:e.issues},i)}s(mr,"handleCodecTxResult");var jo=v("$ZodReadonly",(e,r)=>{C.init(e,r),U(e._zod,"propValues",()=>r.innerType._zod.propValues),U(e._zod,"values",()=>r.innerType._zod.values),U(e._zod,"optin",()=>r.innerType?._zod?.optin),U(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(o,i)=>{if(i.direction==="backward")return r.innerType._zod.run(o,i);let t=r.innerType._zod.run(o,i);return t instanceof Promise?t.then(Qc):Qc(t)}});function Qc(e){return e.value=Object.freeze(e.value),e}s(Qc,"handleReadonlyResult");var Co=v("$ZodTemplateLiteral",(e,r)=>{C.init(e,r);let o=[];for(let i of r.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()}`);let t=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let a=t.startsWith("^")?1:0,c=t.endsWith("$")?t.length-1:t.length;o.push(t.slice(a,c))}else if(i===null||$n.has(typeof i))o.push(te(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(i,t)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",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:r.format??"template_literal",pattern:e._zod.pattern.source}),i)}),Po=v("$ZodFunction",(e,r)=>(C.init(e,r),e._def=r,e._zod.def=r,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...i){let t=e._def.input?Ht(e._def.input,i):i,a=Reflect.apply(o,this,t);return e._def.output?Ht(e._def.output,a):a}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let t=e._def.input?await Qt(e._def.input,i):i,a=await Reflect.apply(o,this,t);return e._def.output?await Qt(e._def.output,a):a}},e._zod.parse=(o,i)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{let i=e.constructor;return Array.isArray(o[0])?new i({type:"function",input:new yr({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new i({type:"function",input:o[0],output:e._def.output})},e.output=o=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:o})},e)),No=v("$ZodPromise",(e,r)=>{C.init(e,r),e._zod.parse=(o,i)=>Promise.resolve(o.value).then(t=>r.innerType._zod.run({value:t,issues:[]},i))}),Uo=v("$ZodLazy",(e,r)=>{C.init(e,r),U(e._zod,"innerType",()=>r.getter()),U(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),U(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),U(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),U(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(o,i)=>e._zod.innerType._zod.run(o,i)}),Do=v("$ZodCustom",(e,r)=>{E.init(e,r),C.init(e,r),e._zod.parse=(o,i)=>o,e._zod.check=o=>{let i=o.value,t=r.fn(i);if(t instanceof Promise)return t.then(a=>Yc(a,o,i,e));Yc(t,o,i,e)}});function Yc(e,r,o,i){if(!e){let t={code:"custom",input:o,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(t.params=i._zod.def.params),r.issues.push(Oe(t))}}s(Yc,"handleRefineResult");var yt={};he(yt,{ar:()=>Ao,az:()=>Eo,be:()=>Oo,bg:()=>To,ca:()=>Zo,cs:()=>Ro,da:()=>Vo,de:()=>Lo,en:()=>mt,eo:()=>Fo,es:()=>Bo,fa:()=>Mo,fi:()=>qo,fr:()=>Go,frCA:()=>Jo,he:()=>Wo,hu:()=>Ko,id:()=>Xo,is:()=>Ho,it:()=>Qo,ja:()=>Yo,ka:()=>ea,kh:()=>ta,km:()=>gt,ko:()=>ra,lt:()=>na,mk:()=>ia,ms:()=>oa,nl:()=>aa,no:()=>sa,ota:()=>ca,pl:()=>la,ps:()=>ua,pt:()=>da,ru:()=>pa,sl:()=>ma,sv:()=>ga,ta:()=>fa,th:()=>va,tr:()=>ha,ua:()=>ya,uk:()=>ht,ur:()=>ba,vi:()=>$a,yo:()=>wa,zhCN:()=>_a,zhTW:()=>ka});var Gd=s(()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return t=>{switch(t.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${k(t.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${a} ${t.maximum.toString()} ${c.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${a} ${t.minimum.toString()} ${c.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${t.prefix}"`:a.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${a.suffix}"`:a.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${a.includes}"`:a.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${a.pattern}`:`${i[a.format]??t.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${b(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Ao(){return{localeError:Gd()}}s(Ao,"default");var Jd=s(()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${t.expected}, daxil olan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${k(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${a}${t.maximum.toString()} ${c.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${a}${t.minimum.toString()} ${c.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${a.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:a.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${a.suffix}" il\u0259 bitm\u0259lidir`:a.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${a.includes}" daxil olmal\u0131d\u0131r`:a.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${a.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${i[a.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${b(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function Eo(){return{localeError:Jd()}}s(Eo,"default");function ou(e,r,o,i){let t=Math.abs(e),a=t%10,c=t%100;return c>=11&&c<=19?i:a===1?r:a>=2&&a<=4?o:i}s(ou,"getBelarusianPlural");var Wd=s(()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(t))return"\u043C\u0430\u0441\u0456\u045E";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return t=>{switch(t.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${k(t.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);if(c){let f=Number(t.maximum),l=ou(f,c.unit.one,c.unit.few,c.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${c.verb} ${a}${t.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);if(c){let f=Number(t.minimum),l=ou(f,c.unit.one,c.unit.few,c.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${c.verb} ${a}${t.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${a.includes}"`:a.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${i[a.format]??t.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${b(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function Oo(){return{localeError:Wd()}}s(Oo,"default");var Kd=s(e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(e))return"\u043C\u0430\u0441\u0438\u0432";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},"parsedType"),Xd=s(()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(i){return e[i]??null}s(r,"getSizing");let o={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${Kd(i.input)}`;case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${k(i.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${b(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",a=r(i.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${t}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",a=r(i.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${t}${i.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${t}${i.minimum.toString()}`}case"invalid_format":{let t=i;if(t.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${t.prefix}"`;if(t.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${t.suffix}"`;if(t.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${t.includes}"`;if(t.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${t.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return t.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),t.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),t.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),t.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),t.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${o[t.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${i.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u043E\u0432\u0435":""}: ${b(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function To(){return{localeError:Xd()}}s(To,"default");var Hd=s(()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${t.expected}, s'ha rebut ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${k(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${b(t.values," o ")}`;case"too_big":{let a=t.inclusive?"com a m\xE0xim":"menys de",c=r(t.origin);return c?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${a} ${t.maximum.toString()} ${c.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?"com a m\xEDnim":"m\xE9s de",c=r(t.origin);return c?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${a} ${t.minimum.toString()} ${c.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${a.prefix}"`:a.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format inv\xE0lid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${a.pattern}`:`Format inv\xE0lid per a ${i[a.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function Zo(){return{localeError:Hd()}}s(Zo,"default");var Qd=s(()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(t))return"pole";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return t=>{switch(t.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${t.expected}, obdr\u017Eeno ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${k(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${a}${t.maximum.toString()} ${c.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${a}${t.minimum.toString()} ${c.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${a.prefix}"`:a.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${a.suffix}"`:a.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${a.includes}"`:a.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${a.pattern}`:`Neplatn\xFD form\xE1t ${i[a.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${b(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function Ro(){return{localeError:Qd()}}s(Ro,"default");var Yd=s(()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},r={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};function o(c){return e[c]??null}s(o,"getSizing");function i(c){return r[c]??c}s(i,"getTypeName");let t=s(c=>{let f=typeof c;switch(f){case"number":return Number.isNaN(c)?"NaN":"tal";case"object":return Array.isArray(c)?"liste":c===null?"null":Object.getPrototypeOf(c)!==Object.prototype&&c.constructor?c.constructor.name:"objekt"}return f},"parsedType"),a={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\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return c=>{switch(c.code){case"invalid_type":return`Ugyldigt input: forventede ${i(c.expected)}, fik ${i(t(c.input))}`;case"invalid_value":return c.values.length===1?`Ugyldig v\xE6rdi: forventede ${k(c.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${b(c.values,"|")}`;case"too_big":{let f=c.inclusive?"<=":"<",l=o(c.origin),g=i(c.origin);return l?`For stor: forventede ${g??"value"} ${l.verb} ${f} ${c.maximum.toString()} ${l.unit??"elementer"}`:`For stor: forventede ${g??"value"} havde ${f} ${c.maximum.toString()}`}case"too_small":{let f=c.inclusive?">=":">",l=o(c.origin),g=i(c.origin);return l?`For lille: forventede ${g} ${l.verb} ${f} ${c.minimum.toString()} ${l.unit}`:`For lille: forventede ${g} havde ${f} ${c.minimum.toString()}`}case"invalid_format":{let f=c;return f.format==="starts_with"?`Ugyldig streng: skal starte med "${f.prefix}"`:f.format==="ends_with"?`Ugyldig streng: skal ende med "${f.suffix}"`:f.format==="includes"?`Ugyldig streng: skal indeholde "${f.includes}"`:f.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${f.pattern}`:`Ugyldig ${a[f.format]??c.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${c.divisor}`;case"unrecognized_keys":return`${c.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${b(c.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${c.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${c.origin}`;default:return"Ugyldigt input"}}},"error");function Vo(){return{localeError:Yd()}}s(Vo,"default");var ep=s(()=>{let 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 r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"Zahl";case"object":{if(Array.isArray(t))return"Array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return t=>{switch(t.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${t.expected}, erhalten ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${k(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ${c.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ist`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ${c.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ist`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ung\xFCltiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ung\xFCltiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ung\xFCltiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${a.pattern} entsprechen`:`Ung\xFCltig: ${i[a.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${b(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function Lo(){return{localeError:ep()}}s(Lo,"default");var tp=s(e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},"parsedType"),rp=s(()=>{let 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"}};function r(i){return e[i]??null}s(r,"getSizing");let o={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"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${tp(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${k(i.values[0])}`:`Invalid option: expected one of ${b(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",a=r(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${t}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",a=r(i.origin);return a?`Too small: expected ${i.origin} to have ${t}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${t}${i.minimum.toString()}`}case"invalid_format":{let t=i;return t.format==="starts_with"?`Invalid string: must start with "${t.prefix}"`:t.format==="ends_with"?`Invalid string: must end with "${t.suffix}"`:t.format==="includes"?`Invalid string: must include "${t.includes}"`:t.format==="regex"?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${o[t.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${b(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}},"error");function mt(){return{localeError:rp()}}s(mt,"default");var np=s(e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},"parsedType"),ip=s(()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(i){return e[i]??null}s(r,"getSizing");let o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return i=>{switch(i.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${i.expected}, ricevi\u011Dis ${np(i.input)}`;case"invalid_value":return i.values.length===1?`Nevalida enigo: atendi\u011Dis ${k(i.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${b(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",a=r(i.origin);return a?`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${t}${i.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",a=r(i.origin);return a?`Tro malgranda: atendi\u011Dis ke ${i.origin} havu ${t}${i.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${i.origin} estu ${t}${i.minimum.toString()}`}case"invalid_format":{let t=i;return t.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${t.prefix}"`:t.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${t.suffix}"`:t.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${o[t.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} \u015Dlosilo${i.keys.length>1?"j":""}: ${b(i.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}},"error");function Fo(){return{localeError:ip()}}s(Fo,"default");var op=s(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},r={string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};function o(c){return e[c]??null}s(o,"getSizing");function i(c){return r[c]??c}s(i,"getTypeName");let t=s(c=>{let f=typeof c;switch(f){case"number":return Number.isNaN(c)?"NaN":"number";case"object":return Array.isArray(c)?"array":c===null?"null":Object.getPrototypeOf(c)!==Object.prototype?c.constructor.name:"object"}return f},"parsedType"),a={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return c=>{switch(c.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${i(c.expected)}, recibido ${i(t(c.input))}`;case"invalid_value":return c.values.length===1?`Entrada inv\xE1lida: se esperaba ${k(c.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${b(c.values,"|")}`;case"too_big":{let f=c.inclusive?"<=":"<",l=o(c.origin),g=i(c.origin);return l?`Demasiado grande: se esperaba que ${g??"valor"} tuviera ${f}${c.maximum.toString()} ${l.unit??"elementos"}`:`Demasiado grande: se esperaba que ${g??"valor"} fuera ${f}${c.maximum.toString()}`}case"too_small":{let f=c.inclusive?">=":">",l=o(c.origin),g=i(c.origin);return l?`Demasiado peque\xF1o: se esperaba que ${g} tuviera ${f}${c.minimum.toString()} ${l.unit}`:`Demasiado peque\xF1o: se esperaba que ${g} fuera ${f}${c.minimum.toString()}`}case"invalid_format":{let f=c;return f.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${f.prefix}"`:f.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${f.suffix}"`:f.format==="includes"?`Cadena inv\xE1lida: debe incluir "${f.includes}"`:f.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${f.pattern}`:`Inv\xE1lido ${a[f.format]??c.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${c.divisor}`;case"unrecognized_keys":return`Llave${c.keys.length>1?"s":""} desconocida${c.keys.length>1?"s":""}: ${b(c.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i(c.origin)}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i(c.origin)}`;default:return"Entrada inv\xE1lida"}}},"error");function Bo(){return{localeError:op()}}s(Bo,"default");var ap=s(()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(t))return"\u0622\u0631\u0627\u06CC\u0647";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return t=>{switch(t.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${o(t.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${k(t.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${b(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${t.maximum.toString()} ${c.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${a}${t.minimum.toString()} ${c.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${a}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:a.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:a.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${a.includes}" \u0628\u0627\u0634\u062F`:a.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${a.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${i[a.format]??t.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${b(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function Mo(){return{localeError:ap()}}s(Mo,"default");var sp=s(()=>{let e={string:{unit:"merkki\xE4",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\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return t=>{switch(t.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${t.expected}, oli ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${k(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Liian suuri: ${c.subject} t\xE4ytyy olla ${a}${t.maximum.toString()} ${c.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Liian pieni: ${c.subject} t\xE4ytyy olla ${a}${t.minimum.toString()} ${c.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${a.includes}"`:a.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${a.pattern}`:`Virheellinen ${i[a.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${b(t.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\xF6te"}}},"error");function qo(){return{localeError:sp()}}s(qo,"default");var cp=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombre";case"object":{if(Array.isArray(t))return"tableau";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return t=>{switch(t.code){case"invalid_type":return`Entr\xE9e invalide : ${t.expected} attendu, ${o(t.input)} re\xE7u`;case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${k(t.values[0])} attendu`:`Option invalide : une valeur parmi ${b(t.values,"|")} attendue`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Trop grand : ${t.origin??"valeur"} doit ${c.verb} ${a}${t.maximum.toString()} ${c.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${t.origin??"valeur"} doit \xEAtre ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Trop petit : ${t.origin} doit ${c.verb} ${a}${t.minimum.toString()} ${c.unit}`:`Trop petit : ${t.origin} doit \xEAtre ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${a.pattern}`:`${i[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${b(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}},"error");function Go(){return{localeError:cp()}}s(Go,"default");var up=s(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return t=>{switch(t.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${t.expected}, re\xE7u ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${k(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"\u2264":"<",c=r(t.origin);return c?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${a}${t.maximum.toString()} ${c.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?"\u2265":">",c=r(t.origin);return c?`Trop petit : attendu que ${t.origin} ait ${a}${t.minimum.toString()} ${c.unit}`:`Trop petit : attendu que ${t.origin} soit ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${a.pattern}`:`${i[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${b(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}},"error");function Jo(){return{localeError:up()}}s(Jo,"default");var lp=s(()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},o=s(g=>g?e[g]:void 0,"typeEntry"),i=s(g=>{let h=o(g);return h?h.label:g??e.unknown.label},"typeLabel"),t=s(g=>`\u05D4${i(g)}`,"withDefinite"),a=s(g=>(o(g)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),c=s(g=>g?r[g]??null:null,"getSizing"),f=s(g=>{let h=typeof g;switch(h){case"number":return Number.isNaN(g)?"NaN":"number";case"object":return Array.isArray(g)?"array":g===null?"null":Object.getPrototypeOf(g)!==Object.prototype&&g.constructor?g.constructor.name:"object";default:return h}},"parsedType"),l={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",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:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}};return g=>{switch(g.code){case"invalid_type":{let h=g.expected,p=i(h),I=f(g.input),_=e[I]?.label??I;return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${_}`}case"invalid_value":{if(g.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${k(g.values[0])}`;let h=g.values.map(_=>k(_));if(g.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${h[0]} \u05D0\u05D5 ${h[1]}`;let p=h[h.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${h.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let h=c(g.origin),p=t(g.origin??"value");if(g.origin==="string")return`${h?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${g.maximum.toString()} ${h?.unit??""} ${g.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(g.origin==="number"){let d=g.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${g.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${g.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}`}if(g.origin==="array"||g.origin==="set"){let d=g.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",u=g.inclusive?`${g.maximum} ${h?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${g.maximum} ${h?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${d} \u05DC\u05D4\u05DB\u05D9\u05DC ${u}`.trim()}let I=g.inclusive?"<=":"<",_=a(g.origin??"value");return h?.unit?`${h.longLabel} \u05DE\u05D3\u05D9: ${p} ${_} ${I}${g.maximum.toString()} ${h.unit}`:`${h?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${_} ${I}${g.maximum.toString()}`}case"too_small":{let h=c(g.origin),p=t(g.origin??"value");if(g.origin==="string")return`${h?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${g.minimum.toString()} ${h?.unit??""} ${g.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(g.origin==="number"){let d=g.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${g.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${g.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}`}if(g.origin==="array"||g.origin==="set"){let d=g.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(g.minimum===1&&g.inclusive){let m=(g.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${d} \u05DC\u05D4\u05DB\u05D9\u05DC ${m}`}let u=g.inclusive?`${g.minimum} ${h?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${g.minimum} ${h?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${d} \u05DC\u05D4\u05DB\u05D9\u05DC ${u}`.trim()}let I=g.inclusive?">=":">",_=a(g.origin??"value");return h?.unit?`${h.shortLabel} \u05DE\u05D3\u05D9: ${p} ${_} ${I}${g.minimum.toString()} ${h.unit}`:`${h?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${_} ${I}${g.minimum.toString()}`}case"invalid_format":{let h=g;if(h.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${h.prefix}"`;if(h.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${h.suffix}"`;if(h.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${h.includes}"`;if(h.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${h.pattern}`;let p=l[h.format],I=p?.label??h.format,d=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${I} \u05DC\u05D0 ${d}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${g.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${g.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${g.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${b(g.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t(g.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function Wo(){return{localeError:lp()}}s(Wo,"default");var dp=s(()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(t))return"t\xF6mb";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return t=>{switch(t.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${t.expected}, a kapott \xE9rt\xE9k ${o(t.input)}`;case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${k(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${a}${t.maximum.toString()} ${c.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${a}${t.minimum.toString()} ${c.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\xC9rv\xE9nytelen string: "${a.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:a.format==="ends_with"?`\xC9rv\xE9nytelen string: "${a.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:a.format==="includes"?`\xC9rv\xE9nytelen string: "${a.includes}" \xE9rt\xE9ket kell tartalmaznia`:a.format==="regex"?`\xC9rv\xE9nytelen string: ${a.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${i[a.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function Ko(){return{localeError:dp()}}s(Ko,"default");var pp=s(()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak valid: diharapkan ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${k(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${a}${t.maximum.toString()} ${c.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Terlalu kecil: diharapkan ${t.origin} memiliki ${a}${t.minimum.toString()} ${c.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${i[a.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}},"error");function Xo(){return{localeError:pp()}}s(Xo,"default");var mp=s(e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"n\xFAmer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},"parsedType"),gp=s(()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(i){return e[i]??null}s(r,"getSizing");let o={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",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\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",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\xF6lugildi",jwt:"JWT",template_literal:"gildi"};return i=>{switch(i.code){case"invalid_type":return`Rangt gildi: \xDE\xFA sl\xF3st inn ${mp(i.input)} \xFEar sem \xE1 a\xF0 vera ${i.expected}`;case"invalid_value":return i.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${k(i.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${b(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",a=r(i.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin??"gildi"} hafi ${t}${i.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin??"gildi"} s\xE9 ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",a=r(i.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} hafi ${t}${i.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} s\xE9 ${t}${i.minimum.toString()}`}case"invalid_format":{let t=i;return t.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${t.prefix}"`:t.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${t.suffix}"`:t.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${t.includes}"`:t.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${t.pattern}`:`Rangt ${o[t.format]??i.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${b(i.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${i.origin}`;default:return"Rangt gildi"}}},"error");function Ho(){return{localeError:gp()}}s(Ho,"default");var fp=s(()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numero";case"object":{if(Array.isArray(t))return"vettore";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input non valido: atteso ${t.expected}, ricevuto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input non valido: atteso ${k(t.values[0])}`:`Opzione non valida: atteso uno tra ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Troppo grande: ${t.origin??"valore"} deve avere ${a}${t.maximum.toString()} ${c.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Troppo piccolo: ${t.origin} deve avere ${a}${t.minimum.toString()} ${c.unit}`:`Troppo piccolo: ${t.origin} deve essere ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${i[a.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${b(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}},"error");function Qo(){return{localeError:fp()}}s(Qo,"default");var vp=s(()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(t))return"\u914D\u5217";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return t=>{switch(t.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${o(t.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${k(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${b(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let a=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",c=r(t.origin);return c?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${c.unit??"\u8981\u7D20"}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let a=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",c=r(t.origin);return c?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${c.unit}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${a.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${i[a.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${t.keys.length>1?"\u7FA4":""}: ${b(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function Yo(){return{localeError:vp()}}s(Yo,"default");var hp=s(e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8";case"object":{if(Array.isArray(e))return"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0"}[r]??r},"parsedType"),yp=s(()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(i){return e[i]??null}s(r,"getSizing");let o={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"};return i=>{switch(i.code){case"invalid_type":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${hp(i.input)}`;case"invalid_value":return i.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${k(i.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${b(i.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let t=i.inclusive?"<=":"<",a=r(i.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${t}${i.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",a=r(i.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} ${a.verb} ${t}${i.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} \u10D8\u10E7\u10DD\u10E1 ${t}${i.minimum.toString()}`}case"invalid_format":{let t=i;return t.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${t.prefix}"-\u10D8\u10D7`:t.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${t.suffix}"-\u10D8\u10D7`:t.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${t.includes}"-\u10E1`:t.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${t.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${o[t.format]??i.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${i.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${i.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${b(i.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${i.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${i.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function ea(){return{localeError:yp()}}s(ea,"default");var bp=s(()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(t))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(t===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return t=>{switch(t.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${k(t.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${t.maximum.toString()} ${c.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${a} ${t.minimum.toString()} ${c.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${a.prefix}"`:a.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${a.suffix}"`:a.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${a.includes}"`:a.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${a.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${i[a.format]??t.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${b(t.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},"error");function gt(){return{localeError:bp()}}s(gt,"default");function ta(){return gt()}s(ta,"default");var $p=s(()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return t=>{switch(t.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${o(t.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${k(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${b(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let a=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",c=a==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",f=r(t.origin),l=f?.unit??"\uC694\uC18C";return f?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${l} ${a}${c}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${a}${c}`}case"too_small":{let a=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",c=a==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",f=r(t.origin),l=f?.unit??"\uC694\uC18C";return f?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${l} ${a}${c}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${a}${c}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:a.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${a.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${i[a.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${b(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function ra(){return{localeError:$p()}}s(ra,"default");var _p=s(e=>vt(typeof e,e),"parsedType"),vt=s((e,r=void 0)=>{switch(e){case"number":return Number.isNaN(r)?"NaN":"skai\u010Dius";case"bigint":return"sveikasis skai\u010Dius";case"string":return"eilut\u0117";case"boolean":return"login\u0117 reik\u0161m\u0117";case"undefined":case"void":return"neapibr\u0117\u017Eta reik\u0161m\u0117";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return r===void 0?"ne\u017Einomas objektas":r===null?"nulin\u0117 reik\u0161m\u0117":Array.isArray(r)?"masyvas":Object.getPrototypeOf(r)!==Object.prototype&&r.constructor?r.constructor.name:"objektas";case"null":return"nulin\u0117 reik\u0161m\u0117"}return e},"parsedTypeFromType"),ft=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function au(e){let r=Math.abs(e),o=r%10,i=r%100;return i>=11&&i<=19||o===0?"many":o===1?"one":"few"}s(au,"getUnitTypeFromNumber");var kp=s(()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(i,t,a,c){let f=e[i]??null;return f===null?f:{unit:f.unit[t],verb:f.verb[c][a?"inclusive":"notInclusive"]}}s(r,"getSizing");let o={regex:"\u012Fvestis",email:"el. pa\u0161to 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\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"};return i=>{switch(i.code){case"invalid_type":return`Gautas tipas ${_p(i.input)}, o tik\u0117tasi - ${vt(i.expected)}`;case"invalid_value":return i.values.length===1?`Privalo b\u016Bti ${k(i.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${b(i.values,"|")} pasirinkim\u0173`;case"too_big":{let t=vt(i.origin),a=r(i.origin,au(Number(i.maximum)),i.inclusive??!1,"smaller");if(a?.verb)return`${ft(t??i.origin??"reik\u0161m\u0117")} ${a.verb} ${i.maximum.toString()} ${a.unit??"element\u0173"}`;let c=i.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ft(t??i.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${i.maximum.toString()} ${a?.unit}`}case"too_small":{let t=vt(i.origin),a=r(i.origin,au(Number(i.minimum)),i.inclusive??!1,"bigger");if(a?.verb)return`${ft(t??i.origin??"reik\u0161m\u0117")} ${a.verb} ${i.minimum.toString()} ${a.unit??"element\u0173"}`;let c=i.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ft(t??i.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${i.minimum.toString()} ${a?.unit}`}case"invalid_format":{let t=i;return t.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${t.prefix}"`:t.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${t.suffix}"`:t.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${t.includes}"`:t.format==="regex"?`Eilut\u0117 privalo atitikti ${t.pattern}`:`Neteisingas ${o[t.format]??i.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${b(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let t=vt(i.origin);return`${ft(t??i.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function na(){return{localeError:kp()}}s(na,"default");var wp=s(()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(t))return"\u043D\u0438\u0437\u0430";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return t=>{switch(t.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Invalid input: expected ${k(t.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${a}${t.maximum.toString()} ${c.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${a}${t.minimum.toString()} ${c.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${a.pattern}`:`Invalid ${i[a.format]??t.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${b(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function ia(){return{localeError:wp()}}s(ia,"default");var xp=s(()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombor";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Input tidak sah: dijangka ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${k(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Terlalu besar: dijangka ${t.origin??"nilai"} ${c.verb} ${a}${t.maximum.toString()} ${c.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Terlalu kecil: dijangka ${t.origin} ${c.verb} ${a}${t.minimum.toString()} ${c.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${i[a.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${b(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}},"error");function oa(){return{localeError:xp()}}s(oa,"default");var Ip=s(()=>{let e={string:{unit:"tekens",verb:"te hebben"},file:{unit:"bytes",verb:"te hebben"},array:{unit:"elementen",verb:"te hebben"},set:{unit:"elementen",verb:"te hebben"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"getal";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return t=>{switch(t.code){case"invalid_type":return`Ongeldige invoer: verwacht ${t.expected}, ontving ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${k(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Te groot: verwacht dat ${t.origin??"waarde"} ${c.verb} ${a}${t.maximum.toString()} ${c.unit??"elementen"}`:`Te groot: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} is`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Te klein: verwacht dat ${t.origin} ${c.verb} ${a}${t.minimum.toString()} ${c.unit}`:`Te klein: verwacht dat ${t.origin} ${a}${t.minimum.toString()} is`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${i[a.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}},"error");function aa(){return{localeError:Ip()}}s(aa,"default");var Sp=s(()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"tall";case"object":{if(Array.isArray(t))return"liste";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={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\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`Ugyldig input: forventet ${t.expected}, fikk ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${k(t.values[0])}`:`Ugyldig valg: forventet en av ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${a}${t.maximum.toString()} ${c.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`For lite(n): forventet ${t.origin} til \xE5 ha ${a}${t.minimum.toString()} ${c.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${i[a.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${b(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}},"error");function sa(){return{localeError:Sp()}}s(sa,"default");var zp=s(()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numara";case"object":{if(Array.isArray(t))return"saf";if(t===null)return"gayb";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return t=>{switch(t.code){case"invalid_type":return`F\xE2sit giren: umulan ${t.expected}, al\u0131nan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${k(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${a}${t.maximum.toString()} ${c.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${a}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${a}${t.minimum.toString()} ${c.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${a}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let a=t;return a.format==="starts_with"?`F\xE2sit metin: "${a.prefix}" ile ba\u015Flamal\u0131.`:a.format==="ends_with"?`F\xE2sit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`F\xE2sit metin: "${a.includes}" ihtiv\xE2 etmeli.`:a.format==="regex"?`F\xE2sit metin: ${a.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${i[a.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function ca(){return{localeError:zp()}}s(ca,"default");var jp=s(()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(t))return"\u0627\u0631\u06D0";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return t=>{switch(t.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${o(t.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${k(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${b(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${t.maximum.toString()} ${c.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${a}${t.minimum.toString()} ${c.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${a}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:a.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:a.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${a.includes}" \u0648\u0644\u0631\u064A`:a.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${a.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${i[a.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${b(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function ua(){return{localeError:jp()}}s(ua,"default");var Cp=s(()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"liczba";case"object":{if(Array.isArray(t))return"tablica";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"wyra\u017Cenie",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\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return t=>{switch(t.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${t.expected}, otrzymano ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${k(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${t.maximum.toString()} ${c.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${t.minimum.toString()} ${c.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${a.prefix}"`:a.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${a.suffix}"`:a.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${a.includes}"`:a.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${a.pattern}`:`Nieprawid\u0142ow(y/a/e) ${i[a.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function la(){return{localeError:Cp()}}s(la,"default");var Pp=s(()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(t))return"array";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"padr\xE3o",email:"endere\xE7o 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\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o 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\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${t.expected}, recebido ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${k(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${a}${t.maximum.toString()} ${c.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Muito pequeno: esperado que ${t.origin} tivesse ${a}${t.minimum.toString()} ${c.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`${i[a.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${b(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}},"error");function da(){return{localeError:Pp()}}s(da,"default");function su(e,r,o,i){let t=Math.abs(e),a=t%10,c=t%100;return c>=11&&c<=19?i:a===1?r:a>=2&&a<=4?o:i}s(su,"getRussianPlural");var Np=s(()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(t))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return t=>{switch(t.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${o(t.input)}`;case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${k(t.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);if(c){let f=Number(t.maximum),l=su(f,c.unit.one,c.unit.few,c.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${a}${t.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);if(c){let f=Number(t.minimum),l=su(f,c.unit.one,c.unit.few,c.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${a}${t.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${i[a.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${b(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},"error");function pa(){return{localeError:Np()}}s(pa,"default");var Up=s(()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(t))return"tabela";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",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 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return t=>{switch(t.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${t.expected}, prejeto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${k(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${a}${t.maximum.toString()} ${c.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${a}${t.minimum.toString()} ${c.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${i[a.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${b(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}},"error");function ma(){return{localeError:Up()}}s(ma,"default");var Dp=s(()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"antal";case"object":{if(Array.isArray(t))return"lista";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"regulj\xE4rt 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\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return t=>{switch(t.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${t.expected}, fick ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${k(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${a}${t.maximum.toString()} ${c.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${a}${t.minimum.toString()} ${c.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${a.includes}"`:a.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${a.pattern}"`:`Ogiltig(t) ${i[a.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${b(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function ga(){return{localeError:Dp()}}s(ga,"default");var Ap=s(()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(t))return"\u0B85\u0BA3\u0BBF";if(t===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${k(t.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${b(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${a}${t.maximum.toString()} ${c.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${a}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${a}${t.minimum.toString()} ${c.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${a}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${a.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${i[a.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${b(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}},"error");function fa(){return{localeError:Ap()}}s(fa,"default");var Ep=s(()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(t))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(t===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return t=>{switch(t.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${o(t.input)}`;case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${k(t.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",c=r(t.origin);return c?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${t.maximum.toString()} ${c.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",c=r(t.origin);return c?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${t.minimum.toString()} ${c.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${a.prefix}"`:a.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${a.suffix}"`:a.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${a.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:a.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${a.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${i[a.format]??t.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${t.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${b(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function va(){return{localeError:Ep()}}s(va,"default");var Op=s(e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},"parsedType"),Tp=s(()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(i){return e[i]??null}s(r,"getSizing");let o={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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return i=>{switch(i.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${i.expected}, al\u0131nan ${Op(i.input)}`;case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${k(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${b(i.values,"|")}`;case"too_big":{let t=i.inclusive?"<=":"<",a=r(i.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${t}${i.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${t}${i.maximum.toString()}`}case"too_small":{let t=i.inclusive?">=":">",a=r(i.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${t}${i.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${t}${i.minimum.toString()}`}case"invalid_format":{let t=i;return t.format==="starts_with"?`Ge\xE7ersiz metin: "${t.prefix}" ile ba\u015Flamal\u0131`:t.format==="ends_with"?`Ge\xE7ersiz metin: "${t.suffix}" ile bitmeli`:t.format==="includes"?`Ge\xE7ersiz metin: "${t.includes}" i\xE7ermeli`:t.format==="regex"?`Ge\xE7ersiz metin: ${t.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${o[t.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${b(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function ha(){return{localeError:Tp()}}s(ha,"default");var Zp=s(()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(t))return"\u043C\u0430\u0441\u0438\u0432";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return t=>{switch(t.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${o(t.input)}`;case"invalid_value":return t.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${k(t.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${c.verb} ${a}${t.maximum.toString()} ${c.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${c.verb} ${a}${t.minimum.toString()} ${c.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${i[a.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${b(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},"error");function ht(){return{localeError:Zp()}}s(ht,"default");function ya(){return ht()}s(ya,"default");var Rp=s(()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(t))return"\u0622\u0631\u06D2";if(t===null)return"\u0646\u0644";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return t=>{switch(t.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${o(t.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${k(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${b(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${a}${t.maximum.toString()} ${c.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${a}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${a}${t.minimum.toString()} ${c.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${a}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${a.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${i[a.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${t.keys.length>1?"\u0632":""}: ${b(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function ba(){return{localeError:Rp()}}s(ba,"default");var Vp=s(()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(t))return"m\u1EA3ng";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return t=>{switch(t.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${o(t.input)}`;case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${k(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${c.verb} ${a}${t.maximum.toString()} ${c.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${c.verb} ${a}${t.minimum.toString()} ${c.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${a.prefix}"`:a.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${a.suffix}"`:a.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${a.includes}"`:a.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${a.pattern}`:`${i[a.format]??t.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${b(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function $a(){return{localeError:Vp()}}s($a,"default");var Lp=s(()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(t))return"\u6570\u7EC4";if(t===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return t=>{switch(t.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${k(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${a}${t.maximum.toString()} ${c.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${a}${t.minimum.toString()} ${c.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.prefix}" \u5F00\u5934`:a.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.suffix}" \u7ED3\u5C3E`:a.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${a.pattern}`:`\u65E0\u6548${i[a.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${b(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function _a(){return{localeError:Lp()}}s(_a,"default");var Fp=s(()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return t=>{switch(t.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${t.expected}\uFF0C\u4F46\u6536\u5230 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${k(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${a}${t.maximum.toString()} ${c.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${a}${t.minimum.toString()} ${c.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.prefix}" \u958B\u982D`:a.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.suffix}" \u7D50\u5C3E`:a.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${a.pattern}`:`\u7121\u6548\u7684 ${i[a.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${b(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function ka(){return{localeError:Fp()}}s(ka,"default");var Bp=s(()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(t){return e[t]??null}s(r,"getSizing");let o=s(t=>{let a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"n\u1ECD\u0301mb\xE0";case"object":{if(Array.isArray(t))return"akop\u1ECD";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},"parsedType"),i={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"};return t=>{switch(t.code){case"invalid_type":return`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${o(t.input)}`;case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${k(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${b(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",c=r(t.origin);return c?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${c.verb} ${a}${t.maximum} ${c.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${t.maximum}`}case"too_small":{let a=t.inclusive?">=":">",c=r(t.origin);return c?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${c.verb} ${a}${t.minimum} ${c.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${t.minimum}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${a.prefix}"`:a.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${a.suffix}"`:a.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${a.includes}"`:a.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${a.pattern}`:`A\u1E63\xEC\u1E63e: ${i[a.format]??t.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${b(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function wa(){return{localeError:Bp()}}s(wa,"default");var cu,xa=Symbol("ZodOutput"),Ia=Symbol("ZodInput"),Sa=class Sa{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...o){let i=o[0];if(this._map.set(r,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,r)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let o=this._map.get(r);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(r),this}get(r){let o=r._zod.parent;if(o){let i={...this.get(o)??{}};delete i.id;let t={...i,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};s(Sa,"$ZodRegistry");var Fe=Sa;function br(){return new Fe}s(br,"registry");(cu=globalThis).__zod_globalRegistry??(cu.__zod_globalRegistry=br());var M=globalThis.__zod_globalRegistry;function za(e,r){return new e({type:"string",...w(r)})}s(za,"_string");function ja(e,r){return new e({type:"string",coerce:!0,...w(r)})}s(ja,"_coercedString");function $r(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...w(r)})}s($r,"_email");function bt(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...w(r)})}s(bt,"_guid");function _r(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...w(r)})}s(_r,"_uuid");function kr(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...w(r)})}s(kr,"_uuidv4");function wr(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...w(r)})}s(wr,"_uuidv6");function xr(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...w(r)})}s(xr,"_uuidv7");function $t(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...w(r)})}s($t,"_url");function Ir(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...w(r)})}s(Ir,"_emoji");function Sr(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...w(r)})}s(Sr,"_nanoid");function zr(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...w(r)})}s(zr,"_cuid");function jr(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...w(r)})}s(jr,"_cuid2");function Cr(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...w(r)})}s(Cr,"_ulid");function Pr(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...w(r)})}s(Pr,"_xid");function Nr(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...w(r)})}s(Nr,"_ksuid");function Ur(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...w(r)})}s(Ur,"_ipv4");function Dr(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...w(r)})}s(Dr,"_ipv6");function Ca(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...w(r)})}s(Ca,"_mac");function Ar(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...w(r)})}s(Ar,"_cidrv4");function Er(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...w(r)})}s(Er,"_cidrv6");function Or(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...w(r)})}s(Or,"_base64");function Tr(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...w(r)})}s(Tr,"_base64url");function Zr(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...w(r)})}s(Zr,"_e164");function Rr(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...w(r)})}s(Rr,"_jwt");var Pa={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Na(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...w(r)})}s(Na,"_isoDateTime");function Ua(e,r){return new e({type:"string",format:"date",check:"string_format",...w(r)})}s(Ua,"_isoDate");function Da(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...w(r)})}s(Da,"_isoTime");function Aa(e,r){return new e({type:"string",format:"duration",check:"string_format",...w(r)})}s(Aa,"_isoDuration");function Ea(e,r){return new e({type:"number",checks:[],...w(r)})}s(Ea,"_number");function Oa(e,r){return new e({type:"number",coerce:!0,checks:[],...w(r)})}s(Oa,"_coercedNumber");function Ta(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...w(r)})}s(Ta,"_int");function Za(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...w(r)})}s(Za,"_float32");function Ra(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...w(r)})}s(Ra,"_float64");function Va(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...w(r)})}s(Va,"_int32");function La(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...w(r)})}s(La,"_uint32");function Fa(e,r){return new e({type:"boolean",...w(r)})}s(Fa,"_boolean");function Ba(e,r){return new e({type:"boolean",coerce:!0,...w(r)})}s(Ba,"_coercedBoolean");function Ma(e,r){return new e({type:"bigint",...w(r)})}s(Ma,"_bigint");function qa(e,r){return new e({type:"bigint",coerce:!0,...w(r)})}s(qa,"_coercedBigint");function Ga(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...w(r)})}s(Ga,"_int64");function Ja(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...w(r)})}s(Ja,"_uint64");function Wa(e,r){return new e({type:"symbol",...w(r)})}s(Wa,"_symbol");function Ka(e,r){return new e({type:"undefined",...w(r)})}s(Ka,"_undefined");function Xa(e,r){return new e({type:"null",...w(r)})}s(Xa,"_null");function Ha(e){return new e({type:"any"})}s(Ha,"_any");function Qa(e){return new e({type:"unknown"})}s(Qa,"_unknown");function Ya(e,r){return new e({type:"never",...w(r)})}s(Ya,"_never");function es(e,r){return new e({type:"void",...w(r)})}s(es,"_void");function ts(e,r){return new e({type:"date",...w(r)})}s(ts,"_date");function rs(e,r){return new e({type:"date",coerce:!0,...w(r)})}s(rs,"_coercedDate");function ns(e,r){return new e({type:"nan",...w(r)})}s(ns,"_nan");function pe(e,r){return new cr({check:"less_than",...w(r),value:e,inclusive:!1})}s(pe,"_lt");function ne(e,r){return new cr({check:"less_than",...w(r),value:e,inclusive:!0})}s(ne,"_lte");function me(e,r){return new ur({check:"greater_than",...w(r),value:e,inclusive:!1})}s(me,"_gt");function K(e,r){return new ur({check:"greater_than",...w(r),value:e,inclusive:!0})}s(K,"_gte");function is(e){return me(0,e)}s(is,"_positive");function os(e){return pe(0,e)}s(os,"_negative");function as(e){return ne(0,e)}s(as,"_nonpositive");function ss(e){return K(0,e)}s(ss,"_nonnegative");function Ce(e,r){return new ii({check:"multiple_of",...w(r),value:e})}s(Ce,"_multipleOf");function Be(e,r){return new si({check:"max_size",...w(r),maximum:e})}s(Be,"_maxSize");function Pe(e,r){return new ci({check:"min_size",...w(r),minimum:e})}s(Pe,"_minSize");function _t(e,r){return new ui({check:"size_equals",...w(r),size:e})}s(_t,"_size");function Me(e,r){return new li({check:"max_length",...w(r),maximum:e})}s(Me,"_maxLength");function xe(e,r){return new di({check:"min_length",...w(r),minimum:e})}s(xe,"_minLength");function qe(e,r){return new pi({check:"length_equals",...w(r),length:e})}s(qe,"_length");function kt(e,r){return new mi({check:"string_format",format:"regex",...w(r),pattern:e})}s(kt,"_regex");function wt(e){return new gi({check:"string_format",format:"lowercase",...w(e)})}s(wt,"_lowercase");function xt(e){return new fi({check:"string_format",format:"uppercase",...w(e)})}s(xt,"_uppercase");function It(e,r){return new vi({check:"string_format",format:"includes",...w(r),includes:e})}s(It,"_includes");function St(e,r){return new hi({check:"string_format",format:"starts_with",...w(r),prefix:e})}s(St,"_startsWith");function zt(e,r){return new yi({check:"string_format",format:"ends_with",...w(r),suffix:e})}s(zt,"_endsWith");function cs(e,r,o){return new bi({check:"property",property:e,schema:r,...w(o)})}s(cs,"_property");function jt(e,r){return new $i({check:"mime_type",mime:e,...w(r)})}s(jt,"_mime");function le(e){return new _i({check:"overwrite",tx:e})}s(le,"_overwrite");function Ct(e){return le(r=>r.normalize(e))}s(Ct,"_normalize");function Pt(){return le(e=>e.trim())}s(Pt,"_trim");function Nt(){return le(e=>e.toLowerCase())}s(Nt,"_toLowerCase");function Ut(){return le(e=>e.toUpperCase())}s(Ut,"_toUpperCase");function Dt(){return le(e=>hn(e))}s(Dt,"_slugify");function us(e,r,o){return new e({type:"array",element:r,...w(o)})}s(us,"_array");function qp(e,r,o){return new e({type:"union",options:r,...w(o)})}s(qp,"_union");function Gp(e,r,o,i){return new e({type:"union",options:o,discriminator:r,...w(i)})}s(Gp,"_discriminatedUnion");function Jp(e,r,o){return new e({type:"intersection",left:r,right:o})}s(Jp,"_intersection");function Wp(e,r,o,i){let t=o instanceof C,a=t?i:o,c=t?o:null;return new e({type:"tuple",items:r,rest:c,...w(a)})}s(Wp,"_tuple");function Kp(e,r,o,i){return new e({type:"record",keyType:r,valueType:o,...w(i)})}s(Kp,"_record");function Xp(e,r,o,i){return new e({type:"map",keyType:r,valueType:o,...w(i)})}s(Xp,"_map");function Hp(e,r,o){return new e({type:"set",valueType:r,...w(o)})}s(Hp,"_set");function Qp(e,r,o){let i=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:i,...w(o)})}s(Qp,"_enum");function Yp(e,r,o){return new e({type:"enum",entries:r,...w(o)})}s(Yp,"_nativeEnum");function em(e,r,o){return new e({type:"literal",values:Array.isArray(r)?r:[r],...w(o)})}s(em,"_literal");function ls(e,r){return new e({type:"file",...w(r)})}s(ls,"_file");function tm(e,r){return new e({type:"transform",transform:r})}s(tm,"_transform");function rm(e,r){return new e({type:"optional",innerType:r})}s(rm,"_optional");function nm(e,r){return new e({type:"nullable",innerType:r})}s(nm,"_nullable");function im(e,r,o){return new e({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():bn(o)}})}s(im,"_default");function om(e,r,o){return new e({type:"nonoptional",innerType:r,...w(o)})}s(om,"_nonoptional");function am(e,r){return new e({type:"success",innerType:r})}s(am,"_success");function sm(e,r,o){return new e({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}s(sm,"_catch");function cm(e,r,o){return new e({type:"pipe",in:r,out:o})}s(cm,"_pipe");function um(e,r){return new e({type:"readonly",innerType:r})}s(um,"_readonly");function lm(e,r,o){return new e({type:"template_literal",parts:r,...w(o)})}s(lm,"_templateLiteral");function dm(e,r){return new e({type:"lazy",getter:r})}s(dm,"_lazy");function pm(e,r){return new e({type:"promise",innerType:r})}s(pm,"_promise");function ds(e,r,o){let i=w(o);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:r,...i})}s(ds,"_custom");function ps(e,r,o){return new e({type:"custom",check:"custom",fn:r,...w(o)})}s(ps,"_refine");function ms(e){let r=uu(o=>(o.addIssue=i=>{if(typeof i=="string")o.issues.push(Oe(i,o.value,r._zod.def));else{let t=i;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=o.value),t.inst??(t.inst=r),t.continue??(t.continue=!r._zod.def.abort),o.issues.push(Oe(t))}},e(o.value,o)));return r}s(ms,"_superRefine");function uu(e,r){let o=new E({check:"custom",...w(r)});return o._zod.check=e,o}s(uu,"_check");function gs(e){let r=new E({check:"describe"});return r._zod.onattach=[o=>{let i=M.get(o)??{};M.add(o,{...i,description:e})}],r._zod.check=()=>{},r}s(gs,"describe");function fs(e){let r=new E({check:"meta"});return r._zod.onattach=[o=>{let i=M.get(o)??{};M.add(o,{...i,...e})}],r._zod.check=()=>{},r}s(fs,"meta");function vs(e,r){let o=w(r),i=o.truthy??["true","1","yes","on","y","enabled"],t=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(i=i.map(_=>typeof _=="string"?_.toLowerCase():_),t=t.map(_=>typeof _=="string"?_.toLowerCase():_));let a=new Set(i),c=new Set(t),f=e.Codec??pt,l=e.Boolean??dt,g=e.String??je,h=new g({type:"string",error:o.error}),p=new l({type:"boolean",error:o.error}),I=new f({type:"pipe",in:h,out:p,transform:s(((_,d)=>{let u=_;return o.case!=="sensitive"&&(u=u.toLowerCase()),a.has(u)?!0:c.has(u)?!1:(d.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...c],input:d.value,inst:I,continue:!1}),{})}),"transform"),reverseTransform:s(((_,d)=>_===!0?i[0]||"true":t[0]||"false"),"reverseTransform"),error:o.error});return I}s(vs,"_stringbool");function Ge(e,r,o,i={}){let t=w(i),a={...w(i),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:f=>o.test(f),...t};return o instanceof RegExp&&(a.pattern=o),new e(a)}s(Ge,"_stringFormat");var ys=class ys{constructor(r){this.counter=0,this.metadataRegistry=r?.metadata??M,this.target=r?.target??"draft-2020-12",this.unrepresentable=r?.unrepresentable??"throw",this.override=r?.override??(()=>{}),this.io=r?.io??"output",this.seen=new Map}process(r,o={path:[],schemaPath:[]}){var i;let t=r._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},c=this.seen.get(r);if(c)return c.count++,o.schemaPath.includes(r)&&(c.cycle=o.path),c.schema;let f={schema:{},count:1,cycle:void 0,path:o.path};this.seen.set(r,f);let l=r._zod.toJSONSchema?.();if(l)f.schema=l;else{let p={...o,schemaPath:[...o.schemaPath,r],path:o.path},I=r._zod.parent;if(I)f.ref=I,this.process(I,p),this.seen.get(I).isParent=!0;else{let _=f.schema;switch(t.type){case"string":{let d=_;d.type="string";let{minimum:u,maximum:m,format:y,patterns:$,contentEncoding:S}=r._zod.bag;if(typeof u=="number"&&(d.minLength=u),typeof m=="number"&&(d.maxLength=m),y&&(d.format=a[y]??y,d.format===""&&delete d.format),S&&(d.contentEncoding=S),$&&$.size>0){let z=[...$];z.length===1?d.pattern=z[0].source:z.length>1&&(f.schema.allOf=[...z.map(j=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:j.source}))])}break}case"number":{let d=_,{minimum:u,maximum:m,format:y,multipleOf:$,exclusiveMaximum:S,exclusiveMinimum:z}=r._zod.bag;typeof y=="string"&&y.includes("int")?d.type="integer":d.type="number",typeof z=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(d.minimum=z,d.exclusiveMinimum=!0):d.exclusiveMinimum=z),typeof u=="number"&&(d.minimum=u,typeof z=="number"&&this.target!=="draft-4"&&(z>=u?delete d.minimum:delete d.exclusiveMinimum)),typeof S=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(d.maximum=S,d.exclusiveMaximum=!0):d.exclusiveMaximum=S),typeof m=="number"&&(d.maximum=m,typeof S=="number"&&this.target!=="draft-4"&&(S<=m?delete d.maximum:delete d.exclusiveMaximum)),typeof $=="number"&&(d.multipleOf=$);break}case"boolean":{let d=_;d.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(_.type="string",_.nullable=!0,_.enum=[null]):_.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{_.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let d=_,{minimum:u,maximum:m}=r._zod.bag;typeof u=="number"&&(d.minItems=u),typeof m=="number"&&(d.maxItems=m),d.type="array",d.items=this.process(t.element,{...p,path:[...p.path,"items"]});break}case"object":{let d=_;d.type="object",d.properties={};let u=t.shape;for(let $ in u)d.properties[$]=this.process(u[$],{...p,path:[...p.path,"properties",$]});let m=new Set(Object.keys(u)),y=new Set([...m].filter($=>{let S=t.shape[$]._zod;return this.io==="input"?S.optin===void 0:S.optout===void 0}));y.size>0&&(d.required=Array.from(y)),t.catchall?._zod.def.type==="never"?d.additionalProperties=!1:t.catchall?t.catchall&&(d.additionalProperties=this.process(t.catchall,{...p,path:[...p.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{let d=_,u=t.discriminator!==void 0,m=t.options.map((y,$)=>this.process(y,{...p,path:[...p.path,u?"oneOf":"anyOf",$]}));u?d.oneOf=m:d.anyOf=m;break}case"intersection":{let d=_,u=this.process(t.left,{...p,path:[...p.path,"allOf",0]}),m=this.process(t.right,{...p,path:[...p.path,"allOf",1]}),y=s(S=>"allOf"in S&&Object.keys(S).length===1,"isSimpleIntersection"),$=[...y(u)?u.allOf:[u],...y(m)?m.allOf:[m]];d.allOf=$;break}case"tuple":{let d=_;d.type="array";let u=this.target==="draft-2020-12"?"prefixItems":"items",m=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",y=t.items.map((j,J)=>this.process(j,{...p,path:[...p.path,u,J]})),$=t.rest?this.process(t.rest,{...p,path:[...p.path,m,...this.target==="openapi-3.0"?[t.items.length]:[]]}):null;this.target==="draft-2020-12"?(d.prefixItems=y,$&&(d.items=$)):this.target==="openapi-3.0"?(d.items={anyOf:y},$&&d.items.anyOf.push($),d.minItems=y.length,$||(d.maxItems=y.length)):(d.items=y,$&&(d.additionalItems=$));let{minimum:S,maximum:z}=r._zod.bag;typeof S=="number"&&(d.minItems=S),typeof z=="number"&&(d.maxItems=z);break}case"record":{let d=_;d.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(d.propertyNames=this.process(t.keyType,{...p,path:[...p.path,"propertyNames"]})),d.additionalProperties=this.process(t.valueType,{...p,path:[...p.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let d=_,u=et(t.entries);u.every(m=>typeof m=="number")&&(d.type="number"),u.every(m=>typeof m=="string")&&(d.type="string"),d.enum=u;break}case"literal":{let d=_,u=[];for(let m of t.values)if(m===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof m=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");u.push(Number(m))}else u.push(m);if(u.length!==0)if(u.length===1){let m=u[0];d.type=m===null?"null":typeof m,this.target==="draft-4"||this.target==="openapi-3.0"?d.enum=[m]:d.const=m}else u.every(m=>typeof m=="number")&&(d.type="number"),u.every(m=>typeof m=="string")&&(d.type="string"),u.every(m=>typeof m=="boolean")&&(d.type="string"),u.every(m=>m===null)&&(d.type="null"),d.enum=u;break}case"file":{let d=_,u={type:"string",format:"binary",contentEncoding:"binary"},{minimum:m,maximum:y,mime:$}=r._zod.bag;m!==void 0&&(u.minLength=m),y!==void 0&&(u.maxLength=y),$?$.length===1?(u.contentMediaType=$[0],Object.assign(d,u)):d.anyOf=$.map(S=>({...u,contentMediaType:S})):Object.assign(d,u);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let d=this.process(t.innerType,p);this.target==="openapi-3.0"?(f.ref=t.innerType,_.nullable=!0):_.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,p),f.ref=t.innerType;break}case"success":{let d=_;d.type="boolean";break}case"default":{this.process(t.innerType,p),f.ref=t.innerType,_.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,p),f.ref=t.innerType,this.io==="input"&&(_._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,p),f.ref=t.innerType;let d;try{d=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}_.default=d;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let d=_,u=r._zod.pattern;if(!u)throw new Error("Pattern not found in template literal");d.type="string",d.pattern=u.source;break}case"pipe":{let d=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(d,p),f.ref=d;break}case"readonly":{this.process(t.innerType,p),f.ref=t.innerType,_.readOnly=!0;break}case"promise":{this.process(t.innerType,p),f.ref=t.innerType;break}case"optional":{this.process(t.innerType,p),f.ref=t.innerType;break}case"lazy":{let d=r._zod.innerType;this.process(d,p),f.ref=d;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}default:}}}let g=this.metadataRegistry.get(r);return g&&Object.assign(f.schema,g),this.io==="input"&&q(r)&&(delete f.schema.examples,delete f.schema.default),this.io==="input"&&f.schema._prefault&&((i=f.schema).default??(i.default=f.schema._prefault)),delete f.schema._prefault,this.seen.get(r).schema}emit(r,o){let i={cycles:o?.cycles??"ref",reused:o?.reused??"inline",external:o?.external??void 0},t=this.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let a=s(h=>{let p=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){let u=i.external.registry.get(h[0])?.id,m=i.external.uri??($=>$);if(u)return{ref:m(u)};let y=h[1].defId??h[1].schema.id??`schema${this.counter++}`;return h[1].defId=y,{defId:y,ref:`${m("__shared")}#/${p}/${y}`}}if(h[1]===t)return{ref:"#"};let _=`#/${p}/`,d=h[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:_+d}},"makeURI"),c=s(h=>{if(h[1].schema.$ref)return;let p=h[1],{ref:I,defId:_}=a(h);p.def={...p.schema},_&&(p.defId=_);let d=p.schema;for(let u in d)delete d[u];d.$ref=I},"extractToDef");if(i.cycles==="throw")for(let h of this.seen.entries()){let p=h[1];if(p.cycle)throw new Error(`Cycle detected: #/${p.cycle?.join("/")}/<root>
|
|
22
22
|
|
|
23
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let m of this.seen.entries()){let y=m[1];if(r===m[0]){u(m);continue}if(n.external){let c=n.external.registry.get(m[0])?.id;if(r!==m[0]&&c){u(m);continue}}if(this.metadataRegistry.get(m[0])?.id){u(m);continue}if(y.cycle){u(m);continue}if(y.count>1&&n.reused==="ref"){u(m);continue}}let l=s((m,y)=>{let p=this.seen.get(m),c=p.def??p.schema,d={...c};if(p.ref===null)return;let v=p.ref;if(p.ref=null,v){l(v,y);let $=this.seen.get(v).schema;$.$ref&&(y.target==="draft-7"||y.target==="draft-4"||y.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push($)):(Object.assign(c,$),Object.assign(c,d))}p.isParent||this.override({zodSchema:m,jsonSchema:c,path:p.path??[]})},"flattenRef");for(let m of[...this.seen.entries()].reverse())l(m[0],{target:this.target});let f={};if(this.target==="draft-2020-12"?f.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?f.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?f.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),n.external?.uri){let m=n.external.registry.get(r)?.id;if(!m)throw new Error("Schema is missing an `id` property");f.$id=n.external.uri(m)}Object.assign(f,t.def);let g=n.external?.defs??{};for(let m of this.seen.entries()){let y=m[1];y.def&&y.defId&&(g[y.defId]=y.def)}n.external||Object.keys(g).length>0&&(this.target==="draft-2020-12"?f.$defs=g:f.definitions=g);try{return JSON.parse(JSON.stringify(f))}catch{throw new Error("Error converting schema to JSON.")}}};s(cs,"JSONSchemaGenerator");var St=cs;function us(e,r){if(e instanceof Oe){let n=new St(r),t={};for(let l of e._idmap.entries()){let[f,g]=l;n.process(g)}let o={},u={registry:e,uri:r?.uri,defs:t};for(let l of e._idmap.entries()){let[f,g]=l;o[f]=n.emit(g,{...r,external:u})}if(Object.keys(t).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[l]:t}}return{schemas:o}}let i=new St(r);return i.process(e),i.emit(e,r)}s(us,"toJSONSchema");function F(e,r){let i=r??{seen:new Set};if(i.seen.has(e))return!1;i.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return F(n.element,i);if(n.type==="set")return F(n.valueType,i);if(n.type==="lazy")return F(n.getter(),i);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return F(n.innerType,i);if(n.type==="intersection")return F(n.left,i)||F(n.right,i);if(n.type==="record"||n.type==="map")return F(n.keyType,i)||F(n.valueType,i);if(n.type==="pipe")return F(n.in,i)||F(n.out,i);if(n.type==="object"){for(let t in n.shape)if(F(n.shape[t],i))return!0;return!1}if(n.type==="union"){for(let t of n.options)if(F(t,i))return!0;return!1}if(n.type==="tuple"){for(let t of n.items)if(F(t,i))return!0;return!!(n.rest&&F(n.rest,i))}return!1}s(F,"isTransforming");var Hu={};var Er={};de(Er,{ZodISODate:()=>Ur,ZodISODateTime:()=>Nr,ZodISODuration:()=>Or,ZodISOTime:()=>Dr,date:()=>ds,datetime:()=>ls,duration:()=>ms,time:()=>ps});var Nr=h("ZodISODateTime",(e,r)=>{zi.init(e,r),O.init(e,r)});function ls(e){return ka(Nr,e)}s(ls,"datetime");var Ur=h("ZodISODate",(e,r)=>{ji.init(e,r),O.init(e,r)});function ds(e){return xa(Ur,e)}s(ds,"date");var Dr=h("ZodISOTime",(e,r)=>{Pi.init(e,r),O.init(e,r)});function ps(e){return wa(Dr,e)}s(ps,"time");var Or=h("ZodISODuration",(e,r)=>{Ci.init(e,r),O.init(e,r)});function ms(e){return Ia(Or,e)}s(ms,"duration");var Yu=s((e,r)=>{He.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:s(i=>Ye(e,i),"value")},flatten:{value:s(i=>Qe(e,i),"value")},addIssue:{value:s(i=>{e.issues.push(i),e.message=JSON.stringify(e.issues,Se,2)},"value")},addIssues:{value:s(i=>{e.issues.push(...i),e.message=JSON.stringify(e.issues,Se,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),Yp=h("ZodError",Yu),J=h("ZodError",Yu,{Parent:Error});var fs=Pe(J),gs=Ce(J),vs=Ne(J),hs=Ue(J),ys=Mt(J),bs=qt(J),$s=Jt(J),_s=Gt(J),ks=Wt(J),xs=Kt(J),ws=Xt(J),Is=Ht(J);var P=h("ZodType",(e,r)=>(z.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...i)=>e.clone(x.mergeDefs(r,{checks:[...r.checks??[],...i.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(i,n)=>R(e,i,n),e.brand=()=>e,e.register=((i,n)=>(i.add(e,n),e)),e.parse=(i,n)=>fs(e,i,n,{callee:e.parse}),e.safeParse=(i,n)=>vs(e,i,n),e.parseAsync=async(i,n)=>gs(e,i,n,{callee:e.parseAsync}),e.safeParseAsync=async(i,n)=>hs(e,i,n),e.spa=e.safeParseAsync,e.encode=(i,n)=>ys(e,i,n),e.decode=(i,n)=>bs(e,i,n),e.encodeAsync=async(i,n)=>$s(e,i,n),e.decodeAsync=async(i,n)=>_s(e,i,n),e.safeEncode=(i,n)=>ks(e,i,n),e.safeDecode=(i,n)=>xs(e,i,n),e.safeEncodeAsync=async(i,n)=>ws(e,i,n),e.safeDecodeAsync=async(i,n)=>Is(e,i,n),e.refine=(i,n)=>e.check(Rc(i,n)),e.superRefine=i=>e.check(Lc(i)),e.overwrite=i=>e.check(ne(i)),e.optional=()=>Tr(e),e.nullable=()=>Zr(e),e.nullish=()=>Tr(Zr(e)),e.nonoptional=i=>jc(e,i),e.array=()=>Fr(e),e.or=i=>Ws([e,i]),e.and=i=>fc(e,i),e.transform=i=>Vr(e,Hs(i)),e.default=i=>Ic(e,i),e.prefault=i=>zc(e,i),e.catch=i=>Nc(e,i),e.pipe=i=>Vr(e,i),e.readonly=()=>Oc(e),e.describe=i=>{let n=e.clone();return L.add(n,{description:i}),n},Object.defineProperty(e,"description",{get(){return L.get(e)?.description},configurable:!0}),e.meta=(...i)=>{if(i.length===0)return L.get(e);let n=e.clone();return L.add(n,i[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),js=h("_ZodString",(e,r)=>{_e.init(e,r),P.init(e,r);let i=e._zod.bag;e.format=i.format??null,e.minLength=i.minimum??null,e.maxLength=i.maximum??null,e.regex=(...n)=>e.check(ft(...n)),e.includes=(...n)=>e.check(ht(...n)),e.startsWith=(...n)=>e.check(yt(...n)),e.endsWith=(...n)=>e.check(bt(...n)),e.min=(...n)=>e.check(ye(...n)),e.max=(...n)=>e.check(Ae(...n)),e.length=(...n)=>e.check(Te(...n)),e.nonempty=(...n)=>e.check(ye(1,...n)),e.lowercase=n=>e.check(gt(n)),e.uppercase=n=>e.check(vt(n)),e.trim=()=>e.check(kt()),e.normalize=(...n)=>e.check(_t(...n)),e.toLowerCase=()=>e.check(xt()),e.toUpperCase=()=>e.check(wt()),e.slugify=()=>e.check(It())}),jt=h("ZodString",(e,r)=>{_e.init(e,r),js.init(e,r),e.email=i=>e.check(dr(Ps,i)),e.url=i=>e.check(pt(Rr,i)),e.jwt=i=>e.check(Cr(Ms,i)),e.emoji=i=>e.check(vr(Cs,i)),e.guid=i=>e.check(dt(Ar,i)),e.uuid=i=>e.check(pr(ce,i)),e.uuidv4=i=>e.check(mr(ce,i)),e.uuidv6=i=>e.check(fr(ce,i)),e.uuidv7=i=>e.check(gr(ce,i)),e.nanoid=i=>e.check(hr(Ns,i)),e.guid=i=>e.check(dt(Ar,i)),e.cuid=i=>e.check(yr(Us,i)),e.cuid2=i=>e.check(br(Ds,i)),e.ulid=i=>e.check($r(Os,i)),e.base64=i=>e.check(zr(Ls,i)),e.base64url=i=>e.check(jr(Fs,i)),e.xid=i=>e.check(_r(Es,i)),e.ksuid=i=>e.check(kr(As,i)),e.ipv4=i=>e.check(xr(Ts,i)),e.ipv6=i=>e.check(wr(Zs,i)),e.cidrv4=i=>e.check(Ir(Vs,i)),e.cidrv6=i=>e.check(Sr(Rs,i)),e.e164=i=>e.check(Pr(Bs,i)),e.datetime=i=>e.check(ls(i)),e.date=i=>e.check(ds(i)),e.time=i=>e.check(ps(i)),e.duration=i=>e.check(ms(i))});function Ss(e){return ya(jt,e)}s(Ss,"string");var O=h("ZodStringFormat",(e,r)=>{U.init(e,r),js.init(e,r)}),Ps=h("ZodEmail",(e,r)=>{yi.init(e,r),O.init(e,r)});function tm(e){return dr(Ps,e)}s(tm,"email");var Ar=h("ZodGUID",(e,r)=>{vi.init(e,r),O.init(e,r)});function rm(e){return dt(Ar,e)}s(rm,"guid");var ce=h("ZodUUID",(e,r)=>{hi.init(e,r),O.init(e,r)});function nm(e){return pr(ce,e)}s(nm,"uuid");function im(e){return mr(ce,e)}s(im,"uuidv4");function om(e){return fr(ce,e)}s(om,"uuidv6");function am(e){return gr(ce,e)}s(am,"uuidv7");var Rr=h("ZodURL",(e,r)=>{bi.init(e,r),O.init(e,r)});function sm(e){return pt(Rr,e)}s(sm,"url");function um(e){return pt(Rr,{protocol:/^https?$/,hostname:Q.domain,...x.normalizeParams(e)})}s(um,"httpUrl");var Cs=h("ZodEmoji",(e,r)=>{$i.init(e,r),O.init(e,r)});function cm(e){return vr(Cs,e)}s(cm,"emoji");var Ns=h("ZodNanoID",(e,r)=>{_i.init(e,r),O.init(e,r)});function lm(e){return hr(Ns,e)}s(lm,"nanoid");var Us=h("ZodCUID",(e,r)=>{ki.init(e,r),O.init(e,r)});function dm(e){return yr(Us,e)}s(dm,"cuid");var Ds=h("ZodCUID2",(e,r)=>{xi.init(e,r),O.init(e,r)});function pm(e){return br(Ds,e)}s(pm,"cuid2");var Os=h("ZodULID",(e,r)=>{wi.init(e,r),O.init(e,r)});function mm(e){return $r(Os,e)}s(mm,"ulid");var Es=h("ZodXID",(e,r)=>{Ii.init(e,r),O.init(e,r)});function fm(e){return _r(Es,e)}s(fm,"xid");var As=h("ZodKSUID",(e,r)=>{Si.init(e,r),O.init(e,r)});function gm(e){return kr(As,e)}s(gm,"ksuid");var Ts=h("ZodIPv4",(e,r)=>{Ni.init(e,r),O.init(e,r)});function vm(e){return xr(Ts,e)}s(vm,"ipv4");var ec=h("ZodMAC",(e,r)=>{Di.init(e,r),O.init(e,r)});function hm(e){return $a(ec,e)}s(hm,"mac");var Zs=h("ZodIPv6",(e,r)=>{Ui.init(e,r),O.init(e,r)});function ym(e){return wr(Zs,e)}s(ym,"ipv6");var Vs=h("ZodCIDRv4",(e,r)=>{Oi.init(e,r),O.init(e,r)});function bm(e){return Ir(Vs,e)}s(bm,"cidrv4");var Rs=h("ZodCIDRv6",(e,r)=>{Ei.init(e,r),O.init(e,r)});function $m(e){return Sr(Rs,e)}s($m,"cidrv6");var Ls=h("ZodBase64",(e,r)=>{Ti.init(e,r),O.init(e,r)});function _m(e){return zr(Ls,e)}s(_m,"base64");var Fs=h("ZodBase64URL",(e,r)=>{Zi.init(e,r),O.init(e,r)});function km(e){return jr(Fs,e)}s(km,"base64url");var Bs=h("ZodE164",(e,r)=>{Vi.init(e,r),O.init(e,r)});function xm(e){return Pr(Bs,e)}s(xm,"e164");var Ms=h("ZodJWT",(e,r)=>{Ri.init(e,r),O.init(e,r)});function wm(e){return Cr(Ms,e)}s(wm,"jwt");var Pt=h("ZodCustomStringFormat",(e,r)=>{Li.init(e,r),O.init(e,r)});function Im(e,r,i={}){return Ze(Pt,e,r,i)}s(Im,"stringFormat");function Sm(e){return Ze(Pt,"hostname",Q.hostname,e)}s(Sm,"hostname");function zm(e){return Ze(Pt,"hex",Q.hex,e)}s(zm,"hex");function jm(e,r){let i=r?.enc??"hex",n=`${e}_${i}`,t=Q[n];if(!t)throw new Error(`Unrecognized hash format: ${n}`);return Ze(Pt,n,t,r)}s(jm,"hash");var Ct=h("ZodNumber",(e,r)=>{ar.init(e,r),P.init(e,r),e.gt=(n,t)=>e.check(se(n,t)),e.gte=(n,t)=>e.check(q(n,t)),e.min=(n,t)=>e.check(q(n,t)),e.lt=(n,t)=>e.check(ae(n,t)),e.lte=(n,t)=>e.check(Y(n,t)),e.max=(n,t)=>e.check(Y(n,t)),e.int=n=>e.check(zs(n)),e.safe=n=>e.check(zs(n)),e.positive=n=>e.check(se(0,n)),e.nonnegative=n=>e.check(q(0,n)),e.negative=n=>e.check(ae(0,n)),e.nonpositive=n=>e.check(Y(0,n)),e.multipleOf=(n,t)=>e.check(ke(n,t)),e.step=(n,t)=>e.check(ke(n,t)),e.finite=()=>e;let i=e._zod.bag;e.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),e.isFinite=!0,e.format=i.format??null});function tc(e){return Sa(Ct,e)}s(tc,"number");var Re=h("ZodNumberFormat",(e,r)=>{Fi.init(e,r),Ct.init(e,r)});function zs(e){return ja(Re,e)}s(zs,"int");function Pm(e){return Pa(Re,e)}s(Pm,"float32");function Cm(e){return Ca(Re,e)}s(Cm,"float64");function Nm(e){return Na(Re,e)}s(Nm,"int32");function Um(e){return Ua(Re,e)}s(Um,"uint32");var Nt=h("ZodBoolean",(e,r)=>{nt.init(e,r),P.init(e,r)});function rc(e){return Da(Nt,e)}s(rc,"boolean");var Ut=h("ZodBigInt",(e,r)=>{sr.init(e,r),P.init(e,r),e.gte=(n,t)=>e.check(q(n,t)),e.min=(n,t)=>e.check(q(n,t)),e.gt=(n,t)=>e.check(se(n,t)),e.gte=(n,t)=>e.check(q(n,t)),e.min=(n,t)=>e.check(q(n,t)),e.lt=(n,t)=>e.check(ae(n,t)),e.lte=(n,t)=>e.check(Y(n,t)),e.max=(n,t)=>e.check(Y(n,t)),e.positive=n=>e.check(se(BigInt(0),n)),e.negative=n=>e.check(ae(BigInt(0),n)),e.nonpositive=n=>e.check(Y(BigInt(0),n)),e.nonnegative=n=>e.check(q(BigInt(0),n)),e.multipleOf=(n,t)=>e.check(ke(n,t));let i=e._zod.bag;e.minValue=i.minimum??null,e.maxValue=i.maximum??null,e.format=i.format??null});function Dm(e){return Ea(Ut,e)}s(Dm,"bigint");var qs=h("ZodBigIntFormat",(e,r)=>{Bi.init(e,r),Ut.init(e,r)});function Om(e){return Ta(qs,e)}s(Om,"int64");function Em(e){return Za(qs,e)}s(Em,"uint64");var nc=h("ZodSymbol",(e,r)=>{Mi.init(e,r),P.init(e,r)});function Am(e){return Va(nc,e)}s(Am,"symbol");var ic=h("ZodUndefined",(e,r)=>{qi.init(e,r),P.init(e,r)});function Tm(e){return Ra(ic,e)}s(Tm,"_undefined");var oc=h("ZodNull",(e,r)=>{Ji.init(e,r),P.init(e,r)});function ac(e){return La(oc,e)}s(ac,"_null");var sc=h("ZodAny",(e,r)=>{Gi.init(e,r),P.init(e,r)});function Zm(){return Fa(sc)}s(Zm,"any");var uc=h("ZodUnknown",(e,r)=>{Wi.init(e,r),P.init(e,r)});function Ve(){return Ba(uc)}s(Ve,"unknown");var cc=h("ZodNever",(e,r)=>{Ki.init(e,r),P.init(e,r)});function Js(e){return Ma(cc,e)}s(Js,"never");var lc=h("ZodVoid",(e,r)=>{Xi.init(e,r),P.init(e,r)});function Vm(e){return qa(lc,e)}s(Vm,"_void");var Lr=h("ZodDate",(e,r)=>{Hi.init(e,r),P.init(e,r),e.min=(n,t)=>e.check(q(n,t)),e.max=(n,t)=>e.check(Y(n,t));let i=e._zod.bag;e.minDate=i.minimum?new Date(i.minimum):null,e.maxDate=i.maximum?new Date(i.maximum):null});function Rm(e){return Ja(Lr,e)}s(Rm,"date");var dc=h("ZodArray",(e,r)=>{Qi.init(e,r),P.init(e,r),e.element=r.element,e.min=(i,n)=>e.check(ye(i,n)),e.nonempty=i=>e.check(ye(1,i)),e.max=(i,n)=>e.check(Ae(i,n)),e.length=(i,n)=>e.check(Te(i,n)),e.unwrap=()=>e.element});function Fr(e,r){return es(dc,e,r)}s(Fr,"array");function Lm(e){let r=e._zod.def.shape;return Xs(Object.keys(r))}s(Lm,"keyof");var Br=h("ZodObject",(e,r)=>{Yi.init(e,r),P.init(e,r),x.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>Xs(Object.keys(e._zod.def.shape)),e.catchall=i=>e.clone({...e._zod.def,catchall:i}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ve()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ve()}),e.strict=()=>e.clone({...e._zod.def,catchall:Js()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=i=>x.extend(e,i),e.safeExtend=i=>x.safeExtend(e,i),e.merge=i=>x.merge(e,i),e.pick=i=>x.pick(e,i),e.omit=i=>x.omit(e,i),e.partial=(...i)=>x.partial(Qs,e,i[0]),e.required=(...i)=>x.required(Ys,e,i[0])});function Fm(e,r){let i={type:"object",shape:e??{},...x.normalizeParams(r)};return new Br(i)}s(Fm,"object");function Bm(e,r){return new Br({type:"object",shape:e,catchall:Js(),...x.normalizeParams(r)})}s(Bm,"strictObject");function Mm(e,r){return new Br({type:"object",shape:e,catchall:Ve(),...x.normalizeParams(r)})}s(Mm,"looseObject");var Gs=h("ZodUnion",(e,r)=>{ur.init(e,r),P.init(e,r),e.options=r.options});function Ws(e,r){return new Gs({type:"union",options:e,...x.normalizeParams(r)})}s(Ws,"union");var pc=h("ZodDiscriminatedUnion",(e,r)=>{Gs.init(e,r),eo.init(e,r)});function qm(e,r,i){return new pc({type:"union",options:r,discriminator:e,...x.normalizeParams(i)})}s(qm,"discriminatedUnion");var mc=h("ZodIntersection",(e,r)=>{to.init(e,r),P.init(e,r)});function fc(e,r){return new mc({type:"intersection",left:e,right:r})}s(fc,"intersection");var gc=h("ZodTuple",(e,r)=>{cr.init(e,r),P.init(e,r),e.rest=i=>e.clone({...e._zod.def,rest:i})});function vc(e,r,i){let n=r instanceof z,t=n?i:r,o=n?r:null;return new gc({type:"tuple",items:e,rest:o,...x.normalizeParams(t)})}s(vc,"tuple");var Ks=h("ZodRecord",(e,r)=>{ro.init(e,r),P.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function hc(e,r,i){return new Ks({type:"record",keyType:e,valueType:r,...x.normalizeParams(i)})}s(hc,"record");function Jm(e,r,i){let n=R(e);return n._zod.values=void 0,new Ks({type:"record",keyType:n,valueType:r,...x.normalizeParams(i)})}s(Jm,"partialRecord");var yc=h("ZodMap",(e,r)=>{no.init(e,r),P.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Gm(e,r,i){return new yc({type:"map",keyType:e,valueType:r,...x.normalizeParams(i)})}s(Gm,"map");var bc=h("ZodSet",(e,r)=>{io.init(e,r),P.init(e,r),e.min=(...i)=>e.check(xe(...i)),e.nonempty=i=>e.check(xe(1,i)),e.max=(...i)=>e.check(Ee(...i)),e.size=(...i)=>e.check(mt(...i))});function Wm(e,r){return new bc({type:"set",valueType:e,...x.normalizeParams(r)})}s(Wm,"set");var zt=h("ZodEnum",(e,r)=>{oo.init(e,r),P.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);let i=new Set(Object.keys(r.entries));e.extract=(n,t)=>{let o={};for(let u of n)if(i.has(u))o[u]=r.entries[u];else throw new Error(`Key ${u} not found in enum`);return new zt({...r,checks:[],...x.normalizeParams(t),entries:o})},e.exclude=(n,t)=>{let o={...r.entries};for(let u of n)if(i.has(u))delete o[u];else throw new Error(`Key ${u} not found in enum`);return new zt({...r,checks:[],...x.normalizeParams(t),entries:o})}});function Xs(e,r){let i=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new zt({type:"enum",entries:i,...x.normalizeParams(r)})}s(Xs,"_enum");function Km(e,r){return new zt({type:"enum",entries:e,...x.normalizeParams(r)})}s(Km,"nativeEnum");var $c=h("ZodLiteral",(e,r)=>{ao.init(e,r),P.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function Xm(e,r){return new $c({type:"literal",values:Array.isArray(e)?e:[e],...x.normalizeParams(r)})}s(Xm,"literal");var _c=h("ZodFile",(e,r)=>{so.init(e,r),P.init(e,r),e.min=(i,n)=>e.check(xe(i,n)),e.max=(i,n)=>e.check(Ee(i,n)),e.mime=(i,n)=>e.check($t(Array.isArray(i)?i:[i],n))});function Hm(e){return ts(_c,e)}s(Hm,"file");var kc=h("ZodTransform",(e,r)=>{uo.init(e,r),P.init(e,r),e._zod.parse=(i,n)=>{if(n.direction==="backward")throw new pe(e.constructor.name);i.addIssue=o=>{if(typeof o=="string")i.issues.push(x.issue(o,i.value,r));else{let u=o;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=i.value),u.inst??(u.inst=e),i.issues.push(x.issue(u))}};let t=r.transform(i.value,i);return t instanceof Promise?t.then(o=>(i.value=o,i)):(i.value=t,i)}});function Hs(e){return new kc({type:"transform",transform:e})}s(Hs,"transform");var Qs=h("ZodOptional",(e,r)=>{co.init(e,r),P.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Tr(e){return new Qs({type:"optional",innerType:e})}s(Tr,"optional");var xc=h("ZodNullable",(e,r)=>{lo.init(e,r),P.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Zr(e){return new xc({type:"nullable",innerType:e})}s(Zr,"nullable");function Qm(e){return Tr(Zr(e))}s(Qm,"nullish");var wc=h("ZodDefault",(e,r)=>{po.init(e,r),P.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ic(e,r){return new wc({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():x.shallowClone(r)}})}s(Ic,"_default");var Sc=h("ZodPrefault",(e,r)=>{mo.init(e,r),P.init(e,r),e.unwrap=()=>e._zod.def.innerType});function zc(e,r){return new Sc({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():x.shallowClone(r)}})}s(zc,"prefault");var Ys=h("ZodNonOptional",(e,r)=>{fo.init(e,r),P.init(e,r),e.unwrap=()=>e._zod.def.innerType});function jc(e,r){return new Ys({type:"nonoptional",innerType:e,...x.normalizeParams(r)})}s(jc,"nonoptional");var Pc=h("ZodSuccess",(e,r)=>{go.init(e,r),P.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Ym(e){return new Pc({type:"success",innerType:e})}s(Ym,"success");var Cc=h("ZodCatch",(e,r)=>{vo.init(e,r),P.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Nc(e,r){return new Cc({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}s(Nc,"_catch");var Uc=h("ZodNaN",(e,r)=>{ho.init(e,r),P.init(e,r)});function ef(e){return Wa(Uc,e)}s(ef,"nan");var eu=h("ZodPipe",(e,r)=>{yo.init(e,r),P.init(e,r),e.in=r.in,e.out=r.out});function Vr(e,r){return new eu({type:"pipe",in:e,out:r})}s(Vr,"pipe");var tu=h("ZodCodec",(e,r)=>{eu.init(e,r),it.init(e,r)});function tf(e,r,i){return new tu({type:"pipe",in:e,out:r,transform:i.decode,reverseTransform:i.encode})}s(tf,"codec");var Dc=h("ZodReadonly",(e,r)=>{bo.init(e,r),P.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Oc(e){return new Dc({type:"readonly",innerType:e})}s(Oc,"readonly");var Ec=h("ZodTemplateLiteral",(e,r)=>{$o.init(e,r),P.init(e,r)});function rf(e,r){return new Ec({type:"template_literal",parts:e,...x.normalizeParams(r)})}s(rf,"templateLiteral");var Ac=h("ZodLazy",(e,r)=>{xo.init(e,r),P.init(e,r),e.unwrap=()=>e._zod.def.getter()});function Tc(e){return new Ac({type:"lazy",getter:e})}s(Tc,"lazy");var Zc=h("ZodPromise",(e,r)=>{ko.init(e,r),P.init(e,r),e.unwrap=()=>e._zod.def.innerType});function nf(e){return new Zc({type:"promise",innerType:e})}s(nf,"promise");var Vc=h("ZodFunction",(e,r)=>{_o.init(e,r),P.init(e,r)});function of(e){return new Vc({type:"function",input:Array.isArray(e?.input)?vc(e?.input):e?.input??Fr(Ve()),output:e?.output??Ve()})}s(of,"_function");var Mr=h("ZodCustom",(e,r)=>{wo.init(e,r),P.init(e,r)});function af(e){let r=new D({check:"custom"});return r._zod.check=e,r}s(af,"check");function sf(e,r){return rs(Mr,e??(()=>!0),r)}s(sf,"custom");function Rc(e,r={}){return ns(Mr,e,r)}s(Rc,"refine");function Lc(e){return is(e)}s(Lc,"superRefine");var uf=os,cf=as;function lf(e,r={error:`Input not instance of ${e.name}`}){let i=new Mr({type:"custom",check:"custom",fn:s(n=>n instanceof e,"fn"),abort:!0,...x.normalizeParams(r)});return i._zod.bag.Class=e,i}s(lf,"_instanceof");var df=s((...e)=>ss({Codec:tu,Boolean:Nt,String:jt},...e),"stringbool");function pf(e){let r=Tc(()=>Ws([Ss(e),tc(),rc(),ac(),Fr(r),hc(Ss(),r)]));return r}s(pf,"json");function mf(e,r){return Vr(Hs(e),r)}s(mf,"preprocess");var ff={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 gf(e){T({customError:e})}s(gf,"setErrorMap");function vf(){return T().customError}s(vf,"getErrorMap");var ru;ru||(ru={});var nu={};de(nu,{bigint:()=>$f,boolean:()=>bf,date:()=>_f,number:()=>yf,string:()=>hf});function hf(e){return ba(jt,e)}s(hf,"string");function yf(e){return za(Ct,e)}s(yf,"number");function bf(e){return Oa(Nt,e)}s(bf,"boolean");function $f(e){return Aa(Ut,e)}s($f,"bigint");function _f(e){return Ga(Lr,e)}s(_f,"date");T(ot());var kf=Object.defineProperty,uu=s((e,r)=>kf(e,"name",{value:r,configurable:!0}),"__name"),Gr=a.array(a.string().or(a.record(a.string(),a.any()))),r$=a.object({type:a.string().optional(),narrative:a.string().optional()}),Wr=a.string().or(a.object({id:a.string(),type:a.string(),caption:a.string().optional()})),xf=a.object({type:a.string().min(1).or(a.string().array().nonempty()),latitude:a.number(),longitude:a.number()}),wf=a.object({type:a.string().min(1).or(a.string().array().nonempty()),addressCountry:a.string().optional(),addressCountryCode:a.string().optional(),addressRegion:a.string().optional(),addressLocality:a.string().optional(),streetAddress:a.string().optional(),postOfficeBoxNumber:a.string().optional(),postalCode:a.string().optional(),geo:xf.optional()}),If=a.enum(["sourcedId","systemId","productId","userName","accountId","emailAddress","nationalIdentityNumber","isbn","issn","lisSourcedId","oneRosterSourcedId","sisSourcedId","ltiContextId","ltiDeploymentId","ltiToolId","ltiPlatformId","ltiUserId","identifier"]).or(a.string()),el=a.object({type:a.string().min(1).or(a.string().array().nonempty()),identifier:a.string(),identifierType:If}),Dt=a.string().or(a.object({id:a.string().optional(),type:a.string().or(a.string().array().nonempty().optional()),name:a.string().optional(),url:a.string().optional(),phone:a.string().optional(),description:a.string().optional(),endorsement:a.any().array().optional(),image:Wr.optional(),email:a.string().email().optional(),address:wf.optional(),otherIdentifier:el.array().optional(),official:a.string().optional(),parentOrg:a.any().optional(),familyName:a.string().optional(),givenName:a.string().optional(),additionalName:a.string().optional(),patronymicName:a.string().optional(),honorificPrefix:a.string().optional(),honorificSuffix:a.string().optional(),familyNamePrefix:a.string().optional(),dateOfBirth:a.string().optional()}).catchall(a.any())),ou=a.object({id:a.string().optional()}).catchall(a.any()),qr=a.object({type:a.string(),id:a.string()}).catchall(a.any()),Fc=a.object({id:a.string(),type:a.string()}).catchall(a.any()),Bc=a.object({id:a.string().optional(),type:a.string()}).catchall(a.any()),Mc=a.object({type:a.string(),id:a.string().optional()}).catchall(a.any()),qc=a.object({id:a.string().optional(),type:a.array(a.string()).nonempty(),name:a.string().optional(),narrative:a.string().optional(),description:a.string().optional(),genre:a.string().optional(),audience:a.string().optional()}).catchall(a.any()),re=a.object({"@context":Gr,id:a.string().optional(),type:a.string().array().nonempty(),issuer:Dt,credentialSubject:ou.or(ou.array()),refreshService:Bc.or(Bc.array()).optional(),credentialSchema:Fc.or(Fc.array()).optional(),issuanceDate:a.string().optional(),expirationDate:a.string().optional(),credentialStatus:qr.or(qr.array()).optional(),name:a.string().optional(),description:a.string().optional(),validFrom:a.string().optional(),validUntil:a.string().optional(),status:qr.or(qr.array()).optional(),termsOfUse:Mc.or(Mc.array()).optional(),evidence:a.union([qc,a.array(qc)]).optional()}).catchall(a.any()),ie=a.object({type:a.string(),created:a.string(),challenge:a.string().optional(),domain:a.string().optional(),nonce:a.string().optional(),proofPurpose:a.string(),verificationMethod:a.string(),jws:a.string().optional()}).catchall(a.any()),le=re.extend({proof:ie.or(ie.array())}),Sf=a.object({"@context":Gr,id:a.string().optional(),type:a.string().or(a.string().array().nonempty()),verifiableCredential:le.or(le.array()).optional(),holder:a.string().optional()}).catchall(a.any()),Et=Sf.extend({proof:ie.or(ie.array())}),cu=a.object({kty:a.string(),crv:a.string(),x:a.string(),y:a.string().optional(),n:a.string().optional(),d:a.string().optional()}),o$=cu.omit({d:!0}).extend({d:a.string()}),zf=a.object({alg:a.string(),iv:a.string(),tag:a.string(),epk:cu.partial().optional(),kid:a.string().optional(),apv:a.string().optional(),apu:a.string().optional()}),jf=a.object({header:zf,encrypted_key:a.string()}),lu=a.object({protected:a.string(),iv:a.string(),ciphertext:a.string(),tag:a.string(),aad:a.string().optional(),recipients:jf.array().optional()}),we=a.string().or(a.object({"@context":Gr.optional(),id:a.string(),type:a.string(),controller:a.string(),publicKeyJwk:cu.optional(),publicKeyBase58:a.string().optional(),publicKeyMultibase:a.string().optional(),blockChainAccountId:a.string().optional()}).catchall(a.any())),Pf=a.object({id:a.string(),type:a.string().or(a.string().array().nonempty()),serviceEndpoint:a.any().or(a.any().array().nonempty())}).catchall(a.any()),a$=a.object({"@context":Gr,id:a.string(),alsoKnownAs:a.string().optional(),controller:a.string().or(a.string().array().nonempty()).optional(),verificationMethod:we.array().optional(),authentication:we.array().optional(),assertionMethod:we.array().optional(),keyAgreement:we.array().optional(),capabilityInvocation:we.array().optional(),capabilityDelegation:we.array().optional(),publicKey:we.array().optional(),service:Pf.array().optional(),proof:ie.or(ie.array()).optional()}).catchall(a.any()),Cf=a.enum(["ceasn:Competency","ceterms:Credential","CFItem","CFRubric","CFRubricCriterion","CFRubricCriterionLevel","CTDL"]).or(a.string()),Kr=a.object({type:a.string().array().nonempty(),targetCode:a.string().optional(),targetDescription:a.string().optional(),targetName:a.string(),targetFramework:a.string().optional(),targetType:Cf.optional(),targetUrl:a.string()}),Nf=a.enum(["Achievement","ApprenticeshipCertificate","Assessment","Assignment","AssociateDegree","Award","Badge","BachelorDegree","Certificate","CertificateOfCompletion","Certification","CommunityService","Competency","Course","CoCurricular","Degree","Diploma","DoctoralDegree","Fieldwork","GeneralEducationDevelopment","JourneymanCertificate","LearningProgram","License","Membership","ProfessionalDoctorate","QualityAssuranceCredential","MasterCertificate","MasterDegree","MicroCredential","ResearchDoctorate","SecondarySchoolDiploma"]),Uf=Nf.or(a.string()),Df=a.object({id:a.string().optional(),narrative:a.string().optional()}).catchall(a.any()),Of=a.object({id:a.string(),type:a.string().array().nonempty(),endorsementComment:a.string().optional()}),Ef=re.extend({credentialSubject:Of,proof:ie.or(ie.array()).optional()}),Af=a.object({id:a.string(),"@language":a.string().optional(),version:a.string().optional()}),Tf=a.enum(["GradePointAverage","LetterGrade","Percent","PerformanceLevel","PredictedScore","RawScore","Result","RubricCriterion","RubricCriterionLevel","RubricScore","ScaledScore","Status"]).or(a.string()),Zf=a.object({id:a.string(),type:a.string().array().nonempty(),alignment:Kr.array().optional(),description:a.string().optional(),level:a.string().optional(),name:a.string(),points:a.string().optional()}).catchall(a.any()),Vf=a.object({id:a.string(),type:a.string().array().nonempty(),alignment:Kr.array().optional(),allowedValue:a.string().array().optional(),name:a.string(),requiredLevel:a.string().optional(),requiredValue:a.string().optional(),resultType:Tf,rubricCriterionLevel:Zf.array().optional(),valueMax:a.string().optional(),valueMin:a.string().optional()}).catchall(a.any()),u$=a.object({id:a.string().optional(),type:a.array(a.string()).nonempty(),name:a.string().optional(),narrative:a.string().optional(),description:a.string().optional(),genre:a.string().optional(),audience:a.string().optional()}).catchall(a.any()),Rf=a.object({id:a.string().optional(),type:a.array(a.string()).nonempty(),alignment:Kr.array().optional(),achievementType:Uf.optional(),creator:Dt.optional(),creditsAvailable:a.number().optional(),criteria:Df,description:a.string(),endorsement:Ef.array().optional(),fieldOfStudy:a.string().optional(),humanCode:a.string().optional(),image:Wr.optional(),"@language":a.string().optional(),name:a.string(),otherIdentifier:el.array().optional(),related:Af.array().optional(),resultDescription:Vf.array().optional(),specialization:a.string().optional(),tag:a.array(a.string()).optional(),version:a.string().optional()}).catchall(a.any()),Lf=a.object({type:a.string(),hashed:a.boolean(),identityHash:a.string(),identityType:a.string(),salt:a.string().optional()}),Ff=a.enum(["Completed","Enrolled","Failed","InProgress","OnHold","Withdrew"]),Bf=a.object({type:a.string().array().nonempty(),achievedLevel:a.string().optional(),alignment:Kr.array().optional(),resultDescription:a.string().optional(),status:Ff.optional(),value:a.string().optional()}).catchall(a.any()),Jc=a.object({id:a.string().optional(),type:a.string().array().nonempty(),activityEndDate:a.string().optional(),activityStartDate:a.string().optional(),creditsEarned:a.number().optional(),achievement:Rf.optional(),identifier:Lf.array().optional(),image:Wr.optional(),licenseNumber:a.string().optional(),narrative:a.string().optional(),result:Bf.array().optional(),role:a.string().optional(),source:Dt.optional(),term:a.string().optional()}).catchall(a.any()),Mf=re.extend({name:a.string().optional(),description:a.string().optional(),image:Wr.optional(),credentialSubject:Jc.or(Jc.array()),endorsement:re.array().optional()}),c$=Mf.extend({proof:ie.or(ie.array())}),d$=a.object({checks:a.string().array(),warnings:a.string().array(),errors:a.string().array()}),tl=a.enum(["Success","Failed","Error"]),p$=tl.enum,m$=a.object({check:a.string(),status:tl,message:a.string().optional(),details:a.string().optional()}),f$=a.object({title:a.string().optional(),createdAt:a.string().optional(),issuer:Dt.optional(),issuee:Dt.optional(),credentialSubject:ou.optional()}),g$=a.object({id:a.string(),uri:a.string()}).catchall(a.any()),y$=a.object({limit:a.number(),cursor:a.string().optional(),sort:a.string().optional()}),Z=a.object({cursor:a.string().optional(),hasMore:a.boolean()}),rl=a.object({encryptedRecord:lu,fields:a.string().array()}).catchall(a.any()),b$=Z.extend({records:rl.array()}),qf=rl.extend({id:a.string()}),$$=Z.extend({records:qf.array()}),Gc=uu(e=>{let r=e.match(/^\/(.*)\/([gimsuy]*)$/);if(!r)throw new Error("Invalid RegExp string format");return{pattern:r[1],flags:r[2]}},"parseRegexString"),Jf=a.string().refine(e=>{try{return Gc(e),!0}catch{return!1}},{message:"Invalid RegExp string format. Must be in format '/pattern/flags'"}).transform(e=>{let{pattern:r,flags:i}=Gc(e);try{return new RegExp(r,i)}catch(n){throw new Error(`Invalid RegExp: ${n.message}`)}}).meta({override:{type:"string"}}),Gf=a.instanceof(RegExp).meta({override:{type:"string"}}).or(Jf).meta({override:{type:"string"}}),Wc=a.string().or(a.object({$in:a.string().array()})).or(a.object({$regex:Gf.meta({override:{type:"string"}})})),j=a.union([Wc,a.object({$or:Wc.array()})]),Wf=a.object({backgroundColor:a.string().optional(),backgroundImage:a.string().optional(),fadeBackgroundImage:a.boolean().optional(),repeatBackgroundImage:a.boolean().optional(),fontColor:a.string().optional(),accentColor:a.string().optional(),accentFontColor:a.string().optional(),idBackgroundImage:a.string().optional(),fadeIdBackgroundImage:a.boolean().optional(),idBackgroundColor:a.string().optional(),repeatIdBackgroundImage:a.boolean().optional()}),Kf=a.enum(["public","connections_only","private"]),Xf=a.enum(["anyone","invite_only"]),V=a.object({profileId:a.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),displayName:a.string().default("").describe("Human-readable display name for the profile."),shortBio:a.string().default("").describe("Short bio for the profile."),bio:a.string().default("").describe("Longer bio for the profile."),did:a.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),isPrivate:a.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),profileVisibility:Kf.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),showEmail:a.boolean().default(!1).optional().describe("Whether to show email to connections."),allowConnectionRequests:Xf.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),email:a.string().optional().describe("Contact email address for the profile. (deprecated)"),image:a.string().optional().describe("Profile image URL for the profile."),heroImage:a.string().optional().describe("Hero image URL for the profile."),websiteLink:a.string().optional().describe("Website link for the profile."),isServiceProfile:a.boolean().default(!1).optional().describe("Whether the profile is a service profile or not."),type:a.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),notificationsWebhook:a.string().url().startsWith("http").optional().describe("URL to send notifications to."),display:Wf.optional().describe("Display settings for the profile."),highlightedCredentials:a.array(a.string()).max(5).optional().describe("Up to 5 unique boost URIs to highlight on the profile."),role:a.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),dob:a.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".'),country:a.string().optional().describe("Country for the profile."),approved:a.boolean().optional().describe("Approval status for the profile.")}),nl=V.pick({profileId:!0,displayName:!0,shortBio:!0,image:!0,heroImage:!0,type:!0,isServiceProfile:!0,display:!0}),il=nl.extend({bio:V.shape.bio,websiteLink:V.shape.websiteLink,role:V.shape.role,highlightedCredentials:V.shape.highlightedCredentials,did:V.shape.did}),Hf=il.extend({email:V.shape.email}),du=a.union([Hf.strict(),il.strict(),nl.strict(),V]),x$=a.object({profileId:j,displayName:j,shortBio:j,bio:j,email:j,websiteLink:j,isServiceProfile:a.boolean(),type:j}).partial(),w$=Z.extend({records:V.array()}),I$=Z.extend({records:du.array()}),S$=a.enum(["CONNECTED","PENDING_REQUEST_SENT","PENDING_REQUEST_RECEIVED","NOT_CONNECTED"]),ol=a.object({id:a.string(),created:a.string(),displayName:a.string().default("").optional(),shortBio:a.string().default("").optional(),bio:a.string().default("").optional(),email:a.string().optional(),image:a.string().optional(),heroImage:a.string().optional()}),z$=Z.extend({records:ol.extend({did:a.string()}).array()}),j$=a.object({id:j,displayName:j,shortBio:j,bio:j,email:j}).partial(),P$=Z.extend({records:a.object({profile:V,manager:ol.extend({did:a.string()}).optional()}).array()}),C$=a.object({uri:a.string(),to:a.string(),from:a.string(),sent:a.iso.datetime(),received:a.iso.datetime().optional(),metadata:a.record(a.string(),a.unknown()).optional()}),Jr=a.object({role:a.string(),canView:a.boolean().default(!0),canEdit:a.boolean(),canIssue:a.boolean(),canRevoke:a.boolean(),canManagePermissions:a.boolean(),canIssueChildren:a.string(),canCreateChildren:a.string(),canEditChildren:a.string(),canRevokeChildren:a.string(),canManageChildrenPermissions:a.string(),canManageChildrenProfiles:a.boolean().optional(),canViewAnalytics:a.boolean()}),Qf=a.object({role:j,canView:a.boolean(),canEdit:a.boolean(),canIssue:a.boolean(),canRevoke:a.boolean(),canManagePermissions:a.boolean(),canIssueChildren:j,canCreateChildren:j,canEditChildren:j,canRevokeChildren:j,canManageChildrenPermissions:j,canManageChildrenProfiles:a.boolean(),canViewAnalytics:a.boolean()}).partial(),iu=a.enum(["GRANT_PERMISSIONS","ADD_ADMIN","AUTO_CONNECT"]),Yf=a.discriminatedUnion("type",[a.object({type:a.literal(iu.enum.GRANT_PERMISSIONS),data:a.object({claimUri:a.string(),targetUri:a.string(),permissions:Jr.partial()})}),a.object({type:a.literal(iu.enum.ADD_ADMIN),data:a.object({claimUri:a.string(),targetUri:a.string()})}),a.object({type:a.literal(iu.enum.AUTO_CONNECT),data:a.object({claimUri:a.string(),targetUri:a.string()})})]),N$=a.object({type:j,data:a.object({claimUri:j,targetUri:j,permissions:Qf.partial()}).partial()}),eg=a.object({id:a.string(),createdAt:a.string(),updatedAt:a.string()}).and(Yf),U$=Z.extend({records:eg.array()}),au=a.enum(["DRAFT","PROVISIONAL","LIVE"]),al=a.object({uri:a.string(),name:a.string().optional(),type:a.string().optional(),category:a.string().optional(),status:au.optional(),autoConnectRecipients:a.boolean().optional(),meta:a.record(a.string(),a.any()).optional(),claimPermissions:Jr.optional(),defaultPermissions:Jr.optional(),allowAnyoneToCreateChildren:a.boolean().optional()}),Kc=a.object({uri:j,name:j,type:j,category:j,meta:a.record(a.string(),j),status:au.or(a.object({$in:au.array()})),autoConnectRecipients:a.boolean()}).partial(),D$=a.union([a.object({$or:Kc.array()}),Kc]),O$=Z.extend({records:al.array()}),tg=a.object({to:du,from:a.string(),received:a.string().optional(),uri:a.string().optional()}),E$=Z.extend({records:tg.array()}),rg=a.object({to:du,from:a.string(),received:a.string().optional(),boostUris:a.array(a.string()),credentialUris:a.array(a.string()).optional()}),A$=Z.extend({records:rg.array()}),T$=a.object({endpoint:a.string(),name:a.string(),did:a.string().optional()}),Z$=a.object({ttlSeconds:a.number().optional(),totalUses:a.number().optional()}),ng=a.object({endpoint:a.string()}),V$=a.object({signingAuthority:ng,relationship:a.object({name:a.string().max(15).regex(/^[a-z0-9-]+$/,{message:"The input string must contain only lowercase letters, numbers, and hyphens."}),did:a.string(),isPrimary:a.boolean().optional()})}),R$=a.object({boostUri:a.string(),signingAuthority:a.object({endpoint:a.string(),name:a.string()})}),ig=al.partial().omit({uri:!0,claimPermissions:!0}).extend({credential:le.or(re),claimPermissions:Jr.partial().optional(),skills:a.array(a.object({frameworkId:a.string(),id:a.string(),proficiencyLevel:a.number().optional()})).min(1).optional()}),og=a.object({issuerName:a.string().optional().describe("Name of the issuing organization"),issuerLogoUrl:a.string().url().optional().describe("Logo URL of the issuing organization"),credentialName:a.string().optional().describe("Display name for the credential"),recipientName:a.string().optional().describe("Name of the recipient for personalization")}),ag=a.object({webhookUrl:a.string().url().optional().describe("Webhook URL to receive claim notifications"),suppressDelivery:a.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),branding:og.optional().describe("Branding for email/SMS delivery")}),sg=a.object({type:a.literal("boost"),recipient:a.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),contractUri:a.string().optional(),templateUri:a.string().optional(),template:ig.optional(),signedCredential:le.optional(),options:ag.optional().describe("Options for email/phone recipients (Universal Inbox)"),templateData:a.record(a.string(),a.unknown()).optional(),integrationId:a.string().optional().describe("Integration ID for activity tracking")}).refine(e=>e.templateUri||e.template||e.signedCredential,{message:"Either templateUri, template, or signedCredential must be provided.",path:["templateUri"]}),ug=a.object({issuanceId:a.string(),status:a.enum(["PENDING","ISSUED","EXPIRED","DELIVERED","CLAIMED"]),claimUrl:a.string().url().optional().describe("Present when suppressDelivery=true")}),cg=a.object({type:a.literal("boost"),credentialUri:a.string(),uri:a.string(),activityId:a.string().describe("Links to the activity lifecycle for this issuance"),inbox:ug.optional().describe("Present when sent via email/phone (Universal Inbox)")}),L$=a.discriminatedUnion("type",[sg]),F$=a.discriminatedUnion("type",[cg]),lg=a.enum(["live","stale","withdrawn"]),pu=a.object({read:a.object({anonymize:a.boolean().optional(),credentials:a.object({categories:a.record(a.string(),a.object({required:a.boolean(),defaultEnabled:a.boolean().optional()})).default({})}).prefault({categories:{}}),personal:a.record(a.string(),a.object({required:a.boolean(),defaultEnabled:a.boolean().optional()})).default({})}).prefault({credentials:{categories:{}},personal:{}}),write:a.object({credentials:a.object({categories:a.record(a.string(),a.object({required:a.boolean(),defaultEnabled:a.boolean().optional()})).default({})}).prefault({categories:{}}),personal:a.record(a.string(),a.object({required:a.boolean(),defaultEnabled:a.boolean().optional()})).default({})}).prefault({credentials:{categories:{}},personal:{}})}),sl=a.object({contract:pu,owner:V,name:a.string(),subtitle:a.string().optional(),description:a.string().optional(),reasonForAccessing:a.string().optional(),image:a.string().optional(),uri:a.string(),needsGuardianConsent:a.boolean().optional(),redirectUrl:a.string().optional(),frontDoorBoostUri:a.string().optional(),createdAt:a.string(),updatedAt:a.string(),expiresAt:a.string().optional(),autoBoosts:a.string().array().optional(),writers:a.array(V).optional()}),dg=a.enum(["pending","accepted","denied"]).nullable(),pg=a.enum(["unseen","seen"]).nullable(),mg=a.object({profile:V,status:dg,readStatus:pg.optional()}),B$=a.array(mg),M$=Z.extend({records:sl.omit({owner:!0}).array()}),fg=a.object({credentials:a.object({categories:a.record(a.string(),a.string().array()).default({})}),personal:a.record(a.string(),a.string()).default({}),date:a.string()}),q$=Z.extend({records:fg.array()}),gg=a.object({credentials:a.object({category:a.string(),uri:a.string()}).array(),personal:a.record(a.string(),a.string()).default({}),date:a.string(),contractUri:a.string()}),J$=Z.extend({records:gg.array()}),ul=a.object({sharing:a.boolean().optional(),shared:a.string().array().optional(),shareAll:a.boolean().optional(),shareUntil:a.string().optional()}),Xr=a.object({read:a.object({anonymize:a.boolean().optional(),credentials:a.object({shareAll:a.boolean().optional(),sharing:a.boolean().optional(),categories:a.record(a.string(),ul).default({})}).prefault({categories:{}}),personal:a.record(a.string(),a.string()).default({})}).prefault({credentials:{categories:{}},personal:{}}),write:a.object({credentials:a.object({categories:a.record(a.string(),a.boolean()).default({})}).prefault({categories:{}}),personal:a.record(a.string(),a.boolean()).default({})}).prefault({credentials:{categories:{}},personal:{}}),deniedWriters:a.array(a.string()).optional()}),G$=Z.extend({records:a.object({expiresAt:a.string().optional(),oneTime:a.boolean().optional(),terms:Xr,contract:sl,uri:a.string(),consenter:V,status:lg}).array()}),W$=a.object({read:a.object({anonymize:a.boolean().optional(),credentials:a.object({categories:a.record(a.string(),a.object({required:a.boolean().optional()})).optional()}).optional(),personal:a.record(a.string(),a.object({required:a.boolean().optional()})).optional()}).optional(),write:a.object({credentials:a.object({categories:a.record(a.string(),a.object({required:a.boolean().optional()})).optional()}).optional(),personal:a.record(a.string(),a.object({required:a.boolean().optional()})).optional()}).optional()}),K$=a.object({anonymize:a.boolean().optional(),credentials:a.object({categories:a.record(a.string(),a.boolean()).optional()}).optional(),personal:a.record(a.string(),a.boolean()).optional()}),X$=a.object({credentials:a.object({categories:a.record(a.string(),a.boolean()).optional()}).optional(),personal:a.record(a.string(),a.boolean()).optional(),id:j.optional()}),vg=a.object({read:a.object({anonymize:a.boolean().optional(),credentials:a.object({shareAll:a.boolean().optional(),sharing:a.boolean().optional(),categories:a.record(a.string(),ul.optional()).optional()}).optional(),personal:a.record(a.string(),a.string()).optional()}).optional(),write:a.object({credentials:a.object({categories:a.record(a.string(),a.boolean()).optional()}).optional(),personal:a.record(a.string(),a.boolean()).optional()}).optional()}),su=a.enum(["consent","update","sync","withdraw","write"]),H$=a.object({terms:vg.optional(),action:su.or(su.array()).optional(),date:a.object({$gt:a.string()}).or(a.object({$lt:a.string()})).or(a.object({$eq:a.string()})).optional(),expiresAt:a.object({$gt:a.string()}).or(a.object({$lt:a.string()})).or(a.object({$eq:a.string()})).optional(),oneTime:a.boolean().optional()}),cl=a.object({expiresAt:a.string().optional(),oneTime:a.boolean().optional(),terms:Xr.optional(),id:a.string(),action:su,date:a.string(),uris:a.string().array().optional()}),Q$=Z.extend({records:cl.array()}),Xc=a.object({id:j,name:j,description:j,sourceURI:j,status:j}).partial(),Y$=a.union([a.object({$or:Xc.array()}),Xc]),hg=a.object({credentialUri:a.string(),termsUri:a.string(),contractUri:a.string(),boostUri:a.string(),category:a.string().optional(),date:a.string()}),e_=Z.extend({records:hg.array()}),yg=a.enum(["CONNECTION_REQUEST","CONNECTION_REQUEST_EXPIRED_INVITE","CONNECTION_ACCEPTED","CREDENTIAL_RECEIVED","CREDENTIAL_ACCEPTED","BOOST_RECEIVED","BOOST_ACCEPTED","PRESENTATION_REQUEST","PRESENTATION_RECEIVED","CONSENT_FLOW_TRANSACTION","ISSUANCE_CLAIMED","ISSUANCE_DELIVERED","ISSUANCE_ERROR","PROFILE_PARENT_APPROVED","APP_LISTING_SUBMITTED","APP_LISTING_APPROVED","APP_LISTING_REJECTED","APP_LISTING_WITHDRAWN","DEVICE_LINK_REQUEST"]),bg=a.object({title:a.string().optional(),body:a.string().optional()}),$g=a.object({type:a.string(),value:a.string()}),Hr=a.enum(["PENDING","ISSUED","EXPIRED","DELIVERED","CLAIMED"]),_g=a.object({issuanceId:a.string(),status:Hr,recipient:a.object({contactMethod:$g.optional(),learnCardId:a.string().optional()}),timestamp:a.iso.datetime().optional()}),kg=a.object({vcUris:a.array(a.string()).optional(),vpUris:a.array(a.string()).optional(),transaction:cl.optional(),inbox:_g.optional(),metadata:a.record(a.string(),a.unknown()).optional()}).loose(),t_=a.object({type:yg,to:V.partial().and(a.object({did:a.string()})),from:V.partial().and(a.object({did:a.string()})),message:bg.optional(),data:kg.optional(),sent:a.iso.datetime().optional(),webhookUrl:a.string().optional()}),xg="auth-grant:",r_=a.object({id:a.string(),name:a.string(),description:a.string().optional(),challenge:a.string().startsWith(xg).min(10,{message:"Challenge is too short"}).max(100,{message:"Challenge is too long"}),status:a.enum(["revoked","active"],{error:uu(e=>e.code==="invalid_value"?"Status must be either active or revoked":"Status is required","error")}),scope:a.string(),createdAt:a.iso.datetime({error:"createdAt must be a valid ISO 8601 datetime string"}),expiresAt:a.iso.datetime({error:"expiresAt must be a valid ISO 8601 datetime string"}).nullish().optional()}),n_=a.object({id:a.string()}).catchall(a.any()),wg=a.enum(["active","revoked"]),i_=a.object({id:j,name:j,description:j,status:wg}).partial(),Hc=a.object({id:a.string(),isVerified:a.boolean(),verifiedAt:a.string().optional(),isPrimary:a.boolean(),createdAt:a.string()}),o_=a.discriminatedUnion("type",[a.object({type:a.literal("email"),value:a.string().email()}).merge(Hc),a.object({type:a.literal("phone"),value:a.string()}).merge(Hc)]),Qc=a.object({isVerified:a.boolean().optional(),isPrimary:a.boolean().optional()}),a_=a.discriminatedUnion("type",[a.object({type:a.literal("email"),value:a.string().email()}).merge(Qc),a.object({type:a.literal("phone"),value:a.string()}).merge(Qc)]),ll=a.discriminatedUnion("type",[a.object({type:a.literal("email"),value:a.string().email()}),a.object({type:a.literal("phone"),value:a.string()})]),Ig=a.object({value:a.string(),type:a.enum(["email","phone"])}),s_=a.object({token:a.string()}),u_=a.object({contactMethodId:a.string()}),c_=a.object({contactMethod:Ig,otpChallenge:a.string()}),l_=a.object({sessionJwt:a.string()}),Sg=a.object({id:a.string(),credential:a.string(),isSigned:a.boolean(),currentStatus:Hr,isAccepted:a.boolean().optional(),expiresAt:a.string(),createdAt:a.string(),issuerDid:a.string(),webhookUrl:a.string().optional(),boostUri:a.string().optional(),activityId:a.string().optional(),integrationId:a.string().optional(),signingAuthority:a.object({endpoint:a.string().optional(),name:a.string().optional()}).optional()}),d_=a.object({hasMore:a.boolean(),records:a.array(Sg),cursor:a.string().optional()}),p_=a.object({currentStatus:Hr,id:a.string(),isSigned:a.boolean(),isAccepted:a.boolean().optional(),issuerDid:a.string(),boostUri:a.string()}).partial(),zg=a.object({endpoint:a.string().url(),name:a.string()}),m_=a.object({recipient:ll.describe("The recipient of the credential"),credential:le.or(Et).or(re).optional().describe("The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."),templateUri:a.string().optional().describe("URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."),configuration:a.object({signingAuthority:zg.optional().describe("The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."),webhookUrl:a.string().url().optional().describe("The webhook URL to receive credential issuance events."),expiresInDays:a.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),templateData:a.record(a.string(),a.unknown()).optional().describe("Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."),delivery:a.object({suppress:a.boolean().optional().default(!1).describe("Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."),template:a.object({id:a.enum(["universal-inbox-claim"]).optional().describe("The template ID to use for the credential delivery. If not provided, the default template will be used."),model:a.object({issuer:a.object({name:a.string().optional().describe('The name of the organization (e.g., "State University").'),logoUrl:a.string().url().optional().describe("The URL of the organization's logo.")}).optional(),credential:a.object({name:a.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),type:a.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')}).optional(),recipient:a.object({name:a.string().optional().describe('The name of the recipient (e.g., "John Doe").')}).optional()}).describe("The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used.")}).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")}).optional().describe("Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used.")}).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")}).refine(e=>e.credential||e.templateUri,{message:"Either credential or templateUri must be provided.",path:["credential"]}),f_=a.object({issuanceId:a.string(),status:Hr,recipient:ll,claimUrl:a.string().url().optional(),recipientDid:a.string().optional()}),jg=a.object({name:a.string()}).passthrough(),g_=a.object({credential:le.or(Et).or(re).or(jg).describe("The credential to issue, or a { name } reference to resolve a boost template."),configuration:a.object({publishableKey:a.string(),signingAuthorityName:a.string().optional(),listingId:a.string().optional(),listingSlug:a.string().optional()}).optional()}),mu=a.union([a.string().regex(/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,{message:"Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"}),a.string().regex(/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,{message:"Must be a valid http(s) origin"})]),dl=a.enum(["setup","active","paused"]),Pg=a.object({id:a.string(),name:a.string(),description:a.string().optional(),publishableKey:a.string(),whitelistedDomains:a.array(mu).default([]),status:dl.default("setup"),guideType:a.string().optional(),guideState:a.record(a.string(),a.any()).optional(),createdAt:a.string().optional(),updatedAt:a.string().optional()}),v_=a.object({name:a.string(),description:a.string().optional(),whitelistedDomains:a.array(mu).default([]),guideType:a.string().optional()}),h_=a.object({name:a.string().optional(),description:a.string().optional(),whitelistedDomains:a.array(mu).optional(),rotatePublishableKey:a.boolean().optional(),status:dl.optional(),guideType:a.string().optional(),guideState:a.record(a.string(),a.any()).optional()}),y_=a.object({id:j,name:j,description:j,status:j,guideType:j}).partial(),b_=Z.extend({records:Pg.array()}),$_=a.object({token:a.string(),contactMethodId:a.string(),autoVerifyContactMethod:a.boolean().optional().default(!1),createdAt:a.string(),expiresAt:a.string(),used:a.boolean()}),__=a.object({id:a.string(),name:a.string().min(1),slug:a.string().min(1),createdAt:a.string().optional(),updatedAt:a.string().optional()}),Ot=a.enum(["active","archived"]),fu=a.object({id:a.string(),statement:a.string(),description:a.string().optional(),code:a.string().optional(),icon:a.string().optional(),type:a.string().default("skill"),status:Ot.default("active"),frameworkId:a.string().optional(),createdAt:a.string().optional(),updatedAt:a.string().optional()}),Yc=a.object({id:j,statement:j,description:j,code:j,type:j,status:Ot.or(a.object({$in:Ot.array()}))}).partial(),k_=a.union([a.object({$or:Yc.array()}),Yc]),x_=a.object({text:a.string().min(1),frameworkId:a.string().optional(),limit:a.number().int().min(1).max(200).default(50)}),Cg=fu.extend({score:a.number()}),w_=a.object({records:Cg.array()}),gu=a.enum(["active","archived"]),pl=a.object({id:a.string(),name:a.string(),description:a.string().optional(),image:a.string().optional(),sourceURI:a.string().url().optional(),isPublic:a.boolean().default(!1),status:gu.default("active"),createdAt:a.string().optional(),updatedAt:a.string().optional()}),I_=Z.extend({records:pl.array()}),vu=fu.extend({children:a.array(a.lazy(()=>vu)),hasChildren:a.boolean(),childrenCursor:a.string().nullable().optional()}),Ng=a.object({hasMore:a.boolean(),cursor:a.string().nullable(),records:a.array(vu)}),Le=a.lazy(()=>a.object({id:a.string().optional(),statement:a.string(),description:a.string().optional(),code:a.string().optional(),icon:a.string().optional(),type:a.string().optional(),status:Ot.optional(),children:a.array(Le).optional()})),S_=a.object({frameworkId:a.string()}),Ug=a.object({id:a.string().optional(),name:a.string().min(1),description:a.string().optional(),image:a.string().optional(),sourceURI:a.string().url().optional(),isPublic:a.boolean().optional(),status:gu.optional(),skills:a.array(Le).optional(),boostUris:a.array(a.string()).optional()}),z_=a.object({id:a.string(),name:a.string().min(1).optional(),description:a.string().optional(),image:a.string().optional(),sourceURI:a.string().url().optional(),isPublic:a.boolean().optional(),status:gu.optional()}).refine(e=>e.name!==void 0||e.description!==void 0||e.image!==void 0||e.sourceURI!==void 0||e.isPublic!==void 0||e.status!==void 0,{message:"At least one field must be provided to update",path:["name"]}),j_=a.object({id:a.string()}),P_=a.object({frameworks:a.array(Ug.extend({skills:a.array(Le).optional()})).min(1)}),C_=a.object({frameworkId:a.string(),profileId:a.string()}),N_=a.object({frameworkId:a.string()}),U_=V.array(),D_=a.object({id:a.string()}),O_=a.object({slug:a.string().min(1),name:a.string().min(1)}),E_=a.object({frameworkId:a.string(),skill:Le,parentId:a.string().nullable().optional()}),A_=a.object({frameworkId:a.string(),id:a.string(),statement:a.string().optional(),description:a.string().optional(),code:a.string().optional(),icon:a.string().optional(),type:a.string().optional(),status:Ot.optional()}).refine(e=>e.statement!==void 0||e.description!==void 0||e.code!==void 0||e.icon!==void 0||e.type!==void 0||e.status!==void 0,{message:"At least one field must be provided to update a skill",path:["statement"]}),Dg=a.enum(["recursive","reparent"]),T_=a.object({frameworkId:a.string(),id:a.string(),strategy:Dg.optional().default("reparent")}),Z_=a.object({frameworkId:a.string(),skills:a.array(Le).min(1),parentId:a.string().nullable().optional()}),V_=a.object({frameworkId:a.string(),skills:a.array(Le).min(0)}),R_=a.object({created:a.number().int().min(0),updated:a.number().int().min(0),deleted:a.number().int().min(0),unchanged:a.number().int().min(0),total:a.number().int().min(0)}),L_=a.object({frameworkId:a.string(),skillId:a.string().optional(),recursive:a.boolean().optional().default(!1),onlyCountCompetencies:a.boolean().optional().default(!1)}),F_=a.object({count:a.number().int().min(0)}),B_=a.object({frameworkId:a.string()}),M_=a.object({skills:a.array(vu)}),q_=a.object({frameworkId:a.string(),skillId:a.string()}),J_=a.object({path:a.array(fu)}),G_=a.object({framework:pl,skills:Ng}),Og=a.enum(["DRAFT","PENDING_REVIEW","LISTED","ARCHIVED"]),Eg=a.enum(["EMBEDDED_IFRAME","SECOND_SCREEN","DIRECT_LINK","CONSENT_REDIRECT","SERVER_HEADLESS","AI_TUTOR"]),Ag=a.enum(["FEATURED_CAROUSEL","CURATED_LIST","STANDARD","DEMOTED"]),Tg=a.enum(["4+","9+","12+","17+"]),Zg=a.object({profileId:a.string(),displayName:a.string(),email:a.string().optional()}),Qr=a.object({listing_id:a.string(),slug:a.string().optional(),display_name:a.string(),tagline:a.string(),full_description:a.string(),icon_url:a.string(),app_listing_status:Og,launch_type:Eg,launch_config_json:a.string(),category:a.string().optional(),promo_video_url:a.string().optional(),promotion_level:Ag.optional(),ios_app_store_id:a.string().optional(),android_app_store_id:a.string().optional(),privacy_policy_url:a.string().optional(),terms_url:a.string().optional(),highlights:a.array(a.string()).optional(),screenshots:a.array(a.string()).optional(),hero_background_color:a.string().optional(),min_age:a.number().int().min(0).max(18).optional(),age_rating:Tg.optional(),submitted_at:a.string().optional(),submitter:Zg.optional(),contact_email:a.string().email().optional()}),W_=Qr.omit({listing_id:!0,app_listing_status:!0,promotion_level:!0}),K_=Qr.partial().omit({listing_id:!0,app_listing_status:!0,promotion_level:!0}),Vg=Qr.extend({installed_at:a.string()}),X_=Z.extend({records:Qr.array()}),H_=Z.extend({records:Vg.array()}),Q_=a.object({templateAlias:a.string().min(1).max(50).regex(/^[a-z0-9-]+$/),boostUri:a.string()}),Rg=a.object({type:a.literal("send-credential"),templateAlias:a.string(),templateData:a.record(a.string(),a.unknown()).optional(),preventDuplicateClaim:a.boolean().optional()}),Lg=a.object({type:a.literal("check-credential"),templateAlias:a.string().optional(),boostUri:a.string().optional()}).refine(e=>!!e.templateAlias!=!!e.boostUri,{message:"Exactly one of templateAlias or boostUri is required"}),Fg=a.object({type:a.literal("check-issuance-status"),templateAlias:a.string().optional(),boostUri:a.string().optional(),recipient:a.string()}).refine(e=>!!e.templateAlias!=!!e.boostUri,{message:"Exactly one of templateAlias or boostUri is required"}),Bg=a.object({type:a.literal("get-template-recipients"),templateAlias:a.string().optional(),boostUri:a.string().optional(),limit:a.number().optional(),cursor:a.string().optional()}).refine(e=>!!e.templateAlias!=!!e.boostUri,{message:"Exactly one of templateAlias or boostUri is required"}),Mg=a.discriminatedUnion("type",[Rg,Lg,Fg,Bg]),Y_=a.object({listingId:a.string(),event:Mg}),ek=a.record(a.string(),a.unknown()),qg=a.enum(["CREATED","DELIVERED","CLAIMED","EXPIRED","FAILED"]),Jg=a.enum(["profile","email","phone"]),Gg=a.enum(["send","sendBoost","sendCredential","contract","claim","inbox","claimLink","acceptCredential","appEvent"]),Wg=a.object({id:a.string(),activityId:a.string(),eventType:qg,timestamp:a.string(),actorProfileId:a.string(),recipientType:Jg,recipientIdentifier:a.string(),boostUri:a.string().optional(),credentialUri:a.string().optional(),inboxCredentialId:a.string().optional(),integrationId:a.string().optional(),source:Gg,metadata:a.record(a.string(),a.unknown()).optional()}),Kg=Wg.extend({boost:a.object({id:a.string(),name:a.string().optional(),category:a.string().optional()}).optional(),recipientProfile:a.object({profileId:a.string(),displayName:a.string().optional()}).optional()}),tk=Z.extend({records:Kg.array()}),rk=a.object({total:a.number(),created:a.number(),delivered:a.number(),claimed:a.number(),expired:a.number(),failed:a.number(),claimRate:a.number()}),Ie,nk=(Ie=class extends Error{constructor(r,i){super(r),this.reason=i,this.name="AuthSessionError"}},s(Ie,"AuthSessionError"),uu(Ie,"AuthSessionError"),Ie);var bu=require("@learncard/helpers");var Xg=Object.prototype.toString,Be=Array.isArray||s(function(r){return Xg.call(r)==="[object Array]"},"isArrayPolyfill");function yu(e){return typeof e=="function"}s(yu,"isFunction");function Hg(e){return Be(e)?"array":typeof e}s(Hg,"typeStr");function hu(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}s(hu,"escapeRegExp");function ml(e,r){return e!=null&&typeof e=="object"&&r in e}s(ml,"hasProperty");function Qg(e,r){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(r)}s(Qg,"primitiveHasOwnProperty");var Yg=RegExp.prototype.test;function ev(e,r){return Yg.call(e,r)}s(ev,"testRegExp");var tv=/\S/;function rv(e){return!ev(tv,e)}s(rv,"isWhitespace");var nv={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function iv(e){return String(e).replace(/[&<>"'`=\/]/g,s(function(i){return nv[i]},"fromEntityMap"))}s(iv,"escapeHtml");var ov=/\s*/,av=/\s+/,fl=/\s*=/,sv=/\s*\}/,uv=/#|\^|\/|>|\{|&|=|!/;function cv(e,r){if(!e)return[];var i=!1,n=[],t=[],o=[],u=!1,l=!1,f="",g=0;function m(){if(u&&!l)for(;o.length;)delete t[o.pop()];else o=[];u=!1,l=!1}s(m,"stripSpace");var y,p,c;function d(G){if(typeof G=="string"&&(G=G.split(av,2)),!Be(G)||G.length!==2)throw new Error("Invalid tags: "+G);y=new RegExp(hu(G[0])+"\\s*"),p=new RegExp("\\s*"+hu(G[1])),c=new RegExp("\\s*"+hu("}"+G[1]))}s(d,"compileTags"),d(r||ee.tags);for(var v=new Tt(e),$,w,I,S,C,A;!v.eos();){if($=v.pos,I=v.scanUntil(y),I)for(var X=0,E=I.length;X<E;++X)S=I.charAt(X),rv(S)?(o.push(t.length),f+=S):(l=!0,i=!0,f+=" "),t.push(["text",S,$,$+1]),$+=1,S===`
|
|
24
|
-
`&&(
|
|
25
|
-
`),
|
|
26
|
-
`)},"indentPartial");B.prototype.renderPartial=s(function(r,i,n,t){if(n){var o=this.getConfigTags(t),u=yu(n)?n(r[1]):n[r[1]];if(u!=null){var l=r[6],f=r[5],g=r[4],m=u;f==0&&g&&(m=this.indentPartial(u,g,l));var y=this.parse(m,o);return this.renderTokens(y,i,n,m,t)}}},"renderPartial");B.prototype.unescapedValue=s(function(r,i){var n=i.lookup(r[1]);if(n!=null)return n},"unescapedValue");B.prototype.escapedValue=s(function(r,i,n){var t=this.getConfigEscape(n)||ee.escape,o=i.lookup(r[1]);if(o!=null)return typeof o=="number"&&t===ee.escape?String(o):t(o)},"escapedValue");B.prototype.rawValue=s(function(r){return r[1]},"rawValue");B.prototype.getConfigTags=s(function(r){return Be(r)?r:r&&typeof r=="object"?r.tags:void 0},"getConfigTags");B.prototype.getConfigEscape=s(function(r){if(r&&typeof r=="object"&&!Be(r))return r.escape},"getConfigEscape");var ee={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){At.templateCache=e},get templateCache(){return At.templateCache}},At=new B;ee.clearCache=s(function(){return At.clearCache()},"clearCache");ee.parse=s(function(r,i){return At.parse(r,i)},"parse");ee.render=s(function(r,i,n,t){if(typeof r!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+Hg(r)+'" was given as the first argument for mustache#render(template, view, partials)');return At.render(r,i,n,t)},"render");ee.escape=iv;ee.Scanner=Tt;ee.Context=Fe;ee.Writer=B;var gl=ee;var pv=s(e=>e==null?"":String(e).replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\f/g,"\\f").replace(/[\b]/g,"\\b"),"escapeJsonStringValue"),mv=s(e=>{let r={};for(let[i,n]of Object.entries(e))r[i]=pv(n);return r},"prepareTemplateData"),vl=s((e,r)=>{let i=mv(r),n=e.replace(/\{\{([^{}]+)\}\}/g,"{{{$1}}}");return gl.render(n,i)},"renderTemplateJson"),Yr=s(e=>!!e&&"did"in e&&typeof e.did=="string"&&e.did.length>0,"hasDid");async function fv(e,r,i,n){let t=typeof i=="string"?i:void 0,o=(typeof i=="object"?i?.guardianApprovalGetter:void 0)??n?.guardianApprovalGetter,u="";try{let p=e?.id;p&&typeof p.did=="function"&&(u=p.did())}catch{e?.debug?.("LCN: no local DID available at init; will fetch from profile")}e?.debug?.("Adding LearnCardNetwork Plugin");let l=t?await(0,en.getApiTokenClient)(r,t,o):await(0,en.getClient)(r,async p=>{let c=await e.invoke.getDidAuthVp({proofFormat:"jwt",challenge:p});if(typeof c!="string")throw new Error("Error getting DID-Auth-JWT!");return c},o),f;e?.debug?.("LCN: initial getProfile query starting",{apiToken:!!t});let g=l.profile.getProfile.query().then(p=>(f=p,f?.did&&(u=f.did),e?.debug?.("LCN: initial getProfile success",{did:u}),p)).catch(p=>{e?.debug?.("LCN: getProfile failed (non-fatal)",p)}),m=s(async()=>{try{await g}catch{}if(!f&&t)try{e?.debug?.("LCN ensureUser: retrying getProfile with apiToken"),f=await l.profile.getProfile.query(),f?.did&&(u=f.did),e?.debug?.("LCN ensureUser: retry success",{did:u})}catch(p){e?.debug?.("LCN ensureUser: retry failed",p)}if(!f)throw new Error("Please make an account first!");return f},"ensureUser"),y=s(async(p,c)=>{try{return(await l.boost.getBoost.query({uri:c})).boost}catch(d){return e?.debug?.("LCN: getBoost failed for template retrieval, falling back to resolveFromLCN",d),p.invoke.resolveFromLCN(c)}},"getBoostTemplateForIssuance");return{name:"LearnCard Network",displayName:"LearnCard Network",description:"LearnCard Network Integration",id:{did:s((p,c)=>!c||c==="web"?u:e.id?.did?.(c),"did"),keypair:s((p,c)=>e.id?.keypair?.(c),"keypair")},read:{get:s(async(p,c)=>{if(p.debug?.("learnCard.read['LearnCard Network'].get"),!c)return;let d=c.split(":");if(d.length!==5)return;let[v,$]=d;if(!(v!=="lc"||$!=="network"))try{let w=await l.storage.resolve.query({uri:c});if("ciphertext"in w)try{let I=p.id.keypair();w=await p.invoke.decryptDagJwe(w,[I])}catch(I){p.debug?.("LCN read.get: skipping decryption (no keypair?)",I);return}return await le.or(Et).parseAsync(w)}catch(w){p.debug?.(w);return}},"get")},store:{upload:s(async(p,c)=>(p.debug?.("learnCard.store['LearnCard Network'].upload"),l.storage.store.mutate({item:c})),"upload"),uploadEncrypted:s(async(p,c,{recipients:d=[]}={recipients:[]})=>{p.debug?.("learnCard.store['LearnCard Network'].upload"),await m();let $=[u||f?.did||"",...d].filter(Boolean);if($.length===0)throw new Error("No recipients specified for encrypted upload; provide at least one DID");let w=await p.invoke.createDagJwe(c,$);return l.storage.store.mutate({item:w})},"uploadEncrypted")},methods:{createProfile:s(async(p,c)=>{try{await m()}catch{}if(f)throw new Error("Account already exists!");let d=await l.profile.createProfile.mutate(c);return f=await l.profile.getProfile.query(),u=d,d},"createProfile"),createServiceProfile:s(async(p,c)=>{try{await m()}catch{}let d=await l.profile.createServiceProfile.mutate(c);return f=await l.profile.getProfile.query(),u=d,d},"createServiceProfile"),createManagedProfile:s(async(p,c)=>await l.profileManager.createManagedProfile.mutate(c),"createManagedProfile"),createProfileManager:s(async(p,c)=>(await m(),await l.profileManager.createProfileManager.mutate(c)),"createProfileManager"),createChildProfileManager:s(async(p,c,d)=>(await m(),await l.profileManager.createChildProfileManager.mutate({parentUri:c,profile:d})),"createChildProfileManager"),createManagedServiceProfile:s(async(p,c)=>(await m(),await l.profile.createManagedServiceProfile.mutate(c)),"createManagedServiceProfile"),getAvailableProfiles:s(async(p,c={})=>(await m(),l.profile.getAvailableProfiles.query(c)),"getAvailableProfiles"),getManagedProfiles:s(async(p,c={})=>l.profileManager.getManagedProfiles.query(c),"getManagedProfiles"),getManagedServiceProfiles:s(async(p,c={})=>(await m(),l.profile.getManagedServiceProfiles.query(c)),"getManagedServiceProfiles"),updateProfile:s(async(p,c)=>(await m(),await l.profile.updateProfile.mutate(c)?(f=await l.profile.getProfile.query(),!0):!1),"updateProfile"),updateProfileManagerProfile:s(async(p,c)=>l.profileManager.updateProfileManager.mutate(c),"updateProfileManagerProfile"),deleteProfile:s(async()=>{if(!f)throw new Error("Account does not exist!");return await l.profile.deleteProfile.mutate()?(f=void 0,!0):!1},"deleteProfile"),getProfile:s(async(p,c)=>{try{await m()}catch{}return c?l.profile.getOtherProfile.query({profileId:c}):f},"getProfile"),getProfileManagerProfile:s(async(p,c)=>c?l.profileManager.getOtherProfileManager.query({id:c}):l.profileManager.getProfileManager.query(),"getProfileManagerProfile"),searchProfiles:s(async(p,c="",{limit:d=25,includeSelf:v=!1,includeConnectionStatus:$=!1,includeServiceProfiles:w=!1}={})=>l.profile.searchProfiles.query({input:c,limit:d,includeSelf:v,includeConnectionStatus:$,includeServiceProfiles:w}),"searchProfiles"),connectWith:s(async(p,c)=>(await m(),l.profile.connectWith.mutate({profileId:c})),"connectWith"),connectWithExpiredInvite:s(async(p,c)=>(await m(),l.profile.connectWithExpiredInvite.mutate({profileId:c})),"connectWithExpiredInvite"),cancelConnectionRequest:s(async(p,c)=>(await m(),l.profile.cancelConnectionRequest.mutate({profileId:c})),"cancelConnectionRequest"),connectWithInvite:s(async(p,c,d)=>(await m(),l.profile.connectWithInvite.mutate({profileId:c,challenge:d})),"connectWithInvite"),disconnectWith:s(async(p,c)=>(await m(),l.profile.disconnectWith.mutate({profileId:c})),"disconnectWith"),acceptConnectionRequest:s(async(p,c)=>(await m(),l.profile.acceptConnectionRequest.mutate({profileId:c})),"acceptConnectionRequest"),getConnections:s(async p=>(console.warn("The getConnections method is deprecated! Please use getPaginatedConnections instead!"),await m(),l.profile.connections.query()),"getConnections"),getPaginatedConnections:s(async(p,c)=>(await m(),l.profile.paginatedConnections.query(c)),"getPaginatedConnections"),getPendingConnections:s(async p=>(console.warn("The getPendingConnections method is deprecated! Please use getPaginatedPendingConnections instead!"),await m(),l.profile.pendingConnections.query()),"getPendingConnections"),getPaginatedPendingConnections:s(async(p,c)=>(await m(),l.profile.paginatedPendingConnections.query(c)),"getPaginatedPendingConnections"),getConnectionRequests:s(async p=>(console.warn("The getConnectionRequests method is deprecated! Please use getPaginatedConnectionRequests instead!"),await m(),l.profile.connectionRequests.query()),"getConnectionRequests"),getPaginatedConnectionRequests:s(async(p,c)=>(await m(),l.profile.paginatedConnectionRequests.query(c)),"getPaginatedConnectionRequests"),generateInvite:s(async(p,c,d,v)=>(await m(),l.profile.generateInvite.mutate({challenge:c,expiration:d,maxUses:v})),"generateInvite"),listInvites:s(async()=>(await m(),l.profile.listInvites.query()),"listInvites"),invalidateInvite:s(async(p,c)=>(await m(),l.profile.invalidateInvite.mutate({challenge:c})),"invalidateInvite"),blockProfile:s(async(p,c)=>(await m(),l.profile.blockProfile.mutate({profileId:c})),"blockProfile"),unblockProfile:s(async(p,c)=>(await m(),l.profile.unblockProfile.mutate({profileId:c})),"unblockProfile"),getBlockedProfiles:s(async()=>(await m(),l.profile.blocked.query()),"getBlockedProfiles"),sendCredential:s(async(p,c,d,v,$)=>{await m();let w,I=!0;if(typeof v=="boolean"?I=v:(v!==void 0&&(w=v),I=$??!0),!I)return l.credential.sendCredential.mutate({profileId:c,credential:d,metadata:w});let S=await p.invoke.getProfile(c);if(!S)throw new Error("Could not find target account");if(!Yr(S))throw new Error("Could not find target DID");let C=await p.invoke.createDagJwe(d,[p.id.did(),S.did]);return l.credential.sendCredential.mutate({profileId:c,credential:C,metadata:w})},"sendCredential"),acceptCredential:s(async(p,c,d)=>(await m(),l.credential.acceptCredential.mutate({uri:c,options:d})),"acceptCredential"),getReceivedCredentials:s(async(p,c)=>(await m(),l.credential.receivedCredentials.query({from:c})),"getReceivedCredentials"),getRevokedCredentials:s(async()=>(await m(),l.credential.getRevokedCredentials.query()),"getRevokedCredentials"),getSentCredentials:s(async(p,c)=>(await m(),l.credential.sentCredentials.query({to:c})),"getSentCredentials"),getIncomingCredentials:s(async(p,c)=>(await m(),l.credential.incomingCredentials.query({from:c})),"getIncomingCredentials"),deleteCredential:s(async(p,c)=>(await m(),l.credential.deleteCredential.mutate({uri:c})),"deleteCredential"),sendPresentation:s(async(p,c,d,v=!0)=>{if(await m(),!v)return l.presentation.sendPresentation.mutate({profileId:c,presentation:d});let $=await p.invoke.getProfile(c);if(!$)throw new Error("Could not find target account");if(!Yr($))throw new Error("Could not find target DID");let w=await p.invoke.createDagJwe(d,[p.id.did(),$.did]);return l.presentation.sendPresentation.mutate({profileId:c,presentation:w})},"sendPresentation"),acceptPresentation:s(async(p,c)=>(await m(),l.presentation.acceptPresentation.mutate({uri:c})),"acceptPresentation"),getReceivedPresentations:s(async(p,c)=>(await m(),l.presentation.receivedPresentations.query({from:c})),"getReceivedPresentations"),getSentPresentations:s(async(p,c)=>(await m(),l.presentation.sentPresentations.query({to:c})),"getSentPresentations"),getIncomingPresentations:s(async(p,c)=>(await m(),l.presentation.incomingPresentations.query({from:c})),"getIncomingPresentations"),deletePresentation:s(async(p,c)=>(await m(),l.presentation.deletePresentation.mutate({uri:c})),"deletePresentation"),createBoost:s(async(p,c,d)=>{await m();let{skills:v,...$}=d??{},w={credential:c,...$};return Array.isArray(v)&&v.length>0&&(w.skills=v),l.boost.createBoost.mutate(w)},"createBoost"),createChildBoost:s(async(p,c,d,v)=>{await m();let{skills:$,...w}=v||{},I={parentUri:c,boost:{credential:d,...w}};return Array.isArray($)&&$.length>0&&(I.skills=$),l.boost.createChildBoost.mutate(I)},"createChildBoost"),getBoost:s(async(p,c)=>(await m(),l.boost.getBoost.query({uri:c})),"getBoost"),getBoostSkills:s(async(p,c)=>(await m(),l.boost.getBoostSkills.query({uri:c})),"getBoostSkills"),getBoostFrameworks:s(async(p,c,d={})=>{if(!f)throw new Error("Please make an account first!");let{limit:v,cursor:$,query:w}=d??{};return l.boost.getBoostFrameworks.query({uri:c,limit:v,cursor:$,query:w})},"getBoostFrameworks"),getSkillsAvailableForBoost:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.boost.getSkillsAvailableForBoost.query({uri:c})},"getSkillsAvailableForBoost"),searchSkillsAvailableForBoost:s(async(p,c,d,v={})=>{if(!f)throw new Error("Please make an account first!");return l.boost.searchSkillsAvailableForBoost.query({uri:c,query:d,...v})},"searchSkillsAvailableForBoost"),getBoosts:s(async(p,c)=>(console.warn("The getBoosts method is deprecated! Please use getPaginatedBoosts instead!"),await m(),l.boost.getBoosts.query({query:c})),"getBoosts"),countBoosts:s(async(p,c)=>(await m(),l.boost.countBoosts.query({query:c})),"countBoosts"),getPaginatedBoosts:s(async(p,c)=>(await m(),l.boost.getPaginatedBoosts.query(c)),"getPaginatedBoosts"),getBoostChildren:s(async(p,c,d)=>(await m(),l.boost.getBoostChildren.query({uri:c,...d})),"getBoostChildren"),countBoostChildren:s(async(p,c,d)=>(await m(),l.boost.countBoostChildren.query({uri:c,...d})),"countBoostChildren"),getBoostSiblings:s(async(p,c,d)=>(await m(),l.boost.getBoostSiblings.query({uri:c,...d})),"getBoostSiblings"),countBoostSiblings:s(async(p,c,d)=>(await m(),l.boost.countBoostSiblings.query({uri:c,...d})),"countBoostSiblings"),getFamilialBoosts:s(async(p,c,d)=>(await m(),l.boost.getFamilialBoosts.query({uri:c,...d})),"getFamilialBoosts"),countFamilialBoosts:s(async(p,c,d)=>(await m(),l.boost.countFamilialBoosts.query({uri:c,...d})),"countFamilialBoosts"),getBoostParents:s(async(p,c,d)=>(await m(),l.boost.getBoostParents.query({uri:c,...d})),"getBoostParents"),countBoostParents:s(async(p,c,d)=>(await m(),l.boost.countBoostParents.query({uri:c,...d})),"countBoostParents"),makeBoostParent:s(async(p,c)=>(await m(),l.boost.makeBoostParent.mutate(c)),"makeBoostParent"),removeBoostParent:s(async(p,c)=>(await m(),l.boost.removeBoostParent.mutate(c)),"removeBoostParent"),getBoostRecipients:s(async(p,c,d=25,v=void 0,$=!0)=>(console.warn("The getBoostRecipients method is deprecated! Please use getPaginatedBoostRecipients instead!"),await m(),l.boost.getBoostRecipients.query({uri:c,limit:d,skip:v,includeUnacceptedBoosts:$})),"getBoostRecipients"),getPaginatedBoostRecipients:s(async(p,c,d=25,v=void 0,$=!0,w)=>(await m(),l.boost.getPaginatedBoostRecipients.query({uri:c,limit:d,cursor:v,includeUnacceptedBoosts:$,query:w})),"getPaginatedBoostRecipients"),getPaginatedBoostRecipientsWithChildren:s(async(p,c,d=25,v=void 0,$=!0,w,I,S=1)=>(await m(),l.boost.getPaginatedBoostRecipientsWithChildren.query({uri:c,limit:d,cursor:v,includeUnacceptedBoosts:$,boostQuery:w,profileQuery:I,numberOfGenerations:S})),"getPaginatedBoostRecipientsWithChildren"),countBoostRecipientsWithChildren:s(async(p,c,d=!0,v,$,w=1)=>{if(!f)throw new Error("Please make an account first!");return l.boost.getBoostRecipientsWithChildrenCount.query({uri:c,includeUnacceptedBoosts:d,boostQuery:v,profileQuery:$,numberOfGenerations:w})},"countBoostRecipientsWithChildren"),countBoostRecipients:s(async(p,c,d=!0)=>(await m(),l.boost.getBoostRecipientCount.query({uri:c,includeUnacceptedBoosts:d})),"countBoostRecipients"),getConnectedBoostRecipients:s(async(p,c,{limit:d=25,cursor:v=void 0,includeUnacceptedBoosts:$=!0,query:w}={})=>(await m(),l.boost.getConnectedBoostRecipients.query({uri:c,limit:d,cursor:v,includeUnacceptedBoosts:$,query:w})),"getConnectedBoostRecipients"),countConnectedBoostRecipients:s(async(p,c,d=!0)=>(await m(),l.boost.getConnectedBoostRecipientCount.query({uri:c,includeUnacceptedBoosts:d})),"countConnectedBoostRecipients"),getBoostChildrenProfileManagers:s(async(p,c,d)=>(await m(),l.boost.getChildrenProfileManagers.query({uri:c,...d})),"getBoostChildrenProfileManagers"),updateBoost:s(async(p,c,d,v)=>{await m();let{skills:$,...w}=d??{},I={uri:c,updates:{...v&&{credential:v},...w}};return Array.isArray($)&&(I.skills=$),l.boost.updateBoost.mutate(I)},"updateBoost"),attachFrameworkToBoost:s(async(p,c,d)=>{if(!f)throw new Error("Please make an account first!");return l.boost.attachFrameworkToBoost.mutate({boostUri:c,frameworkId:d})},"attachFrameworkToBoost"),detachFrameworkFromBoost:s(async(p,c,d)=>{if(!f)throw new Error("Please make an account first!");return l.boost.detachFrameworkFromBoost.mutate({boostUri:c,frameworkId:d})},"detachFrameworkFromBoost"),alignBoostSkills:s(async(p,c,d)=>{if(!f)throw new Error("Please make an account first!");return l.boost.alignBoostSkills.mutate({boostUri:c,skills:d})},"alignBoostSkills"),getBoostAdmins:s(async(p,c,d={})=>(await m(),l.boost.getBoostAdmins.query({uri:c,...d})),"getBoostAdmins"),getBoostPermissions:s(async(p,c,d)=>(await m(),d?l.boost.getOtherBoostPermissions.query({uri:c,profileId:d}):l.boost.getBoostPermissions.query({uri:c})),"getBoostPermissions"),updateBoostPermissions:s(async(p,c,d,v)=>{if(await m(),!v)return l.boost.updateBoostPermissions.query({uri:c,updates:d});let $=await l.boost.updateOtherBoostPermissions.query({uri:c,profileId:v,updates:d});return $&&await p.invoke.clearDidWebCache?.(),$},"updateBoostPermissions"),addBoostAdmin:s(async(p,c,d)=>{await m();let v=await l.boost.addBoostAdmin.mutate({uri:c,profileId:d});return v&&await p.invoke.clearDidWebCache?.(),v},"addBoostAdmin"),removeBoostAdmin:s(async(p,c,d)=>{await m();let v=await l.boost.removeBoostAdmin.mutate({uri:c,profileId:d});return v&&await p.invoke.clearDidWebCache?.(),v},"removeBoostAdmin"),revokeBoostRecipient:s(async(p,c,d)=>(await m(),l.boost.revokeBoostRecipient.mutate({boostUri:c,recipientProfileId:d})),"revokeBoostRecipient"),deleteBoost:s(async(p,c)=>(await m(),l.boost.deleteBoost.mutate({uri:c})),"deleteBoost"),sendBoost:s(async(p,c,d,v={encrypt:!0,skipNotification:!1,templateData:{}})=>{await m();let $=await y(p,d),w=await re.spa($);if(!w.success)throw new Error("Did not get a valid boost from URI");let I=await p.invoke.getProfile(c);if(!I)throw new Error("Target profile not found");if(!Yr(I))throw new Error("Target profile has no DID");let S=w.data;if((0,bu.isVC2Format)(S)?S.validFrom=new Date().toISOString():S.issuanceDate=new Date().toISOString(),S.issuer=p.id.did(),Array.isArray(S.credentialSubject)?S.credentialSubject=S.credentialSubject.map(E=>({...E,id:I.did})):S.credentialSubject.id=I.did,S?.type?.includes("BoostCredential")&&(S.boostId=d),typeof v=="object"&&v.templateData&&Object.keys(v.templateData).length>0)try{let E=JSON.stringify(S),G=vl(E,v.templateData);S=JSON.parse(G)}catch(E){throw new Error(`Template substitution failed: ${E instanceof Error?E.message:"Unknown error"}. Please check your templateData variables and ensure the rendered output is valid JSON.`)}typeof v=="object"&&v.overideFn&&(S=v.overideFn(S));let C=await p.invoke.issueCredential(S);if(typeof v=="object"&&!v.encrypt||!v)return l.boost.sendBoost.mutate({profileId:c,uri:d,credential:C,options:{skipNotification:typeof v=="object"&&v.skipNotification}});let A=await l.utilities.getDid.query(),X=await p.invoke.createDagJwe(C,[p.id.did(),I.did,A]);return l.boost.sendBoost.mutate({profileId:c,uri:d,credential:X,options:{skipNotification:typeof v=="object"&&v.skipNotification}})},"sendBoost"),registerSigningAuthority:s(async(p,c,d,v)=>(await m(),l.profile.registerSigningAuthority.mutate({endpoint:c,name:d,did:v})),"registerSigningAuthority"),getRegisteredSigningAuthorities:s(async p=>(await m(),l.profile.signingAuthorities.query()),"getRegisteredSigningAuthorities"),getRegisteredSigningAuthority:s(async(p,c,d)=>(await m(),l.profile.signingAuthority.query({endpoint:c,name:d})),"getRegisteredSigningAuthority"),setPrimaryRegisteredSigningAuthority:s(async(p,c,d)=>(await m(),l.profile.setPrimarySigningAuthority.mutate({endpoint:c,name:d})),"setPrimaryRegisteredSigningAuthority"),getPrimaryRegisteredSigningAuthority:s(async p=>(await m(),l.profile.primarySigningAuthority.query()),"getPrimaryRegisteredSigningAuthority"),generateClaimLink:s(async(p,c,d,v,$)=>(await m(),l.boost.generateClaimLink.mutate({boostUri:c,claimLinkSA:d,options:v,challenge:$})),"generateClaimLink"),claimBoostWithLink:s(async(p,c,d)=>(await m(),l.boost.claimBoostWithLink.mutate({boostUri:c,challenge:d})),"claimBoostWithLink"),send:s(async(p,c)=>{if(await m(),c.type==="boost"){let d=c.recipient,v=d.startsWith("did:"),$=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d),w=/^\+?[\d\s-]{10,}$/.test(d.replace(/[\s-]/g,""));if("issueCredential"in p.invoke&&(v||!$&&!w)&&c.templateUri){let C=await y(p,c.templateUri),A=await re.spa(C);if(A.success){let X;if(v)X=d;else{let oe=await p.invoke.getProfile(d);if(!Yr(oe))return l.boost.send.mutate(c);X=oe.did}let E=A.data;if(c.templateData&&Object.keys(c.templateData).length>0)try{let oe=JSON.stringify(E),hl=vl(oe,c.templateData);E=JSON.parse(hl)}catch(oe){throw new Error(`Failed to apply template data: ${oe instanceof Error?oe.message:"Unknown error"}`)}(0,bu.isVC2Format)(E)?E.validFrom=new Date().toISOString():E.issuanceDate=new Date().toISOString(),E.issuer=p.id.did(),Array.isArray(E.credentialSubject)?E.credentialSubject=E.credentialSubject.map(oe=>({...oe,id:X})):E.credentialSubject={...E.credentialSubject,id:X},E?.type?.includes("BoostCredential")&&(E.boostId=c.templateUri);let G=await p.invoke.issueCredential(E);return l.boost.send.mutate({...c,signedCredential:G})}}}return l.boost.send.mutate(c)},"send"),createContract:s(async(p,c)=>(await m(),l.contracts.createConsentFlowContract.mutate(c)),"createContract"),addAutoBoostsToContract:s(async(p,c,d)=>(await m(),l.contracts.addAutoBoostsToContract.mutate({contractUri:c,autoboosts:d})),"addAutoBoostsToContract"),removeAutoBoostsFromContract:s(async(p,c,d)=>(await m(),l.contracts.removeAutoBoostsFromContract.mutate({contractUri:c,boostUris:d})),"removeAutoBoostsFromContract"),getContract:s(async(p,c)=>l.contracts.getConsentFlowContract.query({uri:c}),"getContract"),getContracts:s(async(p,c)=>(await m(),l.contracts.getConsentFlowContracts.query(c)),"getContracts"),deleteContract:s(async(p,c)=>(await m(),l.contracts.deleteConsentFlowContract.mutate({uri:c})),"deleteContract"),getConsentFlowData:s(async(p,c,d={})=>(await m(),l.contracts.getConsentedDataForContract.query({uri:c,...d})),"getConsentFlowData"),getConsentFlowDataForDid:s(async(p,c,d={})=>(await m(),l.contracts.getConsentedDataForDid.query({did:c,...d})),"getConsentFlowDataForDid"),getAllConsentFlowData:s(async(p,c={},d={})=>(await m(),l.contracts.getConsentedData.query({query:c,...d})),"getAllConsentFlowData"),writeCredentialToContract:s(async(p,c,d,v,$)=>(await m(),l.contracts.writeCredentialToContract.mutate({did:c,contractUri:d,credential:v,boostUri:$})),"writeCredentialToContract"),consentToContract:s(async(p,c,{terms:d,expiresAt:v,oneTime:$},w)=>(await m(),l.contracts.consentToContract.mutate({contractUri:c,terms:d,expiresAt:v,oneTime:$,recipientToken:w})),"consentToContract"),getConsentedContracts:s(async(p,c)=>(await m(),l.contracts.getConsentedContracts.query(c)),"getConsentedContracts"),updateContractTerms:s(async(p,c,{terms:d,expiresAt:v,oneTime:$})=>(await m(),l.contracts.updateConsentedContractTerms.mutate({uri:c,terms:d,expiresAt:v,oneTime:$})),"updateContractTerms"),withdrawConsent:s(async(p,c)=>(await m(),l.contracts.withdrawConsent.mutate({uri:c})),"withdrawConsent"),getConsentFlowTransactions:s(async(p,c,d)=>(await m(),l.contracts.getTermsTransactionHistory.query({uri:c,...d})),"getConsentFlowTransactions"),getCredentialsForContract:s(async(p,c,d={})=>(await m(),l.contracts.getCredentialsForContract.query({termsUri:c,...d})),"getCredentialsForContract"),getConsentFlowCredentials:s(async(p,c={})=>(await m(),l.contracts.getAllCredentialsForTerms.query(c)),"getConsentFlowCredentials"),verifyConsent:s(async(p,c,d)=>(await m(),l.contracts.verifyConsent.query({uri:c,profileId:d})),"verifyConsent"),syncCredentialsToContract:s(async(p,c,d)=>(await m(),l.contracts.syncCredentialsToContract.mutate({termsUri:c,categories:d})),"syncCredentialsToContract"),sendAiInsightsContractRequest:s(async(p,c,d,v)=>(await m(),l.contracts.sendAiInsightsContractRequest.mutate({contractUri:c,targetProfileId:d,shareLink:v})),"sendAiInsightsContractRequest"),sendAiInsightShareRequest:s(async(p,c,d,v)=>(await m(),l.contracts.sendAiInsightShareRequest.mutate({targetProfileId:c,shareLink:d,childProfileId:v})),"sendAiInsightShareRequest"),getContractSentRequests:s(async(p,c)=>(await m(),l.contracts.getContractSentRequests.query({contractUri:c})),"getContractSentRequests"),getRequestStatusForProfile:s(async(p,c,d,v)=>(await m(),l.contracts.getRequestStatusForProfile.query({targetProfileId:c,contractId:d??null,contractUri:v??null})),"getRequestStatusForProfile"),getAllContractRequestsForProfile:s(async(p,c)=>(await m(),l.contracts.getAllContractRequestsForProfile.query({targetProfileId:c})),"getAllContractRequestsForProfile"),getSharedInsightsRequestsForProfile:s(async(p,c)=>(await m(),l.contracts.getSharedInsightsRequestsForProfile.query({targetProfileId:c})),"getSharedInsightsRequestsForProfile"),forwardContractRequestToProfile:s(async(p,c,d,v)=>(await m(),l.contracts.forwardContractRequestToProfile.mutate({parentProfileId:c,targetProfileId:d,contractUri:v})),"forwardContractRequestToProfile"),markContractRequestAsSeen:s(async(p,c,d)=>(await m(),l.contracts.markContractRequestAsSeen.mutate({contractUri:c,targetProfileId:d})),"markContractRequestAsSeen"),cancelContractRequest:s(async(p,c,d)=>(await m(),l.contracts.cancelContractRequest.mutate({contractUri:c,targetProfileId:d})),"cancelContractRequest"),addDidMetadata:s(async(p,c)=>{await m();let d=await l.didMetadata.addDidMetadata.mutate(c);return d&&await p.invoke.clearDidWebCache?.(),d},"addDidMetadata"),getDidMetadata:s(async(p,c)=>(await m(),l.didMetadata.getDidMetadata.query({id:c})),"getDidMetadata"),getMyDidMetadata:s(async()=>(await m(),l.didMetadata.getMyDidMetadata.query()),"getMyDidMetadata"),updateDidMetadata:s(async(p,c,d)=>{await m();let v=await l.didMetadata.updateDidMetadata.mutate({id:c,updates:d});return v&&await p.invoke.clearDidWebCache?.(),v},"updateDidMetadata"),deleteDidMetadata:s(async(p,c)=>{await m();let d=await l.didMetadata.deleteDidMetadata.mutate({id:c});return d&&await p.invoke.clearDidWebCache?.(),d},"deleteDidMetadata"),createClaimHook:s(async(p,c)=>(await m(),l.claimHook.createClaimHook.mutate({hook:c})),"createClaimHook"),getClaimHooksForBoost:s(async(p,c)=>(await m(),l.claimHook.getClaimHooksForBoost.query(c)),"getClaimHooksForBoost"),deleteClaimHook:s(async(p,c)=>(await m(),l.claimHook.deleteClaimHook.mutate({id:c})),"deleteClaimHook"),addAuthGrant:s(async(p,c)=>(await m(),l.authGrants.addAuthGrant.mutate(c)),"addAuthGrant"),revokeAuthGrant:s(async(p,c)=>(await m(),l.authGrants.revokeAuthGrant.mutate({id:c})),"revokeAuthGrant"),deleteAuthGrant:s(async(p,c)=>(await m(),l.authGrants.deleteAuthGrant.mutate({id:c})),"deleteAuthGrant"),updateAuthGrant:s(async(p,c,d)=>(await m(),l.authGrants.updateAuthGrant.mutate({id:c,updates:d})),"updateAuthGrant"),getAuthGrant:s(async(p,c)=>(await m(),l.authGrants.getAuthGrant.query({id:c})),"getAuthGrant"),getAuthGrants:s(async(p,c)=>(await m(),l.authGrants.getAuthGrants.query(c)),"getAuthGrants"),getAPITokenForAuthGrant:s(async(p,c)=>{await m();let d=await l.authGrants.getAuthGrant.query({id:c});if(!d)throw new Error("Auth grant not found");if(d.status!=="active")throw new Error("Auth grant is not active");if(!d.challenge)throw new Error("Auth grant has no challenge");if(!d.scope)throw new Error("Auth grant has no scope");if(d.expiresAt&&new Date(d.expiresAt)<new Date)throw new Error("Auth grant is expired");let v=await p.invoke.getDidAuthVp({challenge:d.challenge,proofFormat:"jwt"});if(!v)throw new Error("Failed to get API Token for auth grant");return v},"getAPITokenForAuthGrant"),sendCredentialViaInbox:s(async(p,c)=>(await m(),l.inbox.issue.mutate(c)),"sendCredentialViaInbox"),getMySentInboxCredentials:s(async(p,c)=>(await m(),l.inbox.getMyIssuedCredentials.query(c)),"getMySentInboxCredentials"),getInboxCredential:s(async(p,c)=>(await m(),l.inbox.getInboxCredential.query({credentialId:c})),"getInboxCredential"),finalizeInboxCredentials:s(async p=>(await m(),l.inbox.finalize.mutate()),"finalizeInboxCredentials"),sendGuardianApprovalEmail:s(async(p,c)=>(await m(),l.inbox.sendGuardianApprovalEmail.mutate(c)),"sendGuardianApprovalEmail"),approveGuardianRequest:s(async(p,c)=>l.inbox.approveGuardianRequest.mutate({token:c}),"approveGuardianRequest"),approveGuardianRequestByPath:s(async(p,c)=>l.inbox.approveGuardianRequestByPath.query({token:c}),"approveGuardianRequestByPath"),addContactMethod:s(async(p,c)=>(await m(),l.contactMethods.addContactMethod.mutate(c)),"addContactMethod"),getMyContactMethods:s(async p=>(await m(),l.contactMethods.getMyContactMethods.query()),"getMyContactMethods"),setPrimaryContactMethod:s(async(p,c)=>(await m(),l.contactMethods.setPrimaryContactMethod.mutate({contactMethodId:c})),"setPrimaryContactMethod"),verifyContactMethod:s(async(p,c)=>(await m(),l.contactMethods.verifyContactMethod.mutate({token:c})),"verifyContactMethod"),verifyContactMethodWithCredential:s(async(p,c)=>(await m(),l.contactMethods.verifyWithCredential.mutate({proofOfLoginJwt:c})),"verifyContactMethodWithCredential"),removeContactMethod:s(async(p,c)=>(await m(),l.contactMethods.removeContactMethod.mutate({id:c})),"removeContactMethod"),syncFrameworkSkills:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skills.syncFrameworkSkills.mutate(c)},"syncFrameworkSkills"),listSkillTags:s(async(p,c,d)=>{if(!f)throw new Error("Please make an account first!");return l.skills.listSkillTags.query({frameworkId:c,id:d})},"listSkillTags"),addSkillTag:s(async(p,c,d,v)=>{if(!f)throw new Error("Please make an account first!");return l.skills.addSkillTag.mutate({frameworkId:c,id:d,tag:v})},"addSkillTag"),removeSkillTag:s(async(p,c,d,v)=>{if(!f)throw new Error("Please make an account first!");return l.skills.removeSkillTag.mutate({frameworkId:c,id:d,slug:v})},"removeSkillTag"),createManagedSkillFramework:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.createManaged.mutate(c)},"createManagedSkillFramework"),createManagedSkillFrameworks:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.createManagedBatch.mutate(c)},"createManagedSkillFrameworks"),createSkillFramework:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.create.mutate(c)},"createSkillFramework"),listMySkillFrameworks:s(async p=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.listMine.query()},"listMySkillFrameworks"),getAllAvailableFrameworks:s(async(p,c={})=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.getAllAvailableFrameworks.query(c)},"getAllAvailableFrameworks"),getSkillFrameworkById:s(async(p,c,d={})=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.getById.query({id:c,...d})},"getSkillFrameworkById"),getBoostsThatUseFramework:s(async(p,c,d={})=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.getBoostsThatUseFramework.query({id:c,...d})},"getBoostsThatUseFramework"),countBoostsThatUseFramework:s(async(p,c,d={})=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.countBoostsThatUseFramework.query({id:c,...d})},"countBoostsThatUseFramework"),getFrameworkSkillTree:s(async(p,c,d={})=>{if(!f)throw new Error("Please make an account first!");return l.skills.getFrameworkSkillTree.query({id:c,...d})},"getFrameworkSkillTree"),getSkillChildren:s(async(p,c,d,v={})=>{if(!f)throw new Error("Please make an account first!");return l.skills.getSkillChildrenTree.query({frameworkId:c,id:d,...v})},"getSkillChildren"),searchFrameworkSkills:s(async(p,c,d,v={})=>{if(!f)throw new Error("Please make an account first!");return l.skills.searchFrameworkSkills.query({id:c,query:d,...v})},"searchFrameworkSkills"),semanticSearchSkills:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skills.semanticSearchSkills.query(c)},"semanticSearchSkills"),updateSkillFramework:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.update.mutate(c)},"updateSkillFramework"),deleteSkillFramework:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.delete.mutate({id:c})},"deleteSkillFramework"),replaceSkillFrameworkSkills:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.replaceSkills.mutate(c)},"replaceSkillFrameworkSkills"),countSkills:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skills.countSkills.query(c)},"countSkills"),getFullSkillTree:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skills.getFullSkillTree.query(c)},"getFullSkillTree"),getSkillPath:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skills.getSkillPath.query(c)},"getSkillPath"),getSkillFrameworkAdmins:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.listFrameworkAdmins.query({frameworkId:c})},"getSkillFrameworkAdmins"),addSkillFrameworkAdmin:s(async(p,c,d)=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.addFrameworkAdmin.mutate({frameworkId:c,profileId:d})},"addSkillFrameworkAdmin"),removeSkillFrameworkAdmin:s(async(p,c,d)=>{if(!f)throw new Error("Please make an account first!");return l.skillFrameworks.removeFrameworkAdmin.mutate({frameworkId:c,profileId:d})},"removeSkillFrameworkAdmin"),getSkill:s(async(p,c,d)=>{if(!f)throw new Error("Please make an account first!");return l.skills.getSkill.query({frameworkId:c,id:d})},"getSkill"),createSkill:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skills.create.mutate(c)},"createSkill"),createSkills:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skills.createMany.mutate(c)},"createSkills"),updateSkill:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skills.update.mutate(c)},"updateSkill"),deleteSkill:s(async(p,c)=>{if(!f)throw new Error("Please make an account first!");return l.skills.delete.mutate(c)},"deleteSkill"),addIntegration:s(async(p,c)=>(await m(),l.integrations.addIntegration.mutate(c)),"addIntegration"),getIntegration:s(async(p,c)=>(await m(),l.integrations.getIntegration.query({id:c})),"getIntegration"),getIntegrations:s(async(p,c={})=>(await m(),l.integrations.getIntegrations.query(c)),"getIntegrations"),countIntegrations:s(async(p,c={})=>(await m(),l.integrations.countIntegrations.query(c)),"countIntegrations"),updateIntegration:s(async(p,c,d)=>(await m(),l.integrations.updateIntegration.mutate({id:c,updates:d})),"updateIntegration"),deleteIntegration:s(async(p,c)=>(await m(),l.integrations.deleteIntegration.mutate({id:c})),"deleteIntegration"),createAppStoreListing:s(async(p,c,d)=>(await m(),l.appStore.createListing.mutate({integrationId:c,listing:d})),"createAppStoreListing"),associateListingWithSigningAuthority:s(async(p,c,d,v,$,w)=>(await m(),l.appStore.associateListingWithSigningAuthority.mutate({listingId:c,endpoint:d,name:v,did:$,isPrimary:w})),"associateListingWithSigningAuthority"),getListingSigningAuthority:s(async(p,c)=>(await m(),l.appStore.getListingSigningAuthority.query({listingId:c})),"getListingSigningAuthority"),getAppStoreListing:s(async(p,c)=>(await m(),l.appStore.getListing.query({listingId:c})),"getAppStoreListing"),updateAppStoreListing:s(async(p,c,d)=>(await m(),l.appStore.updateListing.mutate({listingId:c,updates:d})),"updateAppStoreListing"),deleteAppStoreListing:s(async(p,c)=>(await m(),l.appStore.deleteListing.mutate({listingId:c})),"deleteAppStoreListing"),submitAppStoreListingForReview:s(async(p,c)=>(await m(),l.appStore.submitForReview.mutate({listingId:c})),"submitAppStoreListingForReview"),unsubmitAppStoreListing:s(async(p,c)=>(await m(),l.appStore.unsubmitForReview.mutate({listingId:c})),"unsubmitAppStoreListing"),getListingsForIntegration:s(async(p,c,d={})=>(await m(),l.appStore.getListingsForIntegration.query({integrationId:c,...d})),"getListingsForIntegration"),countListingsForIntegration:s(async(p,c)=>(await m(),l.appStore.countListingsForIntegration.query({integrationId:c})),"countListingsForIntegration"),browseAppStore:s(async(p,c)=>l.appStore.browseListedApps.query(c),"browseAppStore"),getPublicAppStoreListing:s(async(p,c)=>l.appStore.getPublicListing.query({listingId:c}),"getPublicAppStoreListing"),getPublicAppStoreListingBySlug:s(async(p,c)=>l.appStore.getPublicListingBySlug.query({slug:c}),"getPublicAppStoreListingBySlug"),getAppStoreListingInstallCount:s(async(p,c)=>l.appStore.getListingInstallCount.query({listingId:c}),"getAppStoreListingInstallCount"),installApp:s(async(p,c)=>(await m(),l.appStore.installApp.mutate({listingId:c})),"installApp"),uninstallApp:s(async(p,c)=>(await m(),l.appStore.uninstallApp.mutate({listingId:c})),"uninstallApp"),getInstalledApps:s(async(p,c={})=>(await m(),l.appStore.getInstalledApps.query(c)),"getInstalledApps"),countInstalledApps:s(async p=>(await m(),l.appStore.countInstalledApps.query()),"countInstalledApps"),isAppInstalled:s(async(p,c)=>(await m(),l.appStore.isAppInstalled.query({listingId:c})),"isAppInstalled"),getMyCredentialsFromApp:s(async(p,c,d={})=>(await m(),l.appStore.getMyCredentialsFromApp.query({listingId:c,...d})),"getMyCredentialsFromApp"),isAppStoreAdmin:s(async p=>(await m(),l.appStore.isAdmin.query()),"isAppStoreAdmin"),adminUpdateListingStatus:s(async(p,c,d)=>(await m(),l.appStore.adminUpdateListingStatus.mutate({listingId:c,status:d})),"adminUpdateListingStatus"),adminUpdatePromotionLevel:s(async(p,c,d)=>(await m(),l.appStore.adminUpdatePromotionLevel.mutate({listingId:c,promotionLevel:d})),"adminUpdatePromotionLevel"),adminGetAllListings:s(async(p,c)=>(await m(),l.appStore.adminGetAllListings.query(c)),"adminGetAllListings"),addBoostToApp:s(async(p,c,d,v)=>(await m(),l.appStore.addBoostToListing.mutate({listingId:c,boostUri:d,templateAlias:v})),"addBoostToApp"),removeBoostFromApp:s(async(p,c,d)=>(await m(),l.appStore.removeBoostFromListing.mutate({listingId:c,templateAlias:d})),"removeBoostFromApp"),getAppBoosts:s(async(p,c)=>(await m(),l.appStore.getBoostsForListing.query({listingId:c})),"getAppBoosts"),sendAppEvent:s(async(p,c,d)=>(await m(),l.appStore.appEvent.mutate({listingId:c,event:d})),"sendAppEvent"),resolveFromLCN:s(async(p,c)=>{let d=await l.storage.resolve.query({uri:c});return re.or(le).or(Et).or(lu).or(pu).or(Xr).parseAsync(d)},"resolveFromLCN"),getLCNClient:s(()=>l,"getLCNClient"),getMyActivities:s(async(p,c={})=>(await m(),l.activity.getMyActivities.query(c)),"getMyActivities"),getActivityStats:s(async(p,c={})=>(await m(),l.activity.getActivityStats.query(c)),"getActivityStats"),getActivity:s(async(p,c)=>(await m(),l.activity.getActivity.query(c)),"getActivity"),getActivityChain:s(async(p,c)=>(await m(),l.activity.getActivityChain.query(c)),"getActivityChain")}}}s(fv,"getLearnCardNetworkPlugin");var gv=s(async(e,r)=>{let i=[{id:"LearnCard Network",url:"https://network.learncard.com",did:"did:web:network.learncard.com"}],n;if(r){let u=await fetch(r);u.status===200?n=JSON.parse(await u.text()):n=i}else n=i;let t=s(u=>{if(u)return typeof u=="string"?u:"id"in u&&typeof u.id=="string"?u.id:void 0},"getIssuerDID"),o=s(u=>{let l=t(u);if(l)return n.find(f=>f.did===l)},"getTrustedBoostVerifier");return{name:"VerifyBoost",displayName:"Verify Boost Extension",description:"Adds a check for validating Boost Credentials.",methods:{verifyCredential:s(async(u,l,f)=>{let g=await e.invoke.verifyCredential(l,f),m=l?.boostCredential;try{if(m){let y=await e.invoke.verifyCredential(m);if(!m?.boostId&&!l?.boostId&&g.warnings.push("Boost Authenticity could not be verified: Boost ID metadata is missing."),y.errors?.length>0)g.errors=[...y.errors||[],...g.errors||[],"Boost Credential could not be verified."];else if(m?.boostId!==l?.boostId)g.errors.push("Boost Authenticity could not be verified: Boost ID metadata is mismatched.");else{let p=o(l?.issuer);p?g.checks.push(`Boost is Authentic. Verified by ${p.id}.`):g.warnings.push(`Boost Authenticity could not be verified. Issuer is outside of trust network: ${t(l?.issuer)}`)}}}catch{g.errors.push("Boost authenticity could not be verified.")}return g},"verifyCredential")}}},"getVerifyBoostPlugin");
|
|
23
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let h of this.seen.entries()){let p=h[1];if(r===h[0]){c(h);continue}if(i.external){let _=i.external.registry.get(h[0])?.id;if(r!==h[0]&&_){c(h);continue}}if(this.metadataRegistry.get(h[0])?.id){c(h);continue}if(p.cycle){c(h);continue}if(p.count>1&&i.reused==="ref"){c(h);continue}}let f=s((h,p)=>{let I=this.seen.get(h),_=I.def??I.schema,d={..._};if(I.ref===null)return;let u=I.ref;if(I.ref=null,u){f(u,p);let m=this.seen.get(u).schema;m.$ref&&(p.target==="draft-7"||p.target==="draft-4"||p.target==="openapi-3.0")?(_.allOf=_.allOf??[],_.allOf.push(m)):(Object.assign(_,m),Object.assign(_,d))}I.isParent||this.override({zodSchema:h,jsonSchema:_,path:I.path??[]})},"flattenRef");for(let h of[...this.seen.entries()].reverse())f(h[0],{target:this.target});let l={};if(this.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?l.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?l.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),i.external?.uri){let h=i.external.registry.get(r)?.id;if(!h)throw new Error("Schema is missing an `id` property");l.$id=i.external.uri(h)}Object.assign(l,t.def);let g=i.external?.defs??{};for(let h of this.seen.entries()){let p=h[1];p.def&&p.defId&&(g[p.defId]=p.def)}i.external||Object.keys(g).length>0&&(this.target==="draft-2020-12"?l.$defs=g:l.definitions=g);try{return JSON.parse(JSON.stringify(l))}catch{throw new Error("Error converting schema to JSON.")}}};s(ys,"JSONSchemaGenerator");var At=ys;function hs(e,r){if(e instanceof Fe){let i=new At(r),t={};for(let f of e._idmap.entries()){let[l,g]=f;i.process(g)}let a={},c={registry:e,uri:r?.uri,defs:t};for(let f of e._idmap.entries()){let[l,g]=f;a[l]=i.emit(g,{...r,external:c})}if(Object.keys(t).length>0){let f=i.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[f]:t}}return{schemas:a}}let o=new At(r);return o.process(e),o.emit(e,r)}s(hs,"toJSONSchema");function q(e,r){let o=r??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return q(i.element,o);if(i.type==="set")return q(i.valueType,o);if(i.type==="lazy")return q(i.getter(),o);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,o);if(i.type==="intersection")return q(i.left,o)||q(i.right,o);if(i.type==="record"||i.type==="map")return q(i.keyType,o)||q(i.valueType,o);if(i.type==="pipe")return q(i.in,o)||q(i.out,o);if(i.type==="object"){for(let t in i.shape)if(q(i.shape[t],o))return!0;return!1}if(i.type==="union"){for(let t of i.options)if(q(t,o))return!0;return!1}if(i.type==="tuple"){for(let t of i.items)if(q(t,o))return!0;return!!(i.rest&&q(i.rest,o))}return!1}s(q,"isTransforming");var lu={};var Mr={};he(Mr,{ZodISODate:()=>Lr,ZodISODateTime:()=>Vr,ZodISODuration:()=>Br,ZodISOTime:()=>Fr,date:()=>$s,datetime:()=>bs,duration:()=>ks,time:()=>_s});var Vr=v("ZodISODateTime",(e,r)=>{Oi.init(e,r),O.init(e,r)});function bs(e){return Na(Vr,e)}s(bs,"datetime");var Lr=v("ZodISODate",(e,r)=>{Ti.init(e,r),O.init(e,r)});function $s(e){return Ua(Lr,e)}s($s,"date");var Fr=v("ZodISOTime",(e,r)=>{Zi.init(e,r),O.init(e,r)});function _s(e){return Da(Fr,e)}s(_s,"time");var Br=v("ZodISODuration",(e,r)=>{Ri.init(e,r),O.init(e,r)});function ks(e){return Aa(Br,e)}s(ks,"duration");var pu=s((e,r)=>{ot.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:s(o=>st(e,o),"value")},flatten:{value:s(o=>at(e,o),"value")},addIssue:{value:s(o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,Ae,2)},"value")},addIssues:{value:s(o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,Ae,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),gm=v("ZodError",pu),X=v("ZodError",pu,{Parent:Error});var ws=Te(X),xs=Ze(X),Is=Re(X),Ss=Ve(X),zs=Yt(X),js=er(X),Cs=tr(X),Ps=rr(X),Ns=nr(X),Us=ir(X),Ds=or(X),As=ar(X);var N=v("ZodType",(e,r)=>(C.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...o)=>e.clone(x.mergeDefs(r,{checks:[...r.checks??[],...o.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]})),e.clone=(o,i)=>B(e,o,i),e.brand=()=>e,e.register=((o,i)=>(o.add(e,i),e)),e.parse=(o,i)=>ws(e,o,i,{callee:e.parse}),e.safeParse=(o,i)=>Is(e,o,i),e.parseAsync=async(o,i)=>xs(e,o,i,{callee:e.parseAsync}),e.safeParseAsync=async(o,i)=>Ss(e,o,i),e.spa=e.safeParseAsync,e.encode=(o,i)=>zs(e,o,i),e.decode=(o,i)=>js(e,o,i),e.encodeAsync=async(o,i)=>Cs(e,o,i),e.decodeAsync=async(o,i)=>Ps(e,o,i),e.safeEncode=(o,i)=>Ns(e,o,i),e.safeDecode=(o,i)=>Us(e,o,i),e.safeEncodeAsync=async(o,i)=>Ds(e,o,i),e.safeDecodeAsync=async(o,i)=>As(e,o,i),e.refine=(o,i)=>e.check(Yu(o,i)),e.superRefine=o=>e.check(el(o)),e.overwrite=o=>e.check(le(o)),e.optional=()=>Gr(e),e.nullable=()=>Jr(e),e.nullish=()=>Gr(Jr(e)),e.nonoptional=o=>Lu(e,o),e.array=()=>Hr(e),e.or=o=>nc([e,o]),e.and=o=>zu(e,o),e.transform=o=>Wr(e,ac(o)),e.default=o=>Zu(e,o),e.prefault=o=>Vu(e,o),e.catch=o=>Mu(e,o),e.pipe=o=>Wr(e,o),e.readonly=()=>Ju(e),e.describe=o=>{let i=e.clone();return M.add(i,{description:o}),i},Object.defineProperty(e,"description",{get(){return M.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return M.get(e);let i=e.clone();return M.add(i,o[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ts=v("_ZodString",(e,r)=>{je.init(e,r),N.init(e,r);let o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...i)=>e.check(kt(...i)),e.includes=(...i)=>e.check(It(...i)),e.startsWith=(...i)=>e.check(St(...i)),e.endsWith=(...i)=>e.check(zt(...i)),e.min=(...i)=>e.check(xe(...i)),e.max=(...i)=>e.check(Me(...i)),e.length=(...i)=>e.check(qe(...i)),e.nonempty=(...i)=>e.check(xe(1,...i)),e.lowercase=i=>e.check(wt(i)),e.uppercase=i=>e.check(xt(i)),e.trim=()=>e.check(Pt()),e.normalize=(...i)=>e.check(Ct(...i)),e.toLowerCase=()=>e.check(Nt()),e.toUpperCase=()=>e.check(Ut()),e.slugify=()=>e.check(Dt())}),Ot=v("ZodString",(e,r)=>{je.init(e,r),Ts.init(e,r),e.email=o=>e.check($r(Zs,o)),e.url=o=>e.check($t(Kr,o)),e.jwt=o=>e.check(Rr(Ys,o)),e.emoji=o=>e.check(Ir(Rs,o)),e.guid=o=>e.check(bt(qr,o)),e.uuid=o=>e.check(_r(fe,o)),e.uuidv4=o=>e.check(kr(fe,o)),e.uuidv6=o=>e.check(wr(fe,o)),e.uuidv7=o=>e.check(xr(fe,o)),e.nanoid=o=>e.check(Sr(Vs,o)),e.guid=o=>e.check(bt(qr,o)),e.cuid=o=>e.check(zr(Ls,o)),e.cuid2=o=>e.check(jr(Fs,o)),e.ulid=o=>e.check(Cr(Bs,o)),e.base64=o=>e.check(Or(Xs,o)),e.base64url=o=>e.check(Tr(Hs,o)),e.xid=o=>e.check(Pr(Ms,o)),e.ksuid=o=>e.check(Nr(qs,o)),e.ipv4=o=>e.check(Ur(Gs,o)),e.ipv6=o=>e.check(Dr(Js,o)),e.cidrv4=o=>e.check(Ar(Ws,o)),e.cidrv6=o=>e.check(Er(Ks,o)),e.e164=o=>e.check(Zr(Qs,o)),e.datetime=o=>e.check(bs(o)),e.date=o=>e.check($s(o)),e.time=o=>e.check(_s(o)),e.duration=o=>e.check(ks(o))});function Es(e){return za(Ot,e)}s(Es,"string");var O=v("ZodStringFormat",(e,r)=>{A.init(e,r),Ts.init(e,r)}),Zs=v("ZodEmail",(e,r)=>{zi.init(e,r),O.init(e,r)});function vm(e){return $r(Zs,e)}s(vm,"email");var qr=v("ZodGUID",(e,r)=>{Ii.init(e,r),O.init(e,r)});function hm(e){return bt(qr,e)}s(hm,"guid");var fe=v("ZodUUID",(e,r)=>{Si.init(e,r),O.init(e,r)});function ym(e){return _r(fe,e)}s(ym,"uuid");function bm(e){return kr(fe,e)}s(bm,"uuidv4");function $m(e){return wr(fe,e)}s($m,"uuidv6");function _m(e){return xr(fe,e)}s(_m,"uuidv7");var Kr=v("ZodURL",(e,r)=>{ji.init(e,r),O.init(e,r)});function km(e){return $t(Kr,e)}s(km,"url");function wm(e){return $t(Kr,{protocol:/^https?$/,hostname:re.domain,...x.normalizeParams(e)})}s(wm,"httpUrl");var Rs=v("ZodEmoji",(e,r)=>{Ci.init(e,r),O.init(e,r)});function xm(e){return Ir(Rs,e)}s(xm,"emoji");var Vs=v("ZodNanoID",(e,r)=>{Pi.init(e,r),O.init(e,r)});function Im(e){return Sr(Vs,e)}s(Im,"nanoid");var Ls=v("ZodCUID",(e,r)=>{Ni.init(e,r),O.init(e,r)});function Sm(e){return zr(Ls,e)}s(Sm,"cuid");var Fs=v("ZodCUID2",(e,r)=>{Ui.init(e,r),O.init(e,r)});function zm(e){return jr(Fs,e)}s(zm,"cuid2");var Bs=v("ZodULID",(e,r)=>{Di.init(e,r),O.init(e,r)});function jm(e){return Cr(Bs,e)}s(jm,"ulid");var Ms=v("ZodXID",(e,r)=>{Ai.init(e,r),O.init(e,r)});function Cm(e){return Pr(Ms,e)}s(Cm,"xid");var qs=v("ZodKSUID",(e,r)=>{Ei.init(e,r),O.init(e,r)});function Pm(e){return Nr(qs,e)}s(Pm,"ksuid");var Gs=v("ZodIPv4",(e,r)=>{Vi.init(e,r),O.init(e,r)});function Nm(e){return Ur(Gs,e)}s(Nm,"ipv4");var mu=v("ZodMAC",(e,r)=>{Fi.init(e,r),O.init(e,r)});function Um(e){return Ca(mu,e)}s(Um,"mac");var Js=v("ZodIPv6",(e,r)=>{Li.init(e,r),O.init(e,r)});function Dm(e){return Dr(Js,e)}s(Dm,"ipv6");var Ws=v("ZodCIDRv4",(e,r)=>{Bi.init(e,r),O.init(e,r)});function Am(e){return Ar(Ws,e)}s(Am,"cidrv4");var Ks=v("ZodCIDRv6",(e,r)=>{Mi.init(e,r),O.init(e,r)});function Em(e){return Er(Ks,e)}s(Em,"cidrv6");var Xs=v("ZodBase64",(e,r)=>{Gi.init(e,r),O.init(e,r)});function Om(e){return Or(Xs,e)}s(Om,"base64");var Hs=v("ZodBase64URL",(e,r)=>{Ji.init(e,r),O.init(e,r)});function Tm(e){return Tr(Hs,e)}s(Tm,"base64url");var Qs=v("ZodE164",(e,r)=>{Wi.init(e,r),O.init(e,r)});function Zm(e){return Zr(Qs,e)}s(Zm,"e164");var Ys=v("ZodJWT",(e,r)=>{Ki.init(e,r),O.init(e,r)});function Rm(e){return Rr(Ys,e)}s(Rm,"jwt");var Tt=v("ZodCustomStringFormat",(e,r)=>{Xi.init(e,r),O.init(e,r)});function Vm(e,r,o={}){return Ge(Tt,e,r,o)}s(Vm,"stringFormat");function Lm(e){return Ge(Tt,"hostname",re.hostname,e)}s(Lm,"hostname");function Fm(e){return Ge(Tt,"hex",re.hex,e)}s(Fm,"hex");function Bm(e,r){let o=r?.enc??"hex",i=`${e}_${o}`,t=re[i];if(!t)throw new Error(`Unrecognized hash format: ${i}`);return Ge(Tt,i,t,r)}s(Bm,"hash");var Zt=v("ZodNumber",(e,r)=>{fr.init(e,r),N.init(e,r),e.gt=(i,t)=>e.check(me(i,t)),e.gte=(i,t)=>e.check(K(i,t)),e.min=(i,t)=>e.check(K(i,t)),e.lt=(i,t)=>e.check(pe(i,t)),e.lte=(i,t)=>e.check(ne(i,t)),e.max=(i,t)=>e.check(ne(i,t)),e.int=i=>e.check(Os(i)),e.safe=i=>e.check(Os(i)),e.positive=i=>e.check(me(0,i)),e.nonnegative=i=>e.check(K(0,i)),e.negative=i=>e.check(pe(0,i)),e.nonpositive=i=>e.check(ne(0,i)),e.multipleOf=(i,t)=>e.check(Ce(i,t)),e.step=(i,t)=>e.check(Ce(i,t)),e.finite=()=>e;let o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function gu(e){return Ea(Zt,e)}s(gu,"number");var We=v("ZodNumberFormat",(e,r)=>{Hi.init(e,r),Zt.init(e,r)});function Os(e){return Ta(We,e)}s(Os,"int");function Mm(e){return Za(We,e)}s(Mm,"float32");function qm(e){return Ra(We,e)}s(qm,"float64");function Gm(e){return Va(We,e)}s(Gm,"int32");function Jm(e){return La(We,e)}s(Jm,"uint32");var Rt=v("ZodBoolean",(e,r)=>{dt.init(e,r),N.init(e,r)});function fu(e){return Fa(Rt,e)}s(fu,"boolean");var Vt=v("ZodBigInt",(e,r)=>{vr.init(e,r),N.init(e,r),e.gte=(i,t)=>e.check(K(i,t)),e.min=(i,t)=>e.check(K(i,t)),e.gt=(i,t)=>e.check(me(i,t)),e.gte=(i,t)=>e.check(K(i,t)),e.min=(i,t)=>e.check(K(i,t)),e.lt=(i,t)=>e.check(pe(i,t)),e.lte=(i,t)=>e.check(ne(i,t)),e.max=(i,t)=>e.check(ne(i,t)),e.positive=i=>e.check(me(BigInt(0),i)),e.negative=i=>e.check(pe(BigInt(0),i)),e.nonpositive=i=>e.check(ne(BigInt(0),i)),e.nonnegative=i=>e.check(K(BigInt(0),i)),e.multipleOf=(i,t)=>e.check(Ce(i,t));let o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function Wm(e){return Ma(Vt,e)}s(Wm,"bigint");var ec=v("ZodBigIntFormat",(e,r)=>{Qi.init(e,r),Vt.init(e,r)});function Km(e){return Ga(ec,e)}s(Km,"int64");function Xm(e){return Ja(ec,e)}s(Xm,"uint64");var vu=v("ZodSymbol",(e,r)=>{Yi.init(e,r),N.init(e,r)});function Hm(e){return Wa(vu,e)}s(Hm,"symbol");var hu=v("ZodUndefined",(e,r)=>{eo.init(e,r),N.init(e,r)});function Qm(e){return Ka(hu,e)}s(Qm,"_undefined");var yu=v("ZodNull",(e,r)=>{to.init(e,r),N.init(e,r)});function bu(e){return Xa(yu,e)}s(bu,"_null");var $u=v("ZodAny",(e,r)=>{ro.init(e,r),N.init(e,r)});function Ym(){return Ha($u)}s(Ym,"any");var _u=v("ZodUnknown",(e,r)=>{no.init(e,r),N.init(e,r)});function Je(){return Qa(_u)}s(Je,"unknown");var ku=v("ZodNever",(e,r)=>{io.init(e,r),N.init(e,r)});function tc(e){return Ya(ku,e)}s(tc,"never");var wu=v("ZodVoid",(e,r)=>{oo.init(e,r),N.init(e,r)});function eg(e){return es(wu,e)}s(eg,"_void");var Xr=v("ZodDate",(e,r)=>{ao.init(e,r),N.init(e,r),e.min=(i,t)=>e.check(K(i,t)),e.max=(i,t)=>e.check(ne(i,t));let o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function tg(e){return ts(Xr,e)}s(tg,"date");var xu=v("ZodArray",(e,r)=>{so.init(e,r),N.init(e,r),e.element=r.element,e.min=(o,i)=>e.check(xe(o,i)),e.nonempty=o=>e.check(xe(1,o)),e.max=(o,i)=>e.check(Me(o,i)),e.length=(o,i)=>e.check(qe(o,i)),e.unwrap=()=>e.element});function Hr(e,r){return us(xu,e,r)}s(Hr,"array");function rg(e){let r=e._zod.def.shape;return oc(Object.keys(r))}s(rg,"keyof");var Qr=v("ZodObject",(e,r)=>{co.init(e,r),N.init(e,r),x.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>oc(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Je()}),e.loose=()=>e.clone({...e._zod.def,catchall:Je()}),e.strict=()=>e.clone({...e._zod.def,catchall:tc()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>x.extend(e,o),e.safeExtend=o=>x.safeExtend(e,o),e.merge=o=>x.merge(e,o),e.pick=o=>x.pick(e,o),e.omit=o=>x.omit(e,o),e.partial=(...o)=>x.partial(sc,e,o[0]),e.required=(...o)=>x.required(cc,e,o[0])});function ng(e,r){let o={type:"object",shape:e??{},...x.normalizeParams(r)};return new Qr(o)}s(ng,"object");function ig(e,r){return new Qr({type:"object",shape:e,catchall:tc(),...x.normalizeParams(r)})}s(ig,"strictObject");function og(e,r){return new Qr({type:"object",shape:e,catchall:Je(),...x.normalizeParams(r)})}s(og,"looseObject");var rc=v("ZodUnion",(e,r)=>{hr.init(e,r),N.init(e,r),e.options=r.options});function nc(e,r){return new rc({type:"union",options:e,...x.normalizeParams(r)})}s(nc,"union");var Iu=v("ZodDiscriminatedUnion",(e,r)=>{rc.init(e,r),uo.init(e,r)});function ag(e,r,o){return new Iu({type:"union",options:r,discriminator:e,...x.normalizeParams(o)})}s(ag,"discriminatedUnion");var Su=v("ZodIntersection",(e,r)=>{lo.init(e,r),N.init(e,r)});function zu(e,r){return new Su({type:"intersection",left:e,right:r})}s(zu,"intersection");var ju=v("ZodTuple",(e,r)=>{yr.init(e,r),N.init(e,r),e.rest=o=>e.clone({...e._zod.def,rest:o})});function Cu(e,r,o){let i=r instanceof C,t=i?o:r,a=i?r:null;return new ju({type:"tuple",items:e,rest:a,...x.normalizeParams(t)})}s(Cu,"tuple");var ic=v("ZodRecord",(e,r)=>{po.init(e,r),N.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Pu(e,r,o){return new ic({type:"record",keyType:e,valueType:r,...x.normalizeParams(o)})}s(Pu,"record");function sg(e,r,o){let i=B(e);return i._zod.values=void 0,new ic({type:"record",keyType:i,valueType:r,...x.normalizeParams(o)})}s(sg,"partialRecord");var Nu=v("ZodMap",(e,r)=>{mo.init(e,r),N.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function cg(e,r,o){return new Nu({type:"map",keyType:e,valueType:r,...x.normalizeParams(o)})}s(cg,"map");var Uu=v("ZodSet",(e,r)=>{go.init(e,r),N.init(e,r),e.min=(...o)=>e.check(Pe(...o)),e.nonempty=o=>e.check(Pe(1,o)),e.max=(...o)=>e.check(Be(...o)),e.size=(...o)=>e.check(_t(...o))});function ug(e,r){return new Uu({type:"set",valueType:e,...x.normalizeParams(r)})}s(ug,"set");var Et=v("ZodEnum",(e,r)=>{fo.init(e,r),N.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);let o=new Set(Object.keys(r.entries));e.extract=(i,t)=>{let a={};for(let c of i)if(o.has(c))a[c]=r.entries[c];else throw new Error(`Key ${c} not found in enum`);return new Et({...r,checks:[],...x.normalizeParams(t),entries:a})},e.exclude=(i,t)=>{let a={...r.entries};for(let c of i)if(o.has(c))delete a[c];else throw new Error(`Key ${c} not found in enum`);return new Et({...r,checks:[],...x.normalizeParams(t),entries:a})}});function oc(e,r){let o=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Et({type:"enum",entries:o,...x.normalizeParams(r)})}s(oc,"_enum");function lg(e,r){return new Et({type:"enum",entries:e,...x.normalizeParams(r)})}s(lg,"nativeEnum");var Du=v("ZodLiteral",(e,r)=>{vo.init(e,r),N.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function dg(e,r){return new Du({type:"literal",values:Array.isArray(e)?e:[e],...x.normalizeParams(r)})}s(dg,"literal");var Au=v("ZodFile",(e,r)=>{ho.init(e,r),N.init(e,r),e.min=(o,i)=>e.check(Pe(o,i)),e.max=(o,i)=>e.check(Be(o,i)),e.mime=(o,i)=>e.check(jt(Array.isArray(o)?o:[o],i))});function pg(e){return ls(Au,e)}s(pg,"file");var Eu=v("ZodTransform",(e,r)=>{yo.init(e,r),N.init(e,r),e._zod.parse=(o,i)=>{if(i.direction==="backward")throw new ye(e.constructor.name);o.addIssue=a=>{if(typeof a=="string")o.issues.push(x.issue(a,o.value,r));else{let c=a;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=o.value),c.inst??(c.inst=e),o.issues.push(x.issue(c))}};let t=r.transform(o.value,o);return t instanceof Promise?t.then(a=>(o.value=a,o)):(o.value=t,o)}});function ac(e){return new Eu({type:"transform",transform:e})}s(ac,"transform");var sc=v("ZodOptional",(e,r)=>{bo.init(e,r),N.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Gr(e){return new sc({type:"optional",innerType:e})}s(Gr,"optional");var Ou=v("ZodNullable",(e,r)=>{$o.init(e,r),N.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Jr(e){return new Ou({type:"nullable",innerType:e})}s(Jr,"nullable");function mg(e){return Gr(Jr(e))}s(mg,"nullish");var Tu=v("ZodDefault",(e,r)=>{_o.init(e,r),N.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Zu(e,r){return new Tu({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():x.shallowClone(r)}})}s(Zu,"_default");var Ru=v("ZodPrefault",(e,r)=>{ko.init(e,r),N.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Vu(e,r){return new Ru({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():x.shallowClone(r)}})}s(Vu,"prefault");var cc=v("ZodNonOptional",(e,r)=>{wo.init(e,r),N.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Lu(e,r){return new cc({type:"nonoptional",innerType:e,...x.normalizeParams(r)})}s(Lu,"nonoptional");var Fu=v("ZodSuccess",(e,r)=>{xo.init(e,r),N.init(e,r),e.unwrap=()=>e._zod.def.innerType});function gg(e){return new Fu({type:"success",innerType:e})}s(gg,"success");var Bu=v("ZodCatch",(e,r)=>{Io.init(e,r),N.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Mu(e,r){return new Bu({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}s(Mu,"_catch");var qu=v("ZodNaN",(e,r)=>{So.init(e,r),N.init(e,r)});function fg(e){return ns(qu,e)}s(fg,"nan");var uc=v("ZodPipe",(e,r)=>{zo.init(e,r),N.init(e,r),e.in=r.in,e.out=r.out});function Wr(e,r){return new uc({type:"pipe",in:e,out:r})}s(Wr,"pipe");var lc=v("ZodCodec",(e,r)=>{uc.init(e,r),pt.init(e,r)});function vg(e,r,o){return new lc({type:"pipe",in:e,out:r,transform:o.decode,reverseTransform:o.encode})}s(vg,"codec");var Gu=v("ZodReadonly",(e,r)=>{jo.init(e,r),N.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Ju(e){return new Gu({type:"readonly",innerType:e})}s(Ju,"readonly");var Wu=v("ZodTemplateLiteral",(e,r)=>{Co.init(e,r),N.init(e,r)});function hg(e,r){return new Wu({type:"template_literal",parts:e,...x.normalizeParams(r)})}s(hg,"templateLiteral");var Ku=v("ZodLazy",(e,r)=>{Uo.init(e,r),N.init(e,r),e.unwrap=()=>e._zod.def.getter()});function Xu(e){return new Ku({type:"lazy",getter:e})}s(Xu,"lazy");var Hu=v("ZodPromise",(e,r)=>{No.init(e,r),N.init(e,r),e.unwrap=()=>e._zod.def.innerType});function yg(e){return new Hu({type:"promise",innerType:e})}s(yg,"promise");var Qu=v("ZodFunction",(e,r)=>{Po.init(e,r),N.init(e,r)});function bg(e){return new Qu({type:"function",input:Array.isArray(e?.input)?Cu(e?.input):e?.input??Hr(Je()),output:e?.output??Je()})}s(bg,"_function");var Yr=v("ZodCustom",(e,r)=>{Do.init(e,r),N.init(e,r)});function $g(e){let r=new E({check:"custom"});return r._zod.check=e,r}s($g,"check");function _g(e,r){return ds(Yr,e??(()=>!0),r)}s(_g,"custom");function Yu(e,r={}){return ps(Yr,e,r)}s(Yu,"refine");function el(e){return ms(e)}s(el,"superRefine");var kg=gs,wg=fs;function xg(e,r={error:`Input not instance of ${e.name}`}){let o=new Yr({type:"custom",check:"custom",fn:s(i=>i instanceof e,"fn"),abort:!0,...x.normalizeParams(r)});return o._zod.bag.Class=e,o}s(xg,"_instanceof");var Ig=s((...e)=>vs({Codec:lc,Boolean:Rt,String:Ot},...e),"stringbool");function Sg(e){let r=Xu(()=>nc([Es(e),gu(),fu(),bu(),Hr(r),Pu(Es(),r)]));return r}s(Sg,"json");function zg(e,r){return Wr(ac(e),r)}s(zg,"preprocess");var jg={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 Cg(e){Z({customError:e})}s(Cg,"setErrorMap");function Pg(){return Z().customError}s(Pg,"getErrorMap");var dc;dc||(dc={});var pc={};he(pc,{bigint:()=>Ag,boolean:()=>Dg,date:()=>Eg,number:()=>Ug,string:()=>Ng});function Ng(e){return ja(Ot,e)}s(Ng,"string");function Ug(e){return Oa(Zt,e)}s(Ug,"number");function Dg(e){return Ba(Rt,e)}s(Dg,"boolean");function Ag(e){return qa(Vt,e)}s(Ag,"bigint");function Eg(e){return rs(Xr,e)}s(Eg,"date");Z(mt());var Og=Object.defineProperty,hc=s((e,r)=>Og(e,"name",{value:r,configurable:!0}),"__name"),rn=n.array(n.string().or(n.record(n.string(),n.any()))),S$=n.object({type:n.string().optional(),narrative:n.string().optional()}),Bt=n.string().or(n.object({id:n.string(),type:n.string(),caption:n.string().optional()})),Tg=n.object({type:n.string().min(1).or(n.string().array().nonempty()),latitude:n.number(),longitude:n.number()}),Zg=n.object({type:n.string().min(1).or(n.string().array().nonempty()),addressCountry:n.string().optional(),addressCountryCode:n.string().optional(),addressRegion:n.string().optional(),addressLocality:n.string().optional(),streetAddress:n.string().optional(),postOfficeBoxNumber:n.string().optional(),postalCode:n.string().optional(),geo:Tg.optional()}),Rg=n.enum(["sourcedId","systemId","productId","userName","accountId","emailAddress","nationalIdentityNumber","isbn","issn","lisSourcedId","oneRosterSourcedId","sisSourcedId","ltiContextId","ltiDeploymentId","ltiToolId","ltiPlatformId","ltiUserId","identifier"]).or(n.string()),gl=n.object({type:n.string().min(1).or(n.string().array().nonempty()),identifier:n.string(),identifierType:Rg}),Lt=n.string().or(n.object({id:n.string().optional(),type:n.string().or(n.string().array().nonempty().optional()),name:n.string().optional(),url:n.string().optional(),phone:n.string().optional(),description:n.string().optional(),endorsement:n.any().array().optional(),image:Bt.optional(),email:n.string().email().optional(),address:Zg.optional(),otherIdentifier:gl.array().optional(),official:n.string().optional(),parentOrg:n.any().optional(),familyName:n.string().optional(),givenName:n.string().optional(),additionalName:n.string().optional(),patronymicName:n.string().optional(),honorificPrefix:n.string().optional(),honorificSuffix:n.string().optional(),familyNamePrefix:n.string().optional(),dateOfBirth:n.string().optional()}).catchall(n.any())),gc=n.object({id:n.string().optional()}).catchall(n.any()),en=n.object({type:n.string(),id:n.string()}).catchall(n.any()),tl=n.object({id:n.string(),type:n.string()}).catchall(n.any()),rl=n.object({id:n.string().optional(),type:n.string()}).catchall(n.any()),nl=n.object({type:n.string(),id:n.string().optional()}).catchall(n.any()),il=n.object({id:n.string().optional(),type:n.array(n.string()).nonempty(),name:n.string().optional(),narrative:n.string().optional(),description:n.string().optional(),genre:n.string().optional(),audience:n.string().optional()}).catchall(n.any()),ie=n.object({"@context":rn,id:n.string().optional(),type:n.string().array().nonempty(),issuer:Lt,credentialSubject:gc.or(gc.array()),refreshService:rl.or(rl.array()).optional(),credentialSchema:tl.or(tl.array()).optional(),issuanceDate:n.string().optional(),expirationDate:n.string().optional(),credentialStatus:en.or(en.array()).optional(),name:n.string().optional(),description:n.string().optional(),validFrom:n.string().optional(),validUntil:n.string().optional(),status:en.or(en.array()).optional(),termsOfUse:nl.or(nl.array()).optional(),evidence:n.union([il,n.array(il)]).optional()}).catchall(n.any()),oe=n.object({type:n.string(),created:n.string(),challenge:n.string().optional(),domain:n.string().optional(),nonce:n.string().optional(),proofPurpose:n.string(),verificationMethod:n.string(),jws:n.string().optional()}).catchall(n.any()),ve=ie.extend({proof:oe.or(oe.array())}),Vg=n.object({"@context":rn,id:n.string().optional(),type:n.string().or(n.string().array().nonempty()),verifiableCredential:ve.or(ve.array()).optional(),holder:n.string().optional()}).catchall(n.any()),Mt=Vg.extend({proof:oe.or(oe.array())}),yc=n.object({kty:n.string(),crv:n.string(),x:n.string(),y:n.string().optional(),n:n.string().optional(),d:n.string().optional()}),C$=yc.omit({d:!0}).extend({d:n.string()}),Lg=n.object({alg:n.string(),iv:n.string(),tag:n.string(),epk:yc.partial().optional(),kid:n.string().optional(),apv:n.string().optional(),apu:n.string().optional()}),Fg=n.object({header:Lg,encrypted_key:n.string()}),bc=n.object({protected:n.string(),iv:n.string(),ciphertext:n.string(),tag:n.string(),aad:n.string().optional(),recipients:Fg.array().optional()}),Ne=n.string().or(n.object({"@context":rn.optional(),id:n.string(),type:n.string(),controller:n.string(),publicKeyJwk:yc.optional(),publicKeyBase58:n.string().optional(),publicKeyMultibase:n.string().optional(),blockChainAccountId:n.string().optional()}).catchall(n.any())),Bg=n.object({id:n.string(),type:n.string().or(n.string().array().nonempty()),serviceEndpoint:n.any().or(n.any().array().nonempty())}).catchall(n.any()),P$=n.object({"@context":rn,id:n.string(),alsoKnownAs:n.string().optional(),controller:n.string().or(n.string().array().nonempty()).optional(),verificationMethod:Ne.array().optional(),authentication:Ne.array().optional(),assertionMethod:Ne.array().optional(),keyAgreement:Ne.array().optional(),capabilityInvocation:Ne.array().optional(),capabilityDelegation:Ne.array().optional(),publicKey:Ne.array().optional(),service:Bg.array().optional(),proof:oe.or(oe.array()).optional()}).catchall(n.any()),Mg=n.enum(["ceasn:Competency","ceterms:Credential","CFItem","CFRubric","CFRubricCriterion","CFRubricCriterionLevel","CTDL"]).or(n.string()),nn=n.object({type:n.string().array().nonempty(),targetCode:n.string().optional(),targetDescription:n.string().optional(),targetName:n.string(),targetFramework:n.string().optional(),targetType:Mg.optional(),targetUrl:n.string()}),qg=n.enum(["Achievement","ApprenticeshipCertificate","Assessment","Assignment","AssociateDegree","Award","Badge","BachelorDegree","Certificate","CertificateOfCompletion","Certification","CommunityService","Competency","Course","CoCurricular","Degree","Diploma","DoctoralDegree","Fieldwork","GeneralEducationDevelopment","JourneymanCertificate","LearningProgram","License","Membership","ProfessionalDoctorate","QualityAssuranceCredential","MasterCertificate","MasterDegree","MicroCredential","ResearchDoctorate","SecondarySchoolDiploma"]),Gg=qg.or(n.string()),Jg=n.object({id:n.string().optional(),narrative:n.string().optional()}).catchall(n.any()),Wg=n.object({id:n.string(),type:n.string().array().nonempty(),endorsementComment:n.string().optional()}),fl=ie.extend({credentialSubject:Wg,proof:oe.or(oe.array()).optional()}),Kg=n.object({id:n.string(),"@language":n.string().optional(),version:n.string().optional()}),Xg=n.enum(["GradePointAverage","LetterGrade","Percent","PerformanceLevel","PredictedScore","RawScore","Result","RubricCriterion","RubricCriterionLevel","RubricScore","ScaledScore","Status"]).or(n.string()),Hg=n.object({id:n.string(),type:n.string().array().nonempty(),alignment:nn.array().optional(),description:n.string().optional(),level:n.string().optional(),name:n.string(),points:n.string().optional()}).catchall(n.any()),Qg=n.object({id:n.string(),type:n.string().array().nonempty(),alignment:nn.array().optional(),allowedValue:n.string().array().optional(),name:n.string(),requiredLevel:n.string().optional(),requiredValue:n.string().optional(),resultType:Xg,rubricCriterionLevel:Hg.array().optional(),valueMax:n.string().optional(),valueMin:n.string().optional()}).catchall(n.any()),U$=n.object({id:n.string().optional(),type:n.array(n.string()).nonempty(),name:n.string().optional(),narrative:n.string().optional(),description:n.string().optional(),genre:n.string().optional(),audience:n.string().optional()}).catchall(n.any()),vl=n.object({id:n.string().optional(),type:n.array(n.string()).nonempty(),alignment:nn.array().optional(),achievementType:Gg.optional(),creator:Lt.optional(),creditsAvailable:n.number().optional(),criteria:Jg,description:n.string(),endorsement:fl.array().optional(),fieldOfStudy:n.string().optional(),humanCode:n.string().optional(),image:Bt.optional(),"@language":n.string().optional(),name:n.string(),otherIdentifier:gl.array().optional(),related:Kg.array().optional(),resultDescription:Qg.array().optional(),specialization:n.string().optional(),tag:n.array(n.string()).optional(),version:n.string().optional()}).catchall(n.any()),Yg=n.object({type:n.string(),hashed:n.boolean(),identityHash:n.string(),identityType:n.string(),salt:n.string().optional()}),ef=n.enum(["Completed","Enrolled","Failed","InProgress","OnHold","Withdrew"]),tf=n.object({type:n.string().array().nonempty(),achievedLevel:n.string().optional(),alignment:nn.array().optional(),resultDescription:n.string().optional(),status:ef.optional(),value:n.string().optional()}).catchall(n.any()),ol=n.object({id:n.string().optional(),type:n.string().array().nonempty(),activityEndDate:n.string().optional(),activityStartDate:n.string().optional(),creditsEarned:n.number().optional(),achievement:vl.optional(),identifier:Yg.array().optional(),image:Bt.optional(),licenseNumber:n.string().optional(),narrative:n.string().optional(),result:tf.array().optional(),role:n.string().optional(),source:Lt.optional(),term:n.string().optional()}).catchall(n.any()),rf=ie.extend({name:n.string().optional(),description:n.string().optional(),image:Bt.optional(),credentialSubject:ol.or(ol.array()),endorsement:ie.array().optional()}),D$=rf.extend({proof:oe.or(oe.array())}),nf=n.enum(["exactMatchOf","extends","isChildOf","isParentOf","isPartOf","isPeerOf","isRelatedTo","precedes","replacedBy"]).or(n.string()),of=n.object({type:n.string().array().nonempty(),associationType:nf,sourceId:n.string().optional(),targetId:n.string()}).catchall(n.any()),al=n.object({id:n.string().optional(),type:n.string().array().nonempty(),identifier:n.any().array().optional(),achievement:vl.array().optional(),association:of.array().optional(),verifiableCredential:n.any().array().optional()}).catchall(n.any()),af=ie.extend({name:n.string().optional(),description:n.string().optional(),image:Bt.optional(),credentialSubject:al.or(al.array()),endorsement:fl.array().optional(),partial:n.boolean().optional()}),E$=af.extend({proof:oe.or(oe.array())}),T$=n.object({checks:n.string().array(),warnings:n.string().array(),errors:n.string().array()}),hl=n.enum(["Success","Failed","Error"]),Z$=hl.enum,R$=n.object({check:n.string(),status:hl,message:n.string().optional(),details:n.string().optional()}),V$=n.object({title:n.string().optional(),createdAt:n.string().optional(),issuer:Lt.optional(),issuee:Lt.optional(),credentialSubject:gc.optional()}),L$=n.object({id:n.string(),uri:n.string()}).catchall(n.any()),M$=n.object({limit:n.number(),cursor:n.string().optional(),sort:n.string().optional()}),R=n.object({cursor:n.string().optional(),hasMore:n.boolean()}),yl=n.object({encryptedRecord:bc,fields:n.string().array()}).catchall(n.any()),q$=R.extend({records:yl.array()}),sf=yl.extend({id:n.string()}),G$=R.extend({records:sf.array()}),sl=hc(e=>{let r=e.match(/^\/(.*)\/([gimsuy]*)$/);if(!r)throw new Error("Invalid RegExp string format");return{pattern:r[1],flags:r[2]}},"parseRegexString"),cf=n.string().refine(e=>{try{return sl(e),!0}catch{return!1}},{message:"Invalid RegExp string format. Must be in format '/pattern/flags'"}).transform(e=>{let{pattern:r,flags:o}=sl(e);try{return new RegExp(r,o)}catch(i){throw new Error(`Invalid RegExp: ${i.message}`)}}).meta({override:{type:"string"}}),uf=n.instanceof(RegExp).meta({override:{type:"string"}}).or(cf).meta({override:{type:"string"}}),cl=n.string().or(n.object({$in:n.string().array()})).or(n.object({$regex:uf.meta({override:{type:"string"}})})),P=n.union([cl,n.object({$or:cl.array()})]),lf=n.object({backgroundColor:n.string().optional(),backgroundImage:n.string().optional(),fadeBackgroundImage:n.boolean().optional(),repeatBackgroundImage:n.boolean().optional(),fontColor:n.string().optional(),accentColor:n.string().optional(),accentFontColor:n.string().optional(),idBackgroundImage:n.string().optional(),fadeIdBackgroundImage:n.boolean().optional(),idBackgroundColor:n.string().optional(),repeatIdBackgroundImage:n.boolean().optional()}),df=n.enum(["public","connections_only","private"]),pf=n.enum(["anyone","invite_only"]),L=n.object({profileId:n.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),displayName:n.string().default("").describe("Human-readable display name for the profile."),shortBio:n.string().default("").describe("Short bio for the profile."),bio:n.string().default("").describe("Longer bio for the profile."),did:n.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),isPrivate:n.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),profileVisibility:df.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),showEmail:n.boolean().default(!1).optional().describe("Whether to show email to connections."),allowConnectionRequests:pf.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),email:n.string().optional().describe("Contact email address for the profile. (deprecated)"),image:n.string().optional().describe("Profile image URL for the profile."),heroImage:n.string().optional().describe("Hero image URL for the profile."),websiteLink:n.string().optional().describe("Website link for the profile."),isServiceProfile:n.boolean().default(!1).optional().describe("Whether the profile is a service profile or not."),type:n.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),notificationsWebhook:n.string().url().startsWith("http").optional().describe("URL to send notifications to."),display:lf.optional().describe("Display settings for the profile."),highlightedCredentials:n.array(n.string()).max(5).optional().describe("Up to 5 unique boost URIs to highlight on the profile."),role:n.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),dob:n.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".'),country:n.string().optional().describe("Country for the profile."),approved:n.boolean().optional().describe("Approval status for the profile.")}),bl=L.pick({profileId:!0,displayName:!0,shortBio:!0,image:!0,heroImage:!0,type:!0,isServiceProfile:!0,display:!0}),$l=bl.extend({bio:L.shape.bio,websiteLink:L.shape.websiteLink,role:L.shape.role,highlightedCredentials:L.shape.highlightedCredentials,did:L.shape.did}),mf=$l.extend({email:L.shape.email}),$c=n.union([mf.strict(),$l.strict(),bl.strict(),L]),K$=n.object({profileId:P,displayName:P,shortBio:P,bio:P,email:P,websiteLink:P,isServiceProfile:n.boolean(),type:P}).partial(),X$=R.extend({records:L.array()}),H$=R.extend({records:$c.array()}),Q$=n.enum(["CONNECTED","PENDING_REQUEST_SENT","PENDING_REQUEST_RECEIVED","NOT_CONNECTED"]),_l=n.object({id:n.string(),created:n.string(),displayName:n.string().default("").optional(),shortBio:n.string().default("").optional(),bio:n.string().default("").optional(),email:n.string().optional(),image:n.string().optional(),heroImage:n.string().optional()}),Y$=R.extend({records:_l.extend({did:n.string()}).array()}),e_=n.object({id:P,displayName:P,shortBio:P,bio:P,email:P}).partial(),t_=R.extend({records:n.object({profile:L,manager:_l.extend({did:n.string()}).optional()}).array()}),r_=n.object({uri:n.string(),to:n.string(),from:n.string(),sent:n.iso.datetime(),received:n.iso.datetime().optional(),metadata:n.record(n.string(),n.unknown()).optional()}),tn=n.object({role:n.string(),canView:n.boolean().default(!0),canEdit:n.boolean(),canIssue:n.boolean(),canRevoke:n.boolean(),canManagePermissions:n.boolean(),canIssueChildren:n.string(),canCreateChildren:n.string(),canEditChildren:n.string(),canRevokeChildren:n.string(),canManageChildrenPermissions:n.string(),canManageChildrenProfiles:n.boolean().optional(),canViewAnalytics:n.boolean()}),gf=n.object({role:P,canView:n.boolean(),canEdit:n.boolean(),canIssue:n.boolean(),canRevoke:n.boolean(),canManagePermissions:n.boolean(),canIssueChildren:P,canCreateChildren:P,canEditChildren:P,canRevokeChildren:P,canManageChildrenPermissions:P,canManageChildrenProfiles:n.boolean(),canViewAnalytics:n.boolean()}).partial(),mc=n.enum(["GRANT_PERMISSIONS","ADD_ADMIN","AUTO_CONNECT"]),ff=n.discriminatedUnion("type",[n.object({type:n.literal(mc.enum.GRANT_PERMISSIONS),data:n.object({claimUri:n.string(),targetUri:n.string(),permissions:tn.partial()})}),n.object({type:n.literal(mc.enum.ADD_ADMIN),data:n.object({claimUri:n.string(),targetUri:n.string()})}),n.object({type:n.literal(mc.enum.AUTO_CONNECT),data:n.object({claimUri:n.string(),targetUri:n.string()})})]),n_=n.object({type:P,data:n.object({claimUri:P,targetUri:P,permissions:gf.partial()}).partial()}),vf=n.object({id:n.string(),createdAt:n.string(),updatedAt:n.string()}).and(ff),i_=R.extend({records:vf.array()}),fc=n.enum(["DRAFT","PROVISIONAL","LIVE"]),kl=n.object({uri:n.string(),name:n.string().optional(),type:n.string().optional(),category:n.string().optional(),status:fc.optional(),autoConnectRecipients:n.boolean().optional(),meta:n.record(n.string(),n.any()).optional(),claimPermissions:tn.optional(),defaultPermissions:tn.optional(),allowAnyoneToCreateChildren:n.boolean().optional()}),ul=n.object({uri:P,name:P,type:P,category:P,meta:n.record(n.string(),P),status:fc.or(n.object({$in:fc.array()})),autoConnectRecipients:n.boolean()}).partial(),o_=n.union([n.object({$or:ul.array()}),ul]),a_=R.extend({records:kl.array()}),hf=n.object({to:$c,from:n.string(),received:n.string().optional(),uri:n.string().optional()}),s_=R.extend({records:hf.array()}),yf=n.object({to:$c,from:n.string(),received:n.string().optional(),boostUris:n.array(n.string()),credentialUris:n.array(n.string()).optional()}),c_=R.extend({records:yf.array()}),u_=n.object({endpoint:n.string(),name:n.string(),did:n.string().optional()}),l_=n.object({ttlSeconds:n.number().optional(),totalUses:n.number().optional()}),bf=n.object({endpoint:n.string()}),d_=n.object({signingAuthority:bf,relationship:n.object({name:n.string().max(15).regex(/^[a-z0-9-]+$/,{message:"The input string must contain only lowercase letters, numbers, and hyphens."}),did:n.string(),isPrimary:n.boolean().optional()})}),p_=n.object({boostUri:n.string(),signingAuthority:n.object({endpoint:n.string(),name:n.string()})}),$f=kl.partial().omit({uri:!0,claimPermissions:!0}).extend({credential:ve.or(ie),claimPermissions:tn.partial().optional(),skills:n.array(n.object({frameworkId:n.string(),id:n.string(),proficiencyLevel:n.number().optional()})).min(1).optional()}),_f=n.object({issuerName:n.string().optional().describe("Name of the issuing organization"),issuerLogoUrl:n.string().url().optional().describe("Logo URL of the issuing organization"),credentialName:n.string().optional().describe("Display name for the credential"),recipientName:n.string().optional().describe("Name of the recipient for personalization")}),wl=n.enum(["AWAITING_GUARDIAN","GUARDIAN_APPROVED","GUARDIAN_REJECTED"]),kf=n.object({webhookUrl:n.string().url().optional().describe("Webhook URL to receive claim notifications"),suppressDelivery:n.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),branding:_f.optional().describe("Branding for email/SMS delivery"),guardianEmail:n.string().email().optional().describe("Guardian email that must approve before student can claim")}),wf=n.object({type:n.literal("boost"),recipient:n.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),contractUri:n.string().optional(),templateUri:n.string().optional(),template:$f.optional(),signedCredential:ve.optional(),options:kf.optional().describe("Options for email/phone recipients (Universal Inbox)"),templateData:n.record(n.string(),n.unknown()).optional(),integrationId:n.string().optional().describe("Integration ID for activity tracking")}).refine(e=>e.templateUri||e.template||e.signedCredential,{message:"Either templateUri, template, or signedCredential must be provided.",path:["templateUri"]}).refine(e=>e.options?.guardianEmail?e.options.guardianEmail.toLowerCase()!==e.recipient.toLowerCase():!0,{message:"guardianEmail must differ from recipient (self-approval not allowed)",path:["options","guardianEmail"]}),xf=n.object({issuanceId:n.string(),status:n.enum(["PENDING","ISSUED","EXPIRED","DELIVERED","CLAIMED"]),claimUrl:n.string().url().optional().describe("Present when suppressDelivery=true"),guardianStatus:wl.optional().describe("Present when guardianEmail was specified")}),If=n.object({type:n.literal("boost"),credentialUri:n.string(),uri:n.string(),activityId:n.string().describe("Links to the activity lifecycle for this issuance"),inbox:xf.optional().describe("Present when sent via email/phone (Universal Inbox)")}),m_=n.discriminatedUnion("type",[wf]),g_=n.discriminatedUnion("type",[If]),Sf=n.enum(["live","stale","withdrawn"]),_c=n.object({read:n.object({anonymize:n.boolean().optional(),credentials:n.object({categories:n.record(n.string(),n.object({required:n.boolean(),defaultEnabled:n.boolean().optional()})).default({})}).prefault({categories:{}}),personal:n.record(n.string(),n.object({required:n.boolean(),defaultEnabled:n.boolean().optional()})).default({})}).prefault({credentials:{categories:{}},personal:{}}),write:n.object({credentials:n.object({categories:n.record(n.string(),n.object({required:n.boolean(),defaultEnabled:n.boolean().optional()})).default({})}).prefault({categories:{}}),personal:n.record(n.string(),n.object({required:n.boolean(),defaultEnabled:n.boolean().optional()})).default({})}).prefault({credentials:{categories:{}},personal:{}})}),xl=n.object({contract:_c,owner:L,name:n.string(),subtitle:n.string().optional(),description:n.string().optional(),reasonForAccessing:n.string().optional(),image:n.string().optional(),uri:n.string(),needsGuardianConsent:n.boolean().optional(),redirectUrl:n.string().optional(),frontDoorBoostUri:n.string().optional(),createdAt:n.string(),updatedAt:n.string(),expiresAt:n.string().optional(),autoBoosts:n.string().array().optional(),writers:n.array(L).optional()}),zf=n.enum(["pending","accepted","denied"]).nullable(),jf=n.enum(["unseen","seen"]).nullable(),Cf=n.object({profile:L,status:zf,readStatus:jf.optional()}),f_=n.array(Cf),v_=R.extend({records:xl.omit({owner:!0}).array()}),Pf=n.object({credentials:n.object({categories:n.record(n.string(),n.string().array()).default({})}),personal:n.record(n.string(),n.string()).default({}),date:n.string()}),h_=R.extend({records:Pf.array()}),Nf=n.object({credentials:n.object({category:n.string(),uri:n.string()}).array(),personal:n.record(n.string(),n.string()).default({}),date:n.string(),contractUri:n.string()}),y_=R.extend({records:Nf.array()}),Il=n.object({sharing:n.boolean().optional(),shared:n.string().array().optional(),shareAll:n.boolean().optional(),shareUntil:n.string().optional()}),on=n.object({read:n.object({anonymize:n.boolean().optional(),credentials:n.object({shareAll:n.boolean().optional(),sharing:n.boolean().optional(),categories:n.record(n.string(),Il).default({})}).prefault({categories:{}}),personal:n.record(n.string(),n.string()).default({})}).prefault({credentials:{categories:{}},personal:{}}),write:n.object({credentials:n.object({categories:n.record(n.string(),n.boolean()).default({})}).prefault({categories:{}}),personal:n.record(n.string(),n.boolean()).default({})}).prefault({credentials:{categories:{}},personal:{}}),deniedWriters:n.array(n.string()).optional()}),b_=R.extend({records:n.object({expiresAt:n.string().optional(),oneTime:n.boolean().optional(),terms:on,contract:xl,uri:n.string(),consenter:L,status:Sf}).array()}),$_=n.object({read:n.object({anonymize:n.boolean().optional(),credentials:n.object({categories:n.record(n.string(),n.object({required:n.boolean().optional()})).optional()}).optional(),personal:n.record(n.string(),n.object({required:n.boolean().optional()})).optional()}).optional(),write:n.object({credentials:n.object({categories:n.record(n.string(),n.object({required:n.boolean().optional()})).optional()}).optional(),personal:n.record(n.string(),n.object({required:n.boolean().optional()})).optional()}).optional()}),__=n.object({anonymize:n.boolean().optional(),credentials:n.object({categories:n.record(n.string(),n.boolean()).optional()}).optional(),personal:n.record(n.string(),n.boolean()).optional()}),k_=n.object({credentials:n.object({categories:n.record(n.string(),n.boolean()).optional()}).optional(),personal:n.record(n.string(),n.boolean()).optional(),id:P.optional()}),Uf=n.object({read:n.object({anonymize:n.boolean().optional(),credentials:n.object({shareAll:n.boolean().optional(),sharing:n.boolean().optional(),categories:n.record(n.string(),Il.optional()).optional()}).optional(),personal:n.record(n.string(),n.string()).optional()}).optional(),write:n.object({credentials:n.object({categories:n.record(n.string(),n.boolean()).optional()}).optional(),personal:n.record(n.string(),n.boolean()).optional()}).optional()}),vc=n.enum(["consent","update","sync","withdraw","write"]),w_=n.object({terms:Uf.optional(),action:vc.or(vc.array()).optional(),date:n.object({$gt:n.string()}).or(n.object({$lt:n.string()})).or(n.object({$eq:n.string()})).optional(),expiresAt:n.object({$gt:n.string()}).or(n.object({$lt:n.string()})).or(n.object({$eq:n.string()})).optional(),oneTime:n.boolean().optional()}),Sl=n.object({expiresAt:n.string().optional(),oneTime:n.boolean().optional(),terms:on.optional(),id:n.string(),action:vc,date:n.string(),uris:n.string().array().optional()}),x_=R.extend({records:Sl.array()}),ll=n.object({id:P,name:P,description:P,sourceURI:P,status:P}).partial(),I_=n.union([n.object({$or:ll.array()}),ll]),Df=n.object({credentialUri:n.string(),termsUri:n.string(),contractUri:n.string(),boostUri:n.string(),category:n.string().optional(),date:n.string()}),S_=R.extend({records:Df.array()}),Af=n.enum(["CONNECTION_REQUEST","CONNECTION_REQUEST_EXPIRED_INVITE","CONNECTION_ACCEPTED","CREDENTIAL_RECEIVED","CREDENTIAL_ACCEPTED","BOOST_RECEIVED","BOOST_ACCEPTED","PRESENTATION_REQUEST","PRESENTATION_RECEIVED","CONSENT_FLOW_TRANSACTION","ISSUANCE_CLAIMED","ISSUANCE_DELIVERED","ISSUANCE_ERROR","PROFILE_PARENT_APPROVED","APP_LISTING_SUBMITTED","APP_LISTING_APPROVED","APP_LISTING_REJECTED","APP_LISTING_WITHDRAWN","DEVICE_LINK_REQUEST","GUARDIAN_APPROVAL_PENDING","GUARDIAN_APPROVED","GUARDIAN_REJECTED","APP_NOTIFICATION"]),Ef=n.object({title:n.string().optional(),body:n.string().optional()}),Of=n.object({type:n.string(),value:n.string()}),an=n.enum(["PENDING","ISSUED","EXPIRED","DELIVERED","CLAIMED"]),Tf=n.object({issuanceId:n.string(),status:an,recipient:n.object({contactMethod:Of.optional(),learnCardId:n.string().optional()}),timestamp:n.iso.datetime().optional()}),Zf=n.object({vcUris:n.array(n.string()).optional(),vpUris:n.array(n.string()).optional(),transaction:Sl.optional(),inbox:Tf.optional(),metadata:n.record(n.string(),n.unknown()).optional()}).loose(),z_=n.object({type:Af,to:L.partial().and(n.object({did:n.string()})),from:n.union([n.string(),L.partial().and(n.object({did:n.string()}))]),message:Ef.optional(),data:Zf.optional(),sent:n.iso.datetime().optional(),webhookUrl:n.string().optional()}),Rf="auth-grant:",j_=n.object({id:n.string(),name:n.string(),description:n.string().optional(),challenge:n.string().startsWith(Rf).min(10,{message:"Challenge is too short"}).max(100,{message:"Challenge is too long"}),status:n.enum(["revoked","active"],{error:hc(e=>e.code==="invalid_value"?"Status must be either active or revoked":"Status is required","error")}),scope:n.string(),createdAt:n.iso.datetime({error:"createdAt must be a valid ISO 8601 datetime string"}),expiresAt:n.iso.datetime({error:"expiresAt must be a valid ISO 8601 datetime string"}).nullish().optional()}),C_=n.object({id:n.string()}).catchall(n.any()),Vf=n.enum(["active","revoked"]),P_=n.object({id:P,name:P,description:P,status:Vf}).partial(),dl=n.object({id:n.string(),isVerified:n.boolean(),verifiedAt:n.string().optional(),isPrimary:n.boolean(),createdAt:n.string()}),N_=n.discriminatedUnion("type",[n.object({type:n.literal("email"),value:n.string().email()}).merge(dl),n.object({type:n.literal("phone"),value:n.string()}).merge(dl)]),pl=n.object({isVerified:n.boolean().optional(),isPrimary:n.boolean().optional()}),U_=n.discriminatedUnion("type",[n.object({type:n.literal("email"),value:n.string().email()}).merge(pl),n.object({type:n.literal("phone"),value:n.string()}).merge(pl)]),zl=n.discriminatedUnion("type",[n.object({type:n.literal("email"),value:n.string().email()}),n.object({type:n.literal("phone"),value:n.string()})]),Lf=n.object({value:n.string(),type:n.enum(["email","phone"])}),D_=n.object({token:n.string()}),A_=n.object({contactMethodId:n.string()}),E_=n.object({contactMethod:Lf,otpChallenge:n.string()}),O_=n.object({sessionJwt:n.string()}),Ff=n.object({id:n.string(),credential:n.string(),isSigned:n.boolean(),currentStatus:an,isAccepted:n.boolean().optional(),expiresAt:n.string(),createdAt:n.string(),issuerDid:n.string(),webhookUrl:n.string().optional(),boostUri:n.string().optional(),activityId:n.string().optional(),integrationId:n.string().optional(),signingAuthority:n.object({endpoint:n.string().optional(),name:n.string().optional()}).optional(),guardianEmail:n.string().email().optional(),guardianStatus:wl.optional(),guardianApprovedAt:n.string().optional(),guardianApprovedByDid:n.string().optional()}),T_=n.object({hasMore:n.boolean(),records:n.array(Ff),cursor:n.string().optional()}),Z_=n.object({currentStatus:an,id:n.string(),isSigned:n.boolean(),isAccepted:n.boolean().optional(),issuerDid:n.string(),boostUri:n.string()}).partial(),Bf=n.object({endpoint:n.string().url(),name:n.string()}),R_=n.object({recipient:zl.describe("The recipient of the credential"),credential:ve.or(Mt).or(ie).optional().describe("The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."),templateUri:n.string().optional().describe("URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."),configuration:n.object({signingAuthority:Bf.optional().describe("The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."),webhookUrl:n.string().url().optional().describe("The webhook URL to receive credential issuance events."),expiresInDays:n.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),templateData:n.record(n.string(),n.unknown()).optional().describe("Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."),delivery:n.object({suppress:n.boolean().optional().default(!1).describe("Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."),template:n.object({id:n.enum(["universal-inbox-claim"]).optional().describe("The template ID to use for the credential delivery. If not provided, the default template will be used."),model:n.object({issuer:n.object({name:n.string().optional().describe('The name of the organization (e.g., "State University").'),logoUrl:n.string().url().optional().describe("The URL of the organization's logo.")}).optional(),credential:n.object({name:n.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),type:n.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')}).optional(),recipient:n.object({name:n.string().optional().describe('The name of the recipient (e.g., "John Doe").')}).optional()}).describe("The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used.")}).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")}).optional().describe("Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used.")}).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")}).refine(e=>e.credential||e.templateUri,{message:"Either credential or templateUri must be provided.",path:["credential"]}),V_=n.object({issuanceId:n.string(),status:an,recipient:zl,claimUrl:n.string().url().optional(),recipientDid:n.string().optional()}),Mf=n.object({name:n.string()}).passthrough(),L_=n.object({credential:ve.or(Mt).or(ie).or(Mf).describe("The credential to issue, or a { name } reference to resolve a boost template."),configuration:n.object({publishableKey:n.string(),signingAuthorityName:n.string().optional(),listingId:n.string().optional(),listingSlug:n.string().optional()}).optional()}),kc=n.union([n.string().regex(/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,{message:"Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"}),n.string().regex(/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,{message:"Must be a valid http(s) origin"})]),jl=n.enum(["setup","active","paused"]),qf=n.object({id:n.string(),name:n.string(),description:n.string().optional(),publishableKey:n.string(),whitelistedDomains:n.array(kc).default([]),status:jl.default("setup"),guideType:n.string().optional(),guideState:n.record(n.string(),n.any()).optional(),createdAt:n.string().optional(),updatedAt:n.string().optional()}),F_=n.object({name:n.string(),description:n.string().optional(),whitelistedDomains:n.array(kc).default([]),guideType:n.string().optional()}),B_=n.object({name:n.string().optional(),description:n.string().optional(),whitelistedDomains:n.array(kc).optional(),rotatePublishableKey:n.boolean().optional(),status:jl.optional(),guideType:n.string().optional(),guideState:n.record(n.string(),n.any()).optional()}),M_=n.object({id:P,name:P,description:P,status:P,guideType:P}).partial(),q_=R.extend({records:qf.array()}),G_=n.object({token:n.string(),contactMethodId:n.string(),autoVerifyContactMethod:n.boolean().optional().default(!1),createdAt:n.string(),expiresAt:n.string(),used:n.boolean()}),J_=n.object({id:n.string(),name:n.string().min(1),slug:n.string().min(1),createdAt:n.string().optional(),updatedAt:n.string().optional()}),Ft=n.enum(["active","archived"]),wc=n.object({id:n.string(),statement:n.string(),description:n.string().optional(),code:n.string().optional(),icon:n.string().optional(),type:n.string().default("skill"),status:Ft.default("active"),frameworkId:n.string().optional(),createdAt:n.string().optional(),updatedAt:n.string().optional()}),ml=n.object({id:P,statement:P,description:P,code:P,type:P,status:Ft.or(n.object({$in:Ft.array()}))}).partial(),W_=n.union([n.object({$or:ml.array()}),ml]),K_=n.object({text:n.string().min(1),frameworkId:n.string().optional(),limit:n.number().int().min(1).max(200).default(50)}),Gf=wc.extend({score:n.number()}),X_=n.object({records:Gf.array()}),xc=n.enum(["active","archived"]),Cl=n.object({id:n.string(),name:n.string(),description:n.string().optional(),image:n.string().optional(),sourceURI:n.string().url().optional(),isPublic:n.boolean().default(!1),status:xc.default("active"),createdAt:n.string().optional(),updatedAt:n.string().optional()}),H_=R.extend({records:Cl.array()}),Ic=wc.extend({children:n.array(n.lazy(()=>Ic)),hasChildren:n.boolean(),childrenCursor:n.string().nullable().optional()}),Jf=n.object({hasMore:n.boolean(),cursor:n.string().nullable(),records:n.array(Ic)}),Ke=n.lazy(()=>n.object({id:n.string().optional(),statement:n.string(),description:n.string().optional(),code:n.string().optional(),icon:n.string().optional(),type:n.string().optional(),status:Ft.optional(),children:n.array(Ke).optional()})),Q_=n.object({frameworkId:n.string()}),Wf=n.object({id:n.string().optional(),name:n.string().min(1),description:n.string().optional(),image:n.string().optional(),sourceURI:n.string().url().optional(),isPublic:n.boolean().optional(),status:xc.optional(),skills:n.array(Ke).optional(),boostUris:n.array(n.string()).optional()}),Y_=n.object({id:n.string(),name:n.string().min(1).optional(),description:n.string().optional(),image:n.string().optional(),sourceURI:n.string().url().optional(),isPublic:n.boolean().optional(),status:xc.optional()}).refine(e=>e.name!==void 0||e.description!==void 0||e.image!==void 0||e.sourceURI!==void 0||e.isPublic!==void 0||e.status!==void 0,{message:"At least one field must be provided to update",path:["name"]}),ek=n.object({id:n.string()}),tk=n.object({frameworks:n.array(Wf.extend({skills:n.array(Ke).optional()})).min(1)}),rk=n.object({frameworkId:n.string(),profileId:n.string()}),nk=n.object({frameworkId:n.string()}),ik=L.array(),ok=n.object({id:n.string()}),ak=n.object({slug:n.string().min(1),name:n.string().min(1)}),sk=n.object({frameworkId:n.string(),skill:Ke,parentId:n.string().nullable().optional()}),ck=n.object({frameworkId:n.string(),id:n.string(),statement:n.string().optional(),description:n.string().optional(),code:n.string().optional(),icon:n.string().optional(),type:n.string().optional(),status:Ft.optional()}).refine(e=>e.statement!==void 0||e.description!==void 0||e.code!==void 0||e.icon!==void 0||e.type!==void 0||e.status!==void 0,{message:"At least one field must be provided to update a skill",path:["statement"]}),Kf=n.enum(["recursive","reparent"]),uk=n.object({frameworkId:n.string(),id:n.string(),strategy:Kf.optional().default("reparent")}),lk=n.object({frameworkId:n.string(),skills:n.array(Ke).min(1),parentId:n.string().nullable().optional()}),dk=n.object({frameworkId:n.string(),skills:n.array(Ke).min(0)}),pk=n.object({created:n.number().int().min(0),updated:n.number().int().min(0),deleted:n.number().int().min(0),unchanged:n.number().int().min(0),total:n.number().int().min(0)}),mk=n.object({frameworkId:n.string(),skillId:n.string().optional(),recursive:n.boolean().optional().default(!1),onlyCountCompetencies:n.boolean().optional().default(!1)}),gk=n.object({count:n.number().int().min(0)}),fk=n.object({frameworkId:n.string()}),vk=n.object({skills:n.array(Ic)}),hk=n.object({frameworkId:n.string(),skillId:n.string()}),yk=n.object({path:n.array(wc)}),bk=n.object({framework:Cl,skills:Jf}),Xf=n.enum(["DRAFT","PENDING_REVIEW","LISTED","ARCHIVED"]),Hf=n.enum(["EMBEDDED_IFRAME","SECOND_SCREEN","DIRECT_LINK","CONSENT_REDIRECT","SERVER_HEADLESS","AI_TUTOR"]),Qf=n.enum(["FEATURED_CAROUSEL","CURATED_LIST","STANDARD","DEMOTED"]),Yf=n.enum(["4+","9+","12+","17+"]),ev=n.object({profileId:n.string(),displayName:n.string(),email:n.string().optional()}),sn=n.object({listing_id:n.string(),slug:n.string().optional(),display_name:n.string(),tagline:n.string(),full_description:n.string(),icon_url:n.string(),app_listing_status:Xf,launch_type:Hf,launch_config_json:n.string(),category:n.string().optional(),promo_video_url:n.string().optional(),promotion_level:Qf.optional(),ios_app_store_id:n.string().optional(),android_app_store_id:n.string().optional(),privacy_policy_url:n.string().optional(),terms_url:n.string().optional(),highlights:n.array(n.string()).optional(),screenshots:n.array(n.string()).optional(),hero_background_color:n.string().optional(),min_age:n.number().int().min(0).max(18).optional(),age_rating:Yf.optional(),submitted_at:n.string().optional(),submitter:ev.optional(),contact_email:n.string().email().optional()}),$k=sn.omit({listing_id:!0,app_listing_status:!0,promotion_level:!0}),_k=sn.partial().omit({listing_id:!0,app_listing_status:!0,promotion_level:!0}),tv=sn.extend({installed_at:n.string()}),kk=R.extend({records:sn.array()}),wk=R.extend({records:tv.array()}),xk=n.object({templateAlias:n.string().min(1).max(50).regex(/^[a-z0-9-]+$/),boostUri:n.string()}),rv=n.object({type:n.literal("send-credential"),templateAlias:n.string(),templateData:n.record(n.string(),n.unknown()).optional(),preventDuplicateClaim:n.boolean().optional()}),nv=n.object({type:n.literal("check-credential"),templateAlias:n.string().optional(),boostUri:n.string().optional()}).refine(e=>!!e.templateAlias!=!!e.boostUri,{message:"Exactly one of templateAlias or boostUri is required"}),iv=n.object({type:n.literal("check-issuance-status"),templateAlias:n.string().optional(),boostUri:n.string().optional(),recipient:n.string()}).refine(e=>!!e.templateAlias!=!!e.boostUri,{message:"Exactly one of templateAlias or boostUri is required"}),ov=n.object({type:n.literal("get-template-recipients"),templateAlias:n.string().optional(),boostUri:n.string().optional(),limit:n.number().optional(),cursor:n.string().optional()}).refine(e=>!!e.templateAlias!=!!e.boostUri,{message:"Exactly one of templateAlias or boostUri is required"}),av=n.object({type:n.literal("request-learner-context"),includeCredentials:n.boolean().optional().default(!0),includePersonalData:n.boolean().optional().default(!1),format:n.enum(["prompt","structured"]).optional().default("prompt"),instructions:n.string().optional(),detailLevel:n.enum(["compact","expanded"]).optional().default("compact")}),sv=n.object({occupations:n.array(n.string()).nullable(),careers:n.array(n.string()).nullable(),jobs:n.array(n.string()).nullable(),skills:n.array(n.string()).nullable(),fieldOfStudy:n.string().nullable()}),cv=n.object({title:n.string().describe("Short, concise title for the learning session or credential"),summary:n.string().describe("Comprehensive summary of what happened during the session"),learned:n.array(n.string()).describe("Bullet points of key knowledge gained"),skills:n.array(n.object({title:n.string().describe("Name of the skill category"),description:n.string().describe("Detailed description of what this skill category involves")})).describe("Categorized skills learned during the session"),nextSteps:n.array(n.object({title:n.string().describe("Title of the suggested next step"),description:n.string().describe("Description explaining why this next step is recommended"),keywords:sv})).describe("Recommended follow-up activities or learning modules"),reflections:n.array(n.object({title:n.string().describe("Title of the reflection"),description:n.string().describe("Detailed description of what this reflection involves")})).describe("Reflections on the learning experience")}),uv=n.object({type:n.literal("send-ai-session-credential"),sessionTitle:n.string(),summaryData:cv,metadata:n.record(n.string(),n.unknown()).optional()}),lv=n.object({type:n.literal("send-notification"),title:n.string().optional(),body:n.string().optional(),actionPath:n.string().optional(),category:n.string().optional(),priority:n.enum(["normal","high"]).optional()}),Sc=n.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/,"Key must be alphanumeric with _ or -"),dv=n.object({type:n.literal("increment-counter"),key:Sc,amount:n.number().int().finite()}),pv=n.object({type:n.literal("get-counter"),key:Sc}),mv=n.object({type:n.literal("get-counters"),keys:n.array(Sc).min(1).max(50).optional()}),gv=n.discriminatedUnion("type",[rv,nv,iv,ov,av,uv,lv,dv,pv,mv]),Ik=n.object({listingId:n.string(),event:gv}),Sk=n.record(n.string(),n.unknown()),fv=n.enum(["CREATED","DELIVERED","CLAIMED","EXPIRED","FAILED"]),vv=n.enum(["profile","email","phone"]),hv=n.enum(["send","sendBoost","sendCredential","contract","claim","inbox","claimLink","acceptCredential","appEvent"]),yv=n.object({id:n.string(),activityId:n.string(),eventType:fv,timestamp:n.string(),actorProfileId:n.string().optional(),recipientType:vv,recipientIdentifier:n.string(),boostUri:n.string().optional(),credentialUri:n.string().optional(),inboxCredentialId:n.string().optional(),integrationId:n.string().optional(),source:hv,metadata:n.record(n.string(),n.unknown()).optional()}),bv=yv.extend({boost:n.object({id:n.string(),name:n.string().optional(),category:n.string().optional()}).optional(),recipientProfile:n.object({profileId:n.string(),displayName:n.string().optional()}).optional()}),zk=R.extend({records:bv.array()}),jk=n.object({total:n.number(),created:n.number(),delivered:n.number(),claimed:n.number(),expired:n.number(),failed:n.number(),claimRate:n.number()}),Ue,Ck=(Ue=class extends Error{constructor(r,o){super(r),this.reason=o,this.name="AuthSessionError"}},s(Ue,"AuthSessionError"),hc(Ue,"AuthSessionError"),Ue);var un=require("@learncard/helpers");var $v=Object.prototype.toString,He=Array.isArray||s(function(r){return $v.call(r)==="[object Array]"},"isArrayPolyfill");function jc(e){return typeof e=="function"}s(jc,"isFunction");function _v(e){return He(e)?"array":typeof e}s(_v,"typeStr");function zc(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}s(zc,"escapeRegExp");function Pl(e,r){return e!=null&&typeof e=="object"&&r in e}s(Pl,"hasProperty");function kv(e,r){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(r)}s(kv,"primitiveHasOwnProperty");var wv=RegExp.prototype.test;function xv(e,r){return wv.call(e,r)}s(xv,"testRegExp");var Iv=/\S/;function Sv(e){return!xv(Iv,e)}s(Sv,"isWhitespace");var zv={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function jv(e){return String(e).replace(/[&<>"'`=\/]/g,s(function(o){return zv[o]},"fromEntityMap"))}s(jv,"escapeHtml");var Cv=/\s*/,Pv=/\s+/,Nl=/\s*=/,Nv=/\s*\}/,Uv=/#|\^|\/|>|\{|&|=|!/;function Dv(e,r){if(!e)return[];var o=!1,i=[],t=[],a=[],c=!1,f=!1,l="",g=0;function h(){if(c&&!f)for(;a.length;)delete t[a.pop()];else a=[];c=!1,f=!1}s(h,"stripSpace");var p,I,_;function d(T){if(typeof T=="string"&&(T=T.split(Pv,2)),!He(T)||T.length!==2)throw new Error("Invalid tags: "+T);p=new RegExp(zc(T[0])+"\\s*"),I=new RegExp("\\s*"+zc(T[1])),_=new RegExp("\\s*"+zc("}"+T[1]))}s(d,"compileTags"),d(r||ae.tags);for(var u=new Gt(e),m,y,$,S,z,j;!u.eos();){if(m=u.pos,$=u.scanUntil(p),$)for(var J=0,ue=$.length;J<ue;++J)S=$.charAt(J),Sv(S)?(a.push(t.length),l+=S):(f=!0,o=!0,l+=" "),t.push(["text",S,m,m+1]),m+=1,S===`
|
|
24
|
+
`&&(h(),l="",g=0,o=!1);if(!u.scan(p))break;if(c=!0,y=u.scan(Uv)||"name",u.scan(Cv),y==="="?($=u.scanUntil(Nl),u.scan(Nl),u.scanUntil(I)):y==="{"?($=u.scanUntil(_),u.scan(Nv),u.scanUntil(I),y="&"):$=u.scanUntil(I),!u.scan(I))throw new Error("Unclosed tag at "+u.pos);if(y==">"?z=[y,$,m,u.pos,l,g,o]:z=[y,$,m,u.pos],g++,t.push(z),y==="#"||y==="^")i.push(z);else if(y==="/"){if(j=i.pop(),!j)throw new Error('Unopened section "'+$+'" at '+m);if(j[1]!==$)throw new Error('Unclosed section "'+j[1]+'" at '+m)}else y==="name"||y==="{"||y==="&"?f=!0:y==="="&&d($)}if(h(),j=i.pop(),j)throw new Error('Unclosed section "'+j[1]+'" at '+u.pos);return Ev(Av(t))}s(Dv,"parseTemplate");function Av(e){for(var r=[],o,i,t=0,a=e.length;t<a;++t)o=e[t],o&&(o[0]==="text"&&i&&i[0]==="text"?(i[1]+=o[1],i[3]=o[3]):(r.push(o),i=o));return r}s(Av,"squashTokens");function Ev(e){for(var r=[],o=r,i=[],t,a,c=0,f=e.length;c<f;++c)switch(t=e[c],t[0]){case"#":case"^":o.push(t),i.push(t),o=t[4]=[];break;case"/":a=i.pop(),a[5]=t[2],o=i.length>0?i[i.length-1][4]:r;break;default:o.push(t)}return r}s(Ev,"nestTokens");function Gt(e){this.string=e,this.tail=e,this.pos=0}s(Gt,"Scanner");Gt.prototype.eos=s(function(){return this.tail===""},"eos");Gt.prototype.scan=s(function(r){var o=this.tail.match(r);if(!o||o.index!==0)return"";var i=o[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i},"scan");Gt.prototype.scanUntil=s(function(r){var o=this.tail.search(r),i;switch(o){case-1:i=this.tail,this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,o),this.tail=this.tail.substring(o)}return this.pos+=i.length,i},"scanUntil");function Xe(e,r){this.view=e,this.cache={".":this.view},this.parent=r}s(Xe,"Context");Xe.prototype.push=s(function(r){return new Xe(r,this)},"push");Xe.prototype.lookup=s(function(r){var o=this.cache,i;if(o.hasOwnProperty(r))i=o[r];else{for(var t=this,a,c,f,l=!1;t;){if(r.indexOf(".")>0)for(a=t.view,c=r.split("."),f=0;a!=null&&f<c.length;)f===c.length-1&&(l=Pl(a,c[f])||kv(a,c[f])),a=a[c[f++]];else a=t.view[r],l=Pl(t.view,r);if(l){i=a;break}t=t.parent}o[r]=i}return jc(i)&&(i=i.call(this.view)),i},"lookup");function G(){this.templateCache={_cache:{},set:s(function(r,o){this._cache[r]=o},"set"),get:s(function(r){return this._cache[r]},"get"),clear:s(function(){this._cache={}},"clear")}}s(G,"Writer");G.prototype.clearCache=s(function(){typeof this.templateCache<"u"&&this.templateCache.clear()},"clearCache");G.prototype.parse=s(function(r,o){var i=this.templateCache,t=r+":"+(o||ae.tags).join(":"),a=typeof i<"u",c=a?i.get(t):void 0;return c==null&&(c=Dv(r,o),a&&i.set(t,c)),c},"parse");G.prototype.render=s(function(r,o,i,t){var a=this.getConfigTags(t),c=this.parse(r,a),f=o instanceof Xe?o:new Xe(o,void 0);return this.renderTokens(c,f,i,r,t)},"render");G.prototype.renderTokens=s(function(r,o,i,t,a){for(var c="",f,l,g,h=0,p=r.length;h<p;++h)g=void 0,f=r[h],l=f[0],l==="#"?g=this.renderSection(f,o,i,t,a):l==="^"?g=this.renderInverted(f,o,i,t,a):l===">"?g=this.renderPartial(f,o,i,a):l==="&"?g=this.unescapedValue(f,o):l==="name"?g=this.escapedValue(f,o,a):l==="text"&&(g=this.rawValue(f)),g!==void 0&&(c+=g);return c},"renderTokens");G.prototype.renderSection=s(function(r,o,i,t,a){var c=this,f="",l=o.lookup(r[1]);function g(I){return c.render(I,o,i,a)}if(s(g,"subRender"),!!l){if(He(l))for(var h=0,p=l.length;h<p;++h)f+=this.renderTokens(r[4],o.push(l[h]),i,t,a);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")f+=this.renderTokens(r[4],o.push(l),i,t,a);else if(jc(l)){if(typeof t!="string")throw new Error("Cannot use higher-order sections without the original template");l=l.call(o.view,t.slice(r[3],r[5]),g),l!=null&&(f+=l)}else f+=this.renderTokens(r[4],o,i,t,a);return f}},"renderSection");G.prototype.renderInverted=s(function(r,o,i,t,a){var c=o.lookup(r[1]);if(!c||He(c)&&c.length===0)return this.renderTokens(r[4],o,i,t,a)},"renderInverted");G.prototype.indentPartial=s(function(r,o,i){for(var t=o.replace(/[^ \t]/g,""),a=r.split(`
|
|
25
|
+
`),c=0;c<a.length;c++)a[c].length&&(c>0||!i)&&(a[c]=t+a[c]);return a.join(`
|
|
26
|
+
`)},"indentPartial");G.prototype.renderPartial=s(function(r,o,i,t){if(i){var a=this.getConfigTags(t),c=jc(i)?i(r[1]):i[r[1]];if(c!=null){var f=r[6],l=r[5],g=r[4],h=c;l==0&&g&&(h=this.indentPartial(c,g,f));var p=this.parse(h,a);return this.renderTokens(p,o,i,h,t)}}},"renderPartial");G.prototype.unescapedValue=s(function(r,o){var i=o.lookup(r[1]);if(i!=null)return i},"unescapedValue");G.prototype.escapedValue=s(function(r,o,i){var t=this.getConfigEscape(i)||ae.escape,a=o.lookup(r[1]);if(a!=null)return typeof a=="number"&&t===ae.escape?String(a):t(a)},"escapedValue");G.prototype.rawValue=s(function(r){return r[1]},"rawValue");G.prototype.getConfigTags=s(function(r){return He(r)?r:r&&typeof r=="object"?r.tags:void 0},"getConfigTags");G.prototype.getConfigEscape=s(function(r){if(r&&typeof r=="object"&&!He(r))return r.escape},"getConfigEscape");var ae={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){qt.templateCache=e},get templateCache(){return qt.templateCache}},qt=new G;ae.clearCache=s(function(){return qt.clearCache()},"clearCache");ae.parse=s(function(r,o){return qt.parse(r,o)},"parse");ae.render=s(function(r,o,i,t){if(typeof r!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+_v(r)+'" was given as the first argument for mustache#render(template, view, partials)');return qt.render(r,o,i,t)},"render");ae.escape=jv;ae.Scanner=Gt;ae.Context=Xe;ae.Writer=G;var Ul=ae;var Ov=s(e=>e==null?"":String(e).replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\f/g,"\\f").replace(/[\b]/g,"\\b"),"escapeJsonStringValue"),Uc=s(e=>e==null?"":Array.isArray(e)?e.map(Uc):typeof e=="object"?Object.fromEntries(Object.entries(e).map(([r,o])=>[r,Uc(o)])):typeof e=="string"?Ov(e):e,"prepareTemplateValue"),Tv=s(e=>{let r={};for(let[o,i]of Object.entries(e))r[o]=Uc(i);return r},"prepareTemplateData"),Cc=s((e,r)=>{let o=Tv(r),i=e.replace(/\{\{\s*([^{}]+?)\s*\}\}/g,(t,a)=>{let c=a.trim();return/^[#^/!>&=]/.test(c)?t:`{{{${c}}}}`});return Ul.render(i,o)},"renderTemplateJson"),Pc=s(e=>/\{\{\s*[#^/]?\s*evidence(?:[.\s}]|$)/.test(e),"hasDynamicEvidenceTemplate"),Nc=s((e,r,o=!0)=>{if(!o)return e;let i=r?.evidence;if(!i)return e;let t=(Array.isArray(i)?i:[i]).map(c=>{if(c&&typeof c=="object"&&"last"in c){let{last:f,...l}=c;return l}return c});if(t.length===0)return e;let a=e.evidence?Array.isArray(e.evidence)?e.evidence:[e.evidence]:[];return{...e,evidence:[...a,...t]}},"appendTemplateEvidence"),cn=s(e=>!!e&&"did"in e&&typeof e.did=="string"&&e.did.length>0,"hasDid");async function Zv(e,r,o,i){let t=typeof o=="string"?o:void 0,a=(typeof o=="object"?o?.guardianApprovalGetter:void 0)??i?.guardianApprovalGetter,c=(typeof o=="object"?o?.extraHeaders:void 0)??i?.extraHeaders,f="";try{let d=e?.id;d&&typeof d.did=="function"&&(f=d.did())}catch{e?.debug?.("LCN: no local DID available at init; will fetch from profile")}e?.debug?.("Adding LearnCardNetwork Plugin");let l=t?await(0,ln.getApiTokenClient)(r,t,a,c):await(0,ln.getClient)(r,async d=>{let u=await e.invoke.getDidAuthVp({proofFormat:"jwt",challenge:d});if(typeof u!="string")throw new Error("Error getting DID-Auth-JWT!");return u},a,c),g;e?.debug?.("LCN: initial getProfile query starting",{apiToken:!!t});let h=l.profile.getProfile.query().then(d=>(g=d,g?.did&&(f=g.did),e?.debug?.("LCN: initial getProfile success",{did:f}),d)).catch(d=>{e?.debug?.("LCN: getProfile failed (non-fatal)",d)}),p=s(async()=>{try{await h}catch{}if(!g&&t)try{e?.debug?.("LCN ensureUser: retrying getProfile with apiToken"),g=await l.profile.getProfile.query(),g?.did&&(f=g.did),e?.debug?.("LCN ensureUser: retry success",{did:f})}catch(d){e?.debug?.("LCN ensureUser: retry failed",d)}if(!g)throw new Error("Please make an account first!");return g},"ensureUser"),I=s(async(d,u)=>{try{return(await l.boost.getBoost.query({uri:u})).boost}catch(m){return e?.debug?.("LCN: getBoost failed for template retrieval, falling back to resolveFromLCN",m),d.invoke.resolveFromLCN(u)}},"getBoostTemplateForIssuance"),_=s(async(d,u)=>{let m=new URL(r),$=`did:web:${`${m.hostname}${m.port?`%3A${m.port}`:""}`}`,S=s(T=>{if(!T.startsWith("did:web:"))return null;let F=T.split(":");if(F.length<3)return null;let H=F.findIndex((D,se)=>se<3?!1:D==="users"||D==="app"||D==="manager");return H===-1?T:`did:web:${F.slice(2,H).join(":")}`},"getInferredServiceDid"),z=s(T=>T.service?.find(F=>{let H=Array.isArray(F.type)?F.type[0]:F.type;return H==="UniversalInboxService"||H==="LearnCardInboxService"}),"getInboxService"),j=S(u);if(j===$)return`${m.origin}/api/inbox/receive`;let J=await d.invoke.resolveDid(u),ue=z(J);if((ue?.serviceDid||j)===$)return`${m.origin}/api/inbox/receive`;if(!ue?.serviceEndpoint)throw new Error(`Recipient DID ${u} does not have a UniversalInboxService endpoint in its DID document`);return ue.serviceEndpoint},"getInboxEndpointForDid");return{name:"LearnCard Network",displayName:"LearnCard Network",description:"LearnCard Network Integration",id:{did:s((d,u)=>!u||u==="web"?f:e.id?.did?.(u),"did"),keypair:s((d,u)=>e.id?.keypair?.(u),"keypair")},read:{get:s(async(d,u)=>{if(d.debug?.("learnCard.read['LearnCard Network'].get"),!u)return;let m=u.split(":");if(m.length!==5)return;let[y,$]=m;if(!(y!=="lc"||$!=="network"))try{let S=await l.storage.resolve.query({uri:u});if("ciphertext"in S)try{let z=d.id.keypair();S=await d.invoke.decryptDagJwe(S,[z])}catch(z){d.debug?.("LCN read.get: skipping decryption (no keypair?)",z);return}return await ve.or(Mt).parseAsync(S)}catch(S){d.debug?.(S);return}},"get")},store:{upload:s(async(d,u)=>(d.debug?.("learnCard.store['LearnCard Network'].upload"),l.storage.store.mutate({item:u})),"upload"),uploadEncrypted:s(async(d,u,{recipients:m=[]}={recipients:[]})=>{d.debug?.("learnCard.store['LearnCard Network'].upload"),await p();let $=[f||g?.did||"",...m].filter(Boolean);if($.length===0)throw new Error("No recipients specified for encrypted upload; provide at least one DID");let S=await d.invoke.createDagJwe(u,$);return l.storage.store.mutate({item:S})},"uploadEncrypted"),delete:s(async(d,u)=>(await p(),l.credential.deleteCredential.mutate({uri:u})),"delete")},methods:{createProfile:s(async(d,u)=>{try{await p()}catch{}if(g)throw new Error("Account already exists!");let m=await l.profile.createProfile.mutate(u);return g=await l.profile.getProfile.query(),f=m,m},"createProfile"),createServiceProfile:s(async(d,u)=>{try{await p()}catch{}let m=await l.profile.createServiceProfile.mutate(u);return g=await l.profile.getProfile.query(),f=m,m},"createServiceProfile"),createManagedProfile:s(async(d,u)=>await l.profileManager.createManagedProfile.mutate(u),"createManagedProfile"),createProfileManager:s(async(d,u)=>(await p(),await l.profileManager.createProfileManager.mutate(u)),"createProfileManager"),createChildProfileManager:s(async(d,u,m)=>(await p(),await l.profileManager.createChildProfileManager.mutate({parentUri:u,profile:m})),"createChildProfileManager"),createManagedServiceProfile:s(async(d,u)=>(await p(),await l.profile.createManagedServiceProfile.mutate(u)),"createManagedServiceProfile"),getAvailableProfiles:s(async(d,u={})=>(await p(),l.profile.getAvailableProfiles.query(u)),"getAvailableProfiles"),getManagedProfiles:s(async(d,u={})=>l.profileManager.getManagedProfiles.query(u),"getManagedProfiles"),claimPendingGuardianLinks:s(async()=>(await p(),l.inbox.claimPendingGuardianLinks.mutate({})),"claimPendingGuardianLinks"),getMyManagedChildren:s(async()=>(await p(),l.profileManager.getMyManagedChildren.query()),"getMyManagedChildren"),getMyGuardians:s(async()=>(await p(),l.profileManager.getMyGuardians.query()),"getMyGuardians"),removeManagesRelationship:s(async(d,u)=>(await p(),l.profileManager.removeManagesRelationship.mutate({profileId:u})),"removeManagesRelationship"),getManagedServiceProfiles:s(async(d,u={})=>(await p(),l.profile.getManagedServiceProfiles.query(u)),"getManagedServiceProfiles"),updateProfile:s(async(d,u)=>(await p(),await l.profile.updateProfile.mutate(u)?(g=await l.profile.getProfile.query(),!0):!1),"updateProfile"),updateProfileManagerProfile:s(async(d,u)=>l.profileManager.updateProfileManager.mutate(u),"updateProfileManagerProfile"),deleteProfile:s(async()=>{if(!g)throw new Error("Account does not exist!");return await l.profile.deleteProfile.mutate()?(g=void 0,!0):!1},"deleteProfile"),getProfile:s(async(d,u)=>{try{await p()}catch{}return u?l.profile.getOtherProfile.query({profileId:u}):g},"getProfile"),getProfileManagerProfile:s(async(d,u)=>u?l.profileManager.getOtherProfileManager.query({id:u}):l.profileManager.getProfileManager.query(),"getProfileManagerProfile"),searchProfiles:s(async(d,u="",{limit:m=25,includeSelf:y=!1,includeConnectionStatus:$=!1,includeServiceProfiles:S=!1}={})=>l.profile.searchProfiles.query({input:u,limit:m,includeSelf:y,includeConnectionStatus:$,includeServiceProfiles:S}),"searchProfiles"),connectWith:s(async(d,u)=>(await p(),l.profile.connectWith.mutate({profileId:u})),"connectWith"),connectWithExpiredInvite:s(async(d,u)=>(await p(),l.profile.connectWithExpiredInvite.mutate({profileId:u})),"connectWithExpiredInvite"),cancelConnectionRequest:s(async(d,u)=>(await p(),l.profile.cancelConnectionRequest.mutate({profileId:u})),"cancelConnectionRequest"),connectWithInvite:s(async(d,u,m)=>(await p(),l.profile.connectWithInvite.mutate({profileId:u,challenge:m})),"connectWithInvite"),disconnectWith:s(async(d,u)=>(await p(),l.profile.disconnectWith.mutate({profileId:u})),"disconnectWith"),acceptConnectionRequest:s(async(d,u)=>(await p(),l.profile.acceptConnectionRequest.mutate({profileId:u})),"acceptConnectionRequest"),getConnections:s(async d=>(console.warn("The getConnections method is deprecated! Please use getPaginatedConnections instead!"),await p(),l.profile.connections.query()),"getConnections"),getPaginatedConnections:s(async(d,u)=>(await p(),l.profile.paginatedConnections.query(u)),"getPaginatedConnections"),getPendingConnections:s(async d=>(console.warn("The getPendingConnections method is deprecated! Please use getPaginatedPendingConnections instead!"),await p(),l.profile.pendingConnections.query()),"getPendingConnections"),getPaginatedPendingConnections:s(async(d,u)=>(await p(),l.profile.paginatedPendingConnections.query(u)),"getPaginatedPendingConnections"),getConnectionRequests:s(async d=>(console.warn("The getConnectionRequests method is deprecated! Please use getPaginatedConnectionRequests instead!"),await p(),l.profile.connectionRequests.query()),"getConnectionRequests"),getPaginatedConnectionRequests:s(async(d,u)=>(await p(),l.profile.paginatedConnectionRequests.query(u)),"getPaginatedConnectionRequests"),generateInvite:s(async(d,u,m,y)=>(await p(),l.profile.generateInvite.mutate({challenge:u,expiration:m,maxUses:y})),"generateInvite"),listInvites:s(async()=>(await p(),l.profile.listInvites.query()),"listInvites"),invalidateInvite:s(async(d,u)=>(await p(),l.profile.invalidateInvite.mutate({challenge:u})),"invalidateInvite"),blockProfile:s(async(d,u)=>(await p(),l.profile.blockProfile.mutate({profileId:u})),"blockProfile"),unblockProfile:s(async(d,u)=>(await p(),l.profile.unblockProfile.mutate({profileId:u})),"unblockProfile"),getBlockedProfiles:s(async()=>(await p(),l.profile.blocked.query()),"getBlockedProfiles"),sendCredential:s(async(d,u,m,y,$)=>{if(await p(),u.startsWith("did:web:")){let ue=await _(d,u),T;typeof y=="object"&&(T=y);let F=await l.profile.getProfile.query(),H=F?.did||await l.utilities.getDid.query(),D=F?.displayName||"Unknown Issuer",se=await d.invoke.issueCredential(m),V=await d.invoke.getDidAuthVp({proofFormat:"jwt",challenge:`inbox-federation-${crypto.randomUUID()}`}),de=ue;de.includes("localhost")&&(de=de.replace("https://","http://"));let De=await fetch(de,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${V}`},body:JSON.stringify({recipientDid:u,credential:se,issuerDid:H,issuerDisplayName:D,configuration:{...T,federatedFrom:H}}),signal:AbortSignal.timeout(3e4)});if(!De.ok){let ee=await De.text();throw new Error(`Federation failed: ${ee}`)}return(await De.json()).issuanceId}let S,z=!0;if(typeof y=="boolean"?z=y:(y!==void 0&&(S=y),z=$??!0),!z)return l.credential.sendCredential.mutate({profileId:u,credential:m,metadata:S});let j=await d.invoke.getProfile(u);if(!j)throw new Error("Could not find target account");if(!cn(j))throw new Error("Could not find target DID");let J=await d.invoke.createDagJwe(m,[d.id.did(),j.did]);return l.credential.sendCredential.mutate({profileId:u,credential:J,metadata:S})},"sendCredential"),acceptCredential:s(async(d,u,m)=>(await p(),l.credential.acceptCredential.mutate({uri:u,options:m})),"acceptCredential"),getReceivedCredentials:s(async(d,u)=>(await p(),l.credential.receivedCredentials.query({from:u})),"getReceivedCredentials"),getRevokedCredentials:s(async()=>(await p(),l.credential.getRevokedCredentials.query()),"getRevokedCredentials"),getSentCredentials:s(async(d,u)=>(await p(),l.credential.sentCredentials.query({to:u})),"getSentCredentials"),getIncomingCredentials:s(async(d,u)=>(await p(),l.credential.incomingCredentials.query({from:u})),"getIncomingCredentials"),deleteCredential:s(async(d,u)=>(await p(),l.credential.deleteCredential.mutate({uri:u})),"deleteCredential"),sendPresentation:s(async(d,u,m,y=!0)=>{if(await p(),!y)return l.presentation.sendPresentation.mutate({profileId:u,presentation:m});let $=await d.invoke.getProfile(u);if(!$)throw new Error("Could not find target account");if(!cn($))throw new Error("Could not find target DID");let S=await d.invoke.createDagJwe(m,[d.id.did(),$.did]);return l.presentation.sendPresentation.mutate({profileId:u,presentation:S})},"sendPresentation"),acceptPresentation:s(async(d,u)=>(await p(),l.presentation.acceptPresentation.mutate({uri:u})),"acceptPresentation"),getReceivedPresentations:s(async(d,u)=>(await p(),l.presentation.receivedPresentations.query({from:u})),"getReceivedPresentations"),getSentPresentations:s(async(d,u)=>(await p(),l.presentation.sentPresentations.query({to:u})),"getSentPresentations"),getIncomingPresentations:s(async(d,u)=>(await p(),l.presentation.incomingPresentations.query({from:u})),"getIncomingPresentations"),deletePresentation:s(async(d,u)=>(await p(),l.presentation.deletePresentation.mutate({uri:u})),"deletePresentation"),createBoost:s(async(d,u,m)=>{await p();let{skills:y,...$}=m??{},S={credential:u,...$};return Array.isArray(y)&&y.length>0&&(S.skills=y),l.boost.createBoost.mutate(S)},"createBoost"),createChildBoost:s(async(d,u,m,y)=>{await p();let{skills:$,...S}=y||{},z={parentUri:u,boost:{credential:m,...S}};return Array.isArray($)&&$.length>0&&(z.skills=$),l.boost.createChildBoost.mutate(z)},"createChildBoost"),getBoost:s(async(d,u)=>(await p(),l.boost.getBoost.query({uri:u})),"getBoost"),getBoostSkills:s(async(d,u)=>(await p(),l.boost.getBoostSkills.query({uri:u})),"getBoostSkills"),getBoostFrameworks:s(async(d,u,m={})=>{if(!g)throw new Error("Please make an account first!");let{limit:y,cursor:$,query:S}=m??{};return l.boost.getBoostFrameworks.query({uri:u,limit:y,cursor:$,query:S})},"getBoostFrameworks"),getSkillsAvailableForBoost:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.boost.getSkillsAvailableForBoost.query({uri:u})},"getSkillsAvailableForBoost"),searchSkillsAvailableForBoost:s(async(d,u,m,y={})=>{if(!g)throw new Error("Please make an account first!");return l.boost.searchSkillsAvailableForBoost.query({uri:u,query:m,...y})},"searchSkillsAvailableForBoost"),getBoosts:s(async(d,u)=>(console.warn("The getBoosts method is deprecated! Please use getPaginatedBoosts instead!"),await p(),l.boost.getBoosts.query({query:u})),"getBoosts"),countBoosts:s(async(d,u)=>(await p(),l.boost.countBoosts.query({query:u})),"countBoosts"),getPaginatedBoosts:s(async(d,u)=>(await p(),l.boost.getPaginatedBoosts.query(u)),"getPaginatedBoosts"),getBoostChildren:s(async(d,u,m)=>(await p(),l.boost.getBoostChildren.query({uri:u,...m})),"getBoostChildren"),countBoostChildren:s(async(d,u,m)=>(await p(),l.boost.countBoostChildren.query({uri:u,...m})),"countBoostChildren"),getBoostSiblings:s(async(d,u,m)=>(await p(),l.boost.getBoostSiblings.query({uri:u,...m})),"getBoostSiblings"),countBoostSiblings:s(async(d,u,m)=>(await p(),l.boost.countBoostSiblings.query({uri:u,...m})),"countBoostSiblings"),getFamilialBoosts:s(async(d,u,m)=>(await p(),l.boost.getFamilialBoosts.query({uri:u,...m})),"getFamilialBoosts"),countFamilialBoosts:s(async(d,u,m)=>(await p(),l.boost.countFamilialBoosts.query({uri:u,...m})),"countFamilialBoosts"),getBoostParents:s(async(d,u,m)=>(await p(),l.boost.getBoostParents.query({uri:u,...m})),"getBoostParents"),countBoostParents:s(async(d,u,m)=>(await p(),l.boost.countBoostParents.query({uri:u,...m})),"countBoostParents"),makeBoostParent:s(async(d,u)=>(await p(),l.boost.makeBoostParent.mutate(u)),"makeBoostParent"),removeBoostParent:s(async(d,u)=>(await p(),l.boost.removeBoostParent.mutate(u)),"removeBoostParent"),getBoostRecipients:s(async(d,u,m=25,y=void 0,$=!0)=>(console.warn("The getBoostRecipients method is deprecated! Please use getPaginatedBoostRecipients instead!"),await p(),l.boost.getBoostRecipients.query({uri:u,limit:m,skip:y,includeUnacceptedBoosts:$})),"getBoostRecipients"),getPaginatedBoostRecipients:s(async(d,u,m=25,y=void 0,$=!0,S)=>(await p(),l.boost.getPaginatedBoostRecipients.query({uri:u,limit:m,cursor:y,includeUnacceptedBoosts:$,query:S})),"getPaginatedBoostRecipients"),getPaginatedBoostRecipientsWithChildren:s(async(d,u,m=25,y=void 0,$=!0,S,z,j=1)=>(await p(),l.boost.getPaginatedBoostRecipientsWithChildren.query({uri:u,limit:m,cursor:y,includeUnacceptedBoosts:$,boostQuery:S,profileQuery:z,numberOfGenerations:j})),"getPaginatedBoostRecipientsWithChildren"),countBoostRecipientsWithChildren:s(async(d,u,m=!0,y,$,S=1)=>{if(!g)throw new Error("Please make an account first!");return l.boost.getBoostRecipientsWithChildrenCount.query({uri:u,includeUnacceptedBoosts:m,boostQuery:y,profileQuery:$,numberOfGenerations:S})},"countBoostRecipientsWithChildren"),countBoostRecipients:s(async(d,u,m=!0)=>(await p(),l.boost.getBoostRecipientCount.query({uri:u,includeUnacceptedBoosts:m})),"countBoostRecipients"),getConnectedBoostRecipients:s(async(d,u,{limit:m=25,cursor:y=void 0,includeUnacceptedBoosts:$=!0,query:S}={})=>(await p(),l.boost.getConnectedBoostRecipients.query({uri:u,limit:m,cursor:y,includeUnacceptedBoosts:$,query:S})),"getConnectedBoostRecipients"),countConnectedBoostRecipients:s(async(d,u,m=!0)=>(await p(),l.boost.getConnectedBoostRecipientCount.query({uri:u,includeUnacceptedBoosts:m})),"countConnectedBoostRecipients"),getBoostChildrenProfileManagers:s(async(d,u,m)=>(await p(),l.boost.getChildrenProfileManagers.query({uri:u,...m})),"getBoostChildrenProfileManagers"),updateBoost:s(async(d,u,m,y)=>{await p();let{skills:$,...S}=m??{},z={uri:u,updates:{...y&&{credential:y},...S}};return Array.isArray($)&&(z.skills=$),l.boost.updateBoost.mutate(z)},"updateBoost"),attachFrameworkToBoost:s(async(d,u,m)=>{if(!g)throw new Error("Please make an account first!");return l.boost.attachFrameworkToBoost.mutate({boostUri:u,frameworkId:m})},"attachFrameworkToBoost"),detachFrameworkFromBoost:s(async(d,u,m)=>{if(!g)throw new Error("Please make an account first!");return l.boost.detachFrameworkFromBoost.mutate({boostUri:u,frameworkId:m})},"detachFrameworkFromBoost"),alignBoostSkills:s(async(d,u,m)=>{if(!g)throw new Error("Please make an account first!");return l.boost.alignBoostSkills.mutate({boostUri:u,skills:m})},"alignBoostSkills"),getBoostAdmins:s(async(d,u,m={})=>(await p(),l.boost.getBoostAdmins.query({uri:u,...m})),"getBoostAdmins"),getBoostPermissions:s(async(d,u,m)=>(await p(),m?l.boost.getOtherBoostPermissions.query({uri:u,profileId:m}):l.boost.getBoostPermissions.query({uri:u})),"getBoostPermissions"),updateBoostPermissions:s(async(d,u,m,y)=>{if(await p(),!y)return l.boost.updateBoostPermissions.query({uri:u,updates:m});let $=await l.boost.updateOtherBoostPermissions.query({uri:u,profileId:y,updates:m});return $&&await d.invoke.clearDidWebCache?.(),$},"updateBoostPermissions"),addBoostAdmin:s(async(d,u,m)=>{await p();let y=await l.boost.addBoostAdmin.mutate({uri:u,profileId:m});return y&&await d.invoke.clearDidWebCache?.(),y},"addBoostAdmin"),removeBoostAdmin:s(async(d,u,m)=>{await p();let y=await l.boost.removeBoostAdmin.mutate({uri:u,profileId:m});return y&&await d.invoke.clearDidWebCache?.(),y},"removeBoostAdmin"),revokeBoostRecipient:s(async(d,u,m)=>(await p(),l.boost.revokeBoostRecipient.mutate({boostUri:u,recipientProfileId:m})),"revokeBoostRecipient"),deleteBoost:s(async(d,u)=>(await p(),l.boost.deleteBoost.mutate({uri:u})),"deleteBoost"),sendBoost:s(async(d,u,m,y={encrypt:!0,skipNotification:!1,templateData:{}})=>{await p();let $=await I(d,m),S=await ie.spa($);if(!S.success)throw new Error("Did not get a valid boost from URI");let z=await d.invoke.getProfile(u);if(!z)throw new Error("Target profile not found");if(!cn(z))throw new Error("Target profile has no DID");let j=S.data;if((0,un.isVC2Format)(j)?j.validFrom=new Date().toISOString():j.issuanceDate=new Date().toISOString(),j.issuer=d.id.did(),Array.isArray(j.credentialSubject)?j.credentialSubject=j.credentialSubject.map(F=>({...F,id:z.did})):j.credentialSubject.id=z.did,j?.type?.includes("BoostCredential")&&(j.boostId=m),typeof y=="object"&&y.templateData&&Object.keys(y.templateData).length>0){let F=JSON.stringify(j),H=!Pc(F);try{let D=Cc(F,y.templateData);j=JSON.parse(D),j=Nc(j,y.templateData,H)}catch(D){throw new Error(`Template substitution failed: ${D instanceof Error?D.message:"Unknown error"}. Please check your templateData variables and ensure the rendered output is valid JSON.`)}}typeof y=="object"&&y.overideFn&&(j=y.overideFn(j));let J=await d.invoke.issueCredential(j);if(typeof y=="object"&&!y.encrypt||!y)return l.boost.sendBoost.mutate({profileId:u,uri:m,credential:J,options:{skipNotification:typeof y=="object"&&y.skipNotification}});let ue=await l.utilities.getDid.query(),T=await d.invoke.createDagJwe(J,[d.id.did(),z.did,ue]);return l.boost.sendBoost.mutate({profileId:u,uri:m,credential:T,options:{skipNotification:typeof y=="object"&&y.skipNotification}})},"sendBoost"),registerSigningAuthority:s(async(d,u,m,y)=>(await p(),l.profile.registerSigningAuthority.mutate({endpoint:u,name:m,did:y})),"registerSigningAuthority"),getRegisteredSigningAuthorities:s(async d=>(await p(),l.profile.signingAuthorities.query()),"getRegisteredSigningAuthorities"),getRegisteredSigningAuthority:s(async(d,u,m)=>(await p(),l.profile.signingAuthority.query({endpoint:u,name:m})),"getRegisteredSigningAuthority"),setPrimaryRegisteredSigningAuthority:s(async(d,u,m)=>(await p(),l.profile.setPrimarySigningAuthority.mutate({endpoint:u,name:m})),"setPrimaryRegisteredSigningAuthority"),getPrimaryRegisteredSigningAuthority:s(async d=>(await p(),l.profile.primarySigningAuthority.query()),"getPrimaryRegisteredSigningAuthority"),generateClaimLink:s(async(d,u,m,y,$)=>(await p(),l.boost.generateClaimLink.mutate({boostUri:u,claimLinkSA:m,options:y,challenge:$})),"generateClaimLink"),claimBoostWithLink:s(async(d,u,m)=>(await p(),l.boost.claimBoostWithLink.mutate({boostUri:u,challenge:m})),"claimBoostWithLink"),send:s(async(d,u)=>{if(await p(),u.type==="boost"){let m=u.recipient,y=m.startsWith("did:"),$=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(m),S=/^\+?[\d\s-]{10,}$/.test(m.replace(/[\s-]/g,"")),z=new URL(r),j=`${z.hostname}${z.port?`%3A${z.port}`:""}`,J=m.startsWith("did:web:")?m.split(":")[2]:void 0;if(m.startsWith("did:web:")&&J!==j&&u.templateUri){let D=(await d.invoke.getBoost(u.templateUri)).boost,se=JSON.stringify(D),V=!Pc(se);if(u.templateData&&Object.keys(u.templateData).length>0){let Ie=Cc(se,u.templateData);D=JSON.parse(Ie),D=Nc(D,u.templateData,V)}(0,un.isVC2Format)(D)?D.validFrom=new Date().toISOString():D.issuanceDate=new Date().toISOString(),D.issuer=d.id.did(),Array.isArray(D.credentialSubject)?D.credentialSubject=D.credentialSubject.map(Ie=>({...Ie,id:m})):D.credentialSubject={...D.credentialSubject,id:m},D.type?.includes("BoostCredential")&&(D.boostId=u.templateUri);let de=await d.invoke.issueCredential(D);return{type:"boost",credentialUri:await d.invoke.sendCredential(m,de,{boostUri:u.templateUri,templateData:u.templateData,integrationId:u.integrationId}),uri:u.templateUri,activityId:""}}if("issueCredential"in d.invoke&&(y||!$&&!S)&&u.templateUri){let H=await I(d,u.templateUri),D=await ie.spa(H);if(D.success){let se;if(y)se=m;else{let ee=await d.invoke.getProfile(m);if(!cn(ee))return l.boost.send.mutate(u);se=ee.did}let V=D.data,de=JSON.stringify(V),De=!Pc(de);if(u.templateData&&Object.keys(u.templateData).length>0)try{let ee=Cc(de,u.templateData);V=JSON.parse(ee),V=Nc(V,u.templateData,De)}catch(ee){throw new Error(`Failed to apply template data: ${ee instanceof Error?ee.message:"Unknown error"}`)}(0,un.isVC2Format)(V)?V.validFrom=new Date().toISOString():V.issuanceDate=new Date().toISOString(),V.issuer=d.id.did(),Array.isArray(V.credentialSubject)?V.credentialSubject=V.credentialSubject.map(ee=>({...ee,id:se})):V.credentialSubject={...V.credentialSubject,id:se},V?.type?.includes("BoostCredential")&&(V.boostId=u.templateUri);let Ie=await d.invoke.issueCredential(V);return y&&m.startsWith("did:web:")?{type:"boost",credentialUri:await d.invoke.sendCredential(m,Ie,{boostUri:u.templateUri,templateData:u.templateData,integrationId:u.integrationId}),uri:u.templateUri,activityId:""}:l.boost.send.mutate({...u,signedCredential:Ie})}}}return l.boost.send.mutate(u)},"send"),createContract:s(async(d,u)=>(await p(),l.contracts.createConsentFlowContract.mutate(u)),"createContract"),addAutoBoostsToContract:s(async(d,u,m)=>(await p(),l.contracts.addAutoBoostsToContract.mutate({contractUri:u,autoboosts:m})),"addAutoBoostsToContract"),removeAutoBoostsFromContract:s(async(d,u,m)=>(await p(),l.contracts.removeAutoBoostsFromContract.mutate({contractUri:u,boostUris:m})),"removeAutoBoostsFromContract"),getContract:s(async(d,u)=>l.contracts.getConsentFlowContract.query({uri:u}),"getContract"),getContracts:s(async(d,u)=>(await p(),l.contracts.getConsentFlowContracts.query(u)),"getContracts"),deleteContract:s(async(d,u)=>(await p(),l.contracts.deleteConsentFlowContract.mutate({uri:u})),"deleteContract"),getConsentFlowData:s(async(d,u,m={})=>(await p(),l.contracts.getConsentedDataForContract.query({uri:u,...m})),"getConsentFlowData"),getConsentFlowDataForDid:s(async(d,u,m={})=>(await p(),l.contracts.getConsentedDataForDid.query({did:u,...m})),"getConsentFlowDataForDid"),getAllConsentFlowData:s(async(d,u={},m={})=>(await p(),l.contracts.getConsentedData.query({query:u,...m})),"getAllConsentFlowData"),writeCredentialToContract:s(async(d,u,m,y,$)=>(await p(),l.contracts.writeCredentialToContract.mutate({did:u,contractUri:m,credential:y,boostUri:$})),"writeCredentialToContract"),consentToContract:s(async(d,u,{terms:m,expiresAt:y,oneTime:$},S)=>(await p(),l.contracts.consentToContract.mutate({contractUri:u,terms:m,expiresAt:y,oneTime:$,recipientToken:S})),"consentToContract"),getConsentedContracts:s(async(d,u)=>(await p(),l.contracts.getConsentedContracts.query(u)),"getConsentedContracts"),updateContractTerms:s(async(d,u,{terms:m,expiresAt:y,oneTime:$})=>(await p(),l.contracts.updateConsentedContractTerms.mutate({uri:u,terms:m,expiresAt:y,oneTime:$})),"updateContractTerms"),withdrawConsent:s(async(d,u)=>(await p(),l.contracts.withdrawConsent.mutate({uri:u})),"withdrawConsent"),getConsentFlowTransactions:s(async(d,u,m)=>(await p(),l.contracts.getTermsTransactionHistory.query({uri:u,...m})),"getConsentFlowTransactions"),getCredentialsForContract:s(async(d,u,m={})=>(await p(),l.contracts.getCredentialsForContract.query({termsUri:u,...m})),"getCredentialsForContract"),getConsentFlowCredentials:s(async(d,u={})=>(await p(),l.contracts.getAllCredentialsForTerms.query(u)),"getConsentFlowCredentials"),verifyConsent:s(async(d,u,m)=>(await p(),l.contracts.verifyConsent.query({uri:u,profileId:m})),"verifyConsent"),syncCredentialsToContract:s(async(d,u,m)=>(await p(),l.contracts.syncCredentialsToContract.mutate({termsUri:u,categories:m})),"syncCredentialsToContract"),sendAiInsightsContractRequest:s(async(d,u,m,y)=>(await p(),l.contracts.sendAiInsightsContractRequest.mutate({contractUri:u,targetProfileId:m,shareLink:y})),"sendAiInsightsContractRequest"),sendAiInsightShareRequest:s(async(d,u,m,y)=>(await p(),l.contracts.sendAiInsightShareRequest.mutate({targetProfileId:u,shareLink:m,childProfileId:y})),"sendAiInsightShareRequest"),getContractSentRequests:s(async(d,u)=>(await p(),l.contracts.getContractSentRequests.query({contractUri:u})),"getContractSentRequests"),getRequestStatusForProfile:s(async(d,u,m,y)=>(await p(),l.contracts.getRequestStatusForProfile.query({targetProfileId:u,contractId:m??null,contractUri:y??null})),"getRequestStatusForProfile"),getAllContractRequestsForProfile:s(async(d,u)=>(await p(),l.contracts.getAllContractRequestsForProfile.query({targetProfileId:u})),"getAllContractRequestsForProfile"),getSharedInsightsRequestsForProfile:s(async(d,u)=>(await p(),l.contracts.getSharedInsightsRequestsForProfile.query({targetProfileId:u})),"getSharedInsightsRequestsForProfile"),forwardContractRequestToProfile:s(async(d,u,m,y)=>(await p(),l.contracts.forwardContractRequestToProfile.mutate({parentProfileId:u,targetProfileId:m,contractUri:y})),"forwardContractRequestToProfile"),markContractRequestAsSeen:s(async(d,u,m)=>(await p(),l.contracts.markContractRequestAsSeen.mutate({contractUri:u,targetProfileId:m})),"markContractRequestAsSeen"),cancelContractRequest:s(async(d,u,m)=>(await p(),l.contracts.cancelContractRequest.mutate({contractUri:u,targetProfileId:m})),"cancelContractRequest"),addDidMetadata:s(async(d,u)=>{await p();let m=await l.didMetadata.addDidMetadata.mutate(u);return m&&await d.invoke.clearDidWebCache?.(),m},"addDidMetadata"),getDidMetadata:s(async(d,u)=>(await p(),l.didMetadata.getDidMetadata.query({id:u})),"getDidMetadata"),getMyDidMetadata:s(async()=>(await p(),l.didMetadata.getMyDidMetadata.query()),"getMyDidMetadata"),updateDidMetadata:s(async(d,u,m)=>{await p();let y=await l.didMetadata.updateDidMetadata.mutate({id:u,updates:m});return y&&await d.invoke.clearDidWebCache?.(),y},"updateDidMetadata"),deleteDidMetadata:s(async(d,u)=>{await p();let m=await l.didMetadata.deleteDidMetadata.mutate({id:u});return m&&await d.invoke.clearDidWebCache?.(),m},"deleteDidMetadata"),createClaimHook:s(async(d,u)=>(await p(),l.claimHook.createClaimHook.mutate({hook:u})),"createClaimHook"),getClaimHooksForBoost:s(async(d,u)=>(await p(),l.claimHook.getClaimHooksForBoost.query(u)),"getClaimHooksForBoost"),deleteClaimHook:s(async(d,u)=>(await p(),l.claimHook.deleteClaimHook.mutate({id:u})),"deleteClaimHook"),addAuthGrant:s(async(d,u)=>(await p(),l.authGrants.addAuthGrant.mutate(u)),"addAuthGrant"),revokeAuthGrant:s(async(d,u)=>(await p(),l.authGrants.revokeAuthGrant.mutate({id:u})),"revokeAuthGrant"),deleteAuthGrant:s(async(d,u)=>(await p(),l.authGrants.deleteAuthGrant.mutate({id:u})),"deleteAuthGrant"),updateAuthGrant:s(async(d,u,m)=>(await p(),l.authGrants.updateAuthGrant.mutate({id:u,updates:m})),"updateAuthGrant"),getAuthGrant:s(async(d,u)=>(await p(),l.authGrants.getAuthGrant.query({id:u})),"getAuthGrant"),getAuthGrants:s(async(d,u)=>(await p(),l.authGrants.getAuthGrants.query(u)),"getAuthGrants"),getAPITokenForAuthGrant:s(async(d,u)=>{await p();let m=await l.authGrants.getAuthGrant.query({id:u});if(!m)throw new Error("Auth grant not found");if(m.status!=="active")throw new Error("Auth grant is not active");if(!m.challenge)throw new Error("Auth grant has no challenge");if(!m.scope)throw new Error("Auth grant has no scope");if(m.expiresAt&&new Date(m.expiresAt)<new Date)throw new Error("Auth grant is expired");let y=await d.invoke.getDidAuthVp({challenge:m.challenge,proofFormat:"jwt"});if(!y)throw new Error("Failed to get API Token for auth grant");return y},"getAPITokenForAuthGrant"),sendCredentialViaInbox:s(async(d,u)=>(await p(),l.inbox.issue.mutate(u)),"sendCredentialViaInbox"),getMySentInboxCredentials:s(async(d,u)=>(await p(),l.inbox.getMyIssuedCredentials.query(u)),"getMySentInboxCredentials"),getInboxCredential:s(async(d,u)=>(await p(),l.inbox.getInboxCredential.query({credentialId:u})),"getInboxCredential"),finalizeInboxCredentials:s(async d=>(await p(),l.inbox.finalize.mutate()),"finalizeInboxCredentials"),sendGuardianApprovalEmail:s(async(d,u)=>(await p(),l.inbox.sendGuardianApprovalEmail.mutate(u)),"sendGuardianApprovalEmail"),approveGuardianRequest:s(async(d,u)=>l.inbox.approveGuardianRequest.mutate({token:u}),"approveGuardianRequest"),approveGuardianRequestByPath:s(async(d,u)=>l.inbox.approveGuardianRequestByPath.query({token:u}),"approveGuardianRequestByPath"),getGuardianPendingCredential:s(async(d,u)=>l.inbox.getGuardianPendingCredential.query({token:u}),"getGuardianPendingCredential"),sendGuardianChallenge:s(async(d,u)=>l.inbox.sendGuardianChallenge.mutate({token:u}),"sendGuardianChallenge"),approveGuardianCredential:s(async(d,u,m)=>l.inbox.approveGuardianCredential.mutate({token:u,otpCode:m}),"approveGuardianCredential"),rejectGuardianCredential:s(async(d,u,m)=>l.inbox.rejectGuardianCredential.mutate({token:u,otpCode:m}),"rejectGuardianCredential"),approveGuardianCredentialInApp:s(async(d,u)=>(await p(),l.inbox.approveGuardianCredentialInApp.mutate({inboxCredentialId:u})),"approveGuardianCredentialInApp"),rejectGuardianCredentialInApp:s(async(d,u)=>(await p(),l.inbox.rejectGuardianCredentialInApp.mutate({inboxCredentialId:u})),"rejectGuardianCredentialInApp"),addContactMethod:s(async(d,u)=>(await p(),l.contactMethods.addContactMethod.mutate(u)),"addContactMethod"),getMyContactMethods:s(async d=>(await p(),l.contactMethods.getMyContactMethods.query()),"getMyContactMethods"),setPrimaryContactMethod:s(async(d,u)=>(await p(),l.contactMethods.setPrimaryContactMethod.mutate({contactMethodId:u})),"setPrimaryContactMethod"),verifyContactMethod:s(async(d,u)=>(await p(),l.contactMethods.verifyContactMethod.mutate({token:u})),"verifyContactMethod"),verifyContactMethodWithCredential:s(async(d,u)=>(await p(),l.contactMethods.verifyWithCredential.mutate({proofOfLoginJwt:u})),"verifyContactMethodWithCredential"),removeContactMethod:s(async(d,u)=>(await p(),l.contactMethods.removeContactMethod.mutate({id:u})),"removeContactMethod"),syncFrameworkSkills:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skills.syncFrameworkSkills.mutate(u)},"syncFrameworkSkills"),listSkillTags:s(async(d,u,m)=>{if(!g)throw new Error("Please make an account first!");return l.skills.listSkillTags.query({frameworkId:u,id:m})},"listSkillTags"),addSkillTag:s(async(d,u,m,y)=>{if(!g)throw new Error("Please make an account first!");return l.skills.addSkillTag.mutate({frameworkId:u,id:m,tag:y})},"addSkillTag"),removeSkillTag:s(async(d,u,m,y)=>{if(!g)throw new Error("Please make an account first!");return l.skills.removeSkillTag.mutate({frameworkId:u,id:m,slug:y})},"removeSkillTag"),createManagedSkillFramework:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.createManaged.mutate(u)},"createManagedSkillFramework"),createManagedSkillFrameworks:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.createManagedBatch.mutate(u)},"createManagedSkillFrameworks"),createSkillFramework:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.create.mutate(u)},"createSkillFramework"),listMySkillFrameworks:s(async d=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.listMine.query()},"listMySkillFrameworks"),getAllAvailableFrameworks:s(async(d,u={})=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.getAllAvailableFrameworks.query(u)},"getAllAvailableFrameworks"),getSkillFrameworkById:s(async(d,u,m={})=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.getById.query({id:u,...m})},"getSkillFrameworkById"),getBoostsThatUseFramework:s(async(d,u,m={})=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.getBoostsThatUseFramework.query({id:u,...m})},"getBoostsThatUseFramework"),countBoostsThatUseFramework:s(async(d,u,m={})=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.countBoostsThatUseFramework.query({id:u,...m})},"countBoostsThatUseFramework"),getFrameworkSkillTree:s(async(d,u,m={})=>{if(!g)throw new Error("Please make an account first!");return l.skills.getFrameworkSkillTree.query({id:u,...m})},"getFrameworkSkillTree"),getSkillChildren:s(async(d,u,m,y={})=>{if(!g)throw new Error("Please make an account first!");return l.skills.getSkillChildrenTree.query({frameworkId:u,id:m,...y})},"getSkillChildren"),searchFrameworkSkills:s(async(d,u,m,y={})=>{if(!g)throw new Error("Please make an account first!");return l.skills.searchFrameworkSkills.query({id:u,query:m,...y})},"searchFrameworkSkills"),semanticSearchSkills:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skills.semanticSearchSkills.query(u)},"semanticSearchSkills"),updateSkillFramework:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.update.mutate(u)},"updateSkillFramework"),deleteSkillFramework:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.delete.mutate({id:u})},"deleteSkillFramework"),replaceSkillFrameworkSkills:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.replaceSkills.mutate(u)},"replaceSkillFrameworkSkills"),countSkills:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skills.countSkills.query(u)},"countSkills"),getFullSkillTree:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skills.getFullSkillTree.query(u)},"getFullSkillTree"),getSkillPath:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skills.getSkillPath.query(u)},"getSkillPath"),getSkillFrameworkAdmins:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.listFrameworkAdmins.query({frameworkId:u})},"getSkillFrameworkAdmins"),addSkillFrameworkAdmin:s(async(d,u,m)=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.addFrameworkAdmin.mutate({frameworkId:u,profileId:m})},"addSkillFrameworkAdmin"),removeSkillFrameworkAdmin:s(async(d,u,m)=>{if(!g)throw new Error("Please make an account first!");return l.skillFrameworks.removeFrameworkAdmin.mutate({frameworkId:u,profileId:m})},"removeSkillFrameworkAdmin"),getSkill:s(async(d,u,m)=>{if(!g)throw new Error("Please make an account first!");return l.skills.getSkill.query({frameworkId:u,id:m})},"getSkill"),createSkill:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skills.create.mutate(u)},"createSkill"),createSkills:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skills.createMany.mutate(u)},"createSkills"),updateSkill:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skills.update.mutate(u)},"updateSkill"),deleteSkill:s(async(d,u)=>{if(!g)throw new Error("Please make an account first!");return l.skills.delete.mutate(u)},"deleteSkill"),addIntegration:s(async(d,u)=>(await p(),l.integrations.addIntegration.mutate(u)),"addIntegration"),getIntegration:s(async(d,u)=>(await p(),l.integrations.getIntegration.query({id:u})),"getIntegration"),getIntegrations:s(async(d,u={})=>(await p(),l.integrations.getIntegrations.query(u)),"getIntegrations"),countIntegrations:s(async(d,u={})=>(await p(),l.integrations.countIntegrations.query(u)),"countIntegrations"),updateIntegration:s(async(d,u,m)=>(await p(),l.integrations.updateIntegration.mutate({id:u,updates:m})),"updateIntegration"),deleteIntegration:s(async(d,u)=>(await p(),l.integrations.deleteIntegration.mutate({id:u})),"deleteIntegration"),createAppStoreListing:s(async(d,u,m)=>(await p(),l.appStore.createListing.mutate({integrationId:u,listing:m})),"createAppStoreListing"),associateListingWithSigningAuthority:s(async(d,u,m,y,$,S)=>(await p(),l.appStore.associateListingWithSigningAuthority.mutate({listingId:u,endpoint:m,name:y,did:$,isPrimary:S})),"associateListingWithSigningAuthority"),getListingSigningAuthority:s(async(d,u)=>(await p(),l.appStore.getListingSigningAuthority.query({listingId:u})),"getListingSigningAuthority"),getIntegrationForListing:s(async(d,u)=>(await p(),l.appStore.getIntegrationForListing.query({listingId:u})),"getIntegrationForListing"),getAppStoreListing:s(async(d,u)=>(await p(),l.appStore.getListing.query({listingId:u})),"getAppStoreListing"),updateAppStoreListing:s(async(d,u,m)=>(await p(),l.appStore.updateListing.mutate({listingId:u,updates:m})),"updateAppStoreListing"),deleteAppStoreListing:s(async(d,u)=>(await p(),l.appStore.deleteListing.mutate({listingId:u})),"deleteAppStoreListing"),submitAppStoreListingForReview:s(async(d,u)=>(await p(),l.appStore.submitForReview.mutate({listingId:u})),"submitAppStoreListingForReview"),unsubmitAppStoreListing:s(async(d,u)=>(await p(),l.appStore.unsubmitForReview.mutate({listingId:u})),"unsubmitAppStoreListing"),getListingsForIntegration:s(async(d,u,m={})=>(await p(),l.appStore.getListingsForIntegration.query({integrationId:u,...m})),"getListingsForIntegration"),countListingsForIntegration:s(async(d,u)=>(await p(),l.appStore.countListingsForIntegration.query({integrationId:u})),"countListingsForIntegration"),browseAppStore:s(async(d,u)=>l.appStore.browseListedApps.query(u),"browseAppStore"),getPublicAppStoreListing:s(async(d,u)=>l.appStore.getPublicListing.query({listingId:u}),"getPublicAppStoreListing"),getPublicAppStoreListingBySlug:s(async(d,u)=>l.appStore.getPublicListingBySlug.query({slug:u}),"getPublicAppStoreListingBySlug"),getAppStoreListingInstallCount:s(async(d,u)=>l.appStore.getListingInstallCount.query({listingId:u}),"getAppStoreListingInstallCount"),installApp:s(async(d,u)=>(await p(),l.appStore.installApp.mutate({listingId:u})),"installApp"),uninstallApp:s(async(d,u)=>(await p(),l.appStore.uninstallApp.mutate({listingId:u})),"uninstallApp"),getInstalledApps:s(async(d,u={})=>(await p(),l.appStore.getInstalledApps.query(u)),"getInstalledApps"),countInstalledApps:s(async d=>(await p(),l.appStore.countInstalledApps.query()),"countInstalledApps"),isAppInstalled:s(async(d,u)=>(await p(),l.appStore.isAppInstalled.query({listingId:u})),"isAppInstalled"),getMyCredentialsFromApp:s(async(d,u,m={})=>(await p(),l.appStore.getMyCredentialsFromApp.query({listingId:u,...m})),"getMyCredentialsFromApp"),isAppStoreAdmin:s(async d=>(await p(),l.appStore.isAdmin.query()),"isAppStoreAdmin"),adminUpdateListingStatus:s(async(d,u,m)=>(await p(),l.appStore.adminUpdateListingStatus.mutate({listingId:u,status:m})),"adminUpdateListingStatus"),adminUpdatePromotionLevel:s(async(d,u,m)=>(await p(),l.appStore.adminUpdatePromotionLevel.mutate({listingId:u,promotionLevel:m})),"adminUpdatePromotionLevel"),adminGetAllListings:s(async(d,u)=>(await p(),l.appStore.adminGetAllListings.query(u)),"adminGetAllListings"),addBoostToApp:s(async(d,u,m,y)=>(await p(),l.appStore.addBoostToListing.mutate({listingId:u,boostUri:m,templateAlias:y})),"addBoostToApp"),associateBoostWithListing:s(async(d,u,m,y)=>(await p(),l.appStore.addBoostToListing.mutate({listingId:u,boostUri:m,templateAlias:y})),"associateBoostWithListing"),removeBoostFromApp:s(async(d,u,m)=>(await p(),l.appStore.removeBoostFromListing.mutate({listingId:u,templateAlias:m})),"removeBoostFromApp"),getAppBoosts:s(async(d,u)=>(await p(),l.appStore.getBoostsForListing.query({listingId:u})),"getAppBoosts"),sendAppEvent:s(async(d,u,m)=>(await p(),l.appStore.appEvent.mutate({listingId:u,event:m})),"sendAppEvent"),resolveFromLCN:s(async(d,u)=>{let m=await l.storage.resolve.query({uri:u});return ie.or(ve).or(Mt).or(bc).or(_c).or(on).parseAsync(m)},"resolveFromLCN"),getLCNClient:s(()=>l,"getLCNClient"),getMyActivities:s(async(d,u={})=>(await p(),l.activity.getMyActivities.query(u)),"getMyActivities"),getActivityStats:s(async(d,u={})=>(await p(),l.activity.getActivityStats.query(u)),"getActivityStats"),getActivity:s(async(d,u)=>(await p(),l.activity.getActivity.query(u)),"getActivity"),getActivityChain:s(async(d,u)=>(await p(),l.activity.getActivityChain.query(u)),"getActivityChain"),isServiceTrusted:s(async(d,u)=>(await l.federation.getTrustedServices.query({})).some(y=>y.did===u),"isServiceTrusted"),getTrustedServices:s(async()=>l.federation.getTrustedServices.query({}),"getTrustedServices")}}}s(Zv,"getLearnCardNetworkPlugin");var Rv=s(async(e,r)=>{let o=[{id:"LearnCard Network",url:"https://network.learncard.com",did:"did:web:network.learncard.com"}],i;if(r){let c=await fetch(r);c.status===200?i=JSON.parse(await c.text()):i=o}else i=o;let t=s(c=>{if(c)return typeof c=="string"?c:"id"in c&&typeof c.id=="string"?c.id:void 0},"getIssuerDID"),a=s(c=>{let f=t(c);if(f)return i.find(l=>l.did===f)},"getTrustedBoostVerifier");return{name:"VerifyBoost",displayName:"Verify Boost Extension",description:"Adds a check for validating Boost Credentials.",methods:{verifyCredential:s(async(c,f,l)=>{let g=await e.invoke.verifyCredential(f,l),h=f?.boostCredential;try{if(h){let p=await e.invoke.verifyCredential(h);if(!h?.boostId&&!f?.boostId&&g.warnings.push("Boost Authenticity could not be verified: Boost ID metadata is missing."),p.errors?.length>0)g.errors=[...p.errors||[],...g.errors||[],"Boost Credential could not be verified."];else if(h?.boostId!==f?.boostId)g.errors.push("Boost Authenticity could not be verified: Boost ID metadata is mismatched.");else{let I=a(f?.issuer);I?g.checks.push(`Boost is Authentic. Verified by ${I.id}.`):g.warnings.push(`Boost Authenticity could not be verified. Issuer is outside of trust network: ${t(f?.issuer)}`)}}}catch{g.errors.push("Boost authenticity could not be verified.")}return g},"verifyCredential")}}},"getVerifyBoostPlugin");
|
|
27
27
|
/*! Bundled license information:
|
|
28
28
|
|
|
29
29
|
mustache/mustache.mjs:
|