ripplo 0.19.1 → 0.19.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +116 -114
  3. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,82 +1,82 @@
1
1
  #!/usr/bin/env node
2
- import {createRequire}from'node:module';import {a,b,c}from'./chunk-HA3VCAP6.js';import {execFile,exec}from'child_process';import Kn,{readFileSync,existsSync,writeFile as writeFile$1,readdirSync,statSync}from'fs';import Bm,{resolve,normalize,join,relative,extname,dirname,basename}from'path';import Rk,{homedir}from'os';import {Agent,RetryAgent,setGlobalDispatcher}from'undici';import {strictEqual,notStrictEqual}from'assert';import {format,promisify,inspect,styleText}from'util';import {fileURLToPath}from'url';import {createRequire as createRequire$1}from'module';import {gunzipSync}from'zlib';import {readFile,mkdir,writeFile,rename,rm as rm$1}from'fs/promises';import {setTimeout as setTimeout$1}from'timers/promises';import {stdin,stdout}from'process';import TA from'readline';import'tty';import {randomUUID}from'crypto';globalThis.require ?? createRequire(import.meta.url);
3
- var k_=a((sM,O_)=>{O_.exports=function(t){if(t===void 0&&(t=2),t>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+t+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var n=Error.prepareStackTrace;Error.prepareStackTrace=function(r,o){return o};var i=new Error().stack;if(Error.prepareStackTrace=n,i!==null&&typeof i=="object")return i[t]?i[t].getFileName():void 0};});var ru=a((iB,Hm)=>{var tu=process||{},HD=tu.argv||[],eu=tu.env||{},cA=!(eu.NO_COLOR||HD.includes("--no-color"))&&(!!eu.FORCE_COLOR||HD.includes("--color")||tu.platform==="win32"||(tu.stdout||{}).isTTY&&eu.TERM!=="dumb"||!!eu.CI),lA=(e,t,n=e)=>i=>{let r=""+i,o=r.indexOf(t,e.length);return ~o?e+dA(r,t,n,o)+t:e+r+t},dA=(e,t,n,i)=>{let r="",o=0;do r+=e.substring(o,i)+n,o=i+t.length,i=e.indexOf(t,o);while(~i);return r+e.substring(o)},YD=(e=cA)=>{let t=e?lA:()=>String;return {isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Hm.exports=YD();Hm.exports.createColors=YD;});var HS=a((gB,qS)=>{var ah={to(e,t){return t?`\x1B[${t+1};${e+1}H`:`\x1B[${e+1}G`},move(e,t){let n="";return e<0?n+=`\x1B[${-e}D`:e>0&&(n+=`\x1B[${e}C`),t<0?n+=`\x1B[${-t}A`:t>0&&(n+=`\x1B[${t}B`),n},up:(e=1)=>`\x1B[${e}A`,down:(e=1)=>`\x1B[${e}B`,forward:(e=1)=>`\x1B[${e}C`,backward:(e=1)=>`\x1B[${e}D`,nextLine:(e=1)=>"\x1B[E".repeat(e),prevLine:(e=1)=>"\x1B[F".repeat(e),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},OA={up:(e=1)=>"\x1B[S".repeat(e),down:(e=1)=>"\x1B[T".repeat(e)},kA={screen:"\x1B[2J",up:(e=1)=>"\x1B[1J".repeat(e),down:(e=1)=>"\x1B[J".repeat(e),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(e){let t="";for(let n=0;n<e;n++)t+=this.line+(n<e-1?ah.up():"");return e&&(t+=ah.left),t}};qS.exports={cursor:ah,scroll:OA,erase:kA,beep:"\x07"};});var ci={DOCUMENT:"Document",FRAGMENT_DEFINITION:"FragmentDefinition"};var wu=class extends Error{constructor(t,n,i,r,o,a,s){super(t),this.name="GraphQLError",this.message=t,o&&(this.path=o),n&&(this.nodes=Array.isArray(n)?n:[n]),i&&(this.source=i),r&&(this.positions=r),a&&(this.originalError=a);var c=s;if(!c&&a){var l=a.extensions;l&&typeof l=="object"&&(c=l);}this.extensions=c||{};}toJSON(){return {...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return "GraphQLError"}},Z,O;function Je(e){return new wu(`Syntax Error: Unexpected token at ${O} in ${e}`)}function mh(e){if(e.lastIndex=O,e.test(Z))return Z.slice(O,O=e.lastIndex)}var vo=/ +(?=[^\s])/y;function ew(e){for(var t=e.split(`
4
- `),n="",i=0,r=0,o=t.length-1,a=0;a<t.length;a++)vo.lastIndex=0,vo.test(t[a])&&(a&&(!i||vo.lastIndex<i)&&(i=vo.lastIndex),r=r||a,o=a);for(var s=r;s<=o;s++)s!==r&&(n+=`
5
- `),n+=t[s].slice(i).replace(/\\"""/g,'"""');return n}function ae(){for(var e=0|Z.charCodeAt(O++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|Z.charCodeAt(O++))if(e===35)for(;(e=0|Z.charCodeAt(O++))&&e!==10&&e!==13;);O--;}function $u(){for(var e=O,t=0|Z.charCodeAt(O++);t>=48&&t<=57||t>=65&&t<=90||t===95||t>=97&&t<=122;t=0|Z.charCodeAt(O++));if(e===O-1)throw Je("Name");var n=Z.slice(e,--O);return ae(),n}function nt(){return {kind:"Name",value:$u()}}var tw=/(?:"""|(?:[\s\S]*?[^\\])""")/y,rw=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function dn(e){var t;switch(Z.charCodeAt(O)){case 91:O++,ae();for(var n=[];Z.charCodeAt(O)!==93;)n.push(dn(e));return O++,ae(),{kind:"ListValue",values:n};case 123:O++,ae();for(var i=[];Z.charCodeAt(O)!==125;){var r=nt();if(Z.charCodeAt(O++)!==58)throw Je("ObjectField");ae(),i.push({kind:"ObjectField",name:r,value:dn(e)});}return O++,ae(),{kind:"ObjectValue",fields:i};case 36:if(e)throw Je("Variable");return O++,{kind:"Variable",name:nt()};case 34:if(Z.charCodeAt(O+1)===34&&Z.charCodeAt(O+2)===34){if(O+=3,(t=mh(tw))==null)throw Je("StringValue");return ae(),{kind:"StringValue",value:ew(t.slice(0,-3)),block:true}}else {var o=O,a;O++;var s=false;for(a=0|Z.charCodeAt(O++);a===92&&(O++,s=true)||a!==10&&a!==13&&a!==34&&a;a=0|Z.charCodeAt(O++));if(a!==34)throw Je("StringValue");return t=Z.slice(o,O),ae(),{kind:"StringValue",value:s?JSON.parse(t):t.slice(1,-1),block:false}}case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var c=O++,l;(l=0|Z.charCodeAt(O++))>=48&&l<=57;);var d=Z.slice(c,--O);if((l=Z.charCodeAt(O))===46||l===69||l===101){if((t=mh(rw))==null)throw Je("FloatValue");return ae(),{kind:"FloatValue",value:d+t}}else return ae(),{kind:"IntValue",value:d};case 110:if(Z.charCodeAt(O+1)===117&&Z.charCodeAt(O+2)===108&&Z.charCodeAt(O+3)===108)return O+=4,ae(),{kind:"NullValue"};break;case 116:if(Z.charCodeAt(O+1)===114&&Z.charCodeAt(O+2)===117&&Z.charCodeAt(O+3)===101)return O+=4,ae(),{kind:"BooleanValue",value:true};break;case 102:if(Z.charCodeAt(O+1)===97&&Z.charCodeAt(O+2)===108&&Z.charCodeAt(O+3)===115&&Z.charCodeAt(O+4)===101)return O+=5,ae(),{kind:"BooleanValue",value:false};break}return {kind:"EnumValue",value:$u()}}function gh(e){if(Z.charCodeAt(O)===40){var t=[];O++,ae();do{var n=nt();if(Z.charCodeAt(O++)!==58)throw Je("Argument");ae(),t.push({kind:"Argument",name:n,value:dn(e)});}while(Z.charCodeAt(O)!==41);return O++,ae(),t}}function ar(e){if(Z.charCodeAt(O)===64){var t=[];do O++,t.push({kind:"Directive",name:nt(),arguments:gh(e)});while(Z.charCodeAt(O)===64);return t}}function nw(){for(var e=0;Z.charCodeAt(O)===91;)e++,O++,ae();var t={kind:"NamedType",name:nt()};do if(Z.charCodeAt(O)===33&&(O++,ae(),t={kind:"NonNullType",type:t}),e){if(Z.charCodeAt(O++)!==93)throw Je("NamedType");ae(),t={kind:"ListType",type:t};}while(e--);return t}function yo(){if(Z.charCodeAt(O++)!==123)throw Je("SelectionSet");return ae(),bo()}function bo(){var e=[];do if(Z.charCodeAt(O)===46){if(Z.charCodeAt(++O)!==46||Z.charCodeAt(++O)!==46)throw Je("SelectionSet");switch(O++,ae(),Z.charCodeAt(O)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:ar(false),selectionSet:yo()});break;case 111:Z.charCodeAt(O+1)===110?(O+=2,ae(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:nt()},directives:ar(false),selectionSet:yo()})):e.push({kind:"FragmentSpread",name:nt(),directives:ar(false)});break;case 123:O++,ae(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:bo()});break;default:e.push({kind:"FragmentSpread",name:nt(),directives:ar(false)});}}else {var t=nt(),n=void 0;Z.charCodeAt(O)===58&&(O++,ae(),n=t,t=nt());var i=gh(false),r=ar(false),o=void 0;Z.charCodeAt(O)===123&&(O++,ae(),o=bo()),e.push({kind:"Field",alias:n,name:t,arguments:i,directives:r,selectionSet:o});}while(Z.charCodeAt(O)!==125);return O++,ae(),{kind:"SelectionSet",selections:e}}function iw(){if(ae(),Z.charCodeAt(O)===40){var e=[];O++,ae();do{var t=void 0;if(Z.charCodeAt(O)===34&&(t=dn(true)),Z.charCodeAt(O++)!==36)throw Je("Variable");var n=nt();if(Z.charCodeAt(O++)!==58)throw Je("VariableDefinition");ae();var i=nw(),r=void 0;Z.charCodeAt(O)===61&&(O++,ae(),r=dn(true)),ae();var o={kind:"VariableDefinition",variable:{kind:"Variable",name:n},type:i,defaultValue:r,directives:ar(true)};t&&(o.description=t),e.push(o);}while(Z.charCodeAt(O)!==41);return O++,ae(),e}}function ow(e){var t=nt();if(Z.charCodeAt(O++)!==111||Z.charCodeAt(O++)!==110)throw Je("FragmentDefinition");ae();var n={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:nt()},directives:ar(false),selectionSet:yo()};return e&&(n.description=e),n}function hh(){var e=[];do{var t=void 0;if(Z.charCodeAt(O)===34&&(t=dn(true)),Z.charCodeAt(O)===123){if(t)throw Je("Document");O++,ae(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:bo()});}else {var n=$u();switch(n){case "fragment":e.push(ow(t));break;case "query":case "mutation":case "subscription":var i,r=void 0;(i=Z.charCodeAt(O))!==40&&i!==64&&i!==123&&(r=nt());var o={kind:"OperationDefinition",operation:n,name:r,variableDefinitions:iw(),directives:ar(false),selectionSet:yo()};t&&(o.description=t),e.push(o);break;default:throw Je("Document")}}}while(O<Z.length);return e}function vh(e,t){return Z=e.body?e.body:e,O=0,ae(),{kind:"Document",definitions:hh(),loc:{start:0,end:Z.length,startToken:void 0,endToken:void 0,source:{body:Z,name:"graphql.web",locationOffset:{line:1,column:1}}}}}var yh=0,Iu=new Set;function aw(){function e(t,n){var i=vh(t).definitions,r=new Set;for(var o of n||[])for(var a of o.definitions)a.kind===ci.FRAGMENT_DEFINITION&&!r.has(a)&&(i.push(a),r.add(a));var s;(s=i[0].kind===ci.FRAGMENT_DEFINITION)&&i[0].directives&&(i[0].directives=i[0].directives.filter((l=>l.name.value!=="_unmask")));var c;return {kind:ci.DOCUMENT,definitions:i,get loc(){if(!c&&s){var l=t+(function(p){try{yh++;var m="";for(var h of p)if(!Iu.has(h)){Iu.add(h);var{loc:y}=h;y&&(m+=y.source.body);}return m}finally{--yh==0&&Iu.clear();}})(n||[]);return {start:0,end:l.length,source:{body:l,name:"GraphQLTada",locationOffset:{line:1,column:1}}}}return c},set loc(l){c=l;}}}return e.scalar=function(n,i){return i},e.persisted=function(n,i){return {kind:ci.DOCUMENT,definitions:i?i.definitions:[],documentId:n}},e}var ge=aw();var u={};b(u,{$brand:()=>_o,$input:()=>ql,$output:()=>Gl,NEVER:()=>Ou,TimePrecision:()=>Kl,ZodAny:()=>Lp,ZodArray:()=>Zp,ZodBase64:()=>Ga,ZodBase64URL:()=>qa,ZodBigInt:()=>Bn,ZodBigIntFormat:()=>Ja,ZodBoolean:()=>Mn,ZodCIDRv4:()=>Za,ZodCIDRv6:()=>Wa,ZodCUID:()=>za,ZodCUID2:()=>Ua,ZodCatch:()=>ff,ZodCodec:()=>os,ZodCustom:()=>Mi,ZodCustomStringFormat:()=>jn,ZodDate:()=>Ni,ZodDefault:()=>sf,ZodDiscriminatedUnion:()=>Gp,ZodE164:()=>Ha,ZodEmail:()=>Fa,ZodEmoji:()=>Pa,ZodEnum:()=>zn,ZodError:()=>F0,ZodExactOptional:()=>nf,ZodFile:()=>tf,ZodFirstPartyTypeKind:()=>wf,ZodFunction:()=>xf,ZodGUID:()=>Ri,ZodIPv4:()=>Ba,ZodIPv6:()=>Va,ZodISODate:()=>ka,ZodISODateTime:()=>Oa,ZodISODuration:()=>Ra,ZodISOTime:()=>Ca,ZodIntersection:()=>qp,ZodIssueCode:()=>N0,ZodJWT:()=>Ya,ZodKSUID:()=>Ma,ZodLazy:()=>bf,ZodLiteral:()=>ef,ZodMAC:()=>Tp,ZodMap:()=>Xp,ZodNaN:()=>hf,ZodNanoID:()=>Na,ZodNever:()=>Bp,ZodNonOptional:()=>ns,ZodNull:()=>Up,ZodNullable:()=>af,ZodNumber:()=>Ln,ZodNumberFormat:()=>zr,ZodObject:()=>Ui,ZodOptional:()=>rs,ZodPipe:()=>is,ZodPrefault:()=>cf,ZodPromise:()=>Df,ZodReadonly:()=>gf,ZodRealError:()=>at,ZodRecord:()=>Li,ZodSet:()=>Qp,ZodString:()=>Un,ZodStringFormat:()=>me,ZodSuccess:()=>pf,ZodSymbol:()=>Np,ZodTemplateLiteral:()=>yf,ZodTransform:()=>rf,ZodTuple:()=>Yp,ZodType:()=>ee,ZodULID:()=>ja,ZodURL:()=>Pi,ZodUUID:()=>Zt,ZodUndefined:()=>zp,ZodUnion:()=>ji,ZodUnknown:()=>Mp,ZodVoid:()=>Vp,ZodXID:()=>La,ZodXor:()=>Wp,_ZodString:()=>Ta,_default:()=>uf,_function:()=>Jv,any:()=>kv,array:()=>zi,base64:()=>pv,base64url:()=>fv,bigint:()=>Ev,boolean:()=>Pp,catch:()=>mf,check:()=>Kv,cidrv4:()=>lv,cidrv6:()=>dv,clone:()=>Ke,codec:()=>qv,coerce:()=>$f,config:()=>we,core:()=>nr,cuid:()=>rv,cuid2:()=>nv,custom:()=>Xv,date:()=>Rv,decode:()=>$p,decodeAsync:()=>Op,describe:()=>Qv,discriminatedUnion:()=>Nv,e164:()=>mv,email:()=>Gg,emoji:()=>ev,encode:()=>wp,encodeAsync:()=>Ip,endsWith:()=>$n,enum:()=>es,exactOptional:()=>of,file:()=>Vv,flattenError:()=>yi,float32:()=>_v,float64:()=>Dv,formatError:()=>bi,fromJSONSchema:()=>ay,function:()=>Jv,getErrorMap:()=>U0,globalRegistry:()=>Ze,gt:()=>Bt,gte:()=>Xe,guid:()=>qg,hash:()=>bv,hex:()=>yv,hostname:()=>vv,httpUrl:()=>Qg,includes:()=>En,instanceof:()=>ty,int:()=>Aa,int32:()=>xv,int64:()=>wv,intersection:()=>Hp,ipv4:()=>sv,ipv6:()=>cv,iso:()=>Pn,json:()=>ny,jwt:()=>hv,keyof:()=>Av,ksuid:()=>av,lazy:()=>_f,length:()=>Pr,literal:()=>Bv,locales:()=>Ii,looseObject:()=>Fv,looseRecord:()=>Uv,lowercase:()=>xn,lt:()=>Mt,lte:()=>lt,mac:()=>uv,map:()=>jv,maxLength:()=>Fr,maxSize:()=>fr,meta:()=>ey,mime:()=>In,minLength:()=>rr,minSize:()=>Vt,multipleOf:()=>pr,nan:()=>Gv,nanoid:()=>tv,nativeEnum:()=>Mv,negative:()=>ya,never:()=>Ka,nonnegative:()=>_a,nonoptional:()=>df,nonpositive:()=>ba,normalize:()=>On,null:()=>jp,nullable:()=>Ti,nullish:()=>Zv,number:()=>Fp,object:()=>Xa,optional:()=>Ai,overwrite:()=>Ft,parse:()=>Dp,parseAsync:()=>xp,partialRecord:()=>zv,pipe:()=>Fi,positive:()=>va,prefault:()=>lf,preprocess:()=>iy,prettifyError:()=>Lu,promise:()=>Yv,property:()=>Da,readonly:()=>vf,record:()=>Kp,refine:()=>Sf,regex:()=>Dn,regexes:()=>_t,registry:()=>Jo,safeDecode:()=>Cp,safeDecodeAsync:()=>Ap,safeEncode:()=>kp,safeEncodeAsync:()=>Rp,safeParse:()=>Sp,safeParseAsync:()=>Ep,set:()=>Lv,setErrorMap:()=>z0,size:()=>Tr,slugify:()=>An,startsWith:()=>wn,strictObject:()=>Tv,string:()=>Nn,stringFormat:()=>gv,stringbool:()=>ry,success:()=>Wv,superRefine:()=>Ef,symbol:()=>Iv,templateLiteral:()=>Hv,toJSONSchema:()=>wa,toLowerCase:()=>Cn,toUpperCase:()=>Rn,transform:()=>ts,treeifyError:()=>ju,trim:()=>kn,tuple:()=>Jp,uint32:()=>Sv,uint64:()=>$v,ulid:()=>iv,undefined:()=>Ov,union:()=>Qa,unknown:()=>Nr,uppercase:()=>Sn,url:()=>Xg,util:()=>I,uuid:()=>Hg,uuidv4:()=>Yg,uuidv6:()=>Jg,uuidv7:()=>Kg,void:()=>Cv,xid:()=>ov,xor:()=>Pv});var nr={};b(nr,{$ZodAny:()=>ml,$ZodArray:()=>bl,$ZodAsyncError:()=>Tt,$ZodBase64:()=>il,$ZodBase64URL:()=>ol,$ZodBigInt:()=>Vo,$ZodBigIntFormat:()=>ll,$ZodBoolean:()=>Si,$ZodCIDRv4:()=>tl,$ZodCIDRv6:()=>rl,$ZodCUID:()=>Vc,$ZodCUID2:()=>Zc,$ZodCatch:()=>zl,$ZodCheck:()=>he,$ZodCheckBigIntFormat:()=>bc,$ZodCheckEndsWith:()=>Rc,$ZodCheckGreaterThan:()=>No,$ZodCheckIncludes:()=>kc,$ZodCheckLengthEquals:()=>wc,$ZodCheckLessThan:()=>Po,$ZodCheckLowerCase:()=>Ic,$ZodCheckMaxLength:()=>Sc,$ZodCheckMaxSize:()=>_c,$ZodCheckMimeType:()=>Tc,$ZodCheckMinLength:()=>Ec,$ZodCheckMinSize:()=>Dc,$ZodCheckMultipleOf:()=>vc,$ZodCheckNumberFormat:()=>yc,$ZodCheckOverwrite:()=>Fc,$ZodCheckProperty:()=>Ac,$ZodCheckRegex:()=>$c,$ZodCheckSizeEquals:()=>xc,$ZodCheckStartsWith:()=>Cc,$ZodCheckStringFormat:()=>bn,$ZodCheckUpperCase:()=>Oc,$ZodCodec:()=>wi,$ZodCustom:()=>Wl,$ZodCustomStringFormat:()=>ul,$ZodDate:()=>yl,$ZodDefault:()=>Tl,$ZodDiscriminatedUnion:()=>xl,$ZodE164:()=>al,$ZodEmail:()=>jc,$ZodEmoji:()=>Mc,$ZodEncodeError:()=>sr,$ZodEnum:()=>Il,$ZodError:()=>vi,$ZodExactOptional:()=>Rl,$ZodFile:()=>kl,$ZodFunction:()=>Bl,$ZodGUID:()=>zc,$ZodIPv4:()=>Xc,$ZodIPv6:()=>Qc,$ZodISODate:()=>Yc,$ZodISODateTime:()=>Hc,$ZodISODuration:()=>Kc,$ZodISOTime:()=>Jc,$ZodIntersection:()=>Sl,$ZodJWT:()=>sl,$ZodKSUID:()=>qc,$ZodLazy:()=>Zl,$ZodLiteral:()=>Ol,$ZodMAC:()=>el,$ZodMap:()=>wl,$ZodNaN:()=>Ul,$ZodNanoID:()=>Bc,$ZodNever:()=>gl,$ZodNonOptional:()=>Pl,$ZodNull:()=>fl,$ZodNullable:()=>Al,$ZodNumber:()=>Bo,$ZodNumberFormat:()=>cl,$ZodObject:()=>Wh,$ZodObjectJIT:()=>_l,$ZodOptional:()=>Wo,$ZodPipe:()=>jl,$ZodPrefault:()=>Fl,$ZodPromise:()=>Vl,$ZodReadonly:()=>Ll,$ZodRealError:()=>ot,$ZodRecord:()=>El,$ZodRegistry:()=>Yo,$ZodSet:()=>$l,$ZodString:()=>Ar,$ZodStringFormat:()=>fe,$ZodSuccess:()=>Nl,$ZodSymbol:()=>dl,$ZodTemplateLiteral:()=>Ml,$ZodTransform:()=>Cl,$ZodTuple:()=>Zo,$ZodType:()=>X,$ZodULID:()=>Wc,$ZodURL:()=>Lc,$ZodUUID:()=>Uc,$ZodUndefined:()=>pl,$ZodUnion:()=>Ei,$ZodUnknown:()=>hl,$ZodVoid:()=>vl,$ZodXID:()=>Gc,$ZodXor:()=>Dl,$brand:()=>_o,$constructor:()=>v,$input:()=>ql,$output:()=>Gl,Doc:()=>xi,JSONSchema:()=>Zg,JSONSchemaGenerator:()=>$a,NEVER:()=>Ou,TimePrecision:()=>Kl,_any:()=>yd,_array:()=>wd,_base64:()=>fa,_base64url:()=>ma,_bigint:()=>dd,_boolean:()=>cd,_catch:()=>$0,_check:()=>Vg,_cidrv4:()=>da,_cidrv6:()=>pa,_coercedBigint:()=>pd,_coercedBoolean:()=>ld,_coercedDate:()=>Sd,_coercedNumber:()=>nd,_coercedString:()=>Yl,_cuid:()=>ia,_cuid2:()=>oa,_custom:()=>Id,_date:()=>xd,_decode:()=>$o,_decodeAsync:()=>Oo,_default:()=>S0,_discriminatedUnion:()=>d0,_e164:()=>ha,_email:()=>Ko,_emoji:()=>ra,_encode:()=>wo,_encodeAsync:()=>Io,_endsWith:()=>$n,_enum:()=>v0,_file:()=>$d,_float32:()=>od,_float64:()=>ad,_gt:()=>Bt,_gte:()=>Xe,_guid:()=>Oi,_includes:()=>En,_int:()=>id,_int32:()=>sd,_int64:()=>fd,_intersection:()=>p0,_ipv4:()=>ca,_ipv6:()=>la,_isoDate:()=>Ql,_isoDateTime:()=>Xl,_isoDuration:()=>td,_isoTime:()=>ed,_jwt:()=>ga,_ksuid:()=>ua,_lazy:()=>C0,_length:()=>Pr,_literal:()=>b0,_lowercase:()=>xn,_lt:()=>Mt,_lte:()=>lt,_mac:()=>Jl,_map:()=>h0,_max:()=>lt,_maxLength:()=>Fr,_maxSize:()=>fr,_mime:()=>In,_min:()=>Xe,_minLength:()=>rr,_minSize:()=>Vt,_multipleOf:()=>pr,_nan:()=>Ed,_nanoid:()=>na,_nativeEnum:()=>y0,_negative:()=>ya,_never:()=>_d,_nonnegative:()=>_a,_nonoptional:()=>E0,_nonpositive:()=>ba,_normalize:()=>On,_null:()=>vd,_nullable:()=>x0,_number:()=>rd,_optional:()=>D0,_overwrite:()=>Ft,_parse:()=>hn,_parseAsync:()=>gn,_pipe:()=>I0,_positive:()=>va,_promise:()=>R0,_property:()=>Da,_readonly:()=>O0,_record:()=>m0,_refine:()=>Od,_regex:()=>Dn,_safeDecode:()=>Co,_safeDecodeAsync:()=>Ao,_safeEncode:()=>ko,_safeEncodeAsync:()=>Ro,_safeParse:()=>vn,_safeParseAsync:()=>yn,_set:()=>g0,_size:()=>Tr,_slugify:()=>An,_startsWith:()=>wn,_string:()=>Hl,_stringFormat:()=>Tn,_stringbool:()=>Ad,_success:()=>w0,_superRefine:()=>kd,_symbol:()=>hd,_templateLiteral:()=>k0,_toLowerCase:()=>Cn,_toUpperCase:()=>Rn,_transform:()=>_0,_trim:()=>kn,_tuple:()=>f0,_uint32:()=>ud,_uint64:()=>md,_ulid:()=>aa,_undefined:()=>gd,_union:()=>c0,_unknown:()=>bd,_uppercase:()=>Sn,_url:()=>ki,_uuid:()=>Xo,_uuidv4:()=>Qo,_uuidv6:()=>ea,_uuidv7:()=>ta,_void:()=>Dd,_xid:()=>sa,_xor:()=>l0,clone:()=>Ke,config:()=>we,createStandardJSONSchemaMethod:()=>Fn,createToJSONSchemaMethod:()=>Td,decode:()=>Fw,decodeAsync:()=>Nw,describe:()=>Cd,encode:()=>Tw,encodeAsync:()=>Pw,extractDefs:()=>hr,finalize:()=>gr,flattenError:()=>yi,formatError:()=>bi,globalConfig:()=>li,globalRegistry:()=>Ze,initializeContext:()=>mr,isValidBase64:()=>nl,isValidBase64URL:()=>Mh,isValidJWT:()=>Bh,locales:()=>Ii,meta:()=>Rd,parse:()=>So,parseAsync:()=>Eo,prettifyError:()=>Lu,process:()=>le,regexes:()=>_t,registry:()=>Jo,safeDecode:()=>Uw,safeDecodeAsync:()=>Lw,safeEncode:()=>zw,safeEncodeAsync:()=>jw,safeParse:()=>Mu,safeParseAsync:()=>Bu,toDotPath:()=>Sh,toJSONSchema:()=>wa,treeifyError:()=>ju,util:()=>I,version:()=>Pc});var Ou=Object.freeze({status:"aborted"});function v(e,t,n){function i(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:false}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let l=a.prototype,d=Object.keys(l);for(let p=0;p<d.length;p++){let m=d[p];m in s||(s[m]=l[m].bind(s));}}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function a(s){var c;let l=n?.Parent?new o:this;i(l,s),(c=l._zod).deferred??(c.deferred=[]);for(let d of l._zod.deferred)d();return l}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?true:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var _o=Symbol("zod_brand"),Tt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");}},sr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError";}},li={};function we(e){return e&&Object.assign(li,e),li}var I={};b(I,{BIGINT_FORMAT_RANGES:()=>Uu,Class:()=>Cu,NUMBER_FORMAT_RANGES:()=>zu,aborted:()=>dr,allowsEval:()=>Tu,assert:()=>dw,assertEqual:()=>sw,assertIs:()=>cw,assertNever:()=>lw,assertNotEqual:()=>uw,assignProp:()=>cr,base64ToUint8Array:()=>_h,base64urlToUint8Array:()=>Ow,cached:()=>fn,captureStackTrace:()=>xo,cleanEnum:()=>Iw,cleanRegex:()=>fi,clone:()=>Ke,cloneDef:()=>fw,createTransparentProxy:()=>bw,defineLazy:()=>ne,esc:()=>Do,escapeRegex:()=>bt,extend:()=>xw,finalizeIssue:()=>it,floatSafeRemainder:()=>Ru,getElementAtPath:()=>mw,getEnumValues:()=>pi,getLengthableOrigin:()=>gi,getParsedType:()=>yw,getSizableOrigin:()=>hi,hexToUint8Array:()=>Cw,isObject:()=>Cr,isPlainObject:()=>lr,issue:()=>mn,joinValues:()=>S,jsonStringifyReplacer:()=>pn,merge:()=>Ew,mergeDefs:()=>tr,normalizeParams:()=>C,nullish:()=>ur,numKeys:()=>vw,objectClone:()=>pw,omit:()=>Dw,optionalKeys:()=>Nu,parsedType:()=>$,partial:()=>ww,pick:()=>_w,prefixIssues:()=>ct,primitiveTypes:()=>Pu,promiseAllObject:()=>hw,propertyKeyTypes:()=>mi,randomString:()=>gw,required:()=>$w,safeExtend:()=>Sw,shallowClone:()=>Fu,slugify:()=>Au,stringifyPrimitive:()=>w,uint8ArrayToBase64:()=>Dh,uint8ArrayToBase64url:()=>kw,uint8ArrayToHex:()=>Rw,unwrapMessage:()=>di});function sw(e){return e}function uw(e){return e}function cw(e){}function lw(e){throw new Error("Unexpected value in exhaustive check")}function dw(e){}function pi(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function S(e,t="|"){return e.map(n=>w(n)).join(t)}function pn(e,t){return typeof t=="bigint"?t.toString():t}function fn(e){return {get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function ur(e){return e==null}function fi(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Ru(e,t){let n=(e.toString().split(".")[1]||"").length,i=t.toString(),r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){let c=i.match(/\d?e-(\d?)/);c?.[1]&&(r=Number.parseInt(c[1]));}let o=n>r?n:r,a=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return a%s/10**o}var bh=Symbol("evaluating");function ne(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==bh)return i===void 0&&(i=bh,i=n()),i},set(r){Object.defineProperty(e,t,{value:r});},configurable:true});}function pw(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function cr(e,t,n){Object.defineProperty(e,t,{value:n,writable:true,enumerable:true,configurable:true});}function tr(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i);}return Object.defineProperties({},t)}function fw(e){return tr(e._zod.def)}function mw(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function hw(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function gw(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function Do(e){return JSON.stringify(e)}function Au(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var xo="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Cr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Tu=fn(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return false;try{let e=Function;return new e(""),!0}catch{return false}});function lr(e){if(Cr(e)===false)return false;let t=e.constructor;if(t===void 0||typeof t!="function")return true;let n=t.prototype;return !(Cr(n)===false||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===false)}function Fu(e){return lr(e)?{...e}:Array.isArray(e)?[...e]:e}function vw(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var yw=e=>{let t=typeof e;switch(t){case "undefined":return "undefined";case "string":return "string";case "number":return Number.isNaN(e)?"nan":"number";case "boolean":return "boolean";case "function":return "function";case "bigint":return "bigint";case "symbol":return "symbol";case "object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},mi=new Set(["string","number","symbol"]),Pu=new Set(["string","number","bigint","boolean","symbol","undefined"]);function bt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ke(e,t,n){let i=new e._zod.constr(t??e._zod.def);return (!t||n?.parent)&&(i._zod.parent=e),i}function C(e){let t=e;if(!t)return {};if(typeof t=="string")return {error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message;}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function bw(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function w(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Nu(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var zu={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]},Uu={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function _w(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=tr(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=n.shape[s]);}return cr(this,"shape",a),a},checks:[]});return Ke(e,o)}function Dw(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=tr(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s];}return cr(this,"shape",a),a},checks:[]});return Ke(e,o)}function xw(e,t){if(!lr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=tr(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return cr(this,"shape",o),o}});return Ke(e,r)}function Sw(e,t){if(!lr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=tr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return cr(this,"shape",i),i}});return Ke(e,n)}function Ew(e,t){let n=tr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return cr(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Ke(e,n)}function ww(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=tr(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(n)for(let l in n){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=e?new e({type:"optional",innerType:s[l]}):s[l]);}else for(let l in s)c[l]=e?new e({type:"optional",innerType:s[l]}):s[l];return cr(this,"shape",c),c},checks:[]});return Ke(t,a)}function $w(e,t,n){let i=tr(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:r[a]}));}else for(let a in r)o[a]=new e({type:"nonoptional",innerType:r[a]});return cr(this,"shape",o),o}});return Ke(t,i)}function dr(e,t=0){if(e.aborted===true)return true;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==true)return true;return false}function ct(e,t){return t.map(n=>{var i;return (i=n).path??(i.path=[]),n.path.unshift(e),n})}function di(e){return typeof e=="string"?e:e?.message}function it(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let r=di(e.inst?._zod.def?.error?.(e))??di(t?.error?.(e))??di(n.customError?.(e))??di(n.localeError?.(e))??"Invalid input";i.message=r;}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function hi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function gi(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function $(e){let t=typeof e;switch(t){case "number":return Number.isNaN(e)?"nan":"number";case "object":{if(e===null)return "null";if(Array.isArray(e))return "array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function mn(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function Iw(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function _h(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function Dh(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Ow(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return _h(t+n)}function kw(e){return Dh(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Cw(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function Rw(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Cu=class{constructor(...t){}};var xh=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:false}),Object.defineProperty(e,"issues",{value:t,enumerable:false}),e.message=JSON.stringify(t,pn,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},vi=v("$ZodError",xh),ot=v("$ZodError",xh,{Parent:Error});function yi(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return {formErrors:i,fieldErrors:n}}function bi(e,t=n=>n.message){let n={_errors:[]},i=r=>{for(let o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else {let a=n,s=0;for(;s<o.path.length;){let c=o.path[s];s===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(o))):a[c]=a[c]||{_errors:[]},a=a[c],s++;}}};return i(e),n}function ju(e,t=n=>n.message){let n={errors:[]},i=(r,o=[])=>{var a,s;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>i({issues:l},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else {let l=[...o,...c.path];if(l.length===0){n.errors.push(t(c));continue}let d=n,p=0;for(;p<l.length;){let m=l[p],h=p===l.length-1;typeof m=="string"?(d.properties??(d.properties={}),(a=d.properties)[m]??(a[m]={errors:[]}),d=d.properties[m]):(d.items??(d.items=[]),(s=d.items)[m]??(s[m]={errors:[]}),d=d.items[m]),h&&d.errors.push(t(c)),p++;}}};return i(e),n}function Sh(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function Lu(e){let t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${Sh(i.path)}`);return t.join(`
6
- `)}var hn=e=>(t,n,i,r)=>{let o=i?Object.assign(i,{async:false}):{async:false},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Tt;if(a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>it(c,o,we())));throw xo(s,r?.callee),s}return a.value},So=hn(ot),gn=e=>async(t,n,i,r)=>{let o=i?Object.assign(i,{async:true}):{async:true},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>it(c,o,we())));throw xo(s,r?.callee),s}return a.value},Eo=gn(ot),vn=e=>(t,n,i)=>{let r=i?{...i,async:false}:{async:false},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Tt;return o.issues.length?{success:false,error:new(e??vi)(o.issues.map(a=>it(a,r,we())))}:{success:true,data:o.value}},Mu=vn(ot),yn=e=>async(t,n,i)=>{let r=i?Object.assign(i,{async:true}):{async:true},o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:false,error:new e(o.issues.map(a=>it(a,r,we())))}:{success:true,data:o.value}},Bu=yn(ot),wo=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return hn(e)(t,n,r)},Tw=wo(ot),$o=e=>(t,n,i)=>hn(e)(t,n,i),Fw=$o(ot),Io=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return gn(e)(t,n,r)},Pw=Io(ot),Oo=e=>async(t,n,i)=>gn(e)(t,n,i),Nw=Oo(ot),ko=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return vn(e)(t,n,r)},zw=ko(ot),Co=e=>(t,n,i)=>vn(e)(t,n,i),Uw=Co(ot),Ro=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return yn(e)(t,n,r)},jw=Ro(ot),Ao=e=>async(t,n,i)=>yn(e)(t,n,i),Lw=Ao(ot);var _t={};b(_t,{base64:()=>ic,base64url:()=>To,bigint:()=>lc,boolean:()=>pc,browserEmail:()=>Hw,cidrv4:()=>rc,cidrv6:()=>nc,cuid:()=>Vu,cuid2:()=>Zu,date:()=>ac,datetime:()=>uc,domain:()=>Kw,duration:()=>Yu,e164:()=>oc,email:()=>Ku,emoji:()=>Xu,extendedDuration:()=>Mw,guid:()=>Ju,hex:()=>Xw,hostname:()=>Jw,html5Email:()=>Ww,idnEmail:()=>qw,integer:()=>dc,ipv4:()=>Qu,ipv6:()=>ec,ksuid:()=>qu,lowercase:()=>hc,mac:()=>tc,md5_base64:()=>e$,md5_base64url:()=>t$,md5_hex:()=>Qw,nanoid:()=>Hu,null:()=>fc,number:()=>Fo,rfc5322Email:()=>Gw,sha1_base64:()=>n$,sha1_base64url:()=>i$,sha1_hex:()=>r$,sha256_base64:()=>a$,sha256_base64url:()=>s$,sha256_hex:()=>o$,sha384_base64:()=>c$,sha384_base64url:()=>l$,sha384_hex:()=>u$,sha512_base64:()=>p$,sha512_base64url:()=>f$,sha512_hex:()=>d$,string:()=>cc,time:()=>sc,ulid:()=>Wu,undefined:()=>mc,unicodeEmail:()=>Eh,uppercase:()=>gc,uuid:()=>Rr,uuid4:()=>Bw,uuid6:()=>Vw,uuid7:()=>Zw,xid:()=>Gu});var Vu=/^[cC][^\s-]{8,}$/,Zu=/^[0-9a-z]+$/,Wu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Gu=/^[0-9a-vA-V]{20}$/,qu=/^[A-Za-z0-9]{27}$/,Hu=/^[a-zA-Z0-9_-]{21}$/,Yu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Mw=/^[-+]?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)?)??$/,Ju=/^([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})$/,Rr=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)$/,Bw=Rr(4),Vw=Rr(6),Zw=Rr(7),Ku=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ww=/^[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])?)*$/,Gw=/^(([^<>()\[\]\\.,;:\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,}))$/,Eh=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,qw=Eh,Hw=/^[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])?)*$/,Yw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Xu(){return new RegExp(Yw,"u")}var Qu=/^(?:(?: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])$/,ec=/^(([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}|:))$/,tc=e=>{let t=bt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},rc=/^((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])$/,nc=/^(([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])$/,ic=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,To=/^[A-Za-z0-9_-]*$/,Jw=/^(?=.{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])?)*\.?$/,Kw=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,oc=/^\+[1-9]\d{6,14}$/,wh="(?:(?:\\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])))",ac=new RegExp(`^${wh}$`);function $h(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function sc(e){return new RegExp(`^${$h(e)}$`)}function uc(e){let t=$h({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${n.join("|")})`;return new RegExp(`^${wh}T(?:${i})$`)}var cc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},lc=/^-?\d+n?$/,dc=/^-?\d+$/,Fo=/^-?\d+(?:\.\d+)?$/,pc=/^(?:true|false)$/i,fc=/^null$/i;var mc=/^undefined$/i;var hc=/^[^A-Z]*$/,gc=/^[^a-z]*$/,Xw=/^[0-9a-fA-F]*$/;function _i(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Di(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Qw=/^[0-9a-fA-F]{32}$/,e$=_i(22,"=="),t$=Di(22),r$=/^[0-9a-fA-F]{40}$/,n$=_i(27,"="),i$=Di(27),o$=/^[0-9a-fA-F]{64}$/,a$=_i(43,"="),s$=Di(43),u$=/^[0-9a-fA-F]{96}$/,c$=_i(64,""),l$=Di(64),d$=/^[0-9a-fA-F]{128}$/,p$=_i(86,"=="),f$=Di(86);var he=v("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[]);}),Oh={number:"number",bigint:"bigint",object:"date"},Po=v("$ZodCheckLessThan",(e,t)=>{he.init(e,t);let n=Oh[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value);}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),No=v("$ZodCheckGreaterThan",(e,t)=>{he.init(e,t);let n=Oh[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value);}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),vc=v("$ZodCheckMultipleOf",(e,t)=>{he.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value);}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Ru(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort});};}),yc=v("$ZodCheckNumberFormat",(e,t)=>{he.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=zu[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=r,s.maximum=o,n&&(s.pattern=dc);}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:false,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:true,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:true,continue:!t.abort});return}}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:true,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:true,inst:e,continue:!t.abort});};}),bc=v("$ZodCheckBigIntFormat",(e,t)=>{he.init(e,t);let[n,i]=Uu[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i;}),e._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:true,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:true,inst:e,continue:!t.abort});};}),_c=v("$ZodCheckMaxSize",(e,t)=>{var n;he.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !ur(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum);}),e._zod.check=i=>{let r=i.value;r.size<=t.maximum||i.issues.push({origin:hi(r),code:"too_big",maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),Dc=v("$ZodCheckMinSize",(e,t)=>{var n;he.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !ur(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum);}),e._zod.check=i=>{let r=i.value;r.size>=t.minimum||i.issues.push({origin:hi(r),code:"too_small",minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),xc=v("$ZodCheckSizeEquals",(e,t)=>{var n;he.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !ur(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size;}),e._zod.check=i=>{let r=i.value,o=r.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:hi(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:true,exact:true,input:i.value,inst:e,continue:!t.abort});};}),Sc=v("$ZodCheckMaxLength",(e,t)=>{var n;he.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !ur(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum);}),e._zod.check=i=>{let r=i.value;if(r.length<=t.maximum)return;let a=gi(r);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),Ec=v("$ZodCheckMinLength",(e,t)=>{var n;he.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !ur(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum);}),e._zod.check=i=>{let r=i.value;if(r.length>=t.minimum)return;let a=gi(r);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),wc=v("$ZodCheckLengthEquals",(e,t)=>{var n;he.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !ur(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length;}),e._zod.check=i=>{let r=i.value,o=r.length;if(o===t.length)return;let a=gi(r),s=o>t.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:true,exact:true,input:i.value,inst:e,continue:!t.abort});};}),bn=v("$ZodCheckStringFormat",(e,t)=>{var n,i;he.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern));}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort});}):(i=e._zod).check??(i.check=()=>{});}),$c=v("$ZodCheckRegex",(e,t)=>{bn.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort});};}),Ic=v("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=hc),bn.init(e,t);}),Oc=v("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=gc),bn.init(e,t);}),kc=v("$ZodCheckIncludes",(e,t)=>{he.init(e,t);let n=bt(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i);}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort});};}),Cc=v("$ZodCheckStartsWith",(e,t)=>{he.init(e,t);let n=new RegExp(`^${bt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n);}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort});};}),Rc=v("$ZodCheckEndsWith",(e,t)=>{he.init(e,t);let n=new RegExp(`.*${bt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n);}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort});};});function Ih(e,t,n){e.issues.length&&t.issues.push(...ct(n,e.issues));}var Ac=v("$ZodCheckProperty",(e,t)=>{he.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>Ih(r,n,t.property));Ih(i,n,t.property);};}),Tc=v("$ZodCheckMimeType",(e,t)=>{he.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime;}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort});};}),Fc=v("$ZodCheckOverwrite",(e,t)=>{he.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value);};});var xi=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t);}indented(t){this.indent+=1,t(this),this.indent-=1;}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
2
+ import {createRequire}from'node:module';import {a,b,c}from'./chunk-HA3VCAP6.js';import {execFile,exec}from'child_process';import Kn,{readFileSync,existsSync,writeFile as writeFile$1,readdirSync,statSync}from'fs';import Xm,{resolve,normalize,join,relative,extname,dirname,basename}from'path';import Xk,{homedir}from'os';import {Agent,RetryAgent,setGlobalDispatcher}from'undici';import {strictEqual,notStrictEqual}from'assert';import {format,promisify,inspect,styleText}from'util';import {fileURLToPath}from'url';import {createRequire as createRequire$1}from'module';import {gunzipSync}from'zlib';import {readFile,mkdir,writeFile,rename,rm as rm$1}from'fs/promises';import {setTimeout as setTimeout$1}from'timers/promises';import {stdin,stdout}from'process';import nP from'readline';import'tty';import {randomUUID}from'crypto';globalThis.require ?? createRequire(import.meta.url);
3
+ var q_=a((NM,G_)=>{G_.exports=function(t){if(t===void 0&&(t=2),t>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+t+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var n=Error.prepareStackTrace;Error.prepareStackTrace=function(r,o){return o};var i=new Error().stack;if(Error.prepareStackTrace=n,i!==null&&typeof i=="object")return i[t]?i[t].getFileName():void 0};});var uu=a((NB,ah)=>{var su=process||{},fx=su.argv||[],au=su.env||{},PR=!(au.NO_COLOR||fx.includes("--no-color"))&&(!!au.FORCE_COLOR||fx.includes("--color")||su.platform==="win32"||(su.stdout||{}).isTTY&&au.TERM!=="dumb"||!!au.CI),FR=(e,t,n=e)=>i=>{let r=""+i,o=r.indexOf(t,e.length);return ~o?e+TR(r,t,n,o)+t:e+r+t},TR=(e,t,n,i)=>{let r="",o=0;do r+=e.substring(o,i)+n,o=i+t.length,i=e.indexOf(t,o);while(~i);return r+e.substring(o)},mx=(e=PR)=>{let t=e?FR:()=>String;return {isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};ah.exports=mx();ah.exports.createColors=mx;});var rE=a((YB,tE)=>{var Dh={to(e,t){return t?`\x1B[${t+1};${e+1}H`:`\x1B[${e+1}G`},move(e,t){let n="";return e<0?n+=`\x1B[${-e}D`:e>0&&(n+=`\x1B[${e}C`),t<0?n+=`\x1B[${-t}A`:t>0&&(n+=`\x1B[${t}B`),n},up:(e=1)=>`\x1B[${e}A`,down:(e=1)=>`\x1B[${e}B`,forward:(e=1)=>`\x1B[${e}C`,backward:(e=1)=>`\x1B[${e}D`,nextLine:(e=1)=>"\x1B[E".repeat(e),prevLine:(e=1)=>"\x1B[F".repeat(e),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},XR={up:(e=1)=>"\x1B[S".repeat(e),down:(e=1)=>"\x1B[T".repeat(e)},QR={screen:"\x1B[2J",up:(e=1)=>"\x1B[1J".repeat(e),down:(e=1)=>"\x1B[J".repeat(e),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(e){let t="";for(let n=0;n<e;n++)t+=this.line+(n<e-1?Dh.up():"");return e&&(t+=Dh.left),t}};tE.exports={cursor:Dh,scroll:XR,erase:QR,beep:"\x07"};});var di={DOCUMENT:"Document",FRAGMENT_DEFINITION:"FragmentDefinition"};var Cu=class extends Error{constructor(t,n,i,r,o,a,s){super(t),this.name="GraphQLError",this.message=t,o&&(this.path=o),n&&(this.nodes=Array.isArray(n)?n:[n]),i&&(this.source=i),r&&(this.positions=r),a&&(this.originalError=a);var c=s;if(!c&&a){var l=a.extensions;l&&typeof l=="object"&&(c=l);}this.extensions=c||{};}toJSON(){return {...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return "GraphQLError"}},Z,O;function Ke(e){return new Cu(`Syntax Error: Unexpected token at ${O} in ${e}`)}function Rh(e){if(e.lastIndex=O,e.test(Z))return Z.slice(O,O=e.lastIndex)}var _o=/ +(?=[^\s])/y;function Dw(e){for(var t=e.split(`
4
+ `),n="",i=0,r=0,o=t.length-1,a=0;a<t.length;a++)_o.lastIndex=0,_o.test(t[a])&&(a&&(!i||_o.lastIndex<i)&&(i=_o.lastIndex),r=r||a,o=a);for(var s=r;s<=o;s++)s!==r&&(n+=`
5
+ `),n+=t[s].slice(i).replace(/\\"""/g,'"""');return n}function ae(){for(var e=0|Z.charCodeAt(O++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|Z.charCodeAt(O++))if(e===35)for(;(e=0|Z.charCodeAt(O++))&&e!==10&&e!==13;);O--;}function Au(){for(var e=O,t=0|Z.charCodeAt(O++);t>=48&&t<=57||t>=65&&t<=90||t===95||t>=97&&t<=122;t=0|Z.charCodeAt(O++));if(e===O-1)throw Ke("Name");var n=Z.slice(e,--O);return ae(),n}function nt(){return {kind:"Name",value:Au()}}var xw=/(?:"""|(?:[\s\S]*?[^\\])""")/y,Sw=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function fn(e){var t;switch(Z.charCodeAt(O)){case 91:O++,ae();for(var n=[];Z.charCodeAt(O)!==93;)n.push(fn(e));return O++,ae(),{kind:"ListValue",values:n};case 123:O++,ae();for(var i=[];Z.charCodeAt(O)!==125;){var r=nt();if(Z.charCodeAt(O++)!==58)throw Ke("ObjectField");ae(),i.push({kind:"ObjectField",name:r,value:fn(e)});}return O++,ae(),{kind:"ObjectValue",fields:i};case 36:if(e)throw Ke("Variable");return O++,{kind:"Variable",name:nt()};case 34:if(Z.charCodeAt(O+1)===34&&Z.charCodeAt(O+2)===34){if(O+=3,(t=Rh(xw))==null)throw Ke("StringValue");return ae(),{kind:"StringValue",value:Dw(t.slice(0,-3)),block:true}}else {var o=O,a;O++;var s=false;for(a=0|Z.charCodeAt(O++);a===92&&(O++,s=true)||a!==10&&a!==13&&a!==34&&a;a=0|Z.charCodeAt(O++));if(a!==34)throw Ke("StringValue");return t=Z.slice(o,O),ae(),{kind:"StringValue",value:s?JSON.parse(t):t.slice(1,-1),block:false}}case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var c=O++,l;(l=0|Z.charCodeAt(O++))>=48&&l<=57;);var d=Z.slice(c,--O);if((l=Z.charCodeAt(O))===46||l===69||l===101){if((t=Rh(Sw))==null)throw Ke("FloatValue");return ae(),{kind:"FloatValue",value:d+t}}else return ae(),{kind:"IntValue",value:d};case 110:if(Z.charCodeAt(O+1)===117&&Z.charCodeAt(O+2)===108&&Z.charCodeAt(O+3)===108)return O+=4,ae(),{kind:"NullValue"};break;case 116:if(Z.charCodeAt(O+1)===114&&Z.charCodeAt(O+2)===117&&Z.charCodeAt(O+3)===101)return O+=4,ae(),{kind:"BooleanValue",value:true};break;case 102:if(Z.charCodeAt(O+1)===97&&Z.charCodeAt(O+2)===108&&Z.charCodeAt(O+3)===115&&Z.charCodeAt(O+4)===101)return O+=5,ae(),{kind:"BooleanValue",value:false};break}return {kind:"EnumValue",value:Au()}}function Fh(e){if(Z.charCodeAt(O)===40){var t=[];O++,ae();do{var n=nt();if(Z.charCodeAt(O++)!==58)throw Ke("Argument");ae(),t.push({kind:"Argument",name:n,value:fn(e)});}while(Z.charCodeAt(O)!==41);return O++,ae(),t}}function lr(e){if(Z.charCodeAt(O)===64){var t=[];do O++,t.push({kind:"Directive",name:nt(),arguments:Fh(e)});while(Z.charCodeAt(O)===64);return t}}function Ew(){for(var e=0;Z.charCodeAt(O)===91;)e++,O++,ae();var t={kind:"NamedType",name:nt()};do if(Z.charCodeAt(O)===33&&(O++,ae(),t={kind:"NonNullType",type:t}),e){if(Z.charCodeAt(O++)!==93)throw Ke("NamedType");ae(),t={kind:"ListType",type:t};}while(e--);return t}function Do(){if(Z.charCodeAt(O++)!==123)throw Ke("SelectionSet");return ae(),xo()}function xo(){var e=[];do if(Z.charCodeAt(O)===46){if(Z.charCodeAt(++O)!==46||Z.charCodeAt(++O)!==46)throw Ke("SelectionSet");switch(O++,ae(),Z.charCodeAt(O)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:lr(false),selectionSet:Do()});break;case 111:Z.charCodeAt(O+1)===110?(O+=2,ae(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:nt()},directives:lr(false),selectionSet:Do()})):e.push({kind:"FragmentSpread",name:nt(),directives:lr(false)});break;case 123:O++,ae(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:xo()});break;default:e.push({kind:"FragmentSpread",name:nt(),directives:lr(false)});}}else {var t=nt(),n=void 0;Z.charCodeAt(O)===58&&(O++,ae(),n=t,t=nt());var i=Fh(false),r=lr(false),o=void 0;Z.charCodeAt(O)===123&&(O++,ae(),o=xo()),e.push({kind:"Field",alias:n,name:t,arguments:i,directives:r,selectionSet:o});}while(Z.charCodeAt(O)!==125);return O++,ae(),{kind:"SelectionSet",selections:e}}function ww(){if(ae(),Z.charCodeAt(O)===40){var e=[];O++,ae();do{var t=void 0;if(Z.charCodeAt(O)===34&&(t=fn(true)),Z.charCodeAt(O++)!==36)throw Ke("Variable");var n=nt();if(Z.charCodeAt(O++)!==58)throw Ke("VariableDefinition");ae();var i=Ew(),r=void 0;Z.charCodeAt(O)===61&&(O++,ae(),r=fn(true)),ae();var o={kind:"VariableDefinition",variable:{kind:"Variable",name:n},type:i,defaultValue:r,directives:lr(true)};t&&(o.description=t),e.push(o);}while(Z.charCodeAt(O)!==41);return O++,ae(),e}}function $w(e){var t=nt();if(Z.charCodeAt(O++)!==111||Z.charCodeAt(O++)!==110)throw Ke("FragmentDefinition");ae();var n={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:nt()},directives:lr(false),selectionSet:Do()};return e&&(n.description=e),n}function Ph(){var e=[];do{var t=void 0;if(Z.charCodeAt(O)===34&&(t=fn(true)),Z.charCodeAt(O)===123){if(t)throw Ke("Document");O++,ae(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:xo()});}else {var n=Au();switch(n){case "fragment":e.push($w(t));break;case "query":case "mutation":case "subscription":var i,r=void 0;(i=Z.charCodeAt(O))!==40&&i!==64&&i!==123&&(r=nt());var o={kind:"OperationDefinition",operation:n,name:r,variableDefinitions:ww(),directives:lr(false),selectionSet:Do()};t&&(o.description=t),e.push(o);break;default:throw Ke("Document")}}}while(O<Z.length);return e}function Th(e,t){return Z=e.body?e.body:e,O=0,ae(),{kind:"Document",definitions:Ph(),loc:{start:0,end:Z.length,startToken:void 0,endToken:void 0,source:{body:Z,name:"graphql.web",locationOffset:{line:1,column:1}}}}}var zh=0,Ru=new Set;function Iw(){function e(t,n){var i=Th(t).definitions,r=new Set;for(var o of n||[])for(var a of o.definitions)a.kind===di.FRAGMENT_DEFINITION&&!r.has(a)&&(i.push(a),r.add(a));var s;(s=i[0].kind===di.FRAGMENT_DEFINITION)&&i[0].directives&&(i[0].directives=i[0].directives.filter((l=>l.name.value!=="_unmask")));var c;return {kind:di.DOCUMENT,definitions:i,get loc(){if(!c&&s){var l=t+(function(p){try{zh++;var m="";for(var h of p)if(!Ru.has(h)){Ru.add(h);var{loc:v}=h;v&&(m+=v.source.body);}return m}finally{--zh==0&&Ru.clear();}})(n||[]);return {start:0,end:l.length,source:{body:l,name:"GraphQLTada",locationOffset:{line:1,column:1}}}}return c},set loc(l){c=l;}}}return e.scalar=function(n,i){return i},e.persisted=function(n,i){return {kind:di.DOCUMENT,definitions:i?i.definitions:[],documentId:n}},e}var ye=Iw();var u={};b(u,{$brand:()=>So,$input:()=>Xl,$output:()=>Kl,NEVER:()=>Pu,TimePrecision:()=>rd,ZodAny:()=>Wp,ZodArray:()=>Yp,ZodBase64:()=>Ya,ZodBase64URL:()=>Ja,ZodBigInt:()=>Zn,ZodBigIntFormat:()=>Qa,ZodBoolean:()=>Vn,ZodCIDRv4:()=>qa,ZodCIDRv6:()=>Ha,ZodCUID:()=>La,ZodCUID2:()=>Ma,ZodCatch:()=>vf,ZodCodec:()=>us,ZodCustom:()=>Vi,ZodCustomStringFormat:()=>Mn,ZodDate:()=>Ui,ZodDefault:()=>pf,ZodDiscriminatedUnion:()=>Kp,ZodE164:()=>Ka,ZodEmail:()=>Na,ZodEmoji:()=>Ua,ZodEnum:()=>jn,ZodError:()=>t0,ZodExactOptional:()=>cf,ZodFile:()=>sf,ZodFirstPartyTypeKind:()=>Cf,ZodFunction:()=>If,ZodGUID:()=>Pi,ZodIPv4:()=>Wa,ZodIPv6:()=>Ga,ZodISODate:()=>Ra,ZodISODateTime:()=>Aa,ZodISODuration:()=>Fa,ZodISOTime:()=>Pa,ZodIntersection:()=>Xp,ZodIssueCode:()=>n0,ZodJWT:()=>Xa,ZodKSUID:()=>Za,ZodLazy:()=>Ef,ZodLiteral:()=>af,ZodMAC:()=>Up,ZodMap:()=>nf,ZodNaN:()=>_f,ZodNanoID:()=>ja,ZodNever:()=>qp,ZodNonOptional:()=>as,ZodNull:()=>Vp,ZodNullable:()=>df,ZodNumber:()=>Bn,ZodNumberFormat:()=>Wr,ZodObject:()=>Li,ZodOptional:()=>os,ZodPipe:()=>ss,ZodPrefault:()=>mf,ZodPromise:()=>$f,ZodReadonly:()=>Df,ZodRealError:()=>at,ZodRecord:()=>Bi,ZodSet:()=>of,ZodString:()=>Ln,ZodStringFormat:()=>he,ZodSuccess:()=>yf,ZodSymbol:()=>Mp,ZodTemplateLiteral:()=>Sf,ZodTransform:()=>uf,ZodTuple:()=>ef,ZodType:()=>ee,ZodULID:()=>Ba,ZodURL:()=>Ni,ZodUUID:()=>Gt,ZodUndefined:()=>Bp,ZodUnion:()=>Mi,ZodUnknown:()=>Gp,ZodVoid:()=>Hp,ZodXID:()=>Va,ZodXor:()=>Jp,_ZodString:()=>za,_default:()=>ff,_function:()=>mv,any:()=>qy,array:()=>ji,base64:()=>Cy,base64url:()=>Ay,bigint:()=>By,boolean:()=>Lp,catch:()=>bf,check:()=>hv,cidrv4:()=>Oy,cidrv6:()=>ky,clone:()=>Xe,codec:()=>dv,coerce:()=>Af,config:()=>Oe,core:()=>sr,cuid:()=>_y,cuid2:()=>Dy,custom:()=>gv,date:()=>Yy,decode:()=>Ap,decodeAsync:()=>Pp,describe:()=>yv,discriminatedUnion:()=>ev,e164:()=>Ry,email:()=>ly,emoji:()=>vy,encode:()=>Cp,encodeAsync:()=>Rp,endsWith:()=>On,enum:()=>ns,exactOptional:()=>lf,file:()=>sv,flattenError:()=>_i,float32:()=>Uy,float64:()=>jy,formatError:()=>Di,fromJSONSchema:()=>Ev,function:()=>mv,getErrorMap:()=>o0,globalRegistry:()=>We,gt:()=>Zt,gte:()=>Qe,guid:()=>dy,hash:()=>Ny,hex:()=>zy,hostname:()=>Ty,httpUrl:()=>yy,includes:()=>$n,instanceof:()=>bv,int:()=>Ta,int32:()=>Ly,int64:()=>Vy,intersection:()=>Qp,ipv4:()=>wy,ipv6:()=>Iy,iso:()=>Nn,json:()=>Dv,jwt:()=>Py,keyof:()=>Jy,ksuid:()=>Ey,lazy:()=>wf,length:()=>Vr,literal:()=>av,locales:()=>ki,looseObject:()=>Xy,looseRecord:()=>rv,lowercase:()=>En,lt:()=>Vt,lte:()=>dt,mac:()=>$y,map:()=>nv,maxLength:()=>Br,maxSize:()=>yr,meta:()=>vv,mime:()=>kn,minLength:()=>ar,minSize:()=>Wt,multipleOf:()=>gr,nan:()=>lv,nanoid:()=>by,nativeEnum:()=>ov,negative:()=>Da,never:()=>es,nonnegative:()=>Sa,nonoptional:()=>gf,nonpositive:()=>xa,normalize:()=>Cn,null:()=>Zp,nullable:()=>Ti,nullish:()=>uv,number:()=>jp,object:()=>ts,optional:()=>Fi,overwrite:()=>Tt,parse:()=>$p,parseAsync:()=>Ip,partialRecord:()=>tv,pipe:()=>zi,positive:()=>_a,prefault:()=>hf,preprocess:()=>xv,prettifyError:()=>Wu,promise:()=>fv,property:()=>Ea,readonly:()=>xf,record:()=>rf,refine:()=>Of,regex:()=>Sn,regexes:()=>bt,registry:()=>Qo,safeDecode:()=>Tp,safeDecodeAsync:()=>Np,safeEncode:()=>Fp,safeEncodeAsync:()=>zp,safeParse:()=>Op,safeParseAsync:()=>kp,set:()=>iv,setErrorMap:()=>i0,size:()=>Mr,slugify:()=>Fn,startsWith:()=>In,strictObject:()=>Ky,string:()=>Un,stringFormat:()=>Fy,stringbool:()=>_v,success:()=>cv,superRefine:()=>kf,symbol:()=>Wy,templateLiteral:()=>pv,toJSONSchema:()=>Oa,toLowerCase:()=>Rn,toUpperCase:()=>Pn,transform:()=>is,treeifyError:()=>Zu,trim:()=>An,tuple:()=>tf,uint32:()=>My,uint64:()=>Zy,ulid:()=>xy,undefined:()=>Gy,union:()=>rs,unknown:()=>Zr,uppercase:()=>wn,url:()=>gy,util:()=>I,uuid:()=>py,uuidv4:()=>fy,uuidv6:()=>my,uuidv7:()=>hy,void:()=>Hy,xid:()=>Sy,xor:()=>Qy});var sr={};b(sr,{$ZodAny:()=>bl,$ZodArray:()=>El,$ZodAsyncError:()=>Ft,$ZodBase64:()=>cl,$ZodBase64URL:()=>ll,$ZodBigInt:()=>Go,$ZodBigIntFormat:()=>hl,$ZodBoolean:()=>wi,$ZodCIDRv4:()=>al,$ZodCIDRv6:()=>sl,$ZodCUID:()=>Hc,$ZodCUID2:()=>Yc,$ZodCatch:()=>Bl,$ZodCheck:()=>ge,$ZodCheckBigIntFormat:()=>Ec,$ZodCheckEndsWith:()=>zc,$ZodCheckGreaterThan:()=>jo,$ZodCheckIncludes:()=>Fc,$ZodCheckLengthEquals:()=>Cc,$ZodCheckLessThan:()=>Uo,$ZodCheckLowerCase:()=>Rc,$ZodCheckMaxLength:()=>Oc,$ZodCheckMaxSize:()=>wc,$ZodCheckMimeType:()=>Uc,$ZodCheckMinLength:()=>kc,$ZodCheckMinSize:()=>$c,$ZodCheckMultipleOf:()=>xc,$ZodCheckNumberFormat:()=>Sc,$ZodCheckOverwrite:()=>jc,$ZodCheckProperty:()=>Nc,$ZodCheckRegex:()=>Ac,$ZodCheckSizeEquals:()=>Ic,$ZodCheckStartsWith:()=>Tc,$ZodCheckStringFormat:()=>Dn,$ZodCheckUpperCase:()=>Pc,$ZodCodec:()=>Ii,$ZodCustom:()=>Jl,$ZodCustomStringFormat:()=>fl,$ZodDate:()=>Sl,$ZodDefault:()=>Ul,$ZodDiscriminatedUnion:()=>Il,$ZodE164:()=>dl,$ZodEmail:()=>Zc,$ZodEmoji:()=>Gc,$ZodEncodeError:()=>dr,$ZodEnum:()=>Rl,$ZodError:()=>bi,$ZodExactOptional:()=>zl,$ZodFile:()=>Fl,$ZodFunction:()=>ql,$ZodGUID:()=>Bc,$ZodIPv4:()=>nl,$ZodIPv6:()=>il,$ZodISODate:()=>el,$ZodISODateTime:()=>Qc,$ZodISODuration:()=>rl,$ZodISOTime:()=>tl,$ZodIntersection:()=>Ol,$ZodJWT:()=>pl,$ZodKSUID:()=>Xc,$ZodLazy:()=>Yl,$ZodLiteral:()=>Pl,$ZodMAC:()=>ol,$ZodMap:()=>Cl,$ZodNaN:()=>Vl,$ZodNanoID:()=>qc,$ZodNever:()=>Dl,$ZodNonOptional:()=>Ll,$ZodNull:()=>vl,$ZodNullable:()=>Nl,$ZodNumber:()=>Wo,$ZodNumberFormat:()=>ml,$ZodObject:()=>cg,$ZodObjectJIT:()=>wl,$ZodOptional:()=>Ho,$ZodPipe:()=>Zl,$ZodPrefault:()=>jl,$ZodPromise:()=>Hl,$ZodReadonly:()=>Wl,$ZodRealError:()=>ot,$ZodRecord:()=>kl,$ZodRegistry:()=>Xo,$ZodSet:()=>Al,$ZodString:()=>Lr,$ZodStringFormat:()=>me,$ZodSuccess:()=>Ml,$ZodSymbol:()=>gl,$ZodTemplateLiteral:()=>Gl,$ZodTransform:()=>Tl,$ZodTuple:()=>qo,$ZodType:()=>X,$ZodULID:()=>Jc,$ZodURL:()=>Wc,$ZodUUID:()=>Vc,$ZodUndefined:()=>yl,$ZodUnion:()=>$i,$ZodUnknown:()=>_l,$ZodVoid:()=>xl,$ZodXID:()=>Kc,$ZodXor:()=>$l,$brand:()=>So,$constructor:()=>y,$input:()=>Xl,$output:()=>Kl,Doc:()=>Ei,JSONSchema:()=>uy,JSONSchemaGenerator:()=>ka,NEVER:()=>Pu,TimePrecision:()=>rd,_any:()=>Sd,_array:()=>Cd,_base64:()=>ga,_base64url:()=>ya,_bigint:()=>gd,_boolean:()=>md,_catch:()=>qI,_check:()=>sy,_cidrv4:()=>ma,_cidrv6:()=>ha,_coercedBigint:()=>yd,_coercedBoolean:()=>hd,_coercedDate:()=>Od,_coercedNumber:()=>ud,_coercedString:()=>ed,_cuid:()=>sa,_cuid2:()=>ua,_custom:()=>Rd,_date:()=>Id,_decode:()=>ko,_decodeAsync:()=>Ao,_default:()=>ZI,_discriminatedUnion:()=>RI,_e164:()=>va,_email:()=>ea,_emoji:()=>oa,_encode:()=>Oo,_encodeAsync:()=>Co,_endsWith:()=>On,_enum:()=>UI,_file:()=>Ad,_float32:()=>ld,_float64:()=>dd,_gt:()=>Zt,_gte:()=>Qe,_guid:()=>Ci,_includes:()=>$n,_int:()=>cd,_int32:()=>pd,_int64:()=>vd,_intersection:()=>PI,_ipv4:()=>pa,_ipv6:()=>fa,_isoDate:()=>id,_isoDateTime:()=>nd,_isoDuration:()=>ad,_isoTime:()=>od,_jwt:()=>ba,_ksuid:()=>da,_lazy:()=>KI,_length:()=>Vr,_literal:()=>LI,_lowercase:()=>En,_lt:()=>Vt,_lte:()=>dt,_mac:()=>td,_map:()=>zI,_max:()=>dt,_maxLength:()=>Br,_maxSize:()=>yr,_mime:()=>kn,_min:()=>Qe,_minLength:()=>ar,_minSize:()=>Wt,_multipleOf:()=>gr,_nan:()=>kd,_nanoid:()=>aa,_nativeEnum:()=>jI,_negative:()=>Da,_never:()=>wd,_nonnegative:()=>Sa,_nonoptional:()=>WI,_nonpositive:()=>xa,_normalize:()=>Cn,_null:()=>xd,_nullable:()=>VI,_number:()=>sd,_optional:()=>BI,_overwrite:()=>Tt,_parse:()=>yn,_parseAsync:()=>vn,_pipe:()=>HI,_positive:()=>_a,_promise:()=>XI,_property:()=>Ea,_readonly:()=>YI,_record:()=>TI,_refine:()=>Pd,_regex:()=>Sn,_safeDecode:()=>Po,_safeDecodeAsync:()=>To,_safeEncode:()=>Ro,_safeEncodeAsync:()=>Fo,_safeParse:()=>bn,_safeParseAsync:()=>_n,_set:()=>NI,_size:()=>Mr,_slugify:()=>Fn,_startsWith:()=>In,_string:()=>Ql,_stringFormat:()=>Tn,_stringbool:()=>Nd,_success:()=>GI,_superRefine:()=>Fd,_symbol:()=>_d,_templateLiteral:()=>JI,_toLowerCase:()=>Rn,_toUpperCase:()=>Pn,_transform:()=>MI,_trim:()=>An,_tuple:()=>FI,_uint32:()=>fd,_uint64:()=>bd,_ulid:()=>ca,_undefined:()=>Dd,_union:()=>CI,_unknown:()=>Ed,_uppercase:()=>wn,_url:()=>Ai,_uuid:()=>ta,_uuidv4:()=>ra,_uuidv6:()=>na,_uuidv7:()=>ia,_void:()=>$d,_xid:()=>la,_xor:()=>AI,clone:()=>Xe,config:()=>Oe,createStandardJSONSchemaMethod:()=>zn,createToJSONSchemaMethod:()=>Ud,decode:()=>t$,decodeAsync:()=>n$,describe:()=>Td,encode:()=>e$,encodeAsync:()=>r$,extractDefs:()=>br,finalize:()=>_r,flattenError:()=>_i,formatError:()=>Di,globalConfig:()=>pi,globalRegistry:()=>We,initializeContext:()=>vr,isValidBase64:()=>ul,isValidBase64URL:()=>og,isValidJWT:()=>ag,locales:()=>ki,meta:()=>zd,parse:()=>$o,parseAsync:()=>Io,prettifyError:()=>Wu,process:()=>le,regexes:()=>bt,registry:()=>Qo,safeDecode:()=>o$,safeDecodeAsync:()=>s$,safeEncode:()=>i$,safeEncodeAsync:()=>a$,safeParse:()=>Gu,safeParseAsync:()=>qu,toDotPath:()=>Mh,toJSONSchema:()=>Oa,treeifyError:()=>Zu,util:()=>I,version:()=>Lc});var Pu=Object.freeze({status:"aborted"});function y(e,t,n){function i(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:false}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let l=a.prototype,d=Object.keys(l);for(let p=0;p<d.length;p++){let m=d[p];m in s||(s[m]=l[m].bind(s));}}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function a(s){var c;let l=n?.Parent?new o:this;i(l,s),(c=l._zod).deferred??(c.deferred=[]);for(let d of l._zod.deferred)d();return l}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?true:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var So=Symbol("zod_brand"),Ft=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");}},dr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError";}},pi={};function Oe(e){return e&&Object.assign(pi,e),pi}var I={};b(I,{BIGINT_FORMAT_RANGES:()=>Vu,Class:()=>Tu,NUMBER_FORMAT_RANGES:()=>Bu,aborted:()=>hr,allowsEval:()=>Uu,assert:()=>Rw,assertEqual:()=>Ow,assertIs:()=>Cw,assertNever:()=>Aw,assertNotEqual:()=>kw,assignProp:()=>fr,base64ToUint8Array:()=>Uh,base64urlToUint8Array:()=>Yw,cached:()=>hn,captureStackTrace:()=>wo,cleanEnum:()=>Hw,cleanRegex:()=>hi,clone:()=>Xe,cloneDef:()=>Fw,createTransparentProxy:()=>Lw,defineLazy:()=>ne,esc:()=>Eo,escapeRegex:()=>vt,extend:()=>Vw,finalizeIssue:()=>it,floatSafeRemainder:()=>zu,getElementAtPath:()=>Tw,getEnumValues:()=>mi,getLengthableOrigin:()=>vi,getParsedType:()=>jw,getSizableOrigin:()=>yi,hexToUint8Array:()=>Kw,isObject:()=>Ur,isPlainObject:()=>mr,issue:()=>gn,joinValues:()=>S,jsonStringifyReplacer:()=>mn,merge:()=>Ww,mergeDefs:()=>or,normalizeParams:()=>C,nullish:()=>pr,numKeys:()=>Uw,objectClone:()=>Pw,omit:()=>Bw,optionalKeys:()=>Mu,parsedType:()=>$,partial:()=>Gw,pick:()=>Mw,prefixIssues:()=>lt,primitiveTypes:()=>Lu,promiseAllObject:()=>zw,propertyKeyTypes:()=>gi,randomString:()=>Nw,required:()=>qw,safeExtend:()=>Zw,shallowClone:()=>ju,slugify:()=>Nu,stringifyPrimitive:()=>w,uint8ArrayToBase64:()=>jh,uint8ArrayToBase64url:()=>Jw,uint8ArrayToHex:()=>Xw,unwrapMessage:()=>fi});function Ow(e){return e}function kw(e){return e}function Cw(e){}function Aw(e){throw new Error("Unexpected value in exhaustive check")}function Rw(e){}function mi(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function S(e,t="|"){return e.map(n=>w(n)).join(t)}function mn(e,t){return typeof t=="bigint"?t.toString():t}function hn(e){return {get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function pr(e){return e==null}function hi(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function zu(e,t){let n=(e.toString().split(".")[1]||"").length,i=t.toString(),r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){let c=i.match(/\d?e-(\d?)/);c?.[1]&&(r=Number.parseInt(c[1]));}let o=n>r?n:r,a=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return a%s/10**o}var Nh=Symbol("evaluating");function ne(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==Nh)return i===void 0&&(i=Nh,i=n()),i},set(r){Object.defineProperty(e,t,{value:r});},configurable:true});}function Pw(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function fr(e,t,n){Object.defineProperty(e,t,{value:n,writable:true,enumerable:true,configurable:true});}function or(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i);}return Object.defineProperties({},t)}function Fw(e){return or(e._zod.def)}function Tw(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function zw(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function Nw(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function Eo(e){return JSON.stringify(e)}function Nu(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var wo="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ur(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Uu=hn(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return false;try{let e=Function;return new e(""),!0}catch{return false}});function mr(e){if(Ur(e)===false)return false;let t=e.constructor;if(t===void 0||typeof t!="function")return true;let n=t.prototype;return !(Ur(n)===false||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===false)}function ju(e){return mr(e)?{...e}:Array.isArray(e)?[...e]:e}function Uw(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var jw=e=>{let t=typeof e;switch(t){case "undefined":return "undefined";case "string":return "string";case "number":return Number.isNaN(e)?"nan":"number";case "boolean":return "boolean";case "function":return "function";case "bigint":return "bigint";case "symbol":return "symbol";case "object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},gi=new Set(["string","number","symbol"]),Lu=new Set(["string","number","bigint","boolean","symbol","undefined"]);function vt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Xe(e,t,n){let i=new e._zod.constr(t??e._zod.def);return (!t||n?.parent)&&(i._zod.parent=e),i}function C(e){let t=e;if(!t)return {};if(typeof t=="string")return {error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message;}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Lw(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function w(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Mu(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Bu={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]},Vu={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Mw(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=or(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=n.shape[s]);}return fr(this,"shape",a),a},checks:[]});return Xe(e,o)}function Bw(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=or(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s];}return fr(this,"shape",a),a},checks:[]});return Xe(e,o)}function Vw(e,t){if(!mr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=or(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return fr(this,"shape",o),o}});return Xe(e,r)}function Zw(e,t){if(!mr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=or(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return fr(this,"shape",i),i}});return Xe(e,n)}function Ww(e,t){let n=or(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return fr(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Xe(e,n)}function Gw(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=or(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(n)for(let l in n){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=e?new e({type:"optional",innerType:s[l]}):s[l]);}else for(let l in s)c[l]=e?new e({type:"optional",innerType:s[l]}):s[l];return fr(this,"shape",c),c},checks:[]});return Xe(t,a)}function qw(e,t,n){let i=or(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:r[a]}));}else for(let a in r)o[a]=new e({type:"nonoptional",innerType:r[a]});return fr(this,"shape",o),o}});return Xe(t,i)}function hr(e,t=0){if(e.aborted===true)return true;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==true)return true;return false}function lt(e,t){return t.map(n=>{var i;return (i=n).path??(i.path=[]),n.path.unshift(e),n})}function fi(e){return typeof e=="string"?e:e?.message}function it(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let r=fi(e.inst?._zod.def?.error?.(e))??fi(t?.error?.(e))??fi(n.customError?.(e))??fi(n.localeError?.(e))??"Invalid input";i.message=r;}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function yi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function vi(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function $(e){let t=typeof e;switch(t){case "number":return Number.isNaN(e)?"nan":"number";case "object":{if(e===null)return "null";if(Array.isArray(e))return "array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function gn(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function Hw(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Uh(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function jh(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Yw(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return Uh(t+n)}function Jw(e){return jh(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Kw(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function Xw(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Tu=class{constructor(...t){}};var Lh=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:false}),Object.defineProperty(e,"issues",{value:t,enumerable:false}),e.message=JSON.stringify(t,mn,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},bi=y("$ZodError",Lh),ot=y("$ZodError",Lh,{Parent:Error});function _i(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return {formErrors:i,fieldErrors:n}}function Di(e,t=n=>n.message){let n={_errors:[]},i=r=>{for(let o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else {let a=n,s=0;for(;s<o.path.length;){let c=o.path[s];s===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(o))):a[c]=a[c]||{_errors:[]},a=a[c],s++;}}};return i(e),n}function Zu(e,t=n=>n.message){let n={errors:[]},i=(r,o=[])=>{var a,s;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>i({issues:l},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else {let l=[...o,...c.path];if(l.length===0){n.errors.push(t(c));continue}let d=n,p=0;for(;p<l.length;){let m=l[p],h=p===l.length-1;typeof m=="string"?(d.properties??(d.properties={}),(a=d.properties)[m]??(a[m]={errors:[]}),d=d.properties[m]):(d.items??(d.items=[]),(s=d.items)[m]??(s[m]={errors:[]}),d=d.items[m]),h&&d.errors.push(t(c)),p++;}}};return i(e),n}function Mh(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function Wu(e){let t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${Mh(i.path)}`);return t.join(`
6
+ `)}var yn=e=>(t,n,i,r)=>{let o=i?Object.assign(i,{async:false}):{async:false},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Ft;if(a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>it(c,o,Oe())));throw wo(s,r?.callee),s}return a.value},$o=yn(ot),vn=e=>async(t,n,i,r)=>{let o=i?Object.assign(i,{async:true}):{async:true},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>it(c,o,Oe())));throw wo(s,r?.callee),s}return a.value},Io=vn(ot),bn=e=>(t,n,i)=>{let r=i?{...i,async:false}:{async:false},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Ft;return o.issues.length?{success:false,error:new(e??bi)(o.issues.map(a=>it(a,r,Oe())))}:{success:true,data:o.value}},Gu=bn(ot),_n=e=>async(t,n,i)=>{let r=i?Object.assign(i,{async:true}):{async:true},o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:false,error:new e(o.issues.map(a=>it(a,r,Oe())))}:{success:true,data:o.value}},qu=_n(ot),Oo=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return yn(e)(t,n,r)},e$=Oo(ot),ko=e=>(t,n,i)=>yn(e)(t,n,i),t$=ko(ot),Co=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return vn(e)(t,n,r)},r$=Co(ot),Ao=e=>async(t,n,i)=>vn(e)(t,n,i),n$=Ao(ot),Ro=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bn(e)(t,n,r)},i$=Ro(ot),Po=e=>(t,n,i)=>bn(e)(t,n,i),o$=Po(ot),Fo=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _n(e)(t,n,r)},a$=Fo(ot),To=e=>async(t,n,i)=>_n(e)(t,n,i),s$=To(ot);var bt={};b(bt,{base64:()=>cc,base64url:()=>zo,bigint:()=>hc,boolean:()=>yc,browserEmail:()=>h$,cidrv4:()=>sc,cidrv6:()=>uc,cuid:()=>Hu,cuid2:()=>Yu,date:()=>dc,datetime:()=>fc,domain:()=>v$,duration:()=>ec,e164:()=>lc,email:()=>rc,emoji:()=>nc,extendedDuration:()=>u$,guid:()=>tc,hex:()=>b$,hostname:()=>y$,html5Email:()=>p$,idnEmail:()=>m$,integer:()=>gc,ipv4:()=>ic,ipv6:()=>oc,ksuid:()=>Xu,lowercase:()=>_c,mac:()=>ac,md5_base64:()=>D$,md5_base64url:()=>x$,md5_hex:()=>_$,nanoid:()=>Qu,null:()=>vc,number:()=>No,rfc5322Email:()=>f$,sha1_base64:()=>E$,sha1_base64url:()=>w$,sha1_hex:()=>S$,sha256_base64:()=>I$,sha256_base64url:()=>O$,sha256_hex:()=>$$,sha384_base64:()=>C$,sha384_base64url:()=>A$,sha384_hex:()=>k$,sha512_base64:()=>P$,sha512_base64url:()=>F$,sha512_hex:()=>R$,string:()=>mc,time:()=>pc,ulid:()=>Ju,undefined:()=>bc,unicodeEmail:()=>Bh,uppercase:()=>Dc,uuid:()=>jr,uuid4:()=>c$,uuid6:()=>l$,uuid7:()=>d$,xid:()=>Ku});var Hu=/^[cC][^\s-]{8,}$/,Yu=/^[0-9a-z]+$/,Ju=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ku=/^[0-9a-vA-V]{20}$/,Xu=/^[A-Za-z0-9]{27}$/,Qu=/^[a-zA-Z0-9_-]{21}$/,ec=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,u$=/^[-+]?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)?)??$/,tc=/^([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})$/,jr=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)$/,c$=jr(4),l$=jr(6),d$=jr(7),rc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,p$=/^[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])?)*$/,f$=/^(([^<>()\[\]\\.,;:\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,}))$/,Bh=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,m$=Bh,h$=/^[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])?)*$/,g$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function nc(){return new RegExp(g$,"u")}var ic=/^(?:(?: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])$/,oc=/^(([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}|:))$/,ac=e=>{let t=vt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},sc=/^((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])$/,uc=/^(([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])$/,cc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,zo=/^[A-Za-z0-9_-]*$/,y$=/^(?=.{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])?)*\.?$/,v$=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,lc=/^\+[1-9]\d{6,14}$/,Vh="(?:(?:\\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])))",dc=new RegExp(`^${Vh}$`);function Zh(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function pc(e){return new RegExp(`^${Zh(e)}$`)}function fc(e){let t=Zh({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${n.join("|")})`;return new RegExp(`^${Vh}T(?:${i})$`)}var mc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},hc=/^-?\d+n?$/,gc=/^-?\d+$/,No=/^-?\d+(?:\.\d+)?$/,yc=/^(?:true|false)$/i,vc=/^null$/i;var bc=/^undefined$/i;var _c=/^[^A-Z]*$/,Dc=/^[^a-z]*$/,b$=/^[0-9a-fA-F]*$/;function xi(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Si(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var _$=/^[0-9a-fA-F]{32}$/,D$=xi(22,"=="),x$=Si(22),S$=/^[0-9a-fA-F]{40}$/,E$=xi(27,"="),w$=Si(27),$$=/^[0-9a-fA-F]{64}$/,I$=xi(43,"="),O$=Si(43),k$=/^[0-9a-fA-F]{96}$/,C$=xi(64,""),A$=Si(64),R$=/^[0-9a-fA-F]{128}$/,P$=xi(86,"=="),F$=Si(86);var ge=y("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[]);}),Gh={number:"number",bigint:"bigint",object:"date"},Uo=y("$ZodCheckLessThan",(e,t)=>{ge.init(e,t);let n=Gh[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value);}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),jo=y("$ZodCheckGreaterThan",(e,t)=>{ge.init(e,t);let n=Gh[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value);}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),xc=y("$ZodCheckMultipleOf",(e,t)=>{ge.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value);}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):zu(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort});};}),Sc=y("$ZodCheckNumberFormat",(e,t)=>{ge.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=Bu[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=r,s.maximum=o,n&&(s.pattern=gc);}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:false,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:true,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:true,continue:!t.abort});return}}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:true,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:true,inst:e,continue:!t.abort});};}),Ec=y("$ZodCheckBigIntFormat",(e,t)=>{ge.init(e,t);let[n,i]=Vu[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i;}),e._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:true,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:true,inst:e,continue:!t.abort});};}),wc=y("$ZodCheckMaxSize",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !pr(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum);}),e._zod.check=i=>{let r=i.value;r.size<=t.maximum||i.issues.push({origin:yi(r),code:"too_big",maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),$c=y("$ZodCheckMinSize",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !pr(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum);}),e._zod.check=i=>{let r=i.value;r.size>=t.minimum||i.issues.push({origin:yi(r),code:"too_small",minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),Ic=y("$ZodCheckSizeEquals",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !pr(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size;}),e._zod.check=i=>{let r=i.value,o=r.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:yi(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:true,exact:true,input:i.value,inst:e,continue:!t.abort});};}),Oc=y("$ZodCheckMaxLength",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !pr(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum);}),e._zod.check=i=>{let r=i.value;if(r.length<=t.maximum)return;let a=vi(r);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),kc=y("$ZodCheckMinLength",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !pr(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum);}),e._zod.check=i=>{let r=i.value;if(r.length>=t.minimum)return;let a=vi(r);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),Cc=y("$ZodCheckLengthEquals",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !pr(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length;}),e._zod.check=i=>{let r=i.value,o=r.length;if(o===t.length)return;let a=vi(r),s=o>t.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:true,exact:true,input:i.value,inst:e,continue:!t.abort});};}),Dn=y("$ZodCheckStringFormat",(e,t)=>{var n,i;ge.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern));}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort});}):(i=e._zod).check??(i.check=()=>{});}),Ac=y("$ZodCheckRegex",(e,t)=>{Dn.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort});};}),Rc=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=_c),Dn.init(e,t);}),Pc=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Dc),Dn.init(e,t);}),Fc=y("$ZodCheckIncludes",(e,t)=>{ge.init(e,t);let n=vt(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i);}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort});};}),Tc=y("$ZodCheckStartsWith",(e,t)=>{ge.init(e,t);let n=new RegExp(`^${vt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n);}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort});};}),zc=y("$ZodCheckEndsWith",(e,t)=>{ge.init(e,t);let n=new RegExp(`.*${vt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n);}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort});};});function Wh(e,t,n){e.issues.length&&t.issues.push(...lt(n,e.issues));}var Nc=y("$ZodCheckProperty",(e,t)=>{ge.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>Wh(r,n,t.property));Wh(i,n,t.property);};}),Uc=y("$ZodCheckMimeType",(e,t)=>{ge.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime;}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort});};}),jc=y("$ZodCheckOverwrite",(e,t)=>{ge.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value);};});var Ei=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t);}indented(t){this.indent+=1,t(this),this.indent-=1;}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
7
7
  `).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a);}compile(){let t=Function,n=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,r.join(`
8
- `))}};var Pc={major:4,minor:3,patch:6};var X=v("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Pc;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let r of i)for(let o of r._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let r=(a,s,c)=>{let l=dr(a),d;for(let p of s){if(p._zod.def.when){if(!p._zod.def.when(a))continue}else if(l)continue;let m=a.issues.length,h=p._zod.check(a);if(h instanceof Promise&&c?.async===false)throw new Tt;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,a.issues.length!==m&&(l||(l=dr(a,m)));});else {if(a.issues.length===m)continue;l||(l=dr(a,m));}}return d?d.then(()=>a):a},o=(a,s,c)=>{if(dr(a))return a.aborted=true,a;let l=r(s,i,c);if(l instanceof Promise){if(c.async===false)throw new Tt;return l.then(d=>e._zod.parse(d,c))}return e._zod.parse(l,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:true});return l instanceof Promise?l.then(d=>o(d,a,s)):o(l,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===false)throw new Tt;return c.then(l=>r(l,i,s))}return r(c,i,s)};}ne(e,"~standard",()=>({validate:r=>{try{let o=Mu(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Bu(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}));}),Ar=v("$ZodString",(e,t)=>{X.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??cc(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value);}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n};}),fe=v("$ZodStringFormat",(e,t)=>{bn.init(e,t),Ar.init(e,t);}),zc=v("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Ju),fe.init(e,t);}),Uc=v("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Rr(i));}else t.pattern??(t.pattern=Rr());fe.init(e,t);}),jc=v("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ku),fe.init(e,t);}),Lc=v("$ZodURL",(e,t)=>{fe.init(e,t),e._zod.check=n=>{try{let i=n.value.trim(),r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});}};}),Mc=v("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Xu()),fe.init(e,t);}),Bc=v("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Hu),fe.init(e,t);}),Vc=v("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Vu),fe.init(e,t);}),Zc=v("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Zu),fe.init(e,t);}),Wc=v("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Wu),fe.init(e,t);}),Gc=v("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Gu),fe.init(e,t);}),qc=v("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=qu),fe.init(e,t);}),Hc=v("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=uc(t)),fe.init(e,t);}),Yc=v("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ac),fe.init(e,t);}),Jc=v("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=sc(t)),fe.init(e,t);}),Kc=v("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Yu),fe.init(e,t);}),Xc=v("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Qu),fe.init(e,t),e._zod.bag.format="ipv4";}),Qc=v("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ec),fe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`);}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort});}};}),el=v("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=tc(t.delimiter)),fe.init(e,t),e._zod.bag.format="mac";}),tl=v("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=rc),fe.init(e,t);}),rl=v("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=nc),fe.init(e,t),e._zod.check=n=>{let i=n.value.split("/");try{if(i.length!==2)throw new Error;let[r,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`);}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort});}};});function nl(e){if(e==="")return true;if(e.length%4!==0)return false;try{return atob(e),!0}catch{return false}}var il=v("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ic),fe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{nl(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort});};});function Mh(e){if(!To.test(e))return false;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return nl(n)}var ol=v("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=To),fe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Mh(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort});};}),al=v("$ZodE164",(e,t)=>{t.pattern??(t.pattern=oc),fe.init(e,t);});function Bh(e,t=null){try{let n=e.split(".");if(n.length!==3)return !1;let[i]=n;if(!i)return !1;let r=JSON.parse(atob(i));return !("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return false}}var sl=v("$ZodJWT",(e,t)=>{fe.init(e,t),e._zod.check=n=>{Bh(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort});};}),ul=v("$ZodCustomStringFormat",(e,t)=>{fe.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort});};}),Bo=v("$ZodNumber",(e,t)=>{X.init(e,t),e._zod.pattern=e._zod.bag.pattern??Fo,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value);}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n};}),cl=v("$ZodNumberFormat",(e,t)=>{yc.init(e,t),Bo.init(e,t);}),Si=v("$ZodBoolean",(e,t)=>{X.init(e,t),e._zod.pattern=pc,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value;}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n};}),Vo=v("$ZodBigInt",(e,t)=>{X.init(e,t),e._zod.pattern=lc,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value);}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n};}),ll=v("$ZodBigIntFormat",(e,t)=>{bc.init(e,t),Vo.init(e,t);}),dl=v("$ZodSymbol",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n};}),pl=v("$ZodUndefined",(e,t)=>{X.init(e,t),e._zod.pattern=mc,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n};}),fl=v("$ZodNull",(e,t)=>{X.init(e,t),e._zod.pattern=fc,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n};}),ml=v("$ZodAny",(e,t)=>{X.init(e,t),e._zod.parse=n=>n;}),hl=v("$ZodUnknown",(e,t)=>{X.init(e,t),e._zod.parse=n=>n;}),gl=v("$ZodNever",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n);}),vl=v("$ZodVoid",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n};}),yl=v("$ZodDate",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value);}catch{}let r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n};});function Ch(e,t,n){e.issues.length&&t.issues.push(...ct(n,e.issues)),t.value[n]=e.value;}var bl=v("$ZodArray",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let o=[];for(let a=0;a<r.length;a++){let s=r[a],c=t.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(l=>Ch(l,n,a))):Ch(c,n,a);}return o.length?Promise.all(o).then(()=>n):n};});function Mo(e,t,n,i,r){if(e.issues.length){if(r&&!(n in i))return;t.issues.push(...ct(n,e.issues));}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value;}function Vh(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let n=Nu(e.shape);return {...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Zh(e,t,n,i,r,o){let a=[],s=r.keySet,c=r.catchall._zod,l=c.def.type,d=c.optout==="optional";for(let p in t){if(s.has(p))continue;if(l==="never"){a.push(p);continue}let m=c.run({value:t[p],issues:[]},i);m instanceof Promise?e.push(m.then(h=>Mo(h,n,p,t,d))):Mo(m,n,p,t,d);}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var Wh=v("$ZodObject",(e,t)=>{if(X.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}});}let i=fn(()=>Vh(t));ne(e._zod,"propValues",()=>{let s=t.shape,c={};for(let l in s){let d=s[l]._zod;if(d.values){c[l]??(c[l]=new Set);for(let p of d.values)c[l].add(p);}}return c});let r=Cr,o=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=i.value);let l=s.value;if(!r(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),s;s.value={};let d=[],p=a.shape;for(let m of a.keys){let h=p[m],y=h._zod.optout==="optional",x=h._zod.run({value:l[m],issues:[]},c);x instanceof Promise?d.push(x.then(b=>Mo(b,s,m,l,y))):Mo(x,s,m,l,y);}return o?Zh(d,l,s,c,i.value,e):d.length?Promise.all(d).then(()=>s):s};}),_l=v("$ZodObjectJIT",(e,t)=>{Wh.init(e,t);let n=e._zod.parse,i=fn(()=>Vh(t)),r=m=>{let h=new xi(["shape","payload","ctx"]),y=i.value,x=B=>{let A=Do(B);return `shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};h.write("const input = payload.value;");let b=Object.create(null),j=0;for(let B of y.keys)b[B]=`key_${j++}`;h.write("const newResult = {};");for(let B of y.keys){let A=b[B],k=Do(B),re=m[B]?._zod?.optout==="optional";h.write(`const ${A} = ${x(B)};`),re?h.write(`
9
- if (${A}.issues.length) {
8
+ `))}};var Lc={major:4,minor:3,patch:6};var X=y("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Lc;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let r of i)for(let o of r._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let r=(a,s,c)=>{let l=hr(a),d;for(let p of s){if(p._zod.def.when){if(!p._zod.def.when(a))continue}else if(l)continue;let m=a.issues.length,h=p._zod.check(a);if(h instanceof Promise&&c?.async===false)throw new Ft;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,a.issues.length!==m&&(l||(l=hr(a,m)));});else {if(a.issues.length===m)continue;l||(l=hr(a,m));}}return d?d.then(()=>a):a},o=(a,s,c)=>{if(hr(a))return a.aborted=true,a;let l=r(s,i,c);if(l instanceof Promise){if(c.async===false)throw new Ft;return l.then(d=>e._zod.parse(d,c))}return e._zod.parse(l,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:true});return l instanceof Promise?l.then(d=>o(d,a,s)):o(l,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===false)throw new Ft;return c.then(l=>r(l,i,s))}return r(c,i,s)};}ne(e,"~standard",()=>({validate:r=>{try{let o=Gu(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return qu(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}));}),Lr=y("$ZodString",(e,t)=>{X.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??mc(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value);}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n};}),me=y("$ZodStringFormat",(e,t)=>{Dn.init(e,t),Lr.init(e,t);}),Bc=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=tc),me.init(e,t);}),Vc=y("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=jr(i));}else t.pattern??(t.pattern=jr());me.init(e,t);}),Zc=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=rc),me.init(e,t);}),Wc=y("$ZodURL",(e,t)=>{me.init(e,t),e._zod.check=n=>{try{let i=n.value.trim(),r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});}};}),Gc=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=nc()),me.init(e,t);}),qc=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Qu),me.init(e,t);}),Hc=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Hu),me.init(e,t);}),Yc=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Yu),me.init(e,t);}),Jc=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Ju),me.init(e,t);}),Kc=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Ku),me.init(e,t);}),Xc=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Xu),me.init(e,t);}),Qc=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=fc(t)),me.init(e,t);}),el=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=dc),me.init(e,t);}),tl=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=pc(t)),me.init(e,t);}),rl=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ec),me.init(e,t);}),nl=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=ic),me.init(e,t),e._zod.bag.format="ipv4";}),il=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=oc),me.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`);}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort});}};}),ol=y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=ac(t.delimiter)),me.init(e,t),e._zod.bag.format="mac";}),al=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=sc),me.init(e,t);}),sl=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=uc),me.init(e,t),e._zod.check=n=>{let i=n.value.split("/");try{if(i.length!==2)throw new Error;let[r,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`);}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort});}};});function ul(e){if(e==="")return true;if(e.length%4!==0)return false;try{return atob(e),!0}catch{return false}}var cl=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=cc),me.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ul(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort});};});function og(e){if(!zo.test(e))return false;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ul(n)}var ll=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=zo),me.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{og(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort});};}),dl=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=lc),me.init(e,t);});function ag(e,t=null){try{let n=e.split(".");if(n.length!==3)return !1;let[i]=n;if(!i)return !1;let r=JSON.parse(atob(i));return !("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return false}}var pl=y("$ZodJWT",(e,t)=>{me.init(e,t),e._zod.check=n=>{ag(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort});};}),fl=y("$ZodCustomStringFormat",(e,t)=>{me.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort});};}),Wo=y("$ZodNumber",(e,t)=>{X.init(e,t),e._zod.pattern=e._zod.bag.pattern??No,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value);}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n};}),ml=y("$ZodNumberFormat",(e,t)=>{Sc.init(e,t),Wo.init(e,t);}),wi=y("$ZodBoolean",(e,t)=>{X.init(e,t),e._zod.pattern=yc,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value;}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n};}),Go=y("$ZodBigInt",(e,t)=>{X.init(e,t),e._zod.pattern=hc,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value);}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n};}),hl=y("$ZodBigIntFormat",(e,t)=>{Ec.init(e,t),Go.init(e,t);}),gl=y("$ZodSymbol",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n};}),yl=y("$ZodUndefined",(e,t)=>{X.init(e,t),e._zod.pattern=bc,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n};}),vl=y("$ZodNull",(e,t)=>{X.init(e,t),e._zod.pattern=vc,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n};}),bl=y("$ZodAny",(e,t)=>{X.init(e,t),e._zod.parse=n=>n;}),_l=y("$ZodUnknown",(e,t)=>{X.init(e,t),e._zod.parse=n=>n;}),Dl=y("$ZodNever",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n);}),xl=y("$ZodVoid",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n};}),Sl=y("$ZodDate",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value);}catch{}let r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n};});function Hh(e,t,n){e.issues.length&&t.issues.push(...lt(n,e.issues)),t.value[n]=e.value;}var El=y("$ZodArray",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let o=[];for(let a=0;a<r.length;a++){let s=r[a],c=t.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(l=>Hh(l,n,a))):Hh(c,n,a);}return o.length?Promise.all(o).then(()=>n):n};});function Zo(e,t,n,i,r){if(e.issues.length){if(r&&!(n in i))return;t.issues.push(...lt(n,e.issues));}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value;}function sg(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let n=Mu(e.shape);return {...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function ug(e,t,n,i,r,o){let a=[],s=r.keySet,c=r.catchall._zod,l=c.def.type,d=c.optout==="optional";for(let p in t){if(s.has(p))continue;if(l==="never"){a.push(p);continue}let m=c.run({value:t[p],issues:[]},i);m instanceof Promise?e.push(m.then(h=>Zo(h,n,p,t,d))):Zo(m,n,p,t,d);}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var cg=y("$ZodObject",(e,t)=>{if(X.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}});}let i=hn(()=>sg(t));ne(e._zod,"propValues",()=>{let s=t.shape,c={};for(let l in s){let d=s[l]._zod;if(d.values){c[l]??(c[l]=new Set);for(let p of d.values)c[l].add(p);}}return c});let r=Ur,o=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=i.value);let l=s.value;if(!r(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),s;s.value={};let d=[],p=a.shape;for(let m of a.keys){let h=p[m],v=h._zod.optout==="optional",x=h._zod.run({value:l[m],issues:[]},c);x instanceof Promise?d.push(x.then(b=>Zo(b,s,m,l,v))):Zo(x,s,m,l,v);}return o?ug(d,l,s,c,i.value,e):d.length?Promise.all(d).then(()=>s):s};}),wl=y("$ZodObjectJIT",(e,t)=>{cg.init(e,t);let n=e._zod.parse,i=hn(()=>sg(t)),r=m=>{let h=new Ei(["shape","payload","ctx"]),v=i.value,x=B=>{let R=Eo(B);return `shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};h.write("const input = payload.value;");let b=Object.create(null),j=0;for(let B of v.keys)b[B]=`key_${j++}`;h.write("const newResult = {};");for(let B of v.keys){let R=b[B],k=Eo(B),re=m[B]?._zod?.optout==="optional";h.write(`const ${R} = ${x(B)};`),re?h.write(`
9
+ if (${R}.issues.length) {
10
10
  if (${k} in input) {
11
- payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
11
+ payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
12
12
  ...iss,
13
13
  path: iss.path ? [${k}, ...iss.path] : [${k}]
14
14
  })));
15
15
  }
16
16
  }
17
17
 
18
- if (${A}.value === undefined) {
18
+ if (${R}.value === undefined) {
19
19
  if (${k} in input) {
20
20
  newResult[${k}] = undefined;
21
21
  }
22
22
  } else {
23
- newResult[${k}] = ${A}.value;
23
+ newResult[${k}] = ${R}.value;
24
24
  }
25
25
 
26
26
  `):h.write(`
27
- if (${A}.issues.length) {
28
- payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
27
+ if (${R}.issues.length) {
28
+ payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
29
29
  ...iss,
30
30
  path: iss.path ? [${k}, ...iss.path] : [${k}]
31
31
  })));
32
32
  }
33
33
 
34
- if (${A}.value === undefined) {
34
+ if (${R}.value === undefined) {
35
35
  if (${k} in input) {
36
36
  newResult[${k}] = undefined;
37
37
  }
38
38
  } else {
39
- newResult[${k}] = ${A}.value;
39
+ newResult[${k}] = ${R}.value;
40
40
  }
41
41
 
42
- `);}h.write("payload.value = newResult;"),h.write("return payload;");let H=h.compile();return (B,A)=>H(m,B,A)},o,a=Cr,s=!li.jitless,l=s&&Tu.value,d=t.catchall,p;e._zod.parse=(m,h)=>{p??(p=i.value);let y=m.value;return a(y)?s&&l&&h?.async===false&&h.jitless!==true?(o||(o=r(t.shape)),m=o(m,h),d?Zh([],y,m,h,p,e):m):n(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),m)};});function Rh(e,t,n,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let r=e.filter(o=>!dr(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>it(a,i,we())))}),t)}var Ei=v("$ZodUnion",(e,t)=>{X.init(e,t),ne(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),ne(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ne(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),ne(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>fi(o.source)).join("|")})$`)}});let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=false,s=[];for(let c of t.options){let l=c._zod.run({value:r.value,issues:[]},o);if(l instanceof Promise)s.push(l),a=true;else {if(l.issues.length===0)return l;s.push(l);}}return a?Promise.all(s).then(c=>Rh(c,r,e,o)):Rh(s,r,e,o)};});function Ah(e,t,n,i){let r=e.filter(o=>o.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>it(a,i,we())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:false}),t)}var Dl=v("$ZodXor",(e,t)=>{Ei.init(e,t),t.inclusive=false;let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=false,s=[];for(let c of t.options){let l=c._zod.run({value:r.value,issues:[]},o);l instanceof Promise?(s.push(l),a=true):s.push(l);}return a?Promise.all(s).then(c=>Ah(c,r,e,o)):Ah(s,r,e,o)};}),xl=v("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=false,Ei.init(e,t);let n=e._zod.parse;ne(e._zod,"propValues",()=>{let r={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,c]of Object.entries(a)){r[s]||(r[s]=new Set);for(let l of c)r[s].add(l);}}return r});let i=fn(()=>{let r=t.options,o=new Map;for(let a of r){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a);}}return o});e._zod.parse=(r,o)=>{let a=r.value;if(!Cr(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)};}),Sl=v("$ZodIntersection",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,l])=>Th(n,c,l)):Th(n,o,a)};});function Nc(e,t){if(e===t)return {valid:true,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(lr(e)&&lr(t)){let n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(let o of i){let a=Nc(e[o],t[o]);if(!a.valid)return {valid:false,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data;}return {valid:true,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return {valid:false,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],o=t[i],a=Nc(r,o);if(!a.valid)return {valid:false,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data);}return {valid:true,data:n}}return {valid:false,mergeErrorPath:[]}}function Th(e,t,n){let i=new Map,r;for(let s of t.issues)if(s.code==="unrecognized_keys"){r??(r=s);for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).l=true;}else e.issues.push(s);for(let s of n.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).r=true;else e.issues.push(s);let o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&r&&e.issues.push({...r,keys:o}),dr(e))return e;let a=Nc(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Zo=v("$ZodTuple",(e,t)=>{X.init(e,t);let n=t.items;e._zod.parse=(i,r)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],s=[...n].reverse().findIndex(d=>d._zod.optin!=="optional"),c=s===-1?0:n.length-s;if(!t.rest){let d=o.length>n.length,p=o.length<c-1;if(d||p)return i.issues.push({...d?{code:"too_big",maximum:n.length,inclusive:true}:{code:"too_small",minimum:n.length},input:o,inst:e,origin:"array"}),i}let l=-1;for(let d of n){if(l++,l>=o.length&&l>=c)continue;let p=d._zod.run({value:o[l],issues:[]},r);p instanceof Promise?a.push(p.then(m=>zo(m,i,l))):zo(p,i,l);}if(t.rest){let d=o.slice(n.length);for(let p of d){l++;let m=t.rest._zod.run({value:p,issues:[]},r);m instanceof Promise?a.push(m.then(h=>zo(h,i,l))):zo(m,i,l);}}return a.length?Promise.all(a).then(()=>i):i};});function zo(e,t,n){e.issues.length&&t.issues.push(...ct(n,e.issues)),t.value[n]=e.value;}var El=v("$ZodRecord",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!lr(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let s=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){s.add(typeof l=="number"?l.toString():l);let d=t.valueType._zod.run({value:r[l],issues:[]},i);d instanceof Promise?o.push(d.then(p=>{p.issues.length&&n.issues.push(...ct(l,p.issues)),n.value[l]=p.value;})):(d.issues.length&&n.issues.push(...ct(l,d.issues)),n.value[l]=d.value);}let c;for(let l in r)s.has(l)||(c=c??[],c.push(l));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:c});}else {n.value={};for(let s of Reflect.ownKeys(r)){if(s==="__proto__")continue;let c=t.keyType._zod.run({value:s,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Fo.test(s)&&c.issues.length){let p=t.keyType._zod.run({value:Number(s),issues:[]},i);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(c=p);}if(c.issues.length){t.mode==="loose"?n.value[s]=r[s]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(p=>it(p,i,we())),input:s,path:[s],inst:e});continue}let d=t.valueType._zod.run({value:r[s],issues:[]},i);d instanceof Promise?o.push(d.then(p=>{p.issues.length&&n.issues.push(...ct(s,p.issues)),n.value[c.value]=p.value;})):(d.issues.length&&n.issues.push(...ct(s,d.issues)),n.value[c.value]=d.value);}}return o.length?Promise.all(o).then(()=>n):n};}),wl=v("$ZodMap",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let o=[];n.value=new Map;for(let[a,s]of r){let c=t.keyType._zod.run({value:a,issues:[]},i),l=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||l instanceof Promise?o.push(Promise.all([c,l]).then(([d,p])=>{Fh(d,p,n,a,r,e,i);})):Fh(c,l,n,a,r,e,i);}return o.length?Promise.all(o).then(()=>n):n};});function Fh(e,t,n,i,r,o,a){e.issues.length&&(mi.has(typeof i)?n.issues.push(...ct(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(s=>it(s,a,we()))})),t.issues.length&&(mi.has(typeof i)?n.issues.push(...ct(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(s=>it(s,a,we()))})),n.value.set(e.value,t.value);}var $l=v("$ZodSet",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of r){let s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>Ph(c,n))):Ph(s,n);}return o.length?Promise.all(o).then(()=>n):n};});function Ph(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value);}var Il=v("$ZodEnum",(e,t)=>{X.init(e,t);let n=pi(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>mi.has(typeof r)).map(r=>typeof r=="string"?bt(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r};}),Ol=v("$ZodLiteral",(e,t)=>{if(X.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?bt(i):i?bt(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,r)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i};}),kl=v("$ZodFile",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n};}),Cl=v("$ZodTransform",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new sr(e.constructor.name);let r=t.transform(n.value,n);if(i.async)return (r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new Tt;return n.value=r,n};});function Nh(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Wo=v("$ZodOptional",(e,t)=>{X.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ne(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ne(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${fi(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Nh(o,n.value)):Nh(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)};}),Rl=v("$ZodExactOptional",(e,t)=>{Wo.init(e,t),ne(e._zod,"values",()=>t.innerType._zod.values),ne(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i);}),Al=v("$ZodNullable",(e,t)=>{X.init(e,t),ne(e._zod,"optin",()=>t.innerType._zod.optin),ne(e._zod,"optout",()=>t.innerType._zod.optout),ne(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${fi(n.source)}|null)$`):void 0}),ne(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i);}),Tl=v("$ZodDefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>zh(o,t)):zh(r,t)};});function zh(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Fl=v("$ZodPrefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i));}),Pl=v("$ZodNonOptional",(e,t)=>{X.init(e,t),ne(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Uh(o,e)):Uh(r,e)};});function Uh(e,t){return !e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Nl=v("$ZodSuccess",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new sr("ZodSuccess");let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)};}),zl=v("$ZodCatch",(e,t)=>{X.init(e,t),ne(e._zod,"optin",()=>t.innerType._zod.optin),ne(e._zod,"optout",()=>t.innerType._zod.optout),ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>it(a,i,we()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>it(o,i,we()))},input:n.value}),n.issues=[]),n)};}),Ul=v("$ZodNaN",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n);}),jl=v("$ZodPipe",(e,t)=>{X.init(e,t),ne(e._zod,"values",()=>t.in._zod.values),ne(e._zod,"optin",()=>t.in._zod.optin),ne(e._zod,"optout",()=>t.out._zod.optout),ne(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Uo(a,t.in,i)):Uo(o,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>Uo(o,t.out,i)):Uo(r,t.out,i)};});function Uo(e,t,n){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues},n)}var wi=v("$ZodCodec",(e,t)=>{X.init(e,t),ne(e._zod,"values",()=>t.in._zod.values),ne(e._zod,"optin",()=>t.in._zod.optin),ne(e._zod,"optout",()=>t.out._zod.optout),ne(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(n,i);return o instanceof Promise?o.then(a=>jo(a,t,i)):jo(o,t,i)}else {let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>jo(a,t,i)):jo(o,t,i)}};});function jo(e,t,n){if(e.issues.length)return e.aborted=true,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>Lo(e,o,t.out,n)):Lo(e,r,t.out,n)}else {let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>Lo(e,o,t.in,n)):Lo(e,r,t.in,n)}}function Lo(e,t,n,i){return e.issues.length?(e.aborted=true,e):n._zod.run({value:t,issues:e.issues},i)}var Ll=v("$ZodReadonly",(e,t)=>{X.init(e,t),ne(e._zod,"propValues",()=>t.innerType._zod.propValues),ne(e._zod,"values",()=>t.innerType._zod.values),ne(e._zod,"optin",()=>t.innerType?._zod?.optin),ne(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(jh):jh(r)};});function jh(e){return e.value=Object.freeze(e.value),e}var Ml=v("$ZodTemplateLiteral",(e,t)=>{X.init(e,t);let n=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,a));}else if(i===null||Pu.has(typeof i))n.push(bt(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i);}),Bl=v("$ZodFunction",(e,t)=>(X.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let r=e._def.input?So(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?So(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let r=e._def.input?await Eo(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await Eo(e._def.output,o):o}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new Zo({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),Vl=v("$ZodPromise",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i));}),Zl=v("$ZodLazy",(e,t)=>{X.init(e,t),ne(e._zod,"innerType",()=>t.getter()),ne(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ne(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ne(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ne(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i);}),Wl=v("$ZodCustom",(e,t)=>{he.init(e,t),X.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>Lh(o,n,i,e));Lh(r,n,i,e);};});function Lh(e,t,n,i){if(!e){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(mn(r));}}var Ii={};b(Ii,{ar:()=>Gh,az:()=>qh,be:()=>Yh,bg:()=>Jh,ca:()=>Kh,cs:()=>Xh,da:()=>Qh,de:()=>eg,en:()=>Go,eo:()=>tg,es:()=>rg,fa:()=>ng,fi:()=>ig,fr:()=>og,frCA:()=>ag,he:()=>sg,hu:()=>ug,hy:()=>lg,id:()=>dg,is:()=>pg,it:()=>fg,ja:()=>mg,ka:()=>hg,kh:()=>gg,km:()=>qo,ko:()=>vg,lt:()=>bg,mk:()=>_g,ms:()=>Dg,nl:()=>xg,no:()=>Sg,ota:()=>Eg,pl:()=>$g,ps:()=>wg,pt:()=>Ig,ru:()=>kg,sl:()=>Cg,sv:()=>Rg,ta:()=>Ag,th:()=>Tg,tr:()=>Fg,ua:()=>Pg,uk:()=>Ho,ur:()=>Ng,uz:()=>zg,vi:()=>Ug,yo:()=>Mg,zhCN:()=>jg,zhTW:()=>Lg});var h$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\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 instanceof ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\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 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case "invalid_value":return r.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 ${w(r.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: ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${a.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;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 "${r.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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${S(r.keys,"\u060C ")}`;case "invalid_key":return `\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.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 ${r.origin}`;default:return "\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Gh(){return {localeError:h$()}}var g$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case "invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${w(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case "unrecognized_keys":return `Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${S(r.keys,", ")}`;case "invalid_key":return `${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case "invalid_union":return "Yanl\u0131\u015F d\u0259y\u0259r";case "invalid_element":return `${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return "Yanl\u0131\u015F d\u0259y\u0259r"}}};function qh(){return {localeError:g$()}}function Hh(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var v$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case "invalid_value":return r.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 ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Hh(s,a.unit.one,a.unit.few,a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.maximum.toString()} ${c}`}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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=Hh(s,a.unit.one,a.unit.few,a.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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.minimum.toString()} ${c}`}return `\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${S(r.keys,", ")}`;case "invalid_key":return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return "\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Yh(){return {localeError:v$()}}var y$=()=>{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 t(r){return e[r]??null}let n={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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case "invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.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 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;if(o.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 "${o.prefix}"`;if(o.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 "${o.suffix}"`;if(o.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 "${o.includes}"`;if(o.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 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[o.format]??r.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 ${r.divisor}`;case "unrecognized_keys":return `\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${S(r.keys,", ")}`;case "invalid_key":return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Jh(){return {localeError:y$()}}var b$=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case "invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${w(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${S(r.values," o ")}`;case "too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case "unrecognized_keys":return `Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Clau inv\xE0lida a ${r.origin}`;case "invalid_union":return "Entrada inv\xE0lida";case "invalid_element":return `Element inv\xE0lid a ${r.origin}`;default:return "Entrada inv\xE0lida"}}};function Kh(){return {localeError:b$()}}var _$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case "invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${w(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case "unrecognized_keys":return `Nezn\xE1m\xE9 kl\xED\u010De: ${S(r.keys,", ")}`;case "invalid_key":return `Neplatn\xFD kl\xED\u010D v ${r.origin}`;case "invalid_union":return "Neplatn\xFD vstup";case "invalid_element":return `Neplatn\xE1 hodnota v ${r.origin}`;default:return "Neplatn\xFD vstup"}}};function Xh(){return {localeError:_$()}}var D$=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let n={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"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case "invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${w(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case "not_multiple_of":return `Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case "unrecognized_keys":return `${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${S(r.keys,", ")}`;case "invalid_key":return `Ugyldig n\xF8gle i ${r.origin}`;case "invalid_union":return "Ugyldigt input: matcher ingen af de tilladte typer";case "invalid_element":return `Ugyldig v\xE6rdi i ${r.origin}`;default:return "Ugyldigt input"}}};function Qh(){return {localeError:D$()}}var x$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case "invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${w(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case "unrecognized_keys":return `${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${S(r.keys,", ")}`;case "invalid_key":return `Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case "invalid_union":return "Ung\xFCltige Eingabe";case "invalid_element":return `Ung\xFCltiger Wert in ${r.origin}`;default:return "Ung\xFCltige Eingabe"}}};function eg(){return {localeError:x$()}}var 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"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}let 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",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return `Invalid input: expected ${o}, received ${s}`}case "invalid_value":return r.values.length===1?`Invalid input: expected ${w(r.values[0])}`:`Invalid option: expected one of ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${o}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${o}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case "not_multiple_of":return `Invalid number: must be a multiple of ${r.divisor}`;case "unrecognized_keys":return `Unrecognized key${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Invalid key in ${r.origin}`;case "invalid_union":return "Invalid input";case "invalid_element":return `Invalid value in ${r.origin}`;default:return "Invalid input"}}};function Go(){return {localeError:S$()}}var E$=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let n={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"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case "invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${w(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${o}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${n[o.format]??r.format}`}case "not_multiple_of":return `Nevalida nombro: devas esti oblo de ${r.divisor}`;case "unrecognized_keys":return `Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Nevalida \u015Dlosilo en ${r.origin}`;case "invalid_union":return "Nevalida enigo";case "invalid_element":return `Nevalida valoro en ${r.origin}`;default:return "Nevalida enigo"}}};function tg(){return {localeError:E$()}}var w$=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n={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"},i={nan:"NaN",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"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case "invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${w(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.format]??r.format}`}case "not_multiple_of":return `N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case "unrecognized_keys":return `Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Llave inv\xE1lida en ${i[r.origin]??r.origin}`;case "invalid_union":return "Entrada inv\xE1lida";case "invalid_element":return `Valor inv\xE1lido en ${i[r.origin]??r.origin}`;default:return "Entrada inv\xE1lida"}}};function rg(){return {localeError:w$()}}var $$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case "invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${w(r.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 ${S(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor} \u0628\u0627\u0634\u062F`;case "unrecognized_keys":return `\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${S(r.keys,", ")}`;case "invalid_key":return `\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.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 ${r.origin}`;default:return "\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function ng(){return {localeError:$$()}}var I$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case "invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${w(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case "unrecognized_keys":return `${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${S(r.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"}}};function ig(){return {localeError:I$()}}var O$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case "invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${w(r.values[0])} attendu`:`Option invalide : une valeur parmi ${S(r.values,"|")} attendue`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format} invalide`}case "not_multiple_of":return `Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case "unrecognized_keys":return `Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${S(r.keys,", ")}`;case "invalid_key":return `Cl\xE9 invalide dans ${r.origin}`;case "invalid_union":return "Entr\xE9e invalide";case "invalid_element":return `Valeur invalide dans ${r.origin}`;default:return "Entr\xE9e invalide"}}};function og(){return {localeError:O$()}}var k$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case "invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${w(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format} invalide`}case "not_multiple_of":return `Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case "unrecognized_keys":return `Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${S(r.keys,", ")}`;case "invalid_key":return `Cl\xE9 invalide dans ${r.origin}`;case "invalid_union":return "Entr\xE9e invalide";case "invalid_element":return `Valeur invalide dans ${r.origin}`;default:return "Entr\xE9e invalide"}}};function ag(){return {localeError:k$()}}var C$=()=>{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"}},t={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"}},n=l=>l?e[l]:void 0,i=l=>{let d=n(l);return d?d.label:l??e.unknown.label},r=l=>`\u05D4${i(l)}`,o=l=>(n(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=l=>l?t[l]??null:null,s={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"}},c={nan:"NaN"};return l=>{switch(l.code){case "invalid_type":{let d=l.expected,p=c[d??""]??i(d),m=$(l.input),h=c[m]??e[m]?.label??m;return /^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}case "invalid_value":{if(l.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 ${w(l.values[0])}`;let d=l.values.map(h=>w(h));if(l.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 ${d[0]} \u05D0\u05D5 ${d[1]}`;let p=d[d.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 ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case "too_big":{let d=a(l.origin),p=r(l.origin??"value");if(l.origin==="string")return `${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let y=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(l.origin==="array"||l.origin==="set"){let y=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",x=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let m=l.inclusive?"<=":"<",h=o(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.maximum.toString()}`}case "too_small":{let d=a(l.origin),p=r(l.origin??"value");if(l.origin==="string")return `${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let y=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(l.origin==="array"||l.origin==="set"){let y=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let b=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`}let x=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let m=l.inclusive?">=":">",h=o(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.minimum.toString()}`}case "invalid_format":{let d=l;if(d.format==="starts_with")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.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 ${d.pattern}`;let p=s[d.format],m=p?.label??d.format,y=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return `${m} \u05DC\u05D0 ${y}`}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 ${l.divisor}`;case "unrecognized_keys":return `\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${S(l.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${r(l.origin??"array")}`;default:return "\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function sg(){return {localeError:C$()}}var R$=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case "invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${w(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case "unrecognized_keys":return `Ismeretlen kulcs${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `\xC9rv\xE9nytelen kulcs ${r.origin}`;case "invalid_union":return "\xC9rv\xE9nytelen bemenet";case "invalid_element":return `\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return "\xC9rv\xE9nytelen bemenet"}}};function ug(){return {localeError:R$()}}function cg(e,t,n){return Math.abs(e)===1?t:n}function _n(e){if(!e)return "";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var A$=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(r){return e[r]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case "invalid_value":return r.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${w(r.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=cg(s,a.unit.one,a.unit.many);return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${_n(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.maximum.toString()} ${c}`}return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${_n(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=cg(s,a.unit.one,a.unit.many);return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${_n(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.minimum.toString()} ${c}`}return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${_n(r.origin)} \u056C\u056B\u0576\u056B ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[o.format]??r.format}`}case "not_multiple_of":return `\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${r.divisor}-\u056B`;case "unrecognized_keys":return `\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${S(r.keys,", ")}`;case "invalid_key":return `\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${_n(r.origin)}-\u0578\u0582\u0574`;case "invalid_union":return "\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case "invalid_element":return `\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${_n(r.origin)}-\u0578\u0582\u0574`;default:return "\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function lg(){return {localeError:A$()}}var T$=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case "invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${w(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format} tidak valid`}case "not_multiple_of":return `Angka tidak valid: harus kelipatan dari ${r.divisor}`;case "unrecognized_keys":return `Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Kunci tidak valid di ${r.origin}`;case "invalid_union":return "Input tidak valid";case "invalid_element":return `Nilai tidak valid di ${r.origin}`;default:return "Input tidak valid"}}};function dg(){return {localeError:T$()}}var F$=()=>{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 t(r){return e[r]??null}let n={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"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case "invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${w(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${o}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${n[o.format]??r.format}`}case "not_multiple_of":return `R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case "unrecognized_keys":return `\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${S(r.keys,", ")}`;case "invalid_key":return `Rangur lykill \xED ${r.origin}`;case "invalid_union":return "Rangt gildi";case "invalid_element":return `Rangt gildi \xED ${r.origin}`;default:return "Rangt gildi"}}};function pg(){return {localeError:F$()}}var P$=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case "invalid_value":return r.values.length===1?`Input non valido: atteso ${w(r.values[0])}`:`Opzione non valida: atteso uno tra ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Numero non valido: deve essere un multiplo di ${r.divisor}`;case "unrecognized_keys":return `Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${S(r.keys,", ")}`;case "invalid_key":return `Chiave non valida in ${r.origin}`;case "invalid_union":return "Input non valido";case "invalid_element":return `Valore non valido in ${r.origin}`;default:return "Input non valido"}}};function fg(){return {localeError:P$()}}var N$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case "invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${w(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${S(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case "too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case "too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\u7121\u52B9\u306A\u6570\u5024: ${r.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${r.keys.length>1?"\u7FA4":""}: ${S(r.keys,"\u3001")}`;case "invalid_key":return `${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case "invalid_union":return "\u7121\u52B9\u306A\u5165\u529B";case "invalid_element":return `${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return "\u7121\u52B9\u306A\u5165\u529B"}}};function mg(){return {localeError:N$()}}var z$=()=>{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 t(r){return e[r]??null}let n={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"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\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 instanceof ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\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 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case "invalid_value":return r.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 ${w(r.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 ${S(r.values,"|")}-\u10D3\u10D0\u10DC`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.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 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${r.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 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.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 ${r.origin} ${a.verb} ${o}${r.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 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.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 "${o.prefix}"-\u10D8\u10D7`:o.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 "${o.suffix}"-\u10D8\u10D7`:o.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 "${o.includes}"-\u10E1`:o.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 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[o.format]??r.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 ${r.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${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${S(r.keys,", ")}`;case "invalid_key":return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.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 ${r.origin}-\u10E8\u10D8`;default:return "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function hg(){return {localeError:z$()}}var U$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\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 instanceof ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\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 ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case "invalid_value":return r.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 ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${S(r.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 ${r.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 ${r.origin}`;default:return "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function qo(){return {localeError:U$()}}function gg(){return qo()}var j$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case "invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${w(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${S(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case "too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${a}`}case "too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${a}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case "unrecognized_keys":return `\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${S(r.keys,", ")}`;case "invalid_key":return `\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case "invalid_union":return "\uC798\uBABB\uB41C \uC785\uB825";case "invalid_element":return `\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return "\uC798\uBABB\uB41C \uC785\uB825"}}};function vg(){return {localeError:j$()}}var $i=e=>e.charAt(0).toUpperCase()+e.slice(1);function yg(e){let t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}var L$=()=>{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 t(r,o,a,s){let c=e[r]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let n={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"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case "invalid_value":return r.values.length===1?`Privalo b\u016Bti ${w(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${S(r.values,"|")} pasirinkim\u0173`;case "too_big":{let o=i[r.origin]??r.origin,a=t(r.origin,yg(Number(r.maximum)),r.inclusive??false,"smaller");if(a?.verb)return `${$i(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return `${$i(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.maximum.toString()} ${a?.unit}`}case "too_small":{let o=i[r.origin]??r.origin,a=t(r.origin,yg(Number(r.minimum)),r.inclusive??false,"bigger");if(a?.verb)return `${$i(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return `${$i(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.minimum.toString()} ${a?.unit}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${n[o.format]??r.format}`}case "not_multiple_of":return `Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case "unrecognized_keys":return `Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${S(r.keys,", ")}`;case "invalid_key":return "Rastas klaidingas raktas";case "invalid_union":return "Klaidinga \u012Fvestis";case "invalid_element":{let o=i[r.origin]??r.origin;return `${$i(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return "Klaidinga \u012Fvestis"}}};function bg(){return {localeError:L$()}}var M$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case "invalid_value":return r.values.length===1?`Invalid input: expected ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${a.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `${r.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"}: ${S(r.keys,", ")}`;case "invalid_key":return `\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.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 ${r.origin}`;default:return "\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function _g(){return {localeError:M$()}}var B$=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case "invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${w(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format} tidak sah`}case "not_multiple_of":return `Nombor tidak sah: perlu gandaan ${r.divisor}`;case "unrecognized_keys":return `Kunci tidak dikenali: ${S(r.keys,", ")}`;case "invalid_key":return `Kunci tidak sah dalam ${r.origin}`;case "invalid_union":return "Input tidak sah";case "invalid_element":return `Nilai tidak sah dalam ${r.origin}`;default:return "Input tidak sah"}}};function Dg(){return {localeError:B$()}}var V$=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"getal"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case "invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${w(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case "unrecognized_keys":return `Onbekende key${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Ongeldige key in ${r.origin}`;case "invalid_union":return "Ongeldige invoer";case "invalid_element":return `Ongeldige waarde in ${r.origin}`;default:return "Ongeldige invoer"}}};function xg(){return {localeError:V$()}}var Z$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case "invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${w(r.values[0])}`:`Ugyldig valg: forventet en av ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case "unrecognized_keys":return `${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${S(r.keys,", ")}`;case "invalid_key":return `Ugyldig n\xF8kkel i ${r.origin}`;case "invalid_union":return "Ugyldig input";case "invalid_element":return `Ugyldig verdi i ${r.origin}`;default:return "Ugyldig input"}}};function Sg(){return {localeError:Z$()}}var W$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case "invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${w(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case "unrecognized_keys":return `Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case "invalid_union":return "Giren tan\u0131namad\u0131.";case "invalid_element":return `${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return "K\u0131ymet tan\u0131namad\u0131."}}};function Eg(){return {localeError:W$()}}var G$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case "invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${w(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${S(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case "invalid_format":{let o=r;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]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case "not_multiple_of":return `\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case "unrecognized_keys":return `\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${S(r.keys,", ")}`;case "invalid_key":return `\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.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 ${r.origin} \u06A9\u06D0`;default:return "\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function wg(){return {localeError:G$()}}var q$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case "invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${w(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case "unrecognized_keys":return `Nierozpoznane klucze${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Nieprawid\u0142owy klucz w ${r.origin}`;case "invalid_union":return "Nieprawid\u0142owe dane wej\u015Bciowe";case "invalid_element":return `Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return "Nieprawid\u0142owe dane wej\u015Bciowe"}}};function $g(){return {localeError:q$()}}var H$=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case "invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${w(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format} inv\xE1lido`}case "not_multiple_of":return `N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case "unrecognized_keys":return `Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Chave inv\xE1lida em ${r.origin}`;case "invalid_union":return "Entrada inv\xE1lida";case "invalid_element":return `Valor inv\xE1lido em ${r.origin}`;default:return "Campo inv\xE1lido"}}};function Ig(){return {localeError:H$()}}function Og(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var Y$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case "invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Og(s,a.unit.one,a.unit.few,a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${c}`}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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=Og(s,a.unit.one,a.unit.few,a.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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${c}`}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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${S(r.keys,", ")}`;case "invalid_key":return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function kg(){return {localeError:Y$()}}var J$=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case "invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${w(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case "unrecognized_keys":return `Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${S(r.keys,", ")}`;case "invalid_key":return `Neveljaven klju\u010D v ${r.origin}`;case "invalid_union":return "Neveljaven vnos";case "invalid_element":return `Neveljavna vrednost v ${r.origin}`;default:return "Neveljaven vnos"}}};function Cg(){return {localeError:J$()}}var K$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case "invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${w(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case "unrecognized_keys":return `${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${S(r.keys,", ")}`;case "invalid_key":return `Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case "invalid_union":return "Ogiltig input";case "invalid_element":return `Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return "Ogiltig input"}}};function Rg(){return {localeError:K$()}}var X$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\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 instanceof ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\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 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case "invalid_value":return r.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 ${w(r.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 ${S(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${a.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\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 ${r.origin} ${o}${r.minimum.toString()} ${a.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 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.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${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${S(r.keys,", ")}`;case "invalid_key":return `${r.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 `${r.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"}}};function Ag(){return {localeError:X$()}}var Q$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\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 instanceof ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\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 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case "invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.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: ${S(r.keys,", ")}`;case "invalid_key":return `\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.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 ${r.origin}`;default:return "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Tg(){return {localeError:Q$()}}var e0=()=>{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 t(r){return e[r]??null}let n={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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case "invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${w(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[o.format]??r.format}`}case "not_multiple_of":return `Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case "unrecognized_keys":return `Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${S(r.keys,", ")}`;case "invalid_key":return `${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case "invalid_union":return "Ge\xE7ersiz de\u011Fer";case "invalid_element":return `${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return "Ge\xE7ersiz de\u011Fer"}}};function Fg(){return {localeError:e0()}}var t0=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\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 instanceof ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\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 ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case "invalid_value":return r.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 ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${r.maximum.toString()} ${a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${S(r.keys,", ")}`;case "invalid_key":return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return "\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Ho(){return {localeError:t0()}}function Pg(){return Ho()}var r0=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case "invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${w(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${S(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.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${r.keys.length>1?"\u0632":""}: ${S(r.keys,"\u060C ")}`;case "invalid_key":return `${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case "invalid_union":return "\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case "invalid_element":return `${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return "\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Ng(){return {localeError:r0()}}var n0=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(r){return e[r]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case "invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${w(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[o.format]??r.format}`}case "not_multiple_of":return `Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case "unrecognized_keys":return `Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${S(r.keys,", ")}`;case "invalid_key":return `${r.origin} dagi kalit noto\u2018g\u2018ri`;case "invalid_union":return "Noto\u2018g\u2018ri kirish";case "invalid_element":return `${r.origin} da noto\u2018g\u2018ri qiymat`;default:return "Noto\u2018g\u2018ri kirish"}}};function zg(){return {localeError:n0()}}var i0=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case "invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${w(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${S(r.keys,", ")}`;case "invalid_key":return `Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.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 ${r.origin}`;default:return "\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Ug(){return {localeError:i0()}}var o0=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case "invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${w(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case "unrecognized_keys":return `\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${S(r.keys,", ")}`;case "invalid_key":return `${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case "invalid_union":return "\u65E0\u6548\u8F93\u5165";case "invalid_element":return `${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return "\u65E0\u6548\u8F93\u5165"}}};function jg(){return {localeError:o0()}}var a0=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case "invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${w(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case "unrecognized_keys":return `\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${S(r.keys,"\u3001")}`;case "invalid_key":return `${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case "invalid_union":return "\u7121\u6548\u7684\u8F38\u5165\u503C";case "invalid_element":return `${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return "\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Lg(){return {localeError:a0()}}var s0=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case "invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${w(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${o}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.maximum}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${o}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.minimum}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${S(r.keys,", ")}`;case "invalid_key":return `B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.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 ${r.origin}`;default:return "\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Mg(){return {localeError:s0()}}var Bg,Gl=Symbol("ZodOutput"),ql=Symbol("ZodInput"),Yo=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(t,...n){let i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};delete i.id;let r={...i,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Jo(){return new Yo}(Bg=globalThis).__zod_globalRegistry??(Bg.__zod_globalRegistry=Jo());var Ze=globalThis.__zod_globalRegistry;function Hl(e,t){return new e({type:"string",...C(t)})}function Yl(e,t){return new e({type:"string",coerce:true,...C(t)})}function Ko(e,t){return new e({type:"string",format:"email",check:"string_format",abort:false,...C(t)})}function Oi(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:false,...C(t)})}function Xo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,...C(t)})}function Qo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v4",...C(t)})}function ea(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v6",...C(t)})}function ta(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v7",...C(t)})}function ki(e,t){return new e({type:"string",format:"url",check:"string_format",abort:false,...C(t)})}function ra(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:false,...C(t)})}function na(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:false,...C(t)})}function ia(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:false,...C(t)})}function oa(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:false,...C(t)})}function aa(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:false,...C(t)})}function sa(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:false,...C(t)})}function ua(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:false,...C(t)})}function ca(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:false,...C(t)})}function la(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:false,...C(t)})}function Jl(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:false,...C(t)})}function da(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:false,...C(t)})}function pa(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:false,...C(t)})}function fa(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:false,...C(t)})}function ma(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:false,...C(t)})}function ha(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:false,...C(t)})}function ga(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:false,...C(t)})}var Kl={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Xl(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:false,local:false,precision:null,...C(t)})}function Ql(e,t){return new e({type:"string",format:"date",check:"string_format",...C(t)})}function ed(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...C(t)})}function td(e,t){return new e({type:"string",format:"duration",check:"string_format",...C(t)})}function rd(e,t){return new e({type:"number",checks:[],...C(t)})}function nd(e,t){return new e({type:"number",coerce:true,checks:[],...C(t)})}function id(e,t){return new e({type:"number",check:"number_format",abort:false,format:"safeint",...C(t)})}function od(e,t){return new e({type:"number",check:"number_format",abort:false,format:"float32",...C(t)})}function ad(e,t){return new e({type:"number",check:"number_format",abort:false,format:"float64",...C(t)})}function sd(e,t){return new e({type:"number",check:"number_format",abort:false,format:"int32",...C(t)})}function ud(e,t){return new e({type:"number",check:"number_format",abort:false,format:"uint32",...C(t)})}function cd(e,t){return new e({type:"boolean",...C(t)})}function ld(e,t){return new e({type:"boolean",coerce:true,...C(t)})}function dd(e,t){return new e({type:"bigint",...C(t)})}function pd(e,t){return new e({type:"bigint",coerce:true,...C(t)})}function fd(e,t){return new e({type:"bigint",check:"bigint_format",abort:false,format:"int64",...C(t)})}function md(e,t){return new e({type:"bigint",check:"bigint_format",abort:false,format:"uint64",...C(t)})}function hd(e,t){return new e({type:"symbol",...C(t)})}function gd(e,t){return new e({type:"undefined",...C(t)})}function vd(e,t){return new e({type:"null",...C(t)})}function yd(e){return new e({type:"any"})}function bd(e){return new e({type:"unknown"})}function _d(e,t){return new e({type:"never",...C(t)})}function Dd(e,t){return new e({type:"void",...C(t)})}function xd(e,t){return new e({type:"date",...C(t)})}function Sd(e,t){return new e({type:"date",coerce:true,...C(t)})}function Ed(e,t){return new e({type:"nan",...C(t)})}function Mt(e,t){return new Po({check:"less_than",...C(t),value:e,inclusive:false})}function lt(e,t){return new Po({check:"less_than",...C(t),value:e,inclusive:true})}function Bt(e,t){return new No({check:"greater_than",...C(t),value:e,inclusive:false})}function Xe(e,t){return new No({check:"greater_than",...C(t),value:e,inclusive:true})}function va(e){return Bt(0,e)}function ya(e){return Mt(0,e)}function ba(e){return lt(0,e)}function _a(e){return Xe(0,e)}function pr(e,t){return new vc({check:"multiple_of",...C(t),value:e})}function fr(e,t){return new _c({check:"max_size",...C(t),maximum:e})}function Vt(e,t){return new Dc({check:"min_size",...C(t),minimum:e})}function Tr(e,t){return new xc({check:"size_equals",...C(t),size:e})}function Fr(e,t){return new Sc({check:"max_length",...C(t),maximum:e})}function rr(e,t){return new Ec({check:"min_length",...C(t),minimum:e})}function Pr(e,t){return new wc({check:"length_equals",...C(t),length:e})}function Dn(e,t){return new $c({check:"string_format",format:"regex",...C(t),pattern:e})}function xn(e){return new Ic({check:"string_format",format:"lowercase",...C(e)})}function Sn(e){return new Oc({check:"string_format",format:"uppercase",...C(e)})}function En(e,t){return new kc({check:"string_format",format:"includes",...C(t),includes:e})}function wn(e,t){return new Cc({check:"string_format",format:"starts_with",...C(t),prefix:e})}function $n(e,t){return new Rc({check:"string_format",format:"ends_with",...C(t),suffix:e})}function Da(e,t,n){return new Ac({check:"property",property:e,schema:t,...C(n)})}function In(e,t){return new Tc({check:"mime_type",mime:e,...C(t)})}function Ft(e){return new Fc({check:"overwrite",tx:e})}function On(e){return Ft(t=>t.normalize(e))}function kn(){return Ft(e=>e.trim())}function Cn(){return Ft(e=>e.toLowerCase())}function Rn(){return Ft(e=>e.toUpperCase())}function An(){return Ft(e=>Au(e))}function wd(e,t,n){return new e({type:"array",element:t,...C(n)})}function c0(e,t,n){return new e({type:"union",options:t,...C(n)})}function l0(e,t,n){return new e({type:"union",options:t,inclusive:false,...C(n)})}function d0(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...C(i)})}function p0(e,t,n){return new e({type:"intersection",left:t,right:n})}function f0(e,t,n,i){let r=n instanceof X,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...C(o)})}function m0(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...C(i)})}function h0(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...C(i)})}function g0(e,t,n){return new e({type:"set",valueType:t,...C(n)})}function v0(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...C(n)})}function y0(e,t,n){return new e({type:"enum",entries:t,...C(n)})}function b0(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...C(n)})}function $d(e,t){return new e({type:"file",...C(t)})}function _0(e,t){return new e({type:"transform",transform:t})}function D0(e,t){return new e({type:"optional",innerType:t})}function x0(e,t){return new e({type:"nullable",innerType:t})}function S0(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Fu(n)}})}function E0(e,t,n){return new e({type:"nonoptional",innerType:t,...C(n)})}function w0(e,t){return new e({type:"success",innerType:t})}function $0(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function I0(e,t,n){return new e({type:"pipe",in:t,out:n})}function O0(e,t){return new e({type:"readonly",innerType:t})}function k0(e,t,n){return new e({type:"template_literal",parts:t,...C(n)})}function C0(e,t){return new e({type:"lazy",getter:t})}function R0(e,t){return new e({type:"promise",innerType:t})}function Id(e,t,n){let i=C(n);return i.abort??(i.abort=true),new e({type:"custom",check:"custom",fn:t,...i})}function Od(e,t,n){return new e({type:"custom",check:"custom",fn:t,...C(n)})}function kd(e){let t=Vg(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(mn(i,n.value,t._zod.def));else {let r=i;r.fatal&&(r.continue=false),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(mn(r));}},e(n.value,n)));return t}function Vg(e,t){let n=new he({check:"custom",...C(t)});return n._zod.check=e,n}function Cd(e){let t=new he({check:"describe"});return t._zod.onattach=[n=>{let i=Ze.get(n)??{};Ze.add(n,{...i,description:e});}],t._zod.check=()=>{},t}function Rd(e){let t=new he({check:"meta"});return t._zod.onattach=[n=>{let i=Ze.get(n)??{};Ze.add(n,{...i,...e});}],t._zod.check=()=>{},t}function Ad(e,t){let n=C(t),i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(h=>typeof h=="string"?h.toLowerCase():h),r=r.map(h=>typeof h=="string"?h.toLowerCase():h));let o=new Set(i),a=new Set(r),s=e.Codec??wi,c=e.Boolean??Si,l=e.String??Ar,d=new l({type:"string",error:n.error}),p=new c({type:"boolean",error:n.error}),m=new s({type:"pipe",in:d,out:p,transform:((h,y)=>{let x=h;return n.case!=="sensitive"&&(x=x.toLowerCase()),o.has(x)?true:a.has(x)?false:(y.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:y.value,inst:m,continue:false}),{})}),reverseTransform:((h,y)=>h===true?i[0]||"true":r[0]||"false"),error:n.error});return m}function Tn(e,t,n,i={}){let r=C(i),o={...C(i),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}function mr(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ze,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function le(e,t,n={path:[],schemaPath:[]}){var i;let r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else {let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else {let m=a.schema,h=t.processors[r.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);h(e,t,m,d);}let p=e._zod.parent;p&&(a.ref||(a.ref=p),le(p,t,d),t.seen.get(p).isParent=true);}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Qe(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function hr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=i.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0]);}}let r=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,m=e.external.uri??(y=>y);if(p)return {ref:m(p)};let h=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=h,{defId:h,ref:`${m("__shared")}#/${s}/${h}`}}if(a[1]===n)return {ref:"#"};let l=`#/${s}/`,d=a[1].schema.id??`__schema${e.counter++}`;return {defId:d,ref:l+d}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:l}=r(a);s.def={...s.schema},l&&(s.defId=l);let d=s.schema;for(let p in d)delete d[p];d.$ref=c;};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
42
+ `);}h.write("payload.value = newResult;"),h.write("return payload;");let H=h.compile();return (B,R)=>H(m,B,R)},o,a=Ur,s=!pi.jitless,l=s&&Uu.value,d=t.catchall,p;e._zod.parse=(m,h)=>{p??(p=i.value);let v=m.value;return a(v)?s&&l&&h?.async===false&&h.jitless!==true?(o||(o=r(t.shape)),m=o(m,h),d?ug([],v,m,h,p,e):m):n(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),m)};});function Yh(e,t,n,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let r=e.filter(o=>!hr(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>it(a,i,Oe())))}),t)}var $i=y("$ZodUnion",(e,t)=>{X.init(e,t),ne(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),ne(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ne(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),ne(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>hi(o.source)).join("|")})$`)}});let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=false,s=[];for(let c of t.options){let l=c._zod.run({value:r.value,issues:[]},o);if(l instanceof Promise)s.push(l),a=true;else {if(l.issues.length===0)return l;s.push(l);}}return a?Promise.all(s).then(c=>Yh(c,r,e,o)):Yh(s,r,e,o)};});function Jh(e,t,n,i){let r=e.filter(o=>o.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>it(a,i,Oe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:false}),t)}var $l=y("$ZodXor",(e,t)=>{$i.init(e,t),t.inclusive=false;let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=false,s=[];for(let c of t.options){let l=c._zod.run({value:r.value,issues:[]},o);l instanceof Promise?(s.push(l),a=true):s.push(l);}return a?Promise.all(s).then(c=>Jh(c,r,e,o)):Jh(s,r,e,o)};}),Il=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=false,$i.init(e,t);let n=e._zod.parse;ne(e._zod,"propValues",()=>{let r={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,c]of Object.entries(a)){r[s]||(r[s]=new Set);for(let l of c)r[s].add(l);}}return r});let i=hn(()=>{let r=t.options,o=new Map;for(let a of r){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a);}}return o});e._zod.parse=(r,o)=>{let a=r.value;if(!Ur(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)};}),Ol=y("$ZodIntersection",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,l])=>Kh(n,c,l)):Kh(n,o,a)};});function Mc(e,t){if(e===t)return {valid:true,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(mr(e)&&mr(t)){let n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(let o of i){let a=Mc(e[o],t[o]);if(!a.valid)return {valid:false,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data;}return {valid:true,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return {valid:false,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],o=t[i],a=Mc(r,o);if(!a.valid)return {valid:false,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data);}return {valid:true,data:n}}return {valid:false,mergeErrorPath:[]}}function Kh(e,t,n){let i=new Map,r;for(let s of t.issues)if(s.code==="unrecognized_keys"){r??(r=s);for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).l=true;}else e.issues.push(s);for(let s of n.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).r=true;else e.issues.push(s);let o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&r&&e.issues.push({...r,keys:o}),hr(e))return e;let a=Mc(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var qo=y("$ZodTuple",(e,t)=>{X.init(e,t);let n=t.items;e._zod.parse=(i,r)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],s=[...n].reverse().findIndex(d=>d._zod.optin!=="optional"),c=s===-1?0:n.length-s;if(!t.rest){let d=o.length>n.length,p=o.length<c-1;if(d||p)return i.issues.push({...d?{code:"too_big",maximum:n.length,inclusive:true}:{code:"too_small",minimum:n.length},input:o,inst:e,origin:"array"}),i}let l=-1;for(let d of n){if(l++,l>=o.length&&l>=c)continue;let p=d._zod.run({value:o[l],issues:[]},r);p instanceof Promise?a.push(p.then(m=>Lo(m,i,l))):Lo(p,i,l);}if(t.rest){let d=o.slice(n.length);for(let p of d){l++;let m=t.rest._zod.run({value:p,issues:[]},r);m instanceof Promise?a.push(m.then(h=>Lo(h,i,l))):Lo(m,i,l);}}return a.length?Promise.all(a).then(()=>i):i};});function Lo(e,t,n){e.issues.length&&t.issues.push(...lt(n,e.issues)),t.value[n]=e.value;}var kl=y("$ZodRecord",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!mr(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let s=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){s.add(typeof l=="number"?l.toString():l);let d=t.valueType._zod.run({value:r[l],issues:[]},i);d instanceof Promise?o.push(d.then(p=>{p.issues.length&&n.issues.push(...lt(l,p.issues)),n.value[l]=p.value;})):(d.issues.length&&n.issues.push(...lt(l,d.issues)),n.value[l]=d.value);}let c;for(let l in r)s.has(l)||(c=c??[],c.push(l));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:c});}else {n.value={};for(let s of Reflect.ownKeys(r)){if(s==="__proto__")continue;let c=t.keyType._zod.run({value:s,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&No.test(s)&&c.issues.length){let p=t.keyType._zod.run({value:Number(s),issues:[]},i);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(c=p);}if(c.issues.length){t.mode==="loose"?n.value[s]=r[s]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(p=>it(p,i,Oe())),input:s,path:[s],inst:e});continue}let d=t.valueType._zod.run({value:r[s],issues:[]},i);d instanceof Promise?o.push(d.then(p=>{p.issues.length&&n.issues.push(...lt(s,p.issues)),n.value[c.value]=p.value;})):(d.issues.length&&n.issues.push(...lt(s,d.issues)),n.value[c.value]=d.value);}}return o.length?Promise.all(o).then(()=>n):n};}),Cl=y("$ZodMap",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let o=[];n.value=new Map;for(let[a,s]of r){let c=t.keyType._zod.run({value:a,issues:[]},i),l=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||l instanceof Promise?o.push(Promise.all([c,l]).then(([d,p])=>{Xh(d,p,n,a,r,e,i);})):Xh(c,l,n,a,r,e,i);}return o.length?Promise.all(o).then(()=>n):n};});function Xh(e,t,n,i,r,o,a){e.issues.length&&(gi.has(typeof i)?n.issues.push(...lt(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(s=>it(s,a,Oe()))})),t.issues.length&&(gi.has(typeof i)?n.issues.push(...lt(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(s=>it(s,a,Oe()))})),n.value.set(e.value,t.value);}var Al=y("$ZodSet",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of r){let s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>Qh(c,n))):Qh(s,n);}return o.length?Promise.all(o).then(()=>n):n};});function Qh(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value);}var Rl=y("$ZodEnum",(e,t)=>{X.init(e,t);let n=mi(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>gi.has(typeof r)).map(r=>typeof r=="string"?vt(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r};}),Pl=y("$ZodLiteral",(e,t)=>{if(X.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?vt(i):i?vt(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,r)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i};}),Fl=y("$ZodFile",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n};}),Tl=y("$ZodTransform",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new dr(e.constructor.name);let r=t.transform(n.value,n);if(i.async)return (r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new Ft;return n.value=r,n};});function eg(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Ho=y("$ZodOptional",(e,t)=>{X.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ne(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ne(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${hi(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>eg(o,n.value)):eg(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)};}),zl=y("$ZodExactOptional",(e,t)=>{Ho.init(e,t),ne(e._zod,"values",()=>t.innerType._zod.values),ne(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i);}),Nl=y("$ZodNullable",(e,t)=>{X.init(e,t),ne(e._zod,"optin",()=>t.innerType._zod.optin),ne(e._zod,"optout",()=>t.innerType._zod.optout),ne(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${hi(n.source)}|null)$`):void 0}),ne(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i);}),Ul=y("$ZodDefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>tg(o,t)):tg(r,t)};});function tg(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var jl=y("$ZodPrefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i));}),Ll=y("$ZodNonOptional",(e,t)=>{X.init(e,t),ne(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>rg(o,e)):rg(r,e)};});function rg(e,t){return !e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Ml=y("$ZodSuccess",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new dr("ZodSuccess");let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)};}),Bl=y("$ZodCatch",(e,t)=>{X.init(e,t),ne(e._zod,"optin",()=>t.innerType._zod.optin),ne(e._zod,"optout",()=>t.innerType._zod.optout),ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>it(a,i,Oe()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>it(o,i,Oe()))},input:n.value}),n.issues=[]),n)};}),Vl=y("$ZodNaN",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n);}),Zl=y("$ZodPipe",(e,t)=>{X.init(e,t),ne(e._zod,"values",()=>t.in._zod.values),ne(e._zod,"optin",()=>t.in._zod.optin),ne(e._zod,"optout",()=>t.out._zod.optout),ne(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Mo(a,t.in,i)):Mo(o,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>Mo(o,t.out,i)):Mo(r,t.out,i)};});function Mo(e,t,n){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues},n)}var Ii=y("$ZodCodec",(e,t)=>{X.init(e,t),ne(e._zod,"values",()=>t.in._zod.values),ne(e._zod,"optin",()=>t.in._zod.optin),ne(e._zod,"optout",()=>t.out._zod.optout),ne(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(n,i);return o instanceof Promise?o.then(a=>Bo(a,t,i)):Bo(o,t,i)}else {let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Bo(a,t,i)):Bo(o,t,i)}};});function Bo(e,t,n){if(e.issues.length)return e.aborted=true,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>Vo(e,o,t.out,n)):Vo(e,r,t.out,n)}else {let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>Vo(e,o,t.in,n)):Vo(e,r,t.in,n)}}function Vo(e,t,n,i){return e.issues.length?(e.aborted=true,e):n._zod.run({value:t,issues:e.issues},i)}var Wl=y("$ZodReadonly",(e,t)=>{X.init(e,t),ne(e._zod,"propValues",()=>t.innerType._zod.propValues),ne(e._zod,"values",()=>t.innerType._zod.values),ne(e._zod,"optin",()=>t.innerType?._zod?.optin),ne(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(ng):ng(r)};});function ng(e){return e.value=Object.freeze(e.value),e}var Gl=y("$ZodTemplateLiteral",(e,t)=>{X.init(e,t);let n=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,a));}else if(i===null||Lu.has(typeof i))n.push(vt(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i);}),ql=y("$ZodFunction",(e,t)=>(X.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let r=e._def.input?$o(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?$o(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let r=e._def.input?await Io(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await Io(e._def.output,o):o}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new qo({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),Hl=y("$ZodPromise",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i));}),Yl=y("$ZodLazy",(e,t)=>{X.init(e,t),ne(e._zod,"innerType",()=>t.getter()),ne(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ne(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ne(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ne(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i);}),Jl=y("$ZodCustom",(e,t)=>{ge.init(e,t),X.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>ig(o,n,i,e));ig(r,n,i,e);};});function ig(e,t,n,i){if(!e){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(gn(r));}}var ki={};b(ki,{ar:()=>lg,az:()=>dg,be:()=>fg,bg:()=>mg,ca:()=>hg,cs:()=>gg,da:()=>yg,de:()=>vg,en:()=>Yo,eo:()=>bg,es:()=>_g,fa:()=>Dg,fi:()=>xg,fr:()=>Sg,frCA:()=>Eg,he:()=>wg,hu:()=>$g,hy:()=>Og,id:()=>kg,is:()=>Cg,it:()=>Ag,ja:()=>Rg,ka:()=>Pg,kh:()=>Fg,km:()=>Jo,ko:()=>Tg,lt:()=>Ng,mk:()=>Ug,ms:()=>jg,nl:()=>Lg,no:()=>Mg,ota:()=>Bg,pl:()=>Zg,ps:()=>Vg,pt:()=>Wg,ru:()=>qg,sl:()=>Hg,sv:()=>Yg,ta:()=>Jg,th:()=>Kg,tr:()=>Xg,ua:()=>Qg,uk:()=>Ko,ur:()=>ey,uz:()=>ty,vi:()=>ry,yo:()=>oy,zhCN:()=>ny,zhTW:()=>iy});var z$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\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 instanceof ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\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 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case "invalid_value":return r.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 ${w(r.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: ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${a.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;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 "${r.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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${S(r.keys,"\u060C ")}`;case "invalid_key":return `\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.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 ${r.origin}`;default:return "\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function lg(){return {localeError:z$()}}var N$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case "invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${w(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case "unrecognized_keys":return `Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${S(r.keys,", ")}`;case "invalid_key":return `${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case "invalid_union":return "Yanl\u0131\u015F d\u0259y\u0259r";case "invalid_element":return `${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return "Yanl\u0131\u015F d\u0259y\u0259r"}}};function dg(){return {localeError:N$()}}function pg(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var U$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case "invalid_value":return r.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 ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=pg(s,a.unit.one,a.unit.few,a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.maximum.toString()} ${c}`}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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=pg(s,a.unit.one,a.unit.few,a.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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.minimum.toString()} ${c}`}return `\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${S(r.keys,", ")}`;case "invalid_key":return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return "\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function fg(){return {localeError:U$()}}var j$=()=>{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 t(r){return e[r]??null}let n={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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case "invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.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 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;if(o.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 "${o.prefix}"`;if(o.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 "${o.suffix}"`;if(o.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 "${o.includes}"`;if(o.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 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[o.format]??r.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 ${r.divisor}`;case "unrecognized_keys":return `\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${S(r.keys,", ")}`;case "invalid_key":return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function mg(){return {localeError:j$()}}var L$=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case "invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${w(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${S(r.values," o ")}`;case "too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case "unrecognized_keys":return `Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Clau inv\xE0lida a ${r.origin}`;case "invalid_union":return "Entrada inv\xE0lida";case "invalid_element":return `Element inv\xE0lid a ${r.origin}`;default:return "Entrada inv\xE0lida"}}};function hg(){return {localeError:L$()}}var M$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case "invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${w(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case "unrecognized_keys":return `Nezn\xE1m\xE9 kl\xED\u010De: ${S(r.keys,", ")}`;case "invalid_key":return `Neplatn\xFD kl\xED\u010D v ${r.origin}`;case "invalid_union":return "Neplatn\xFD vstup";case "invalid_element":return `Neplatn\xE1 hodnota v ${r.origin}`;default:return "Neplatn\xFD vstup"}}};function gg(){return {localeError:M$()}}var B$=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let n={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"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case "invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${w(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case "not_multiple_of":return `Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case "unrecognized_keys":return `${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${S(r.keys,", ")}`;case "invalid_key":return `Ugyldig n\xF8gle i ${r.origin}`;case "invalid_union":return "Ugyldigt input: matcher ingen af de tilladte typer";case "invalid_element":return `Ugyldig v\xE6rdi i ${r.origin}`;default:return "Ugyldigt input"}}};function yg(){return {localeError:B$()}}var V$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case "invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${w(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case "unrecognized_keys":return `${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${S(r.keys,", ")}`;case "invalid_key":return `Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case "invalid_union":return "Ung\xFCltige Eingabe";case "invalid_element":return `Ung\xFCltiger Wert in ${r.origin}`;default:return "Ung\xFCltige Eingabe"}}};function vg(){return {localeError:V$()}}var Z$=()=>{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"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}let 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",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return `Invalid input: expected ${o}, received ${s}`}case "invalid_value":return r.values.length===1?`Invalid input: expected ${w(r.values[0])}`:`Invalid option: expected one of ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${o}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${o}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case "not_multiple_of":return `Invalid number: must be a multiple of ${r.divisor}`;case "unrecognized_keys":return `Unrecognized key${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Invalid key in ${r.origin}`;case "invalid_union":return "Invalid input";case "invalid_element":return `Invalid value in ${r.origin}`;default:return "Invalid input"}}};function Yo(){return {localeError:Z$()}}var W$=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let n={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"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case "invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${w(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${o}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${n[o.format]??r.format}`}case "not_multiple_of":return `Nevalida nombro: devas esti oblo de ${r.divisor}`;case "unrecognized_keys":return `Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Nevalida \u015Dlosilo en ${r.origin}`;case "invalid_union":return "Nevalida enigo";case "invalid_element":return `Nevalida valoro en ${r.origin}`;default:return "Nevalida enigo"}}};function bg(){return {localeError:W$()}}var G$=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n={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"},i={nan:"NaN",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"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case "invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${w(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.format]??r.format}`}case "not_multiple_of":return `N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case "unrecognized_keys":return `Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Llave inv\xE1lida en ${i[r.origin]??r.origin}`;case "invalid_union":return "Entrada inv\xE1lida";case "invalid_element":return `Valor inv\xE1lido en ${i[r.origin]??r.origin}`;default:return "Entrada inv\xE1lida"}}};function _g(){return {localeError:G$()}}var q$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case "invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${w(r.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 ${S(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor} \u0628\u0627\u0634\u062F`;case "unrecognized_keys":return `\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${S(r.keys,", ")}`;case "invalid_key":return `\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.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 ${r.origin}`;default:return "\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Dg(){return {localeError:q$()}}var H$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case "invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${w(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case "unrecognized_keys":return `${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${S(r.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"}}};function xg(){return {localeError:H$()}}var Y$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case "invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${w(r.values[0])} attendu`:`Option invalide : une valeur parmi ${S(r.values,"|")} attendue`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format} invalide`}case "not_multiple_of":return `Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case "unrecognized_keys":return `Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${S(r.keys,", ")}`;case "invalid_key":return `Cl\xE9 invalide dans ${r.origin}`;case "invalid_union":return "Entr\xE9e invalide";case "invalid_element":return `Valeur invalide dans ${r.origin}`;default:return "Entr\xE9e invalide"}}};function Sg(){return {localeError:Y$()}}var J$=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case "invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${w(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format} invalide`}case "not_multiple_of":return `Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case "unrecognized_keys":return `Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${S(r.keys,", ")}`;case "invalid_key":return `Cl\xE9 invalide dans ${r.origin}`;case "invalid_union":return "Entr\xE9e invalide";case "invalid_element":return `Valeur invalide dans ${r.origin}`;default:return "Entr\xE9e invalide"}}};function Eg(){return {localeError:J$()}}var K$=()=>{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"}},t={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"}},n=l=>l?e[l]:void 0,i=l=>{let d=n(l);return d?d.label:l??e.unknown.label},r=l=>`\u05D4${i(l)}`,o=l=>(n(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=l=>l?t[l]??null:null,s={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"}},c={nan:"NaN"};return l=>{switch(l.code){case "invalid_type":{let d=l.expected,p=c[d??""]??i(d),m=$(l.input),h=c[m]??e[m]?.label??m;return /^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}case "invalid_value":{if(l.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 ${w(l.values[0])}`;let d=l.values.map(h=>w(h));if(l.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 ${d[0]} \u05D0\u05D5 ${d[1]}`;let p=d[d.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 ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case "too_big":{let d=a(l.origin),p=r(l.origin??"value");if(l.origin==="string")return `${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let v=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(l.origin==="array"||l.origin==="set"){let v=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",x=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let m=l.inclusive?"<=":"<",h=o(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.maximum.toString()}`}case "too_small":{let d=a(l.origin),p=r(l.origin??"value");if(l.origin==="string")return `${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let v=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(l.origin==="array"||l.origin==="set"){let v=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let b=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`}let x=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let m=l.inclusive?">=":">",h=o(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.minimum.toString()}`}case "invalid_format":{let d=l;if(d.format==="starts_with")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.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 ${d.pattern}`;let p=s[d.format],m=p?.label??d.format,v=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return `${m} \u05DC\u05D0 ${v}`}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 ${l.divisor}`;case "unrecognized_keys":return `\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${S(l.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${r(l.origin??"array")}`;default:return "\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function wg(){return {localeError:K$()}}var X$=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case "invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${w(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case "unrecognized_keys":return `Ismeretlen kulcs${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `\xC9rv\xE9nytelen kulcs ${r.origin}`;case "invalid_union":return "\xC9rv\xE9nytelen bemenet";case "invalid_element":return `\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return "\xC9rv\xE9nytelen bemenet"}}};function $g(){return {localeError:X$()}}function Ig(e,t,n){return Math.abs(e)===1?t:n}function xn(e){if(!e)return "";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var Q$=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(r){return e[r]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case "invalid_value":return r.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${w(r.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Ig(s,a.unit.one,a.unit.many);return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${xn(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.maximum.toString()} ${c}`}return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${xn(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=Ig(s,a.unit.one,a.unit.many);return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${xn(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.minimum.toString()} ${c}`}return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${xn(r.origin)} \u056C\u056B\u0576\u056B ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[o.format]??r.format}`}case "not_multiple_of":return `\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${r.divisor}-\u056B`;case "unrecognized_keys":return `\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${S(r.keys,", ")}`;case "invalid_key":return `\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${xn(r.origin)}-\u0578\u0582\u0574`;case "invalid_union":return "\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case "invalid_element":return `\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${xn(r.origin)}-\u0578\u0582\u0574`;default:return "\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Og(){return {localeError:Q$()}}var eI=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case "invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${w(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format} tidak valid`}case "not_multiple_of":return `Angka tidak valid: harus kelipatan dari ${r.divisor}`;case "unrecognized_keys":return `Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Kunci tidak valid di ${r.origin}`;case "invalid_union":return "Input tidak valid";case "invalid_element":return `Nilai tidak valid di ${r.origin}`;default:return "Input tidak valid"}}};function kg(){return {localeError:eI()}}var tI=()=>{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 t(r){return e[r]??null}let n={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"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case "invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${w(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${o}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${n[o.format]??r.format}`}case "not_multiple_of":return `R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case "unrecognized_keys":return `\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${S(r.keys,", ")}`;case "invalid_key":return `Rangur lykill \xED ${r.origin}`;case "invalid_union":return "Rangt gildi";case "invalid_element":return `Rangt gildi \xED ${r.origin}`;default:return "Rangt gildi"}}};function Cg(){return {localeError:tI()}}var rI=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case "invalid_value":return r.values.length===1?`Input non valido: atteso ${w(r.values[0])}`:`Opzione non valida: atteso uno tra ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Numero non valido: deve essere un multiplo di ${r.divisor}`;case "unrecognized_keys":return `Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${S(r.keys,", ")}`;case "invalid_key":return `Chiave non valida in ${r.origin}`;case "invalid_union":return "Input non valido";case "invalid_element":return `Valore non valido in ${r.origin}`;default:return "Input non valido"}}};function Ag(){return {localeError:rI()}}var nI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case "invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${w(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${S(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case "too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case "too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\u7121\u52B9\u306A\u6570\u5024: ${r.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${r.keys.length>1?"\u7FA4":""}: ${S(r.keys,"\u3001")}`;case "invalid_key":return `${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case "invalid_union":return "\u7121\u52B9\u306A\u5165\u529B";case "invalid_element":return `${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return "\u7121\u52B9\u306A\u5165\u529B"}}};function Rg(){return {localeError:nI()}}var iI=()=>{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 t(r){return e[r]??null}let n={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"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\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 instanceof ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\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 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case "invalid_value":return r.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 ${w(r.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 ${S(r.values,"|")}-\u10D3\u10D0\u10DC`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.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 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${r.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 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.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 ${r.origin} ${a.verb} ${o}${r.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 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.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 "${o.prefix}"-\u10D8\u10D7`:o.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 "${o.suffix}"-\u10D8\u10D7`:o.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 "${o.includes}"-\u10E1`:o.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 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[o.format]??r.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 ${r.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${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${S(r.keys,", ")}`;case "invalid_key":return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.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 ${r.origin}-\u10E8\u10D8`;default:return "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Pg(){return {localeError:iI()}}var oI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\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 instanceof ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\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 ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case "invalid_value":return r.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 ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${S(r.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 ${r.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 ${r.origin}`;default:return "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Jo(){return {localeError:oI()}}function Fg(){return Jo()}var aI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case "invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${w(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${S(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case "too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${a}`}case "too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${a}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case "unrecognized_keys":return `\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${S(r.keys,", ")}`;case "invalid_key":return `\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case "invalid_union":return "\uC798\uBABB\uB41C \uC785\uB825";case "invalid_element":return `\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return "\uC798\uBABB\uB41C \uC785\uB825"}}};function Tg(){return {localeError:aI()}}var Oi=e=>e.charAt(0).toUpperCase()+e.slice(1);function zg(e){let t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}var sI=()=>{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 t(r,o,a,s){let c=e[r]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let n={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"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case "invalid_value":return r.values.length===1?`Privalo b\u016Bti ${w(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${S(r.values,"|")} pasirinkim\u0173`;case "too_big":{let o=i[r.origin]??r.origin,a=t(r.origin,zg(Number(r.maximum)),r.inclusive??false,"smaller");if(a?.verb)return `${Oi(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return `${Oi(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.maximum.toString()} ${a?.unit}`}case "too_small":{let o=i[r.origin]??r.origin,a=t(r.origin,zg(Number(r.minimum)),r.inclusive??false,"bigger");if(a?.verb)return `${Oi(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return `${Oi(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.minimum.toString()} ${a?.unit}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${n[o.format]??r.format}`}case "not_multiple_of":return `Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case "unrecognized_keys":return `Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${S(r.keys,", ")}`;case "invalid_key":return "Rastas klaidingas raktas";case "invalid_union":return "Klaidinga \u012Fvestis";case "invalid_element":{let o=i[r.origin]??r.origin;return `${Oi(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return "Klaidinga \u012Fvestis"}}};function Ng(){return {localeError:sI()}}var uI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case "invalid_value":return r.values.length===1?`Invalid input: expected ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${a.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `${r.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"}: ${S(r.keys,", ")}`;case "invalid_key":return `\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.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 ${r.origin}`;default:return "\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Ug(){return {localeError:uI()}}var cI=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case "invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${w(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format} tidak sah`}case "not_multiple_of":return `Nombor tidak sah: perlu gandaan ${r.divisor}`;case "unrecognized_keys":return `Kunci tidak dikenali: ${S(r.keys,", ")}`;case "invalid_key":return `Kunci tidak sah dalam ${r.origin}`;case "invalid_union":return "Input tidak sah";case "invalid_element":return `Nilai tidak sah dalam ${r.origin}`;default:return "Input tidak sah"}}};function jg(){return {localeError:cI()}}var lI=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"getal"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case "invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${w(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case "unrecognized_keys":return `Onbekende key${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Ongeldige key in ${r.origin}`;case "invalid_union":return "Ongeldige invoer";case "invalid_element":return `Ongeldige waarde in ${r.origin}`;default:return "Ongeldige invoer"}}};function Lg(){return {localeError:lI()}}var dI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case "invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${w(r.values[0])}`:`Ugyldig valg: forventet en av ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case "unrecognized_keys":return `${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${S(r.keys,", ")}`;case "invalid_key":return `Ugyldig n\xF8kkel i ${r.origin}`;case "invalid_union":return "Ugyldig input";case "invalid_element":return `Ugyldig verdi i ${r.origin}`;default:return "Ugyldig input"}}};function Mg(){return {localeError:dI()}}var pI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case "invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${w(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case "unrecognized_keys":return `Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case "invalid_union":return "Giren tan\u0131namad\u0131.";case "invalid_element":return `${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return "K\u0131ymet tan\u0131namad\u0131."}}};function Bg(){return {localeError:pI()}}var fI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case "invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${w(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${S(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case "invalid_format":{let o=r;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]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case "not_multiple_of":return `\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case "unrecognized_keys":return `\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${S(r.keys,", ")}`;case "invalid_key":return `\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.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 ${r.origin} \u06A9\u06D0`;default:return "\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Vg(){return {localeError:fI()}}var mI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case "invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${w(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case "unrecognized_keys":return `Nierozpoznane klucze${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Nieprawid\u0142owy klucz w ${r.origin}`;case "invalid_union":return "Nieprawid\u0142owe dane wej\u015Bciowe";case "invalid_element":return `Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return "Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Zg(){return {localeError:mI()}}var hI=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case "invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${w(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format} inv\xE1lido`}case "not_multiple_of":return `N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case "unrecognized_keys":return `Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Chave inv\xE1lida em ${r.origin}`;case "invalid_union":return "Entrada inv\xE1lida";case "invalid_element":return `Valor inv\xE1lido em ${r.origin}`;default:return "Campo inv\xE1lido"}}};function Wg(){return {localeError:hI()}}function Gg(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var gI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case "invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Gg(s,a.unit.one,a.unit.few,a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${c}`}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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=Gg(s,a.unit.one,a.unit.few,a.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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${c}`}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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${S(r.keys,", ")}`;case "invalid_key":return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function qg(){return {localeError:gI()}}var yI=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case "invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${w(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case "unrecognized_keys":return `Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${S(r.keys,", ")}`;case "invalid_key":return `Neveljaven klju\u010D v ${r.origin}`;case "invalid_union":return "Neveljaven vnos";case "invalid_element":return `Neveljavna vrednost v ${r.origin}`;default:return "Neveljaven vnos"}}};function Hg(){return {localeError:yI()}}var vI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case "invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${w(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case "unrecognized_keys":return `${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${S(r.keys,", ")}`;case "invalid_key":return `Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case "invalid_union":return "Ogiltig input";case "invalid_element":return `Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return "Ogiltig input"}}};function Yg(){return {localeError:vI()}}var bI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\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 instanceof ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\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 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case "invalid_value":return r.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 ${w(r.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 ${S(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${a.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\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 ${r.origin} ${o}${r.minimum.toString()} ${a.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 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.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${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${S(r.keys,", ")}`;case "invalid_key":return `${r.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 `${r.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"}}};function Jg(){return {localeError:bI()}}var _I=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\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 instanceof ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\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 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case "invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.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: ${S(r.keys,", ")}`;case "invalid_key":return `\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.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 ${r.origin}`;default:return "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Kg(){return {localeError:_I()}}var DI=()=>{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 t(r){return e[r]??null}let n={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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case "invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${w(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[o.format]??r.format}`}case "not_multiple_of":return `Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case "unrecognized_keys":return `Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${S(r.keys,", ")}`;case "invalid_key":return `${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case "invalid_union":return "Ge\xE7ersiz de\u011Fer";case "invalid_element":return `${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return "Ge\xE7ersiz de\u011Fer"}}};function Xg(){return {localeError:DI()}}var xI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\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 instanceof ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\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 ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case "invalid_value":return r.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 ${w(r.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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${r.maximum.toString()} ${a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${S(r.keys,", ")}`;case "invalid_key":return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return "\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Ko(){return {localeError:xI()}}function Qg(){return Ko()}var SI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case "invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${w(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${S(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.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${r.keys.length>1?"\u0632":""}: ${S(r.keys,"\u060C ")}`;case "invalid_key":return `${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case "invalid_union":return "\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case "invalid_element":return `${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return "\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function ey(){return {localeError:SI()}}var EI=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(r){return e[r]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case "invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${w(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[o.format]??r.format}`}case "not_multiple_of":return `Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case "unrecognized_keys":return `Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${S(r.keys,", ")}`;case "invalid_key":return `${r.origin} dagi kalit noto\u2018g\u2018ri`;case "invalid_union":return "Noto\u2018g\u2018ri kirish";case "invalid_element":return `${r.origin} da noto\u2018g\u2018ri qiymat`;default:return "Noto\u2018g\u2018ri kirish"}}};function ty(){return {localeError:EI()}}var wI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case "invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${w(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${S(r.keys,", ")}`;case "invalid_key":return `Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.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 ${r.origin}`;default:return "\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function ry(){return {localeError:wI()}}var $I=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case "invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${w(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case "unrecognized_keys":return `\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${S(r.keys,", ")}`;case "invalid_key":return `${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case "invalid_union":return "\u65E0\u6548\u8F93\u5165";case "invalid_element":return `${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return "\u65E0\u6548\u8F93\u5165"}}};function ny(){return {localeError:$I()}}var II=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case "invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${w(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;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]??r.format}`}case "not_multiple_of":return `\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case "unrecognized_keys":return `\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${S(r.keys,"\u3001")}`;case "invalid_key":return `${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case "invalid_union":return "\u7121\u6548\u7684\u8F38\u5165\u503C";case "invalid_element":return `${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return "\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function iy(){return {localeError:II()}}var OI=()=>{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 t(r){return e[r]??null}let 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"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case "invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${w(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${o}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.maximum}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${o}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.minimum}`}case "invalid_format":{let o=r;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]??r.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 ${r.divisor}`;case "unrecognized_keys":return `B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${S(r.keys,", ")}`;case "invalid_key":return `B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.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 ${r.origin}`;default:return "\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function oy(){return {localeError:OI()}}var ay,Kl=Symbol("ZodOutput"),Xl=Symbol("ZodInput"),Xo=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(t,...n){let i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};delete i.id;let r={...i,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Qo(){return new Xo}(ay=globalThis).__zod_globalRegistry??(ay.__zod_globalRegistry=Qo());var We=globalThis.__zod_globalRegistry;function Ql(e,t){return new e({type:"string",...C(t)})}function ed(e,t){return new e({type:"string",coerce:true,...C(t)})}function ea(e,t){return new e({type:"string",format:"email",check:"string_format",abort:false,...C(t)})}function Ci(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:false,...C(t)})}function ta(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,...C(t)})}function ra(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v4",...C(t)})}function na(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v6",...C(t)})}function ia(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v7",...C(t)})}function Ai(e,t){return new e({type:"string",format:"url",check:"string_format",abort:false,...C(t)})}function oa(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:false,...C(t)})}function aa(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:false,...C(t)})}function sa(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:false,...C(t)})}function ua(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:false,...C(t)})}function ca(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:false,...C(t)})}function la(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:false,...C(t)})}function da(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:false,...C(t)})}function pa(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:false,...C(t)})}function fa(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:false,...C(t)})}function td(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:false,...C(t)})}function ma(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:false,...C(t)})}function ha(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:false,...C(t)})}function ga(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:false,...C(t)})}function ya(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:false,...C(t)})}function va(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:false,...C(t)})}function ba(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:false,...C(t)})}var rd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function nd(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:false,local:false,precision:null,...C(t)})}function id(e,t){return new e({type:"string",format:"date",check:"string_format",...C(t)})}function od(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...C(t)})}function ad(e,t){return new e({type:"string",format:"duration",check:"string_format",...C(t)})}function sd(e,t){return new e({type:"number",checks:[],...C(t)})}function ud(e,t){return new e({type:"number",coerce:true,checks:[],...C(t)})}function cd(e,t){return new e({type:"number",check:"number_format",abort:false,format:"safeint",...C(t)})}function ld(e,t){return new e({type:"number",check:"number_format",abort:false,format:"float32",...C(t)})}function dd(e,t){return new e({type:"number",check:"number_format",abort:false,format:"float64",...C(t)})}function pd(e,t){return new e({type:"number",check:"number_format",abort:false,format:"int32",...C(t)})}function fd(e,t){return new e({type:"number",check:"number_format",abort:false,format:"uint32",...C(t)})}function md(e,t){return new e({type:"boolean",...C(t)})}function hd(e,t){return new e({type:"boolean",coerce:true,...C(t)})}function gd(e,t){return new e({type:"bigint",...C(t)})}function yd(e,t){return new e({type:"bigint",coerce:true,...C(t)})}function vd(e,t){return new e({type:"bigint",check:"bigint_format",abort:false,format:"int64",...C(t)})}function bd(e,t){return new e({type:"bigint",check:"bigint_format",abort:false,format:"uint64",...C(t)})}function _d(e,t){return new e({type:"symbol",...C(t)})}function Dd(e,t){return new e({type:"undefined",...C(t)})}function xd(e,t){return new e({type:"null",...C(t)})}function Sd(e){return new e({type:"any"})}function Ed(e){return new e({type:"unknown"})}function wd(e,t){return new e({type:"never",...C(t)})}function $d(e,t){return new e({type:"void",...C(t)})}function Id(e,t){return new e({type:"date",...C(t)})}function Od(e,t){return new e({type:"date",coerce:true,...C(t)})}function kd(e,t){return new e({type:"nan",...C(t)})}function Vt(e,t){return new Uo({check:"less_than",...C(t),value:e,inclusive:false})}function dt(e,t){return new Uo({check:"less_than",...C(t),value:e,inclusive:true})}function Zt(e,t){return new jo({check:"greater_than",...C(t),value:e,inclusive:false})}function Qe(e,t){return new jo({check:"greater_than",...C(t),value:e,inclusive:true})}function _a(e){return Zt(0,e)}function Da(e){return Vt(0,e)}function xa(e){return dt(0,e)}function Sa(e){return Qe(0,e)}function gr(e,t){return new xc({check:"multiple_of",...C(t),value:e})}function yr(e,t){return new wc({check:"max_size",...C(t),maximum:e})}function Wt(e,t){return new $c({check:"min_size",...C(t),minimum:e})}function Mr(e,t){return new Ic({check:"size_equals",...C(t),size:e})}function Br(e,t){return new Oc({check:"max_length",...C(t),maximum:e})}function ar(e,t){return new kc({check:"min_length",...C(t),minimum:e})}function Vr(e,t){return new Cc({check:"length_equals",...C(t),length:e})}function Sn(e,t){return new Ac({check:"string_format",format:"regex",...C(t),pattern:e})}function En(e){return new Rc({check:"string_format",format:"lowercase",...C(e)})}function wn(e){return new Pc({check:"string_format",format:"uppercase",...C(e)})}function $n(e,t){return new Fc({check:"string_format",format:"includes",...C(t),includes:e})}function In(e,t){return new Tc({check:"string_format",format:"starts_with",...C(t),prefix:e})}function On(e,t){return new zc({check:"string_format",format:"ends_with",...C(t),suffix:e})}function Ea(e,t,n){return new Nc({check:"property",property:e,schema:t,...C(n)})}function kn(e,t){return new Uc({check:"mime_type",mime:e,...C(t)})}function Tt(e){return new jc({check:"overwrite",tx:e})}function Cn(e){return Tt(t=>t.normalize(e))}function An(){return Tt(e=>e.trim())}function Rn(){return Tt(e=>e.toLowerCase())}function Pn(){return Tt(e=>e.toUpperCase())}function Fn(){return Tt(e=>Nu(e))}function Cd(e,t,n){return new e({type:"array",element:t,...C(n)})}function CI(e,t,n){return new e({type:"union",options:t,...C(n)})}function AI(e,t,n){return new e({type:"union",options:t,inclusive:false,...C(n)})}function RI(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...C(i)})}function PI(e,t,n){return new e({type:"intersection",left:t,right:n})}function FI(e,t,n,i){let r=n instanceof X,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...C(o)})}function TI(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...C(i)})}function zI(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...C(i)})}function NI(e,t,n){return new e({type:"set",valueType:t,...C(n)})}function UI(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...C(n)})}function jI(e,t,n){return new e({type:"enum",entries:t,...C(n)})}function LI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...C(n)})}function Ad(e,t){return new e({type:"file",...C(t)})}function MI(e,t){return new e({type:"transform",transform:t})}function BI(e,t){return new e({type:"optional",innerType:t})}function VI(e,t){return new e({type:"nullable",innerType:t})}function ZI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():ju(n)}})}function WI(e,t,n){return new e({type:"nonoptional",innerType:t,...C(n)})}function GI(e,t){return new e({type:"success",innerType:t})}function qI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function HI(e,t,n){return new e({type:"pipe",in:t,out:n})}function YI(e,t){return new e({type:"readonly",innerType:t})}function JI(e,t,n){return new e({type:"template_literal",parts:t,...C(n)})}function KI(e,t){return new e({type:"lazy",getter:t})}function XI(e,t){return new e({type:"promise",innerType:t})}function Rd(e,t,n){let i=C(n);return i.abort??(i.abort=true),new e({type:"custom",check:"custom",fn:t,...i})}function Pd(e,t,n){return new e({type:"custom",check:"custom",fn:t,...C(n)})}function Fd(e){let t=sy(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(gn(i,n.value,t._zod.def));else {let r=i;r.fatal&&(r.continue=false),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(gn(r));}},e(n.value,n)));return t}function sy(e,t){let n=new ge({check:"custom",...C(t)});return n._zod.check=e,n}function Td(e){let t=new ge({check:"describe"});return t._zod.onattach=[n=>{let i=We.get(n)??{};We.add(n,{...i,description:e});}],t._zod.check=()=>{},t}function zd(e){let t=new ge({check:"meta"});return t._zod.onattach=[n=>{let i=We.get(n)??{};We.add(n,{...i,...e});}],t._zod.check=()=>{},t}function Nd(e,t){let n=C(t),i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(h=>typeof h=="string"?h.toLowerCase():h),r=r.map(h=>typeof h=="string"?h.toLowerCase():h));let o=new Set(i),a=new Set(r),s=e.Codec??Ii,c=e.Boolean??wi,l=e.String??Lr,d=new l({type:"string",error:n.error}),p=new c({type:"boolean",error:n.error}),m=new s({type:"pipe",in:d,out:p,transform:((h,v)=>{let x=h;return n.case!=="sensitive"&&(x=x.toLowerCase()),o.has(x)?true:a.has(x)?false:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:v.value,inst:m,continue:false}),{})}),reverseTransform:((h,v)=>h===true?i[0]||"true":r[0]||"false"),error:n.error});return m}function Tn(e,t,n,i={}){let r=C(i),o={...C(i),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}function vr(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??We,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function le(e,t,n={path:[],schemaPath:[]}){var i;let r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else {let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else {let m=a.schema,h=t.processors[r.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);h(e,t,m,d);}let p=e._zod.parent;p&&(a.ref||(a.ref=p),le(p,t,d),t.seen.get(p).isParent=true);}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&et(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function br(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=i.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0]);}}let r=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,m=e.external.uri??(v=>v);if(p)return {ref:m(p)};let h=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=h,{defId:h,ref:`${m("__shared")}#/${s}/${h}`}}if(a[1]===n)return {ref:"#"};let l=`#/${s}/`,d=a[1].schema.id??`__schema${e.counter++}`;return {defId:d,ref:l+d}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:l}=r(a);s.def={...s.schema},l&&(s.defId=l);let d=s.schema;for(let p in d)delete d[p];d.$ref=c;};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
43
43
 
44
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function gr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=a=>{let s=e.seen.get(a);if(s.ref===null)return;let c=s.def??s.schema,l={...c},d=s.ref;if(s.ref=null,d){i(d);let m=e.seen.get(d),h=m.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(h)):Object.assign(c,h),Object.assign(c,l),a._zod.parent===d)for(let x in c)x==="$ref"||x==="allOf"||x in l||delete c[x];if(h.$ref&&m.def)for(let x in c)x==="$ref"||x==="allOf"||x in m.def&&JSON.stringify(c[x])===JSON.stringify(m.def[x])&&delete c[x];}let p=a._zod.parent;if(p&&p!==d){i(p);let m=e.seen.get(p);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let h in c)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(c[h])===JSON.stringify(m.def[h])&&delete c[h];}e.override({zodSchema:a,jsonSchema:c,path:s.path??[]});};for(let a of [...e.seen.entries()].reverse())i(a[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(a);}Object.assign(r,n.def??n.schema);let o=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(o[s.defId]=s.def);}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Fn(t,"input",e.processors),output:Fn(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Qe(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return false;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return true;if(i.type==="array")return Qe(i.element,n);if(i.type==="set")return Qe(i.valueType,n);if(i.type==="lazy")return Qe(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return Qe(i.innerType,n);if(i.type==="intersection")return Qe(i.left,n)||Qe(i.right,n);if(i.type==="record"||i.type==="map")return Qe(i.keyType,n)||Qe(i.valueType,n);if(i.type==="pipe")return Qe(i.in,n)||Qe(i.out,n);if(i.type==="object"){for(let r in i.shape)if(Qe(i.shape[r],n))return true;return false}if(i.type==="union"){for(let r of i.options)if(Qe(r,n))return true;return false}if(i.type==="tuple"){for(let r of i.items)if(Qe(r,n))return true;return !!(i.rest&&Qe(i.rest,n))}return false}var Td=(e,t={})=>n=>{let i=mr({...n,processors:t});return le(e,i),hr(i,e),gr(i,e)},Fn=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=mr({...r??{},target:o,io:t,processors:n});return le(e,a),hr(a,e),gr(a,e)};var A0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Fd=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=A0[s]??s,r.format===""&&delete r.format,s==="time"&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){let d=[...c];d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))]);}},Pd=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=d,r.exclusiveMinimum=true):r.exclusiveMinimum=d),typeof o=="number"&&(r.minimum=o,typeof d=="number"&&t.target!=="draft-04"&&(d>=o?delete r.minimum:delete r.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=l,r.exclusiveMaximum=true):r.exclusiveMaximum=l),typeof a=="number"&&(r.maximum=a,typeof l=="number"&&t.target!=="draft-04"&&(l<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof c=="number"&&(r.multipleOf=c);},Nd=(e,t,n,i)=>{n.type="boolean";},zd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Ud=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},jd=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=true,n.enum=[null]):n.type="null";},Ld=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Md=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Bd=(e,t,n,i)=>{n.not={};},Vd=(e,t,n,i)=>{},Zd=(e,t,n,i)=>{},Wd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Gd=(e,t,n,i)=>{let r=e._zod.def,o=pi(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o;},qd=(e,t,n,i)=>{let r=e._zod.def,o=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a));}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a;}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o;},Hd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Yd=(e,t,n,i)=>{let r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source;},Jd=(e,t,n,i)=>{let r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),c?c.length===1?(o.contentMediaType=c[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(r,o);},Kd=(e,t,n,i)=>{n.type="boolean";},Xd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Qd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},ep=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},tp=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},rp=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},np=(e,t,n,i)=>{let r=n,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=le(o.element,t,{...i,path:[...i.path,"items"]});},ip=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object",r.properties={};let a=o.shape;for(let l in a)r.properties[l]=le(a[l],t,{...i,path:[...i.path,"properties",l]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(l=>{let d=o.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(r.required=Array.from(c)),o.catchall?._zod.def.type==="never"?r.additionalProperties=false:o.catchall?o.catchall&&(r.additionalProperties=le(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=false);},Sa=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===false,a=r.options.map((s,c)=>le(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=a:n.anyOf=a;},op=(e,t,n,i)=>{let r=e._zod.def,o=le(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=le(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=c;},ap=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((m,h)=>le(m,t,{...i,path:[...i.path,a,h]})),l=o.rest?le(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=c,l&&(r.items=l)):t.target==="openapi-3.0"?(r.items={anyOf:c},l&&r.items.anyOf.push(l),r.minItems=c.length,l||(r.maxItems=c.length)):(r.items=c,l&&(r.additionalItems=l));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof p=="number"&&(r.maxItems=p);},sp=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let d=le(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let p of c)r.patternProperties[p.source]=d;}else (t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=le(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=le(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(r.required=d);}},up=(e,t,n,i)=>{let r=e._zod.def,o=le(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=true):n.anyOf=[o,{type:"null"}];},cp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;},lp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue));},dp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)));},pp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a;try{a=r.catchValue(void 0);}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a;},fp=(e,t,n,i)=>{let r=e._zod.def,o=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;le(o,t,i);let a=t.seen.get(e);a.ref=o;},mp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=true;},hp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;},Ea=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;},gp=(e,t,n,i)=>{let r=e._zod.innerType;le(r,t,i);let o=t.seen.get(e);o.ref=r;},xa={string:Fd,number:Pd,boolean:Nd,bigint:zd,symbol:Ud,null:jd,undefined:Ld,void:Md,never:Bd,any:Vd,unknown:Zd,date:Wd,enum:Gd,literal:qd,nan:Hd,template_literal:Yd,file:Jd,success:Kd,custom:Xd,function:Qd,transform:ep,map:tp,set:rp,array:np,object:ip,union:Sa,intersection:op,tuple:ap,record:sp,nullable:up,nonoptional:cp,default:lp,prefault:dp,catch:pp,pipe:fp,readonly:mp,promise:hp,optional:Ea,lazy:gp};function wa(e,t){if("_idmap"in e){let i=e,r=mr({...t,processors:xa}),o={};for(let c of i._idmap.entries()){let[l,d]=c;le(d,r);}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let c of i._idmap.entries()){let[l,d]=c;hr(r,d),a[l]=gr(r,d);}if(Object.keys(o).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o};}return {schemas:a}}let n=mr({...t,processors:xa});return le(e,n),hr(n,e),gr(n,e)}var $a=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t;}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=mr({processors:xa,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}});}process(t,n={path:[],schemaPath:[]}){return le(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),hr(this.ctx,t);let i=gr(this.ctx,t),{"~standard":r,...o}=i;return o}};var Zg={};var Ci={};b(Ci,{ZodAny:()=>Lp,ZodArray:()=>Zp,ZodBase64:()=>Ga,ZodBase64URL:()=>qa,ZodBigInt:()=>Bn,ZodBigIntFormat:()=>Ja,ZodBoolean:()=>Mn,ZodCIDRv4:()=>Za,ZodCIDRv6:()=>Wa,ZodCUID:()=>za,ZodCUID2:()=>Ua,ZodCatch:()=>ff,ZodCodec:()=>os,ZodCustom:()=>Mi,ZodCustomStringFormat:()=>jn,ZodDate:()=>Ni,ZodDefault:()=>sf,ZodDiscriminatedUnion:()=>Gp,ZodE164:()=>Ha,ZodEmail:()=>Fa,ZodEmoji:()=>Pa,ZodEnum:()=>zn,ZodExactOptional:()=>nf,ZodFile:()=>tf,ZodFunction:()=>xf,ZodGUID:()=>Ri,ZodIPv4:()=>Ba,ZodIPv6:()=>Va,ZodIntersection:()=>qp,ZodJWT:()=>Ya,ZodKSUID:()=>Ma,ZodLazy:()=>bf,ZodLiteral:()=>ef,ZodMAC:()=>Tp,ZodMap:()=>Xp,ZodNaN:()=>hf,ZodNanoID:()=>Na,ZodNever:()=>Bp,ZodNonOptional:()=>ns,ZodNull:()=>Up,ZodNullable:()=>af,ZodNumber:()=>Ln,ZodNumberFormat:()=>zr,ZodObject:()=>Ui,ZodOptional:()=>rs,ZodPipe:()=>is,ZodPrefault:()=>cf,ZodPromise:()=>Df,ZodReadonly:()=>gf,ZodRecord:()=>Li,ZodSet:()=>Qp,ZodString:()=>Un,ZodStringFormat:()=>me,ZodSuccess:()=>pf,ZodSymbol:()=>Np,ZodTemplateLiteral:()=>yf,ZodTransform:()=>rf,ZodTuple:()=>Yp,ZodType:()=>ee,ZodULID:()=>ja,ZodURL:()=>Pi,ZodUUID:()=>Zt,ZodUndefined:()=>zp,ZodUnion:()=>ji,ZodUnknown:()=>Mp,ZodVoid:()=>Vp,ZodXID:()=>La,ZodXor:()=>Wp,_ZodString:()=>Ta,_default:()=>uf,_function:()=>Jv,any:()=>kv,array:()=>zi,base64:()=>pv,base64url:()=>fv,bigint:()=>Ev,boolean:()=>Pp,catch:()=>mf,check:()=>Kv,cidrv4:()=>lv,cidrv6:()=>dv,codec:()=>qv,cuid:()=>rv,cuid2:()=>nv,custom:()=>Xv,date:()=>Rv,describe:()=>Qv,discriminatedUnion:()=>Nv,e164:()=>mv,email:()=>Gg,emoji:()=>ev,enum:()=>es,exactOptional:()=>of,file:()=>Vv,float32:()=>_v,float64:()=>Dv,function:()=>Jv,guid:()=>qg,hash:()=>bv,hex:()=>yv,hostname:()=>vv,httpUrl:()=>Qg,instanceof:()=>ty,int:()=>Aa,int32:()=>xv,int64:()=>wv,intersection:()=>Hp,ipv4:()=>sv,ipv6:()=>cv,json:()=>ny,jwt:()=>hv,keyof:()=>Av,ksuid:()=>av,lazy:()=>_f,literal:()=>Bv,looseObject:()=>Fv,looseRecord:()=>Uv,mac:()=>uv,map:()=>jv,meta:()=>ey,nan:()=>Gv,nanoid:()=>tv,nativeEnum:()=>Mv,never:()=>Ka,nonoptional:()=>df,null:()=>jp,nullable:()=>Ti,nullish:()=>Zv,number:()=>Fp,object:()=>Xa,optional:()=>Ai,partialRecord:()=>zv,pipe:()=>Fi,prefault:()=>lf,preprocess:()=>iy,promise:()=>Yv,readonly:()=>vf,record:()=>Kp,refine:()=>Sf,set:()=>Lv,strictObject:()=>Tv,string:()=>Nn,stringFormat:()=>gv,stringbool:()=>ry,success:()=>Wv,superRefine:()=>Ef,symbol:()=>Iv,templateLiteral:()=>Hv,transform:()=>ts,tuple:()=>Jp,uint32:()=>Sv,uint64:()=>$v,ulid:()=>iv,undefined:()=>Ov,union:()=>Qa,unknown:()=>Nr,url:()=>Xg,uuid:()=>Hg,uuidv4:()=>Yg,uuidv6:()=>Jg,uuidv7:()=>Kg,void:()=>Cv,xid:()=>ov,xor:()=>Pv});var Ia={};b(Ia,{endsWith:()=>$n,gt:()=>Bt,gte:()=>Xe,includes:()=>En,length:()=>Pr,lowercase:()=>xn,lt:()=>Mt,lte:()=>lt,maxLength:()=>Fr,maxSize:()=>fr,mime:()=>In,minLength:()=>rr,minSize:()=>Vt,multipleOf:()=>pr,negative:()=>ya,nonnegative:()=>_a,nonpositive:()=>ba,normalize:()=>On,overwrite:()=>Ft,positive:()=>va,property:()=>Da,regex:()=>Dn,size:()=>Tr,slugify:()=>An,startsWith:()=>wn,toLowerCase:()=>Cn,toUpperCase:()=>Rn,trim:()=>kn,uppercase:()=>Sn});var Pn={};b(Pn,{ZodISODate:()=>ka,ZodISODateTime:()=>Oa,ZodISODuration:()=>Ra,ZodISOTime:()=>Ca,date:()=>yp,datetime:()=>vp,duration:()=>_p,time:()=>bp});var Oa=v("ZodISODateTime",(e,t)=>{Hc.init(e,t),me.init(e,t);});function vp(e){return Xl(Oa,e)}var ka=v("ZodISODate",(e,t)=>{Yc.init(e,t),me.init(e,t);});function yp(e){return Ql(ka,e)}var Ca=v("ZodISOTime",(e,t)=>{Jc.init(e,t),me.init(e,t);});function bp(e){return ed(Ca,e)}var Ra=v("ZodISODuration",(e,t)=>{Kc.init(e,t),me.init(e,t);});function _p(e){return td(Ra,e)}var Wg=(e,t)=>{vi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>bi(e,n)},flatten:{value:n=>yi(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,pn,2);}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,pn,2);}},isEmpty:{get(){return e.issues.length===0}}});},F0=v("ZodError",Wg),at=v("ZodError",Wg,{Parent:Error});var Dp=hn(at),xp=gn(at),Sp=vn(at),Ep=yn(at),wp=wo(at),$p=$o(at),Ip=Io(at),Op=Oo(at),kp=ko(at),Cp=Co(at),Rp=Ro(at),Ap=Ao(at);var ee=v("ZodType",(e,t)=>(X.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Fn(e,"input"),output:Fn(e,"output")}}),e.toJSONSchema=Td(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(I.mergeDefs(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:true}),e.with=e.check,e.clone=(n,i)=>Ke(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>Dp(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Sp(e,n,i),e.parseAsync=async(n,i)=>xp(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Ep(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>wp(e,n,i),e.decode=(n,i)=>$p(e,n,i),e.encodeAsync=async(n,i)=>Ip(e,n,i),e.decodeAsync=async(n,i)=>Op(e,n,i),e.safeEncode=(n,i)=>kp(e,n,i),e.safeDecode=(n,i)=>Cp(e,n,i),e.safeEncodeAsync=async(n,i)=>Rp(e,n,i),e.safeDecodeAsync=async(n,i)=>Ap(e,n,i),e.refine=(n,i)=>e.check(Sf(n,i)),e.superRefine=n=>e.check(Ef(n)),e.overwrite=n=>e.check(Ft(n)),e.optional=()=>Ai(e),e.exactOptional=()=>of(e),e.nullable=()=>Ti(e),e.nullish=()=>Ai(Ti(e)),e.nonoptional=n=>df(e,n),e.array=()=>zi(e),e.or=n=>Qa([e,n]),e.and=n=>Hp(e,n),e.transform=n=>Fi(e,ts(n)),e.default=n=>uf(e,n),e.prefault=n=>lf(e,n),e.catch=n=>mf(e,n),e.pipe=n=>Fi(e,n),e.readonly=()=>vf(e),e.describe=n=>{let i=e.clone();return Ze.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return Ze.get(e)?.description},configurable:true}),e.meta=(...n)=>{if(n.length===0)return Ze.get(e);let i=e.clone();return Ze.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Ta=v("_ZodString",(e,t)=>{Ar.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Fd(e,i,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(Dn(...i)),e.includes=(...i)=>e.check(En(...i)),e.startsWith=(...i)=>e.check(wn(...i)),e.endsWith=(...i)=>e.check($n(...i)),e.min=(...i)=>e.check(rr(...i)),e.max=(...i)=>e.check(Fr(...i)),e.length=(...i)=>e.check(Pr(...i)),e.nonempty=(...i)=>e.check(rr(1,...i)),e.lowercase=i=>e.check(xn(i)),e.uppercase=i=>e.check(Sn(i)),e.trim=()=>e.check(kn()),e.normalize=(...i)=>e.check(On(...i)),e.toLowerCase=()=>e.check(Cn()),e.toUpperCase=()=>e.check(Rn()),e.slugify=()=>e.check(An());}),Un=v("ZodString",(e,t)=>{Ar.init(e,t),Ta.init(e,t),e.email=n=>e.check(Ko(Fa,n)),e.url=n=>e.check(ki(Pi,n)),e.jwt=n=>e.check(ga(Ya,n)),e.emoji=n=>e.check(ra(Pa,n)),e.guid=n=>e.check(Oi(Ri,n)),e.uuid=n=>e.check(Xo(Zt,n)),e.uuidv4=n=>e.check(Qo(Zt,n)),e.uuidv6=n=>e.check(ea(Zt,n)),e.uuidv7=n=>e.check(ta(Zt,n)),e.nanoid=n=>e.check(na(Na,n)),e.guid=n=>e.check(Oi(Ri,n)),e.cuid=n=>e.check(ia(za,n)),e.cuid2=n=>e.check(oa(Ua,n)),e.ulid=n=>e.check(aa(ja,n)),e.base64=n=>e.check(fa(Ga,n)),e.base64url=n=>e.check(ma(qa,n)),e.xid=n=>e.check(sa(La,n)),e.ksuid=n=>e.check(ua(Ma,n)),e.ipv4=n=>e.check(ca(Ba,n)),e.ipv6=n=>e.check(la(Va,n)),e.cidrv4=n=>e.check(da(Za,n)),e.cidrv6=n=>e.check(pa(Wa,n)),e.e164=n=>e.check(ha(Ha,n)),e.datetime=n=>e.check(vp(n)),e.date=n=>e.check(yp(n)),e.time=n=>e.check(bp(n)),e.duration=n=>e.check(_p(n));});function Nn(e){return Hl(Un,e)}var me=v("ZodStringFormat",(e,t)=>{fe.init(e,t),Ta.init(e,t);}),Fa=v("ZodEmail",(e,t)=>{jc.init(e,t),me.init(e,t);});function Gg(e){return Ko(Fa,e)}var Ri=v("ZodGUID",(e,t)=>{zc.init(e,t),me.init(e,t);});function qg(e){return Oi(Ri,e)}var Zt=v("ZodUUID",(e,t)=>{Uc.init(e,t),me.init(e,t);});function Hg(e){return Xo(Zt,e)}function Yg(e){return Qo(Zt,e)}function Jg(e){return ea(Zt,e)}function Kg(e){return ta(Zt,e)}var Pi=v("ZodURL",(e,t)=>{Lc.init(e,t),me.init(e,t);});function Xg(e){return ki(Pi,e)}function Qg(e){return ki(Pi,{protocol:/^https?$/,hostname:_t.domain,...I.normalizeParams(e)})}var Pa=v("ZodEmoji",(e,t)=>{Mc.init(e,t),me.init(e,t);});function ev(e){return ra(Pa,e)}var Na=v("ZodNanoID",(e,t)=>{Bc.init(e,t),me.init(e,t);});function tv(e){return na(Na,e)}var za=v("ZodCUID",(e,t)=>{Vc.init(e,t),me.init(e,t);});function rv(e){return ia(za,e)}var Ua=v("ZodCUID2",(e,t)=>{Zc.init(e,t),me.init(e,t);});function nv(e){return oa(Ua,e)}var ja=v("ZodULID",(e,t)=>{Wc.init(e,t),me.init(e,t);});function iv(e){return aa(ja,e)}var La=v("ZodXID",(e,t)=>{Gc.init(e,t),me.init(e,t);});function ov(e){return sa(La,e)}var Ma=v("ZodKSUID",(e,t)=>{qc.init(e,t),me.init(e,t);});function av(e){return ua(Ma,e)}var Ba=v("ZodIPv4",(e,t)=>{Xc.init(e,t),me.init(e,t);});function sv(e){return ca(Ba,e)}var Tp=v("ZodMAC",(e,t)=>{el.init(e,t),me.init(e,t);});function uv(e){return Jl(Tp,e)}var Va=v("ZodIPv6",(e,t)=>{Qc.init(e,t),me.init(e,t);});function cv(e){return la(Va,e)}var Za=v("ZodCIDRv4",(e,t)=>{tl.init(e,t),me.init(e,t);});function lv(e){return da(Za,e)}var Wa=v("ZodCIDRv6",(e,t)=>{rl.init(e,t),me.init(e,t);});function dv(e){return pa(Wa,e)}var Ga=v("ZodBase64",(e,t)=>{il.init(e,t),me.init(e,t);});function pv(e){return fa(Ga,e)}var qa=v("ZodBase64URL",(e,t)=>{ol.init(e,t),me.init(e,t);});function fv(e){return ma(qa,e)}var Ha=v("ZodE164",(e,t)=>{al.init(e,t),me.init(e,t);});function mv(e){return ha(Ha,e)}var Ya=v("ZodJWT",(e,t)=>{sl.init(e,t),me.init(e,t);});function hv(e){return ga(Ya,e)}var jn=v("ZodCustomStringFormat",(e,t)=>{ul.init(e,t),me.init(e,t);});function gv(e,t,n={}){return Tn(jn,e,t,n)}function vv(e){return Tn(jn,"hostname",_t.hostname,e)}function yv(e){return Tn(jn,"hex",_t.hex,e)}function bv(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=_t[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return Tn(jn,i,r,t)}var Ln=v("ZodNumber",(e,t)=>{Bo.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Pd(e,i,r),e.gt=(i,r)=>e.check(Bt(i,r)),e.gte=(i,r)=>e.check(Xe(i,r)),e.min=(i,r)=>e.check(Xe(i,r)),e.lt=(i,r)=>e.check(Mt(i,r)),e.lte=(i,r)=>e.check(lt(i,r)),e.max=(i,r)=>e.check(lt(i,r)),e.int=i=>e.check(Aa(i)),e.safe=i=>e.check(Aa(i)),e.positive=i=>e.check(Bt(0,i)),e.nonnegative=i=>e.check(Xe(0,i)),e.negative=i=>e.check(Mt(0,i)),e.nonpositive=i=>e.check(lt(0,i)),e.multipleOf=(i,r)=>e.check(pr(i,r)),e.step=(i,r)=>e.check(pr(i,r)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=true,e.format=n.format??null;});function Fp(e){return rd(Ln,e)}var zr=v("ZodNumberFormat",(e,t)=>{cl.init(e,t),Ln.init(e,t);});function Aa(e){return id(zr,e)}function _v(e){return od(zr,e)}function Dv(e){return ad(zr,e)}function xv(e){return sd(zr,e)}function Sv(e){return ud(zr,e)}var Mn=v("ZodBoolean",(e,t)=>{Si.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Nd(e,n,i);});function Pp(e){return cd(Mn,e)}var Bn=v("ZodBigInt",(e,t)=>{Vo.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>zd(e,i),e.gte=(i,r)=>e.check(Xe(i,r)),e.min=(i,r)=>e.check(Xe(i,r)),e.gt=(i,r)=>e.check(Bt(i,r)),e.gte=(i,r)=>e.check(Xe(i,r)),e.min=(i,r)=>e.check(Xe(i,r)),e.lt=(i,r)=>e.check(Mt(i,r)),e.lte=(i,r)=>e.check(lt(i,r)),e.max=(i,r)=>e.check(lt(i,r)),e.positive=i=>e.check(Bt(BigInt(0),i)),e.negative=i=>e.check(Mt(BigInt(0),i)),e.nonpositive=i=>e.check(lt(BigInt(0),i)),e.nonnegative=i=>e.check(Xe(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(pr(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null;});function Ev(e){return dd(Bn,e)}var Ja=v("ZodBigIntFormat",(e,t)=>{ll.init(e,t),Bn.init(e,t);});function wv(e){return fd(Ja,e)}function $v(e){return md(Ja,e)}var Np=v("ZodSymbol",(e,t)=>{dl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ud(e,n);});function Iv(e){return hd(Np,e)}var zp=v("ZodUndefined",(e,t)=>{pl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ld(e,n);});function Ov(e){return gd(zp,e)}var Up=v("ZodNull",(e,t)=>{fl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>jd(e,n,i);});function jp(e){return vd(Up,e)}var Lp=v("ZodAny",(e,t)=>{ml.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Vd();});function kv(){return yd(Lp)}var Mp=v("ZodUnknown",(e,t)=>{hl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Zd();});function Nr(){return bd(Mp)}var Bp=v("ZodNever",(e,t)=>{gl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Bd(e,n,i);});function Ka(e){return _d(Bp,e)}var Vp=v("ZodVoid",(e,t)=>{vl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Md(e,n);});function Cv(e){return Dd(Vp,e)}var Ni=v("ZodDate",(e,t)=>{yl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Wd(e,i),e.min=(i,r)=>e.check(Xe(i,r)),e.max=(i,r)=>e.check(lt(i,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null;});function Rv(e){return xd(Ni,e)}var Zp=v("ZodArray",(e,t)=>{bl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>np(e,n,i,r),e.element=t.element,e.min=(n,i)=>e.check(rr(n,i)),e.nonempty=n=>e.check(rr(1,n)),e.max=(n,i)=>e.check(Fr(n,i)),e.length=(n,i)=>e.check(Pr(n,i)),e.unwrap=()=>e.element;});function zi(e,t){return wd(Zp,e,t)}function Av(e){let t=e._zod.def.shape;return es(Object.keys(t))}var Ui=v("ZodObject",(e,t)=>{_l.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ip(e,n,i,r),I.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>es(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Nr()}),e.loose=()=>e.clone({...e._zod.def,catchall:Nr()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ka()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>I.extend(e,n),e.safeExtend=n=>I.safeExtend(e,n),e.merge=n=>I.merge(e,n),e.pick=n=>I.pick(e,n),e.omit=n=>I.omit(e,n),e.partial=(...n)=>I.partial(rs,e,n[0]),e.required=(...n)=>I.required(ns,e,n[0]);});function Xa(e,t){let n={type:"object",shape:e??{},...I.normalizeParams(t)};return new Ui(n)}function Tv(e,t){return new Ui({type:"object",shape:e,catchall:Ka(),...I.normalizeParams(t)})}function Fv(e,t){return new Ui({type:"object",shape:e,catchall:Nr(),...I.normalizeParams(t)})}var ji=v("ZodUnion",(e,t)=>{Ei.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Sa(e,n,i,r),e.options=t.options;});function Qa(e,t){return new ji({type:"union",options:e,...I.normalizeParams(t)})}var Wp=v("ZodXor",(e,t)=>{ji.init(e,t),Dl.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Sa(e,n,i,r),e.options=t.options;});function Pv(e,t){return new Wp({type:"union",options:e,inclusive:false,...I.normalizeParams(t)})}var Gp=v("ZodDiscriminatedUnion",(e,t)=>{ji.init(e,t),xl.init(e,t);});function Nv(e,t,n){return new Gp({type:"union",options:t,discriminator:e,...I.normalizeParams(n)})}var qp=v("ZodIntersection",(e,t)=>{Sl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>op(e,n,i,r);});function Hp(e,t){return new qp({type:"intersection",left:e,right:t})}var Yp=v("ZodTuple",(e,t)=>{Zo.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ap(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n});});function Jp(e,t,n){let i=t instanceof X,r=i?n:t,o=i?t:null;return new Yp({type:"tuple",items:e,rest:o,...I.normalizeParams(r)})}var Li=v("ZodRecord",(e,t)=>{El.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sp(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType;});function Kp(e,t,n){return new Li({type:"record",keyType:e,valueType:t,...I.normalizeParams(n)})}function zv(e,t,n){let i=Ke(e);return i._zod.values=void 0,new Li({type:"record",keyType:i,valueType:t,...I.normalizeParams(n)})}function Uv(e,t,n){return new Li({type:"record",keyType:e,valueType:t,mode:"loose",...I.normalizeParams(n)})}var Xp=v("ZodMap",(e,t)=>{wl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tp(e,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Vt(...n)),e.nonempty=n=>e.check(Vt(1,n)),e.max=(...n)=>e.check(fr(...n)),e.size=(...n)=>e.check(Tr(...n));});function jv(e,t,n){return new Xp({type:"map",keyType:e,valueType:t,...I.normalizeParams(n)})}var Qp=v("ZodSet",(e,t)=>{$l.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>rp(e,n),e.min=(...n)=>e.check(Vt(...n)),e.nonempty=n=>e.check(Vt(1,n)),e.max=(...n)=>e.check(fr(...n)),e.size=(...n)=>e.check(Tr(...n));});function Lv(e,t){return new Qp({type:"set",valueType:e,...I.normalizeParams(t)})}var zn=v("ZodEnum",(e,t)=>{Il.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Gd(e,i,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new zn({...t,checks:[],...I.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new zn({...t,checks:[],...I.normalizeParams(r),entries:o})};});function es(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new zn({type:"enum",entries:n,...I.normalizeParams(t)})}function Mv(e,t){return new zn({type:"enum",entries:e,...I.normalizeParams(t)})}var ef=v("ZodLiteral",(e,t)=>{Ol.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qd(e,n,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}});});function Bv(e,t){return new ef({type:"literal",values:Array.isArray(e)?e:[e],...I.normalizeParams(t)})}var tf=v("ZodFile",(e,t)=>{kl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Jd(e,n,i),e.min=(n,i)=>e.check(Vt(n,i)),e.max=(n,i)=>e.check(fr(n,i)),e.mime=(n,i)=>e.check(In(Array.isArray(n)?n:[n],i));});function Vv(e){return $d(tf,e)}var rf=v("ZodTransform",(e,t)=>{Cl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ep(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new sr(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(I.issue(o,n.value,t));else {let a=o;a.fatal&&(a.continue=false),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(I.issue(a));}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)};});function ts(e){return new rf({type:"transform",transform:e})}var rs=v("ZodOptional",(e,t)=>{Wo.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ea(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function Ai(e){return new rs({type:"optional",innerType:e})}var nf=v("ZodExactOptional",(e,t)=>{Rl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ea(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function of(e){return new nf({type:"optional",innerType:e})}var af=v("ZodNullable",(e,t)=>{Al.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>up(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function Ti(e){return new af({type:"nullable",innerType:e})}function Zv(e){return Ai(Ti(e))}var sf=v("ZodDefault",(e,t)=>{Tl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function uf(e,t){return new sf({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var cf=v("ZodPrefault",(e,t)=>{Fl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>dp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function lf(e,t){return new cf({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var ns=v("ZodNonOptional",(e,t)=>{Pl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function df(e,t){return new ns({type:"nonoptional",innerType:e,...I.normalizeParams(t)})}var pf=v("ZodSuccess",(e,t)=>{Nl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Kd(e,n,i),e.unwrap=()=>e._zod.def.innerType;});function Wv(e){return new pf({type:"success",innerType:e})}var ff=v("ZodCatch",(e,t)=>{zl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>pp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function mf(e,t){return new ff({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var hf=v("ZodNaN",(e,t)=>{Ul.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Hd(e,n);});function Gv(e){return Ed(hf,e)}var is=v("ZodPipe",(e,t)=>{jl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>fp(e,n,i,r),e.in=t.in,e.out=t.out;});function Fi(e,t){return new is({type:"pipe",in:e,out:t})}var os=v("ZodCodec",(e,t)=>{is.init(e,t),wi.init(e,t);});function qv(e,t,n){return new os({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var gf=v("ZodReadonly",(e,t)=>{Ll.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function vf(e){return new gf({type:"readonly",innerType:e})}var yf=v("ZodTemplateLiteral",(e,t)=>{Ml.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Yd(e,n,i);});function Hv(e,t){return new yf({type:"template_literal",parts:e,...I.normalizeParams(t)})}var bf=v("ZodLazy",(e,t)=>{Zl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gp(e,n,i,r),e.unwrap=()=>e._zod.def.getter();});function _f(e){return new bf({type:"lazy",getter:e})}var Df=v("ZodPromise",(e,t)=>{Vl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>hp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function Yv(e){return new Df({type:"promise",innerType:e})}var xf=v("ZodFunction",(e,t)=>{Bl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Qd(e,n);});function Jv(e){return new xf({type:"function",input:Array.isArray(e?.input)?Jp(e?.input):e?.input??zi(Nr()),output:e?.output??Nr()})}var Mi=v("ZodCustom",(e,t)=>{Wl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Xd(e,n);});function Kv(e){let t=new he({check:"custom"});return t._zod.check=e,t}function Xv(e,t){return Id(Mi,e??(()=>true),t)}function Sf(e,t={}){return Od(Mi,e,t)}function Ef(e){return kd(e)}var Qv=Cd,ey=Rd;function ty(e,t={}){let n=new Mi({type:"custom",check:"custom",fn:i=>i instanceof e,abort:true,...I.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]});},n}var ry=(...e)=>Ad({Codec:os,Boolean:Mn,String:Un},...e);function ny(e){let t=_f(()=>Qa([Nn(e),Fp(),Pp(),jp(),zi(t),Kp(Nn(),t)]));return t}function iy(e,t){return Fi(ts(e),t)}var N0={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 z0(e){we({customError:e});}function U0(){return we().customError}var wf;wf||(wf={});var F={...Ci,...Ia,iso:Pn},j0=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function L0(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function M0(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function oy(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return F.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return F.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=M0(r,t),a=We(o,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===true&&r.length===1&&r[0]===null)return F.null();if(r.length===0)return F.never();if(r.length===1)return F.literal(r[0]);if(r.every(a=>typeof a=="string"))return F.enum(r);let o=r.map(a=>F.literal(a));return o.length<2?o[0]:F.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return F.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return oy(a,t)});return r.length===0?F.never():r.length===1?r[0]:F.union(r)}if(!n)return F.any();let i;switch(n){case "string":{let r=F.string();if(e.format){let o=e.format;o==="email"?r=r.check(F.email()):o==="uri"||o==="uri-reference"?r=r.check(F.url()):o==="uuid"||o==="guid"?r=r.check(F.uuid()):o==="date-time"?r=r.check(F.iso.datetime()):o==="date"?r=r.check(F.iso.date()):o==="time"?r=r.check(F.iso.time()):o==="duration"?r=r.check(F.iso.duration()):o==="ipv4"?r=r.check(F.ipv4()):o==="ipv6"?r=r.check(F.ipv6()):o==="mac"?r=r.check(F.mac()):o==="cidr"?r=r.check(F.cidrv4()):o==="cidr-v6"?r=r.check(F.cidrv6()):o==="base64"?r=r.check(F.base64()):o==="base64url"?r=r.check(F.base64url()):o==="e164"?r=r.check(F.e164()):o==="jwt"?r=r.check(F.jwt()):o==="emoji"?r=r.check(F.emoji()):o==="nanoid"?r=r.check(F.nanoid()):o==="cuid"?r=r.check(F.cuid()):o==="cuid2"?r=r.check(F.cuid2()):o==="ulid"?r=r.check(F.ulid()):o==="xid"?r=r.check(F.xid()):o==="ksuid"&&(r=r.check(F.ksuid()));}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case "number":case "integer":{let r=n==="integer"?F.number().int():F.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===true&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===true&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case "boolean":{i=F.boolean();break}case "null":{i=F.null();break}case "object":{let r={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,l]of Object.entries(o)){let d=We(l,t);r[c]=a.has(c)?d:d.optional();}if(e.propertyNames){let c=We(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?We(e.additionalProperties,t):F.any();if(Object.keys(r).length===0){i=F.record(c,l);break}let d=F.object(r).passthrough(),p=F.looseRecord(c,l);i=F.intersection(d,p);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),d=[];for(let m of l){let h=We(c[m],t),y=F.string().regex(new RegExp(m));d.push(F.looseRecord(y,h));}let p=[];if(Object.keys(r).length>0&&p.push(F.object(r).passthrough()),p.push(...d),p.length===0)i=F.object({}).passthrough();else if(p.length===1)i=p[0];else {let m=F.intersection(p[0],p[1]);for(let h=2;h<p.length;h++)m=F.intersection(m,p[h]);i=m;}break}let s=F.object(r);e.additionalProperties===false?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(We(e.additionalProperties,t)):i=s.passthrough();break}case "array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let a=r.map(c=>We(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?We(o,t):void 0;s?i=F.tuple(a).rest(s):i=F.tuple(a),typeof e.minItems=="number"&&(i=i.check(F.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(F.maxLength(e.maxItems)));}else if(Array.isArray(o)){let a=o.map(c=>We(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?We(e.additionalItems,t):void 0;s?i=F.tuple(a).rest(s):i=F.tuple(a),typeof e.minItems=="number"&&(i=i.check(F.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(F.maxLength(e.maxItems)));}else if(o!==void 0){let a=We(o,t),s=F.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s;}else i=F.array(F.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}function We(e,t){if(typeof e=="boolean")return e?F.any():F.never();let n=oy(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(l=>We(l,t)),c=F.union(s);n=i?F.intersection(n,c):c;}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(l=>We(l,t)),c=F.xor(s);n=i?F.intersection(n,c):c;}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:F.any();else {let s=i?n:We(e.allOf[0],t),c=i?0:1;for(let l=c;l<e.allOf.length;l++)s=F.intersection(s,We(e.allOf[l],t));n=s;}e.nullable===true&&t.version==="openapi-3.0"&&(n=F.nullable(n)),e.readOnly===true&&(n=F.readonly(n));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);for(let s of Object.keys(e))j0.has(s)||(r[s]=e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),n}function ay(e,t){if(typeof e=="boolean")return e?F.any():F.never();let n=L0(e,t?.defaultTarget),i=e.$defs||e.definitions||{},r={version:n,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Ze};return We(e,r)}var $f={};b($f,{bigint:()=>W0,boolean:()=>Z0,date:()=>G0,number:()=>V0,string:()=>B0});function B0(e){return Yl(Un,e)}function V0(e){return nd(Ln,e)}function Z0(e){return ld(Mn,e)}function W0(e){return pd(Bn,e)}function G0(e){return Sd(Ni,e)}we(Go());function sy({signal:e,timeoutMs:t}){let n=new AbortController,i=new DOMException("The operation timed out.","TimeoutError"),r=setTimeout(()=>{n.abort(i);},t);r.unref();let o=()=>{n.abort(e?.reason);};return n.signal.addEventListener("abort",()=>{clearTimeout(r),e?.removeEventListener("abort",o);},{once:true}),e?.aborted===true?o():e?.addEventListener("abort",o,{once:true}),{signal:n.signal,clear:()=>{clearTimeout(r);},expired:()=>n.signal.reason===i}}async function uy({ms:e,signal:t}){t?.throwIfAborted(),await new Promise(n=>{let r=setTimeout(()=>{t?.removeEventListener("abort",o),n();},e),o=()=>{clearTimeout(r),n();};t?.addEventListener("abort",o,{once:true});}),t?.throwIfAborted();}var H0=300;function cy(e){return ly({...e,attempt:1})}async function ly(e){let t=await Y0(e);return !t.retryable||e.attempt>=e.policy.attempts?t.outcome:(await uy({ms:J0(e.attempt),signal:e.init.signal??void 0}),ly({...e,attempt:e.attempt+1}))}async function Y0({fetch:e,init:t,policy:n,url:i}){try{t.signal?.throwIfAborted();let{signal:r}=sy({signal:t.signal??void 0,timeoutMs:n.timeoutMs}),o=await e(i,{...t,signal:r});return {outcome:{kind:"response",response:o},retryable:!If(o)}}catch(r){return t.signal?.throwIfAborted(),{outcome:{detail:K0(r),kind:"unreachable"},retryable:true}}}function If(e){let t=e.headers.get("content-type")?.startsWith("text/html")===true;return e.status<500&&!t}function J0(e){return H0*3**(e-1)*(.5+Math.random())}function K0(e){if(!(e instanceof Error))return String(e);let{cause:t}=e;if(t instanceof Error){let n="code"in t&&typeof t.code=="string"?` (${t.code})`:"";return `${e.message}: ${t.message}${n}`}return e.message}var X0=15e3,Q0=3,as=class extends Error{detail;serverUrl;constructor({detail:t,serverUrl:n}){super(`Failed to connect to Ripplo server at ${n}. Check the server is running and reachable. Details: ${t}`),this.name="GqlConnectionError",this.detail=t,this.serverUrl=n;}},Ur=class extends Error{errors;constructor(t){super(t.map(n=>n.message).join(", ")),this.name="GqlRequestError",this.errors=t;}};function Of(e){if(e instanceof Ur)return e.errors[0]?.extensions?.code}var eI={attempts:Q0,timeoutMs:X0};async function ve(e){return tI({headers:{},params:e,policy:eI,signal:void 0})}async function tI(e){let{headers:t,params:n,policy:i}=e,{print:r}=await import('./graphql-Z4UDRCDF.js'),o=r(n.document),a=JSON.stringify({query:o,variables:n.variables}),s=`${n.config.ripploServerUrl}/graphql`,c=await rI({init:{body:a,headers:{...t,Authorization:`Bearer ${n.config.token}`,"Content-Type":"application/json"},method:"POST",signal:e.signal},policy:i,serverUrl:n.config.ripploServerUrl,url:s}),l=await nI({res:c,url:s});if(!iI(l))throw new Error("Invalid GraphQL response");if(oI(l))throw new Ur(l.errors);if(l.data==null)throw new Error("No data returned from server");return l.data}async function rI({init:e,policy:t,serverUrl:n,url:i}){let r=await cy({fetch:globalThis.fetch,init:e,policy:t,url:i});if(r.kind==="response"&&If(r.response))return r.response;throw new as({detail:r.kind==="response"?`server returned status ${String(r.response.status)} (${String(r.response.headers.get("content-type"))})`:r.detail,serverUrl:n})}async function nI({res:e,url:t}){let n=await e.text();if(n.length===0)throw new Error(`Empty response from Ripplo server at ${t} (status ${String(e.status)}). The server may have restarted or the request was rejected before a body was sent.`);try{return JSON.parse(n)}catch{throw new Error(`Non-JSON response from Ripplo server at ${t} (status ${String(e.status)}): ${n.slice(0,200)}`)}}function iI(e){return typeof e=="object"&&e!=null&&("data"in e||"errors"in e)}function oI(e){return Array.isArray(e.errors)&&e.errors.length>0}u.union([u.string(),u.number(),u.boolean(),u.null()]);var st=u.json();u.record(u.string(),st);u.enum(["observed","setup"]);var Vn=u.string().regex(/^[A-Za-z_]\w*\.[A-Za-z_]\w*$/u).brand("SchemaOperationId");u.enum(["read","setup","locate"]);var dy=u.discriminatedUnion("kind",[u.strictObject({arguments:u.record(u.string(),st),kind:u.literal("missing"),operation:Vn}),u.strictObject({issues:u.array(u.string()),kind:u.literal("invalid-output"),operation:Vn}),u.strictObject({kind:u.literal("execution-failed"),message:u.string(),operation:Vn})]),py=u.tuple([dy]).rest(dy).readonly();u.enum(["unwritten","written"]);var fy=u.union([u.string(),u.number(),u.boolean()]),kf=u.union([fy,u.null()]),aI=u.object({by:u.literal("role"),name:u.union([u.string(),u.undefined()]).optional().transform(e=>e),role:u.string().min(1)}),sI=u.object({by:u.literal("testId"),value:u.string()}),uI=u.object({by:u.literal("inside"),scope:u.lazy(()=>Oe),target:u.lazy(()=>Oe)}),cI=u.object({by:u.literal("surface"),container:u.lazy(()=>Oe),overlay:u.boolean()}),lI=u.object({by:u.literal("frame"),element:u.lazy(()=>Oe)}),Oe=u.discriminatedUnion("by",[aI,sI,u.object({by:u.literal("element"),name:u.string().min(1),values:u.record(u.string().min(1),fy)}),uI,cI,lI]);u.enum(["string","number","boolean"]);var my=u.enum(["mobile","desktop"]);var dI=u.object({actual:u.string(),expected:u.string(),log:u.array(u.string()),name:u.string(),timeoutMs:u.number().int().nullable()}),pI=u.object({label:u.string().min(1),role:u.string().min(1)}),fI=3,ss=u.object({ancestors:u.array(pI).max(fI),name:u.string().nullable(),role:u.string().nullable(),tag:u.string(),visible:u.boolean()}),Zn={expectedRole:u.string().nullable()},mI=u.object({description:u.string(),name:u.string()}),Cf={...Zn,description:u.string(),element:mI.optional()},us=u.discriminatedUnion("kind",[u.object({...Cf,issues:u.array(u.string()),kind:u.literal("binding-values-invalid")}),u.object({...Cf,kind:u.literal("binding-missed"),locator:Oe,matched:u.enum(["none","several"]).optional()}),u.object({...Cf,aliasOf:u.string().min(1),kind:u.literal("binding-alias")})]);new Set(us.options.map(e=>e.shape.kind.value));var hI=u.discriminatedUnion("kind",[...us.options,u.object({...Zn,kind:u.literal("absent")}),u.object({...Zn,kind:u.literal("hidden"),matches:u.array(ss).min(1)}),u.object({...Zn,kind:u.literal("ambiguous"),matches:u.array(ss).min(2)}),u.object({...Zn,kind:u.literal("text-elsewhere"),match:ss,partial:u.boolean()}),u.object({...Zn,actualName:u.string(),kind:u.literal("name-differs"),match:ss})]),Bi=u.object({ariaSnapshot:u.string().nullable(),matcher:dI.nullable(),message:u.string(),miss:hI.nullable()});var Rf=u.enum(["create-session","teardown"]),gI=u.enum(["unconfigured","navigate","not-signed-in","ticket-rejected"]),cs=u.enum(["create","read","setup"]),vI=u.discriminatedUnion("kind",[u.object({kind:u.literal("field"),name:u.string()}),u.object({kind:u.literal("record-entry")}),u.object({kind:u.literal("array-entry")})]),yI=u.object({issues:u.array(u.object({branches:u.array(u.number().int().nonnegative()),code:u.enum(["invalid_type","too_big","too_small","invalid_format","not_multiple_of","unrecognized_keys","invalid_union","invalid_key","invalid_element","invalid_value","custom"]),path:u.array(u.union([u.string(),u.number()])),schemaPath:u.array(vI)})).min(1),schemaHash:u.string()}),bI=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("network")}),u.strictObject({kind:u.literal("http"),status:u.number().int()}),u.strictObject({kind:u.literal("not-json")})]);var hy=[u.object({kind:u.literal("definition-failed"),message:u.string()}),u.object({detail:u.string(),kind:u.literal("authentication-http"),operation:Rf,status:u.number().int()}),u.object({code:u.string().nullable(),kind:u.literal("authentication-network"),message:u.string(),operation:Rf}),u.object({kind:u.literal("app-not-ready"),timeoutMs:u.number().int()}),u.object({kind:u.literal("authentication-response"),message:u.string(),operation:Rf}),u.object({detail:u.string(),kind:u.literal("sign-in-failed"),stage:gI}),u.object({diagnostic:u.string().optional(),kind:u.literal("binding-failed"),message:u.string(),operation:cs,validation:yI.optional()}),u.object({failure:bI,kind:u.literal("binding-read-failed"),operation:cs}),u.object({kind:u.literal("binding-timed-out"),operation:cs,timeoutMs:u.number().int().nonnegative()}),u.object({kind:u.literal("binding-not-mounted"),operation:cs,source:u.string()}),u.object({failures:py,kind:u.literal("implementation-failed")}),u.object({kind:u.literal("driver-launch"),message:u.string()}),u.object({kind:u.literal("run-failed"),message:u.string()}),u.object({kind:u.literal("aborted")})],gy=u.discriminatedUnion("kind",[...hy]),ls=u.discriminatedUnion("kind",[...hy,u.object({action:u.string(),failure:Bi,kind:u.literal("action-failed")}),u.object({failure:Bi,kind:u.literal("check-failed")})]);var _I=u.string().regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/u),Vi=u.discriminatedUnion("kind",[u.strictObject({cause:u.string().nullable(),code:u.string().nullable(),kind:u.literal("error"),message:u.string(),name:u.string(),stack:u.string().nullable()}),u.strictObject({kind:u.literal("non-error"),type:u.enum(["bigint","boolean","function","null","number","object","string","symbol","undefined"]),value:u.string()})]);var yy=u.discriminatedUnion("source",[u.strictObject({error:ls,source:u.literal("runtime")}),u.strictObject({error:Vi,source:u.literal("system")})]),Wn={endedAtMs:u.number().int().nonnegative(),startedAtMs:u.number().int().nonnegative()},Af=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("not-started"),reason:u.enum(["aborted","prior-phase-failed"])}),u.strictObject({kind:u.literal("succeeded"),...Wn}),u.strictObject({error:yy,kind:u.literal("failed"),...Wn}),u.strictObject({kind:u.literal("aborted"),...Wn})]),DI=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("not-started"),reason:u.enum(["aborted","prior-phase-failed"])}),u.strictObject({...Wn,facts:u.enum(["clean","contradicted"]),kind:u.literal("completed"),transitionIds:u.array(u.string().min(1))}),u.strictObject({error:yy,kind:u.literal("failed"),...Wn,transitionIds:u.array(u.string().min(1))}),u.strictObject({kind:u.literal("aborted"),...Wn,transitionIds:u.array(u.string().min(1))})]),vy=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("io"),operation:u.enum(["open","append","finalize"]),thrown:Vi}),u.strictObject({kind:u.literal("execution-ended"),phase:u.enum(["setup","browser","drive","teardown"])}),u.strictObject({kind:u.literal("capture-missing"),subject:u.literal("rrweb")})]),xI=u.discriminatedUnion("kind",[u.strictObject({eventCount:u.number().int().nonnegative(),kind:u.literal("complete"),path:u.string().min(1)}),u.strictObject({errors:u.array(vy).min(1),eventCount:u.number().int().nonnegative(),kind:u.literal("partial"),path:u.string().min(1)}),u.strictObject({errors:u.array(vy).min(1),kind:u.literal("failed"),path:u.string().min(1)})]);u.strictObject({browser:Af,drive:DI,evidence:xI,runId:_I,setup:Af,teardown:Af});var by=u.discriminatedUnion("kind",[u.object({kind:u.literal("user")}),u.object({kind:u.literal("anonymous")})]);var ke=u.string().trim().min(1).brand();var _y=u.strictObject({actor:by,description:ke,name:ke,state:st,viewport:my});var SI=_y.pick({actor:true,name:true,viewport:true}),ds=u.strictObject({stepIndex:u.number().int().nonnegative(),transitionId:ke,workflow:ke}),EI=ds.extend({input:st,kind:u.literal("provided")}),wI=u.discriminatedUnion("kind",[EI,ds.extend({kind:u.literal("case"),workflowInput:st})]),$I=u.strictObject({choiceSeed:u.number().int().min(0).max(4294967295),inputSeed:u.number().int().min(0).max(4294967295),kind:u.literal("choose")}),II=u.union([wI,$I]);u.strictObject({seed:u.string().min(1),setup:SI,steps:u.array(II),visited:u.array(u.string().min(1))});var OI=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("accept"),text:u.string().nullable()}),u.strictObject({kind:u.literal("dismiss")})]),Dy=u.enum(["alert","beforeunload","confirm","prompt"]),xy=u.discriminatedUnion("kind",[u.object({kind:u.literal("goto"),url:u.string()}),u.object({kind:u.literal("reload")}),u.object({kind:u.literal("back")}),u.object({kind:u.literal("forward")}),u.object({kind:u.literal("fill"),locator:Oe,value:kf}),u.object({kind:u.literal("type"),locator:Oe,value:u.string().min(1)}),u.object({kind:u.literal("scroll"),locator:Oe}),u.object({kind:u.literal("clear"),locator:Oe}),u.object({kind:u.literal("click"),locator:Oe}),u.object({kind:u.literal("dblclick"),locator:Oe}),u.object({kind:u.literal("select"),locator:Oe,value:kf}),u.object({kind:u.literal("check"),locator:Oe}),u.object({kind:u.literal("uncheck"),locator:Oe}),u.object({kind:u.literal("hover"),locator:Oe}),u.object({files:u.array(u.string().min(1)).min(1),kind:u.literal("upload"),locator:Oe}),u.object({key:u.string().min(1),kind:u.literal("press"),locator:Oe.optional()}),u.object({kind:u.literal("drag"),source:Oe,target:Oe})]),ps=u.enum(xy.options.map(e=>e.shape.kind.value)),Sy=xy.and(u.object({dialog:OI.optional()})),kI=["goto","reload","back","forward"];new Set(kI);var Ey=u.enum(["setup","before-action","action","after-action"]),Tf=u.union([u.strictObject({error:Vi.nullable(),kind:u.literal("definition-error"),phase:u.literal("definition"),reason:ke}),u.strictObject({error:Vi.nullable(),kind:u.literal("execution-failed"),phase:Ey.nullable(),reason:ke}),u.strictObject({error:ls,kind:u.literal("runtime-failed"),reason:ke}),u.strictObject({action:ps,kind:u.literal("binding-miss"),miss:us,reason:ke}),u.strictObject({expected:st,kind:u.literal("state-mismatch"),observed:st,phase:Ey,reason:ke}),u.strictObject({kind:u.enum(["capture-pending","convergence-timeout","aborted","unavailable","duplicate-outcome-name","no-outcome","ambiguous-outcome","invalid-state","invalid-input"]),reason:ke})]),Ff=u.strictObject({error:Tf,status:u.literal("failed")}),wy=u.strictObject({kind:u.literal("model-setup"),name:ke,now:u.iso.datetime().nullable(),result:u.discriminatedUnion("status",[u.strictObject({state:st,status:u.literal("passed")}),Ff]),source:u.literal("verifier"),timeNanos:u.string()}),Pf=u.strictObject({endedAtMs:u.number().nonnegative(),input:st,kind:u.literal("model-step"),name:ke,pageUrl:u.string().nullable(),reference:ds,result:u.discriminatedUnion("status",[u.strictObject({outcome:ke,state:st,status:u.literal("passed")}),Ff]),source:u.literal("verifier"),startedAtMs:u.number().nonnegative(),stepIndex:u.number().int().nonnegative(),timeNanos:u.string(),visit:u.string().min(1).nullable()}),$y=Pf.omit({input:true,visit:true}).extend({kind:u.literal("model-input-failed"),result:Ff});var Iy=u.strictObject({kind:u.literal("exploration-stop"),result:u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("limit")}),u.strictObject({kind:u.literal("exhausted")}),u.strictObject({kind:u.literal("no-candidates"),refusals:u.array(u.strictObject({reason:ke,step:ke}))}),u.strictObject({error:Tf,kind:u.literal("failed")})]),source:u.literal("verifier"),stepIndex:u.number().int().nonnegative(),timeNanos:u.string()});var CI=[...ps.options,"resize"],Oy=u.enum(CI),ky=u.object({action:Oy,name:ke,phase:u.literal("start")}),Cy=u.object({outcome:u.enum(["passed","failed"]),phase:u.literal("end")});u.discriminatedUnion("phase",[ky,Cy]);var Ry=u.discriminatedUnion("phase",[ky.extend({action:Oy.nullable()}),Cy]).and(u.object({kind:u.literal("exploration-step"),source:u.literal("capture"),timeNanos:u.string()}));var Ay=u.object({action:Sy,kind:u.literal("check"),outcome:u.discriminatedUnion("kind",[u.object({kind:u.literal("passed")}),u.object({kind:u.literal("failed"),reason:Bi})]),rrwebIds:u.array(u.number()),source:u.literal("verifier"),stepIndex:u.number().int(),timeNanos:u.string(),waitedMs:u.number()}),Ty=u.object({error:gy,kind:u.literal("stepError"),source:u.literal("verifier"),stepIndex:u.number().int(),timeNanos:u.string()});var Fy=u.object({__codec:u.string().min(1),data:u.unknown(),version:u.number().int().positive()}),Nf=class extends Error{codec;currentVersion;gotVersion;kind;minimumVersion;constructor(t){super(`Unsupported ${t.codec} version ${String(t.gotVersion)}. This release reads ${RI(t)}.`),this.name="CodecVersionError",this.codec=t.codec,this.currentVersion=t.currentVersion,this.gotVersion=t.gotVersion,this.kind=t.kind,this.minimumVersion=t.minimumVersion;}};function RI({currentVersion:e,minimumVersion:t}){return t===e?`version ${String(e)}`:`versions ${String(t)} through ${String(e)}`}var fs=class extends Error{constructor(t){super(`Codec mismatch: expected "${t.expected}", got "${t.got}"`),this.name="CodecMismatchError";}};function Py({firstVersion:e,name:t,schema:n,steps:i=[]}){let r=AI({firstVersion:e,steps:i});return {...r,name:t,decode:o=>TI({name:t,raw:o,schema:n,steps:i,versions:r}),encode:o=>({__codec:t,data:o,version:r.currentVersion}),support:o=>Ny({version:o,versions:r}),versionOf:o=>{let a=Fy.parse(o);if(a.__codec!==t)throw new fs({expected:t,got:a.__codec});return a.version}}}function AI({firstVersion:e,steps:t}){if(!Number.isInteger(e)||e<1)throw new Error(`A codec's first version must be a positive integer, got ${String(e)}`);return {currentVersion:e+t.length,firstVersion:e,minimumVersion:t.reduce((n,i,r)=>i.kind==="semantic"?e+r+1:n,e)}}function Ny({version:e,versions:t}){return e>t.currentVersion||e<t.firstVersion?"predates-executable-model":e<t.minimumVersion?"below-floor":"supported"}function TI({name:e,raw:t,schema:n,steps:i,versions:r}){let o=Fy.parse(t);if(o.__codec!==e)throw new fs({expected:e,got:o.__codec});let a=Ny({version:o.version,versions:r});if(a!=="supported")throw new Nf({...r,codec:e,gotVersion:o.version,kind:a});let c=i.slice(o.version-r.firstVersion).reduce((l,d)=>d.kind==="reshape"?d.migrate(l):l,o.data);return n.parse(c)}var zf=u.strictObject({id:u.string().min(1),token:u.string().min(1)});var zy=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("started"),operation:Vn,token:zf.shape.token}),u.strictObject({durationMs:u.number().nonnegative().optional(),kind:u.literal("returned"),operation:Vn,token:zf.shape.token})]);var FI=["unspecified","internal","server","client","producer","consumer"],PI=["unset","ok","error"],NI=u.looseObject({node:u.looseObject({id:u.number()}).optional(),parentId:u.number().nullable().optional()}),zI=u.looseObject({data:u.looseObject({adds:u.array(NI).optional(),attributes:u.array(u.looseObject({id:u.number()})).optional(),href:u.string().optional(),removes:u.array(u.looseObject({id:u.number()})).optional(),source:u.number().optional(),texts:u.array(u.looseObject({id:u.number()})).optional(),userTriggered:u.boolean().optional()}).optional(),timestamp:u.number(),type:u.number()}),Dt=u.string(),UI=u.object({action:u.string(),kind:u.literal("action"),source:u.literal("test"),target:u.string().optional(),timeNanos:Dt,value:u.string().optional()}),jI=u.object({event:zI,kind:u.literal("rrweb"),rrwebType:u.string(),source:u.literal("browser"),timeNanos:Dt}),LI=u.object({durationMs:u.number().optional(),kind:u.literal("network"),method:u.string(),requestBody:u.string().optional(),resourceType:u.string(),responseBody:u.string().optional(),source:u.literal("browser"),spanId:u.string().optional(),status:u.number(),timeNanos:Dt,traceId:u.string().optional(),url:u.string()}),MI=u.object({kind:u.literal("console"),level:u.string(),source:u.literal("browser"),text:u.string(),timeNanos:Dt}),BI=u.discriminatedUnion("problem",[u.object({message:u.string(),problem:u.literal("page-error"),stack:u.string().optional()}),u.object({method:u.string(),path:u.string(),problem:u.literal("server-error"),status:u.number()}),u.object({method:u.string(),path:u.string(),problem:u.literal("request-failed"),reason:u.string()})]),VI=u.object({count:u.number().int().min(1),detail:BI,kind:u.literal("health"),source:u.literal("browser"),stepIndex:u.number().int().min(0).optional(),timeNanos:Dt}),ZI=u.object({clientVersion:u.string(),kind:u.literal("meta"),source:u.literal("capture"),timeNanos:Dt}),WI=u.object({dialogType:Dy,kind:u.literal("dialog"),message:u.string(),source:u.literal("browser"),stepIndex:u.number().int().nullable(),timeNanos:Dt}),GI=u.object({event:zy,kind:u.literal("schema-trace"),source:u.literal("browser"),timeNanos:Dt}),qI=u.object({kind:u.literal("handover"),source:u.literal("capture"),timeNanos:Dt}),HI=u.object({kind:u.literal("handback"),source:u.literal("capture"),timeNanos:Dt}),YI=u.object({kind:u.literal("notice"),message:u.string(),source:u.literal("capture"),timeNanos:Dt}),JI=u.object({attributes:u.record(u.string(),u.string()),durationMs:u.number(),kind:u.literal("span"),name:u.string(),parentSpanId:u.string().optional(),source:u.literal("server"),spanId:u.string(),spanKind:u.enum(FI),status:u.object({code:u.enum(PI),message:u.string().optional()}),timeNanos:Dt,traceId:u.string()}),KI=u.union([Ry,u.discriminatedUnion("kind",[Iy,wy,Pf,$y,UI,jI,LI,MI,VI,ZI,qI,HI,GI,YI,WI,Ay,Ty,JI])]),XI=u.looseObject({kind:u.enum(["model-step","model-input-failed"]),pageUrl:u.undefined()});function QI(e){return u.array(u.unknown()).parse(e).map(n=>{let i=XI.safeParse(n);return i.success?{...i.data,pageUrl:null}:n})}var eO=u.looseObject({action:u.undefined(),kind:u.literal("exploration-step"),phase:u.literal("start")});function tO(e){return u.array(u.unknown()).parse(e).map(t=>{let n=eO.safeParse(t);return n.success?{...n.data,action:null}:t})}var rO=u.looseObject({kind:u.literal("model-setup"),now:u.undefined()});function nO(e){return u.array(u.unknown()).parse(e).map(t=>{let n=rO.safeParse(t);return n.success?{...n.data,now:null}:t})}var iO=u.looseObject({kind:u.literal("model-step"),visit:u.undefined()});function oO(e){return u.array(u.unknown()).parse(e).map(t=>{let n=iO.safeParse(t);return n.success?{...n.data,visit:null}:t})}var aO=u.looseObject({kind:u.literal("stale")});function Uf(e){if(Array.isArray(e))return e.map(i=>Uf(i));if(typeof e!="object"||e===null)return e;let t=aO.safeParse(e),n=t.success?{...t.data,kind:"missing"}:e;return Object.fromEntries(Object.entries(n).map(([i,r])=>[i,Uf(r)]))}var sO=Py({firstVersion:22,name:"ripplo-behavior",schema:u.array(u.unknown()),steps:[{kind:"reshape",migrate:QI},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:tO},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:nO},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:Uf},{kind:"reshape",migrate:oO}]}),uO=u.object({__codec:u.string().min(1),version:u.number().int().positive()});function Zi(e){let t=cO(e),n=uO.parse(lO(t)),i=t.slice(1).flatMap(o=>{let a=Uy(o);return a==null?[]:[a]});return sO.decode({...n,data:i}).flatMap(o=>{let a=KI.safeParse(o);return a.success?[a.data]:[]})}function cO(e){return e.split(`
45
- `).filter(t=>t.length>0)}function lO(e){let t=e[0];return t==null?null:Uy(t)}function Gn(e){return Number(BigInt(e)/1000000n)}function Uy(e){try{return JSON.parse(e)}catch{return null}}function qn(e){if(e.by==="element"){let t=Object.entries(e.values).map(([n,i])=>`${n}: ${String(i)}`).join(", ");return `${e.name}(${t})`}return e.by==="testId"?`testId=${e.value}`:e.by==="inside"?`${qn(e.scope)} \u25B8 ${qn(e.target)}`:e.by==="surface"?qn(e.container):e.by==="frame"?`frame ${qn(e.element)}`:`${e.role} ${e.name??""}`.trim()}function jy(e){return e.kind==="drag"?[e.source,e.target]:"locator"in e&&e.locator!=null?[e.locator]:[]}function jf(e){if(e.kind==="goto")return e.url;let[t]=jy(e);return t==null?void 0:qn(t)}var dO=new Set(["localhost","127.0.0.1","[::1]"]),Ly="*";var Lf="zz-ripplo-wildcard-zz",pO=2;function Hn(e){let t=URL.parse(fO(e));if(t==null||!Mf(t)||e.includes("#"))return null;let n=e.split(Ly).length-1;if(n===0)return {kind:"exact",url:e};if(n>1||!t.hostname.includes(Lf))return null;let i=t.hostname.split("."),r=i.findIndex(o=>o.includes(Lf));return i.length-r-1<pO?null:{kind:"host-pattern",url:e}}function fO(e){return e.replace(Ly,Lf)}function Mf(e){return e.protocol==="https:"?true:e.protocol==="http:"&&dO.has(e.hostname)}var Bf=500,mO=/^(?:\d{1,3}(?:\.\d{1,3}){3}|\[.*\])$/u,ms=u.string().trim().max(Bf).refine(e=>Zy(e),{message:"Must be an https URL with a hostname such as example.com, not an IP address. Plain http is allowed only on localhost."}),hs=u.string().trim().min(1,"Required.").max(Bf).refine(e=>e.startsWith("/")||Zy(e),{message:"Must be a path starting with / or a full https URL. Plain http is allowed only on localhost."}),My=u.string().trim().min(1,"Required.").max(60).regex(/^\S+$/u,"No spaces. The name is typed as auth=<name> in a GitHub comment."),jr=u.string().trim().min(1,"Required.").max(Bf).refine(e=>Hn(e)!=null,{message:"Must be an https address with no fragment. Plain http is allowed only on localhost. One * is allowed in the hostname, not in its last two labels."}),hO={name:My,redirectUris:u.array(u.object({value:jr})).min(1,"Add at least one redirect URI."),signInEntry:hs},By="********",gO=u.object({enabled:u.literal(false)}),vO=u.object({baseUrl:ms,enabled:u.literal(true),token:u.string().min(1,"Required.")}),Vy={...hO,scim:u.discriminatedUnion("enabled",[gO,vO])};u.object(Vy).transform(({redirectUris:e,scim:t,...n})=>({...n,redirectUris:e.map(i=>i.value),scim:t.enabled?{baseUrl:t.baseUrl,token:t.token}:null}));u.object(Vy).transform(({redirectUris:e,scim:t,...n})=>({...n,redirectUris:e.map(i=>i.value),scim:t.enabled?{baseUrl:t.baseUrl,token:t.token===By?null:t.token}:null}));function Zy(e){let t=URL.parse(e);return t!=null&&Mf(t)&&t.hostname.length>0&&!mO.test(t.hostname)}var Vf=jr;function Zf(e){return e.dialog==null?"":` (${_O(e.dialog)})`}function _O(e){switch(e.kind){case "accept":return e.text==null?"accept dialog":`accept dialog with ${JSON.stringify(e.text)}`;case "dismiss":return "dismiss dialog"}}var Wf=["* { scroll-behavior: auto !important; }","*, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }","noscript { display: none !important; }"];var DO={withStackTrace:false},qy=(e,t,n=DO)=>{let i=t.isOk()?{type:"Ok",value:t.value}:{type:"Err",value:t.error},r=n.withStackTrace?new Error().stack:void 0;return {data:i,message:e,stack:r}};function Lr(e,t,n,i){function r(o){return o instanceof n?o:new n(function(a){a(o);})}return new(n||(n=Promise))(function(o,a){function s(d){try{l(i.next(d));}catch(p){a(p);}}function c(d){try{l(i.throw(d));}catch(p){a(p);}}function l(d){d.done?o(d.value):r(d.value).then(s,c);}l((i=i.apply(e,[])).next());})}function Wy(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Wt(e){return this instanceof Wt?(this.v=e,this):new Wt(e)}function Gy(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(h){return function(y){return Promise.resolve(y).then(h,p)}}function s(h,y){i[h]&&(r[h]=function(x){return new Promise(function(b,j){o.push([h,x,b,j])>1||c(h,x);})},y&&(r[h]=y(r[h])));}function c(h,y){try{l(i[h](y));}catch(x){m(o[0][3],x);}}function l(h){h.value instanceof Wt?Promise.resolve(h.value.v).then(d,p):m(o[0][2],h);}function d(h){c("next",h);}function p(h){c("throw",h);}function m(h,y){h(y),o.shift(),o.length&&c(o[0][0],o[0][1]);}}function xO(e){var t,n;return t={},i("next"),i("throw",function(r){throw r}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(r,o){t[r]=e[r]?function(a){return (n=!n)?{value:Wt(e[r](a)),done:false}:o?o(a):a}:o;}}function SO(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Wy=="function"?Wy(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(o){n[o]=e[o]&&function(a){return new Promise(function(s,c){a=e[o](a),r(s,c,a.done,a.value);})};}function r(o,a,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s});},a);}}var Gt=class e{constructor(t){this._promise=t;}static fromSafePromise(t){let n=t.then(i=>new xt(i));return new e(n)}static fromPromise(t,n){let i=t.then(r=>new xt(r)).catch(r=>new dt(n(r)));return new e(i)}static fromThrowable(t,n){return (...i)=>new e(Lr(this,void 0,void 0,function*(){try{return new xt(yield t(...i))}catch(r){return new dt(n?n(r):r)}}))}static combine(t){return EO(t)}static combineWithAllErrors(t){return wO(t)}map(t){return new e(this._promise.then(n=>Lr(this,void 0,void 0,function*(){return n.isErr()?new dt(n.error):new xt(yield t(n.value))})))}andThrough(t){return new e(this._promise.then(n=>Lr(this,void 0,void 0,function*(){if(n.isErr())return new dt(n.error);let i=yield t(n.value);return i.isErr()?new dt(i.error):new xt(n.value)})))}andTee(t){return new e(this._promise.then(n=>Lr(this,void 0,void 0,function*(){if(n.isErr())return new dt(n.error);try{yield t(n.value);}catch{}return new xt(n.value)})))}orTee(t){return new e(this._promise.then(n=>Lr(this,void 0,void 0,function*(){if(n.isOk())return new xt(n.value);try{yield t(n.error);}catch{}return new dt(n.error)})))}mapErr(t){return new e(this._promise.then(n=>Lr(this,void 0,void 0,function*(){return n.isOk()?new xt(n.value):new dt(yield t(n.error))})))}andThen(t){return new e(this._promise.then(n=>{if(n.isErr())return new dt(n.error);let i=t(n.value);return i instanceof e?i._promise:i}))}orElse(t){return new e(this._promise.then(n=>Lr(this,void 0,void 0,function*(){return n.isErr()?t(n.error):new xt(n.value)})))}match(t,n){return this._promise.then(i=>i.match(t,n))}unwrapOr(t){return this._promise.then(n=>n.unwrapOr(t))}safeUnwrap(){return Gy(this,arguments,function*(){return yield Wt(yield Wt(yield*xO(SO(yield Wt(this._promise.then(n=>n.safeUnwrap()))))))})}then(t,n){return this._promise.then(t,n)}[Symbol.asyncIterator](){return Gy(this,arguments,function*(){let n=yield Wt(this._promise);return n.isErr()&&(yield yield Wt(Wi(n.error))),yield Wt(n.value)})}};function Wi(e){return new Gt(Promise.resolve(new dt(e)))}var Hy=e=>{let t=Ce([]);for(let n of e)if(n.isErr()){t=ue(n.error);break}else t.map(i=>i.push(n.value));return t},EO=e=>Gt.fromSafePromise(Promise.all(e)).andThen(Hy),Yy=e=>{let t=Ce([]);for(let n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=ue([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},wO=e=>Gt.fromSafePromise(Promise.all(e)).andThen(Yy),Gf;(function(e){function t(r,o){return (...a)=>{try{let s=r(...a);return Ce(s)}catch(s){return ue(o?o(s):s)}}}e.fromThrowable=t;function n(r){return Hy(r)}e.combine=n;function i(r){return Yy(r)}e.combineWithAllErrors=i;})(Gf||(Gf={}));function Ce(e){return new xt(e)}function ue(e){return new dt(e)}var xt=class{constructor(t){this.value=t;}isOk(){return true}isErr(){return !this.isOk()}map(t){return Ce(t(this.value))}mapErr(t){return Ce(this.value)}andThen(t){return t(this.value)}andThrough(t){return t(this.value).map(n=>this.value)}andTee(t){try{t(this.value);}catch{}return Ce(this.value)}orTee(t){return Ce(this.value)}orElse(t){return Ce(this.value)}asyncAndThen(t){return t(this.value)}asyncAndThrough(t){return t(this.value).map(()=>this.value)}asyncMap(t){return Gt.fromSafePromise(t(this.value))}unwrapOr(t){return this.value}match(t,n){return t(this.value)}safeUnwrap(){let t=this.value;return (function*(){return t})()}_unsafeUnwrap(t){return this.value}_unsafeUnwrapErr(t){throw qy("Called `_unsafeUnwrapErr` on an Ok",this,t)}*[Symbol.iterator](){return this.value}},dt=class{constructor(t){this.error=t;}isOk(){return false}isErr(){return !this.isOk()}map(t){return ue(this.error)}mapErr(t){return ue(t(this.error))}andThrough(t){return ue(this.error)}andTee(t){return ue(this.error)}orTee(t){try{t(this.error);}catch{}return ue(this.error)}andThen(t){return ue(this.error)}orElse(t){return t(this.error)}asyncAndThen(t){return Wi(this.error)}asyncAndThrough(t){return Wi(this.error)}asyncMap(t){return Wi(this.error)}unwrapOr(t){return t}match(t,n){return n(this.error)}safeUnwrap(){let t=this.error;return (function*(){throw yield ue(t),new Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(t){throw qy("Called `_unsafeUnwrap` on an Err",this,t)}_unsafeUnwrapErr(t){return this.error}*[Symbol.iterator](){let t=this;return yield t,t}};Gf.fromThrowable;function qf({base:e,taken:t}){let n=new Set(t.map(o=>o.toLowerCase())),r=[e,...Array.from({length:t.length+1},(o,a)=>`${e}-${String(a+2)}`)].find(o=>!n.has(o.toLowerCase()));if(r==null)throw new Error("connection-name-candidates-exhausted");return r}var gs=Symbol.for("better-auth:broadcast-channel"),$O=()=>Math.floor(Date.now()/1e3),IO=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e;}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e);}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:$O()}));}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return ()=>{};let e=t=>{if(t.key!==this.name)return;let n=JSON.parse(t.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(i=>i(n));};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e);}}};function Gi(e="better-auth.message"){return globalThis[gs]||(globalThis[gs]=new IO(e)),globalThis[gs]}var vs=Symbol.for("better-auth:focus-manager"),OO=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e);}}setFocused(e){this.listeners.forEach(t=>t(e));}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return ()=>{};let e=()=>{document.visibilityState==="visible"&&this.setFocused(true);};return document.addEventListener("visibilitychange",e,false),()=>{document.removeEventListener("visibilitychange",e,false);}}};function Hf(){return globalThis[vs]||(globalThis[vs]=new OO),globalThis[vs]}var ys=Symbol.for("better-auth:online-manager"),kO=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:true;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e);}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e));}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return ()=>{};let e=()=>this.setOnline(true),t=()=>this.setOnline(false);return window.addEventListener("online",e,false),window.addEventListener("offline",t,false),()=>{window.removeEventListener("online",e,false),window.removeEventListener("offline",t,false);}}};function bs(){return globalThis[ys]||(globalThis[ys]=new kO),globalThis[ys]}var CO={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},RO=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,Ky={true:true,false:false,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},AO=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function TO(e){return e instanceof Date&&!isNaN(e.getTime())}function FO(e){let t=AO.exec(e);if(!t)return null;let[,n,i,r,o,a,s,c,l,d,p]=t,m=new Date(Date.UTC(parseInt(n,10),parseInt(i,10)-1,parseInt(r,10),parseInt(o,10),parseInt(a,10),parseInt(s,10),c?parseInt(c.padEnd(3,"0"),10):0));if(l){let h=(parseInt(d,10)*60+parseInt(p,10))*(l==="+"?-1:1);m.setUTCMinutes(m.getUTCMinutes()+h);}return TO(m)?m:null}function PO(e,t={}){let{strict:n=false,warnings:i=false,reviver:r,parseDates:o=true}=t;if(typeof e!="string")return e;let a=e.trim();if(a.length>0&&a[0]==='"'&&a.endsWith('"')&&!a.slice(1,-1).includes('"'))return a.slice(1,-1);let s=a.toLowerCase();if(s.length<=9&&s in Ky)return Ky[s];if(!RO.test(a)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(CO).some(([c,l])=>{let d=l.test(a);return d&&i&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${c} pattern`),d})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(a,(l,d)=>{if(l==="__proto__"||l==="constructor"&&d&&typeof d=="object"&&"prototype"in d){i&&console.warn(`[better-json] Dropping "${l}" key to prevent prototype pollution`);return}if(o&&typeof d=="string"){let p=FO(d);if(p)return p}return r?r(l,d):d})}catch(c){if(n)throw c;return e}}function Yf(e,t={strict:true}){return PO(e,t)}var qi=Symbol("clean");var Pt=[],vr=0,_s=4,Hi=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(i){return n.lc=t.push(i),()=>{for(let o=vr+_s;o<Pt.length;)Pt[o]===i?Pt.splice(o,_s):o+=_s;let r=t.indexOf(i);~r&&(t.splice(r,1),--n.lc||n.off());}},notify(i,r){let o=!Pt.length;for(let a of t)Pt.push(a,n.value,i,r);if(o){for(vr=0;vr<Pt.length;vr+=_s)Pt[vr](Pt[vr+1],Pt[vr+2],Pt[vr+3]);Pt.length=0;}},off(){},set(i){let r=n.value;r!==i&&(n.value=i,n.notify(r));},subscribe(i){let r=n.listen(i);return i(n.value),r},value:e};return process.env.NODE_ENV!=="production"&&(n[qi]=()=>{t=[],n.lc=0,n.off();}),n};var zO=5,Yn=6,Ds=10,UO=(e,t,n,i)=>(e.events=e.events||{},e.events[n+Ds]||(e.events[n+Ds]=i(r=>{e.events[n].reduceRight((o,a)=>(a(o),o),{shared:{},...r});})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let r=e.events[n],o=r.indexOf(t);r.splice(o,1),r.length||(delete e.events[n],e.events[n+Ds](),delete e.events[n+Ds]);});var Xy=1e3,Yi=(e,t)=>UO(e,i=>{let r=t(i);r&&e.events[Yn].push(r);},zO,i=>{let r=e.listen;e.listen=(...a)=>(!e.lc&&!e.active&&(e.active=true,i()),r(...a));let o=e.off;if(e.events[Yn]=[],e.off=()=>{o(),setTimeout(()=>{if(e.active&&!e.lc){e.active=false;for(let a of e.events[Yn])a();e.events[Yn]=[];}},Xy);},process.env.NODE_ENV!=="production"){let a=e[qi];e[qi]=()=>{for(let s of e.events[Yn])s();e.events[Yn]=[],e.active=false,a();};}return ()=>{e.listen=r,e.off=o;}});var jO=()=>typeof window>"u",xs=(e,t,n,i)=>{let r=Hi({data:null,error:null,isPending:true,isRefetching:false,refetch:s=>o(s)}),o=async s=>new Promise(c=>{let l=typeof i=="function"?i({data:r.get().data,error:r.get().error,isPending:r.get().isPending}):i;n(t,{...l,query:{...l?.query,...s?.query},async onSuccess(d){r.set({data:d.data,error:null,isPending:false,isRefetching:false,refetch:r.value.refetch}),await l?.onSuccess?.(d);},async onError(d){let{request:p}=d,m=typeof p.retry=="number"?p.retry:p.retry?.attempts,h=p.retryAttempt||0;if(m&&h<m)return;let y=d.error.status===401;r.set({error:d.error,data:y?null:r.get().data,isPending:false,isRefetching:false,refetch:r.value.refetch}),await l?.onError?.(d);},async onRequest(d){let p=r.get();r.set({isPending:p.data===null,data:p.data,error:null,isRefetching:true,refetch:r.value.refetch}),await l?.onRequest?.(d);}}).catch(d=>{r.set({error:d,data:r.get().data,isPending:false,isRefetching:false,refetch:r.value.refetch});}).finally(()=>{c(void 0);});});e=Array.isArray(e)?e:[e];let a=false;for(let s of e)s.subscribe(async()=>{jO()||(a?await o():Yi(r,()=>{let c=setTimeout(async()=>{a||(await o(),a=true);},0);return ()=>{r.off(),s.off(),clearTimeout(c);}}));});return r};var Jn=()=>Math.floor(Date.now()/1e3);function Qy(e){return typeof e=="object"&&e!==null&&"data"in e&&"error"in e?e:{data:e,error:null}}var LO=5;function Jf(e){let{sessionAtom:t,sessionSignal:n,$fetch:i,options:r={}}=e,o=r.sessionOptions?.refetchInterval??0,a=r.sessionOptions?.refetchOnWindowFocus??true,s=r.sessionOptions?.refetchWhenOffline??false,c={lastSync:0,lastSessionRequest:0,cachedSession:void 0},l=()=>s||bs().isOnline,d=H=>{if(!l())return;if(H?.event==="storage"){c.lastSync=Jn(),n.set(!n.get());return}let B=t.get(),A=()=>{c.lastSessionRequest=Jn(),i("/get-session").then(async k=>{let{data:z,error:re}=Qy(k);if(z?.needsRefresh)try{let be=await i("/get-session",{method:"POST"});({data:z,error:re}=Qy(be));}catch{}let ce=z?.session&&z?.user?z:null;t.set({...B,data:ce,error:re}),c.lastSync=Jn(),n.set(!n.get());}).catch(()=>{});};if(H?.event==="poll"){A();return}if(H?.event==="visibilitychange"){if(Jn()-c.lastSessionRequest<LO)return;c.lastSessionRequest=Jn();}if(H?.event==="visibilitychange"){A();return}(B?.data===null||B?.data===void 0)&&(c.lastSync=Jn(),n.set(!n.get()));},p=H=>{Gi().post({event:"session",data:{trigger:H},clientId:Math.random().toString(36).substring(7)});},m=()=>{o&&o>0&&(c.pollInterval=setInterval(()=>{t.get()?.data&&d({event:"poll"});},o*1e3));},h=()=>{c.unsubscribeBroadcast=Gi().subscribe(()=>{d({event:"storage"});});},y=()=>{a&&(c.unsubscribeFocus=Hf().subscribe(()=>{d({event:"visibilitychange"});}));},x=()=>{c.unsubscribeOnline=bs().subscribe(H=>{H&&d({event:"visibilitychange"});});};return {init:()=>{m(),h(),y(),x(),Gi().setup(),Hf().setup(),bs().setup();},cleanup:()=>{c.pollInterval&&(clearInterval(c.pollInterval),c.pollInterval=void 0),c.unsubscribeBroadcast&&(c.unsubscribeBroadcast(),c.unsubscribeBroadcast=void 0),c.unsubscribeFocus&&(c.unsubscribeFocus(),c.unsubscribeFocus=void 0),c.unsubscribeOnline&&(c.unsubscribeOnline(),c.unsubscribeOnline=void 0),c.lastSync=0,c.lastSessionRequest=0,c.cachedSession=void 0;},triggerRefetch:d,broadcastSessionUpdate:p}}var Ss=Object.create(null),Ji=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Ss:globalThis),et=new Proxy(Ss,{get(e,t){return Ji()[t]??Ss[t]},has(e,t){return t in Ji()||t in Ss},set(e,t,n){let i=Ji(true);return i[t]=n,true},deleteProperty(e,t){if(!t)return false;let n=Ji(true);return delete n[t],true},ownKeys(){let e=Ji(true);return Object.keys(e)}});typeof process<"u"&&process.env&&process.env.NODE_ENV||"";function pe(e,t){return typeof process<"u"&&process.env?process.env[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}var Ki=1,Me=4,qt=8,pt=24,eb={eterm:Me,cons25:Me,console:Me,cygwin:Me,dtterm:Me,gnome:Me,hurd:Me,jfbterm:Me,konsole:Me,kterm:Me,mlterm:Me,mosh:pt,putty:Me,st:Me,"rxvt-unicode-24bit":pt,terminator:pt,"xterm-kitty":pt},VO=new Map(Object.entries({APPVEYOR:qt,BUILDKITE:qt,CIRCLECI:pt,DRONE:qt,GITEA_ACTIONS:pt,GITHUB_ACTIONS:pt,GITLAB_CI:qt,TRAVIS:qt})),ZO=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function Kf(){if(pe("FORCE_COLOR")!==void 0)switch(pe("FORCE_COLOR")){case "":case "1":case "true":return Me;case "2":return qt;case "3":return pt;default:return Ki}if(pe("NODE_DISABLE_COLORS")!==void 0&&pe("NODE_DISABLE_COLORS")!==""||pe("NO_COLOR")!==void 0&&pe("NO_COLOR")!==""||pe("TERM")==="dumb")return Ki;if(pe("TMUX"))return pt;if("TF_BUILD"in et&&"AGENT_NAME"in et)return Me;if("CI"in et){for(let{0:e,1:t}of VO)if(e in et)return t;return pe("CI_NAME")==="codeship"?qt:Ki}if("TEAMCITY_VERSION"in et)return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(pe("TEAMCITY_VERSION"))!==null?Me:Ki;switch(pe("TERM_PROGRAM")){case "iTerm.app":return !pe("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(pe("TERM_PROGRAM_VERSION"))!==null?qt:pt;case "HyperTerm":case "MacTerm":return pt;case "Apple_Terminal":return qt}if(pe("COLORTERM")==="truecolor"||pe("COLORTERM")==="24bit")return pt;if(pe("TERM")){if(/truecolor/.exec(pe("TERM"))!==null)return pt;if(/^xterm-256/.exec(pe("TERM"))!==null)return qt;let e=pe("TERM").toLowerCase();if(eb[e])return eb[e];if(ZO.some(t=>t.exec(e)!==null))return Me}return pe("COLORTERM")?Me:Ki}var Nt={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},Es=["debug","info","success","warn","error"];function tb(e,t){return Es.indexOf(t)>=Es.indexOf(e)}var WO={info:Nt.fg.blue,success:Nt.fg.green,warn:Nt.fg.yellow,error:Nt.fg.red,debug:Nt.fg.magenta},GO=(e,t,n)=>{let i=new Date().toISOString();return n?`${Nt.dim}${i}${Nt.reset} ${WO[e]}${e.toUpperCase()}${Nt.reset} ${Nt.bright}[Better Auth]:${Nt.reset} ${t}`:`${i} ${e.toUpperCase()} [Better Auth]: ${t}`},rb=e=>{let n="warn",i=Kf()!==1,r=(o,a,s=[])=>{if(!tb(n,o))return;let c=GO(o,a,i);{o==="error"?console.error(c,...s):o==="warn"?console.warn(c,...s):console.log(c,...s);return}};return {...Object.fromEntries(Es.map(o=>[o,(...[a,...s])=>r(o,a,s)])),get level(){return n}}};rb();function Fe(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,{code:t,message:n,toString:()=>t}]))}Fe({USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",INVALID_USER:"Invalid user",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",TOKEN_EXPIRED:"Token expired",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists.",USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL:"User already exists. Use another email.",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account.",CROSS_SITE_NAVIGATION_LOGIN_BLOCKED:"Cross-site navigation login blocked. This request appears to be a CSRF attack.",VERIFICATION_EMAIL_NOT_ENABLED:"Verification email isn't enabled",EMAIL_ALREADY_VERIFIED:"Email is already verified",EMAIL_MISMATCH:"Email mismatch",SESSION_NOT_FRESH:"Session is not fresh",LINKED_ACCOUNT_ALREADY_EXISTS:"Linked account already exists",INVALID_ORIGIN:"Invalid origin",INVALID_CALLBACK_URL:"Invalid callbackURL",INVALID_REDIRECT_URL:"Invalid redirectURL",INVALID_ERROR_CALLBACK_URL:"Invalid errorCallbackURL",INVALID_NEW_USER_CALLBACK_URL:"Invalid newUserCallbackURL",MISSING_OR_NULL_ORIGIN:"Missing or null Origin",CALLBACK_URL_REQUIRED:"callbackURL is required",FAILED_TO_CREATE_VERIFICATION:"Unable to create verification",FIELD_NOT_ALLOWED:"Field not allowed to be set",ASYNC_VALIDATION_NOT_SUPPORTED:"Async validation is not supported",VALIDATION_ERROR:"Validation Error",MISSING_FIELD:"Field is required",METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED:"POST method requires deferSessionRefresh to be enabled in session config",BODY_MUST_BE_AN_OBJECT:"Body must be an object",PASSWORD_ALREADY_SET:"User already has a password set"});var yr=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack="";}};function tk(e){try{return (new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new yr(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function rk(e){try{let t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new yr(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof yr?t:new yr(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function Xi(e,t="/api/auth"){if(rk(e),tk(e))return e;let n=e.replace(/\/+$/,"");return !t||t==="/"?n:(t=t.startsWith("/")?t:`/${t}`,`${n}${t}`)}function ib(e,t,n,i,r){if(e)return Xi(e,t);{let s=et.BETTER_AUTH_URL||et.NEXT_PUBLIC_BETTER_AUTH_URL||et.PUBLIC_BETTER_AUTH_URL||et.NUXT_PUBLIC_BETTER_AUTH_URL||et.NUXT_PUBLIC_AUTH_URL||(et.BASE_URL!=="/"?et.BASE_URL:void 0);if(s)return Xi(s,t)}if(typeof window<"u"&&window.location)return Xi(window.location.origin,t)}var ob={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url;}catch{}}}};function ab(e,t){let n=Hi(false),i=xs(n,"/get-session",e,{method:"GET"}),r=()=>{};return Yi(i,()=>{let o=Jf({sessionAtom:i,sessionSignal:n,$fetch:e,options:t});return o.init(),r=o.broadcastSessionUpdate,()=>{o.cleanup();}}),{session:i,$sessionSignal:n,broadcastSessionUpdate:o=>r(o)}}function Xf(e){if(e===null||typeof e!="object")return false;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?false:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":true}function Qf(e,t,n=".",i){if(!Xf(t))return Qf(e,{},n,i);let r=Object.assign({},t);for(let o in e){if(o==="__proto__"||o==="constructor")continue;let a=e[o];a!=null&&(i&&i(r,o,a,n)||(Array.isArray(a)&&Array.isArray(r[o])?r[o]=[...a,...r[o]]:Xf(a)&&Xf(r[o])?r[o]=Qf(a,r[o],(n?`${n}.`:"")+o.toString(),i):r[o]=a));}return r}function em(e){return (...t)=>t.reduce((n,i)=>Qf(n,i,"",e),{})}var sb=em();var ik=Object.defineProperty,ok=Object.defineProperties,ak=Object.getOwnPropertyDescriptors,ub=Object.getOwnPropertySymbols,sk=Object.prototype.hasOwnProperty,uk=Object.prototype.propertyIsEnumerable,cb=(e,t,n)=>t in e?ik(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,zt=(e,t)=>{for(var n in t||(t={}))sk.call(t,n)&&cb(e,n,t[n]);if(ub)for(var n of ub(t))uk.call(t,n)&&cb(e,n,t[n]);return e},Ht=(e,t)=>ok(e,ak(t)),ck=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor);}},lk=async(e,t)=>{var n,i,r,o,a,s;let c=t||{},l={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return {url:e,options:c,hooks:l};for(let d of t?.plugins||[]){if(d.init){let p=await((n=d.init)==null?void 0:n.call(d,e.toString(),t));c=p.options||c,e=p.url;}l.onRequest.push((i=d.hooks)==null?void 0:i.onRequest),l.onResponse.push((r=d.hooks)==null?void 0:r.onResponse),l.onSuccess.push((o=d.hooks)==null?void 0:o.onSuccess),l.onError.push((a=d.hooks)==null?void 0:a.onError),l.onRetry.push((s=d.hooks)==null?void 0:s.onRetry);}return {url:e,options:c,hooks:l}},lb=class{constructor(e){this.options=e;}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},dk=class{constructor(e){this.options=e;}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function pk(e){if(typeof e=="number")return new lb({type:"linear",attempts:e,delay:1e3});switch(e.type){case "linear":return new lb(e);case "exponential":return new dk(e);default:throw new Error("Invalid retry strategy")}}var fk=async e=>{let t={},n=async i=>typeof i=="function"?await i():i;if(e?.auth){if(e.auth.type==="Bearer"){let i=await n(e.auth.token);if(!i)return t;t.authorization=`Bearer ${i}`;}else if(e.auth.type==="Basic"){let[i,r]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!i||!r)return t;t.authorization=`Basic ${btoa(`${i}:${r}`)}`;}else if(e.auth.type==="Custom"){let[i,r]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!r)return t;t.authorization=`${i??""} ${r}`;}}return t},mk=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function hk(e){let t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return "json";let i=t.split(";").shift()||"";return mk.test(i)?"json":n.has(i)||i.startsWith("text/")?"text":"blob"}function gk(e){try{return JSON.parse(e),!0}catch{return false}}function tm(e){if(e===void 0)return false;let t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?true:t!=="object"?false:Array.isArray(e)?true:e.buffer?false:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function db(e){try{return JSON.parse(e)}catch{return e}}function pb(e){return typeof e=="function"}function vk(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&pb(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&pb(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function yk(e){let t=new Headers(e?.headers),n=await fk(e);for(let[i,r]of Object.entries(n||{}))t.set(i,r);if(!t.has("content-type")){let i=bk(e?.body);i&&t.set("content-type",i);}return t}function bk(e){return tm(e)?"application/json":null}function _k(e){if(!e?.body)return null;let t=new Headers(e?.headers);if(tm(e.body)&&!t.has("content-type")){for(let[n,i]of Object.entries(e?.body))i instanceof Date&&(e.body[n]=i.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&tm(e.body)?new URLSearchParams(e.body).toString():e.body}function Dk(e,t){var n;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){let i=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return mb.includes(i)?i.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function xk(e,t){let n;return !e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n);}}}var Sk=class fb extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,fb.prototype);}};async function ws(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new Sk(n.issues);return n.value}var mb=["get","post","put","patch","delete"];var Ek=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var i,r,o,a;let s=((r=(i=e.plugins)==null?void 0:i.find(c=>{var l;return (l=c.schema)!=null&&l.config?t.startsWith(c.schema.config.baseURL||"")||t.startsWith(c.schema.config.prefix||""):false}))==null?void 0:r.schema)||e.schema;if(s){let c=t;(o=s.config)!=null&&o.prefix&&c.startsWith(s.config.prefix)&&(c=c.replace(s.config.prefix,""),s.config.baseURL&&(t=t.replace(s.config.prefix,s.config.baseURL))),(a=s.config)!=null&&a.baseURL&&c.startsWith(s.config.baseURL)&&(c=c.replace(s.config.baseURL,""));let l=s.schema[c];if(l){let d=Ht(zt({},n),{method:l.method,output:l.output});return n?.disableValidation||(d=Ht(zt({},d),{body:l.input?await ws(l.input,n?.body):n?.body,params:l.params?await ws(l.params,n?.params):n?.params,query:l.query?await ws(l.query,n?.query):n?.query})),{url:t,options:d}}}return {url:t,options:n}}}),hb=e=>{async function t(n,i){let r=Ht(zt(zt({},e),i),{plugins:[...e?.plugins||[],Ek(e||{}),...i?.plugins||[]]});if(e?.catchAllError)try{return await rm(n,r)}catch(o){return {data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:o}}}return await rm(n,r)}return t};function wk(e,t){let{baseURL:n,params:i,query:r}=t||{query:{},params:{},baseURL:""},o=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){let p=e.toString().split("@")[1].split("/")[0];mb.includes(p)&&(e=e.replace(`@${p}/`,"/"));}o.endsWith("/")||(o+="/");let[a,s]=e.replace(o,"").split("?"),c=new URLSearchParams(s);for(let[p,m]of Object.entries(r||{})){if(m==null)continue;let h;if(typeof m=="string")h=m;else if(Array.isArray(m)){for(let y of m)c.append(p,y);continue}else h=JSON.stringify(m);c.set(p,h);}if(i)if(Array.isArray(i)){let p=a.split("/").filter(m=>m.startsWith(":"));for(let[m,h]of p.entries()){let y=i[m];a=a.replace(h,y);}}else for(let[p,m]of Object.entries(i))a=a.replace(`:${p}`,String(m));a=a.split("/").map(encodeURIComponent).join("/"),a.startsWith("/")&&(a=a.slice(1));let l=c.toString();return l=l.length>0?`?${l}`.replace(/\+/g,"%20"):"",o.startsWith("http")?new URL(`${a}${l}`,o):`${o}${a}${l}`}var rm=async(e,t)=>{var n,i,r,o,a,s,c,l;let{hooks:d,url:p,options:m}=await lk(e,t),h=vk(m),y=new AbortController,x=(n=m.signal)!=null?n:y.signal,b=wk(p,m),j=_k(m),H=await yk(m),B=Dk(p,m),A=Ht(zt({},m),{url:b,headers:H,body:j,method:B,signal:x});for(let T of d.onRequest)if(T){let V=await T(A);typeof V=="object"&&V!==null&&(A=V);}("pipeTo"in A&&typeof A.pipeTo=="function"||typeof((i=t?.body)==null?void 0:i.pipe)=="function")&&("duplex"in A||(A.duplex="half"));let{clearTimeout:k}=xk(m,y),z=await h(A.url,A);k();let re={response:z,request:A};for(let T of d.onResponse)if(T){let V=await T(Ht(zt({},re),{response:(r=t?.hookOptions)!=null&&r.cloneResponse?z.clone():z}));V instanceof Response?z=V:typeof V=="object"&&V!==null&&(z=V.response);}if(z.ok){if(!(A.method!=="HEAD"))return {data:"",error:null};let V=hk(z),te={data:null,response:z,request:A};if(V==="json"||V==="text"){let de=await z.text(),se=(o=A.jsonParser)!=null?o:db;te.data=await se(de);}else te.data=await z[V]();A?.output&&A.output&&!A.disableValidation&&(te.data=await ws(A.output,te.data));for(let de of d.onSuccess)de&&await de(Ht(zt({},te),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?z.clone():z}));return t?.throw?te.data:{data:te.data,error:null}}let ce=(s=t?.jsonParser)!=null?s:db,be=await z.text(),ie=gk(be),P=ie?await ce(be):null,N={response:z,responseText:be,request:A,error:Ht(zt({},P),{status:z.status,statusText:z.statusText})};for(let T of d.onError)T&&await T(Ht(zt({},N),{response:(c=t?.hookOptions)!=null&&c.cloneResponse?z.clone():z}));if(t?.retry){let T=pk(t.retry),V=(l=t.retryAttempt)!=null?l:0;if(await T.shouldAttemptRetry(V,z)){for(let de of d.onRetry)de&&await de(re);let te=T.getDelay(V);return await new Promise(de=>setTimeout(de,te)),await rm(e,Ht(zt({},t),{retryAttempt:V+1}))}}if(t?.throw)throw new ck(z.status,z.statusText,ie?P:be);return {data:null,error:Ht(zt({},P),{status:z.status,statusText:z.statusText})}};var $k=e=>{if(typeof process>"u")return;let t=e??"/api/auth";if(process.env.NEXT_PUBLIC_AUTH_URL)return process.env.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(process.env.NEXTAUTH_URL)try{return process.env.NEXTAUTH_URL}catch{}if(process.env.VERCEL_URL)try{let n=process.env.VERCEL_URL.startsWith("http")?"":"https://";return `${new URL(`${n}${process.env.VERCEL_URL}`).origin}${t}`}catch{}}},gb=(e,t)=>{let n="credentials"in Request.prototype,i=ib(e?.baseURL,e?.basePath)??$k(e?.basePath)??"/api/auth",r=e?.plugins?.flatMap(k=>k.fetchPlugins).filter(k=>k!==void 0)||[],o={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:a,onError:s,onRequest:c,onResponse:l,...d}=e?.fetchOptions||{},p=hb({baseURL:i,...n?{credentials:"include"}:{},method:"GET",jsonParser(k){return k?Yf(k,{strict:false}):null},customFetchImpl:fetch,...d,plugins:[o,...d.plugins||[],...e?.disableDefaultFetchPlugins?[]:[ob],...r]}),{$sessionSignal:m,session:h,broadcastSessionUpdate:y}=ab(p,e),x=e?.plugins||[],b={},j={$sessionSignal:m,session:h},H={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},B=[{signal:"$sessionSignal",matcher(k){return k==="/sign-out"||k==="/update-user"||k==="/update-session"||k==="/sign-up/email"||k==="/sign-in/email"||k==="/delete-user"||k==="/verify-email"||k==="/revoke-sessions"||k==="/revoke-session"||k==="/change-email"},callback(k){k==="/sign-out"?y("signout"):(k==="/update-user"||k==="/update-session")&&y("updateUser");}}];for(let k of x)k.getAtoms&&Object.assign(j,k.getAtoms?.(p)),k.pathMethods&&Object.assign(H,k.pathMethods),k.atomListeners&&B.push(...k.atomListeners);let A={notify:k=>{j[k].set(!j[k].get());},listen:(k,z)=>{j[k].subscribe(z);},atoms:j};for(let k of x)k.getActions&&(b=sb(k.getActions?.(p,A,e)??{},b));return {get baseURL(){return i},pluginsActions:b,pluginsAtoms:j,pluginPathMethods:H,atomListeners:B,$fetch:p,$store:A}};function vb(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function Ik(e,t,n){let i=t[e],{fetchOptions:r,query:o,...a}=n||{};return i||(r?.method?r.method:a&&Object.keys(a).length>0?"POST":"GET")}function yb(e,t,n,i,r){function o(a=[]){return new Proxy(function(){},{get(s,c){if(typeof c!="string"||c==="then"||c==="catch"||c==="finally")return;let l=[...a,c],d=e;for(let p of l)if(d&&typeof d=="object"&&p in d)d=d[p];else {d=void 0;break}return typeof d=="function"||vb(d)?d:o(l)},apply:async(s,c,l)=>{let d="/"+a.map(H=>H.replace(/[A-Z]/g,B=>`-${B.toLowerCase()}`)).join("/"),p=l[0]||{},m=l[1]||{},{query:h,fetchOptions:y,...x}=p,b={...m,...y},j=Ik(d,n,p);return await t(d,{...b,body:j==="GET"?void 0:{...x,...b?.body||{}},query:h||b?.query,method:j,async onSuccess(H){if(await b?.onSuccess?.(H),!r||b.disableSignal)return;let B=r.filter(k=>k.matcher(d));if(!B.length)return;let A=new Set;for(let k of B){let z=i[k.signal];if(!z)return;if(A.has(k.signal))continue;A.add(k.signal);let re=z.get();setTimeout(()=>{z.set(!re);},10),k.callback?.(d);}}})}})}return o()}function bb(e){return e.charAt(0).toUpperCase()+e.slice(1)}function nm(e){let{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:i,$fetch:r,atomListeners:o,$store:a}=gb(e),s={};for(let[c,l]of Object.entries(i))s[`use${bb(c)}`]=l;return yb({...n,...s,$fetch:r,$store:a},r,t,i,o)}Fe({FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists.",USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL:"User already exists. Use another email.",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application",YOU_ARE_NOT_ALLOWED_TO_GET_USER:"You are not allowed to get user",NO_DATA_TO_UPDATE:"No data to update",YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS:"You are not allowed to update users",YOU_CANNOT_REMOVE_YOURSELF:"You cannot remove yourself",YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE:"You are not allowed to set a non-existent role value",YOU_CANNOT_IMPERSONATE_ADMINS:"You cannot impersonate admins",INVALID_ROLE_TYPE:"Invalid role type"});Fe({INVALID_EMAIL_FORMAT:"Email was not generated in a valid format",FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously",FAILED_TO_DELETE_ANONYMOUS_USER:"Failed to delete anonymous user",USER_IS_NOT_ANONYMOUS:"User is not anonymous",DELETE_ANONYMOUS_USER_DISABLED:"Deleting anonymous users is disabled"});var om=()=>({id:"device-authorization",$InferServerPlugin:{},pathMethods:{"/device/code":"POST","/device/token":"POST","/device":"GET","/device/approve":"POST","/device/deny":"POST"}});Fe({OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",TOO_MANY_ATTEMPTS:"Too many attempts"});Fe({INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration",TOKEN_URL_NOT_FOUND:"Invalid OAuth configuration. Token URL not found.",PROVIDER_CONFIG_NOT_FOUND:"No config found for provider",PROVIDER_ID_REQUIRED:"Provider ID is required",INVALID_OAUTH_CONFIG:"Invalid OAuth configuration.",SESSION_REQUIRED:"Session is required",ISSUER_MISMATCH:"OAuth issuer mismatch. The authorization server issuer does not match the expected value (RFC 9207).",ISSUER_MISSING:"OAuth issuer parameter missing. The authorization server did not include the required iss parameter (RFC 9207)."});Fe({INVALID_SESSION_TOKEN:"Invalid session token"});Fe({YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_SLUG_ALREADY_TAKEN:"Organization slug already taken",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER:"You cannot leave the organization without an owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION:"Email verification required before accepting or rejecting invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"You are not allowed to invite a user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached",USER_IS_NOT_A_MEMBER_OF_THE_TEAM:"User is not a member of the team",YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM:"You are not allowed to list the members of this team",YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM:"You do not have an active team",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER:"You are not allowed to create a new member",YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER:"You are not allowed to remove a team member",YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION:"You are not allowed to access this organization as an owner",YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION:"You are not a member of this organization",MISSING_AC_INSTANCE:"Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information",YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE:"You must be in an organization to create a role",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE:"You are not allowed to create a role",YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE:"You are not allowed to update a role",YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE:"You are not allowed to delete a role",YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE:"You are not allowed to read a role",YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE:"You are not allowed to list a role",YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE:"You are not allowed to get a role",TOO_MANY_ROLES:"This organization has too many roles",INVALID_RESOURCE:"The provided permission includes an invalid resource",ROLE_NAME_IS_ALREADY_TAKEN:"That role name is already taken",CANNOT_DELETE_A_PRE_DEFINED_ROLE:"Cannot delete a pre-defined role",ROLE_IS_ASSIGNED_TO_MEMBERS:"Cannot delete a role that is assigned to members. Please reassign the members to a different role first"});Fe({INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",PHONE_NUMBER_NOT_EXIST:"phone number isn't registered",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified",PHONE_NUMBER_CANNOT_BE_UPDATED:"Phone number cannot be updated",SEND_OTP_NOT_IMPLEMENTED:"sendOTP not implemented",TOO_MANY_ATTEMPTS:"Too many attempts"});Fe({OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"});Fe({INVALID_USERNAME_OR_PASSWORD:"Invalid username or password",EMAIL_NOT_VERIFIED:"Email not verified",UNEXPECTED_ERROR:"Unexpected error",USERNAME_IS_ALREADY_TAKEN:"Username is already taken. Please try another.",USERNAME_TOO_SHORT:"Username is too short",USERNAME_TOO_LONG:"Username is too long",INVALID_USERNAME:"Username is invalid",INVALID_DISPLAY_USERNAME:"Display username is invalid"});var Ak=".ripplo";function Ub(){return Bm.join(Rk.homedir(),Ak)}function jb(){let e=Ub();return Kn.existsSync(e)?Kn.chmodSync(e,448):Kn.mkdirSync(e,{mode:448,recursive:true}),e}function Lb(e){return Bm.join(Ub(),e)}function eo(e){let t=process.env.RIPPLO_TOKEN;if(t!=null&&t.trim().length>0)return t.trim();let n=Mr(e);if(!Kn.existsSync(n))return null;let i=Kn.readFileSync(n,"utf8").trim();return i.length===0?null:i}function sm({serverUrl:e,token:t}){jb();let n=Mr(e);Kn.mkdirSync(Bm.dirname(n),{mode:448,recursive:true}),Kn.writeFileSync(n,t+`
46
- `,{mode:384});}function um(e){let t=Mr(e);return Kn.existsSync(t)?(Kn.unlinkSync(t),true):false}function Mr(e){return Lb(Bm.join("tokens",Tk(e)))}function Tk(e){return new URL(e).host.replaceAll(/[^a-zA-Z0-9.]/g,"_")}var Pk=5e3,Bb="ripplo-cli",Nk=new Set(["authorization_pending","slow_down"]);async function Vb({onDeviceCode:e,serverUrl:t}){let n=zk(t),i=await n.device.code({client_id:Bb});if(i.error!=null)return ue({description:i.error.error_description,kind:"device-code-failed"});let{device_code:r,user_code:o,verification_uri_complete:a}=i.data;return e({userCode:o,verificationUrl:a}),Br(a),(await Uk({authClient:n,deviceCode:r})).map(c=>(sm({serverUrl:t,token:c}),c))}function zk(e){return nm({baseURL:e,fetchOptions:{headers:{"User-Agent":"Ripplo CLI"}},plugins:[om()]})}async function Uk({authClient:e,deviceCode:t}){for(;;){await jk(Pk);let n=await e.device.token({client_id:Bb,device_code:t,grant_type:"urn:ietf:params:oauth:grant-type:device_code"});if(n.data?.access_token!=null)return Ce(n.data.access_token);if(n.error!=null&&!Nk.has(n.error.error))return ue({code:n.error.error,description:n.error.error_description,kind:"authorization-failed"})}}function jk(e){return new Promise(t=>{setTimeout(t,e);})}function Br(e){let t=Lk();exec(`${t} "${e}"`,()=>{});}function Lk(){return process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open"}async function to({lookupViewer:e,serverUrl:t}){let n=eo(t);if(n!=null&&await Bk({lookupViewer:e,serverUrl:t,token:n}))return;let r=(await Vb({onDeviceCode:Mk,serverUrl:t})).match(s=>s,s=>{process.stderr.write(`${Vk(s)}
44
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function _r(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=a=>{let s=e.seen.get(a);if(s.ref===null)return;let c=s.def??s.schema,l={...c},d=s.ref;if(s.ref=null,d){i(d);let m=e.seen.get(d),h=m.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(h)):Object.assign(c,h),Object.assign(c,l),a._zod.parent===d)for(let x in c)x==="$ref"||x==="allOf"||x in l||delete c[x];if(h.$ref&&m.def)for(let x in c)x==="$ref"||x==="allOf"||x in m.def&&JSON.stringify(c[x])===JSON.stringify(m.def[x])&&delete c[x];}let p=a._zod.parent;if(p&&p!==d){i(p);let m=e.seen.get(p);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let h in c)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(c[h])===JSON.stringify(m.def[h])&&delete c[h];}e.override({zodSchema:a,jsonSchema:c,path:s.path??[]});};for(let a of [...e.seen.entries()].reverse())i(a[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(a);}Object.assign(r,n.def??n.schema);let o=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(o[s.defId]=s.def);}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:zn(t,"input",e.processors),output:zn(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function et(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return false;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return true;if(i.type==="array")return et(i.element,n);if(i.type==="set")return et(i.valueType,n);if(i.type==="lazy")return et(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return et(i.innerType,n);if(i.type==="intersection")return et(i.left,n)||et(i.right,n);if(i.type==="record"||i.type==="map")return et(i.keyType,n)||et(i.valueType,n);if(i.type==="pipe")return et(i.in,n)||et(i.out,n);if(i.type==="object"){for(let r in i.shape)if(et(i.shape[r],n))return true;return false}if(i.type==="union"){for(let r of i.options)if(et(r,n))return true;return false}if(i.type==="tuple"){for(let r of i.items)if(et(r,n))return true;return !!(i.rest&&et(i.rest,n))}return false}var Ud=(e,t={})=>n=>{let i=vr({...n,processors:t});return le(e,i),br(i,e),_r(i,e)},zn=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=vr({...r??{},target:o,io:t,processors:n});return le(e,a),br(a,e),_r(a,e)};var QI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},jd=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=QI[s]??s,r.format===""&&delete r.format,s==="time"&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){let d=[...c];d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))]);}},Ld=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=d,r.exclusiveMinimum=true):r.exclusiveMinimum=d),typeof o=="number"&&(r.minimum=o,typeof d=="number"&&t.target!=="draft-04"&&(d>=o?delete r.minimum:delete r.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=l,r.exclusiveMaximum=true):r.exclusiveMaximum=l),typeof a=="number"&&(r.maximum=a,typeof l=="number"&&t.target!=="draft-04"&&(l<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof c=="number"&&(r.multipleOf=c);},Md=(e,t,n,i)=>{n.type="boolean";},Bd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Vd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Zd=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=true,n.enum=[null]):n.type="null";},Wd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Gd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},qd=(e,t,n,i)=>{n.not={};},Hd=(e,t,n,i)=>{},Yd=(e,t,n,i)=>{},Jd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Kd=(e,t,n,i)=>{let r=e._zod.def,o=mi(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o;},Xd=(e,t,n,i)=>{let r=e._zod.def,o=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a));}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a;}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o;},Qd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},ep=(e,t,n,i)=>{let r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source;},tp=(e,t,n,i)=>{let r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),c?c.length===1?(o.contentMediaType=c[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(r,o);},rp=(e,t,n,i)=>{n.type="boolean";},np=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},ip=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},op=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},ap=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},sp=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},up=(e,t,n,i)=>{let r=n,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=le(o.element,t,{...i,path:[...i.path,"items"]});},cp=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object",r.properties={};let a=o.shape;for(let l in a)r.properties[l]=le(a[l],t,{...i,path:[...i.path,"properties",l]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(l=>{let d=o.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(r.required=Array.from(c)),o.catchall?._zod.def.type==="never"?r.additionalProperties=false:o.catchall?o.catchall&&(r.additionalProperties=le(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=false);},$a=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===false,a=r.options.map((s,c)=>le(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=a:n.anyOf=a;},lp=(e,t,n,i)=>{let r=e._zod.def,o=le(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=le(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=c;},dp=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((m,h)=>le(m,t,{...i,path:[...i.path,a,h]})),l=o.rest?le(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=c,l&&(r.items=l)):t.target==="openapi-3.0"?(r.items={anyOf:c},l&&r.items.anyOf.push(l),r.minItems=c.length,l||(r.maxItems=c.length)):(r.items=c,l&&(r.additionalItems=l));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof p=="number"&&(r.maxItems=p);},pp=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let d=le(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let p of c)r.patternProperties[p.source]=d;}else (t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=le(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=le(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(r.required=d);}},fp=(e,t,n,i)=>{let r=e._zod.def,o=le(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=true):n.anyOf=[o,{type:"null"}];},mp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;},hp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue));},gp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)));},yp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a;try{a=r.catchValue(void 0);}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a;},vp=(e,t,n,i)=>{let r=e._zod.def,o=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;le(o,t,i);let a=t.seen.get(e);a.ref=o;},bp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=true;},_p=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;},Ia=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;},Dp=(e,t,n,i)=>{let r=e._zod.innerType;le(r,t,i);let o=t.seen.get(e);o.ref=r;},wa={string:jd,number:Ld,boolean:Md,bigint:Bd,symbol:Vd,null:Zd,undefined:Wd,void:Gd,never:qd,any:Hd,unknown:Yd,date:Jd,enum:Kd,literal:Xd,nan:Qd,template_literal:ep,file:tp,success:rp,custom:np,function:ip,transform:op,map:ap,set:sp,array:up,object:cp,union:$a,intersection:lp,tuple:dp,record:pp,nullable:fp,nonoptional:mp,default:hp,prefault:gp,catch:yp,pipe:vp,readonly:bp,promise:_p,optional:Ia,lazy:Dp};function Oa(e,t){if("_idmap"in e){let i=e,r=vr({...t,processors:wa}),o={};for(let c of i._idmap.entries()){let[l,d]=c;le(d,r);}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let c of i._idmap.entries()){let[l,d]=c;br(r,d),a[l]=_r(r,d);}if(Object.keys(o).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o};}return {schemas:a}}let n=vr({...t,processors:wa});return le(e,n),br(n,e),_r(n,e)}var ka=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t;}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=vr({processors:wa,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}});}process(t,n={path:[],schemaPath:[]}){return le(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),br(this.ctx,t);let i=_r(this.ctx,t),{"~standard":r,...o}=i;return o}};var uy={};var Ri={};b(Ri,{ZodAny:()=>Wp,ZodArray:()=>Yp,ZodBase64:()=>Ya,ZodBase64URL:()=>Ja,ZodBigInt:()=>Zn,ZodBigIntFormat:()=>Qa,ZodBoolean:()=>Vn,ZodCIDRv4:()=>qa,ZodCIDRv6:()=>Ha,ZodCUID:()=>La,ZodCUID2:()=>Ma,ZodCatch:()=>vf,ZodCodec:()=>us,ZodCustom:()=>Vi,ZodCustomStringFormat:()=>Mn,ZodDate:()=>Ui,ZodDefault:()=>pf,ZodDiscriminatedUnion:()=>Kp,ZodE164:()=>Ka,ZodEmail:()=>Na,ZodEmoji:()=>Ua,ZodEnum:()=>jn,ZodExactOptional:()=>cf,ZodFile:()=>sf,ZodFunction:()=>If,ZodGUID:()=>Pi,ZodIPv4:()=>Wa,ZodIPv6:()=>Ga,ZodIntersection:()=>Xp,ZodJWT:()=>Xa,ZodKSUID:()=>Za,ZodLazy:()=>Ef,ZodLiteral:()=>af,ZodMAC:()=>Up,ZodMap:()=>nf,ZodNaN:()=>_f,ZodNanoID:()=>ja,ZodNever:()=>qp,ZodNonOptional:()=>as,ZodNull:()=>Vp,ZodNullable:()=>df,ZodNumber:()=>Bn,ZodNumberFormat:()=>Wr,ZodObject:()=>Li,ZodOptional:()=>os,ZodPipe:()=>ss,ZodPrefault:()=>mf,ZodPromise:()=>$f,ZodReadonly:()=>Df,ZodRecord:()=>Bi,ZodSet:()=>of,ZodString:()=>Ln,ZodStringFormat:()=>he,ZodSuccess:()=>yf,ZodSymbol:()=>Mp,ZodTemplateLiteral:()=>Sf,ZodTransform:()=>uf,ZodTuple:()=>ef,ZodType:()=>ee,ZodULID:()=>Ba,ZodURL:()=>Ni,ZodUUID:()=>Gt,ZodUndefined:()=>Bp,ZodUnion:()=>Mi,ZodUnknown:()=>Gp,ZodVoid:()=>Hp,ZodXID:()=>Va,ZodXor:()=>Jp,_ZodString:()=>za,_default:()=>ff,_function:()=>mv,any:()=>qy,array:()=>ji,base64:()=>Cy,base64url:()=>Ay,bigint:()=>By,boolean:()=>Lp,catch:()=>bf,check:()=>hv,cidrv4:()=>Oy,cidrv6:()=>ky,codec:()=>dv,cuid:()=>_y,cuid2:()=>Dy,custom:()=>gv,date:()=>Yy,describe:()=>yv,discriminatedUnion:()=>ev,e164:()=>Ry,email:()=>ly,emoji:()=>vy,enum:()=>ns,exactOptional:()=>lf,file:()=>sv,float32:()=>Uy,float64:()=>jy,function:()=>mv,guid:()=>dy,hash:()=>Ny,hex:()=>zy,hostname:()=>Ty,httpUrl:()=>yy,instanceof:()=>bv,int:()=>Ta,int32:()=>Ly,int64:()=>Vy,intersection:()=>Qp,ipv4:()=>wy,ipv6:()=>Iy,json:()=>Dv,jwt:()=>Py,keyof:()=>Jy,ksuid:()=>Ey,lazy:()=>wf,literal:()=>av,looseObject:()=>Xy,looseRecord:()=>rv,mac:()=>$y,map:()=>nv,meta:()=>vv,nan:()=>lv,nanoid:()=>by,nativeEnum:()=>ov,never:()=>es,nonoptional:()=>gf,null:()=>Zp,nullable:()=>Ti,nullish:()=>uv,number:()=>jp,object:()=>ts,optional:()=>Fi,partialRecord:()=>tv,pipe:()=>zi,prefault:()=>hf,preprocess:()=>xv,promise:()=>fv,readonly:()=>xf,record:()=>rf,refine:()=>Of,set:()=>iv,strictObject:()=>Ky,string:()=>Un,stringFormat:()=>Fy,stringbool:()=>_v,success:()=>cv,superRefine:()=>kf,symbol:()=>Wy,templateLiteral:()=>pv,transform:()=>is,tuple:()=>tf,uint32:()=>My,uint64:()=>Zy,ulid:()=>xy,undefined:()=>Gy,union:()=>rs,unknown:()=>Zr,url:()=>gy,uuid:()=>py,uuidv4:()=>fy,uuidv6:()=>my,uuidv7:()=>hy,void:()=>Hy,xid:()=>Sy,xor:()=>Qy});var Ca={};b(Ca,{endsWith:()=>On,gt:()=>Zt,gte:()=>Qe,includes:()=>$n,length:()=>Vr,lowercase:()=>En,lt:()=>Vt,lte:()=>dt,maxLength:()=>Br,maxSize:()=>yr,mime:()=>kn,minLength:()=>ar,minSize:()=>Wt,multipleOf:()=>gr,negative:()=>Da,nonnegative:()=>Sa,nonpositive:()=>xa,normalize:()=>Cn,overwrite:()=>Tt,positive:()=>_a,property:()=>Ea,regex:()=>Sn,size:()=>Mr,slugify:()=>Fn,startsWith:()=>In,toLowerCase:()=>Rn,toUpperCase:()=>Pn,trim:()=>An,uppercase:()=>wn});var Nn={};b(Nn,{ZodISODate:()=>Ra,ZodISODateTime:()=>Aa,ZodISODuration:()=>Fa,ZodISOTime:()=>Pa,date:()=>Sp,datetime:()=>xp,duration:()=>wp,time:()=>Ep});var Aa=y("ZodISODateTime",(e,t)=>{Qc.init(e,t),he.init(e,t);});function xp(e){return nd(Aa,e)}var Ra=y("ZodISODate",(e,t)=>{el.init(e,t),he.init(e,t);});function Sp(e){return id(Ra,e)}var Pa=y("ZodISOTime",(e,t)=>{tl.init(e,t),he.init(e,t);});function Ep(e){return od(Pa,e)}var Fa=y("ZodISODuration",(e,t)=>{rl.init(e,t),he.init(e,t);});function wp(e){return ad(Fa,e)}var cy=(e,t)=>{bi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Di(e,n)},flatten:{value:n=>_i(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,mn,2);}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,mn,2);}},isEmpty:{get(){return e.issues.length===0}}});},t0=y("ZodError",cy),at=y("ZodError",cy,{Parent:Error});var $p=yn(at),Ip=vn(at),Op=bn(at),kp=_n(at),Cp=Oo(at),Ap=ko(at),Rp=Co(at),Pp=Ao(at),Fp=Ro(at),Tp=Po(at),zp=Fo(at),Np=To(at);var ee=y("ZodType",(e,t)=>(X.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:zn(e,"input"),output:zn(e,"output")}}),e.toJSONSchema=Ud(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(I.mergeDefs(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:true}),e.with=e.check,e.clone=(n,i)=>Xe(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>$p(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Op(e,n,i),e.parseAsync=async(n,i)=>Ip(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>kp(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>Cp(e,n,i),e.decode=(n,i)=>Ap(e,n,i),e.encodeAsync=async(n,i)=>Rp(e,n,i),e.decodeAsync=async(n,i)=>Pp(e,n,i),e.safeEncode=(n,i)=>Fp(e,n,i),e.safeDecode=(n,i)=>Tp(e,n,i),e.safeEncodeAsync=async(n,i)=>zp(e,n,i),e.safeDecodeAsync=async(n,i)=>Np(e,n,i),e.refine=(n,i)=>e.check(Of(n,i)),e.superRefine=n=>e.check(kf(n)),e.overwrite=n=>e.check(Tt(n)),e.optional=()=>Fi(e),e.exactOptional=()=>lf(e),e.nullable=()=>Ti(e),e.nullish=()=>Fi(Ti(e)),e.nonoptional=n=>gf(e,n),e.array=()=>ji(e),e.or=n=>rs([e,n]),e.and=n=>Qp(e,n),e.transform=n=>zi(e,is(n)),e.default=n=>ff(e,n),e.prefault=n=>hf(e,n),e.catch=n=>bf(e,n),e.pipe=n=>zi(e,n),e.readonly=()=>xf(e),e.describe=n=>{let i=e.clone();return We.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return We.get(e)?.description},configurable:true}),e.meta=(...n)=>{if(n.length===0)return We.get(e);let i=e.clone();return We.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),za=y("_ZodString",(e,t)=>{Lr.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>jd(e,i,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(Sn(...i)),e.includes=(...i)=>e.check($n(...i)),e.startsWith=(...i)=>e.check(In(...i)),e.endsWith=(...i)=>e.check(On(...i)),e.min=(...i)=>e.check(ar(...i)),e.max=(...i)=>e.check(Br(...i)),e.length=(...i)=>e.check(Vr(...i)),e.nonempty=(...i)=>e.check(ar(1,...i)),e.lowercase=i=>e.check(En(i)),e.uppercase=i=>e.check(wn(i)),e.trim=()=>e.check(An()),e.normalize=(...i)=>e.check(Cn(...i)),e.toLowerCase=()=>e.check(Rn()),e.toUpperCase=()=>e.check(Pn()),e.slugify=()=>e.check(Fn());}),Ln=y("ZodString",(e,t)=>{Lr.init(e,t),za.init(e,t),e.email=n=>e.check(ea(Na,n)),e.url=n=>e.check(Ai(Ni,n)),e.jwt=n=>e.check(ba(Xa,n)),e.emoji=n=>e.check(oa(Ua,n)),e.guid=n=>e.check(Ci(Pi,n)),e.uuid=n=>e.check(ta(Gt,n)),e.uuidv4=n=>e.check(ra(Gt,n)),e.uuidv6=n=>e.check(na(Gt,n)),e.uuidv7=n=>e.check(ia(Gt,n)),e.nanoid=n=>e.check(aa(ja,n)),e.guid=n=>e.check(Ci(Pi,n)),e.cuid=n=>e.check(sa(La,n)),e.cuid2=n=>e.check(ua(Ma,n)),e.ulid=n=>e.check(ca(Ba,n)),e.base64=n=>e.check(ga(Ya,n)),e.base64url=n=>e.check(ya(Ja,n)),e.xid=n=>e.check(la(Va,n)),e.ksuid=n=>e.check(da(Za,n)),e.ipv4=n=>e.check(pa(Wa,n)),e.ipv6=n=>e.check(fa(Ga,n)),e.cidrv4=n=>e.check(ma(qa,n)),e.cidrv6=n=>e.check(ha(Ha,n)),e.e164=n=>e.check(va(Ka,n)),e.datetime=n=>e.check(xp(n)),e.date=n=>e.check(Sp(n)),e.time=n=>e.check(Ep(n)),e.duration=n=>e.check(wp(n));});function Un(e){return Ql(Ln,e)}var he=y("ZodStringFormat",(e,t)=>{me.init(e,t),za.init(e,t);}),Na=y("ZodEmail",(e,t)=>{Zc.init(e,t),he.init(e,t);});function ly(e){return ea(Na,e)}var Pi=y("ZodGUID",(e,t)=>{Bc.init(e,t),he.init(e,t);});function dy(e){return Ci(Pi,e)}var Gt=y("ZodUUID",(e,t)=>{Vc.init(e,t),he.init(e,t);});function py(e){return ta(Gt,e)}function fy(e){return ra(Gt,e)}function my(e){return na(Gt,e)}function hy(e){return ia(Gt,e)}var Ni=y("ZodURL",(e,t)=>{Wc.init(e,t),he.init(e,t);});function gy(e){return Ai(Ni,e)}function yy(e){return Ai(Ni,{protocol:/^https?$/,hostname:bt.domain,...I.normalizeParams(e)})}var Ua=y("ZodEmoji",(e,t)=>{Gc.init(e,t),he.init(e,t);});function vy(e){return oa(Ua,e)}var ja=y("ZodNanoID",(e,t)=>{qc.init(e,t),he.init(e,t);});function by(e){return aa(ja,e)}var La=y("ZodCUID",(e,t)=>{Hc.init(e,t),he.init(e,t);});function _y(e){return sa(La,e)}var Ma=y("ZodCUID2",(e,t)=>{Yc.init(e,t),he.init(e,t);});function Dy(e){return ua(Ma,e)}var Ba=y("ZodULID",(e,t)=>{Jc.init(e,t),he.init(e,t);});function xy(e){return ca(Ba,e)}var Va=y("ZodXID",(e,t)=>{Kc.init(e,t),he.init(e,t);});function Sy(e){return la(Va,e)}var Za=y("ZodKSUID",(e,t)=>{Xc.init(e,t),he.init(e,t);});function Ey(e){return da(Za,e)}var Wa=y("ZodIPv4",(e,t)=>{nl.init(e,t),he.init(e,t);});function wy(e){return pa(Wa,e)}var Up=y("ZodMAC",(e,t)=>{ol.init(e,t),he.init(e,t);});function $y(e){return td(Up,e)}var Ga=y("ZodIPv6",(e,t)=>{il.init(e,t),he.init(e,t);});function Iy(e){return fa(Ga,e)}var qa=y("ZodCIDRv4",(e,t)=>{al.init(e,t),he.init(e,t);});function Oy(e){return ma(qa,e)}var Ha=y("ZodCIDRv6",(e,t)=>{sl.init(e,t),he.init(e,t);});function ky(e){return ha(Ha,e)}var Ya=y("ZodBase64",(e,t)=>{cl.init(e,t),he.init(e,t);});function Cy(e){return ga(Ya,e)}var Ja=y("ZodBase64URL",(e,t)=>{ll.init(e,t),he.init(e,t);});function Ay(e){return ya(Ja,e)}var Ka=y("ZodE164",(e,t)=>{dl.init(e,t),he.init(e,t);});function Ry(e){return va(Ka,e)}var Xa=y("ZodJWT",(e,t)=>{pl.init(e,t),he.init(e,t);});function Py(e){return ba(Xa,e)}var Mn=y("ZodCustomStringFormat",(e,t)=>{fl.init(e,t),he.init(e,t);});function Fy(e,t,n={}){return Tn(Mn,e,t,n)}function Ty(e){return Tn(Mn,"hostname",bt.hostname,e)}function zy(e){return Tn(Mn,"hex",bt.hex,e)}function Ny(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=bt[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return Tn(Mn,i,r,t)}var Bn=y("ZodNumber",(e,t)=>{Wo.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Ld(e,i,r),e.gt=(i,r)=>e.check(Zt(i,r)),e.gte=(i,r)=>e.check(Qe(i,r)),e.min=(i,r)=>e.check(Qe(i,r)),e.lt=(i,r)=>e.check(Vt(i,r)),e.lte=(i,r)=>e.check(dt(i,r)),e.max=(i,r)=>e.check(dt(i,r)),e.int=i=>e.check(Ta(i)),e.safe=i=>e.check(Ta(i)),e.positive=i=>e.check(Zt(0,i)),e.nonnegative=i=>e.check(Qe(0,i)),e.negative=i=>e.check(Vt(0,i)),e.nonpositive=i=>e.check(dt(0,i)),e.multipleOf=(i,r)=>e.check(gr(i,r)),e.step=(i,r)=>e.check(gr(i,r)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=true,e.format=n.format??null;});function jp(e){return sd(Bn,e)}var Wr=y("ZodNumberFormat",(e,t)=>{ml.init(e,t),Bn.init(e,t);});function Ta(e){return cd(Wr,e)}function Uy(e){return ld(Wr,e)}function jy(e){return dd(Wr,e)}function Ly(e){return pd(Wr,e)}function My(e){return fd(Wr,e)}var Vn=y("ZodBoolean",(e,t)=>{wi.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Md(e,n,i);});function Lp(e){return md(Vn,e)}var Zn=y("ZodBigInt",(e,t)=>{Go.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Bd(e,i),e.gte=(i,r)=>e.check(Qe(i,r)),e.min=(i,r)=>e.check(Qe(i,r)),e.gt=(i,r)=>e.check(Zt(i,r)),e.gte=(i,r)=>e.check(Qe(i,r)),e.min=(i,r)=>e.check(Qe(i,r)),e.lt=(i,r)=>e.check(Vt(i,r)),e.lte=(i,r)=>e.check(dt(i,r)),e.max=(i,r)=>e.check(dt(i,r)),e.positive=i=>e.check(Zt(BigInt(0),i)),e.negative=i=>e.check(Vt(BigInt(0),i)),e.nonpositive=i=>e.check(dt(BigInt(0),i)),e.nonnegative=i=>e.check(Qe(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(gr(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null;});function By(e){return gd(Zn,e)}var Qa=y("ZodBigIntFormat",(e,t)=>{hl.init(e,t),Zn.init(e,t);});function Vy(e){return vd(Qa,e)}function Zy(e){return bd(Qa,e)}var Mp=y("ZodSymbol",(e,t)=>{gl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Vd(e,n);});function Wy(e){return _d(Mp,e)}var Bp=y("ZodUndefined",(e,t)=>{yl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Wd(e,n);});function Gy(e){return Dd(Bp,e)}var Vp=y("ZodNull",(e,t)=>{vl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Zd(e,n,i);});function Zp(e){return xd(Vp,e)}var Wp=y("ZodAny",(e,t)=>{bl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Hd();});function qy(){return Sd(Wp)}var Gp=y("ZodUnknown",(e,t)=>{_l.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Yd();});function Zr(){return Ed(Gp)}var qp=y("ZodNever",(e,t)=>{Dl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qd(e,n,i);});function es(e){return wd(qp,e)}var Hp=y("ZodVoid",(e,t)=>{xl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Gd(e,n);});function Hy(e){return $d(Hp,e)}var Ui=y("ZodDate",(e,t)=>{Sl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Jd(e,i),e.min=(i,r)=>e.check(Qe(i,r)),e.max=(i,r)=>e.check(dt(i,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null;});function Yy(e){return Id(Ui,e)}var Yp=y("ZodArray",(e,t)=>{El.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>up(e,n,i,r),e.element=t.element,e.min=(n,i)=>e.check(ar(n,i)),e.nonempty=n=>e.check(ar(1,n)),e.max=(n,i)=>e.check(Br(n,i)),e.length=(n,i)=>e.check(Vr(n,i)),e.unwrap=()=>e.element;});function ji(e,t){return Cd(Yp,e,t)}function Jy(e){let t=e._zod.def.shape;return ns(Object.keys(t))}var Li=y("ZodObject",(e,t)=>{wl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cp(e,n,i,r),I.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>ns(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Zr()}),e.loose=()=>e.clone({...e._zod.def,catchall:Zr()}),e.strict=()=>e.clone({...e._zod.def,catchall:es()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>I.extend(e,n),e.safeExtend=n=>I.safeExtend(e,n),e.merge=n=>I.merge(e,n),e.pick=n=>I.pick(e,n),e.omit=n=>I.omit(e,n),e.partial=(...n)=>I.partial(os,e,n[0]),e.required=(...n)=>I.required(as,e,n[0]);});function ts(e,t){let n={type:"object",shape:e??{},...I.normalizeParams(t)};return new Li(n)}function Ky(e,t){return new Li({type:"object",shape:e,catchall:es(),...I.normalizeParams(t)})}function Xy(e,t){return new Li({type:"object",shape:e,catchall:Zr(),...I.normalizeParams(t)})}var Mi=y("ZodUnion",(e,t)=>{$i.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$a(e,n,i,r),e.options=t.options;});function rs(e,t){return new Mi({type:"union",options:e,...I.normalizeParams(t)})}var Jp=y("ZodXor",(e,t)=>{Mi.init(e,t),$l.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$a(e,n,i,r),e.options=t.options;});function Qy(e,t){return new Jp({type:"union",options:e,inclusive:false,...I.normalizeParams(t)})}var Kp=y("ZodDiscriminatedUnion",(e,t)=>{Mi.init(e,t),Il.init(e,t);});function ev(e,t,n){return new Kp({type:"union",options:t,discriminator:e,...I.normalizeParams(n)})}var Xp=y("ZodIntersection",(e,t)=>{Ol.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lp(e,n,i,r);});function Qp(e,t){return new Xp({type:"intersection",left:e,right:t})}var ef=y("ZodTuple",(e,t)=>{qo.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>dp(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n});});function tf(e,t,n){let i=t instanceof X,r=i?n:t,o=i?t:null;return new ef({type:"tuple",items:e,rest:o,...I.normalizeParams(r)})}var Bi=y("ZodRecord",(e,t)=>{kl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>pp(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType;});function rf(e,t,n){return new Bi({type:"record",keyType:e,valueType:t,...I.normalizeParams(n)})}function tv(e,t,n){let i=Xe(e);return i._zod.values=void 0,new Bi({type:"record",keyType:i,valueType:t,...I.normalizeParams(n)})}function rv(e,t,n){return new Bi({type:"record",keyType:e,valueType:t,mode:"loose",...I.normalizeParams(n)})}var nf=y("ZodMap",(e,t)=>{Cl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ap(e,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Wt(...n)),e.nonempty=n=>e.check(Wt(1,n)),e.max=(...n)=>e.check(yr(...n)),e.size=(...n)=>e.check(Mr(...n));});function nv(e,t,n){return new nf({type:"map",keyType:e,valueType:t,...I.normalizeParams(n)})}var of=y("ZodSet",(e,t)=>{Al.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sp(e,n),e.min=(...n)=>e.check(Wt(...n)),e.nonempty=n=>e.check(Wt(1,n)),e.max=(...n)=>e.check(yr(...n)),e.size=(...n)=>e.check(Mr(...n));});function iv(e,t){return new of({type:"set",valueType:e,...I.normalizeParams(t)})}var jn=y("ZodEnum",(e,t)=>{Rl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Kd(e,i,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new jn({...t,checks:[],...I.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new jn({...t,checks:[],...I.normalizeParams(r),entries:o})};});function ns(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new jn({type:"enum",entries:n,...I.normalizeParams(t)})}function ov(e,t){return new jn({type:"enum",entries:e,...I.normalizeParams(t)})}var af=y("ZodLiteral",(e,t)=>{Pl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Xd(e,n,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}});});function av(e,t){return new af({type:"literal",values:Array.isArray(e)?e:[e],...I.normalizeParams(t)})}var sf=y("ZodFile",(e,t)=>{Fl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tp(e,n,i),e.min=(n,i)=>e.check(Wt(n,i)),e.max=(n,i)=>e.check(yr(n,i)),e.mime=(n,i)=>e.check(kn(Array.isArray(n)?n:[n],i));});function sv(e){return Ad(sf,e)}var uf=y("ZodTransform",(e,t)=>{Tl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>op(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new dr(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(I.issue(o,n.value,t));else {let a=o;a.fatal&&(a.continue=false),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(I.issue(a));}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)};});function is(e){return new uf({type:"transform",transform:e})}var os=y("ZodOptional",(e,t)=>{Ho.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ia(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function Fi(e){return new os({type:"optional",innerType:e})}var cf=y("ZodExactOptional",(e,t)=>{zl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ia(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function lf(e){return new cf({type:"optional",innerType:e})}var df=y("ZodNullable",(e,t)=>{Nl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>fp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function Ti(e){return new df({type:"nullable",innerType:e})}function uv(e){return Fi(Ti(e))}var pf=y("ZodDefault",(e,t)=>{Ul.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>hp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function ff(e,t){return new pf({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var mf=y("ZodPrefault",(e,t)=>{jl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function hf(e,t){return new mf({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var as=y("ZodNonOptional",(e,t)=>{Ll.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function gf(e,t){return new as({type:"nonoptional",innerType:e,...I.normalizeParams(t)})}var yf=y("ZodSuccess",(e,t)=>{Ml.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>rp(e,n,i),e.unwrap=()=>e._zod.def.innerType;});function cv(e){return new yf({type:"success",innerType:e})}var vf=y("ZodCatch",(e,t)=>{Bl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>yp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function bf(e,t){return new vf({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var _f=y("ZodNaN",(e,t)=>{Vl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Qd(e,n);});function lv(e){return kd(_f,e)}var ss=y("ZodPipe",(e,t)=>{Zl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vp(e,n,i,r),e.in=t.in,e.out=t.out;});function zi(e,t){return new ss({type:"pipe",in:e,out:t})}var us=y("ZodCodec",(e,t)=>{ss.init(e,t),Ii.init(e,t);});function dv(e,t,n){return new us({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var Df=y("ZodReadonly",(e,t)=>{Wl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>bp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function xf(e){return new Df({type:"readonly",innerType:e})}var Sf=y("ZodTemplateLiteral",(e,t)=>{Gl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ep(e,n,i);});function pv(e,t){return new Sf({type:"template_literal",parts:e,...I.normalizeParams(t)})}var Ef=y("ZodLazy",(e,t)=>{Yl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dp(e,n,i,r),e.unwrap=()=>e._zod.def.getter();});function wf(e){return new Ef({type:"lazy",getter:e})}var $f=y("ZodPromise",(e,t)=>{Hl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_p(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function fv(e){return new $f({type:"promise",innerType:e})}var If=y("ZodFunction",(e,t)=>{ql.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ip(e,n);});function mv(e){return new If({type:"function",input:Array.isArray(e?.input)?tf(e?.input):e?.input??ji(Zr()),output:e?.output??Zr()})}var Vi=y("ZodCustom",(e,t)=>{Jl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>np(e,n);});function hv(e){let t=new ge({check:"custom"});return t._zod.check=e,t}function gv(e,t){return Rd(Vi,e??(()=>true),t)}function Of(e,t={}){return Pd(Vi,e,t)}function kf(e){return Fd(e)}var yv=Td,vv=zd;function bv(e,t={}){let n=new Vi({type:"custom",check:"custom",fn:i=>i instanceof e,abort:true,...I.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]});},n}var _v=(...e)=>Nd({Codec:us,Boolean:Vn,String:Ln},...e);function Dv(e){let t=wf(()=>rs([Un(e),jp(),Lp(),Zp(),ji(t),rf(Un(),t)]));return t}function xv(e,t){return zi(is(e),t)}var n0={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 i0(e){Oe({customError:e});}function o0(){return Oe().customError}var Cf;Cf||(Cf={});var F={...Ri,...Ca,iso:Nn},a0=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function s0(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function u0(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function Sv(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return F.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return F.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=u0(r,t),a=He(o,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===true&&r.length===1&&r[0]===null)return F.null();if(r.length===0)return F.never();if(r.length===1)return F.literal(r[0]);if(r.every(a=>typeof a=="string"))return F.enum(r);let o=r.map(a=>F.literal(a));return o.length<2?o[0]:F.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return F.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return Sv(a,t)});return r.length===0?F.never():r.length===1?r[0]:F.union(r)}if(!n)return F.any();let i;switch(n){case "string":{let r=F.string();if(e.format){let o=e.format;o==="email"?r=r.check(F.email()):o==="uri"||o==="uri-reference"?r=r.check(F.url()):o==="uuid"||o==="guid"?r=r.check(F.uuid()):o==="date-time"?r=r.check(F.iso.datetime()):o==="date"?r=r.check(F.iso.date()):o==="time"?r=r.check(F.iso.time()):o==="duration"?r=r.check(F.iso.duration()):o==="ipv4"?r=r.check(F.ipv4()):o==="ipv6"?r=r.check(F.ipv6()):o==="mac"?r=r.check(F.mac()):o==="cidr"?r=r.check(F.cidrv4()):o==="cidr-v6"?r=r.check(F.cidrv6()):o==="base64"?r=r.check(F.base64()):o==="base64url"?r=r.check(F.base64url()):o==="e164"?r=r.check(F.e164()):o==="jwt"?r=r.check(F.jwt()):o==="emoji"?r=r.check(F.emoji()):o==="nanoid"?r=r.check(F.nanoid()):o==="cuid"?r=r.check(F.cuid()):o==="cuid2"?r=r.check(F.cuid2()):o==="ulid"?r=r.check(F.ulid()):o==="xid"?r=r.check(F.xid()):o==="ksuid"&&(r=r.check(F.ksuid()));}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case "number":case "integer":{let r=n==="integer"?F.number().int():F.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===true&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===true&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case "boolean":{i=F.boolean();break}case "null":{i=F.null();break}case "object":{let r={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,l]of Object.entries(o)){let d=He(l,t);r[c]=a.has(c)?d:d.optional();}if(e.propertyNames){let c=He(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?He(e.additionalProperties,t):F.any();if(Object.keys(r).length===0){i=F.record(c,l);break}let d=F.object(r).passthrough(),p=F.looseRecord(c,l);i=F.intersection(d,p);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),d=[];for(let m of l){let h=He(c[m],t),v=F.string().regex(new RegExp(m));d.push(F.looseRecord(v,h));}let p=[];if(Object.keys(r).length>0&&p.push(F.object(r).passthrough()),p.push(...d),p.length===0)i=F.object({}).passthrough();else if(p.length===1)i=p[0];else {let m=F.intersection(p[0],p[1]);for(let h=2;h<p.length;h++)m=F.intersection(m,p[h]);i=m;}break}let s=F.object(r);e.additionalProperties===false?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(He(e.additionalProperties,t)):i=s.passthrough();break}case "array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let a=r.map(c=>He(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?He(o,t):void 0;s?i=F.tuple(a).rest(s):i=F.tuple(a),typeof e.minItems=="number"&&(i=i.check(F.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(F.maxLength(e.maxItems)));}else if(Array.isArray(o)){let a=o.map(c=>He(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?He(e.additionalItems,t):void 0;s?i=F.tuple(a).rest(s):i=F.tuple(a),typeof e.minItems=="number"&&(i=i.check(F.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(F.maxLength(e.maxItems)));}else if(o!==void 0){let a=He(o,t),s=F.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s;}else i=F.array(F.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}function He(e,t){if(typeof e=="boolean")return e?F.any():F.never();let n=Sv(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(l=>He(l,t)),c=F.union(s);n=i?F.intersection(n,c):c;}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(l=>He(l,t)),c=F.xor(s);n=i?F.intersection(n,c):c;}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:F.any();else {let s=i?n:He(e.allOf[0],t),c=i?0:1;for(let l=c;l<e.allOf.length;l++)s=F.intersection(s,He(e.allOf[l],t));n=s;}e.nullable===true&&t.version==="openapi-3.0"&&(n=F.nullable(n)),e.readOnly===true&&(n=F.readonly(n));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);for(let s of Object.keys(e))a0.has(s)||(r[s]=e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),n}function Ev(e,t){if(typeof e=="boolean")return e?F.any():F.never();let n=s0(e,t?.defaultTarget),i=e.$defs||e.definitions||{},r={version:n,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??We};return He(e,r)}var Af={};b(Af,{bigint:()=>p0,boolean:()=>d0,date:()=>f0,number:()=>l0,string:()=>c0});function c0(e){return ed(Ln,e)}function l0(e){return ud(Bn,e)}function d0(e){return hd(Vn,e)}function p0(e){return yd(Zn,e)}function f0(e){return Od(Ui,e)}Oe(Yo());function wv({signal:e,timeoutMs:t}){let n=new AbortController,i=new DOMException("The operation timed out.","TimeoutError"),r=setTimeout(()=>{n.abort(i);},t);r.unref();let o=()=>{n.abort(e?.reason);};return n.signal.addEventListener("abort",()=>{clearTimeout(r),e?.removeEventListener("abort",o);},{once:true}),e?.aborted===true?o():e?.addEventListener("abort",o,{once:true}),{signal:n.signal,clear:()=>{clearTimeout(r);},expired:()=>n.signal.reason===i}}async function $v({ms:e,signal:t}){t?.throwIfAborted(),await new Promise(n=>{let r=setTimeout(()=>{t?.removeEventListener("abort",o),n();},e),o=()=>{clearTimeout(r),n();};t?.addEventListener("abort",o,{once:true});}),t?.throwIfAborted();}var h0=300;function Iv(e){return Ov({...e,attempt:1})}async function Ov(e){let t=await g0(e);return !t.retryable||e.attempt>=e.policy.attempts?t.outcome:(await $v({ms:y0(e.attempt),signal:e.init.signal??void 0}),Ov({...e,attempt:e.attempt+1}))}async function g0({fetch:e,init:t,policy:n,url:i}){try{t.signal?.throwIfAborted();let{signal:r}=wv({signal:t.signal??void 0,timeoutMs:n.timeoutMs}),o=await e(i,{...t,signal:r});return {outcome:{kind:"response",response:o},retryable:!Rf(o)}}catch(r){return t.signal?.throwIfAborted(),{outcome:{detail:v0(r),kind:"unreachable"},retryable:true}}}function Rf(e){let t=e.headers.get("content-type")?.startsWith("text/html")===true;return e.status<500&&!t}function y0(e){return h0*3**(e-1)*(.5+Math.random())}function v0(e){if(!(e instanceof Error))return String(e);let{cause:t}=e;if(t instanceof Error){let n="code"in t&&typeof t.code=="string"?` (${t.code})`:"";return `${e.message}: ${t.message}${n}`}return e.message}var b0=15e3,_0=3,cs=class extends Error{detail;serverUrl;constructor({detail:t,serverUrl:n}){super(`Failed to connect to Ripplo server at ${n}. Check the server is running and reachable. Details: ${t}`),this.name="GqlConnectionError",this.detail=t,this.serverUrl=n;}},Gr=class extends Error{errors;constructor(t){super(t.map(n=>n.message).join(", ")),this.name="GqlRequestError",this.errors=t;}};function Pf(e){if(e instanceof Gr)return e.errors[0]?.extensions?.code}var D0={attempts:_0,timeoutMs:b0};async function ve(e){return x0({headers:{},params:e,policy:D0,signal:void 0})}async function x0(e){let{headers:t,params:n,policy:i}=e,{print:r}=await import('./graphql-Z4UDRCDF.js'),o=r(n.document),a=JSON.stringify({query:o,variables:n.variables}),s=`${n.config.ripploServerUrl}/graphql`,c=await S0({init:{body:a,headers:{...t,Authorization:`Bearer ${n.config.token}`,"Content-Type":"application/json"},method:"POST",signal:e.signal},policy:i,serverUrl:n.config.ripploServerUrl,url:s}),l=await E0({res:c,url:s});if(!w0(l))throw new Error("Invalid GraphQL response");if($0(l))throw new Gr(l.errors);if(l.data==null)throw new Error("No data returned from server");return l.data}async function S0({init:e,policy:t,serverUrl:n,url:i}){let r=await Iv({fetch:globalThis.fetch,init:e,policy:t,url:i});if(r.kind==="response"&&Rf(r.response))return r.response;throw new cs({detail:r.kind==="response"?`server returned status ${String(r.response.status)} (${String(r.response.headers.get("content-type"))})`:r.detail,serverUrl:n})}async function E0({res:e,url:t}){let n=await e.text();if(n.length===0)throw new Error(`Empty response from Ripplo server at ${t} (status ${String(e.status)}). The server may have restarted or the request was rejected before a body was sent.`);try{return JSON.parse(n)}catch{throw new Error(`Non-JSON response from Ripplo server at ${t} (status ${String(e.status)}): ${n.slice(0,200)}`)}}function w0(e){return typeof e=="object"&&e!=null&&("data"in e||"errors"in e)}function $0(e){return Array.isArray(e.errors)&&e.errors.length>0}u.union([u.string(),u.number(),u.boolean(),u.null()]);var st=u.json();u.record(u.string(),st);u.enum(["observed","setup"]);var Dr=u.string().regex(/^[A-Za-z_]\w*\.[A-Za-z_]\w*$/u).brand("SchemaOperationId");u.enum(["read","setup","locate"]);var kv=u.discriminatedUnion("kind",[u.strictObject({arguments:u.record(u.string(),st),kind:u.literal("missing"),operation:Dr}),u.strictObject({issues:u.array(u.string()),kind:u.literal("invalid-output"),operation:Dr}),u.strictObject({kind:u.literal("execution-failed"),message:u.string(),operation:Dr})]),Cv=u.tuple([kv]).rest(kv).readonly();var I0=u.strictObject({issue:u.string().min(1),reader:Dr,step:Dr}),Av=u.array(I0).min(1);u.enum(["unwritten","written"]);var Rv=u.union([u.string(),u.number(),u.boolean()]),Ff=u.union([Rv,u.null()]),O0=u.object({by:u.literal("role"),name:u.union([u.string(),u.undefined()]).optional().transform(e=>e),role:u.string().min(1)}),k0=u.object({by:u.literal("testId"),value:u.string()}),C0=u.object({by:u.literal("inside"),scope:u.lazy(()=>Ae),target:u.lazy(()=>Ae)}),A0=u.object({by:u.literal("surface"),container:u.lazy(()=>Ae),overlay:u.boolean()}),R0=u.object({by:u.literal("frame"),element:u.lazy(()=>Ae)}),Ae=u.discriminatedUnion("by",[O0,k0,u.object({by:u.literal("element"),name:u.string().min(1),values:u.record(u.string().min(1),Rv)}),C0,A0,R0]);u.enum(["string","number","boolean"]);var Pv=u.enum(["mobile","desktop"]);var P0=u.object({actual:u.string(),expected:u.string(),log:u.array(u.string()),name:u.string(),timeoutMs:u.number().int().nullable()}),F0=u.object({label:u.string().min(1),role:u.string().min(1)}),T0=3,ls=u.object({ancestors:u.array(F0).max(T0),name:u.string().nullable(),role:u.string().nullable(),tag:u.string(),visible:u.boolean()}),Wn={expectedRole:u.string().nullable()},z0=u.object({description:u.string(),name:u.string()}),Tf={...Wn,description:u.string(),element:z0.optional()},ds=u.discriminatedUnion("kind",[u.object({...Tf,issues:u.array(u.string()),kind:u.literal("binding-values-invalid")}),u.object({...Tf,kind:u.literal("binding-missed"),locator:Ae,matched:u.enum(["none","several"]).optional()}),u.object({...Tf,aliasOf:u.string().min(1),kind:u.literal("binding-alias")})]);new Set(ds.options.map(e=>e.shape.kind.value));var N0=u.discriminatedUnion("kind",[...ds.options,u.object({...Wn,kind:u.literal("absent")}),u.object({...Wn,kind:u.literal("hidden"),matches:u.array(ls).min(1)}),u.object({...Wn,kind:u.literal("ambiguous"),matches:u.array(ls).min(2)}),u.object({...Wn,kind:u.literal("text-elsewhere"),match:ls,partial:u.boolean()}),u.object({...Wn,actualName:u.string(),kind:u.literal("name-differs"),match:ls})]),Zi=u.object({ariaSnapshot:u.string().nullable(),matcher:P0.nullable(),message:u.string(),miss:N0.nullable()});var zf=u.enum(["create-session","teardown"]),U0=u.enum(["unconfigured","navigate","not-signed-in","ticket-rejected"]),ps=u.enum(["create","read","setup"]),j0=u.discriminatedUnion("kind",[u.object({kind:u.literal("field"),name:u.string()}),u.object({kind:u.literal("record-entry")}),u.object({kind:u.literal("array-entry")})]),L0=u.object({issues:u.array(u.object({branches:u.array(u.number().int().nonnegative()),code:u.enum(["invalid_type","too_big","too_small","invalid_format","not_multiple_of","unrecognized_keys","invalid_union","invalid_key","invalid_element","invalid_value","custom"]),path:u.array(u.union([u.string(),u.number()])),schemaPath:u.array(j0)})).min(1),schemaHash:u.string()}),M0=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("network")}),u.strictObject({kind:u.literal("http"),status:u.number().int()}),u.strictObject({kind:u.literal("not-json")})]);var Fv=[u.object({kind:u.literal("definition-failed"),message:u.string()}),u.object({detail:u.string(),kind:u.literal("authentication-http"),operation:zf,status:u.number().int()}),u.object({code:u.string().nullable(),kind:u.literal("authentication-network"),message:u.string(),operation:zf}),u.object({kind:u.literal("app-not-ready"),timeoutMs:u.number().int()}),u.object({kind:u.literal("authentication-response"),message:u.string(),operation:zf}),u.object({detail:u.string(),kind:u.literal("sign-in-failed"),stage:U0}),u.object({diagnostic:u.string().optional(),kind:u.literal("binding-failed"),message:u.string(),operation:ps,validation:L0.optional()}),u.object({failure:M0,kind:u.literal("binding-read-failed"),operation:ps}),u.object({kind:u.literal("binding-timed-out"),operation:ps,timeoutMs:u.number().int().nonnegative()}),u.object({kind:u.literal("binding-not-mounted"),operation:ps,source:u.string()}),u.object({failures:Cv,kind:u.literal("implementation-failed")}),u.object({effects:Av,kind:u.literal("setup-effect-missing")}),u.object({kind:u.literal("driver-launch"),message:u.string()}),u.object({kind:u.literal("run-failed"),message:u.string()}),u.object({kind:u.literal("aborted")})],Tv=u.discriminatedUnion("kind",[...Fv]),fs=u.discriminatedUnion("kind",[...Fv,u.object({action:u.string(),failure:Zi,kind:u.literal("action-failed")}),u.object({failure:Zi,kind:u.literal("check-failed")})]);var B0=u.string().regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/u),Wi=u.discriminatedUnion("kind",[u.strictObject({cause:u.string().nullable(),code:u.string().nullable(),kind:u.literal("error"),message:u.string(),name:u.string(),stack:u.string().nullable()}),u.strictObject({kind:u.literal("non-error"),type:u.enum(["bigint","boolean","function","null","number","object","string","symbol","undefined"]),value:u.string()})]);var Nv=u.discriminatedUnion("source",[u.strictObject({error:fs,source:u.literal("runtime")}),u.strictObject({error:Wi,source:u.literal("system")})]),Gn={endedAtMs:u.number().int().nonnegative(),startedAtMs:u.number().int().nonnegative()},Nf=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("not-started"),reason:u.enum(["aborted","prior-phase-failed"])}),u.strictObject({kind:u.literal("succeeded"),...Gn}),u.strictObject({error:Nv,kind:u.literal("failed"),...Gn}),u.strictObject({kind:u.literal("aborted"),...Gn})]),V0=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("not-started"),reason:u.enum(["aborted","prior-phase-failed"])}),u.strictObject({...Gn,facts:u.enum(["clean","contradicted"]),kind:u.literal("completed"),transitionIds:u.array(u.string().min(1))}),u.strictObject({error:Nv,kind:u.literal("failed"),...Gn,transitionIds:u.array(u.string().min(1))}),u.strictObject({kind:u.literal("aborted"),...Gn,transitionIds:u.array(u.string().min(1))})]),zv=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("io"),operation:u.enum(["open","append","finalize"]),thrown:Wi}),u.strictObject({kind:u.literal("execution-ended"),phase:u.enum(["setup","browser","drive","teardown"])}),u.strictObject({kind:u.literal("capture-missing"),subject:u.literal("rrweb")})]),Z0=u.discriminatedUnion("kind",[u.strictObject({eventCount:u.number().int().nonnegative(),kind:u.literal("complete"),path:u.string().min(1)}),u.strictObject({errors:u.array(zv).min(1),eventCount:u.number().int().nonnegative(),kind:u.literal("partial"),path:u.string().min(1)}),u.strictObject({errors:u.array(zv).min(1),kind:u.literal("failed"),path:u.string().min(1)})]);u.strictObject({browser:Nf,drive:V0,evidence:Z0,runId:B0,setup:Nf,teardown:Nf});var Uv=u.discriminatedUnion("kind",[u.object({kind:u.literal("user")}),u.object({kind:u.literal("anonymous")})]);var Re=u.string().trim().min(1).brand();var jv=u.strictObject({actor:Uv,description:Re,name:Re,state:st,viewport:Pv});var W0=jv.pick({actor:true,name:true,viewport:true}),ms=u.strictObject({stepIndex:u.number().int().nonnegative(),transitionId:Re,workflow:Re}),G0=ms.extend({input:st,kind:u.literal("provided")}),q0=u.discriminatedUnion("kind",[G0,ms.extend({kind:u.literal("case"),workflowInput:st})]),H0=u.strictObject({choiceSeed:u.number().int().min(0).max(4294967295),inputSeed:u.number().int().min(0).max(4294967295),kind:u.literal("choose")}),Y0=u.union([q0,H0]);u.strictObject({seed:u.string().min(1),setup:W0,steps:u.array(Y0),visited:u.array(u.string().min(1))});var J0=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("accept"),text:u.string().nullable()}),u.strictObject({kind:u.literal("dismiss")})]),Lv=u.enum(["alert","beforeunload","confirm","prompt"]),Mv=u.discriminatedUnion("kind",[u.object({kind:u.literal("goto"),url:u.string()}),u.object({kind:u.literal("reload")}),u.object({kind:u.literal("back")}),u.object({kind:u.literal("forward")}),u.object({kind:u.literal("fill"),locator:Ae,value:Ff}),u.object({kind:u.literal("type"),locator:Ae,value:u.string().min(1)}),u.object({kind:u.literal("scroll"),locator:Ae}),u.object({kind:u.literal("clear"),locator:Ae}),u.object({kind:u.literal("click"),locator:Ae}),u.object({kind:u.literal("dblclick"),locator:Ae}),u.object({kind:u.literal("select"),locator:Ae,value:Ff}),u.object({kind:u.literal("check"),locator:Ae}),u.object({kind:u.literal("uncheck"),locator:Ae}),u.object({kind:u.literal("hover"),locator:Ae}),u.object({files:u.array(u.string().min(1)).min(1),kind:u.literal("upload"),locator:Ae}),u.object({key:u.string().min(1),kind:u.literal("press"),locator:Ae.optional()}),u.object({kind:u.literal("drag"),source:Ae,target:Ae})]),hs=u.enum(Mv.options.map(e=>e.shape.kind.value)),Bv=Mv.and(u.object({dialog:J0.optional()})),K0=["goto","reload","back","forward"];new Set(K0);var Vv=u.enum(["setup","before-action","action","after-action"]),Uf=u.union([u.strictObject({error:Wi.nullable(),kind:u.literal("definition-error"),phase:u.literal("definition"),reason:Re}),u.strictObject({error:Wi.nullable(),kind:u.literal("execution-failed"),phase:Vv.nullable(),reason:Re}),u.strictObject({error:fs,kind:u.literal("runtime-failed"),reason:Re}),u.strictObject({action:hs,kind:u.literal("binding-miss"),miss:ds,reason:Re}),u.strictObject({expected:st,kind:u.literal("state-mismatch"),observed:st,phase:Vv,reason:Re}),u.strictObject({kind:u.enum(["capture-pending","convergence-timeout","aborted","unavailable","duplicate-outcome-name","no-outcome","ambiguous-outcome","invalid-state","invalid-input"]),reason:Re})]),jf=u.strictObject({error:Uf,status:u.literal("failed")}),Zv=u.strictObject({kind:u.literal("model-setup"),name:Re,now:u.iso.datetime().nullable(),result:u.discriminatedUnion("status",[u.strictObject({state:st,status:u.literal("passed")}),jf]),source:u.literal("verifier"),timeNanos:u.string()}),Lf=u.strictObject({endedAtMs:u.number().nonnegative(),input:st,kind:u.literal("model-step"),name:Re,pageUrl:u.string().nullable(),reference:ms,result:u.discriminatedUnion("status",[u.strictObject({outcome:Re,state:st,status:u.literal("passed")}),jf]),source:u.literal("verifier"),startedAtMs:u.number().nonnegative(),stepIndex:u.number().int().nonnegative(),timeNanos:u.string(),visit:u.string().min(1).nullable()}),Wv=Lf.omit({input:true,visit:true}).extend({kind:u.literal("model-input-failed"),result:jf});var Gv=u.strictObject({kind:u.literal("exploration-stop"),result:u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("limit")}),u.strictObject({kind:u.literal("exhausted")}),u.strictObject({kind:u.literal("no-candidates"),refusals:u.array(u.strictObject({reason:Re,step:Re}))}),u.strictObject({error:Uf,kind:u.literal("failed")})]),source:u.literal("verifier"),stepIndex:u.number().int().nonnegative(),timeNanos:u.string()});var X0=[...hs.options,"resize"],qv=u.enum(X0),Hv=u.object({action:qv,name:Re,phase:u.literal("start")}),Yv=u.object({outcome:u.enum(["passed","failed"]),phase:u.literal("end")});u.discriminatedUnion("phase",[Hv,Yv]);var Jv=u.discriminatedUnion("phase",[Hv.extend({action:qv.nullable()}),Yv]).and(u.object({kind:u.literal("exploration-step"),source:u.literal("capture"),timeNanos:u.string()}));var Kv=u.object({action:Bv,kind:u.literal("check"),outcome:u.discriminatedUnion("kind",[u.object({kind:u.literal("passed")}),u.object({kind:u.literal("failed"),reason:Zi})]),rrwebIds:u.array(u.number()),source:u.literal("verifier"),stepIndex:u.number().int(),timeNanos:u.string(),waitedMs:u.number()}),Xv=u.object({error:Tv,kind:u.literal("stepError"),source:u.literal("verifier"),stepIndex:u.number().int(),timeNanos:u.string()});var Qv=u.object({__codec:u.string().min(1),data:u.unknown(),version:u.number().int().positive()}),Mf=class extends Error{codec;currentVersion;gotVersion;kind;minimumVersion;constructor(t){super(`Unsupported ${t.codec} version ${String(t.gotVersion)}. This release reads ${Q0(t)}.`),this.name="CodecVersionError",this.codec=t.codec,this.currentVersion=t.currentVersion,this.gotVersion=t.gotVersion,this.kind=t.kind,this.minimumVersion=t.minimumVersion;}};function Q0({currentVersion:e,minimumVersion:t}){return t===e?`version ${String(e)}`:`versions ${String(t)} through ${String(e)}`}var gs=class extends Error{constructor(t){super(`Codec mismatch: expected "${t.expected}", got "${t.got}"`),this.name="CodecMismatchError";}};function eb({firstVersion:e,name:t,schema:n,steps:i=[]}){let r=eO({firstVersion:e,steps:i});return {...r,name:t,decode:o=>tO({name:t,raw:o,schema:n,steps:i,versions:r}),encode:o=>({__codec:t,data:o,version:r.currentVersion}),support:o=>tb({version:o,versions:r}),versionOf:o=>{let a=Qv.parse(o);if(a.__codec!==t)throw new gs({expected:t,got:a.__codec});return a.version}}}function eO({firstVersion:e,steps:t}){if(!Number.isInteger(e)||e<1)throw new Error(`A codec's first version must be a positive integer, got ${String(e)}`);return {currentVersion:e+t.length,firstVersion:e,minimumVersion:t.reduce((n,i,r)=>i.kind==="semantic"?e+r+1:n,e)}}function tb({version:e,versions:t}){return e>t.currentVersion||e<t.firstVersion?"predates-executable-model":e<t.minimumVersion?"below-floor":"supported"}function tO({name:e,raw:t,schema:n,steps:i,versions:r}){let o=Qv.parse(t);if(o.__codec!==e)throw new gs({expected:e,got:o.__codec});let a=tb({version:o.version,versions:r});if(a!=="supported")throw new Mf({...r,codec:e,gotVersion:o.version,kind:a});let c=i.slice(o.version-r.firstVersion).reduce((l,d)=>d.kind==="reshape"?d.migrate(l):l,o.data);return n.parse(c)}var Bf=u.strictObject({id:u.string().min(1),token:u.string().min(1)});var rb=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("started"),operation:Dr,token:Bf.shape.token}),u.strictObject({durationMs:u.number().nonnegative().optional(),kind:u.literal("returned"),operation:Dr,token:Bf.shape.token})]);var rO=["unspecified","internal","server","client","producer","consumer"],nO=["unset","ok","error"],iO=u.looseObject({node:u.looseObject({id:u.number()}).optional(),parentId:u.number().nullable().optional()}),oO=u.looseObject({data:u.looseObject({adds:u.array(iO).optional(),attributes:u.array(u.looseObject({id:u.number()})).optional(),href:u.string().optional(),removes:u.array(u.looseObject({id:u.number()})).optional(),source:u.number().optional(),texts:u.array(u.looseObject({id:u.number()})).optional(),userTriggered:u.boolean().optional()}).optional(),timestamp:u.number(),type:u.number()}),_t=u.string(),aO=u.object({action:u.string(),kind:u.literal("action"),source:u.literal("test"),target:u.string().optional(),timeNanos:_t,value:u.string().optional()}),sO=u.object({event:oO,kind:u.literal("rrweb"),rrwebType:u.string(),source:u.literal("browser"),timeNanos:_t}),uO=u.object({durationMs:u.number().optional(),kind:u.literal("network"),method:u.string(),requestBody:u.string().optional(),requestHeaders:u.array(u.string()).optional(),resourceType:u.string(),responseBody:u.string().optional(),source:u.literal("browser"),spanId:u.string().optional(),status:u.number(),timeNanos:_t,traceId:u.string().optional(),url:u.string()}),cO=u.object({kind:u.literal("console"),level:u.string(),source:u.literal("browser"),text:u.string(),timeNanos:_t}),lO=u.discriminatedUnion("problem",[u.object({message:u.string(),problem:u.literal("page-error"),stack:u.string().optional()}),u.object({method:u.string(),path:u.string(),problem:u.literal("server-error"),status:u.number()}),u.object({method:u.string(),path:u.string(),problem:u.literal("request-failed"),reason:u.string()})]),dO=u.object({count:u.number().int().min(1),detail:lO,kind:u.literal("health"),source:u.literal("browser"),stepIndex:u.number().int().min(0).optional(),timeNanos:_t}),pO=u.object({clientVersion:u.string(),kind:u.literal("meta"),source:u.literal("capture"),timeNanos:_t}),fO=u.object({dialogType:Lv,kind:u.literal("dialog"),message:u.string(),source:u.literal("browser"),stepIndex:u.number().int().nullable(),timeNanos:_t}),mO=u.object({event:rb,kind:u.literal("schema-trace"),source:u.literal("browser"),timeNanos:_t}),hO=u.object({kind:u.literal("handover"),source:u.literal("capture"),timeNanos:_t}),gO=u.object({kind:u.literal("handback"),source:u.literal("capture"),timeNanos:_t}),yO=u.object({kind:u.literal("notice"),message:u.string(),source:u.literal("capture"),timeNanos:_t}),vO=u.object({attributes:u.record(u.string(),u.string()),durationMs:u.number(),kind:u.literal("span"),name:u.string(),parentSpanId:u.string().optional(),source:u.literal("server"),spanId:u.string(),spanKind:u.enum(rO),status:u.object({code:u.enum(nO),message:u.string().optional()}),timeNanos:_t,traceId:u.string()}),bO=u.union([Jv,u.discriminatedUnion("kind",[Gv,Zv,Lf,Wv,aO,sO,uO,cO,dO,pO,hO,gO,mO,yO,fO,Kv,Xv,vO])]),_O=u.looseObject({kind:u.enum(["model-step","model-input-failed"]),pageUrl:u.undefined()});function DO(e){return u.array(u.unknown()).parse(e).map(n=>{let i=_O.safeParse(n);return i.success?{...i.data,pageUrl:null}:n})}var xO=u.looseObject({action:u.undefined(),kind:u.literal("exploration-step"),phase:u.literal("start")});function SO(e){return u.array(u.unknown()).parse(e).map(t=>{let n=xO.safeParse(t);return n.success?{...n.data,action:null}:t})}var EO=u.looseObject({kind:u.literal("model-setup"),now:u.undefined()});function wO(e){return u.array(u.unknown()).parse(e).map(t=>{let n=EO.safeParse(t);return n.success?{...n.data,now:null}:t})}var $O=u.looseObject({kind:u.literal("model-step"),visit:u.undefined()});function IO(e){return u.array(u.unknown()).parse(e).map(t=>{let n=$O.safeParse(t);return n.success?{...n.data,visit:null}:t})}var OO=u.looseObject({kind:u.literal("stale")});function Vf(e){if(Array.isArray(e))return e.map(i=>Vf(i));if(typeof e!="object"||e===null)return e;let t=OO.safeParse(e),n=t.success?{...t.data,kind:"missing"}:e;return Object.fromEntries(Object.entries(n).map(([i,r])=>[i,Vf(r)]))}var kO=eb({firstVersion:22,name:"ripplo-behavior",schema:u.array(u.unknown()),steps:[{kind:"reshape",migrate:DO},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:SO},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:wO},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:Vf},{kind:"reshape",migrate:IO},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e}]}),CO=u.object({__codec:u.string().min(1),version:u.number().int().positive()});function Gi(e){let t=AO(e),n=CO.parse(RO(t)),i=t.slice(1).flatMap(o=>{let a=nb(o);return a==null?[]:[a]});return kO.decode({...n,data:i}).flatMap(o=>{let a=bO.safeParse(o);return a.success?[a.data]:[]})}function AO(e){return e.split(`
45
+ `).filter(t=>t.length>0)}function RO(e){let t=e[0];return t==null?null:nb(t)}function qn(e){return Number(BigInt(e)/1000000n)}function nb(e){try{return JSON.parse(e)}catch{return null}}function Hn(e){if(e.by==="element"){let t=Object.entries(e.values).map(([n,i])=>`${n}: ${String(i)}`).join(", ");return `${e.name}(${t})`}return e.by==="testId"?`testId=${e.value}`:e.by==="inside"?`${Hn(e.scope)} \u25B8 ${Hn(e.target)}`:e.by==="surface"?Hn(e.container):e.by==="frame"?`frame ${Hn(e.element)}`:`${e.role} ${e.name??""}`.trim()}function ib(e){return e.kind==="drag"?[e.source,e.target]:"locator"in e&&e.locator!=null?[e.locator]:[]}function Zf(e){if(e.kind==="goto")return e.url;let[t]=ib(e);return t==null?void 0:Hn(t)}var PO=new Set(["localhost","127.0.0.1","[::1]"]),ob="*";var Wf="zz-ripplo-wildcard-zz",FO=2;function ab(e){let t=URL.parse(TO(e));if(t==null||!Gf(t)||e.includes("#"))return null;let n=e.split(ob).length-1;if(n===0)return {kind:"exact",url:e};if(n>1||!t.hostname.includes(Wf))return null;let i=t.hostname.split("."),r=i.findIndex(o=>o.includes(Wf));return i.length-r-1<FO?null:{kind:"host-pattern",url:e}}function TO(e){return e.replace(ob,Wf)}function Gf(e){return e.protocol==="https:"?true:e.protocol==="http:"&&PO.has(e.hostname)}var qf=500,zO=/^(?:\d{1,3}(?:\.\d{1,3}){3}|\[.*\])$/u,ys=u.string().trim().max(qf).refine(e=>lb(e),{message:"Must be an https URL with a hostname such as example.com, not an IP address. Plain http is allowed only on localhost."}),vs=u.string().trim().min(1,"Required.").max(qf).refine(e=>e.startsWith("/")||lb(e),{message:"Must be a path starting with / or a full https URL. Plain http is allowed only on localhost."}),sb=u.string().trim().min(1,"Required.").max(60).regex(/^\S+$/u,"No spaces. The name is typed as auth=<name> in a GitHub comment."),xr=u.string().trim().min(1,"Required.").max(qf).refine(e=>ab(e)!=null,{message:"Must be an https address with no fragment. Plain http is allowed only on localhost. One * is allowed in the hostname, not in its last two labels."}),NO={name:sb,redirectUris:u.array(u.object({value:xr})).min(1,"Add at least one redirect URI."),signInEntry:vs},ub="********",UO=u.object({enabled:u.literal(false)}),jO=u.object({baseUrl:ys,enabled:u.literal(true),token:u.string().min(1,"Required.")}),cb={...NO,scim:u.discriminatedUnion("enabled",[UO,jO])};u.object(cb).transform(({redirectUris:e,scim:t,...n})=>({...n,redirectUris:e.map(i=>i.value),scim:t.enabled?{baseUrl:t.baseUrl,token:t.token}:null}));u.object(cb).transform(({redirectUris:e,scim:t,...n})=>({...n,redirectUris:e.map(i=>i.value),scim:t.enabled?{baseUrl:t.baseUrl,token:t.token===ub?null:t.token}:null}));function lb(e){let t=URL.parse(e);return t!=null&&Gf(t)&&t.hostname.length>0&&!zO.test(t.hostname)}var Hf=xr;var Yf=u.string().trim().min(1,"Required.").max(100,"Use 100 characters or fewer.");function bs(e){let[t]=e.issues;if(t==null)throw new Error("A zod check failed without an issue.");return t.message}function Jf(e){return e.dialog==null?"":` (${BO(e.dialog)})`}function BO(e){switch(e.kind){case "accept":return e.text==null?"accept dialog":`accept dialog with ${JSON.stringify(e.text)}`;case "dismiss":return "dismiss dialog"}}var Kf=["* { scroll-behavior: auto !important; }","*, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }","noscript { display: none !important; }"];var VO={withStackTrace:false},fb=(e,t,n=VO)=>{let i=t.isOk()?{type:"Ok",value:t.value}:{type:"Err",value:t.error},r=n.withStackTrace?new Error().stack:void 0;return {data:i,message:e,stack:r}};function qr(e,t,n,i){function r(o){return o instanceof n?o:new n(function(a){a(o);})}return new(n||(n=Promise))(function(o,a){function s(d){try{l(i.next(d));}catch(p){a(p);}}function c(d){try{l(i.throw(d));}catch(p){a(p);}}function l(d){d.done?o(d.value):r(d.value).then(s,c);}l((i=i.apply(e,[])).next());})}function db(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qt(e){return this instanceof qt?(this.v=e,this):new qt(e)}function pb(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(h){return function(v){return Promise.resolve(v).then(h,p)}}function s(h,v){i[h]&&(r[h]=function(x){return new Promise(function(b,j){o.push([h,x,b,j])>1||c(h,x);})},v&&(r[h]=v(r[h])));}function c(h,v){try{l(i[h](v));}catch(x){m(o[0][3],x);}}function l(h){h.value instanceof qt?Promise.resolve(h.value.v).then(d,p):m(o[0][2],h);}function d(h){c("next",h);}function p(h){c("throw",h);}function m(h,v){h(v),o.shift(),o.length&&c(o[0][0],o[0][1]);}}function ZO(e){var t,n;return t={},i("next"),i("throw",function(r){throw r}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(r,o){t[r]=e[r]?function(a){return (n=!n)?{value:qt(e[r](a)),done:false}:o?o(a):a}:o;}}function WO(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof db=="function"?db(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(o){n[o]=e[o]&&function(a){return new Promise(function(s,c){a=e[o](a),r(s,c,a.done,a.value);})};}function r(o,a,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s});},a);}}var Ht=class e{constructor(t){this._promise=t;}static fromSafePromise(t){let n=t.then(i=>new Dt(i));return new e(n)}static fromPromise(t,n){let i=t.then(r=>new Dt(r)).catch(r=>new pt(n(r)));return new e(i)}static fromThrowable(t,n){return (...i)=>new e(qr(this,void 0,void 0,function*(){try{return new Dt(yield t(...i))}catch(r){return new pt(n?n(r):r)}}))}static combine(t){return GO(t)}static combineWithAllErrors(t){return qO(t)}map(t){return new e(this._promise.then(n=>qr(this,void 0,void 0,function*(){return n.isErr()?new pt(n.error):new Dt(yield t(n.value))})))}andThrough(t){return new e(this._promise.then(n=>qr(this,void 0,void 0,function*(){if(n.isErr())return new pt(n.error);let i=yield t(n.value);return i.isErr()?new pt(i.error):new Dt(n.value)})))}andTee(t){return new e(this._promise.then(n=>qr(this,void 0,void 0,function*(){if(n.isErr())return new pt(n.error);try{yield t(n.value);}catch{}return new Dt(n.value)})))}orTee(t){return new e(this._promise.then(n=>qr(this,void 0,void 0,function*(){if(n.isOk())return new Dt(n.value);try{yield t(n.error);}catch{}return new pt(n.error)})))}mapErr(t){return new e(this._promise.then(n=>qr(this,void 0,void 0,function*(){return n.isOk()?new Dt(n.value):new pt(yield t(n.error))})))}andThen(t){return new e(this._promise.then(n=>{if(n.isErr())return new pt(n.error);let i=t(n.value);return i instanceof e?i._promise:i}))}orElse(t){return new e(this._promise.then(n=>qr(this,void 0,void 0,function*(){return n.isErr()?t(n.error):new Dt(n.value)})))}match(t,n){return this._promise.then(i=>i.match(t,n))}unwrapOr(t){return this._promise.then(n=>n.unwrapOr(t))}safeUnwrap(){return pb(this,arguments,function*(){return yield qt(yield qt(yield*ZO(WO(yield qt(this._promise.then(n=>n.safeUnwrap()))))))})}then(t,n){return this._promise.then(t,n)}[Symbol.asyncIterator](){return pb(this,arguments,function*(){let n=yield qt(this._promise);return n.isErr()&&(yield yield qt(qi(n.error))),yield qt(n.value)})}};function qi(e){return new Ht(Promise.resolve(new pt(e)))}var mb=e=>{let t=we([]);for(let n of e)if(n.isErr()){t=ue(n.error);break}else t.map(i=>i.push(n.value));return t},GO=e=>Ht.fromSafePromise(Promise.all(e)).andThen(mb),hb=e=>{let t=we([]);for(let n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=ue([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},qO=e=>Ht.fromSafePromise(Promise.all(e)).andThen(hb),Xf;(function(e){function t(r,o){return (...a)=>{try{let s=r(...a);return we(s)}catch(s){return ue(o?o(s):s)}}}e.fromThrowable=t;function n(r){return mb(r)}e.combine=n;function i(r){return hb(r)}e.combineWithAllErrors=i;})(Xf||(Xf={}));function we(e){return new Dt(e)}function ue(e){return new pt(e)}var Dt=class{constructor(t){this.value=t;}isOk(){return true}isErr(){return !this.isOk()}map(t){return we(t(this.value))}mapErr(t){return we(this.value)}andThen(t){return t(this.value)}andThrough(t){return t(this.value).map(n=>this.value)}andTee(t){try{t(this.value);}catch{}return we(this.value)}orTee(t){return we(this.value)}orElse(t){return we(this.value)}asyncAndThen(t){return t(this.value)}asyncAndThrough(t){return t(this.value).map(()=>this.value)}asyncMap(t){return Ht.fromSafePromise(t(this.value))}unwrapOr(t){return this.value}match(t,n){return t(this.value)}safeUnwrap(){let t=this.value;return (function*(){return t})()}_unsafeUnwrap(t){return this.value}_unsafeUnwrapErr(t){throw fb("Called `_unsafeUnwrapErr` on an Ok",this,t)}*[Symbol.iterator](){return this.value}},pt=class{constructor(t){this.error=t;}isOk(){return false}isErr(){return !this.isOk()}map(t){return ue(this.error)}mapErr(t){return ue(t(this.error))}andThrough(t){return ue(this.error)}andTee(t){return ue(this.error)}orTee(t){try{t(this.error);}catch{}return ue(this.error)}andThen(t){return ue(this.error)}orElse(t){return t(this.error)}asyncAndThen(t){return qi(this.error)}asyncAndThrough(t){return qi(this.error)}asyncMap(t){return qi(this.error)}unwrapOr(t){return t}match(t,n){return n(this.error)}safeUnwrap(){let t=this.error;return (function*(){throw yield ue(t),new Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(t){throw fb("Called `_unsafeUnwrap` on an Err",this,t)}_unsafeUnwrapErr(t){return this.error}*[Symbol.iterator](){let t=this;return yield t,t}};Xf.fromThrowable;function Qf({base:e,taken:t}){let n=new Set(t.map(o=>o.toLowerCase())),r=[e,...Array.from({length:t.length+1},(o,a)=>`${e}-${String(a+2)}`)].find(o=>!n.has(o.toLowerCase()));if(r==null)throw new Error("connection-name-candidates-exhausted");return r}var _s=Symbol.for("better-auth:broadcast-channel"),HO=()=>Math.floor(Date.now()/1e3),YO=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e;}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e);}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:HO()}));}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return ()=>{};let e=t=>{if(t.key!==this.name)return;let n=JSON.parse(t.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(i=>i(n));};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e);}}};function Hi(e="better-auth.message"){return globalThis[_s]||(globalThis[_s]=new YO(e)),globalThis[_s]}var Ds=Symbol.for("better-auth:focus-manager"),JO=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e);}}setFocused(e){this.listeners.forEach(t=>t(e));}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return ()=>{};let e=()=>{document.visibilityState==="visible"&&this.setFocused(true);};return document.addEventListener("visibilitychange",e,false),()=>{document.removeEventListener("visibilitychange",e,false);}}};function em(){return globalThis[Ds]||(globalThis[Ds]=new JO),globalThis[Ds]}var xs=Symbol.for("better-auth:online-manager"),KO=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:true;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e);}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e));}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return ()=>{};let e=()=>this.setOnline(true),t=()=>this.setOnline(false);return window.addEventListener("online",e,false),window.addEventListener("offline",t,false),()=>{window.removeEventListener("online",e,false),window.removeEventListener("offline",t,false);}}};function Ss(){return globalThis[xs]||(globalThis[xs]=new KO),globalThis[xs]}var XO={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},QO=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,yb={true:true,false:false,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},ek=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function tk(e){return e instanceof Date&&!isNaN(e.getTime())}function rk(e){let t=ek.exec(e);if(!t)return null;let[,n,i,r,o,a,s,c,l,d,p]=t,m=new Date(Date.UTC(parseInt(n,10),parseInt(i,10)-1,parseInt(r,10),parseInt(o,10),parseInt(a,10),parseInt(s,10),c?parseInt(c.padEnd(3,"0"),10):0));if(l){let h=(parseInt(d,10)*60+parseInt(p,10))*(l==="+"?-1:1);m.setUTCMinutes(m.getUTCMinutes()+h);}return tk(m)?m:null}function nk(e,t={}){let{strict:n=false,warnings:i=false,reviver:r,parseDates:o=true}=t;if(typeof e!="string")return e;let a=e.trim();if(a.length>0&&a[0]==='"'&&a.endsWith('"')&&!a.slice(1,-1).includes('"'))return a.slice(1,-1);let s=a.toLowerCase();if(s.length<=9&&s in yb)return yb[s];if(!QO.test(a)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(XO).some(([c,l])=>{let d=l.test(a);return d&&i&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${c} pattern`),d})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(a,(l,d)=>{if(l==="__proto__"||l==="constructor"&&d&&typeof d=="object"&&"prototype"in d){i&&console.warn(`[better-json] Dropping "${l}" key to prevent prototype pollution`);return}if(o&&typeof d=="string"){let p=rk(d);if(p)return p}return r?r(l,d):d})}catch(c){if(n)throw c;return e}}function tm(e,t={strict:true}){return nk(e,t)}var Yi=Symbol("clean");var zt=[],Sr=0,Es=4,Yt=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(i){return n.lc=t.push(i),()=>{for(let o=Sr+Es;o<zt.length;)zt[o]===i?zt.splice(o,Es):o+=Es;let r=t.indexOf(i);~r&&(t.splice(r,1),--n.lc||n.off());}},notify(i,r){let o=!zt.length;for(let a of t)zt.push(a,n.value,i,r);if(o){for(Sr=0;Sr<zt.length;Sr+=Es)zt[Sr](zt[Sr+1],zt[Sr+2],zt[Sr+3]);zt.length=0;}},off(){},set(i){let r=n.value;r!==i&&(n.value=i,n.notify(r));},subscribe(i){let r=n.listen(i);return i(n.value),r},value:e};return process.env.NODE_ENV!=="production"&&(n[Yi]=()=>{t=[],n.lc=0,n.off();}),n};var ok=5,Yn=6,ws=10,ak=(e,t,n,i)=>(e.events=e.events||{},e.events[n+ws]||(e.events[n+ws]=i(r=>{e.events[n].reduceRight((o,a)=>(a(o),o),{shared:{},...r});})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let r=e.events[n],o=r.indexOf(t);r.splice(o,1),r.length||(delete e.events[n],e.events[n+ws](),delete e.events[n+ws]);});var vb=1e3,Ji=(e,t)=>ak(e,i=>{let r=t(i);r&&e.events[Yn].push(r);},ok,i=>{let r=e.listen;e.listen=(...a)=>(!e.lc&&!e.active&&(e.active=true,i()),r(...a));let o=e.off;if(e.events[Yn]=[],e.off=()=>{o(),setTimeout(()=>{if(e.active&&!e.lc){e.active=false;for(let a of e.events[Yn])a();e.events[Yn]=[];}},vb);},process.env.NODE_ENV!=="production"){let a=e[Yi];e[Yi]=()=>{for(let s of e.events[Yn])s();e.events[Yn]=[],e.active=false,a();};}return ()=>{e.listen=r,e.off=o;}});var sk=()=>typeof window>"u",Er=(e,t,n,i)=>{let r=Yt({data:null,error:null,isPending:true,isRefetching:false,refetch:s=>o(s)}),o=async s=>new Promise(c=>{let l=typeof i=="function"?i({data:r.get().data,error:r.get().error,isPending:r.get().isPending}):i;n(t,{...l,query:{...l?.query,...s?.query},async onSuccess(d){r.set({data:d.data,error:null,isPending:false,isRefetching:false,refetch:r.value.refetch}),await l?.onSuccess?.(d);},async onError(d){let{request:p}=d,m=typeof p.retry=="number"?p.retry:p.retry?.attempts,h=p.retryAttempt||0;if(m&&h<m)return;let v=d.error.status===401;r.set({error:d.error,data:v?null:r.get().data,isPending:false,isRefetching:false,refetch:r.value.refetch}),await l?.onError?.(d);},async onRequest(d){let p=r.get();r.set({isPending:p.data===null,data:p.data,error:null,isRefetching:true,refetch:r.value.refetch}),await l?.onRequest?.(d);}}).catch(d=>{r.set({error:d,data:r.get().data,isPending:false,isRefetching:false,refetch:r.value.refetch});}).finally(()=>{c(void 0);});});e=Array.isArray(e)?e:[e];let a=false;for(let s of e)s.subscribe(async()=>{sk()||(a?await o():Ji(r,()=>{let c=setTimeout(async()=>{a||(await o(),a=true);},0);return ()=>{r.off(),s.off(),clearTimeout(c);}}));});return r};var Jn=()=>Math.floor(Date.now()/1e3);function bb(e){return typeof e=="object"&&e!==null&&"data"in e&&"error"in e?e:{data:e,error:null}}var uk=5;function rm(e){let{sessionAtom:t,sessionSignal:n,$fetch:i,options:r={}}=e,o=r.sessionOptions?.refetchInterval??0,a=r.sessionOptions?.refetchOnWindowFocus??true,s=r.sessionOptions?.refetchWhenOffline??false,c={lastSync:0,lastSessionRequest:0,cachedSession:void 0},l=()=>s||Ss().isOnline,d=H=>{if(!l())return;if(H?.event==="storage"){c.lastSync=Jn(),n.set(!n.get());return}let B=t.get(),R=()=>{c.lastSessionRequest=Jn(),i("/get-session").then(async k=>{let{data:N,error:re}=bb(k);if(N?.needsRefresh)try{let _e=await i("/get-session",{method:"POST"});({data:N,error:re}=bb(_e));}catch{}let ce=N?.session&&N?.user?N:null;t.set({...B,data:ce,error:re}),c.lastSync=Jn(),n.set(!n.get());}).catch(()=>{});};if(H?.event==="poll"){R();return}if(H?.event==="visibilitychange"){if(Jn()-c.lastSessionRequest<uk)return;c.lastSessionRequest=Jn();}if(H?.event==="visibilitychange"){R();return}(B?.data===null||B?.data===void 0)&&(c.lastSync=Jn(),n.set(!n.get()));},p=H=>{Hi().post({event:"session",data:{trigger:H},clientId:Math.random().toString(36).substring(7)});},m=()=>{o&&o>0&&(c.pollInterval=setInterval(()=>{t.get()?.data&&d({event:"poll"});},o*1e3));},h=()=>{c.unsubscribeBroadcast=Hi().subscribe(()=>{d({event:"storage"});});},v=()=>{a&&(c.unsubscribeFocus=em().subscribe(()=>{d({event:"visibilitychange"});}));},x=()=>{c.unsubscribeOnline=Ss().subscribe(H=>{H&&d({event:"visibilitychange"});});};return {init:()=>{m(),h(),v(),x(),Hi().setup(),em().setup(),Ss().setup();},cleanup:()=>{c.pollInterval&&(clearInterval(c.pollInterval),c.pollInterval=void 0),c.unsubscribeBroadcast&&(c.unsubscribeBroadcast(),c.unsubscribeBroadcast=void 0),c.unsubscribeFocus&&(c.unsubscribeFocus(),c.unsubscribeFocus=void 0),c.unsubscribeOnline&&(c.unsubscribeOnline(),c.unsubscribeOnline=void 0),c.lastSync=0,c.lastSessionRequest=0,c.cachedSession=void 0;},triggerRefetch:d,broadcastSessionUpdate:p}}var $s=Object.create(null),Ki=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?$s:globalThis),tt=new Proxy($s,{get(e,t){return Ki()[t]??$s[t]},has(e,t){return t in Ki()||t in $s},set(e,t,n){let i=Ki(true);return i[t]=n,true},deleteProperty(e,t){if(!t)return false;let n=Ki(true);return delete n[t],true},ownKeys(){let e=Ki(true);return Object.keys(e)}});typeof process<"u"&&process.env&&process.env.NODE_ENV||"";function pe(e,t){return typeof process<"u"&&process.env?process.env[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}var Xi=1,Ve=4,Jt=8,ft=24,_b={eterm:Ve,cons25:Ve,console:Ve,cygwin:Ve,dtterm:Ve,gnome:Ve,hurd:Ve,jfbterm:Ve,konsole:Ve,kterm:Ve,mlterm:Ve,mosh:ft,putty:Ve,st:Ve,"rxvt-unicode-24bit":ft,terminator:ft,"xterm-kitty":ft},dk=new Map(Object.entries({APPVEYOR:Jt,BUILDKITE:Jt,CIRCLECI:ft,DRONE:Jt,GITEA_ACTIONS:ft,GITHUB_ACTIONS:ft,GITLAB_CI:Jt,TRAVIS:Jt})),pk=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function nm(){if(pe("FORCE_COLOR")!==void 0)switch(pe("FORCE_COLOR")){case "":case "1":case "true":return Ve;case "2":return Jt;case "3":return ft;default:return Xi}if(pe("NODE_DISABLE_COLORS")!==void 0&&pe("NODE_DISABLE_COLORS")!==""||pe("NO_COLOR")!==void 0&&pe("NO_COLOR")!==""||pe("TERM")==="dumb")return Xi;if(pe("TMUX"))return ft;if("TF_BUILD"in tt&&"AGENT_NAME"in tt)return Ve;if("CI"in tt){for(let{0:e,1:t}of dk)if(e in tt)return t;return pe("CI_NAME")==="codeship"?Jt:Xi}if("TEAMCITY_VERSION"in tt)return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(pe("TEAMCITY_VERSION"))!==null?Ve:Xi;switch(pe("TERM_PROGRAM")){case "iTerm.app":return !pe("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(pe("TERM_PROGRAM_VERSION"))!==null?Jt:ft;case "HyperTerm":case "MacTerm":return ft;case "Apple_Terminal":return Jt}if(pe("COLORTERM")==="truecolor"||pe("COLORTERM")==="24bit")return ft;if(pe("TERM")){if(/truecolor/.exec(pe("TERM"))!==null)return ft;if(/^xterm-256/.exec(pe("TERM"))!==null)return Jt;let e=pe("TERM").toLowerCase();if(_b[e])return _b[e];if(pk.some(t=>t.exec(e)!==null))return Ve}return pe("COLORTERM")?Ve:Xi}var Nt={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},Is=["debug","info","success","warn","error"];function Db(e,t){return Is.indexOf(t)>=Is.indexOf(e)}var fk={info:Nt.fg.blue,success:Nt.fg.green,warn:Nt.fg.yellow,error:Nt.fg.red,debug:Nt.fg.magenta},mk=(e,t,n)=>{let i=new Date().toISOString();return n?`${Nt.dim}${i}${Nt.reset} ${fk[e]}${e.toUpperCase()}${Nt.reset} ${Nt.bright}[Better Auth]:${Nt.reset} ${t}`:`${i} ${e.toUpperCase()} [Better Auth]: ${t}`},xb=e=>{let n="warn",i=nm()!==1,r=(o,a,s=[])=>{if(!Db(n,o))return;let c=mk(o,a,i);{o==="error"?console.error(c,...s):o==="warn"?console.warn(c,...s):console.log(c,...s);return}};return {...Object.fromEntries(Is.map(o=>[o,(...[a,...s])=>r(o,a,s)])),get level(){return n}}};xb();function Ne(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,{code:t,message:n,toString:()=>t}]))}Ne({USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",INVALID_USER:"Invalid user",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",TOKEN_EXPIRED:"Token expired",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists.",USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL:"User already exists. Use another email.",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account.",CROSS_SITE_NAVIGATION_LOGIN_BLOCKED:"Cross-site navigation login blocked. This request appears to be a CSRF attack.",VERIFICATION_EMAIL_NOT_ENABLED:"Verification email isn't enabled",EMAIL_ALREADY_VERIFIED:"Email is already verified",EMAIL_MISMATCH:"Email mismatch",SESSION_NOT_FRESH:"Session is not fresh",LINKED_ACCOUNT_ALREADY_EXISTS:"Linked account already exists",INVALID_ORIGIN:"Invalid origin",INVALID_CALLBACK_URL:"Invalid callbackURL",INVALID_REDIRECT_URL:"Invalid redirectURL",INVALID_ERROR_CALLBACK_URL:"Invalid errorCallbackURL",INVALID_NEW_USER_CALLBACK_URL:"Invalid newUserCallbackURL",MISSING_OR_NULL_ORIGIN:"Missing or null Origin",CALLBACK_URL_REQUIRED:"callbackURL is required",FAILED_TO_CREATE_VERIFICATION:"Unable to create verification",FIELD_NOT_ALLOWED:"Field not allowed to be set",ASYNC_VALIDATION_NOT_SUPPORTED:"Async validation is not supported",VALIDATION_ERROR:"Validation Error",MISSING_FIELD:"Field is required",METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED:"POST method requires deferSessionRefresh to be enabled in session config",BODY_MUST_BE_AN_OBJECT:"Body must be an object",PASSWORD_ALREADY_SET:"User already has a password set"});var wr=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack="";}};function Sk(e){try{return (new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new wr(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function Ek(e){try{let t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new wr(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof wr?t:new wr(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function Qi(e,t="/api/auth"){if(Ek(e),Sk(e))return e;let n=e.replace(/\/+$/,"");return !t||t==="/"?n:(t=t.startsWith("/")?t:`/${t}`,`${n}${t}`)}function Eb(e,t,n,i,r){if(e)return Qi(e,t);{let s=tt.BETTER_AUTH_URL||tt.NEXT_PUBLIC_BETTER_AUTH_URL||tt.PUBLIC_BETTER_AUTH_URL||tt.NUXT_PUBLIC_BETTER_AUTH_URL||tt.NUXT_PUBLIC_AUTH_URL||(tt.BASE_URL!=="/"?tt.BASE_URL:void 0);if(s)return Qi(s,t)}if(typeof window<"u"&&window.location)return Qi(window.location.origin,t)}var wb={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url;}catch{}}}};function $b(e,t){let n=Yt(false),i=Er(n,"/get-session",e,{method:"GET"}),r=()=>{};return Ji(i,()=>{let o=rm({sessionAtom:i,sessionSignal:n,$fetch:e,options:t});return o.init(),r=o.broadcastSessionUpdate,()=>{o.cleanup();}}),{session:i,$sessionSignal:n,broadcastSessionUpdate:o=>r(o)}}function im(e){if(e===null||typeof e!="object")return false;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?false:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":true}function om(e,t,n=".",i){if(!im(t))return om(e,{},n,i);let r=Object.assign({},t);for(let o in e){if(o==="__proto__"||o==="constructor")continue;let a=e[o];a!=null&&(i&&i(r,o,a,n)||(Array.isArray(a)&&Array.isArray(r[o])?r[o]=[...a,...r[o]]:im(a)&&im(r[o])?r[o]=om(a,r[o],(n?`${n}.`:"")+o.toString(),i):r[o]=a));}return r}function am(e){return (...t)=>t.reduce((n,i)=>om(n,i,"",e),{})}var Ib=am();var $k=Object.defineProperty,Ik=Object.defineProperties,Ok=Object.getOwnPropertyDescriptors,Ob=Object.getOwnPropertySymbols,kk=Object.prototype.hasOwnProperty,Ck=Object.prototype.propertyIsEnumerable,kb=(e,t,n)=>t in e?$k(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,Ut=(e,t)=>{for(var n in t||(t={}))kk.call(t,n)&&kb(e,n,t[n]);if(Ob)for(var n of Ob(t))Ck.call(t,n)&&kb(e,n,t[n]);return e},Kt=(e,t)=>Ik(e,Ok(t)),Ak=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor);}},Rk=async(e,t)=>{var n,i,r,o,a,s;let c=t||{},l={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return {url:e,options:c,hooks:l};for(let d of t?.plugins||[]){if(d.init){let p=await((n=d.init)==null?void 0:n.call(d,e.toString(),t));c=p.options||c,e=p.url;}l.onRequest.push((i=d.hooks)==null?void 0:i.onRequest),l.onResponse.push((r=d.hooks)==null?void 0:r.onResponse),l.onSuccess.push((o=d.hooks)==null?void 0:o.onSuccess),l.onError.push((a=d.hooks)==null?void 0:a.onError),l.onRetry.push((s=d.hooks)==null?void 0:s.onRetry);}return {url:e,options:c,hooks:l}},Cb=class{constructor(e){this.options=e;}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},Pk=class{constructor(e){this.options=e;}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function Fk(e){if(typeof e=="number")return new Cb({type:"linear",attempts:e,delay:1e3});switch(e.type){case "linear":return new Cb(e);case "exponential":return new Pk(e);default:throw new Error("Invalid retry strategy")}}var Tk=async e=>{let t={},n=async i=>typeof i=="function"?await i():i;if(e?.auth){if(e.auth.type==="Bearer"){let i=await n(e.auth.token);if(!i)return t;t.authorization=`Bearer ${i}`;}else if(e.auth.type==="Basic"){let[i,r]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!i||!r)return t;t.authorization=`Basic ${btoa(`${i}:${r}`)}`;}else if(e.auth.type==="Custom"){let[i,r]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!r)return t;t.authorization=`${i??""} ${r}`;}}return t},zk=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Nk(e){let t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return "json";let i=t.split(";").shift()||"";return zk.test(i)?"json":n.has(i)||i.startsWith("text/")?"text":"blob"}function Uk(e){try{return JSON.parse(e),!0}catch{return false}}function sm(e){if(e===void 0)return false;let t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?true:t!=="object"?false:Array.isArray(e)?true:e.buffer?false:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function Ab(e){try{return JSON.parse(e)}catch{return e}}function Rb(e){return typeof e=="function"}function jk(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&Rb(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&Rb(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function Lk(e){let t=new Headers(e?.headers),n=await Tk(e);for(let[i,r]of Object.entries(n||{}))t.set(i,r);if(!t.has("content-type")){let i=Mk(e?.body);i&&t.set("content-type",i);}return t}function Mk(e){return sm(e)?"application/json":null}function Bk(e){if(!e?.body)return null;let t=new Headers(e?.headers);if(sm(e.body)&&!t.has("content-type")){for(let[n,i]of Object.entries(e?.body))i instanceof Date&&(e.body[n]=i.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&sm(e.body)?new URLSearchParams(e.body).toString():e.body}function Vk(e,t){var n;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){let i=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return Fb.includes(i)?i.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function Zk(e,t){let n;return !e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n);}}}var Wk=class Pb extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,Pb.prototype);}};async function Os(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new Wk(n.issues);return n.value}var Fb=["get","post","put","patch","delete"];var Gk=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var i,r,o,a;let s=((r=(i=e.plugins)==null?void 0:i.find(c=>{var l;return (l=c.schema)!=null&&l.config?t.startsWith(c.schema.config.baseURL||"")||t.startsWith(c.schema.config.prefix||""):false}))==null?void 0:r.schema)||e.schema;if(s){let c=t;(o=s.config)!=null&&o.prefix&&c.startsWith(s.config.prefix)&&(c=c.replace(s.config.prefix,""),s.config.baseURL&&(t=t.replace(s.config.prefix,s.config.baseURL))),(a=s.config)!=null&&a.baseURL&&c.startsWith(s.config.baseURL)&&(c=c.replace(s.config.baseURL,""));let l=s.schema[c];if(l){let d=Kt(Ut({},n),{method:l.method,output:l.output});return n?.disableValidation||(d=Kt(Ut({},d),{body:l.input?await Os(l.input,n?.body):n?.body,params:l.params?await Os(l.params,n?.params):n?.params,query:l.query?await Os(l.query,n?.query):n?.query})),{url:t,options:d}}}return {url:t,options:n}}}),Tb=e=>{async function t(n,i){let r=Kt(Ut(Ut({},e),i),{plugins:[...e?.plugins||[],Gk(e||{}),...i?.plugins||[]]});if(e?.catchAllError)try{return await um(n,r)}catch(o){return {data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:o}}}return await um(n,r)}return t};function qk(e,t){let{baseURL:n,params:i,query:r}=t||{query:{},params:{},baseURL:""},o=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){let p=e.toString().split("@")[1].split("/")[0];Fb.includes(p)&&(e=e.replace(`@${p}/`,"/"));}o.endsWith("/")||(o+="/");let[a,s]=e.replace(o,"").split("?"),c=new URLSearchParams(s);for(let[p,m]of Object.entries(r||{})){if(m==null)continue;let h;if(typeof m=="string")h=m;else if(Array.isArray(m)){for(let v of m)c.append(p,v);continue}else h=JSON.stringify(m);c.set(p,h);}if(i)if(Array.isArray(i)){let p=a.split("/").filter(m=>m.startsWith(":"));for(let[m,h]of p.entries()){let v=i[m];a=a.replace(h,v);}}else for(let[p,m]of Object.entries(i))a=a.replace(`:${p}`,String(m));a=a.split("/").map(encodeURIComponent).join("/"),a.startsWith("/")&&(a=a.slice(1));let l=c.toString();return l=l.length>0?`?${l}`.replace(/\+/g,"%20"):"",o.startsWith("http")?new URL(`${a}${l}`,o):`${o}${a}${l}`}var um=async(e,t)=>{var n,i,r,o,a,s,c,l;let{hooks:d,url:p,options:m}=await Rk(e,t),h=jk(m),v=new AbortController,x=(n=m.signal)!=null?n:v.signal,b=qk(p,m),j=Bk(m),H=await Lk(m),B=Vk(p,m),R=Kt(Ut({},m),{url:b,headers:H,body:j,method:B,signal:x});for(let P of d.onRequest)if(P){let V=await P(R);typeof V=="object"&&V!==null&&(R=V);}("pipeTo"in R&&typeof R.pipeTo=="function"||typeof((i=t?.body)==null?void 0:i.pipe)=="function")&&("duplex"in R||(R.duplex="half"));let{clearTimeout:k}=Zk(m,v),N=await h(R.url,R);k();let re={response:N,request:R};for(let P of d.onResponse)if(P){let V=await P(Kt(Ut({},re),{response:(r=t?.hookOptions)!=null&&r.cloneResponse?N.clone():N}));V instanceof Response?N=V:typeof V=="object"&&V!==null&&(N=V.response);}if(N.ok){if(!(R.method!=="HEAD"))return {data:"",error:null};let V=Nk(N),te={data:null,response:N,request:R};if(V==="json"||V==="text"){let de=await N.text(),se=(o=R.jsonParser)!=null?o:Ab;te.data=await se(de);}else te.data=await N[V]();R?.output&&R.output&&!R.disableValidation&&(te.data=await Os(R.output,te.data));for(let de of d.onSuccess)de&&await de(Kt(Ut({},te),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?N.clone():N}));return t?.throw?te.data:{data:te.data,error:null}}let ce=(s=t?.jsonParser)!=null?s:Ab,_e=await N.text(),ie=Uk(_e),T=ie?await ce(_e):null,z={response:N,responseText:_e,request:R,error:Kt(Ut({},T),{status:N.status,statusText:N.statusText})};for(let P of d.onError)P&&await P(Kt(Ut({},z),{response:(c=t?.hookOptions)!=null&&c.cloneResponse?N.clone():N}));if(t?.retry){let P=Fk(t.retry),V=(l=t.retryAttempt)!=null?l:0;if(await P.shouldAttemptRetry(V,N)){for(let de of d.onRetry)de&&await de(re);let te=P.getDelay(V);return await new Promise(de=>setTimeout(de,te)),await um(e,Kt(Ut({},t),{retryAttempt:V+1}))}}if(t?.throw)throw new Ak(N.status,N.statusText,ie?T:_e);return {data:null,error:Kt(Ut({},T),{status:N.status,statusText:N.statusText})}};var Hk=e=>{if(typeof process>"u")return;let t=e??"/api/auth";if(process.env.NEXT_PUBLIC_AUTH_URL)return process.env.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(process.env.NEXTAUTH_URL)try{return process.env.NEXTAUTH_URL}catch{}if(process.env.VERCEL_URL)try{let n=process.env.VERCEL_URL.startsWith("http")?"":"https://";return `${new URL(`${n}${process.env.VERCEL_URL}`).origin}${t}`}catch{}}},zb=(e,t)=>{let n="credentials"in Request.prototype,i=Eb(e?.baseURL,e?.basePath)??Hk(e?.basePath)??"/api/auth",r=e?.plugins?.flatMap(k=>k.fetchPlugins).filter(k=>k!==void 0)||[],o={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:a,onError:s,onRequest:c,onResponse:l,...d}=e?.fetchOptions||{},p=Tb({baseURL:i,...n?{credentials:"include"}:{},method:"GET",jsonParser(k){return k?tm(k,{strict:false}):null},customFetchImpl:fetch,...d,plugins:[o,...d.plugins||[],...e?.disableDefaultFetchPlugins?[]:[wb],...r]}),{$sessionSignal:m,session:h,broadcastSessionUpdate:v}=$b(p,e),x=e?.plugins||[],b={},j={$sessionSignal:m,session:h},H={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},B=[{signal:"$sessionSignal",matcher(k){return k==="/sign-out"||k==="/update-user"||k==="/update-session"||k==="/sign-up/email"||k==="/sign-in/email"||k==="/delete-user"||k==="/verify-email"||k==="/revoke-sessions"||k==="/revoke-session"||k==="/change-email"},callback(k){k==="/sign-out"?v("signout"):(k==="/update-user"||k==="/update-session")&&v("updateUser");}}];for(let k of x)k.getAtoms&&Object.assign(j,k.getAtoms?.(p)),k.pathMethods&&Object.assign(H,k.pathMethods),k.atomListeners&&B.push(...k.atomListeners);let R={notify:k=>{j[k].set(!j[k].get());},listen:(k,N)=>{j[k].subscribe(N);},atoms:j};for(let k of x)k.getActions&&(b=Ib(k.getActions?.(p,R,e)??{},b));return {get baseURL(){return i},pluginsActions:b,pluginsAtoms:j,pluginPathMethods:H,atomListeners:B,$fetch:p,$store:R}};function Nb(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function Yk(e,t,n){let i=t[e],{fetchOptions:r,query:o,...a}=n||{};return i||(r?.method?r.method:a&&Object.keys(a).length>0?"POST":"GET")}function Ub(e,t,n,i,r){function o(a=[]){return new Proxy(function(){},{get(s,c){if(typeof c!="string"||c==="then"||c==="catch"||c==="finally")return;let l=[...a,c],d=e;for(let p of l)if(d&&typeof d=="object"&&p in d)d=d[p];else {d=void 0;break}return typeof d=="function"||Nb(d)?d:o(l)},apply:async(s,c,l)=>{let d="/"+a.map(H=>H.replace(/[A-Z]/g,B=>`-${B.toLowerCase()}`)).join("/"),p=l[0]||{},m=l[1]||{},{query:h,fetchOptions:v,...x}=p,b={...m,...v},j=Yk(d,n,p);return await t(d,{...b,body:j==="GET"?void 0:{...x,...b?.body||{}},query:h||b?.query,method:j,async onSuccess(H){if(await b?.onSuccess?.(H),!r||b.disableSignal)return;let B=r.filter(k=>k.matcher(d));if(!B.length)return;let R=new Set;for(let k of B){let N=i[k.signal];if(!N)return;if(R.has(k.signal))continue;R.add(k.signal);let re=N.get();setTimeout(()=>{N.set(!re);},10),k.callback?.(d);}}})}})}return o()}function jb(e){return e.charAt(0).toUpperCase()+e.slice(1)}function eo(e){let{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:i,$fetch:r,atomListeners:o,$store:a}=zb(e),s={};for(let[c,l]of Object.entries(i))s[`use${jb(c)}`]=l;return Ub({...n,...s,$fetch:r,$store:a},r,t,i,o)}Ne({FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists.",USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL:"User already exists. Use another email.",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application",YOU_ARE_NOT_ALLOWED_TO_GET_USER:"You are not allowed to get user",NO_DATA_TO_UPDATE:"No data to update",YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS:"You are not allowed to update users",YOU_CANNOT_REMOVE_YOURSELF:"You cannot remove yourself",YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE:"You are not allowed to set a non-existent role value",YOU_CANNOT_IMPERSONATE_ADMINS:"You cannot impersonate admins",INVALID_ROLE_TYPE:"Invalid role type"});function Mb(e){return {authorize(t,n="AND"){let i=false;for(let[r,o]of Object.entries(t)){let a=e[r];if(!a)return {success:false,error:`You are not allowed to access resource: ${r}`};if(Array.isArray(o))i=o.every(s=>a.includes(s));else if(typeof o=="object"){let s=o;s.connector==="OR"?i=s.actions.some(c=>a.includes(c)):i=s.actions.every(c=>a.includes(c));}else throw new wr("Invalid access control request");if(i&&n==="OR")return {success:i};if(!i&&n==="AND")return {success:false,error:`unauthorized to access resource "${r}"`}}return i?{success:i}:{success:false,error:"Not authorized"}},statements:e}}function to(e){return {newRole(t){return Mb(t)},statements:e}}Ne({INVALID_EMAIL_FORMAT:"Email was not generated in a valid format",FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously",FAILED_TO_DELETE_ANONYMOUS_USER:"Failed to delete anonymous user",USER_IS_NOT_ANONYMOUS:"User is not anonymous",DELETE_ANONYMOUS_USER_DISABLED:"Deleting anonymous users is disabled"});var lm=()=>({id:"device-authorization",$InferServerPlugin:{},pathMethods:{"/device/code":"POST","/device/token":"POST","/device":"GET","/device/approve":"POST","/device/deny":"POST"}});Ne({OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",TOO_MANY_ATTEMPTS:"Too many attempts"});Ne({INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration",TOKEN_URL_NOT_FOUND:"Invalid OAuth configuration. Token URL not found.",PROVIDER_CONFIG_NOT_FOUND:"No config found for provider",PROVIDER_ID_REQUIRED:"Provider ID is required",INVALID_OAUTH_CONFIG:"Invalid OAuth configuration.",SESSION_REQUIRED:"Session is required",ISSUER_MISMATCH:"OAuth issuer mismatch. The authorization server issuer does not match the expected value (RFC 9207).",ISSUER_MISSING:"OAuth issuer parameter missing. The authorization server did not include the required iss parameter (RFC 9207)."});Ne({INVALID_SESSION_TOKEN:"Invalid session token"});var dm=Ne({YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_SLUG_ALREADY_TAKEN:"Organization slug already taken",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER:"You cannot leave the organization without an owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION:"Email verification required before accepting or rejecting invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"You are not allowed to invite a user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached",USER_IS_NOT_A_MEMBER_OF_THE_TEAM:"User is not a member of the team",YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM:"You are not allowed to list the members of this team",YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM:"You do not have an active team",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER:"You are not allowed to create a new member",YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER:"You are not allowed to remove a team member",YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION:"You are not allowed to access this organization as an owner",YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION:"You are not a member of this organization",MISSING_AC_INSTANCE:"Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information",YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE:"You must be in an organization to create a role",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE:"You are not allowed to create a role",YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE:"You are not allowed to update a role",YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE:"You are not allowed to delete a role",YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE:"You are not allowed to read a role",YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE:"You are not allowed to list a role",YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE:"You are not allowed to get a role",TOO_MANY_ROLES:"This organization has too many roles",INVALID_RESOURCE:"The provided permission includes an invalid resource",ROLE_NAME_IS_ALREADY_TAKEN:"That role name is already taken",CANNOT_DELETE_A_PRE_DEFINED_ROLE:"Cannot delete a pre-defined role",ROLE_IS_ASSIGNED_TO_MEMBERS:"Cannot delete a role that is assigned to members. Please reassign the members to a different role first"});var Yb={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},ks=to(Yb),Cs=ks.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),As=ks.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),Rs=ks.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),pm={admin:Cs,owner:As,member:Rs};var Jb=(e,t)=>{if(!e.permissions)return false;let n=e.role.split(","),i=e.options.creatorRole||"owner",r=n.includes(i),o=e.allowCreatorAllPermissions||false;if(r&&o)return true;for(let a of n)if(t[a]?.authorize(e.permissions)?.success)return true;return false};var Kb=e=>Jb(e,e.options.roles||pm),fm=e=>{let t=Yt(false),n=Yt(false),i=Yt(false),r=Yt(false),o={admin:Cs,member:Rs,owner:As,...e?.roles};return {id:"organization",$InferServerPlugin:{},getActions:(a,s,c)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:l=>Kb({role:l.role,options:{ac:e?.ac,roles:o},permissions:l.permissions})}}),getAtoms:a=>{let s=Er(t,"/organization/list",a,{method:"GET"});return {$listOrg:t,$activeOrgSignal:n,$activeMemberSignal:i,$activeMemberRoleSignal:r,activeOrganization:Er([n],"/organization/get-full-organization",a,()=>({method:"GET"})),listOrganizations:s,activeMember:Er([n,i],"/organization/get-active-member",a,{method:"GET"}),activeMemberRole:Er([n,r],"/organization/get-active-member-role",a,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(a){return a==="/organization/create"||a==="/organization/delete"||a==="/organization/update"},signal:"$listOrg"},{matcher(a){return a.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(a){return a.startsWith("/organization/set-active")||a==="/organization/create"||a==="/organization/delete"||a==="/organization/remove-member"||a==="/organization/leave"||a==="/organization/accept-invitation"},signal:"$sessionSignal"},{matcher(a){return a.includes("/organization/update-member-role")||a.startsWith("/organization/set-active")},signal:"$activeMemberSignal"},{matcher(a){return a.includes("/organization/update-member-role")||a.startsWith("/organization/set-active")},signal:"$activeMemberRoleSignal"}],$ERROR_CODES:dm}};Ne({INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",PHONE_NUMBER_NOT_EXIST:"phone number isn't registered",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified",PHONE_NUMBER_CANNOT_BE_UPDATED:"Phone number cannot be updated",SEND_OTP_NOT_IMPLEMENTED:"sendOTP not implemented",TOO_MANY_ATTEMPTS:"Too many attempts"});Ne({OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"});Ne({INVALID_USERNAME_OR_PASSWORD:"Invalid username or password",EMAIL_NOT_VERIFIED:"Email not verified",UNEXPECTED_ERROR:"Unexpected error",USERNAME_IS_ALREADY_TAKEN:"Username is already taken. Please try another.",USERNAME_TOO_SHORT:"Username is too short",USERNAME_TOO_LONG:"Username is too long",INVALID_USERNAME:"Username is invalid",INVALID_DISPLAY_USERNAME:"Display username is invalid"});var Qk=".ripplo";function r_(){return Xm.join(Xk.homedir(),Qk)}function n_(){let e=r_();return Kn.existsSync(e)?Kn.chmodSync(e,448):Kn.mkdirSync(e,{mode:448,recursive:true}),e}function i_(e){return Xm.join(r_(),e)}function ro(e){let t=process.env.RIPPLO_TOKEN;if(t!=null&&t.trim().length>0)return t.trim();let n=Hr(e);if(!Kn.existsSync(n))return null;let i=Kn.readFileSync(n,"utf8").trim();return i.length===0?null:i}function hm({serverUrl:e,token:t}){n_();let n=Hr(e);Kn.mkdirSync(Xm.dirname(n),{mode:448,recursive:true}),Kn.writeFileSync(n,t+`
46
+ `,{mode:384});}function gm(e){let t=Hr(e);return Kn.existsSync(t)?(Kn.unlinkSync(t),true):false}function Hr(e){return i_(Xm.join("tokens",eC(e)))}function eC(e){return new URL(e).host.replaceAll(/[^a-zA-Z0-9.]/g,"_")}var rC=5e3,a_="ripplo-cli",nC=new Set(["authorization_pending","slow_down"]);async function s_({onDeviceCode:e,serverUrl:t}){let n=iC(t),i=await n.device.code({client_id:a_});if(i.error!=null)return ue({description:i.error.error_description,kind:"device-code-failed"});let{device_code:r,user_code:o,verification_uri_complete:a}=i.data;return e({userCode:o,verificationUrl:a}),Yr(a),(await oC({authClient:n,deviceCode:r})).map(c=>(hm({serverUrl:t,token:c}),c))}function iC(e){return eo({baseURL:e,fetchOptions:{headers:{"User-Agent":"Ripplo CLI"}},plugins:[lm()]})}async function oC({authClient:e,deviceCode:t}){for(;;){await aC(rC);let n=await e.device.token({client_id:a_,device_code:t,grant_type:"urn:ietf:params:oauth:grant-type:device_code"});if(n.data?.access_token!=null)return we(n.data.access_token);if(n.error!=null&&!nC.has(n.error.error))return ue({code:n.error.error,description:n.error.error_description,kind:"authorization-failed"})}}function aC(e){return new Promise(t=>{setTimeout(t,e);})}function Yr(e){let t=sC();exec(`${t} "${e}"`,()=>{});}function sC(){return process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open"}async function no({lookupViewer:e,serverUrl:t}){let n=ro(t);if(n!=null&&await cC({lookupViewer:e,serverUrl:t,token:n}))return;let r=(await s_({onDeviceCode:uC,serverUrl:t})).match(s=>s,s=>{process.stderr.write(`${lC(s)}
47
47
  `),process.exit(1);}),o=await e({serverUrl:t,token:r}),a="Welcome to Ripplo";process.stdout.write(`
48
- `),process.stdout.write(o.kind==="ok"?`${a}, ${Zk(o.viewer)}.
48
+ `),process.stdout.write(o.kind==="ok"?`${a}, ${dC(o.viewer)}.
49
49
  `:`${a}.
50
- `),process.stdout.write(`Session saved to ${Mr(t)}.
51
- `);}function ro(e){if(!um(e)){process.stdout.write(`Already signed out.
52
- `);return}process.stdout.write(`Signed out. Removed ${Mr(e)}.
53
- `);}function Mk(e){process.stdout.write(`Opening your browser to finish sign-in.
50
+ `),process.stdout.write(`Session saved to ${Hr(t)}.
51
+ `);}function io(e){if(!gm(e)){process.stdout.write(`Already signed out.
52
+ `);return}process.stdout.write(`Signed out. Removed ${Hr(e)}.
53
+ `);}function uC(e){process.stdout.write(`Opening your browser to finish sign-in.
54
54
  `),process.stdout.write(`If it didn't open, visit: ${e.verificationUrl}
55
55
  `),process.stdout.write(`Verification code: ${e.userCode}
56
56
 
57
57
  `),process.stdout.write(`Waiting for approval...
58
- `);}async function Bk({lookupViewer:e,serverUrl:t,token:n}){let i=await e({serverUrl:t,token:n});return i.kind==="ok"?(process.stdout.write(`Already signed in as ${i.viewer.email}. Run \`npx ripplo logout\` to switch accounts.
58
+ `);}async function cC({lookupViewer:e,serverUrl:t,token:n}){let i=await e({serverUrl:t,token:n});return i.kind==="ok"?(process.stdout.write(`Already signed in as ${i.viewer.email}. Run \`npx ripplo logout\` to switch accounts.
59
59
  `),true):(i.kind==="unreachable"&&(process.stdout.write(`Could not reach the Ripplo server at ${t} (${i.message}). Your saved session may still be valid \u2014 fix connectivity and retry.
60
60
  `),process.exit(1)),process.stdout.write(`Your session expired \u2014 signing you back in.
61
61
 
62
- `),false)}function Vk(e){return e.kind==="device-code-failed"?[`Could not start sign-in (device-code request failed): ${e.description}`,"Is the Ripplo server reachable? Check RIPPLO_SERVER_URL and retry."].join(`
62
+ `),false)}function lC(e){return e.kind==="device-code-failed"?[`Could not start sign-in (device-code request failed): ${e.description}`,"Is the Ripplo server reachable? Check RIPPLO_SERVER_URL and retry."].join(`
63
63
  `):[`Sign-in failed (${e.code}): ${e.description}`,e.code==="expired_token"?"The approval window expired \u2014 run `npx ripplo login` again.":"Run `npx ripplo login` to retry."].join(`
64
- `)}function Zk(e){let t=e.name.trim().split(/\s+/)[0];return t!=null&&t.length>0?t:e.email}var Hk=1500,Yk=4e3,Jk=3,Kk=50,Xk=100,Zb=false;function cm(){if(Zb)return;Zb=true;let e=new Agent({connections:Xk,keepAliveMaxTimeout:Yk,keepAliveTimeout:Hk}),t=new RetryAgent(e,{errorCodes:["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT","UND_ERR_SOCKET"],maxRetries:Jk,methods:["GET","POST","HEAD","OPTIONS","DELETE"],minTimeout:Kk,statusCodes:[]});setGlobalDispatcher(t);}function Is(e,t,n){let i=e===1?t:`${t}s`;return `${String(e)} ${i}`}var Qk={right:iC,center:oC},eC=0,Os=1,tC=2,ks=3,lm=class{constructor(t){var n;this.width=t.width,this.wrap=(n=t.wrap)!==null&&n!==void 0?n:true,this.rows=[];}span(...t){let n=this.div(...t);n.span=true;}resetOutput(){this.rows=[];}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let n=t.map(i=>typeof i=="string"?this.colFromString(i):i);return this.rows.push(n),n}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let n=t.split(`
65
- `).map(r=>r.split(" ")),i=0;return n.forEach(r=>{r.length>1&&ft.stringWidth(r[0])>i&&(i=Math.min(Math.floor(this.width*.5),ft.stringWidth(r[0])));}),n.forEach(r=>{this.div(...r.map((o,a)=>({text:o.trim(),padding:this.measurePadding(o),width:a===0&&r.length>1?i:void 0})));}),this.rows[this.rows.length-1]}colFromString(t){return {text:t,padding:this.measurePadding(t)}}measurePadding(t){let n=ft.stripAnsi(t);return [0,n.match(/\s*$/)[0].length,0,n.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(n=>{this.rowToString(n,t);}),t.filter(n=>!n.hidden).map(n=>n.text).join(`
66
- `)}rowToString(t,n){return this.rasterize(t).forEach((i,r)=>{let o="";i.forEach((a,s)=>{let{width:c}=t[s],l=this.negatePadding(t[s]),d=a;if(l>ft.stringWidth(a)&&(d+=" ".repeat(l-ft.stringWidth(a))),t[s].align&&t[s].align!=="left"&&this.wrap){let m=Qk[t[s].align];d=m(d,l),ft.stringWidth(d)<l&&(d+=" ".repeat((c||0)-ft.stringWidth(d)-1));}let p=t[s].padding||[0,0,0,0];p[ks]&&(o+=" ".repeat(p[ks])),o+=Wb(t[s],d,"| "),o+=d,o+=Wb(t[s],d," |"),p[Os]&&(o+=" ".repeat(p[Os])),r===0&&n.length>0&&(o=this.renderInline(o,n[n.length-1]));}),n.push({text:o.replace(/ +$/,""),span:t.span});}),n}renderInline(t,n){let i=t.match(/^ */),r=i?i[0].length:0,o=n.text,a=ft.stringWidth(o.trimRight());return n.span?this.wrap?r<a?t:(n.hidden=true,o.trimRight()+" ".repeat(r-a)+t.trimLeft()):(n.hidden=true,o+t):t}rasterize(t){let n=[],i=this.columnWidths(t),r;return t.forEach((o,a)=>{o.width=i[a],this.wrap?r=ft.wrap(o.text,this.negatePadding(o),{hard:true}).split(`
64
+ `)}function dC(e){let t=e.name.trim().split(/\s+/)[0];return t!=null&&t.length>0?t:e.email}var hC=1500,gC=4e3,yC=3,vC=50,bC=100,u_=false;function ym(){if(u_)return;u_=true;let e=new Agent({connections:bC,keepAliveMaxTimeout:gC,keepAliveTimeout:hC}),t=new RetryAgent(e,{errorCodes:["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT","UND_ERR_SOCKET"],maxRetries:yC,methods:["GET","POST","HEAD","OPTIONS","DELETE"],minTimeout:vC,statusCodes:[]});setGlobalDispatcher(t);}async function vm({name:e,organization:t,organizationId:n}){let i=await t.update({data:{name:e},organizationId:n});if(i.error==null)return we(void 0);let{message:r,status:o}=i.error;if(r==null)throw new Error(`Renaming the organization failed with status ${String(o)}.`);return ue({kind:"refused",message:r})}function bm(e){return _C(e)}var _C=e=>eo({baseURL:e.serverUrl,fetchOptions:{auth:{token:e.token,type:"Bearer"},headers:{"User-Agent":"Ripplo CLI"}},plugins:[fm()]});function Ps(e,t,n){let i=e===1?t:`${t}s`;return `${String(e)} ${i}`}var DC={right:$C,center:IC},xC=0,Fs=1,SC=2,Ts=3,_m=class{constructor(t){var n;this.width=t.width,this.wrap=(n=t.wrap)!==null&&n!==void 0?n:true,this.rows=[];}span(...t){let n=this.div(...t);n.span=true;}resetOutput(){this.rows=[];}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let n=t.map(i=>typeof i=="string"?this.colFromString(i):i);return this.rows.push(n),n}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let n=t.split(`
65
+ `).map(r=>r.split(" ")),i=0;return n.forEach(r=>{r.length>1&&mt.stringWidth(r[0])>i&&(i=Math.min(Math.floor(this.width*.5),mt.stringWidth(r[0])));}),n.forEach(r=>{this.div(...r.map((o,a)=>({text:o.trim(),padding:this.measurePadding(o),width:a===0&&r.length>1?i:void 0})));}),this.rows[this.rows.length-1]}colFromString(t){return {text:t,padding:this.measurePadding(t)}}measurePadding(t){let n=mt.stripAnsi(t);return [0,n.match(/\s*$/)[0].length,0,n.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(n=>{this.rowToString(n,t);}),t.filter(n=>!n.hidden).map(n=>n.text).join(`
66
+ `)}rowToString(t,n){return this.rasterize(t).forEach((i,r)=>{let o="";i.forEach((a,s)=>{let{width:c}=t[s],l=this.negatePadding(t[s]),d=a;if(l>mt.stringWidth(a)&&(d+=" ".repeat(l-mt.stringWidth(a))),t[s].align&&t[s].align!=="left"&&this.wrap){let m=DC[t[s].align];d=m(d,l),mt.stringWidth(d)<l&&(d+=" ".repeat((c||0)-mt.stringWidth(d)-1));}let p=t[s].padding||[0,0,0,0];p[Ts]&&(o+=" ".repeat(p[Ts])),o+=c_(t[s],d,"| "),o+=d,o+=c_(t[s],d," |"),p[Fs]&&(o+=" ".repeat(p[Fs])),r===0&&n.length>0&&(o=this.renderInline(o,n[n.length-1]));}),n.push({text:o.replace(/ +$/,""),span:t.span});}),n}renderInline(t,n){let i=t.match(/^ */),r=i?i[0].length:0,o=n.text,a=mt.stringWidth(o.trimRight());return n.span?this.wrap?r<a?t:(n.hidden=true,o.trimRight()+" ".repeat(r-a)+t.trimLeft()):(n.hidden=true,o+t):t}rasterize(t){let n=[],i=this.columnWidths(t),r;return t.forEach((o,a)=>{o.width=i[a],this.wrap?r=mt.wrap(o.text,this.negatePadding(o),{hard:true}).split(`
67
67
  `):r=o.text.split(`
68
- `),o.border&&(r.unshift("."+"-".repeat(this.negatePadding(o)+2)+"."),r.push("'"+"-".repeat(this.negatePadding(o)+2)+"'")),o.padding&&(r.unshift(...new Array(o.padding[eC]||0).fill("")),r.push(...new Array(o.padding[tC]||0).fill(""))),r.forEach((s,c)=>{n[c]||n.push([]);let l=n[c];for(let d=0;d<a;d++)l[d]===void 0&&l.push("");l.push(s);});}),n}negatePadding(t){let n=t.width||0;return t.padding&&(n-=(t.padding[ks]||0)+(t.padding[Os]||0)),t.border&&(n-=4),n}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||ft.stringWidth(a.text));let n=t.length,i=this.width,r=t.map(a=>{if(a.width)return n--,i-=a.width,a.width}),o=n?Math.floor(i/n):0;return r.map((a,s)=>a===void 0?Math.max(o,rC(t[s])):a)}};function Wb(e,t,n){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?n:" ":""}function rC(e){let t=e.padding||[],n=1+(t[ks]||0)+(t[Os]||0);return e.border?n+4:n}function nC(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function iC(e,t){e=e.trim();let n=ft.stringWidth(e);return n<t?" ".repeat(t-n)+e:e}function oC(e,t){e=e.trim();let n=ft.stringWidth(e);return n>=t?e:" ".repeat(t-n>>1)+e}var ft;function Gb(e,t){return ft=t,new lm({width:e?.width||nC(),wrap:e?.wrap})}function dm({onlyFirst:e=false}={}){let r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,e?void 0:"g")}var aC=dm();function Vr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return !e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(aC,"")}var qb=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Hb=12288,Yb=65510,Jb=[12288,12288,65281,65376,65504,65510];var Kb=4352,Xb=262141,pm=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var Cs=(e,t)=>{let n=0,i=Math.floor(e.length/2)-1;for(;n<=i;){let r=Math.floor((n+i)/2),o=r*2;if(t<e[o])i=r-1;else if(t>e[o+1])n=r+1;else return true}return false};var Qb=19968,[cC,lC]=dC(pm);function dC(e){let t=e[0],n=e[1];for(let i=0;i<e.length;i+=2){let r=e[i],o=e[i+1];if(Qb>=r&&Qb<=o)return [r,o];o-r>n-t&&(t=r,n=o);}return [t,n]}var e_=e=>e<161||e>1114109?false:Cs(qb,e),t_=e=>e<Hb||e>Yb?false:Cs(Jb,e);var r_=e=>e>=cC&&e<=lC?true:e<Kb||e>Xb?false:Cs(pm,e);function pC(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function n_(e,{ambiguousAsWide:t=false}={}){return pC(e),t_(e)||r_(e)||t&&e_(e)?2:1}var i_=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var fC=new Intl.Segmenter,mC=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function Ut(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=true,countAnsiEscapeCodes:i=false}=t;if(i||(e=Vr(e)),e.length===0)return 0;let r=0,o={ambiguousAsWide:!n};for(let{segment:a}of fC.segment(e)){let s=a.codePointAt(0);if(!(s<=31||s>=127&&s<=159)&&!(s>=8203&&s<=8207||s===65279)&&!(s>=768&&s<=879||s>=6832&&s<=6911||s>=7616&&s<=7679||s>=8400&&s<=8447||s>=65056&&s<=65071)&&!(s>=55296&&s<=57343)&&!(s>=65024&&s<=65039)&&!mC.test(a)){if(i_().test(a)){r+=2;continue}r+=n_(s,o);}}return r}var o_=(e=0)=>t=>`\x1B[${t+e}m`,a_=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,s_=(e=0)=>(t,n,i)=>`\x1B[${38+e};2;${t};${n};${i}m`,De={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(De.modifier);var hC=Object.keys(De.color),gC=Object.keys(De.bgColor);[...hC,...gC];function vC(){let e=new Map;for(let[t,n]of Object.entries(De)){for(let[i,r]of Object.entries(n))De[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[i]=De[i],e.set(r[0],r[1]);Object.defineProperty(De,t,{value:n,enumerable:false});}return Object.defineProperty(De,"codes",{value:e,enumerable:false}),De.color.close="\x1B[39m",De.bgColor.close="\x1B[49m",De.color.ansi=o_(),De.color.ansi256=a_(),De.color.ansi16m=s_(),De.bgColor.ansi=o_(10),De.bgColor.ansi256=a_(10),De.bgColor.ansi16m=s_(10),Object.defineProperties(De,{rgbToAnsi256:{value(t,n,i){return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},enumerable:false},hexToRgb:{value(t){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!n)return [0,0,0];let[i]=n;i.length===3&&(i=[...i].map(o=>o+o).join(""));let r=Number.parseInt(i,16);return [r>>16&255,r>>8&255,r&255]},enumerable:false},hexToAnsi256:{value:t=>De.rgbToAnsi256(...De.hexToRgb(t)),enumerable:false},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,i,r;if(t>=232)n=((t-232)*10+8)/255,i=n,r=n;else {t-=16;let s=t%36;n=Math.floor(t/36)/5,i=Math.floor(s/6)/5,r=s%6/5;}let o=Math.max(n,i,r)*2;if(o===0)return 30;let a=30+(Math.round(r)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:false},rgbToAnsi:{value:(t,n,i)=>De.ansi256ToAnsi(De.rgbToAnsi256(t,n,i)),enumerable:false},hexToAnsi:{value:t=>De.ansi256ToAnsi(De.hexToAnsi256(t)),enumerable:false}}),De}var yC=vC(),u_=yC;var As=new Set(["\x1B","\x9B"]),bC=39,mm="\x07",d_="[",_C="]",p_="m",Rs=`${_C}8;;`,c_=e=>`${As.values().next().value}${d_}${e}${p_}`,l_=e=>`${As.values().next().value}${Rs}${e}${mm}`,DC=e=>e.split(" ").map(t=>Ut(t)),fm=(e,t,n)=>{let i=[...t],r=false,o=false,a=Ut(Vr(e.at(-1)));for(let[s,c]of i.entries()){let l=Ut(c);if(a+l<=n?e[e.length-1]+=c:(e.push(c),a=0),As.has(c)&&(r=true,o=i.slice(s+1,s+1+Rs.length).join("")===Rs),r){o?c===mm&&(r=false,o=false):c===p_&&(r=false);continue}a+=l,a===n&&s<i.length-1&&(e.push(""),a=0);}!a&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop());},xC=e=>{let t=e.split(" "),n=t.length;for(;n>0&&!(Ut(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")},SC=(e,t,n={})=>{if(n.trim!==false&&e.trim()==="")return "";let i="",r,o,a=DC(e),s=[""];for(let[p,m]of e.split(" ").entries()){n.trim!==false&&(s[s.length-1]=s.at(-1).trimStart());let h=Ut(s.at(-1));if(p!==0&&(h>=t&&(n.wordWrap===false||n.trim===false)&&(s.push(""),h=0),(h>0||n.trim===false)&&(s[s.length-1]+=" ",h++)),n.hard&&a[p]>t){let y=t-h,x=1+Math.floor((a[p]-y-1)/t);Math.floor((a[p]-1)/t)<x&&s.push(""),fm(s,m,t);continue}if(h+a[p]>t&&h>0&&a[p]>0){if(n.wordWrap===false&&h<t){fm(s,m,t);continue}s.push("");}if(h+a[p]>t&&n.wordWrap===false){fm(s,m,t);continue}s[s.length-1]+=m;}n.trim!==false&&(s=s.map(p=>xC(p)));let c=s.join(`
69
- `),l=[...c],d=0;for(let[p,m]of l.entries()){if(i+=m,As.has(m)){let{groups:y}=new RegExp(`(?:\\${d_}(?<code>\\d+)m|\\${Rs}(?<uri>.*)${mm})`).exec(c.slice(d))||{groups:{}};if(y.code!==void 0){let x=Number.parseFloat(y.code);r=x===bC?void 0:x;}else y.uri!==void 0&&(o=y.uri.length===0?void 0:y.uri);}let h=u_.codes.get(Number(r));l[p+1]===`
70
- `?(o&&(i+=l_("")),r&&h&&(i+=c_(h))):m===`
71
- `&&(r&&h&&(i+=c_(r)),o&&(i+=l_(o))),d+=m.length;}return i};function hm(e,t,n){return String(e).normalize().replaceAll(`\r
68
+ `),o.border&&(r.unshift("."+"-".repeat(this.negatePadding(o)+2)+"."),r.push("'"+"-".repeat(this.negatePadding(o)+2)+"'")),o.padding&&(r.unshift(...new Array(o.padding[xC]||0).fill("")),r.push(...new Array(o.padding[SC]||0).fill(""))),r.forEach((s,c)=>{n[c]||n.push([]);let l=n[c];for(let d=0;d<a;d++)l[d]===void 0&&l.push("");l.push(s);});}),n}negatePadding(t){let n=t.width||0;return t.padding&&(n-=(t.padding[Ts]||0)+(t.padding[Fs]||0)),t.border&&(n-=4),n}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||mt.stringWidth(a.text));let n=t.length,i=this.width,r=t.map(a=>{if(a.width)return n--,i-=a.width,a.width}),o=n?Math.floor(i/n):0;return r.map((a,s)=>a===void 0?Math.max(o,EC(t[s])):a)}};function c_(e,t,n){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?n:" ":""}function EC(e){let t=e.padding||[],n=1+(t[Ts]||0)+(t[Fs]||0);return e.border?n+4:n}function wC(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function $C(e,t){e=e.trim();let n=mt.stringWidth(e);return n<t?" ".repeat(t-n)+e:e}function IC(e,t){e=e.trim();let n=mt.stringWidth(e);return n>=t?e:" ".repeat(t-n>>1)+e}var mt;function l_(e,t){return mt=t,new _m({width:e?.width||wC(),wrap:e?.wrap})}function Dm({onlyFirst:e=false}={}){let r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,e?void 0:"g")}var OC=Dm();function Jr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return !e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(OC,"")}var d_=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],p_=12288,f_=65510,m_=[12288,12288,65281,65376,65504,65510];var h_=4352,g_=262141,xm=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var zs=(e,t)=>{let n=0,i=Math.floor(e.length/2)-1;for(;n<=i;){let r=Math.floor((n+i)/2),o=r*2;if(t<e[o])i=r-1;else if(t>e[o+1])n=r+1;else return true}return false};var y_=19968,[AC,RC]=PC(xm);function PC(e){let t=e[0],n=e[1];for(let i=0;i<e.length;i+=2){let r=e[i],o=e[i+1];if(y_>=r&&y_<=o)return [r,o];o-r>n-t&&(t=r,n=o);}return [t,n]}var v_=e=>e<161||e>1114109?false:zs(d_,e),b_=e=>e<p_||e>f_?false:zs(m_,e);var __=e=>e>=AC&&e<=RC?true:e<h_||e>g_?false:zs(xm,e);function FC(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function D_(e,{ambiguousAsWide:t=false}={}){return FC(e),b_(e)||__(e)||t&&v_(e)?2:1}var x_=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var TC=new Intl.Segmenter,zC=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function jt(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=true,countAnsiEscapeCodes:i=false}=t;if(i||(e=Jr(e)),e.length===0)return 0;let r=0,o={ambiguousAsWide:!n};for(let{segment:a}of TC.segment(e)){let s=a.codePointAt(0);if(!(s<=31||s>=127&&s<=159)&&!(s>=8203&&s<=8207||s===65279)&&!(s>=768&&s<=879||s>=6832&&s<=6911||s>=7616&&s<=7679||s>=8400&&s<=8447||s>=65056&&s<=65071)&&!(s>=55296&&s<=57343)&&!(s>=65024&&s<=65039)&&!zC.test(a)){if(x_().test(a)){r+=2;continue}r+=D_(s,o);}}return r}var S_=(e=0)=>t=>`\x1B[${t+e}m`,E_=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,w_=(e=0)=>(t,n,i)=>`\x1B[${38+e};2;${t};${n};${i}m`,xe={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(xe.modifier);var NC=Object.keys(xe.color),UC=Object.keys(xe.bgColor);[...NC,...UC];function jC(){let e=new Map;for(let[t,n]of Object.entries(xe)){for(let[i,r]of Object.entries(n))xe[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[i]=xe[i],e.set(r[0],r[1]);Object.defineProperty(xe,t,{value:n,enumerable:false});}return Object.defineProperty(xe,"codes",{value:e,enumerable:false}),xe.color.close="\x1B[39m",xe.bgColor.close="\x1B[49m",xe.color.ansi=S_(),xe.color.ansi256=E_(),xe.color.ansi16m=w_(),xe.bgColor.ansi=S_(10),xe.bgColor.ansi256=E_(10),xe.bgColor.ansi16m=w_(10),Object.defineProperties(xe,{rgbToAnsi256:{value(t,n,i){return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},enumerable:false},hexToRgb:{value(t){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!n)return [0,0,0];let[i]=n;i.length===3&&(i=[...i].map(o=>o+o).join(""));let r=Number.parseInt(i,16);return [r>>16&255,r>>8&255,r&255]},enumerable:false},hexToAnsi256:{value:t=>xe.rgbToAnsi256(...xe.hexToRgb(t)),enumerable:false},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,i,r;if(t>=232)n=((t-232)*10+8)/255,i=n,r=n;else {t-=16;let s=t%36;n=Math.floor(t/36)/5,i=Math.floor(s/6)/5,r=s%6/5;}let o=Math.max(n,i,r)*2;if(o===0)return 30;let a=30+(Math.round(r)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:false},rgbToAnsi:{value:(t,n,i)=>xe.ansi256ToAnsi(xe.rgbToAnsi256(t,n,i)),enumerable:false},hexToAnsi:{value:t=>xe.ansi256ToAnsi(xe.hexToAnsi256(t)),enumerable:false}}),xe}var LC=jC(),$_=LC;var Us=new Set(["\x1B","\x9B"]),MC=39,Em="\x07",k_="[",BC="]",C_="m",Ns=`${BC}8;;`,I_=e=>`${Us.values().next().value}${k_}${e}${C_}`,O_=e=>`${Us.values().next().value}${Ns}${e}${Em}`,VC=e=>e.split(" ").map(t=>jt(t)),Sm=(e,t,n)=>{let i=[...t],r=false,o=false,a=jt(Jr(e.at(-1)));for(let[s,c]of i.entries()){let l=jt(c);if(a+l<=n?e[e.length-1]+=c:(e.push(c),a=0),Us.has(c)&&(r=true,o=i.slice(s+1,s+1+Ns.length).join("")===Ns),r){o?c===Em&&(r=false,o=false):c===C_&&(r=false);continue}a+=l,a===n&&s<i.length-1&&(e.push(""),a=0);}!a&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop());},ZC=e=>{let t=e.split(" "),n=t.length;for(;n>0&&!(jt(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")},WC=(e,t,n={})=>{if(n.trim!==false&&e.trim()==="")return "";let i="",r,o,a=VC(e),s=[""];for(let[p,m]of e.split(" ").entries()){n.trim!==false&&(s[s.length-1]=s.at(-1).trimStart());let h=jt(s.at(-1));if(p!==0&&(h>=t&&(n.wordWrap===false||n.trim===false)&&(s.push(""),h=0),(h>0||n.trim===false)&&(s[s.length-1]+=" ",h++)),n.hard&&a[p]>t){let v=t-h,x=1+Math.floor((a[p]-v-1)/t);Math.floor((a[p]-1)/t)<x&&s.push(""),Sm(s,m,t);continue}if(h+a[p]>t&&h>0&&a[p]>0){if(n.wordWrap===false&&h<t){Sm(s,m,t);continue}s.push("");}if(h+a[p]>t&&n.wordWrap===false){Sm(s,m,t);continue}s[s.length-1]+=m;}n.trim!==false&&(s=s.map(p=>ZC(p)));let c=s.join(`
69
+ `),l=[...c],d=0;for(let[p,m]of l.entries()){if(i+=m,Us.has(m)){let{groups:v}=new RegExp(`(?:\\${k_}(?<code>\\d+)m|\\${Ns}(?<uri>.*)${Em})`).exec(c.slice(d))||{groups:{}};if(v.code!==void 0){let x=Number.parseFloat(v.code);r=x===MC?void 0:x;}else v.uri!==void 0&&(o=v.uri.length===0?void 0:v.uri);}let h=$_.codes.get(Number(r));l[p+1]===`
70
+ `?(o&&(i+=O_("")),r&&h&&(i+=I_(h))):m===`
71
+ `&&(r&&h&&(i+=I_(r)),o&&(i+=O_(o))),d+=m.length;}return i};function wm(e,t,n){return String(e).normalize().replaceAll(`\r
72
72
  `,`
73
73
  `).split(`
74
- `).map(i=>SC(i,t,n)).join(`
75
- `)}function gm(e){return Gb(e,{stringWidth:Ut,stripAnsi:Vr,wrap:hm})}function h_(e,t){let n=resolve(".",e),i;for(statSync(n).isDirectory()||(n=dirname(n));;){if(i=t(n,readdirSync(n)),i)return resolve(n,i);if(n=dirname(i=n),i===n)break}}function Zr(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let n="",i=false,r=e.match(/^-+/);for(let o=r?r[0].length:0;o<e.length;o++){let a=e.charAt(o);i&&(i=false,a=a.toUpperCase()),o!==0&&(a==="-"||a==="_")?i=true:a!=="-"&&a!=="_"&&(n+=a);}return n}}function Ts(e,t){let n=e.toLowerCase();t=t||"-";let i="";for(let r=0;r<e.length;r++){let o=n.charAt(r),a=e.charAt(r);o!==a&&r>0?i+=`${t}${n.charAt(r)}`:i+=a;}return i}function Fs(e){return e==null?false:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?true:/^0[^.]/.test(e)?false:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function g_(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,n=null,i=null,r=null,o=[];for(let a=0;a<e.length;a++){if(n=i,i=e.charAt(a),i===" "&&!r){n!==" "&&t++;continue}i===r?r=null:(i==="'"||i==='"')&&!r&&(r=i),o[t]||(o[t]=""),o[t]+=i;}return o}var St;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array";})(St||(St={}));var ir,Ps=class{constructor(t){ir=t;}parse(t,n){let i=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},n),r=g_(t),o=typeof t=="string",a=$C(Object.assign(Object.create(null),i.alias)),s=Object.assign({"boolean-negation":true,"camel-case-expansion":true,"combine-arrays":false,"dot-notation":true,"duplicate-arguments-array":true,"flatten-duplicate-arrays":true,"greedy-arrays":true,"halt-at-non-option":false,"nargs-eats-options":false,"negation-prefix":"no-","parse-numbers":true,"parse-positional-numbers":true,"populate--":false,"set-placeholder-key":false,"short-option-groups":true,"strip-aliased":false,"strip-dashed":false,"unknown-options-as-args":false},i.configuration),c=Object.assign(Object.create(null),i.default),l=i.configObjects||[],d=i.envPrefix,p=s["populate--"],m=p?"--":"_",h=Object.create(null),y=Object.create(null),x=i.__||ir.format,b={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},j=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,H=new RegExp("^--"+s["negation-prefix"]+"(.+)");[].concat(i.array||[]).filter(Boolean).forEach(function(g){let D=typeof g=="object"?g.key:g,R=Object.keys(g).map(function(E){return {boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();R&&(b[R][D]=true),b.arrays[D]=true,b.keys.push(D);}),[].concat(i.boolean||[]).filter(Boolean).forEach(function(g){b.bools[g]=true,b.keys.push(g);}),[].concat(i.string||[]).filter(Boolean).forEach(function(g){b.strings[g]=true,b.keys.push(g);}),[].concat(i.number||[]).filter(Boolean).forEach(function(g){b.numbers[g]=true,b.keys.push(g);}),[].concat(i.count||[]).filter(Boolean).forEach(function(g){b.counts[g]=true,b.keys.push(g);}),[].concat(i.normalize||[]).filter(Boolean).forEach(function(g){b.normalize[g]=true,b.keys.push(g);}),typeof i.narg=="object"&&Object.entries(i.narg).forEach(([g,D])=>{typeof D=="number"&&(b.nargs[g]=D,b.keys.push(g));}),typeof i.coerce=="object"&&Object.entries(i.coerce).forEach(([g,D])=>{typeof D=="function"&&(b.coercions[g]=D,b.keys.push(g));}),typeof i.config<"u"&&(Array.isArray(i.config)||typeof i.config=="string"?[].concat(i.config).filter(Boolean).forEach(function(g){b.configs[g]=true;}):typeof i.config=="object"&&Object.entries(i.config).forEach(([g,D])=>{(typeof D=="boolean"||typeof D=="function")&&(b.configs[g]=D);})),kr(i.key,a,i.default,b.arrays),Object.keys(c).forEach(function(g){(b.aliases[g]||[]).forEach(function(D){c[D]=c[g];});});let B=null;go();let A=[],k=Object.assign(Object.create(null),{_:[]}),z={};for(let g=0;g<r.length;g++){let D=r[g],R=D.replace(/^-{3,}/,"---"),E,_,W,U,q,Le;if(D!=="--"&&/^-/.test(D)&&Se(D))re(D);else if(R.match(/^---+(=|$)/)){re(D);continue}else if(D.match(/^--.+=/)||!s["short-option-groups"]&&D.match(/^-.+=/))U=D.match(/^--?([^=]+)=([\s\S]*)$/),U!==null&&Array.isArray(U)&&U.length>=3&&(K(U[1],b.arrays)?g=be(g,U[1],r,U[2]):K(U[1],b.nargs)!==false?g=ce(g,U[1],r,U[2]):ie(U[1],U[2],true));else if(D.match(H)&&s["boolean-negation"])U=D.match(H),U!==null&&Array.isArray(U)&&U.length>=2&&(_=U[1],ie(_,K(_,b.arrays)?[false]:false));else if(D.match(/^--.+/)||!s["short-option-groups"]&&D.match(/^-[^-]+/))U=D.match(/^--?(.+)/),U!==null&&Array.isArray(U)&&U.length>=2&&(_=U[1],K(_,b.arrays)?g=be(g,_,r):K(_,b.nargs)!==false?g=ce(g,_,r):(q=r[g+1],q!==void 0&&(!q.match(/^-/)||q.match(j))&&!K(_,b.bools)&&!K(_,b.counts)||/^(true|false)$/.test(q)?(ie(_,q),g++):ie(_,Ee(_))));else if(D.match(/^-.\..+=/))U=D.match(/^-([^=]+)=([\s\S]*)$/),U!==null&&Array.isArray(U)&&U.length>=3&&ie(U[1],U[2]);else if(D.match(/^-.\..+/)&&!D.match(j))q=r[g+1],U=D.match(/^-(.\..+)/),U!==null&&Array.isArray(U)&&U.length>=2&&(_=U[1],q!==void 0&&!q.match(/^-/)&&!K(_,b.bools)&&!K(_,b.counts)?(ie(_,q),g++):ie(_,Ee(_)));else if(D.match(/^-[^-]+/)&&!D.match(j)){W=D.slice(1,-1).split(""),E=false;for(let Ye=0;Ye<W.length;Ye++){if(q=D.slice(Ye+2),W[Ye+1]&&W[Ye+1]==="="){Le=D.slice(Ye+3),_=W[Ye],K(_,b.arrays)?g=be(g,_,r,Le):K(_,b.nargs)!==false?g=ce(g,_,r,Le):ie(_,Le),E=true;break}if(q==="-"){ie(W[Ye],q);continue}if(/[A-Za-z]/.test(W[Ye])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(q)&&K(q,b.bools)===false){ie(W[Ye],q),E=true;break}if(W[Ye+1]&&W[Ye+1].match(/\W/)){ie(W[Ye],q),E=true;break}else ie(W[Ye],Ee(W[Ye]));}_=D.slice(-1)[0],!E&&_!=="-"&&(K(_,b.arrays)?g=be(g,_,r):K(_,b.nargs)!==false?g=ce(g,_,r):(q=r[g+1],q!==void 0&&(!/^(-|--)[^-]/.test(q)||q.match(j))&&!K(_,b.bools)&&!K(_,b.counts)||/^(true|false)$/.test(q)?(ie(_,q),g++):ie(_,Ee(_))));}else if(D.match(/^-[0-9]$/)&&D.match(j)&&K(D.slice(1),b.bools))_=D.slice(1),ie(_,Ee(_));else if(D==="--"){A=r.slice(g+1);break}else if(s["halt-at-non-option"]){A=r.slice(g);break}else re(D);}se(k,true),se(k,false),V(k),de(),xe(k,b.aliases,c,true),Pe(k),s["set-placeholder-key"]&&Or(k),Object.keys(b.counts).forEach(function(g){Xt(k,g.split("."))||ie(g,0);}),p&&A.length&&(k[m]=[]),A.forEach(function(g){k[m].push(g);}),s["camel-case-expansion"]&&s["strip-dashed"]&&Object.keys(k).filter(g=>g!=="--"&&g.includes("-")).forEach(g=>{delete k[g];}),s["strip-aliased"]&&[].concat(...Object.keys(a).map(g=>a[g])).forEach(g=>{s["camel-case-expansion"]&&g.includes("-")&&delete k[g.split(".").map(D=>Zr(D)).join(".")],delete k[g];});function re(g){let D=T("_",g);(typeof D=="string"||typeof D=="number")&&k._.push(D);}function ce(g,D,R,E){let _,W=K(D,b.nargs);if(W=typeof W!="number"||isNaN(W)?1:W,W===0)return At(E)||(B=Error(x("Argument unexpected for: %s",D))),ie(D,Ee(D)),g;let U=At(E)?0:1;if(s["nargs-eats-options"])R.length-(g+1)+U<W&&(B=Error(x("Not enough arguments following: %s",D))),U=W;else {for(_=g+1;_<R.length&&(!R[_].match(/^-[^0-9]/)||R[_].match(j)||Se(R[_]));_++)U++;U<W&&(B=Error(x("Not enough arguments following: %s",D)));}let q=Math.min(U,W);for(!At(E)&&q>0&&(ie(D,E),q--),_=g+1;_<q+g+1;_++)ie(D,R[_]);return g+q}function be(g,D,R,E){let _=[],W=E||R[g+1],U=K(D,b.nargs);if(K(D,b.bools)&&!/^(true|false)$/.test(W))_.push(true);else if(At(W)||At(E)&&/^-/.test(W)&&!j.test(W)&&!Se(W)){if(c[D]!==void 0){let q=c[D];_=Array.isArray(q)?q:[q];}}else {At(E)||_.push(N(D,E,true));for(let q=g+1;q<R.length&&!(!s["greedy-arrays"]&&_.length>0||U&&typeof U=="number"&&_.length>=U||(W=R[q],/^-/.test(W)&&!j.test(W)&&!Se(W)));q++)g=q,_.push(N(D,W,o));}return typeof U=="number"&&(U&&_.length<U||isNaN(U)&&_.length===0)&&(B=Error(x("Not enough arguments following: %s",D))),ie(D,_),g}function ie(g,D,R=o){if(/-/.test(g)&&s["camel-case-expansion"]){let W=g.split(".").map(function(U){return Zr(U)}).join(".");P(g,W);}let E=N(g,D,R),_=g.split(".");Qt(k,_,E),b.aliases[g]&&b.aliases[g].forEach(function(W){let U=W.split(".");Qt(k,U,E);}),_.length>1&&s["dot-notation"]&&(b.aliases[_[0]]||[]).forEach(function(W){let U=W.split("."),q=[].concat(_);q.shift(),U=U.concat(q),(b.aliases[g]||[]).includes(U.join("."))||Qt(k,U,E);}),K(g,b.normalize)&&!K(g,b.arrays)&&[g].concat(b.aliases[g]||[]).forEach(function(U){Object.defineProperty(z,U,{enumerable:true,get(){return D},set(q){D=typeof q=="string"?ir.normalize(q):q;}});});}function P(g,D){b.aliases[g]&&b.aliases[g].length||(b.aliases[g]=[D],h[D]=true),b.aliases[D]&&b.aliases[D].length||P(D,g);}function N(g,D,R){R&&(D=IC(D)),(K(g,b.bools)||K(g,b.counts))&&typeof D=="string"&&(D=D==="true");let E=Array.isArray(D)?D.map(function(_){return T(g,_)}):T(g,D);return K(g,b.counts)&&(At(E)||typeof E=="boolean")&&(E=vm()),K(g,b.normalize)&&K(g,b.arrays)&&(Array.isArray(D)?E=D.map(_=>ir.normalize(_)):E=ir.normalize(D)),E}function T(g,D){return !s["parse-positional-numbers"]&&g==="_"||!K(g,b.strings)&&!K(g,b.bools)&&!Array.isArray(D)&&(Fs(D)&&s["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${D}`)))||!At(D)&&K(g,b.numbers))&&(D=Number(D)),D}function V(g){let D=Object.create(null);xe(D,b.aliases,c),Object.keys(b.configs).forEach(function(R){let E=g[R]||D[R];if(E)try{let _=null,W=ir.resolve(ir.cwd(),E),U=b.configs[R];if(typeof U=="function"){try{_=U(W);}catch(q){_=q;}if(_ instanceof Error){B=_;return}}else _=ir.require(W);te(_);}catch(_){_.name==="PermissionDenied"?B=_:g[R]&&(B=Error(x("Invalid JSON config file: %s",E)));}});}function te(g,D){Object.keys(g).forEach(function(R){let E=g[R],_=D?D+"."+R:R;typeof E=="object"&&E!==null&&!Array.isArray(E)&&s["dot-notation"]?te(E,_):(!Xt(k,_.split("."))||K(_,b.arrays)&&s["combine-arrays"])&&ie(_,E);});}function de(){typeof l<"u"&&l.forEach(function(g){te(g);});}function se(g,D){if(typeof d>"u")return;let R=typeof d=="string"?d:"",E=ir.env();Object.keys(E).forEach(function(_){if(R===""||_.lastIndexOf(R,0)===0){let W=_.split("__").map(function(U,q){return q===0&&(U=U.substring(R.length)),Zr(U)});(D&&b.configs[W.join(".")]||!D)&&!Xt(g,W)&&ie(W.join("."),E[_]);}});}function Pe(g){let D,R=new Set;Object.keys(g).forEach(function(E){if(!R.has(E)&&(D=K(E,b.coercions),typeof D=="function"))try{let _=T(E,D(g[E]));[].concat(b.aliases[E]||[],E).forEach(W=>{R.add(W),g[W]=_;});}catch(_){B=_;}});}function Or(g){return b.keys.forEach(D=>{~D.indexOf(".")||typeof g[D]>"u"&&(g[D]=void 0);}),g}function xe(g,D,R,E=false){Object.keys(R).forEach(function(_){Xt(g,_.split("."))||(Qt(g,_.split("."),R[_]),E&&(y[_]=true),(D[_]||[]).forEach(function(W){Xt(g,W.split("."))||Qt(g,W.split("."),R[_]);}));});}function Xt(g,D){let R=g;s["dot-notation"]||(D=[D.join(".")]),D.slice(0,-1).forEach(function(_){R=R[_]||{};});let E=D[D.length-1];return typeof R!="object"?false:E in R}function Qt(g,D,R){let E=g;s["dot-notation"]||(D=[D.join(".")]),D.slice(0,-1).forEach(function(Le){Le=v_(Le),typeof E=="object"&&E[Le]===void 0&&(E[Le]={}),typeof E[Le]!="object"||Array.isArray(E[Le])?(Array.isArray(E[Le])?E[Le].push({}):E[Le]=[E[Le],{}],E=E[Le][E[Le].length-1]):E=E[Le];});let _=v_(D[D.length-1]),W=K(D.join("."),b.arrays),U=Array.isArray(R),q=s["duplicate-arguments-array"];!q&&K(_,b.nargs)&&(q=true,(!At(E[_])&&b.nargs[_]===1||Array.isArray(E[_])&&E[_].length===b.nargs[_])&&(E[_]=void 0)),R===vm()?E[_]=vm(E[_]):Array.isArray(E[_])?q&&W&&U?E[_]=s["flatten-duplicate-arrays"]?E[_].concat(R):(Array.isArray(E[_][0])?E[_]:[E[_]]).concat([R]):!q&&!!W==!!U?E[_]=R:E[_]=E[_].concat([R]):E[_]===void 0&&W?E[_]=U?R:[R]:q&&!(E[_]===void 0||K(_,b.counts)||K(_,b.bools))?E[_]=[E[_],R]:E[_]=R;}function kr(...g){g.forEach(function(D){Object.keys(D||{}).forEach(function(R){b.aliases[R]||(b.aliases[R]=[].concat(a[R]||[]),b.aliases[R].concat(R).forEach(function(E){if(/-/.test(E)&&s["camel-case-expansion"]){let _=Zr(E);_!==R&&b.aliases[R].indexOf(_)===-1&&(b.aliases[R].push(_),h[_]=true);}}),b.aliases[R].concat(R).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&s["camel-case-expansion"]){let _=Ts(E,"-");_!==R&&b.aliases[R].indexOf(_)===-1&&(b.aliases[R].push(_),h[_]=true);}}),b.aliases[R].forEach(function(E){b.aliases[E]=[R].concat(b.aliases[R].filter(function(_){return E!==_}));}));});});}function K(g,D){let R=[].concat(b.aliases[g]||[],g),E=Object.keys(D),_=R.find(W=>E.includes(W));return _?D[_]:false}function Su(g){let D=Object.keys(b);return [].concat(D.map(E=>b[E])).some(function(E){return Array.isArray(E)?E.includes(g):E[g]})}function Y(g,...D){return [].concat(...D).some(function(E){let _=g.match(E);return _&&Su(_[1])})}function _e(g){if(g.match(j)||!g.match(/^-[^-]+/))return false;let D=true,R,E=g.slice(1).split("");for(let _=0;_<E.length;_++){if(R=g.slice(_+2),!Su(E[_])){D=false;break}if(E[_+1]&&E[_+1]==="="||R==="-"||/[A-Za-z]/.test(E[_])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(R)||E[_+1]&&E[_+1].match(/\W/))break}return D}function Se(g){return s["unknown-options-as-args"]&&oe(g)}function oe(g){return g=g.replace(/^-{3,}/,"--"),g.match(j)||_e(g)?false:!Y(g,/^-+([^=]+?)=[\s\S]*$/,H,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function Ee(g){return !K(g,b.bools)&&!K(g,b.counts)&&`${g}`in c?c[g]:Ie(Rt(g))}function Ie(g){return {[St.BOOLEAN]:true,[St.STRING]:"",[St.NUMBER]:void 0,[St.ARRAY]:[]}[g]}function Rt(g){let D=St.BOOLEAN;return K(g,b.strings)?D=St.STRING:K(g,b.numbers)?D=St.NUMBER:K(g,b.bools)?D=St.BOOLEAN:K(g,b.arrays)&&(D=St.ARRAY),D}function At(g){return g===void 0}function go(){Object.keys(b.counts).find(g=>K(g,b.arrays)?(B=Error(x("Invalid configuration: %s, opts.count excludes opts.array.",g)),true):K(g,b.nargs)?(B=Error(x("Invalid configuration: %s, opts.count excludes opts.narg.",g)),true):false);}return {aliases:Object.assign({},b.aliases),argv:Object.assign(z,k),configuration:s,defaulted:Object.assign({},y),error:B,newAliases:Object.assign({},h)}}};function $C(e){let t=[],n=Object.create(null),i=true;for(Object.keys(e).forEach(function(r){t.push([].concat(e[r],r));});i;){i=false;for(let r=0;r<t.length;r++)for(let o=r+1;o<t.length;o++)if(t[r].filter(function(s){return t[o].indexOf(s)!==-1}).length){t[r]=t[r].concat(t[o]),t.splice(o,1),i=true;break}}return t.forEach(function(r){r=r.filter(function(a,s,c){return c.indexOf(a)===s});let o=r.pop();o!==void 0&&typeof o=="string"&&(n[o]=r);}),n}function vm(e){return e!==void 0?e+1:1}function v_(e){return e==="__proto__"?"___proto___":e}function IC(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var ym,bm,_m,b_=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,__=(bm=(ym=process==null?void 0:process.versions)===null||ym===void 0?void 0:ym.node)!==null&&bm!==void 0?bm:(_m=process==null?void 0:process.version)===null||_m===void 0?void 0:_m.slice(1);if(__&&Number(__.match(/^([^.]+)/)[1])<b_)throw Error(`yargs parser supports a minimum Node.js version of ${b_}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var AC=process?process.env:{},D_=createRequire$1?createRequire$1(import.meta.url):void 0,x_=new Ps({cwd:process.cwd,env:()=>AC,format:format,normalize:normalize,resolve:resolve,require:e=>{if(typeof D_<"u")return D_(e);if(e.match(/\.json$/))return JSON.parse(readFileSync(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),no=function(t,n){return x_.parse(t.slice(),n).argv};no.detailed=function(e,t){return x_.parse(e.slice(),t)};no.camelCase=Zr;no.decamelize=Ts;no.looksLikeNumber=Fs;var Dm=no;function S_(){return TC()?0:1}function TC(){return FC()&&!process.defaultApp}function FC(){return !!process.versions.electron}function xm(e){return e.slice(S_()+1)}function E_(){return process.argv[S_()]}var w_={fs:{readFileSync:readFileSync,writeFile:writeFile$1},format:format,resolve:resolve,exists:e=>{try{return statSync(e).isFile()}catch{return false}}};var jt,Sm=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:true,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:true,this.cache=Object.create(null),this.writeQueue=[];}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let n=t.shift(),i=function(){};return typeof t[t.length-1]=="function"&&(i=t.pop()),i=i||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][n]&&this.updateFiles?(this.cache[this.locale][n]=n,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i(),jt.format.apply(jt.format,[this.cache[this.locale][n]||n].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),n=t.shift(),i=t.shift(),r=t.shift(),o=function(){};typeof t[t.length-1]=="function"&&(o=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=r===1?n:i;this.cache[this.locale][n]&&(a=this.cache[this.locale][n][r===1?"one":"other"]),!this.cache[this.locale][n]&&this.updateFiles?(this.cache[this.locale][n]={one:n,other:i},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:o})):o();let s=[a];return ~a.indexOf("%d")&&s.push(r),jt.format.apply(jt.format,s.concat(t))}setLocale(t){this.locale=t;}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this.cache[this.locale][n]=t[n]);}_taggedLiteral(t,...n){let i="";return t.forEach(function(r,o){let a=n[o+1];i+=r,typeof a<"u"&&(i+="%s");}),this.__.apply(this,[i].concat([].slice.call(n,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue();}_processWriteQueue(){let t=this,n=this.writeQueue[0],i=n.directory,r=n.locale,o=n.cb,a=this._resolveLocaleFile(i,r),s=JSON.stringify(this.cache[r],null,2);jt.fs.writeFile(a,s,"utf-8",function(c){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(c);});}_readLocaleFile(){let t={},n=this._resolveLocaleFile(this.directory,this.locale);try{jt.fs.readFileSync&&(t=JSON.parse(jt.fs.readFileSync(n,"utf-8")));}catch(i){if(i instanceof SyntaxError&&(i.message="syntax error in "+n),i.code==="ENOENT")t={};else throw i}this.cache[this.locale]=t;}_resolveLocaleFile(t,n){let i=jt.resolve(t,"./",n+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(i)&&~n.lastIndexOf("_")){let r=jt.resolve(t,"./",n.split("_")[0]+".json");this._fileExistsSync(r)&&(i=r);}return i}_fileExistsSync(t){return jt.exists(t)}};function $_(e,t){jt=t;let n=new Sm(e);return {__:n.__.bind(n),__n:n.__n.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),updateLocale:n.updateLocale.bind(n),locale:n.locale}}var LC=e=>$_(e,w_),I_=LC;var A_=c(k_(),1);var Em=fileURLToPath(import.meta.url),XC=Em.substring(0,Em.lastIndexOf("node_modules")),QC=createRequire$1(import.meta.url),wm={assert:{notStrictEqual:notStrictEqual,strictEqual:strictEqual},cliui:gm,findUp:h_,getEnv:e=>process.env[e],inspect:inspect,getProcessArgvBin:E_,mainFilename:XC||process.cwd(),Parser:Dm,path:{basename:basename,dirname:dirname,extname:extname,relative:relative,resolve:resolve,join:join},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:e=>{process.exit(e);},nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:readFileSync,readdirSync:readdirSync,require:QC,getCallerFile:()=>{let e=(0, A_.default)(3);return e.match(/^file:\/\//)?fileURLToPath(e):e},stringWidth:Ut,y18n:I_({directory:resolve(Em,"../../../locales"),updateFiles:false})};function tt(e,t,n,i){n.assert.notStrictEqual(e,t,i);}function $m(e,t){t.assert.strictEqual(typeof e,"string");}function Xn(e){return Object.keys(e)}function ye(e){return !!e&&!!e.then&&typeof e.then=="function"}var Re=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e);}};function br(e){let n=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),i=/\.*[\][<>]/g,r=n.shift();if(!r)throw new Error(`No command found in: ${e}`);let o={cmd:r.replace(i,""),demanded:[],optional:[]};return n.forEach((a,s)=>{let c=false;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&s===n.length-1&&(c=true),/^\[/.test(a)?o.optional.push({cmd:a.replace(i,"").split("|"),variadic:c}):o.demanded.push({cmd:a.replace(i,"").split("|"),variadic:c});}),o}var eR=["first","second","third","fourth","fifth","sixth"];function L(e,t,n){function i(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[br(`cmd ${e}`),t,n]}try{let r=0,[o,a,s]=i(),c=[].slice.call(a);for(;c.length&&c[c.length-1]===void 0;)c.pop();let l=s||c.length;if(l<o.demanded.length)throw new Re(`Not enough arguments provided. Expected ${o.demanded.length} but received ${c.length}.`);let d=o.demanded.length+o.optional.length;if(l>d)throw new Re(`Too many arguments provided. Expected max ${d} but received ${l}.`);o.demanded.forEach(p=>{let m=c.shift(),h=T_(m);p.cmd.filter(x=>x===h||x==="*").length===0&&F_(h,p.cmd,r),r+=1;}),o.optional.forEach(p=>{if(c.length===0)return;let m=c.shift(),h=T_(m);p.cmd.filter(x=>x===h||x==="*").length===0&&F_(h,p.cmd,r),r+=1;});}catch(r){console.warn(r.stack);}}function T_(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function F_(e,t,n){throw new Re(`Invalid ${eR[n]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var Ns=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t;}addMiddleware(t,n,i=true,r=false){if(L("<array|function> [boolean] [boolean] [boolean]",[t,n,i],arguments.length),Array.isArray(t)){for(let o=0;o<t.length;o++){if(typeof t[o]!="function")throw Error("middleware must be a function");let a=t[o];a.applyBeforeValidation=n,a.global=i;}Array.prototype.push.apply(this.globalMiddleware,t);}else if(typeof t=="function"){let o=t;o.applyBeforeValidation=n,o.global=i,o.mutates=r,this.globalMiddleware.push(t);}return this.yargs}addCoerceMiddleware(t,n){let i=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(r=>{let o=[...i[n]||[],n];return r.option?!o.includes(r.option):true}),t.option=n,this.addMiddleware(t,true,true,true)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware]);}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t);}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global);}};function P_(e){return e?e.map(t=>(t.applyBeforeValidation=false,t)):[]}function Wr(e,t,n,i){return n.reduce((r,o)=>{if(o.applyBeforeValidation!==i)return r;if(o.mutates){if(o.applied)return r;o.applied=true;}if(ye(r))return r.then(a=>Promise.all([a,o(a,t)])).then(([a,s])=>Object.assign(a,s));{let a=o(r,t);return ye(a)?a.then(s=>Object.assign(r,s)):Object.assign(r,a)}},e)}function Gr(e,t,n=i=>{throw i}){try{let i=tR(e)?e():e;return ye(i)?i.then(r=>t(r)):t(i)}catch(i){return n(i)}}function tR(e){return typeof e=="function"}var Qn=/(^\*)|(^\$0)/,Im=class{constructor(t,n,i,r){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=r,this.usage=t,this.globalMiddleware=i,this.validation=n;}addDirectory(t,n,i,r){r=r||{},this.requireCache.add(i);let o=this.shim.path.resolve(this.shim.path.dirname(i),t),a=this.shim.readdirSync(o,{recursive:!!r.recurse});Array.isArray(r.extensions)||(r.extensions=["js"]);let s=typeof r.visit=="function"?r.visit:c=>c;for(let c of a){let l=c.toString();if(r.exclude){let p=false;if(typeof r.exclude=="function"?p=r.exclude(l):p=r.exclude.test(l),p)continue}if(r.include){let p=false;if(typeof r.include=="function"?p=r.include(l):p=r.include.test(l),!p)continue}let d=false;for(let p of r.extensions)l.endsWith(p)&&(d=true);if(d){let p=this.shim.path.join(o,l),m=n(p),h=Object.create(null,Object.getOwnPropertyDescriptors({...m}));if(s(h,p,l)){if(this.requireCache.has(p))continue;this.requireCache.add(p),h.command||(h.command=this.shim.path.basename(p,this.shim.path.extname(p))),this.addHandler(h);}}}}addHandler(t,n,i,r,o,a){let s=[],c=P_(o);if(r=r||(()=>{}),Array.isArray(t))if(rR(t))[t,...s]=t;else for(let l of t)this.addHandler(l);else if(iR(t)){let l=Array.isArray(t.command)||typeof t.command=="string"?t.command:null;if(l===null)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);t.aliases&&(l=[].concat(l).concat(t.aliases)),this.addHandler(l,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(N_(i)){this.addHandler([t].concat(s),n,i.builder,i.handler,i.middlewares,i.deprecated);return}if(typeof t=="string"){let l=br(t);s=s.map(m=>br(m).cmd);let d=false,p=[l.cmd].concat(s).filter(m=>Qn.test(m)?(d=true,false):true);p.length===0&&d&&p.push("$0"),d&&(l.cmd=p[0],s=p.slice(1),t=t.replace(Qn,l.cmd)),s.forEach(m=>{this.aliasMap[m]=l.cmd;}),n!==false&&this.usage.command(t,n,d,s,a),this.handlers[l.cmd]={original:t,description:n,handler:r,builder:i||{},middlewares:c,deprecated:a,demanded:l.demanded,optional:l.optional},d&&(this.defaultCommand=this.handlers[l.cmd]);}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return !!this.defaultCommand}runCommand(t,n,i,r,o,a){let s=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,c=n.getInternalMethods().getContext(),l=c.commands.slice(),d=!t;t&&(c.commands.push(t),c.fullCommands.push(s.original));let p=this.applyBuilderUpdateUsageAndParse(d,s,n,i.aliases,l,r,o,a);return ye(p)?p.then(m=>this.applyMiddlewareAndGetResult(d,s,m.innerArgv,c,o,m.aliases,n)):this.applyMiddlewareAndGetResult(d,s,p.innerArgv,c,o,p.aliases,n)}applyBuilderUpdateUsageAndParse(t,n,i,r,o,a,s,c){let l=n.builder,d=i;if(zs(l)){i.getInternalMethods().getUsageInstance().freeze();let p=l(i.getInternalMethods().reset(r),c);if(ye(p))return p.then(m=>(d=U_(m)?m:i,this.parseAndUpdateUsage(t,n,d,o,a,s)))}else nR(l)&&(i.getInternalMethods().getUsageInstance().freeze(),d=i.getInternalMethods().reset(r),Object.keys(n.builder).forEach(p=>{d.option(p,l[p]);}));return this.parseAndUpdateUsage(t,n,d,o,a,s)}parseAndUpdateUsage(t,n,i,r,o,a){t&&i.getInternalMethods().getUsageInstance().unfreeze(true),this.shouldUpdateUsage(i)&&i.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(r,n),n.description);let s=i.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,true,o,a);return ye(s)?s.then(c=>({aliases:i.parsed.aliases,innerArgv:c})):{aliases:i.parsed.aliases,innerArgv:s}}shouldUpdateUsage(t){return !t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,n){let i=Qn.test(n.original)?n.original.replace(Qn,"").trim():n.original,r=t.filter(o=>!Qn.test(o));return r.push(i),`$0 ${r.join(" ")}`}handleValidationAndGetResult(t,n,i,r,o,a,s,c){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(o,c,a.parsed.error,t);i=Gr(i,d=>(l(d),d));}if(n.handler&&!a.getInternalMethods().getHasOutput()){a.getInternalMethods().setHasOutput();let l=!!a.getOptions().configuration["populate--"];a.getInternalMethods().postProcess(i,l,false,false),i=Wr(i,a,s,false),i=Gr(i,d=>{let p=n.handler(d);return ye(p)?p.then(()=>d):d}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),ye(i)&&!a.getInternalMethods().hasParseCallback()&&i.catch(d=>{try{a.getInternalMethods().getUsageInstance().fail(null,d);}catch{}});}return t||(r.commands.pop(),r.fullCommands.pop()),i}applyMiddlewareAndGetResult(t,n,i,r,o,a,s){let c={};if(o)return i;s.getInternalMethods().getHasOutput()||(c=this.populatePositionals(n,i,r,s));let l=this.globalMiddleware.getMiddleware().slice(0).concat(n.middlewares),d=Wr(i,s,l,true);return ye(d)?d.then(p=>this.handleValidationAndGetResult(t,n,p,r,a,s,l,c)):this.handleValidationAndGetResult(t,n,d,r,a,s,l,c)}populatePositionals(t,n,i,r){n._=n._.slice(i.commands.length);let o=t.demanded.slice(0),a=t.optional.slice(0),s={};for(this.validation.positionalCount(o.length,n._.length);o.length;){let c=o.shift();this.populatePositional(c,n,s);}for(;a.length;){let c=a.shift();this.populatePositional(c,n,s);}return n._=i.commands.concat(n._.map(c=>""+c)),this.postProcessPositionals(n,s,this.cmdToParseOptions(t.original),r),s}populatePositional(t,n,i){let r=t.cmd[0];t.variadic?i[r]=n._.splice(0).map(String):n._.length&&(i[r]=[String(n._.shift())]);}cmdToParseOptions(t){let n={array:[],default:{},alias:{},demand:{}},i=br(t);return i.demanded.forEach(r=>{let[o,...a]=r.cmd;r.variadic&&(n.array.push(o),n.default[o]=[]),n.alias[o]=a,n.demand[o]=true;}),i.optional.forEach(r=>{let[o,...a]=r.cmd;r.variadic&&(n.array.push(o),n.default[o]=[]),n.alias[o]=a;}),n}postProcessPositionals(t,n,i,r){let o=Object.assign({},r.getOptions());o.default=Object.assign(i.default,o.default);for(let l of Object.keys(i.alias))o.alias[l]=(o.alias[l]||[]).concat(i.alias[l]);o.array=o.array.concat(i.array),o.config={};let a=[];if(Object.keys(n).forEach(l=>{n[l].map(d=>{o.configuration["unknown-options-as-args"]&&(o.key[l]=true),a.push(`--${l}`),a.push(d);});}),!a.length)return;let s=Object.assign({},o.configuration,{"populate--":false}),c=this.shim.Parser.detailed(a,Object.assign({},o,{configuration:s}));if(c.error)r.getInternalMethods().getUsageInstance().fail(c.error.message,c.error);else {let l=Object.keys(n);Object.keys(n).forEach(d=>{l.push(...c.aliases[d]);}),Object.keys(c.argv).forEach(d=>{l.includes(d)&&(n[d]||(n[d]=c.argv[d]),!this.isInConfigs(r,d)&&!this.isDefaulted(r,d)&&Object.prototype.hasOwnProperty.call(t,d)&&Object.prototype.hasOwnProperty.call(c.argv,d)&&(Array.isArray(t[d])||Array.isArray(c.argv[d]))?t[d]=[].concat(t[d],c.argv[d]):t[d]=c.argv[d]);});}}isDefaulted(t,n){let{default:i}=t.getOptions();return Object.prototype.hasOwnProperty.call(i,n)||Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(n))}isInConfigs(t,n){let{configObjects:i}=t.getOptions();return i.some(r=>Object.prototype.hasOwnProperty.call(r,n))||i.some(r=>Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(n)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let i=Qn.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(i,this.defaultCommand.description);}let n=this.defaultCommand.builder;if(zs(n))return n(t,true);N_(n)||Object.keys(n).forEach(i=>{t.option(i,n[i]);});}extractDesc({describe:t,description:n,desc:i}){for(let r of [t,n,i]){if(typeof r=="string"||r===false)return r;tt(r,true,this.shim);}return false}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand});}unfreeze(){let t=this.frozens.pop();tt(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t;}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function z_(e,t,n,i){return new Im(e,t,n,i)}function N_(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function rR(e){return e.every(t=>typeof t=="string")}function zs(e){return typeof e=="function"}function nR(e){return typeof e=="object"}function iR(e){return typeof e=="object"&&!Array.isArray(e)}function _r(e={},t=()=>true){let n={};return Xn(e).forEach(i=>{t(i,e[i])&&(n[i]=e[i]);}),n}function Dr(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let n=t;n._handle&&n.isTTY&&typeof n._handle.setBlocking=="function"&&n._handle.setBlocking(e);});}function oR(e){return typeof e=="boolean"}function L_(e,t){let n=t.y18n.__,i={},r=[];i.failFn=function(N){r.push(N);};let o=null,a=null,s=true;i.showHelpOnFail=function(N=true,T){let[V,te]=typeof N=="string"?[true,N]:[N,T];return e.getInternalMethods().isGlobalContext()&&(a=te),o=te,s=V,i};let c=false;i.fail=function(N,T){let V=e.getInternalMethods().getLoggerInstance();if(r.length)for(let te=r.length-1;te>=0;--te){let de=r[te];if(oR(de)){if(T)throw T;if(N)throw Error(N)}else de(N,T,i);}else {if(e.getExitProcess()&&Dr(true),!c){c=true,s&&(e.showHelp("error"),V.error()),(N||T)&&V.error(N||T);let te=o||a;te&&((N||T)&&V.error(""),V.error(te));}if(T=T||new Re(N),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,T);throw T}};let l=[],d=false;i.usage=(P,N)=>P===null?(d=true,l=[],i):(d=false,l.push([P,N||""]),i),i.getUsage=()=>l,i.getUsageDisabled=()=>d,i.getPositionalGroupName=()=>n("Positionals:");let p=[];i.example=(P,N)=>{p.push([P,N||""]);};let m=[];i.command=function(N,T,V,te,de=false){V&&(m=m.map(se=>(se[2]=false,se))),m.push([N,T||"",V,te,de]);},i.getCommands=()=>m;let h={};i.describe=function(N,T){Array.isArray(N)?N.forEach(V=>{i.describe(V,T);}):typeof N=="object"?Object.keys(N).forEach(V=>{i.describe(V,N[V]);}):h[N]=T;},i.getDescriptions=()=>h;let y=[];i.epilog=P=>{y.push(P);};let x=false,b;i.wrap=P=>{x=true,b=P;},i.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(x||(b=ce(),x=true),b);let j="__yargsString__:";i.deferY18nLookup=P=>j+P,i.help=function(){if(A)return A;B();let N=e.customScriptName?e.$0:t.path.basename(e.$0),T=e.getDemandedOptions(),V=e.getDemandedCommands(),te=e.getDeprecatedOptions(),de=e.getGroups(),se=e.getOptions(),Pe=[];Pe=Pe.concat(Object.keys(h)),Pe=Pe.concat(Object.keys(T)),Pe=Pe.concat(Object.keys(V)),Pe=Pe.concat(Object.keys(se.default)),Pe=Pe.filter(z),Pe=Object.keys(Pe.reduce((Y,_e)=>(_e!=="_"&&(Y[_e]=true),Y),{}));let Or=i.getWrap(),xe=t.cliui({width:Or,wrap:!!Or});if(!d){if(l.length)l.forEach(Y=>{xe.div({text:`${Y[0].replace(/\$0/g,N)}`}),Y[1]&&xe.div({text:`${Y[1]}`,padding:[1,0,0,0]});}),xe.div();else if(m.length){let Y=null;V._?Y=`${N} <${n("command")}>
76
- `:Y=`${N} [${n("command")}]
77
- `,xe.div(`${Y}`);}}if(m.length>1||m.length===1&&!m[0][2]){xe.div(n("Commands:"));let Y=e.getInternalMethods().getContext(),_e=Y.commands.length?`${Y.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===true&&(m=m.sort((oe,Ee)=>oe[0].localeCompare(Ee[0])));let Se=N?`${N} `:"";m.forEach(oe=>{let Ee=`${Se}${_e}${oe[0].replace(/^\$0 ?/,"")}`;xe.span({text:Ee,padding:[0,2,0,2],width:H(m,Or,`${N}${_e}`)+4},{text:oe[1]});let Ie=[];oe[2]&&Ie.push(`[${n("default")}]`),oe[3]&&oe[3].length&&Ie.push(`[${n("aliases:")} ${oe[3].join(", ")}]`),oe[4]&&(typeof oe[4]=="string"?Ie.push(`[${n("deprecated: %s",oe[4])}]`):Ie.push(`[${n("deprecated")}]`)),Ie.length?xe.div({text:Ie.join(" "),padding:[0,0,0,2],align:"right"}):xe.div();}),xe.div();}let Xt=(Object.keys(se.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Pe=Pe.filter(Y=>!e.parsed.newAliases[Y]&&Xt.every(_e=>(se.alias[_e]||[]).indexOf(Y)===-1));let Qt=n("Options:");de[Qt]||(de[Qt]=[]),k(Pe,se.alias,de,Qt);let kr=Y=>/^--/.test(Us(Y)),K=Object.keys(de).filter(Y=>de[Y].length>0).map(Y=>{let _e=de[Y].filter(z).map(Se=>{if(Xt.includes(Se))return Se;for(let oe=0,Ee;(Ee=Xt[oe])!==void 0;oe++)if((se.alias[Ee]||[]).includes(Se))return Ee;return Se});return {groupName:Y,normalizedKeys:_e}}).filter(({normalizedKeys:Y})=>Y.length>0).map(({groupName:Y,normalizedKeys:_e})=>{let Se=_e.reduce((oe,Ee)=>(oe[Ee]=[Ee].concat(se.alias[Ee]||[]).map(Ie=>Y===i.getPositionalGroupName()?Ie:(/^[0-9]$/.test(Ie)?se.boolean.includes(Ee)?"-":"--":Ie.length>1?"--":"-")+Ie).sort((Ie,Rt)=>kr(Ie)===kr(Rt)?0:kr(Ie)?1:-1).join(", "),oe),{});return {groupName:Y,normalizedKeys:_e,switches:Se}});if(K.filter(({groupName:Y})=>Y!==i.getPositionalGroupName()).some(({normalizedKeys:Y,switches:_e})=>!Y.every(Se=>kr(_e[Se])))&&K.filter(({groupName:Y})=>Y!==i.getPositionalGroupName()).forEach(({normalizedKeys:Y,switches:_e})=>{Y.forEach(Se=>{kr(_e[Se])&&(_e[Se]=aR(_e[Se],4));});}),K.forEach(({groupName:Y,normalizedKeys:_e,switches:Se})=>{xe.div(Y),_e.forEach(oe=>{let Ee=Se[oe],Ie=h[oe]||"",Rt=null;Ie.includes(j)&&(Ie=n(Ie.substring(j.length))),se.boolean.includes(oe)&&(Rt=`[${n("boolean")}]`),se.count.includes(oe)&&(Rt=`[${n("count")}]`),se.string.includes(oe)&&(Rt=`[${n("string")}]`),se.normalize.includes(oe)&&(Rt=`[${n("string")}]`),se.array.includes(oe)&&(Rt=`[${n("array")}]`),se.number.includes(oe)&&(Rt=`[${n("number")}]`);let At=D=>typeof D=="string"?`[${n("deprecated: %s",D)}]`:`[${n("deprecated")}]`,go=[oe in te?At(te[oe]):null,Rt,oe in T?`[${n("required")}]`:null,se.choices&&se.choices[oe]?`[${n("choices:")} ${i.stringifiedValues(se.choices[oe])}]`:null,re(se.default[oe],se.defaultDescription[oe])].filter(Boolean).join(" ");xe.span({text:Us(Ee),padding:[0,2,0,2+j_(Ee)],width:H(Se,Or)+4},Ie);let g=e.getInternalMethods().getUsageConfiguration()["hide-types"]===true;go&&!g?xe.div({text:go,padding:[0,0,0,2],align:"right"}):xe.div();}),xe.div();}),p.length&&(xe.div(n("Examples:")),p.forEach(Y=>{Y[0]=Y[0].replace(/\$0/g,N);}),p.forEach(Y=>{Y[1]===""?xe.div({text:Y[0],padding:[0,2,0,2]}):xe.div({text:Y[0],padding:[0,2,0,2],width:H(p,Or)+4},{text:Y[1]});}),xe.div()),y.length>0){let Y=y.map(_e=>_e.replace(/\$0/g,N)).join(`
78
- `);xe.div(`${Y}
79
- `);}return xe.toString().replace(/\s*$/,"")};function H(P,N,T){let V=0;return Array.isArray(P)||(P=Object.values(P).map(te=>[te])),P.forEach(te=>{V=Math.max(t.stringWidth(T?`${T} ${Us(te[0])}`:Us(te[0]))+j_(te[0]),V);}),N&&(V=Math.min(V,parseInt((N*.5).toString(),10))),V}function B(){let P=e.getDemandedOptions(),N=e.getOptions();(Object.keys(N.alias)||[]).forEach(T=>{N.alias[T].forEach(V=>{h[V]&&i.describe(T,h[V]),V in P&&e.demandOption(T,P[V]),N.boolean.includes(V)&&e.boolean(T),N.count.includes(V)&&e.count(T),N.string.includes(V)&&e.string(T),N.normalize.includes(V)&&e.normalize(T),N.array.includes(V)&&e.array(T),N.number.includes(V)&&e.number(T);});});}let A;i.cacheHelpMessage=function(){A=this.help();},i.clearCachedHelpMessage=function(){A=void 0;},i.hasCachedHelpMessage=function(){return !!A};function k(P,N,T,V){let te=[],de=null;return Object.keys(T).forEach(se=>{te=te.concat(T[se]);}),P.forEach(se=>{de=[se].concat(N[se]),de.some(Pe=>te.indexOf(Pe)!==-1)||T[V].push(se);}),te}function z(P){return e.getOptions().hiddenOptions.indexOf(P)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}i.showHelp=P=>{let N=e.getInternalMethods().getLoggerInstance();P||(P="error"),(typeof P=="function"?P:N[P])(i.help());},i.functionDescription=P=>["(",P.name?t.Parser.decamelize(P.name,"-"):n("generated-value"),")"].join(""),i.stringifiedValues=function(N,T){let V="",te=T||", ",de=[].concat(N);return !N||!de.length||de.forEach(se=>{V.length&&(V+=te),V+=JSON.stringify(se);}),V};function re(P,N){let T=`[${n("default:")} `;if(P===void 0&&!N)return null;if(N)T+=N;else switch(typeof P){case "string":T+=`"${P}"`;break;case "object":T+=JSON.stringify(P);break;default:T+=P;}return `${T}]`}function ce(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let be=null;i.version=P=>{be=P;},i.showVersion=P=>{let N=e.getInternalMethods().getLoggerInstance();P||(P="error"),(typeof P=="function"?P:N[P])(be);},i.reset=function(N){return o=null,c=false,l=[],d=false,y=[],p=[],m=[],h=_r(h,T=>!N[T]),i};let ie=[];return i.freeze=function(){ie.push({failMessage:o,failureOutput:c,usages:l,usageDisabled:d,epilogs:y,examples:p,commands:m,descriptions:h});},i.unfreeze=function(N=false){let T=ie.pop();T&&(N?(h={...T.descriptions,...h},m=[...T.commands,...m],l=[...T.usages,...l],p=[...T.examples,...p],y=[...T.epilogs,...y]):{failMessage:o,failureOutput:c,usages:l,usageDisabled:d,epilogs:y,examples:p,commands:m,descriptions:h}=T);},i}function Om(e){return typeof e=="object"}function aR(e,t){return Om(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}function j_(e){return Om(e)?e.indentation:0}function Us(e){return Om(e)?e.text:e}var M_=`###-begin-{{app_name}}-completions-###
74
+ `).map(i=>WC(i,t,n)).join(`
75
+ `)}function $m(e){return l_(e,{stringWidth:jt,stripAnsi:Jr,wrap:wm})}function P_(e,t){let n=resolve(".",e),i;for(statSync(n).isDirectory()||(n=dirname(n));;){if(i=t(n,readdirSync(n)),i)return resolve(n,i);if(n=dirname(i=n),i===n)break}}function Kr(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let n="",i=false,r=e.match(/^-+/);for(let o=r?r[0].length:0;o<e.length;o++){let a=e.charAt(o);i&&(i=false,a=a.toUpperCase()),o!==0&&(a==="-"||a==="_")?i=true:a!=="-"&&a!=="_"&&(n+=a);}return n}}function js(e,t){let n=e.toLowerCase();t=t||"-";let i="";for(let r=0;r<e.length;r++){let o=n.charAt(r),a=e.charAt(r);o!==a&&r>0?i+=`${t}${n.charAt(r)}`:i+=a;}return i}function Ls(e){return e==null?false:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?true:/^0[^.]/.test(e)?false:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function F_(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,n=null,i=null,r=null,o=[];for(let a=0;a<e.length;a++){if(n=i,i=e.charAt(a),i===" "&&!r){n!==" "&&t++;continue}i===r?r=null:(i==="'"||i==='"')&&!r&&(r=i),o[t]||(o[t]=""),o[t]+=i;}return o}var xt;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array";})(xt||(xt={}));var ur,Ms=class{constructor(t){ur=t;}parse(t,n){let i=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},n),r=F_(t),o=typeof t=="string",a=HC(Object.assign(Object.create(null),i.alias)),s=Object.assign({"boolean-negation":true,"camel-case-expansion":true,"combine-arrays":false,"dot-notation":true,"duplicate-arguments-array":true,"flatten-duplicate-arrays":true,"greedy-arrays":true,"halt-at-non-option":false,"nargs-eats-options":false,"negation-prefix":"no-","parse-numbers":true,"parse-positional-numbers":true,"populate--":false,"set-placeholder-key":false,"short-option-groups":true,"strip-aliased":false,"strip-dashed":false,"unknown-options-as-args":false},i.configuration),c=Object.assign(Object.create(null),i.default),l=i.configObjects||[],d=i.envPrefix,p=s["populate--"],m=p?"--":"_",h=Object.create(null),v=Object.create(null),x=i.__||ur.format,b={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},j=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,H=new RegExp("^--"+s["negation-prefix"]+"(.+)");[].concat(i.array||[]).filter(Boolean).forEach(function(g){let D=typeof g=="object"?g.key:g,A=Object.keys(g).map(function(E){return {boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();A&&(b[A][D]=true),b.arrays[D]=true,b.keys.push(D);}),[].concat(i.boolean||[]).filter(Boolean).forEach(function(g){b.bools[g]=true,b.keys.push(g);}),[].concat(i.string||[]).filter(Boolean).forEach(function(g){b.strings[g]=true,b.keys.push(g);}),[].concat(i.number||[]).filter(Boolean).forEach(function(g){b.numbers[g]=true,b.keys.push(g);}),[].concat(i.count||[]).filter(Boolean).forEach(function(g){b.counts[g]=true,b.keys.push(g);}),[].concat(i.normalize||[]).filter(Boolean).forEach(function(g){b.normalize[g]=true,b.keys.push(g);}),typeof i.narg=="object"&&Object.entries(i.narg).forEach(([g,D])=>{typeof D=="number"&&(b.nargs[g]=D,b.keys.push(g));}),typeof i.coerce=="object"&&Object.entries(i.coerce).forEach(([g,D])=>{typeof D=="function"&&(b.coercions[g]=D,b.keys.push(g));}),typeof i.config<"u"&&(Array.isArray(i.config)||typeof i.config=="string"?[].concat(i.config).filter(Boolean).forEach(function(g){b.configs[g]=true;}):typeof i.config=="object"&&Object.entries(i.config).forEach(([g,D])=>{(typeof D=="boolean"||typeof D=="function")&&(b.configs[g]=D);})),Nr(i.key,a,i.default,b.arrays),Object.keys(c).forEach(function(g){(b.aliases[g]||[]).forEach(function(D){c[D]=c[g];});});let B=null;bo();let R=[],k=Object.assign(Object.create(null),{_:[]}),N={};for(let g=0;g<r.length;g++){let D=r[g],A=D.replace(/^-{3,}/,"---"),E,_,W,U,q,Be;if(D!=="--"&&/^-/.test(D)&&$e(D))re(D);else if(A.match(/^---+(=|$)/)){re(D);continue}else if(D.match(/^--.+=/)||!s["short-option-groups"]&&D.match(/^-.+=/))U=D.match(/^--?([^=]+)=([\s\S]*)$/),U!==null&&Array.isArray(U)&&U.length>=3&&(K(U[1],b.arrays)?g=_e(g,U[1],r,U[2]):K(U[1],b.nargs)!==false?g=ce(g,U[1],r,U[2]):ie(U[1],U[2],true));else if(D.match(H)&&s["boolean-negation"])U=D.match(H),U!==null&&Array.isArray(U)&&U.length>=2&&(_=U[1],ie(_,K(_,b.arrays)?[false]:false));else if(D.match(/^--.+/)||!s["short-option-groups"]&&D.match(/^-[^-]+/))U=D.match(/^--?(.+)/),U!==null&&Array.isArray(U)&&U.length>=2&&(_=U[1],K(_,b.arrays)?g=_e(g,_,r):K(_,b.nargs)!==false?g=ce(g,_,r):(q=r[g+1],q!==void 0&&(!q.match(/^-/)||q.match(j))&&!K(_,b.bools)&&!K(_,b.counts)||/^(true|false)$/.test(q)?(ie(_,q),g++):ie(_,Ie(_))));else if(D.match(/^-.\..+=/))U=D.match(/^-([^=]+)=([\s\S]*)$/),U!==null&&Array.isArray(U)&&U.length>=3&&ie(U[1],U[2]);else if(D.match(/^-.\..+/)&&!D.match(j))q=r[g+1],U=D.match(/^-(.\..+)/),U!==null&&Array.isArray(U)&&U.length>=2&&(_=U[1],q!==void 0&&!q.match(/^-/)&&!K(_,b.bools)&&!K(_,b.counts)?(ie(_,q),g++):ie(_,Ie(_)));else if(D.match(/^-[^-]+/)&&!D.match(j)){W=D.slice(1,-1).split(""),E=false;for(let Je=0;Je<W.length;Je++){if(q=D.slice(Je+2),W[Je+1]&&W[Je+1]==="="){Be=D.slice(Je+3),_=W[Je],K(_,b.arrays)?g=_e(g,_,r,Be):K(_,b.nargs)!==false?g=ce(g,_,r,Be):ie(_,Be),E=true;break}if(q==="-"){ie(W[Je],q);continue}if(/[A-Za-z]/.test(W[Je])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(q)&&K(q,b.bools)===false){ie(W[Je],q),E=true;break}if(W[Je+1]&&W[Je+1].match(/\W/)){ie(W[Je],q),E=true;break}else ie(W[Je],Ie(W[Je]));}_=D.slice(-1)[0],!E&&_!=="-"&&(K(_,b.arrays)?g=_e(g,_,r):K(_,b.nargs)!==false?g=ce(g,_,r):(q=r[g+1],q!==void 0&&(!/^(-|--)[^-]/.test(q)||q.match(j))&&!K(_,b.bools)&&!K(_,b.counts)||/^(true|false)$/.test(q)?(ie(_,q),g++):ie(_,Ie(_))));}else if(D.match(/^-[0-9]$/)&&D.match(j)&&K(D.slice(1),b.bools))_=D.slice(1),ie(_,Ie(_));else if(D==="--"){R=r.slice(g+1);break}else if(s["halt-at-non-option"]){R=r.slice(g);break}else re(D);}se(k,true),se(k,false),V(k),de(),Ee(k,b.aliases,c,true),Ue(k),s["set-placeholder-key"]&&zr(k),Object.keys(b.counts).forEach(function(g){rr(k,g.split("."))||ie(g,0);}),p&&R.length&&(k[m]=[]),R.forEach(function(g){k[m].push(g);}),s["camel-case-expansion"]&&s["strip-dashed"]&&Object.keys(k).filter(g=>g!=="--"&&g.includes("-")).forEach(g=>{delete k[g];}),s["strip-aliased"]&&[].concat(...Object.keys(a).map(g=>a[g])).forEach(g=>{s["camel-case-expansion"]&&g.includes("-")&&delete k[g.split(".").map(D=>Kr(D)).join(".")],delete k[g];});function re(g){let D=P("_",g);(typeof D=="string"||typeof D=="number")&&k._.push(D);}function ce(g,D,A,E){let _,W=K(D,b.nargs);if(W=typeof W!="number"||isNaN(W)?1:W,W===0)return Pt(E)||(B=Error(x("Argument unexpected for: %s",D))),ie(D,Ie(D)),g;let U=Pt(E)?0:1;if(s["nargs-eats-options"])A.length-(g+1)+U<W&&(B=Error(x("Not enough arguments following: %s",D))),U=W;else {for(_=g+1;_<A.length&&(!A[_].match(/^-[^0-9]/)||A[_].match(j)||$e(A[_]));_++)U++;U<W&&(B=Error(x("Not enough arguments following: %s",D)));}let q=Math.min(U,W);for(!Pt(E)&&q>0&&(ie(D,E),q--),_=g+1;_<q+g+1;_++)ie(D,A[_]);return g+q}function _e(g,D,A,E){let _=[],W=E||A[g+1],U=K(D,b.nargs);if(K(D,b.bools)&&!/^(true|false)$/.test(W))_.push(true);else if(Pt(W)||Pt(E)&&/^-/.test(W)&&!j.test(W)&&!$e(W)){if(c[D]!==void 0){let q=c[D];_=Array.isArray(q)?q:[q];}}else {Pt(E)||_.push(z(D,E,true));for(let q=g+1;q<A.length&&!(!s["greedy-arrays"]&&_.length>0||U&&typeof U=="number"&&_.length>=U||(W=A[q],/^-/.test(W)&&!j.test(W)&&!$e(W)));q++)g=q,_.push(z(D,W,o));}return typeof U=="number"&&(U&&_.length<U||isNaN(U)&&_.length===0)&&(B=Error(x("Not enough arguments following: %s",D))),ie(D,_),g}function ie(g,D,A=o){if(/-/.test(g)&&s["camel-case-expansion"]){let W=g.split(".").map(function(U){return Kr(U)}).join(".");T(g,W);}let E=z(g,D,A),_=g.split(".");nr(k,_,E),b.aliases[g]&&b.aliases[g].forEach(function(W){let U=W.split(".");nr(k,U,E);}),_.length>1&&s["dot-notation"]&&(b.aliases[_[0]]||[]).forEach(function(W){let U=W.split("."),q=[].concat(_);q.shift(),U=U.concat(q),(b.aliases[g]||[]).includes(U.join("."))||nr(k,U,E);}),K(g,b.normalize)&&!K(g,b.arrays)&&[g].concat(b.aliases[g]||[]).forEach(function(U){Object.defineProperty(N,U,{enumerable:true,get(){return D},set(q){D=typeof q=="string"?ur.normalize(q):q;}});});}function T(g,D){b.aliases[g]&&b.aliases[g].length||(b.aliases[g]=[D],h[D]=true),b.aliases[D]&&b.aliases[D].length||T(D,g);}function z(g,D,A){A&&(D=YC(D)),(K(g,b.bools)||K(g,b.counts))&&typeof D=="string"&&(D=D==="true");let E=Array.isArray(D)?D.map(function(_){return P(g,_)}):P(g,D);return K(g,b.counts)&&(Pt(E)||typeof E=="boolean")&&(E=Im()),K(g,b.normalize)&&K(g,b.arrays)&&(Array.isArray(D)?E=D.map(_=>ur.normalize(_)):E=ur.normalize(D)),E}function P(g,D){return !s["parse-positional-numbers"]&&g==="_"||!K(g,b.strings)&&!K(g,b.bools)&&!Array.isArray(D)&&(Ls(D)&&s["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${D}`)))||!Pt(D)&&K(g,b.numbers))&&(D=Number(D)),D}function V(g){let D=Object.create(null);Ee(D,b.aliases,c),Object.keys(b.configs).forEach(function(A){let E=g[A]||D[A];if(E)try{let _=null,W=ur.resolve(ur.cwd(),E),U=b.configs[A];if(typeof U=="function"){try{_=U(W);}catch(q){_=q;}if(_ instanceof Error){B=_;return}}else _=ur.require(W);te(_);}catch(_){_.name==="PermissionDenied"?B=_:g[A]&&(B=Error(x("Invalid JSON config file: %s",E)));}});}function te(g,D){Object.keys(g).forEach(function(A){let E=g[A],_=D?D+"."+A:A;typeof E=="object"&&E!==null&&!Array.isArray(E)&&s["dot-notation"]?te(E,_):(!rr(k,_.split("."))||K(_,b.arrays)&&s["combine-arrays"])&&ie(_,E);});}function de(){typeof l<"u"&&l.forEach(function(g){te(g);});}function se(g,D){if(typeof d>"u")return;let A=typeof d=="string"?d:"",E=ur.env();Object.keys(E).forEach(function(_){if(A===""||_.lastIndexOf(A,0)===0){let W=_.split("__").map(function(U,q){return q===0&&(U=U.substring(A.length)),Kr(U)});(D&&b.configs[W.join(".")]||!D)&&!rr(g,W)&&ie(W.join("."),E[_]);}});}function Ue(g){let D,A=new Set;Object.keys(g).forEach(function(E){if(!A.has(E)&&(D=K(E,b.coercions),typeof D=="function"))try{let _=P(E,D(g[E]));[].concat(b.aliases[E]||[],E).forEach(W=>{A.add(W),g[W]=_;});}catch(_){B=_;}});}function zr(g){return b.keys.forEach(D=>{~D.indexOf(".")||typeof g[D]>"u"&&(g[D]=void 0);}),g}function Ee(g,D,A,E=false){Object.keys(A).forEach(function(_){rr(g,_.split("."))||(nr(g,_.split("."),A[_]),E&&(v[_]=true),(D[_]||[]).forEach(function(W){rr(g,W.split("."))||nr(g,W.split("."),A[_]);}));});}function rr(g,D){let A=g;s["dot-notation"]||(D=[D.join(".")]),D.slice(0,-1).forEach(function(_){A=A[_]||{};});let E=D[D.length-1];return typeof A!="object"?false:E in A}function nr(g,D,A){let E=g;s["dot-notation"]||(D=[D.join(".")]),D.slice(0,-1).forEach(function(Be){Be=T_(Be),typeof E=="object"&&E[Be]===void 0&&(E[Be]={}),typeof E[Be]!="object"||Array.isArray(E[Be])?(Array.isArray(E[Be])?E[Be].push({}):E[Be]=[E[Be],{}],E=E[Be][E[Be].length-1]):E=E[Be];});let _=T_(D[D.length-1]),W=K(D.join("."),b.arrays),U=Array.isArray(A),q=s["duplicate-arguments-array"];!q&&K(_,b.nargs)&&(q=true,(!Pt(E[_])&&b.nargs[_]===1||Array.isArray(E[_])&&E[_].length===b.nargs[_])&&(E[_]=void 0)),A===Im()?E[_]=Im(E[_]):Array.isArray(E[_])?q&&W&&U?E[_]=s["flatten-duplicate-arrays"]?E[_].concat(A):(Array.isArray(E[_][0])?E[_]:[E[_]]).concat([A]):!q&&!!W==!!U?E[_]=A:E[_]=E[_].concat([A]):E[_]===void 0&&W?E[_]=U?A:[A]:q&&!(E[_]===void 0||K(_,b.counts)||K(_,b.bools))?E[_]=[E[_],A]:E[_]=A;}function Nr(...g){g.forEach(function(D){Object.keys(D||{}).forEach(function(A){b.aliases[A]||(b.aliases[A]=[].concat(a[A]||[]),b.aliases[A].concat(A).forEach(function(E){if(/-/.test(E)&&s["camel-case-expansion"]){let _=Kr(E);_!==A&&b.aliases[A].indexOf(_)===-1&&(b.aliases[A].push(_),h[_]=true);}}),b.aliases[A].concat(A).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&s["camel-case-expansion"]){let _=js(E,"-");_!==A&&b.aliases[A].indexOf(_)===-1&&(b.aliases[A].push(_),h[_]=true);}}),b.aliases[A].forEach(function(E){b.aliases[E]=[A].concat(b.aliases[A].filter(function(_){return E!==_}));}));});});}function K(g,D){let A=[].concat(b.aliases[g]||[],g),E=Object.keys(D),_=A.find(W=>E.includes(W));return _?D[_]:false}function Ou(g){let D=Object.keys(b);return [].concat(D.map(E=>b[E])).some(function(E){return Array.isArray(E)?E.includes(g):E[g]})}function Y(g,...D){return [].concat(...D).some(function(E){let _=g.match(E);return _&&Ou(_[1])})}function De(g){if(g.match(j)||!g.match(/^-[^-]+/))return false;let D=true,A,E=g.slice(1).split("");for(let _=0;_<E.length;_++){if(A=g.slice(_+2),!Ou(E[_])){D=false;break}if(E[_+1]&&E[_+1]==="="||A==="-"||/[A-Za-z]/.test(E[_])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(A)||E[_+1]&&E[_+1].match(/\W/))break}return D}function $e(g){return s["unknown-options-as-args"]&&oe(g)}function oe(g){return g=g.replace(/^-{3,}/,"--"),g.match(j)||De(g)?false:!Y(g,/^-+([^=]+?)=[\s\S]*$/,H,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function Ie(g){return !K(g,b.bools)&&!K(g,b.counts)&&`${g}`in c?c[g]:Ce(Rt(g))}function Ce(g){return {[xt.BOOLEAN]:true,[xt.STRING]:"",[xt.NUMBER]:void 0,[xt.ARRAY]:[]}[g]}function Rt(g){let D=xt.BOOLEAN;return K(g,b.strings)?D=xt.STRING:K(g,b.numbers)?D=xt.NUMBER:K(g,b.bools)?D=xt.BOOLEAN:K(g,b.arrays)&&(D=xt.ARRAY),D}function Pt(g){return g===void 0}function bo(){Object.keys(b.counts).find(g=>K(g,b.arrays)?(B=Error(x("Invalid configuration: %s, opts.count excludes opts.array.",g)),true):K(g,b.nargs)?(B=Error(x("Invalid configuration: %s, opts.count excludes opts.narg.",g)),true):false);}return {aliases:Object.assign({},b.aliases),argv:Object.assign(N,k),configuration:s,defaulted:Object.assign({},v),error:B,newAliases:Object.assign({},h)}}};function HC(e){let t=[],n=Object.create(null),i=true;for(Object.keys(e).forEach(function(r){t.push([].concat(e[r],r));});i;){i=false;for(let r=0;r<t.length;r++)for(let o=r+1;o<t.length;o++)if(t[r].filter(function(s){return t[o].indexOf(s)!==-1}).length){t[r]=t[r].concat(t[o]),t.splice(o,1),i=true;break}}return t.forEach(function(r){r=r.filter(function(a,s,c){return c.indexOf(a)===s});let o=r.pop();o!==void 0&&typeof o=="string"&&(n[o]=r);}),n}function Im(e){return e!==void 0?e+1:1}function T_(e){return e==="__proto__"?"___proto___":e}function YC(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var Om,km,Cm,N_=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,U_=(km=(Om=process==null?void 0:process.versions)===null||Om===void 0?void 0:Om.node)!==null&&km!==void 0?km:(Cm=process==null?void 0:process.version)===null||Cm===void 0?void 0:Cm.slice(1);if(U_&&Number(U_.match(/^([^.]+)/)[1])<N_)throw Error(`yargs parser supports a minimum Node.js version of ${N_}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var eA=process?process.env:{},j_=createRequire$1?createRequire$1(import.meta.url):void 0,L_=new Ms({cwd:process.cwd,env:()=>eA,format:format,normalize:normalize,resolve:resolve,require:e=>{if(typeof j_<"u")return j_(e);if(e.match(/\.json$/))return JSON.parse(readFileSync(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),oo=function(t,n){return L_.parse(t.slice(),n).argv};oo.detailed=function(e,t){return L_.parse(e.slice(),t)};oo.camelCase=Kr;oo.decamelize=js;oo.looksLikeNumber=Ls;var Am=oo;function M_(){return tA()?0:1}function tA(){return rA()&&!process.defaultApp}function rA(){return !!process.versions.electron}function Rm(e){return e.slice(M_()+1)}function B_(){return process.argv[M_()]}var V_={fs:{readFileSync:readFileSync,writeFile:writeFile$1},format:format,resolve:resolve,exists:e=>{try{return statSync(e).isFile()}catch{return false}}};var Lt,Pm=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:true,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:true,this.cache=Object.create(null),this.writeQueue=[];}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let n=t.shift(),i=function(){};return typeof t[t.length-1]=="function"&&(i=t.pop()),i=i||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][n]&&this.updateFiles?(this.cache[this.locale][n]=n,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i(),Lt.format.apply(Lt.format,[this.cache[this.locale][n]||n].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),n=t.shift(),i=t.shift(),r=t.shift(),o=function(){};typeof t[t.length-1]=="function"&&(o=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=r===1?n:i;this.cache[this.locale][n]&&(a=this.cache[this.locale][n][r===1?"one":"other"]),!this.cache[this.locale][n]&&this.updateFiles?(this.cache[this.locale][n]={one:n,other:i},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:o})):o();let s=[a];return ~a.indexOf("%d")&&s.push(r),Lt.format.apply(Lt.format,s.concat(t))}setLocale(t){this.locale=t;}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this.cache[this.locale][n]=t[n]);}_taggedLiteral(t,...n){let i="";return t.forEach(function(r,o){let a=n[o+1];i+=r,typeof a<"u"&&(i+="%s");}),this.__.apply(this,[i].concat([].slice.call(n,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue();}_processWriteQueue(){let t=this,n=this.writeQueue[0],i=n.directory,r=n.locale,o=n.cb,a=this._resolveLocaleFile(i,r),s=JSON.stringify(this.cache[r],null,2);Lt.fs.writeFile(a,s,"utf-8",function(c){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(c);});}_readLocaleFile(){let t={},n=this._resolveLocaleFile(this.directory,this.locale);try{Lt.fs.readFileSync&&(t=JSON.parse(Lt.fs.readFileSync(n,"utf-8")));}catch(i){if(i instanceof SyntaxError&&(i.message="syntax error in "+n),i.code==="ENOENT")t={};else throw i}this.cache[this.locale]=t;}_resolveLocaleFile(t,n){let i=Lt.resolve(t,"./",n+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(i)&&~n.lastIndexOf("_")){let r=Lt.resolve(t,"./",n.split("_")[0]+".json");this._fileExistsSync(r)&&(i=r);}return i}_fileExistsSync(t){return Lt.exists(t)}};function Z_(e,t){Lt=t;let n=new Pm(e);return {__:n.__.bind(n),__n:n.__n.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),updateLocale:n.updateLocale.bind(n),locale:n.locale}}var uA=e=>Z_(e,V_),W_=uA;var J_=c(q_(),1);var Fm=fileURLToPath(import.meta.url),_A=Fm.substring(0,Fm.lastIndexOf("node_modules")),DA=createRequire$1(import.meta.url),Tm={assert:{notStrictEqual:notStrictEqual,strictEqual:strictEqual},cliui:$m,findUp:P_,getEnv:e=>process.env[e],inspect:inspect,getProcessArgvBin:B_,mainFilename:_A||process.cwd(),Parser:Am,path:{basename:basename,dirname:dirname,extname:extname,relative:relative,resolve:resolve,join:join},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:e=>{process.exit(e);},nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:readFileSync,readdirSync:readdirSync,require:DA,getCallerFile:()=>{let e=(0, J_.default)(3);return e.match(/^file:\/\//)?fileURLToPath(e):e},stringWidth:jt,y18n:W_({directory:resolve(Fm,"../../../locales"),updateFiles:false})};function rt(e,t,n,i){n.assert.notStrictEqual(e,t,i);}function zm(e,t){t.assert.strictEqual(typeof e,"string");}function Xn(e){return Object.keys(e)}function be(e){return !!e&&!!e.then&&typeof e.then=="function"}var Pe=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e);}};function $r(e){let n=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),i=/\.*[\][<>]/g,r=n.shift();if(!r)throw new Error(`No command found in: ${e}`);let o={cmd:r.replace(i,""),demanded:[],optional:[]};return n.forEach((a,s)=>{let c=false;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&s===n.length-1&&(c=true),/^\[/.test(a)?o.optional.push({cmd:a.replace(i,"").split("|"),variadic:c}):o.demanded.push({cmd:a.replace(i,"").split("|"),variadic:c});}),o}var xA=["first","second","third","fourth","fifth","sixth"];function L(e,t,n){function i(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[$r(`cmd ${e}`),t,n]}try{let r=0,[o,a,s]=i(),c=[].slice.call(a);for(;c.length&&c[c.length-1]===void 0;)c.pop();let l=s||c.length;if(l<o.demanded.length)throw new Pe(`Not enough arguments provided. Expected ${o.demanded.length} but received ${c.length}.`);let d=o.demanded.length+o.optional.length;if(l>d)throw new Pe(`Too many arguments provided. Expected max ${d} but received ${l}.`);o.demanded.forEach(p=>{let m=c.shift(),h=K_(m);p.cmd.filter(x=>x===h||x==="*").length===0&&X_(h,p.cmd,r),r+=1;}),o.optional.forEach(p=>{if(c.length===0)return;let m=c.shift(),h=K_(m);p.cmd.filter(x=>x===h||x==="*").length===0&&X_(h,p.cmd,r),r+=1;});}catch(r){console.warn(r.stack);}}function K_(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function X_(e,t,n){throw new Pe(`Invalid ${xA[n]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var Bs=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t;}addMiddleware(t,n,i=true,r=false){if(L("<array|function> [boolean] [boolean] [boolean]",[t,n,i],arguments.length),Array.isArray(t)){for(let o=0;o<t.length;o++){if(typeof t[o]!="function")throw Error("middleware must be a function");let a=t[o];a.applyBeforeValidation=n,a.global=i;}Array.prototype.push.apply(this.globalMiddleware,t);}else if(typeof t=="function"){let o=t;o.applyBeforeValidation=n,o.global=i,o.mutates=r,this.globalMiddleware.push(t);}return this.yargs}addCoerceMiddleware(t,n){let i=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(r=>{let o=[...i[n]||[],n];return r.option?!o.includes(r.option):true}),t.option=n,this.addMiddleware(t,true,true,true)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware]);}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t);}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global);}};function Q_(e){return e?e.map(t=>(t.applyBeforeValidation=false,t)):[]}function Xr(e,t,n,i){return n.reduce((r,o)=>{if(o.applyBeforeValidation!==i)return r;if(o.mutates){if(o.applied)return r;o.applied=true;}if(be(r))return r.then(a=>Promise.all([a,o(a,t)])).then(([a,s])=>Object.assign(a,s));{let a=o(r,t);return be(a)?a.then(s=>Object.assign(r,s)):Object.assign(r,a)}},e)}function Qr(e,t,n=i=>{throw i}){try{let i=SA(e)?e():e;return be(i)?i.then(r=>t(r)):t(i)}catch(i){return n(i)}}function SA(e){return typeof e=="function"}var Qn=/(^\*)|(^\$0)/,Nm=class{constructor(t,n,i,r){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=r,this.usage=t,this.globalMiddleware=i,this.validation=n;}addDirectory(t,n,i,r){r=r||{},this.requireCache.add(i);let o=this.shim.path.resolve(this.shim.path.dirname(i),t),a=this.shim.readdirSync(o,{recursive:!!r.recurse});Array.isArray(r.extensions)||(r.extensions=["js"]);let s=typeof r.visit=="function"?r.visit:c=>c;for(let c of a){let l=c.toString();if(r.exclude){let p=false;if(typeof r.exclude=="function"?p=r.exclude(l):p=r.exclude.test(l),p)continue}if(r.include){let p=false;if(typeof r.include=="function"?p=r.include(l):p=r.include.test(l),!p)continue}let d=false;for(let p of r.extensions)l.endsWith(p)&&(d=true);if(d){let p=this.shim.path.join(o,l),m=n(p),h=Object.create(null,Object.getOwnPropertyDescriptors({...m}));if(s(h,p,l)){if(this.requireCache.has(p))continue;this.requireCache.add(p),h.command||(h.command=this.shim.path.basename(p,this.shim.path.extname(p))),this.addHandler(h);}}}}addHandler(t,n,i,r,o,a){let s=[],c=Q_(o);if(r=r||(()=>{}),Array.isArray(t))if(EA(t))[t,...s]=t;else for(let l of t)this.addHandler(l);else if($A(t)){let l=Array.isArray(t.command)||typeof t.command=="string"?t.command:null;if(l===null)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);t.aliases&&(l=[].concat(l).concat(t.aliases)),this.addHandler(l,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(eD(i)){this.addHandler([t].concat(s),n,i.builder,i.handler,i.middlewares,i.deprecated);return}if(typeof t=="string"){let l=$r(t);s=s.map(m=>$r(m).cmd);let d=false,p=[l.cmd].concat(s).filter(m=>Qn.test(m)?(d=true,false):true);p.length===0&&d&&p.push("$0"),d&&(l.cmd=p[0],s=p.slice(1),t=t.replace(Qn,l.cmd)),s.forEach(m=>{this.aliasMap[m]=l.cmd;}),n!==false&&this.usage.command(t,n,d,s,a),this.handlers[l.cmd]={original:t,description:n,handler:r,builder:i||{},middlewares:c,deprecated:a,demanded:l.demanded,optional:l.optional},d&&(this.defaultCommand=this.handlers[l.cmd]);}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return !!this.defaultCommand}runCommand(t,n,i,r,o,a){let s=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,c=n.getInternalMethods().getContext(),l=c.commands.slice(),d=!t;t&&(c.commands.push(t),c.fullCommands.push(s.original));let p=this.applyBuilderUpdateUsageAndParse(d,s,n,i.aliases,l,r,o,a);return be(p)?p.then(m=>this.applyMiddlewareAndGetResult(d,s,m.innerArgv,c,o,m.aliases,n)):this.applyMiddlewareAndGetResult(d,s,p.innerArgv,c,o,p.aliases,n)}applyBuilderUpdateUsageAndParse(t,n,i,r,o,a,s,c){let l=n.builder,d=i;if(Vs(l)){i.getInternalMethods().getUsageInstance().freeze();let p=l(i.getInternalMethods().reset(r),c);if(be(p))return p.then(m=>(d=rD(m)?m:i,this.parseAndUpdateUsage(t,n,d,o,a,s)))}else wA(l)&&(i.getInternalMethods().getUsageInstance().freeze(),d=i.getInternalMethods().reset(r),Object.keys(n.builder).forEach(p=>{d.option(p,l[p]);}));return this.parseAndUpdateUsage(t,n,d,o,a,s)}parseAndUpdateUsage(t,n,i,r,o,a){t&&i.getInternalMethods().getUsageInstance().unfreeze(true),this.shouldUpdateUsage(i)&&i.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(r,n),n.description);let s=i.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,true,o,a);return be(s)?s.then(c=>({aliases:i.parsed.aliases,innerArgv:c})):{aliases:i.parsed.aliases,innerArgv:s}}shouldUpdateUsage(t){return !t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,n){let i=Qn.test(n.original)?n.original.replace(Qn,"").trim():n.original,r=t.filter(o=>!Qn.test(o));return r.push(i),`$0 ${r.join(" ")}`}handleValidationAndGetResult(t,n,i,r,o,a,s,c){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(o,c,a.parsed.error,t);i=Qr(i,d=>(l(d),d));}if(n.handler&&!a.getInternalMethods().getHasOutput()){a.getInternalMethods().setHasOutput();let l=!!a.getOptions().configuration["populate--"];a.getInternalMethods().postProcess(i,l,false,false),i=Xr(i,a,s,false),i=Qr(i,d=>{let p=n.handler(d);return be(p)?p.then(()=>d):d}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),be(i)&&!a.getInternalMethods().hasParseCallback()&&i.catch(d=>{try{a.getInternalMethods().getUsageInstance().fail(null,d);}catch{}});}return t||(r.commands.pop(),r.fullCommands.pop()),i}applyMiddlewareAndGetResult(t,n,i,r,o,a,s){let c={};if(o)return i;s.getInternalMethods().getHasOutput()||(c=this.populatePositionals(n,i,r,s));let l=this.globalMiddleware.getMiddleware().slice(0).concat(n.middlewares),d=Xr(i,s,l,true);return be(d)?d.then(p=>this.handleValidationAndGetResult(t,n,p,r,a,s,l,c)):this.handleValidationAndGetResult(t,n,d,r,a,s,l,c)}populatePositionals(t,n,i,r){n._=n._.slice(i.commands.length);let o=t.demanded.slice(0),a=t.optional.slice(0),s={};for(this.validation.positionalCount(o.length,n._.length);o.length;){let c=o.shift();this.populatePositional(c,n,s);}for(;a.length;){let c=a.shift();this.populatePositional(c,n,s);}return n._=i.commands.concat(n._.map(c=>""+c)),this.postProcessPositionals(n,s,this.cmdToParseOptions(t.original),r),s}populatePositional(t,n,i){let r=t.cmd[0];t.variadic?i[r]=n._.splice(0).map(String):n._.length&&(i[r]=[String(n._.shift())]);}cmdToParseOptions(t){let n={array:[],default:{},alias:{},demand:{}},i=$r(t);return i.demanded.forEach(r=>{let[o,...a]=r.cmd;r.variadic&&(n.array.push(o),n.default[o]=[]),n.alias[o]=a,n.demand[o]=true;}),i.optional.forEach(r=>{let[o,...a]=r.cmd;r.variadic&&(n.array.push(o),n.default[o]=[]),n.alias[o]=a;}),n}postProcessPositionals(t,n,i,r){let o=Object.assign({},r.getOptions());o.default=Object.assign(i.default,o.default);for(let l of Object.keys(i.alias))o.alias[l]=(o.alias[l]||[]).concat(i.alias[l]);o.array=o.array.concat(i.array),o.config={};let a=[];if(Object.keys(n).forEach(l=>{n[l].map(d=>{o.configuration["unknown-options-as-args"]&&(o.key[l]=true),a.push(`--${l}`),a.push(d);});}),!a.length)return;let s=Object.assign({},o.configuration,{"populate--":false}),c=this.shim.Parser.detailed(a,Object.assign({},o,{configuration:s}));if(c.error)r.getInternalMethods().getUsageInstance().fail(c.error.message,c.error);else {let l=Object.keys(n);Object.keys(n).forEach(d=>{l.push(...c.aliases[d]);}),Object.keys(c.argv).forEach(d=>{l.includes(d)&&(n[d]||(n[d]=c.argv[d]),!this.isInConfigs(r,d)&&!this.isDefaulted(r,d)&&Object.prototype.hasOwnProperty.call(t,d)&&Object.prototype.hasOwnProperty.call(c.argv,d)&&(Array.isArray(t[d])||Array.isArray(c.argv[d]))?t[d]=[].concat(t[d],c.argv[d]):t[d]=c.argv[d]);});}}isDefaulted(t,n){let{default:i}=t.getOptions();return Object.prototype.hasOwnProperty.call(i,n)||Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(n))}isInConfigs(t,n){let{configObjects:i}=t.getOptions();return i.some(r=>Object.prototype.hasOwnProperty.call(r,n))||i.some(r=>Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(n)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let i=Qn.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(i,this.defaultCommand.description);}let n=this.defaultCommand.builder;if(Vs(n))return n(t,true);eD(n)||Object.keys(n).forEach(i=>{t.option(i,n[i]);});}extractDesc({describe:t,description:n,desc:i}){for(let r of [t,n,i]){if(typeof r=="string"||r===false)return r;rt(r,true,this.shim);}return false}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand});}unfreeze(){let t=this.frozens.pop();rt(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t;}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function tD(e,t,n,i){return new Nm(e,t,n,i)}function eD(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function EA(e){return e.every(t=>typeof t=="string")}function Vs(e){return typeof e=="function"}function wA(e){return typeof e=="object"}function $A(e){return typeof e=="object"&&!Array.isArray(e)}function Ir(e={},t=()=>true){let n={};return Xn(e).forEach(i=>{t(i,e[i])&&(n[i]=e[i]);}),n}function Or(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let n=t;n._handle&&n.isTTY&&typeof n._handle.setBlocking=="function"&&n._handle.setBlocking(e);});}function IA(e){return typeof e=="boolean"}function iD(e,t){let n=t.y18n.__,i={},r=[];i.failFn=function(z){r.push(z);};let o=null,a=null,s=true;i.showHelpOnFail=function(z=true,P){let[V,te]=typeof z=="string"?[true,z]:[z,P];return e.getInternalMethods().isGlobalContext()&&(a=te),o=te,s=V,i};let c=false;i.fail=function(z,P){let V=e.getInternalMethods().getLoggerInstance();if(r.length)for(let te=r.length-1;te>=0;--te){let de=r[te];if(IA(de)){if(P)throw P;if(z)throw Error(z)}else de(z,P,i);}else {if(e.getExitProcess()&&Or(true),!c){c=true,s&&(e.showHelp("error"),V.error()),(z||P)&&V.error(z||P);let te=o||a;te&&((z||P)&&V.error(""),V.error(te));}if(P=P||new Pe(z),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,P);throw P}};let l=[],d=false;i.usage=(T,z)=>T===null?(d=true,l=[],i):(d=false,l.push([T,z||""]),i),i.getUsage=()=>l,i.getUsageDisabled=()=>d,i.getPositionalGroupName=()=>n("Positionals:");let p=[];i.example=(T,z)=>{p.push([T,z||""]);};let m=[];i.command=function(z,P,V,te,de=false){V&&(m=m.map(se=>(se[2]=false,se))),m.push([z,P||"",V,te,de]);},i.getCommands=()=>m;let h={};i.describe=function(z,P){Array.isArray(z)?z.forEach(V=>{i.describe(V,P);}):typeof z=="object"?Object.keys(z).forEach(V=>{i.describe(V,z[V]);}):h[z]=P;},i.getDescriptions=()=>h;let v=[];i.epilog=T=>{v.push(T);};let x=false,b;i.wrap=T=>{x=true,b=T;},i.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(x||(b=ce(),x=true),b);let j="__yargsString__:";i.deferY18nLookup=T=>j+T,i.help=function(){if(R)return R;B();let z=e.customScriptName?e.$0:t.path.basename(e.$0),P=e.getDemandedOptions(),V=e.getDemandedCommands(),te=e.getDeprecatedOptions(),de=e.getGroups(),se=e.getOptions(),Ue=[];Ue=Ue.concat(Object.keys(h)),Ue=Ue.concat(Object.keys(P)),Ue=Ue.concat(Object.keys(V)),Ue=Ue.concat(Object.keys(se.default)),Ue=Ue.filter(N),Ue=Object.keys(Ue.reduce((Y,De)=>(De!=="_"&&(Y[De]=true),Y),{}));let zr=i.getWrap(),Ee=t.cliui({width:zr,wrap:!!zr});if(!d){if(l.length)l.forEach(Y=>{Ee.div({text:`${Y[0].replace(/\$0/g,z)}`}),Y[1]&&Ee.div({text:`${Y[1]}`,padding:[1,0,0,0]});}),Ee.div();else if(m.length){let Y=null;V._?Y=`${z} <${n("command")}>
76
+ `:Y=`${z} [${n("command")}]
77
+ `,Ee.div(`${Y}`);}}if(m.length>1||m.length===1&&!m[0][2]){Ee.div(n("Commands:"));let Y=e.getInternalMethods().getContext(),De=Y.commands.length?`${Y.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===true&&(m=m.sort((oe,Ie)=>oe[0].localeCompare(Ie[0])));let $e=z?`${z} `:"";m.forEach(oe=>{let Ie=`${$e}${De}${oe[0].replace(/^\$0 ?/,"")}`;Ee.span({text:Ie,padding:[0,2,0,2],width:H(m,zr,`${z}${De}`)+4},{text:oe[1]});let Ce=[];oe[2]&&Ce.push(`[${n("default")}]`),oe[3]&&oe[3].length&&Ce.push(`[${n("aliases:")} ${oe[3].join(", ")}]`),oe[4]&&(typeof oe[4]=="string"?Ce.push(`[${n("deprecated: %s",oe[4])}]`):Ce.push(`[${n("deprecated")}]`)),Ce.length?Ee.div({text:Ce.join(" "),padding:[0,0,0,2],align:"right"}):Ee.div();}),Ee.div();}let rr=(Object.keys(se.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Ue=Ue.filter(Y=>!e.parsed.newAliases[Y]&&rr.every(De=>(se.alias[De]||[]).indexOf(Y)===-1));let nr=n("Options:");de[nr]||(de[nr]=[]),k(Ue,se.alias,de,nr);let Nr=Y=>/^--/.test(Zs(Y)),K=Object.keys(de).filter(Y=>de[Y].length>0).map(Y=>{let De=de[Y].filter(N).map($e=>{if(rr.includes($e))return $e;for(let oe=0,Ie;(Ie=rr[oe])!==void 0;oe++)if((se.alias[Ie]||[]).includes($e))return Ie;return $e});return {groupName:Y,normalizedKeys:De}}).filter(({normalizedKeys:Y})=>Y.length>0).map(({groupName:Y,normalizedKeys:De})=>{let $e=De.reduce((oe,Ie)=>(oe[Ie]=[Ie].concat(se.alias[Ie]||[]).map(Ce=>Y===i.getPositionalGroupName()?Ce:(/^[0-9]$/.test(Ce)?se.boolean.includes(Ie)?"-":"--":Ce.length>1?"--":"-")+Ce).sort((Ce,Rt)=>Nr(Ce)===Nr(Rt)?0:Nr(Ce)?1:-1).join(", "),oe),{});return {groupName:Y,normalizedKeys:De,switches:$e}});if(K.filter(({groupName:Y})=>Y!==i.getPositionalGroupName()).some(({normalizedKeys:Y,switches:De})=>!Y.every($e=>Nr(De[$e])))&&K.filter(({groupName:Y})=>Y!==i.getPositionalGroupName()).forEach(({normalizedKeys:Y,switches:De})=>{Y.forEach($e=>{Nr(De[$e])&&(De[$e]=OA(De[$e],4));});}),K.forEach(({groupName:Y,normalizedKeys:De,switches:$e})=>{Ee.div(Y),De.forEach(oe=>{let Ie=$e[oe],Ce=h[oe]||"",Rt=null;Ce.includes(j)&&(Ce=n(Ce.substring(j.length))),se.boolean.includes(oe)&&(Rt=`[${n("boolean")}]`),se.count.includes(oe)&&(Rt=`[${n("count")}]`),se.string.includes(oe)&&(Rt=`[${n("string")}]`),se.normalize.includes(oe)&&(Rt=`[${n("string")}]`),se.array.includes(oe)&&(Rt=`[${n("array")}]`),se.number.includes(oe)&&(Rt=`[${n("number")}]`);let Pt=D=>typeof D=="string"?`[${n("deprecated: %s",D)}]`:`[${n("deprecated")}]`,bo=[oe in te?Pt(te[oe]):null,Rt,oe in P?`[${n("required")}]`:null,se.choices&&se.choices[oe]?`[${n("choices:")} ${i.stringifiedValues(se.choices[oe])}]`:null,re(se.default[oe],se.defaultDescription[oe])].filter(Boolean).join(" ");Ee.span({text:Zs(Ie),padding:[0,2,0,2+nD(Ie)],width:H($e,zr)+4},Ce);let g=e.getInternalMethods().getUsageConfiguration()["hide-types"]===true;bo&&!g?Ee.div({text:bo,padding:[0,0,0,2],align:"right"}):Ee.div();}),Ee.div();}),p.length&&(Ee.div(n("Examples:")),p.forEach(Y=>{Y[0]=Y[0].replace(/\$0/g,z);}),p.forEach(Y=>{Y[1]===""?Ee.div({text:Y[0],padding:[0,2,0,2]}):Ee.div({text:Y[0],padding:[0,2,0,2],width:H(p,zr)+4},{text:Y[1]});}),Ee.div()),v.length>0){let Y=v.map(De=>De.replace(/\$0/g,z)).join(`
78
+ `);Ee.div(`${Y}
79
+ `);}return Ee.toString().replace(/\s*$/,"")};function H(T,z,P){let V=0;return Array.isArray(T)||(T=Object.values(T).map(te=>[te])),T.forEach(te=>{V=Math.max(t.stringWidth(P?`${P} ${Zs(te[0])}`:Zs(te[0]))+nD(te[0]),V);}),z&&(V=Math.min(V,parseInt((z*.5).toString(),10))),V}function B(){let T=e.getDemandedOptions(),z=e.getOptions();(Object.keys(z.alias)||[]).forEach(P=>{z.alias[P].forEach(V=>{h[V]&&i.describe(P,h[V]),V in T&&e.demandOption(P,T[V]),z.boolean.includes(V)&&e.boolean(P),z.count.includes(V)&&e.count(P),z.string.includes(V)&&e.string(P),z.normalize.includes(V)&&e.normalize(P),z.array.includes(V)&&e.array(P),z.number.includes(V)&&e.number(P);});});}let R;i.cacheHelpMessage=function(){R=this.help();},i.clearCachedHelpMessage=function(){R=void 0;},i.hasCachedHelpMessage=function(){return !!R};function k(T,z,P,V){let te=[],de=null;return Object.keys(P).forEach(se=>{te=te.concat(P[se]);}),T.forEach(se=>{de=[se].concat(z[se]),de.some(Ue=>te.indexOf(Ue)!==-1)||P[V].push(se);}),te}function N(T){return e.getOptions().hiddenOptions.indexOf(T)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}i.showHelp=T=>{let z=e.getInternalMethods().getLoggerInstance();T||(T="error"),(typeof T=="function"?T:z[T])(i.help());},i.functionDescription=T=>["(",T.name?t.Parser.decamelize(T.name,"-"):n("generated-value"),")"].join(""),i.stringifiedValues=function(z,P){let V="",te=P||", ",de=[].concat(z);return !z||!de.length||de.forEach(se=>{V.length&&(V+=te),V+=JSON.stringify(se);}),V};function re(T,z){let P=`[${n("default:")} `;if(T===void 0&&!z)return null;if(z)P+=z;else switch(typeof T){case "string":P+=`"${T}"`;break;case "object":P+=JSON.stringify(T);break;default:P+=T;}return `${P}]`}function ce(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let _e=null;i.version=T=>{_e=T;},i.showVersion=T=>{let z=e.getInternalMethods().getLoggerInstance();T||(T="error"),(typeof T=="function"?T:z[T])(_e);},i.reset=function(z){return o=null,c=false,l=[],d=false,v=[],p=[],m=[],h=Ir(h,P=>!z[P]),i};let ie=[];return i.freeze=function(){ie.push({failMessage:o,failureOutput:c,usages:l,usageDisabled:d,epilogs:v,examples:p,commands:m,descriptions:h});},i.unfreeze=function(z=false){let P=ie.pop();P&&(z?(h={...P.descriptions,...h},m=[...P.commands,...m],l=[...P.usages,...l],p=[...P.examples,...p],v=[...P.epilogs,...v]):{failMessage:o,failureOutput:c,usages:l,usageDisabled:d,epilogs:v,examples:p,commands:m,descriptions:h}=P);},i}function Um(e){return typeof e=="object"}function OA(e,t){return Um(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}function nD(e){return Um(e)?e.indentation:0}function Zs(e){return Um(e)?e.text:e}var oD=`###-begin-{{app_name}}-completions-###
80
80
  #
81
81
  # yargs command completion script
82
82
  #
@@ -105,7 +105,7 @@ _{{app_name}}_yargs_completions()
105
105
  }
106
106
  complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
107
107
  ###-end-{{app_name}}-completions-###
108
- `,B_=`#compdef {{app_name}}
108
+ `,aD=`#compdef {{app_name}}
109
109
  ###-begin-{{app_name}}-completions-###
110
110
  #
111
111
  # yargs command completion script
@@ -132,21 +132,21 @@ else
132
132
  compdef _{{app_name}}_yargs_completions {{app_name}}
133
133
  fi
134
134
  ###-end-{{app_name}}-completions-###
135
- `;var km=class{constructor(t,n,i,r){var o,a,s;this.yargs=t,this.usage=n,this.command=i,this.shim=r,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(s=((o=this.shim.getEnv("SHELL"))===null||o===void 0?void 0:o.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&s!==void 0?s:false;}defaultCompletion(t,n,i,r){let o=this.command.getCommandHandlers();for(let s=0,c=t.length;s<c;++s)if(o[t[s]]&&o[t[s]].builder){let l=o[t[s]].builder;if(zs(l)){this.indexAfterLastReset=s+1;let d=this.yargs.getInternalMethods().reset();return l(d,true),d.argv}}let a=[];this.commandCompletions(a,t,i),this.optionCompletions(a,t,n,i),this.choicesFromOptionsCompletions(a,t,n,i),this.choicesFromPositionalsCompletions(a,t,n,i),r(null,a);}commandCompletions(t,n,i){let r=this.yargs.getInternalMethods().getContext().commands;!i.match(/^-/)&&r[r.length-1]!==i&&!this.previousArgHasChoices(n)&&this.usage.getCommands().forEach(o=>{let a=br(o[0]).cmd;if(n.indexOf(a)===-1)if(!this.zshShell)t.push(a);else {let s=o[1]||"";t.push(a.replace(/:/g,"\\:")+":"+s);}});}optionCompletions(t,n,i,r){if((r.match(/^-/)||r===""&&t.length===0)&&!this.previousArgHasChoices(n)){let o=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(o.key).forEach(s=>{let c=!!o.configuration["boolean-negation"]&&o.boolean.includes(s);!a.includes(s)&&!o.hiddenOptions.includes(s)&&!this.argsContainKey(n,s,c)&&this.completeOptionKey(s,t,r,c&&!!o.default[s]);});}}choicesFromOptionsCompletions(t,n,i,r){if(this.previousArgHasChoices(n)){let o=this.getPreviousArgChoices(n);o&&o.length>0&&t.push(...o.map(a=>a.replace(/:/g,"\\:")));}}choicesFromPositionalsCompletions(t,n,i,r){if(r===""&&t.length>0&&this.previousArgHasChoices(n))return;let o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),s=o[i._.length-a-1];if(!s)return;let c=this.yargs.getOptions().choices[s]||[];for(let l of c)l.startsWith(r)&&t.push(l.replace(/:/g,"\\:"));}getPreviousArgChoices(t){if(t.length<1)return;let n=t[t.length-1],i="";if(!n.startsWith("-")&&t.length>1&&(i=n,n=t[t.length-2]),!n.startsWith("-"))return;let r=n.replace(/^-+/,""),o=this.yargs.getOptions(),a=[r,...this.yargs.getAliases()[r]||[]],s;for(let c of a)if(Object.prototype.hasOwnProperty.call(o.key,c)&&Array.isArray(o.choices[c])){s=o.choices[c];break}if(s)return s.filter(c=>!i||c.startsWith(i))}previousArgHasChoices(t){let n=this.getPreviousArgChoices(t);return n!==void 0&&n.length>0}argsContainKey(t,n,i){let r=o=>t.indexOf((/^[^0-9]$/.test(o)?"-":"--")+o)!==-1;if(r(n)||i&&r(`no-${n}`))return true;if(this.aliases){for(let o of this.aliases[n])if(r(o))return true}return false}completeOptionKey(t,n,i,r){var o,a,s,c;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(o=this===null||this===void 0?void 0:this.aliases)===null||o===void 0?void 0:o[t])===null||a===void 0?void 0:a.find(j=>{let H=h[j];return typeof H=="string"&&H.length>0}),x=y?h[y]:void 0,b=(c=(s=h[t])!==null&&s!==void 0?s:x)!==null&&c!==void 0?c:"";l=`${t.replace(/:/g,"\\:")}:${b.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`;}let d=h=>/^--/.test(h),p=h=>/^[^0-9]$/.test(h),m=!d(i)&&p(t)?"-":"--";n.push(m+l),r&&n.push(m+"no-"+l);}customCompletion(t,n,i,r){if(tt(this.customCompletionFunction,null,this.shim),uR(this.customCompletionFunction)){let o=this.customCompletionFunction(i,n);return ye(o)?o.then(a=>{this.shim.process.nextTick(()=>{r(null,a);});}).catch(a=>{this.shim.process.nextTick(()=>{r(a,void 0);});}):r(null,o)}else return cR(this.customCompletionFunction)?this.customCompletionFunction(i,n,(o=r)=>this.defaultCompletion(t,n,i,o),o=>{r(null,o);}):this.customCompletionFunction(i,n,o=>{r(null,o);})}getCompletion(t,n){let i=t.length?t[t.length-1]:"",r=this.yargs.parse(t,true),o=this.customCompletionFunction?a=>this.customCompletion(t,a,i,n):a=>this.defaultCompletion(t,a,i,n);return ye(r)?r.then(o):o(r)}generateCompletionScript(t,n){let i=this.zshShell?B_:M_,r=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),i=i.replace(/{{app_name}}/g,r),i=i.replace(/{{completion_command}}/g,n),i.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t;}setParsed(t){this.aliases=t.aliases;}};function V_(e,t,n,i){return new km(e,t,n,i)}function uR(e){return e.length<3}function cR(e){return e.length>3}function Z_(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let n=[],i;for(i=0;i<=t.length;i++)n[i]=[i];let r;for(r=0;r<=e.length;r++)n[0][r]=r;for(i=1;i<=t.length;i++)for(r=1;r<=e.length;r++)t.charAt(i-1)===e.charAt(r-1)?n[i][r]=n[i-1][r-1]:i>1&&r>1&&t.charAt(i-2)===e.charAt(r-1)&&t.charAt(i-1)===e.charAt(r-2)?n[i][r]=n[i-2][r-2]+1:n[i][r]=Math.min(n[i-1][r-1]+1,Math.min(n[i][r-1]+1,n[i-1][r]+1));return n[t.length][e.length]}var W_=["$0","--","_"];function G_(e,t,n){let i=n.y18n.__,r=n.y18n.__n,o={};o.nonOptionCount=function(p){let m=e.getDemandedCommands(),y=p._.length+(p["--"]?p["--"].length:0)-e.getInternalMethods().getContext().commands.length;m._&&(y<m._.min||y>m._.max)&&(y<m._.min?m._.minMsg!==void 0?t.fail(m._.minMsg?m._.minMsg.replace(/\$0/g,y.toString()).replace(/\$1/,m._.min.toString()):null):t.fail(r("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",y,y.toString(),m._.min.toString())):y>m._.max&&(m._.maxMsg!==void 0?t.fail(m._.maxMsg?m._.maxMsg.replace(/\$0/g,y.toString()).replace(/\$1/,m._.max.toString()):null):t.fail(r("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",y,y.toString(),m._.max.toString()))));},o.positionalCount=function(p,m){m<p&&t.fail(r("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",m,m+"",p+""));},o.requiredArguments=function(p,m){let h=null;for(let y of Object.keys(m))(!Object.prototype.hasOwnProperty.call(p,y)||typeof p[y]>"u")&&(h=h||{},h[y]=m[y]);if(h){let y=[];for(let b of Object.keys(h)){let j=h[b];j&&y.indexOf(j)<0&&y.push(j);}let x=y.length?`
136
- ${y.join(`
137
- `)}`:"";t.fail(r("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+x));}},o.unknownArguments=function(p,m,h,y,x=true){var b;let j=e.getInternalMethods().getCommandInstance().getCommands(),H=[],B=e.getInternalMethods().getContext();if(Object.keys(p).forEach(A=>{!W_.includes(A)&&!Object.prototype.hasOwnProperty.call(h,A)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),A)&&!o.isValidAndSomeAliasIsNotNew(A,m)&&H.push(A);}),x&&(B.commands.length>0||j.length>0||y)&&p._.slice(B.commands.length).forEach(A=>{j.includes(""+A)||H.push(""+A);}),x){let k=((b=e.getDemandedCommands()._)===null||b===void 0?void 0:b.max)||0,z=B.commands.length+k;z<p._.length&&p._.slice(z).forEach(re=>{re=String(re),!B.commands.includes(re)&&!H.includes(re)&&H.push(re);});}H.length&&t.fail(r("Unknown argument: %s","Unknown arguments: %s",H.length,H.map(A=>A.trim()?A:`"${A}"`).join(", ")));},o.unknownCommands=function(p){let m=e.getInternalMethods().getCommandInstance().getCommands(),h=[],y=e.getInternalMethods().getContext();return (y.commands.length>0||m.length>0)&&p._.slice(y.commands.length).forEach(x=>{m.includes(""+x)||h.push(""+x);}),h.length>0?(t.fail(r("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),true):false},o.isValidAndSomeAliasIsNotNew=function(p,m){if(!Object.prototype.hasOwnProperty.call(m,p))return false;let h=e.parsed.newAliases;return [p,...m[p]].some(y=>!Object.prototype.hasOwnProperty.call(h,y)||!h[p])},o.limitedChoices=function(p){let m=e.getOptions(),h={};if(!Object.keys(m.choices).length)return;Object.keys(p).forEach(b=>{W_.indexOf(b)===-1&&Object.prototype.hasOwnProperty.call(m.choices,b)&&[].concat(p[b]).forEach(j=>{m.choices[b].indexOf(j)===-1&&j!==void 0&&(h[b]=(h[b]||[]).concat(j));});});let y=Object.keys(h);if(!y.length)return;let x=i("Invalid values:");y.forEach(b=>{x+=`
138
- ${i("Argument: %s, Given: %s, Choices: %s",b,t.stringifiedValues(h[b]),t.stringifiedValues(m.choices[b]))}`;}),t.fail(x);};let a={};o.implies=function(p,m){L("<string|object> [array|number|string]",[p,m],arguments.length),typeof p=="object"?Object.keys(p).forEach(h=>{o.implies(h,p[h]);}):(e.global(p),a[p]||(a[p]=[]),Array.isArray(m)?m.forEach(h=>o.implies(p,h)):(tt(m,void 0,n),a[p].push(m)));},o.getImplied=function(){return a};function s(d,p){let m=Number(p);return p=isNaN(m)?p:m,typeof p=="number"?p=d._.length>=p:p.match(/^--no-.+/)?(p=p.match(/^--no-(.+)/)[1],p=!Object.prototype.hasOwnProperty.call(d,p)):p=Object.prototype.hasOwnProperty.call(d,p),p}o.implications=function(p){let m=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(x=>{let b=y,j=x;b=s(p,b),x=s(p,x),b&&!x&&m.push(` ${y} -> ${j}`);});}),m.length){let h=`${i("Implications failed:")}
139
- `;m.forEach(y=>{h+=y;}),t.fail(h);}};let c={};o.conflicts=function(p,m){L("<string|object> [array|string]",[p,m],arguments.length),typeof p=="object"?Object.keys(p).forEach(h=>{o.conflicts(h,p[h]);}):(e.global(p),c[p]||(c[p]=[]),Array.isArray(m)?m.forEach(h=>o.conflicts(p,h)):c[p].push(m));},o.getConflicting=()=>c,o.conflicting=function(p){Object.keys(p).forEach(m=>{c[m]&&c[m].forEach(h=>{h&&p[m]!==void 0&&p[h]!==void 0&&t.fail(i("Arguments %s and %s are mutually exclusive",m,h));});}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(c).forEach(m=>{c[m].forEach(h=>{h&&p[n.Parser.camelCase(m)]!==void 0&&p[n.Parser.camelCase(h)]!==void 0&&t.fail(i("Arguments %s and %s are mutually exclusive",m,h));});});},o.recommendCommands=function(p,m){m=m.sort((b,j)=>j.length-b.length);let y=null,x=1/0;for(let b=0,j;(j=m[b])!==void 0;b++){let H=Z_(p,j);H<=3&&H<x&&(x=H,y=j);}y&&t.fail(i("Did you mean %s?",y));},o.reset=function(p){return a=_r(a,m=>!p[m]),c=_r(c,m=>!p[m]),o};let l=[];return o.freeze=function(){l.push({implied:a,conflicting:c});},o.unfreeze=function(){let p=l.pop();tt(p,void 0,n),{implied:a,conflicting:c}=p;},o}var Cm=[],io;function oo(e,t,n,i){io=i;let r={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return r;let o=/\.json|\..*rc$/.test(e.extends),a=null;if(o)a=dR(t,e.extends);else try{a=import.meta.resolve(e.extends);}catch{return e}lR(a),Cm.push(a),r=o?JSON.parse(io.readFileSync(a,"utf8")):i.require(e.extends),delete e.extends,r=oo(r,io.path.dirname(a),n,io);}return Cm=[],n?q_(r,e):Object.assign({},r,e)}function lR(e){if(Cm.indexOf(e)>-1)throw new Re(`Circular extended configurations: '${e}'.`)}function dR(e,t){return io.path.resolve(e,t)}function q_(e,t){let n={};function i(r){return r&&typeof r=="object"&&!Array.isArray(r)}Object.assign(n,e);for(let r of Object.keys(t))i(t[r])&&i(n[r])?n[r]=q_(e[r],t[r]):n[r]=t[r];return n}var M=function(e,t,n,i,r){if(typeof t=="function"?e!==t||true:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n},f=function(e,t,n,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},Ae,qr,ao,ut,mt,js,xr,Hr,Ls,Et,Ms,wt,Yt,ht,$t,Bs,Yr,Be,G,Vs,Zs,gt,Jr,ei,Kr,Sr,Ws,J,Xr,Qr,en,Q,Gs,Jt,$e;function fD(e){return (t=[],n=e.process.cwd(),i)=>{let r=new Mm(t,n,i,e);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:true}),r.help(),r.version(),r}}var H_=Symbol("copyDoubleDash"),Y_=Symbol("copyDoubleDash"),Rm=Symbol("deleteFromParserHintObject"),J_=Symbol("emitWarning"),K_=Symbol("freeze"),X_=Symbol("getDollarZero"),tn=Symbol("getParserConfiguration"),Q_=Symbol("getUsageConfiguration"),Am=Symbol("guessLocale"),eD=Symbol("guessVersion"),tD=Symbol("parsePositionalNumbers"),Tm=Symbol("pkgUp"),Er=Symbol("populateParserHintArray"),ti=Symbol("populateParserHintSingleValueDictionary"),Fm=Symbol("populateParserHintArrayDictionary"),Pm=Symbol("populateParserHintDictionary"),Nm=Symbol("sanitizeKey"),zm=Symbol("setKey"),Um=Symbol("unfreeze"),rD=Symbol("validateAsync"),nD=Symbol("getCommandInstance"),iD=Symbol("getContext"),oD=Symbol("getHasOutput"),aD=Symbol("getLoggerInstance"),sD=Symbol("getParseContext"),uD=Symbol("getUsageInstance"),cD=Symbol("getValidationInstance"),qs=Symbol("hasParseCallback"),lD=Symbol("isGlobalContext"),rn=Symbol("postProcess"),dD=Symbol("rebase"),jm=Symbol("reset"),so=Symbol("runYargsParserAndExecuteCommands"),Lm=Symbol("runValidation"),pD=Symbol("setHasOutput"),nn=Symbol("kTrackManuallySetKeys"),pR="en_US",Mm=class{constructor(t=[],n,i,r){this.customScriptName=false,this.parsed=false,Ae.set(this,void 0),qr.set(this,void 0),ao.set(this,{commands:[],fullCommands:[]}),ut.set(this,null),mt.set(this,null),js.set(this,"show-hidden"),xr.set(this,null),Hr.set(this,true),Ls.set(this,{}),Et.set(this,true),Ms.set(this,[]),wt.set(this,void 0),Yt.set(this,{}),ht.set(this,false),$t.set(this,null),Bs.set(this,true),Yr.set(this,void 0),Be.set(this,""),G.set(this,void 0),Vs.set(this,void 0),Zs.set(this,{}),gt.set(this,null),Jr.set(this,null),ei.set(this,{}),Kr.set(this,{}),Sr.set(this,void 0),Ws.set(this,false),J.set(this,void 0),Xr.set(this,false),Qr.set(this,false),en.set(this,false),Q.set(this,void 0),Gs.set(this,{}),Jt.set(this,null),$e.set(this,void 0),M(this,J,r),M(this,Sr,t),M(this,qr,n),M(this,Vs,i),M(this,wt,new Ns(this)),this.$0=this[X_](),this[jm](),M(this,Ae,f(this,Ae,"f")),M(this,Q,f(this,Q,"f")),M(this,$e,f(this,$e,"f")),M(this,G,f(this,G,"f")),f(this,G,"f").showHiddenOpt=f(this,js,"f"),M(this,Yr,this[Y_]()),f(this,J,"f").y18n.setLocale(pR);}addHelpOpt(t,n){let i="help";return L("[string|boolean] [string]",[t,n],arguments.length),f(this,$t,"f")&&(this[Rm](f(this,$t,"f")),M(this,$t,null)),t===false&&n===void 0?this:(M(this,$t,typeof t=="string"?t:i),this.boolean(f(this,$t,"f")),this.describe(f(this,$t,"f"),n||f(this,Q,"f").deferY18nLookup("Show help")),this)}help(t,n){return this.addHelpOpt(t,n)}addShowHiddenOpt(t,n){if(L("[string|boolean] [string]",[t,n],arguments.length),t===false&&n===void 0)return this;let i=typeof t=="string"?t:f(this,js,"f");return this.boolean(i),this.describe(i,n||f(this,Q,"f").deferY18nLookup("Show hidden options")),f(this,G,"f").showHiddenOpt=i,this}showHidden(t,n){return this.addShowHiddenOpt(t,n)}alias(t,n){return L("<object|string|array> [string|array]",[t,n],arguments.length),this[Fm](this.alias.bind(this),"alias",t,n),this}array(t){return L("<array|string>",[t],arguments.length),this[Er]("array",t),this[nn](t),this}boolean(t){return L("<array|string>",[t],arguments.length),this[Er]("boolean",t),this[nn](t),this}check(t,n){return L("<function> [boolean]",[t,n],arguments.length),this.middleware((i,r)=>Gr(()=>t(i,r.getOptions()),o=>(o?(typeof o=="string"||o instanceof Error)&&f(this,Q,"f").fail(o.toString(),o):f(this,Q,"f").fail(f(this,J,"f").y18n.__("Argument check failed: %s",t.toString())),i),o=>(f(this,Q,"f").fail(o.message?o.message:o.toString(),o),i)),false,n),this}choices(t,n){return L("<object|string|array> [string|array]",[t,n],arguments.length),this[Fm](this.choices.bind(this),"choices",t,n),this}coerce(t,n){if(L("<object|string|array> [function]",[t,n],arguments.length),Array.isArray(t)){if(!n)throw new Re("coerce callback must be provided");for(let r of t)this.coerce(r,n);return this}else if(typeof t=="object"){for(let r of Object.keys(t))this.coerce(r,t[r]);return this}if(!n)throw new Re("coerce callback must be provided");let i=t;return f(this,G,"f").key[i]=true,f(this,wt,"f").addCoerceMiddleware((r,o)=>{var a;let s=(a=o.getAliases()[i])!==null&&a!==void 0?a:[],c=[i,...s].filter(l=>Object.prototype.hasOwnProperty.call(r,l));return c.length===0?r:Gr(()=>n(r[c[0]]),l=>(c.forEach(d=>{r[d]=l;}),r),l=>{throw new Re(l.message)})},i),this}conflicts(t,n){return L("<string|object> [string|array]",[t,n],arguments.length),f(this,$e,"f").conflicts(t,n),this}config(t="config",n,i){return L("[object|string] [string|function] [function]",[t,n,i],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=oo(t,f(this,qr,"f"),this[tn]()["deep-merge-config"]||false,f(this,J,"f")),f(this,G,"f").configObjects=(f(this,G,"f").configObjects||[]).concat(t),this):(typeof n=="function"&&(i=n,n=void 0),this.describe(t,n||f(this,Q,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(r=>{f(this,G,"f").config[r]=i||true;}),this)}completion(t,n,i){return L("[string] [string|boolean|function] [function]",[t,n,i],arguments.length),typeof n=="function"&&(i=n,n=void 0),M(this,mt,t||f(this,mt,"f")||"completion"),!n&&n!==false&&(n="generate completion script"),this.command(f(this,mt,"f"),n),i&&f(this,ut,"f").registerFunction(i),this}command(t,n,i,r,o,a){return L("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,n,i,r,o,a],arguments.length),f(this,Ae,"f").addHandler(t,n,i,r,o,a),this}commands(t,n,i,r,o,a){return this.command(t,n,i,r,o,a)}commandDir(t,n){L("<string> [object]",[t,n],arguments.length);let i=f(this,Vs,"f")||f(this,J,"f").require;return f(this,Ae,"f").addDirectory(t,i,f(this,J,"f").getCallerFile(),n),this}count(t){return L("<array|string>",[t],arguments.length),this[Er]("count",t),this[nn](t),this}default(t,n,i){return L("<object|string|array> [*] [string]",[t,n,i],arguments.length),i&&($m(t,f(this,J,"f")),f(this,G,"f").defaultDescription[t]=i),typeof n=="function"&&($m(t,f(this,J,"f")),f(this,G,"f").defaultDescription[t]||(f(this,G,"f").defaultDescription[t]=f(this,Q,"f").functionDescription(n)),n=n.call()),this[ti](this.default.bind(this),"default",t,n),this}defaults(t,n,i){return this.default(t,n,i)}demandCommand(t=1,n,i,r){return L("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,n,i,r],arguments.length),typeof n!="number"&&(i=n,n=1/0),this.global("_",false),f(this,G,"f").demandedCommands._={min:t,max:n,minMsg:i,maxMsg:r},this}demand(t,n,i){return Array.isArray(n)?(n.forEach(r=>{tt(i,true,f(this,J,"f")),this.demandOption(r,i);}),n=1/0):typeof n!="number"&&(i=n,n=1/0),typeof t=="number"?(tt(i,true,f(this,J,"f")),this.demandCommand(t,n,i,i)):Array.isArray(t)?t.forEach(r=>{tt(i,true,f(this,J,"f")),this.demandOption(r,i);}):typeof i=="string"?this.demandOption(t,i):(i===true||typeof i>"u")&&this.demandOption(t),this}demandOption(t,n){return L("<object|string|array> [string]",[t,n],arguments.length),this[ti](this.demandOption.bind(this),"demandedOptions",t,n),this}deprecateOption(t,n){return L("<string> [string|boolean]",[t,n],arguments.length),f(this,G,"f").deprecatedOptions[t]=n,this}describe(t,n){return L("<object|string|array> [string]",[t,n],arguments.length),this[zm](t,true),f(this,Q,"f").describe(t,n),this}detectLocale(t){return L("<boolean>",[t],arguments.length),M(this,Hr,t),this}env(t){return L("[string|boolean]",[t],arguments.length),t===false?delete f(this,G,"f").envPrefix:f(this,G,"f").envPrefix=t||"",this}epilogue(t){return L("<string>",[t],arguments.length),f(this,Q,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,n){return L("<string|array> [string]",[t,n],arguments.length),Array.isArray(t)?t.forEach(i=>this.example(...i)):f(this,Q,"f").example(t,n),this}exit(t,n){M(this,ht,true),M(this,xr,n),f(this,Et,"f")&&f(this,J,"f").process.exit(t);}exitProcess(t=true){return L("[boolean]",[t],arguments.length),M(this,Et,t),this}fail(t){if(L("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==false)throw new Re("Invalid first argument. Expected function or boolean 'false'");return f(this,Q,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,n){return L("<array> [function]",[t,n],arguments.length),n?f(this,ut,"f").getCompletion(t,n):new Promise((i,r)=>{f(this,ut,"f").getCompletion(t,(o,a)=>{o?r(o):i(a);});})}getDemandedOptions(){return L([],0),f(this,G,"f").demandedOptions}getDemandedCommands(){return L([],0),f(this,G,"f").demandedCommands}getDeprecatedOptions(){return L([],0),f(this,G,"f").deprecatedOptions}getDetectLocale(){return f(this,Hr,"f")}getExitProcess(){return f(this,Et,"f")}getGroups(){return Object.assign({},f(this,Yt,"f"),f(this,Kr,"f"))}getHelp(){if(M(this,ht,true),!f(this,Q,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[so](f(this,Sr,"f"),void 0,void 0,0,true);if(ye(n))return n.then(()=>f(this,Q,"f").help())}let t=f(this,Ae,"f").runDefaultBuilderOn(this);if(ye(t))return t.then(()=>f(this,Q,"f").help())}return Promise.resolve(f(this,Q,"f").help())}getOptions(){return f(this,G,"f")}getStrict(){return f(this,Xr,"f")}getStrictCommands(){return f(this,Qr,"f")}getStrictOptions(){return f(this,en,"f")}global(t,n){return L("<string|array> [boolean]",[t,n],arguments.length),t=[].concat(t),n!==false?f(this,G,"f").local=f(this,G,"f").local.filter(i=>t.indexOf(i)===-1):t.forEach(i=>{f(this,G,"f").local.includes(i)||f(this,G,"f").local.push(i);}),this}group(t,n){L("<string|array> <string>",[t,n],arguments.length);let i=f(this,Kr,"f")[n]||f(this,Yt,"f")[n];f(this,Kr,"f")[n]&&delete f(this,Kr,"f")[n];let r={};return f(this,Yt,"f")[n]=(i||[]).concat(t).filter(o=>r[o]?false:r[o]=true),this}hide(t){return L("<string>",[t],arguments.length),f(this,G,"f").hiddenOptions.push(t),this}implies(t,n){return L("<string|object> [number|string|array]",[t,n],arguments.length),f(this,$e,"f").implies(t,n),this}locale(t){return L("[string]",[t],arguments.length),t===void 0?(this[Am](),f(this,J,"f").y18n.getLocale()):(M(this,Hr,false),f(this,J,"f").y18n.setLocale(t),this)}middleware(t,n,i){return f(this,wt,"f").addMiddleware(t,!!n,i)}nargs(t,n){return L("<string|object|array> [number]",[t,n],arguments.length),this[ti](this.nargs.bind(this),"narg",t,n),this}normalize(t){return L("<array|string>",[t],arguments.length),this[Er]("normalize",t),this}number(t){return L("<array|string>",[t],arguments.length),this[Er]("number",t),this[nn](t),this}option(t,n){if(L("<string|object> [object]",[t,n],arguments.length),typeof t=="object")Object.keys(t).forEach(i=>{this.options(i,t[i]);});else {typeof n!="object"&&(n={}),this[nn](t),f(this,Jt,"f")&&(t==="version"||n?.alias==="version")&&this[J_](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
140
- `),void 0,"versionWarning"),f(this,G,"f").key[t]=true,n.alias&&this.alias(t,n.alias);let i=n.deprecate||n.deprecated;i&&this.deprecateOption(t,i);let r=n.demand||n.required||n.require;r&&this.demand(t,r),n.demandOption&&this.demandOption(t,typeof n.demandOption=="string"?n.demandOption:void 0),n.conflicts&&this.conflicts(t,n.conflicts),"default"in n&&this.default(t,n.default),n.implies!==void 0&&this.implies(t,n.implies),n.nargs!==void 0&&this.nargs(t,n.nargs),n.config&&this.config(t,n.configParser),n.normalize&&this.normalize(t),n.choices&&this.choices(t,n.choices),n.coerce&&this.coerce(t,n.coerce),n.group&&this.group(t,n.group),(n.boolean||n.type==="boolean")&&(this.boolean(t),n.alias&&this.boolean(n.alias)),(n.array||n.type==="array")&&(this.array(t),n.alias&&this.array(n.alias)),(n.number||n.type==="number")&&(this.number(t),n.alias&&this.number(n.alias)),(n.string||n.type==="string")&&(this.string(t),n.alias&&this.string(n.alias)),(n.count||n.type==="count")&&this.count(t),typeof n.global=="boolean"&&this.global(t,n.global),n.defaultDescription&&(f(this,G,"f").defaultDescription[t]=n.defaultDescription),n.skipValidation&&this.skipValidation(t);let o=n.describe||n.description||n.desc,a=f(this,Q,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof o=="string")&&this.describe(t,o),n.hidden&&this.hide(t),n.requiresArg&&this.requiresArg(t);}return this}options(t,n){return this.option(t,n)}parse(t,n,i){L("[string|array] [function|boolean|object] [function]",[t,n,i],arguments.length),this[K_](),typeof t>"u"&&(t=f(this,Sr,"f")),typeof n=="object"&&(M(this,Jr,n),n=i),typeof n=="function"&&(M(this,gt,n),n=false),n||M(this,Sr,t),f(this,gt,"f")&&M(this,Et,false);let r=this[so](t,!!n),o=this.parsed;return f(this,ut,"f").setParsed(this.parsed),ye(r)?r.then(a=>(f(this,gt,"f")&&f(this,gt,"f").call(this,f(this,xr,"f"),a,f(this,Be,"f")),a)).catch(a=>{throw f(this,gt,"f")&&f(this,gt,"f")(a,this.parsed.argv,f(this,Be,"f")),a}).finally(()=>{this[Um](),this.parsed=o;}):(f(this,gt,"f")&&f(this,gt,"f").call(this,f(this,xr,"f"),r,f(this,Be,"f")),this[Um](),this.parsed=o,r)}parseAsync(t,n,i){let r=this.parse(t,n,i);return ye(r)?r:Promise.resolve(r)}parseSync(t,n,i){let r=this.parse(t,n,i);if(ye(r))throw new Re(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return r}parserConfiguration(t){return L("<object>",[t],arguments.length),M(this,Zs,t),this}pkgConf(t,n){L("<string> [string]",[t,n],arguments.length);let i=null,r=this[Tm](n||f(this,qr,"f"));return r[t]&&typeof r[t]=="object"&&(i=oo(r[t],n||f(this,qr,"f"),this[tn]()["deep-merge-config"]||false,f(this,J,"f")),f(this,G,"f").configObjects=(f(this,G,"f").configObjects||[]).concat(i)),this}positional(t,n){L("<string> <object>",[t,n],arguments.length);let i=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];n=_r(n,(a,s)=>a==="type"&&!["string","number","boolean"].includes(s)?false:i.includes(a));let r=f(this,ao,"f").fullCommands[f(this,ao,"f").fullCommands.length-1],o=r?f(this,Ae,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return Xn(o).forEach(a=>{let s=o[a];Array.isArray(s)?s.indexOf(t)!==-1&&(n[a]=true):s[t]&&!(a in n)&&(n[a]=s[t]);}),this.group(t,f(this,Q,"f").getPositionalGroupName()),this.option(t,n)}recommendCommands(t=true){return L("[boolean]",[t],arguments.length),M(this,Ws,t),this}required(t,n,i){return this.demand(t,n,i)}require(t,n,i){return this.demand(t,n,i)}requiresArg(t){return L("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&f(this,G,"f").narg[t]?this:(this[ti](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,n){return L("[string] [string]",[t,n],arguments.length),t=t||this.$0,f(this,Yr,"f").log(f(this,ut,"f").generateCompletionScript(t,n||f(this,mt,"f")||"completion")),this}showHelp(t){if(L("[string|function]",[t],arguments.length),M(this,ht,true),!f(this,Q,"f").hasCachedHelpMessage()){if(!this.parsed){let i=this[so](f(this,Sr,"f"),void 0,void 0,0,true);if(ye(i))return i.then(()=>{f(this,Q,"f").showHelp(t);}),this}let n=f(this,Ae,"f").runDefaultBuilderOn(this);if(ye(n))return n.then(()=>{f(this,Q,"f").showHelp(t);}),this}return f(this,Q,"f").showHelp(t),this}scriptName(t){return this.customScriptName=true,this.$0=t,this}showHelpOnFail(t,n){return L("[boolean|string] [string]",[t,n],arguments.length),f(this,Q,"f").showHelpOnFail(t,n),this}showVersion(t){return L("[string|function]",[t],arguments.length),f(this,Q,"f").showVersion(t),this}skipValidation(t){return L("<array|string>",[t],arguments.length),this[Er]("skipValidation",t),this}strict(t){return L("[boolean]",[t],arguments.length),M(this,Xr,t!==false),this}strictCommands(t){return L("[boolean]",[t],arguments.length),M(this,Qr,t!==false),this}strictOptions(t){return L("[boolean]",[t],arguments.length),M(this,en,t!==false),this}string(t){return L("<array|string>",[t],arguments.length),this[Er]("string",t),this[nn](t),this}terminalWidth(){return L([],0),f(this,J,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return L("<object>",[t],arguments.length),M(this,Hr,false),f(this,J,"f").y18n.updateLocale(t),this}usage(t,n,i,r){if(L("<string|null|undefined> [string|boolean] [function|object] [function]",[t,n,i,r],arguments.length),n!==void 0){if(tt(t,null,f(this,J,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,n,i,r);throw new Re(".usage() description must start with $0 if being used as alias for .command()")}else return f(this,Q,"f").usage(t),this}usageConfiguration(t){return L("<object>",[t],arguments.length),M(this,Gs,t),this}version(t,n,i){let r="version";if(L("[boolean|string] [string] [string]",[t,n,i],arguments.length),f(this,Jt,"f")&&(this[Rm](f(this,Jt,"f")),f(this,Q,"f").version(void 0),M(this,Jt,null)),arguments.length===0)i=this[eD](),t=r;else if(arguments.length===1){if(t===false)return this;i=t,t=r;}else arguments.length===2&&(i=n,n=void 0);return M(this,Jt,typeof t=="string"?t:r),n=n||f(this,Q,"f").deferY18nLookup("Show version number"),f(this,Q,"f").version(i||void 0),this.boolean(f(this,Jt,"f")),this.describe(f(this,Jt,"f"),n),this}wrap(t){return L("<number|null|undefined>",[t],arguments.length),f(this,Q,"f").wrap(t),this}[(Ae=new WeakMap,qr=new WeakMap,ao=new WeakMap,ut=new WeakMap,mt=new WeakMap,js=new WeakMap,xr=new WeakMap,Hr=new WeakMap,Ls=new WeakMap,Et=new WeakMap,Ms=new WeakMap,wt=new WeakMap,Yt=new WeakMap,ht=new WeakMap,$t=new WeakMap,Bs=new WeakMap,Yr=new WeakMap,Be=new WeakMap,G=new WeakMap,Vs=new WeakMap,Zs=new WeakMap,gt=new WeakMap,Jr=new WeakMap,ei=new WeakMap,Kr=new WeakMap,Sr=new WeakMap,Ws=new WeakMap,J=new WeakMap,Xr=new WeakMap,Qr=new WeakMap,en=new WeakMap,Q=new WeakMap,Gs=new WeakMap,Jt=new WeakMap,$e=new WeakMap,H_)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"];}catch{}return t}[Y_](){return {log:(...t)=>{this[qs]()||console.log(...t),M(this,ht,true),f(this,Be,"f").length&&M(this,Be,f(this,Be,"f")+`
141
- `),M(this,Be,f(this,Be,"f")+t.join(" "));},error:(...t)=>{this[qs]()||console.error(...t),M(this,ht,true),f(this,Be,"f").length&&M(this,Be,f(this,Be,"f")+`
142
- `),M(this,Be,f(this,Be,"f")+t.join(" "));}}}[Rm](t){Xn(f(this,G,"f")).forEach(n=>{if((r=>r==="configObjects")(n))return;let i=f(this,G,"f")[n];Array.isArray(i)?i.includes(t)&&i.splice(i.indexOf(t),1):typeof i=="object"&&delete i[t];}),delete f(this,Q,"f").getDescriptions()[t];}[J_](t,n,i){f(this,Ls,"f")[i]||(f(this,J,"f").process.emitWarning(t,n),f(this,Ls,"f")[i]=true);}[K_](){f(this,Ms,"f").push({options:f(this,G,"f"),configObjects:f(this,G,"f").configObjects.slice(0),exitProcess:f(this,Et,"f"),groups:f(this,Yt,"f"),strict:f(this,Xr,"f"),strictCommands:f(this,Qr,"f"),strictOptions:f(this,en,"f"),completionCommand:f(this,mt,"f"),output:f(this,Be,"f"),exitError:f(this,xr,"f"),hasOutput:f(this,ht,"f"),parsed:this.parsed,parseFn:f(this,gt,"f"),parseContext:f(this,Jr,"f")}),f(this,Q,"f").freeze(),f(this,$e,"f").freeze(),f(this,Ae,"f").freeze(),f(this,wt,"f").freeze();}[X_](){let t="",n;return /\b(node|iojs|electron)(\.exe)?$/.test(f(this,J,"f").process.argv()[0])?n=f(this,J,"f").process.argv().slice(1,2):n=f(this,J,"f").process.argv().slice(0,1),t=n.map(i=>{let r=this[dD](f(this,qr,"f"),i);return i.match(/^(\/|([a-zA-Z]:)?\\)/)&&r.length<i.length?r:i}).join(" ").trim(),f(this,J,"f").getEnv("_")&&f(this,J,"f").getProcessArgvBin()===f(this,J,"f").getEnv("_")&&(t=f(this,J,"f").getEnv("_").replace(`${f(this,J,"f").path.dirname(f(this,J,"f").process.execPath())}/`,"")),t}[tn](){return f(this,Zs,"f")}[Q_](){return f(this,Gs,"f")}[Am](){if(!f(this,Hr,"f"))return;let t=f(this,J,"f").getEnv("LC_ALL")||f(this,J,"f").getEnv("LC_MESSAGES")||f(this,J,"f").getEnv("LANG")||f(this,J,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""));}[eD](){return this[Tm]().version||"unknown"}[tD](t){let n=t["--"]?t["--"]:t._;for(let i=0,r;(r=n[i])!==void 0;i++)f(this,J,"f").Parser.looksLikeNumber(r)&&Number.isSafeInteger(Math.floor(parseFloat(`${r}`)))&&(n[i]=Number(r));return t}[Tm](t){let n=t||"*";if(f(this,ei,"f")[n])return f(this,ei,"f")[n];let i={};try{let r=t||f(this,J,"f").mainFilename;f(this,J,"f").path.extname(r)&&(r=f(this,J,"f").path.dirname(r));let o=f(this,J,"f").findUp(r,(a,s)=>{if(s.includes("package.json"))return "package.json"});tt(o,void 0,f(this,J,"f")),i=JSON.parse(f(this,J,"f").readFileSync(o,"utf8"));}catch{}return f(this,ei,"f")[n]=i||{},f(this,ei,"f")[n]}[Er](t,n){n=[].concat(n),n.forEach(i=>{i=this[Nm](i),f(this,G,"f")[t].push(i);});}[ti](t,n,i,r){this[Pm](t,n,i,r,(o,a,s)=>{f(this,G,"f")[o][a]=s;});}[Fm](t,n,i,r){this[Pm](t,n,i,r,(o,a,s)=>{f(this,G,"f")[o][a]=(f(this,G,"f")[o][a]||[]).concat(s);});}[Pm](t,n,i,r,o){if(Array.isArray(i))i.forEach(a=>{t(a,r);});else if((a=>typeof a=="object")(i))for(let a of Xn(i))t(a,i[a]);else o(n,this[Nm](i),r);}[Nm](t){return t==="__proto__"?"___proto___":t}[zm](t,n){return this[ti](this[zm].bind(this),"key",t,n),this}[Um](){var t,n,i,r,o,a,s,c,l,d,p,m;let h=f(this,Ms,"f").pop();tt(h,void 0,f(this,J,"f"));let y;t=this,n=this,i=this,r=this,o=this,a=this,s=this,c=this,l=this,d=this,p=this,m=this,{options:{set value(x){M(t,G,x);}}.value,configObjects:y,exitProcess:{set value(x){M(n,Et,x);}}.value,groups:{set value(x){M(i,Yt,x);}}.value,output:{set value(x){M(r,Be,x);}}.value,exitError:{set value(x){M(o,xr,x);}}.value,hasOutput:{set value(x){M(a,ht,x);}}.value,parsed:this.parsed,strict:{set value(x){M(s,Xr,x);}}.value,strictCommands:{set value(x){M(c,Qr,x);}}.value,strictOptions:{set value(x){M(l,en,x);}}.value,completionCommand:{set value(x){M(d,mt,x);}}.value,parseFn:{set value(x){M(p,gt,x);}}.value,parseContext:{set value(x){M(m,Jr,x);}}.value}=h,f(this,G,"f").configObjects=y,f(this,Q,"f").unfreeze(),f(this,$e,"f").unfreeze(),f(this,Ae,"f").unfreeze(),f(this,wt,"f").unfreeze();}[rD](t,n){return Gr(n,i=>(t(i),i))}getInternalMethods(){return {getCommandInstance:this[nD].bind(this),getContext:this[iD].bind(this),getHasOutput:this[oD].bind(this),getLoggerInstance:this[aD].bind(this),getParseContext:this[sD].bind(this),getParserConfiguration:this[tn].bind(this),getUsageConfiguration:this[Q_].bind(this),getUsageInstance:this[uD].bind(this),getValidationInstance:this[cD].bind(this),hasParseCallback:this[qs].bind(this),isGlobalContext:this[lD].bind(this),postProcess:this[rn].bind(this),reset:this[jm].bind(this),runValidation:this[Lm].bind(this),runYargsParserAndExecuteCommands:this[so].bind(this),setHasOutput:this[pD].bind(this)}}[nD](){return f(this,Ae,"f")}[iD](){return f(this,ao,"f")}[oD](){return f(this,ht,"f")}[aD](){return f(this,Yr,"f")}[sD](){return f(this,Jr,"f")||{}}[uD](){return f(this,Q,"f")}[cD](){return f(this,$e,"f")}[qs](){return !!f(this,gt,"f")}[lD](){return f(this,Bs,"f")}[rn](t,n,i,r){return i||ye(t)||(n||(t=this[H_](t)),(this[tn]()["parse-positional-numbers"]||this[tn]()["parse-positional-numbers"]===void 0)&&(t=this[tD](t)),r&&(t=Wr(t,this,f(this,wt,"f").getMiddleware(),false))),t}[jm](t={}){M(this,G,f(this,G,"f")||{});let n={};n.local=f(this,G,"f").local||[],n.configObjects=f(this,G,"f").configObjects||[];let i={};n.local.forEach(a=>{i[a]=true,(t[a]||[]).forEach(s=>{i[s]=true;});}),Object.assign(f(this,Kr,"f"),Object.keys(f(this,Yt,"f")).reduce((a,s)=>{let c=f(this,Yt,"f")[s].filter(l=>!(l in i));return c.length>0&&(a[s]=c),a},{})),M(this,Yt,{});let r=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return r.forEach(a=>{n[a]=(f(this,G,"f")[a]||[]).filter(s=>!i[s]);}),o.forEach(a=>{n[a]=_r(f(this,G,"f")[a],s=>!i[s]);}),n.envPrefix=f(this,G,"f").envPrefix,M(this,G,n),M(this,Q,f(this,Q,"f")?f(this,Q,"f").reset(i):L_(this,f(this,J,"f"))),M(this,$e,f(this,$e,"f")?f(this,$e,"f").reset(i):G_(this,f(this,Q,"f"),f(this,J,"f"))),M(this,Ae,f(this,Ae,"f")?f(this,Ae,"f").reset():z_(f(this,Q,"f"),f(this,$e,"f"),f(this,wt,"f"),f(this,J,"f"))),f(this,ut,"f")||M(this,ut,V_(this,f(this,Q,"f"),f(this,Ae,"f"),f(this,J,"f"))),f(this,wt,"f").reset(),M(this,mt,null),M(this,Be,""),M(this,xr,null),M(this,ht,false),this.parsed=false,this}[dD](t,n){return f(this,J,"f").path.relative(t,n)}[so](t,n,i,r=0,o=false){var a,s,c,l;let d=!!i||o;t=t||f(this,Sr,"f"),f(this,G,"f").__=f(this,J,"f").y18n.__,f(this,G,"f").configuration=this[tn]();let p=!!f(this,G,"f").configuration["populate--"],m=Object.assign({},f(this,G,"f").configuration,{"populate--":true}),h=f(this,J,"f").Parser.detailed(t,Object.assign({},f(this,G,"f"),{configuration:{"parse-positional-numbers":false,...m}})),y=Object.assign(h.argv,f(this,Jr,"f")),x,b=h.aliases,j=false,H=false;Object.keys(y).forEach(B=>{B===f(this,$t,"f")&&y[B]?j=true:B===f(this,Jt,"f")&&y[B]&&(H=true);}),y.$0=this.$0,this.parsed=h,r===0&&f(this,Q,"f").clearCachedHelpMessage();try{if(this[Am](),n)return this[rn](y,p,!!i,!1);f(this,$t,"f")&&[f(this,$t,"f")].concat(b[f(this,$t,"f")]||[]).filter(re=>re.length>1).includes(""+y._[y._.length-1])&&(y._.pop(),j=!0),M(this,Bs,!1,"f");let B=f(this,Ae,"f").getCommands(),A=!((a=f(this,ut,"f"))===null||a===void 0)&&a.completionKey?[(s=f(this,ut,"f"))===null||s===void 0?void 0:s.completionKey,...(l=this.getAliases()[(c=f(this,ut,"f"))===null||c===void 0?void 0:c.completionKey])!==null&&l!==void 0?l:[]].some(z=>Object.prototype.hasOwnProperty.call(y,z)):!1,k=j||A||o;if(y._.length){if(B.length){let z;for(let re=r||0,ce;y._[re]!==void 0;re++)if(ce=String(y._[re]),B.includes(ce)&&ce!==f(this,mt,"f")){let be=f(this,Ae,"f").runCommand(ce,this,h,re+1,o,j||H||o);return this[rn](be,p,!!i,!1)}else if(!z&&ce!==f(this,mt,"f")){z=ce;break}!f(this,Ae,"f").hasDefaultCommand()&&f(this,Ws,"f")&&z&&!k&&f(this,$e,"f").recommendCommands(z,B);}f(this,mt,"f")&&y._.includes(f(this,mt,"f"))&&!A&&(f(this,Et,"f")&&Dr(!0),this.showCompletionScript(),this.exit(0));}if(f(this,Ae,"f").hasDefaultCommand()&&!k){let z=f(this,Ae,"f").runCommand(null,this,h,0,o,j||H||o);return this[rn](z,p,!!i,!1)}if(A){f(this,Et,"f")&&Dr(!0),t=[].concat(t);let z=t.slice(t.indexOf(`--${f(this,ut,"f").completionKey}`)+1);return f(this,ut,"f").getCompletion(z,(re,ce)=>{if(re)throw new Re(re.message);(ce||[]).forEach(be=>{f(this,Yr,"f").log(be);}),this.exit(0);}),this[rn](y,!p,!!i,!1)}if(f(this,ht,"f")||(j?(f(this,Et,"f")&&Dr(!0),d=!0,this.showHelp(z=>{f(this,Yr,"f").log(z),this.exit(0);})):H&&(f(this,Et,"f")&&Dr(!0),d=!0,f(this,Q,"f").showVersion("log"),this.exit(0))),!d&&f(this,G,"f").skipValidation.length>0&&(d=Object.keys(y).some(z=>f(this,G,"f").skipValidation.indexOf(z)>=0&&y[z]===!0)),!d){if(h.error)throw new Re(h.error.message);if(!A){let z=this[Lm](b,{},h.error);i||(x=Wr(y,this,f(this,wt,"f").getMiddleware(),!0)),x=this[rD](z,x??y),ye(x)&&!i&&(x=x.then(()=>Wr(y,this,f(this,wt,"f").getMiddleware(),!1)));}}}catch(B){if(B instanceof Re)f(this,Q,"f").fail(B.message,B);else throw B}return this[rn](x??y,p,!!i,true)}[Lm](t,n,i,r){let o={...this.getDemandedOptions()};return a=>{if(i)throw new Re(i.message);f(this,$e,"f").nonOptionCount(a),f(this,$e,"f").requiredArguments(a,o);let s=false;f(this,Qr,"f")&&(s=f(this,$e,"f").unknownCommands(a)),f(this,Xr,"f")&&!s?f(this,$e,"f").unknownArguments(a,t,n,!!r):f(this,en,"f")&&f(this,$e,"f").unknownArguments(a,t,{},false,false),f(this,$e,"f").limitedChoices(a),f(this,$e,"f").implications(a),f(this,$e,"f").conflicting(a);}}[pD](){M(this,ht,true);}[nn](t){if(typeof t=="string")f(this,G,"f").key[t]=true;else for(let n of t)f(this,G,"f").key[n]=true;}};function U_(e){return !!e&&typeof e.getInternalMethods=="function"}var fR=fD(wm),mD=fR;var hR=Xa({version:Nn()});function Hs(){let e=readFileSync(new URL("../package.json",import.meta.url),"utf8");return hR.parse(JSON.parse(e)).version}var gR=ge(`
135
+ `;var jm=class{constructor(t,n,i,r){var o,a,s;this.yargs=t,this.usage=n,this.command=i,this.shim=r,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(s=((o=this.shim.getEnv("SHELL"))===null||o===void 0?void 0:o.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&s!==void 0?s:false;}defaultCompletion(t,n,i,r){let o=this.command.getCommandHandlers();for(let s=0,c=t.length;s<c;++s)if(o[t[s]]&&o[t[s]].builder){let l=o[t[s]].builder;if(Vs(l)){this.indexAfterLastReset=s+1;let d=this.yargs.getInternalMethods().reset();return l(d,true),d.argv}}let a=[];this.commandCompletions(a,t,i),this.optionCompletions(a,t,n,i),this.choicesFromOptionsCompletions(a,t,n,i),this.choicesFromPositionalsCompletions(a,t,n,i),r(null,a);}commandCompletions(t,n,i){let r=this.yargs.getInternalMethods().getContext().commands;!i.match(/^-/)&&r[r.length-1]!==i&&!this.previousArgHasChoices(n)&&this.usage.getCommands().forEach(o=>{let a=$r(o[0]).cmd;if(n.indexOf(a)===-1)if(!this.zshShell)t.push(a);else {let s=o[1]||"";t.push(a.replace(/:/g,"\\:")+":"+s);}});}optionCompletions(t,n,i,r){if((r.match(/^-/)||r===""&&t.length===0)&&!this.previousArgHasChoices(n)){let o=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(o.key).forEach(s=>{let c=!!o.configuration["boolean-negation"]&&o.boolean.includes(s);!a.includes(s)&&!o.hiddenOptions.includes(s)&&!this.argsContainKey(n,s,c)&&this.completeOptionKey(s,t,r,c&&!!o.default[s]);});}}choicesFromOptionsCompletions(t,n,i,r){if(this.previousArgHasChoices(n)){let o=this.getPreviousArgChoices(n);o&&o.length>0&&t.push(...o.map(a=>a.replace(/:/g,"\\:")));}}choicesFromPositionalsCompletions(t,n,i,r){if(r===""&&t.length>0&&this.previousArgHasChoices(n))return;let o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),s=o[i._.length-a-1];if(!s)return;let c=this.yargs.getOptions().choices[s]||[];for(let l of c)l.startsWith(r)&&t.push(l.replace(/:/g,"\\:"));}getPreviousArgChoices(t){if(t.length<1)return;let n=t[t.length-1],i="";if(!n.startsWith("-")&&t.length>1&&(i=n,n=t[t.length-2]),!n.startsWith("-"))return;let r=n.replace(/^-+/,""),o=this.yargs.getOptions(),a=[r,...this.yargs.getAliases()[r]||[]],s;for(let c of a)if(Object.prototype.hasOwnProperty.call(o.key,c)&&Array.isArray(o.choices[c])){s=o.choices[c];break}if(s)return s.filter(c=>!i||c.startsWith(i))}previousArgHasChoices(t){let n=this.getPreviousArgChoices(t);return n!==void 0&&n.length>0}argsContainKey(t,n,i){let r=o=>t.indexOf((/^[^0-9]$/.test(o)?"-":"--")+o)!==-1;if(r(n)||i&&r(`no-${n}`))return true;if(this.aliases){for(let o of this.aliases[n])if(r(o))return true}return false}completeOptionKey(t,n,i,r){var o,a,s,c;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),v=(a=(o=this===null||this===void 0?void 0:this.aliases)===null||o===void 0?void 0:o[t])===null||a===void 0?void 0:a.find(j=>{let H=h[j];return typeof H=="string"&&H.length>0}),x=v?h[v]:void 0,b=(c=(s=h[t])!==null&&s!==void 0?s:x)!==null&&c!==void 0?c:"";l=`${t.replace(/:/g,"\\:")}:${b.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`;}let d=h=>/^--/.test(h),p=h=>/^[^0-9]$/.test(h),m=!d(i)&&p(t)?"-":"--";n.push(m+l),r&&n.push(m+"no-"+l);}customCompletion(t,n,i,r){if(rt(this.customCompletionFunction,null,this.shim),CA(this.customCompletionFunction)){let o=this.customCompletionFunction(i,n);return be(o)?o.then(a=>{this.shim.process.nextTick(()=>{r(null,a);});}).catch(a=>{this.shim.process.nextTick(()=>{r(a,void 0);});}):r(null,o)}else return AA(this.customCompletionFunction)?this.customCompletionFunction(i,n,(o=r)=>this.defaultCompletion(t,n,i,o),o=>{r(null,o);}):this.customCompletionFunction(i,n,o=>{r(null,o);})}getCompletion(t,n){let i=t.length?t[t.length-1]:"",r=this.yargs.parse(t,true),o=this.customCompletionFunction?a=>this.customCompletion(t,a,i,n):a=>this.defaultCompletion(t,a,i,n);return be(r)?r.then(o):o(r)}generateCompletionScript(t,n){let i=this.zshShell?aD:oD,r=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),i=i.replace(/{{app_name}}/g,r),i=i.replace(/{{completion_command}}/g,n),i.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t;}setParsed(t){this.aliases=t.aliases;}};function sD(e,t,n,i){return new jm(e,t,n,i)}function CA(e){return e.length<3}function AA(e){return e.length>3}function uD(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let n=[],i;for(i=0;i<=t.length;i++)n[i]=[i];let r;for(r=0;r<=e.length;r++)n[0][r]=r;for(i=1;i<=t.length;i++)for(r=1;r<=e.length;r++)t.charAt(i-1)===e.charAt(r-1)?n[i][r]=n[i-1][r-1]:i>1&&r>1&&t.charAt(i-2)===e.charAt(r-1)&&t.charAt(i-1)===e.charAt(r-2)?n[i][r]=n[i-2][r-2]+1:n[i][r]=Math.min(n[i-1][r-1]+1,Math.min(n[i][r-1]+1,n[i-1][r]+1));return n[t.length][e.length]}var cD=["$0","--","_"];function lD(e,t,n){let i=n.y18n.__,r=n.y18n.__n,o={};o.nonOptionCount=function(p){let m=e.getDemandedCommands(),v=p._.length+(p["--"]?p["--"].length:0)-e.getInternalMethods().getContext().commands.length;m._&&(v<m._.min||v>m._.max)&&(v<m._.min?m._.minMsg!==void 0?t.fail(m._.minMsg?m._.minMsg.replace(/\$0/g,v.toString()).replace(/\$1/,m._.min.toString()):null):t.fail(r("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",v,v.toString(),m._.min.toString())):v>m._.max&&(m._.maxMsg!==void 0?t.fail(m._.maxMsg?m._.maxMsg.replace(/\$0/g,v.toString()).replace(/\$1/,m._.max.toString()):null):t.fail(r("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",v,v.toString(),m._.max.toString()))));},o.positionalCount=function(p,m){m<p&&t.fail(r("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",m,m+"",p+""));},o.requiredArguments=function(p,m){let h=null;for(let v of Object.keys(m))(!Object.prototype.hasOwnProperty.call(p,v)||typeof p[v]>"u")&&(h=h||{},h[v]=m[v]);if(h){let v=[];for(let b of Object.keys(h)){let j=h[b];j&&v.indexOf(j)<0&&v.push(j);}let x=v.length?`
136
+ ${v.join(`
137
+ `)}`:"";t.fail(r("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+x));}},o.unknownArguments=function(p,m,h,v,x=true){var b;let j=e.getInternalMethods().getCommandInstance().getCommands(),H=[],B=e.getInternalMethods().getContext();if(Object.keys(p).forEach(R=>{!cD.includes(R)&&!Object.prototype.hasOwnProperty.call(h,R)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),R)&&!o.isValidAndSomeAliasIsNotNew(R,m)&&H.push(R);}),x&&(B.commands.length>0||j.length>0||v)&&p._.slice(B.commands.length).forEach(R=>{j.includes(""+R)||H.push(""+R);}),x){let k=((b=e.getDemandedCommands()._)===null||b===void 0?void 0:b.max)||0,N=B.commands.length+k;N<p._.length&&p._.slice(N).forEach(re=>{re=String(re),!B.commands.includes(re)&&!H.includes(re)&&H.push(re);});}H.length&&t.fail(r("Unknown argument: %s","Unknown arguments: %s",H.length,H.map(R=>R.trim()?R:`"${R}"`).join(", ")));},o.unknownCommands=function(p){let m=e.getInternalMethods().getCommandInstance().getCommands(),h=[],v=e.getInternalMethods().getContext();return (v.commands.length>0||m.length>0)&&p._.slice(v.commands.length).forEach(x=>{m.includes(""+x)||h.push(""+x);}),h.length>0?(t.fail(r("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),true):false},o.isValidAndSomeAliasIsNotNew=function(p,m){if(!Object.prototype.hasOwnProperty.call(m,p))return false;let h=e.parsed.newAliases;return [p,...m[p]].some(v=>!Object.prototype.hasOwnProperty.call(h,v)||!h[p])},o.limitedChoices=function(p){let m=e.getOptions(),h={};if(!Object.keys(m.choices).length)return;Object.keys(p).forEach(b=>{cD.indexOf(b)===-1&&Object.prototype.hasOwnProperty.call(m.choices,b)&&[].concat(p[b]).forEach(j=>{m.choices[b].indexOf(j)===-1&&j!==void 0&&(h[b]=(h[b]||[]).concat(j));});});let v=Object.keys(h);if(!v.length)return;let x=i("Invalid values:");v.forEach(b=>{x+=`
138
+ ${i("Argument: %s, Given: %s, Choices: %s",b,t.stringifiedValues(h[b]),t.stringifiedValues(m.choices[b]))}`;}),t.fail(x);};let a={};o.implies=function(p,m){L("<string|object> [array|number|string]",[p,m],arguments.length),typeof p=="object"?Object.keys(p).forEach(h=>{o.implies(h,p[h]);}):(e.global(p),a[p]||(a[p]=[]),Array.isArray(m)?m.forEach(h=>o.implies(p,h)):(rt(m,void 0,n),a[p].push(m)));},o.getImplied=function(){return a};function s(d,p){let m=Number(p);return p=isNaN(m)?p:m,typeof p=="number"?p=d._.length>=p:p.match(/^--no-.+/)?(p=p.match(/^--no-(.+)/)[1],p=!Object.prototype.hasOwnProperty.call(d,p)):p=Object.prototype.hasOwnProperty.call(d,p),p}o.implications=function(p){let m=[];if(Object.keys(a).forEach(h=>{let v=h;(a[h]||[]).forEach(x=>{let b=v,j=x;b=s(p,b),x=s(p,x),b&&!x&&m.push(` ${v} -> ${j}`);});}),m.length){let h=`${i("Implications failed:")}
139
+ `;m.forEach(v=>{h+=v;}),t.fail(h);}};let c={};o.conflicts=function(p,m){L("<string|object> [array|string]",[p,m],arguments.length),typeof p=="object"?Object.keys(p).forEach(h=>{o.conflicts(h,p[h]);}):(e.global(p),c[p]||(c[p]=[]),Array.isArray(m)?m.forEach(h=>o.conflicts(p,h)):c[p].push(m));},o.getConflicting=()=>c,o.conflicting=function(p){Object.keys(p).forEach(m=>{c[m]&&c[m].forEach(h=>{h&&p[m]!==void 0&&p[h]!==void 0&&t.fail(i("Arguments %s and %s are mutually exclusive",m,h));});}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(c).forEach(m=>{c[m].forEach(h=>{h&&p[n.Parser.camelCase(m)]!==void 0&&p[n.Parser.camelCase(h)]!==void 0&&t.fail(i("Arguments %s and %s are mutually exclusive",m,h));});});},o.recommendCommands=function(p,m){m=m.sort((b,j)=>j.length-b.length);let v=null,x=1/0;for(let b=0,j;(j=m[b])!==void 0;b++){let H=uD(p,j);H<=3&&H<x&&(x=H,v=j);}v&&t.fail(i("Did you mean %s?",v));},o.reset=function(p){return a=Ir(a,m=>!p[m]),c=Ir(c,m=>!p[m]),o};let l=[];return o.freeze=function(){l.push({implied:a,conflicting:c});},o.unfreeze=function(){let p=l.pop();rt(p,void 0,n),{implied:a,conflicting:c}=p;},o}var Lm=[],ao;function so(e,t,n,i){ao=i;let r={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return r;let o=/\.json|\..*rc$/.test(e.extends),a=null;if(o)a=PA(t,e.extends);else try{a=import.meta.resolve(e.extends);}catch{return e}RA(a),Lm.push(a),r=o?JSON.parse(ao.readFileSync(a,"utf8")):i.require(e.extends),delete e.extends,r=so(r,ao.path.dirname(a),n,ao);}return Lm=[],n?dD(r,e):Object.assign({},r,e)}function RA(e){if(Lm.indexOf(e)>-1)throw new Pe(`Circular extended configurations: '${e}'.`)}function PA(e,t){return ao.path.resolve(e,t)}function dD(e,t){let n={};function i(r){return r&&typeof r=="object"&&!Array.isArray(r)}Object.assign(n,e);for(let r of Object.keys(t))i(t[r])&&i(n[r])?n[r]=dD(e[r],t[r]):n[r]=t[r];return n}var M=function(e,t,n,i,r){if(typeof t=="function"?e!==t||true:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n},f=function(e,t,n,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},Fe,en,uo,ut,ht,Ws,kr,tn,Gs,St,qs,Et,Xt,gt,wt,Hs,rn,Ze,G,Ys,Js,yt,nn,ei,on,Cr,Ks,J,an,sn,un,Q,Xs,Qt,ke;function AD(e){return (t=[],n=e.process.cwd(),i)=>{let r=new Km(t,n,i,e);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:true}),r.help(),r.version(),r}}var pD=Symbol("copyDoubleDash"),fD=Symbol("copyDoubleDash"),Mm=Symbol("deleteFromParserHintObject"),mD=Symbol("emitWarning"),hD=Symbol("freeze"),gD=Symbol("getDollarZero"),cn=Symbol("getParserConfiguration"),yD=Symbol("getUsageConfiguration"),Bm=Symbol("guessLocale"),vD=Symbol("guessVersion"),bD=Symbol("parsePositionalNumbers"),Vm=Symbol("pkgUp"),Ar=Symbol("populateParserHintArray"),ti=Symbol("populateParserHintSingleValueDictionary"),Zm=Symbol("populateParserHintArrayDictionary"),Wm=Symbol("populateParserHintDictionary"),Gm=Symbol("sanitizeKey"),qm=Symbol("setKey"),Hm=Symbol("unfreeze"),_D=Symbol("validateAsync"),DD=Symbol("getCommandInstance"),xD=Symbol("getContext"),SD=Symbol("getHasOutput"),ED=Symbol("getLoggerInstance"),wD=Symbol("getParseContext"),$D=Symbol("getUsageInstance"),ID=Symbol("getValidationInstance"),Qs=Symbol("hasParseCallback"),OD=Symbol("isGlobalContext"),ln=Symbol("postProcess"),kD=Symbol("rebase"),Ym=Symbol("reset"),co=Symbol("runYargsParserAndExecuteCommands"),Jm=Symbol("runValidation"),CD=Symbol("setHasOutput"),dn=Symbol("kTrackManuallySetKeys"),FA="en_US",Km=class{constructor(t=[],n,i,r){this.customScriptName=false,this.parsed=false,Fe.set(this,void 0),en.set(this,void 0),uo.set(this,{commands:[],fullCommands:[]}),ut.set(this,null),ht.set(this,null),Ws.set(this,"show-hidden"),kr.set(this,null),tn.set(this,true),Gs.set(this,{}),St.set(this,true),qs.set(this,[]),Et.set(this,void 0),Xt.set(this,{}),gt.set(this,false),wt.set(this,null),Hs.set(this,true),rn.set(this,void 0),Ze.set(this,""),G.set(this,void 0),Ys.set(this,void 0),Js.set(this,{}),yt.set(this,null),nn.set(this,null),ei.set(this,{}),on.set(this,{}),Cr.set(this,void 0),Ks.set(this,false),J.set(this,void 0),an.set(this,false),sn.set(this,false),un.set(this,false),Q.set(this,void 0),Xs.set(this,{}),Qt.set(this,null),ke.set(this,void 0),M(this,J,r),M(this,Cr,t),M(this,en,n),M(this,Ys,i),M(this,Et,new Bs(this)),this.$0=this[gD](),this[Ym](),M(this,Fe,f(this,Fe,"f")),M(this,Q,f(this,Q,"f")),M(this,ke,f(this,ke,"f")),M(this,G,f(this,G,"f")),f(this,G,"f").showHiddenOpt=f(this,Ws,"f"),M(this,rn,this[fD]()),f(this,J,"f").y18n.setLocale(FA);}addHelpOpt(t,n){let i="help";return L("[string|boolean] [string]",[t,n],arguments.length),f(this,wt,"f")&&(this[Mm](f(this,wt,"f")),M(this,wt,null)),t===false&&n===void 0?this:(M(this,wt,typeof t=="string"?t:i),this.boolean(f(this,wt,"f")),this.describe(f(this,wt,"f"),n||f(this,Q,"f").deferY18nLookup("Show help")),this)}help(t,n){return this.addHelpOpt(t,n)}addShowHiddenOpt(t,n){if(L("[string|boolean] [string]",[t,n],arguments.length),t===false&&n===void 0)return this;let i=typeof t=="string"?t:f(this,Ws,"f");return this.boolean(i),this.describe(i,n||f(this,Q,"f").deferY18nLookup("Show hidden options")),f(this,G,"f").showHiddenOpt=i,this}showHidden(t,n){return this.addShowHiddenOpt(t,n)}alias(t,n){return L("<object|string|array> [string|array]",[t,n],arguments.length),this[Zm](this.alias.bind(this),"alias",t,n),this}array(t){return L("<array|string>",[t],arguments.length),this[Ar]("array",t),this[dn](t),this}boolean(t){return L("<array|string>",[t],arguments.length),this[Ar]("boolean",t),this[dn](t),this}check(t,n){return L("<function> [boolean]",[t,n],arguments.length),this.middleware((i,r)=>Qr(()=>t(i,r.getOptions()),o=>(o?(typeof o=="string"||o instanceof Error)&&f(this,Q,"f").fail(o.toString(),o):f(this,Q,"f").fail(f(this,J,"f").y18n.__("Argument check failed: %s",t.toString())),i),o=>(f(this,Q,"f").fail(o.message?o.message:o.toString(),o),i)),false,n),this}choices(t,n){return L("<object|string|array> [string|array]",[t,n],arguments.length),this[Zm](this.choices.bind(this),"choices",t,n),this}coerce(t,n){if(L("<object|string|array> [function]",[t,n],arguments.length),Array.isArray(t)){if(!n)throw new Pe("coerce callback must be provided");for(let r of t)this.coerce(r,n);return this}else if(typeof t=="object"){for(let r of Object.keys(t))this.coerce(r,t[r]);return this}if(!n)throw new Pe("coerce callback must be provided");let i=t;return f(this,G,"f").key[i]=true,f(this,Et,"f").addCoerceMiddleware((r,o)=>{var a;let s=(a=o.getAliases()[i])!==null&&a!==void 0?a:[],c=[i,...s].filter(l=>Object.prototype.hasOwnProperty.call(r,l));return c.length===0?r:Qr(()=>n(r[c[0]]),l=>(c.forEach(d=>{r[d]=l;}),r),l=>{throw new Pe(l.message)})},i),this}conflicts(t,n){return L("<string|object> [string|array]",[t,n],arguments.length),f(this,ke,"f").conflicts(t,n),this}config(t="config",n,i){return L("[object|string] [string|function] [function]",[t,n,i],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=so(t,f(this,en,"f"),this[cn]()["deep-merge-config"]||false,f(this,J,"f")),f(this,G,"f").configObjects=(f(this,G,"f").configObjects||[]).concat(t),this):(typeof n=="function"&&(i=n,n=void 0),this.describe(t,n||f(this,Q,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(r=>{f(this,G,"f").config[r]=i||true;}),this)}completion(t,n,i){return L("[string] [string|boolean|function] [function]",[t,n,i],arguments.length),typeof n=="function"&&(i=n,n=void 0),M(this,ht,t||f(this,ht,"f")||"completion"),!n&&n!==false&&(n="generate completion script"),this.command(f(this,ht,"f"),n),i&&f(this,ut,"f").registerFunction(i),this}command(t,n,i,r,o,a){return L("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,n,i,r,o,a],arguments.length),f(this,Fe,"f").addHandler(t,n,i,r,o,a),this}commands(t,n,i,r,o,a){return this.command(t,n,i,r,o,a)}commandDir(t,n){L("<string> [object]",[t,n],arguments.length);let i=f(this,Ys,"f")||f(this,J,"f").require;return f(this,Fe,"f").addDirectory(t,i,f(this,J,"f").getCallerFile(),n),this}count(t){return L("<array|string>",[t],arguments.length),this[Ar]("count",t),this[dn](t),this}default(t,n,i){return L("<object|string|array> [*] [string]",[t,n,i],arguments.length),i&&(zm(t,f(this,J,"f")),f(this,G,"f").defaultDescription[t]=i),typeof n=="function"&&(zm(t,f(this,J,"f")),f(this,G,"f").defaultDescription[t]||(f(this,G,"f").defaultDescription[t]=f(this,Q,"f").functionDescription(n)),n=n.call()),this[ti](this.default.bind(this),"default",t,n),this}defaults(t,n,i){return this.default(t,n,i)}demandCommand(t=1,n,i,r){return L("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,n,i,r],arguments.length),typeof n!="number"&&(i=n,n=1/0),this.global("_",false),f(this,G,"f").demandedCommands._={min:t,max:n,minMsg:i,maxMsg:r},this}demand(t,n,i){return Array.isArray(n)?(n.forEach(r=>{rt(i,true,f(this,J,"f")),this.demandOption(r,i);}),n=1/0):typeof n!="number"&&(i=n,n=1/0),typeof t=="number"?(rt(i,true,f(this,J,"f")),this.demandCommand(t,n,i,i)):Array.isArray(t)?t.forEach(r=>{rt(i,true,f(this,J,"f")),this.demandOption(r,i);}):typeof i=="string"?this.demandOption(t,i):(i===true||typeof i>"u")&&this.demandOption(t),this}demandOption(t,n){return L("<object|string|array> [string]",[t,n],arguments.length),this[ti](this.demandOption.bind(this),"demandedOptions",t,n),this}deprecateOption(t,n){return L("<string> [string|boolean]",[t,n],arguments.length),f(this,G,"f").deprecatedOptions[t]=n,this}describe(t,n){return L("<object|string|array> [string]",[t,n],arguments.length),this[qm](t,true),f(this,Q,"f").describe(t,n),this}detectLocale(t){return L("<boolean>",[t],arguments.length),M(this,tn,t),this}env(t){return L("[string|boolean]",[t],arguments.length),t===false?delete f(this,G,"f").envPrefix:f(this,G,"f").envPrefix=t||"",this}epilogue(t){return L("<string>",[t],arguments.length),f(this,Q,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,n){return L("<string|array> [string]",[t,n],arguments.length),Array.isArray(t)?t.forEach(i=>this.example(...i)):f(this,Q,"f").example(t,n),this}exit(t,n){M(this,gt,true),M(this,kr,n),f(this,St,"f")&&f(this,J,"f").process.exit(t);}exitProcess(t=true){return L("[boolean]",[t],arguments.length),M(this,St,t),this}fail(t){if(L("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==false)throw new Pe("Invalid first argument. Expected function or boolean 'false'");return f(this,Q,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,n){return L("<array> [function]",[t,n],arguments.length),n?f(this,ut,"f").getCompletion(t,n):new Promise((i,r)=>{f(this,ut,"f").getCompletion(t,(o,a)=>{o?r(o):i(a);});})}getDemandedOptions(){return L([],0),f(this,G,"f").demandedOptions}getDemandedCommands(){return L([],0),f(this,G,"f").demandedCommands}getDeprecatedOptions(){return L([],0),f(this,G,"f").deprecatedOptions}getDetectLocale(){return f(this,tn,"f")}getExitProcess(){return f(this,St,"f")}getGroups(){return Object.assign({},f(this,Xt,"f"),f(this,on,"f"))}getHelp(){if(M(this,gt,true),!f(this,Q,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[co](f(this,Cr,"f"),void 0,void 0,0,true);if(be(n))return n.then(()=>f(this,Q,"f").help())}let t=f(this,Fe,"f").runDefaultBuilderOn(this);if(be(t))return t.then(()=>f(this,Q,"f").help())}return Promise.resolve(f(this,Q,"f").help())}getOptions(){return f(this,G,"f")}getStrict(){return f(this,an,"f")}getStrictCommands(){return f(this,sn,"f")}getStrictOptions(){return f(this,un,"f")}global(t,n){return L("<string|array> [boolean]",[t,n],arguments.length),t=[].concat(t),n!==false?f(this,G,"f").local=f(this,G,"f").local.filter(i=>t.indexOf(i)===-1):t.forEach(i=>{f(this,G,"f").local.includes(i)||f(this,G,"f").local.push(i);}),this}group(t,n){L("<string|array> <string>",[t,n],arguments.length);let i=f(this,on,"f")[n]||f(this,Xt,"f")[n];f(this,on,"f")[n]&&delete f(this,on,"f")[n];let r={};return f(this,Xt,"f")[n]=(i||[]).concat(t).filter(o=>r[o]?false:r[o]=true),this}hide(t){return L("<string>",[t],arguments.length),f(this,G,"f").hiddenOptions.push(t),this}implies(t,n){return L("<string|object> [number|string|array]",[t,n],arguments.length),f(this,ke,"f").implies(t,n),this}locale(t){return L("[string]",[t],arguments.length),t===void 0?(this[Bm](),f(this,J,"f").y18n.getLocale()):(M(this,tn,false),f(this,J,"f").y18n.setLocale(t),this)}middleware(t,n,i){return f(this,Et,"f").addMiddleware(t,!!n,i)}nargs(t,n){return L("<string|object|array> [number]",[t,n],arguments.length),this[ti](this.nargs.bind(this),"narg",t,n),this}normalize(t){return L("<array|string>",[t],arguments.length),this[Ar]("normalize",t),this}number(t){return L("<array|string>",[t],arguments.length),this[Ar]("number",t),this[dn](t),this}option(t,n){if(L("<string|object> [object]",[t,n],arguments.length),typeof t=="object")Object.keys(t).forEach(i=>{this.options(i,t[i]);});else {typeof n!="object"&&(n={}),this[dn](t),f(this,Qt,"f")&&(t==="version"||n?.alias==="version")&&this[mD](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
140
+ `),void 0,"versionWarning"),f(this,G,"f").key[t]=true,n.alias&&this.alias(t,n.alias);let i=n.deprecate||n.deprecated;i&&this.deprecateOption(t,i);let r=n.demand||n.required||n.require;r&&this.demand(t,r),n.demandOption&&this.demandOption(t,typeof n.demandOption=="string"?n.demandOption:void 0),n.conflicts&&this.conflicts(t,n.conflicts),"default"in n&&this.default(t,n.default),n.implies!==void 0&&this.implies(t,n.implies),n.nargs!==void 0&&this.nargs(t,n.nargs),n.config&&this.config(t,n.configParser),n.normalize&&this.normalize(t),n.choices&&this.choices(t,n.choices),n.coerce&&this.coerce(t,n.coerce),n.group&&this.group(t,n.group),(n.boolean||n.type==="boolean")&&(this.boolean(t),n.alias&&this.boolean(n.alias)),(n.array||n.type==="array")&&(this.array(t),n.alias&&this.array(n.alias)),(n.number||n.type==="number")&&(this.number(t),n.alias&&this.number(n.alias)),(n.string||n.type==="string")&&(this.string(t),n.alias&&this.string(n.alias)),(n.count||n.type==="count")&&this.count(t),typeof n.global=="boolean"&&this.global(t,n.global),n.defaultDescription&&(f(this,G,"f").defaultDescription[t]=n.defaultDescription),n.skipValidation&&this.skipValidation(t);let o=n.describe||n.description||n.desc,a=f(this,Q,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof o=="string")&&this.describe(t,o),n.hidden&&this.hide(t),n.requiresArg&&this.requiresArg(t);}return this}options(t,n){return this.option(t,n)}parse(t,n,i){L("[string|array] [function|boolean|object] [function]",[t,n,i],arguments.length),this[hD](),typeof t>"u"&&(t=f(this,Cr,"f")),typeof n=="object"&&(M(this,nn,n),n=i),typeof n=="function"&&(M(this,yt,n),n=false),n||M(this,Cr,t),f(this,yt,"f")&&M(this,St,false);let r=this[co](t,!!n),o=this.parsed;return f(this,ut,"f").setParsed(this.parsed),be(r)?r.then(a=>(f(this,yt,"f")&&f(this,yt,"f").call(this,f(this,kr,"f"),a,f(this,Ze,"f")),a)).catch(a=>{throw f(this,yt,"f")&&f(this,yt,"f")(a,this.parsed.argv,f(this,Ze,"f")),a}).finally(()=>{this[Hm](),this.parsed=o;}):(f(this,yt,"f")&&f(this,yt,"f").call(this,f(this,kr,"f"),r,f(this,Ze,"f")),this[Hm](),this.parsed=o,r)}parseAsync(t,n,i){let r=this.parse(t,n,i);return be(r)?r:Promise.resolve(r)}parseSync(t,n,i){let r=this.parse(t,n,i);if(be(r))throw new Pe(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return r}parserConfiguration(t){return L("<object>",[t],arguments.length),M(this,Js,t),this}pkgConf(t,n){L("<string> [string]",[t,n],arguments.length);let i=null,r=this[Vm](n||f(this,en,"f"));return r[t]&&typeof r[t]=="object"&&(i=so(r[t],n||f(this,en,"f"),this[cn]()["deep-merge-config"]||false,f(this,J,"f")),f(this,G,"f").configObjects=(f(this,G,"f").configObjects||[]).concat(i)),this}positional(t,n){L("<string> <object>",[t,n],arguments.length);let i=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];n=Ir(n,(a,s)=>a==="type"&&!["string","number","boolean"].includes(s)?false:i.includes(a));let r=f(this,uo,"f").fullCommands[f(this,uo,"f").fullCommands.length-1],o=r?f(this,Fe,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return Xn(o).forEach(a=>{let s=o[a];Array.isArray(s)?s.indexOf(t)!==-1&&(n[a]=true):s[t]&&!(a in n)&&(n[a]=s[t]);}),this.group(t,f(this,Q,"f").getPositionalGroupName()),this.option(t,n)}recommendCommands(t=true){return L("[boolean]",[t],arguments.length),M(this,Ks,t),this}required(t,n,i){return this.demand(t,n,i)}require(t,n,i){return this.demand(t,n,i)}requiresArg(t){return L("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&f(this,G,"f").narg[t]?this:(this[ti](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,n){return L("[string] [string]",[t,n],arguments.length),t=t||this.$0,f(this,rn,"f").log(f(this,ut,"f").generateCompletionScript(t,n||f(this,ht,"f")||"completion")),this}showHelp(t){if(L("[string|function]",[t],arguments.length),M(this,gt,true),!f(this,Q,"f").hasCachedHelpMessage()){if(!this.parsed){let i=this[co](f(this,Cr,"f"),void 0,void 0,0,true);if(be(i))return i.then(()=>{f(this,Q,"f").showHelp(t);}),this}let n=f(this,Fe,"f").runDefaultBuilderOn(this);if(be(n))return n.then(()=>{f(this,Q,"f").showHelp(t);}),this}return f(this,Q,"f").showHelp(t),this}scriptName(t){return this.customScriptName=true,this.$0=t,this}showHelpOnFail(t,n){return L("[boolean|string] [string]",[t,n],arguments.length),f(this,Q,"f").showHelpOnFail(t,n),this}showVersion(t){return L("[string|function]",[t],arguments.length),f(this,Q,"f").showVersion(t),this}skipValidation(t){return L("<array|string>",[t],arguments.length),this[Ar]("skipValidation",t),this}strict(t){return L("[boolean]",[t],arguments.length),M(this,an,t!==false),this}strictCommands(t){return L("[boolean]",[t],arguments.length),M(this,sn,t!==false),this}strictOptions(t){return L("[boolean]",[t],arguments.length),M(this,un,t!==false),this}string(t){return L("<array|string>",[t],arguments.length),this[Ar]("string",t),this[dn](t),this}terminalWidth(){return L([],0),f(this,J,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return L("<object>",[t],arguments.length),M(this,tn,false),f(this,J,"f").y18n.updateLocale(t),this}usage(t,n,i,r){if(L("<string|null|undefined> [string|boolean] [function|object] [function]",[t,n,i,r],arguments.length),n!==void 0){if(rt(t,null,f(this,J,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,n,i,r);throw new Pe(".usage() description must start with $0 if being used as alias for .command()")}else return f(this,Q,"f").usage(t),this}usageConfiguration(t){return L("<object>",[t],arguments.length),M(this,Xs,t),this}version(t,n,i){let r="version";if(L("[boolean|string] [string] [string]",[t,n,i],arguments.length),f(this,Qt,"f")&&(this[Mm](f(this,Qt,"f")),f(this,Q,"f").version(void 0),M(this,Qt,null)),arguments.length===0)i=this[vD](),t=r;else if(arguments.length===1){if(t===false)return this;i=t,t=r;}else arguments.length===2&&(i=n,n=void 0);return M(this,Qt,typeof t=="string"?t:r),n=n||f(this,Q,"f").deferY18nLookup("Show version number"),f(this,Q,"f").version(i||void 0),this.boolean(f(this,Qt,"f")),this.describe(f(this,Qt,"f"),n),this}wrap(t){return L("<number|null|undefined>",[t],arguments.length),f(this,Q,"f").wrap(t),this}[(Fe=new WeakMap,en=new WeakMap,uo=new WeakMap,ut=new WeakMap,ht=new WeakMap,Ws=new WeakMap,kr=new WeakMap,tn=new WeakMap,Gs=new WeakMap,St=new WeakMap,qs=new WeakMap,Et=new WeakMap,Xt=new WeakMap,gt=new WeakMap,wt=new WeakMap,Hs=new WeakMap,rn=new WeakMap,Ze=new WeakMap,G=new WeakMap,Ys=new WeakMap,Js=new WeakMap,yt=new WeakMap,nn=new WeakMap,ei=new WeakMap,on=new WeakMap,Cr=new WeakMap,Ks=new WeakMap,J=new WeakMap,an=new WeakMap,sn=new WeakMap,un=new WeakMap,Q=new WeakMap,Xs=new WeakMap,Qt=new WeakMap,ke=new WeakMap,pD)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"];}catch{}return t}[fD](){return {log:(...t)=>{this[Qs]()||console.log(...t),M(this,gt,true),f(this,Ze,"f").length&&M(this,Ze,f(this,Ze,"f")+`
141
+ `),M(this,Ze,f(this,Ze,"f")+t.join(" "));},error:(...t)=>{this[Qs]()||console.error(...t),M(this,gt,true),f(this,Ze,"f").length&&M(this,Ze,f(this,Ze,"f")+`
142
+ `),M(this,Ze,f(this,Ze,"f")+t.join(" "));}}}[Mm](t){Xn(f(this,G,"f")).forEach(n=>{if((r=>r==="configObjects")(n))return;let i=f(this,G,"f")[n];Array.isArray(i)?i.includes(t)&&i.splice(i.indexOf(t),1):typeof i=="object"&&delete i[t];}),delete f(this,Q,"f").getDescriptions()[t];}[mD](t,n,i){f(this,Gs,"f")[i]||(f(this,J,"f").process.emitWarning(t,n),f(this,Gs,"f")[i]=true);}[hD](){f(this,qs,"f").push({options:f(this,G,"f"),configObjects:f(this,G,"f").configObjects.slice(0),exitProcess:f(this,St,"f"),groups:f(this,Xt,"f"),strict:f(this,an,"f"),strictCommands:f(this,sn,"f"),strictOptions:f(this,un,"f"),completionCommand:f(this,ht,"f"),output:f(this,Ze,"f"),exitError:f(this,kr,"f"),hasOutput:f(this,gt,"f"),parsed:this.parsed,parseFn:f(this,yt,"f"),parseContext:f(this,nn,"f")}),f(this,Q,"f").freeze(),f(this,ke,"f").freeze(),f(this,Fe,"f").freeze(),f(this,Et,"f").freeze();}[gD](){let t="",n;return /\b(node|iojs|electron)(\.exe)?$/.test(f(this,J,"f").process.argv()[0])?n=f(this,J,"f").process.argv().slice(1,2):n=f(this,J,"f").process.argv().slice(0,1),t=n.map(i=>{let r=this[kD](f(this,en,"f"),i);return i.match(/^(\/|([a-zA-Z]:)?\\)/)&&r.length<i.length?r:i}).join(" ").trim(),f(this,J,"f").getEnv("_")&&f(this,J,"f").getProcessArgvBin()===f(this,J,"f").getEnv("_")&&(t=f(this,J,"f").getEnv("_").replace(`${f(this,J,"f").path.dirname(f(this,J,"f").process.execPath())}/`,"")),t}[cn](){return f(this,Js,"f")}[yD](){return f(this,Xs,"f")}[Bm](){if(!f(this,tn,"f"))return;let t=f(this,J,"f").getEnv("LC_ALL")||f(this,J,"f").getEnv("LC_MESSAGES")||f(this,J,"f").getEnv("LANG")||f(this,J,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""));}[vD](){return this[Vm]().version||"unknown"}[bD](t){let n=t["--"]?t["--"]:t._;for(let i=0,r;(r=n[i])!==void 0;i++)f(this,J,"f").Parser.looksLikeNumber(r)&&Number.isSafeInteger(Math.floor(parseFloat(`${r}`)))&&(n[i]=Number(r));return t}[Vm](t){let n=t||"*";if(f(this,ei,"f")[n])return f(this,ei,"f")[n];let i={};try{let r=t||f(this,J,"f").mainFilename;f(this,J,"f").path.extname(r)&&(r=f(this,J,"f").path.dirname(r));let o=f(this,J,"f").findUp(r,(a,s)=>{if(s.includes("package.json"))return "package.json"});rt(o,void 0,f(this,J,"f")),i=JSON.parse(f(this,J,"f").readFileSync(o,"utf8"));}catch{}return f(this,ei,"f")[n]=i||{},f(this,ei,"f")[n]}[Ar](t,n){n=[].concat(n),n.forEach(i=>{i=this[Gm](i),f(this,G,"f")[t].push(i);});}[ti](t,n,i,r){this[Wm](t,n,i,r,(o,a,s)=>{f(this,G,"f")[o][a]=s;});}[Zm](t,n,i,r){this[Wm](t,n,i,r,(o,a,s)=>{f(this,G,"f")[o][a]=(f(this,G,"f")[o][a]||[]).concat(s);});}[Wm](t,n,i,r,o){if(Array.isArray(i))i.forEach(a=>{t(a,r);});else if((a=>typeof a=="object")(i))for(let a of Xn(i))t(a,i[a]);else o(n,this[Gm](i),r);}[Gm](t){return t==="__proto__"?"___proto___":t}[qm](t,n){return this[ti](this[qm].bind(this),"key",t,n),this}[Hm](){var t,n,i,r,o,a,s,c,l,d,p,m;let h=f(this,qs,"f").pop();rt(h,void 0,f(this,J,"f"));let v;t=this,n=this,i=this,r=this,o=this,a=this,s=this,c=this,l=this,d=this,p=this,m=this,{options:{set value(x){M(t,G,x);}}.value,configObjects:v,exitProcess:{set value(x){M(n,St,x);}}.value,groups:{set value(x){M(i,Xt,x);}}.value,output:{set value(x){M(r,Ze,x);}}.value,exitError:{set value(x){M(o,kr,x);}}.value,hasOutput:{set value(x){M(a,gt,x);}}.value,parsed:this.parsed,strict:{set value(x){M(s,an,x);}}.value,strictCommands:{set value(x){M(c,sn,x);}}.value,strictOptions:{set value(x){M(l,un,x);}}.value,completionCommand:{set value(x){M(d,ht,x);}}.value,parseFn:{set value(x){M(p,yt,x);}}.value,parseContext:{set value(x){M(m,nn,x);}}.value}=h,f(this,G,"f").configObjects=v,f(this,Q,"f").unfreeze(),f(this,ke,"f").unfreeze(),f(this,Fe,"f").unfreeze(),f(this,Et,"f").unfreeze();}[_D](t,n){return Qr(n,i=>(t(i),i))}getInternalMethods(){return {getCommandInstance:this[DD].bind(this),getContext:this[xD].bind(this),getHasOutput:this[SD].bind(this),getLoggerInstance:this[ED].bind(this),getParseContext:this[wD].bind(this),getParserConfiguration:this[cn].bind(this),getUsageConfiguration:this[yD].bind(this),getUsageInstance:this[$D].bind(this),getValidationInstance:this[ID].bind(this),hasParseCallback:this[Qs].bind(this),isGlobalContext:this[OD].bind(this),postProcess:this[ln].bind(this),reset:this[Ym].bind(this),runValidation:this[Jm].bind(this),runYargsParserAndExecuteCommands:this[co].bind(this),setHasOutput:this[CD].bind(this)}}[DD](){return f(this,Fe,"f")}[xD](){return f(this,uo,"f")}[SD](){return f(this,gt,"f")}[ED](){return f(this,rn,"f")}[wD](){return f(this,nn,"f")||{}}[$D](){return f(this,Q,"f")}[ID](){return f(this,ke,"f")}[Qs](){return !!f(this,yt,"f")}[OD](){return f(this,Hs,"f")}[ln](t,n,i,r){return i||be(t)||(n||(t=this[pD](t)),(this[cn]()["parse-positional-numbers"]||this[cn]()["parse-positional-numbers"]===void 0)&&(t=this[bD](t)),r&&(t=Xr(t,this,f(this,Et,"f").getMiddleware(),false))),t}[Ym](t={}){M(this,G,f(this,G,"f")||{});let n={};n.local=f(this,G,"f").local||[],n.configObjects=f(this,G,"f").configObjects||[];let i={};n.local.forEach(a=>{i[a]=true,(t[a]||[]).forEach(s=>{i[s]=true;});}),Object.assign(f(this,on,"f"),Object.keys(f(this,Xt,"f")).reduce((a,s)=>{let c=f(this,Xt,"f")[s].filter(l=>!(l in i));return c.length>0&&(a[s]=c),a},{})),M(this,Xt,{});let r=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return r.forEach(a=>{n[a]=(f(this,G,"f")[a]||[]).filter(s=>!i[s]);}),o.forEach(a=>{n[a]=Ir(f(this,G,"f")[a],s=>!i[s]);}),n.envPrefix=f(this,G,"f").envPrefix,M(this,G,n),M(this,Q,f(this,Q,"f")?f(this,Q,"f").reset(i):iD(this,f(this,J,"f"))),M(this,ke,f(this,ke,"f")?f(this,ke,"f").reset(i):lD(this,f(this,Q,"f"),f(this,J,"f"))),M(this,Fe,f(this,Fe,"f")?f(this,Fe,"f").reset():tD(f(this,Q,"f"),f(this,ke,"f"),f(this,Et,"f"),f(this,J,"f"))),f(this,ut,"f")||M(this,ut,sD(this,f(this,Q,"f"),f(this,Fe,"f"),f(this,J,"f"))),f(this,Et,"f").reset(),M(this,ht,null),M(this,Ze,""),M(this,kr,null),M(this,gt,false),this.parsed=false,this}[kD](t,n){return f(this,J,"f").path.relative(t,n)}[co](t,n,i,r=0,o=false){var a,s,c,l;let d=!!i||o;t=t||f(this,Cr,"f"),f(this,G,"f").__=f(this,J,"f").y18n.__,f(this,G,"f").configuration=this[cn]();let p=!!f(this,G,"f").configuration["populate--"],m=Object.assign({},f(this,G,"f").configuration,{"populate--":true}),h=f(this,J,"f").Parser.detailed(t,Object.assign({},f(this,G,"f"),{configuration:{"parse-positional-numbers":false,...m}})),v=Object.assign(h.argv,f(this,nn,"f")),x,b=h.aliases,j=false,H=false;Object.keys(v).forEach(B=>{B===f(this,wt,"f")&&v[B]?j=true:B===f(this,Qt,"f")&&v[B]&&(H=true);}),v.$0=this.$0,this.parsed=h,r===0&&f(this,Q,"f").clearCachedHelpMessage();try{if(this[Bm](),n)return this[ln](v,p,!!i,!1);f(this,wt,"f")&&[f(this,wt,"f")].concat(b[f(this,wt,"f")]||[]).filter(re=>re.length>1).includes(""+v._[v._.length-1])&&(v._.pop(),j=!0),M(this,Hs,!1,"f");let B=f(this,Fe,"f").getCommands(),R=!((a=f(this,ut,"f"))===null||a===void 0)&&a.completionKey?[(s=f(this,ut,"f"))===null||s===void 0?void 0:s.completionKey,...(l=this.getAliases()[(c=f(this,ut,"f"))===null||c===void 0?void 0:c.completionKey])!==null&&l!==void 0?l:[]].some(N=>Object.prototype.hasOwnProperty.call(v,N)):!1,k=j||R||o;if(v._.length){if(B.length){let N;for(let re=r||0,ce;v._[re]!==void 0;re++)if(ce=String(v._[re]),B.includes(ce)&&ce!==f(this,ht,"f")){let _e=f(this,Fe,"f").runCommand(ce,this,h,re+1,o,j||H||o);return this[ln](_e,p,!!i,!1)}else if(!N&&ce!==f(this,ht,"f")){N=ce;break}!f(this,Fe,"f").hasDefaultCommand()&&f(this,Ks,"f")&&N&&!k&&f(this,ke,"f").recommendCommands(N,B);}f(this,ht,"f")&&v._.includes(f(this,ht,"f"))&&!R&&(f(this,St,"f")&&Or(!0),this.showCompletionScript(),this.exit(0));}if(f(this,Fe,"f").hasDefaultCommand()&&!k){let N=f(this,Fe,"f").runCommand(null,this,h,0,o,j||H||o);return this[ln](N,p,!!i,!1)}if(R){f(this,St,"f")&&Or(!0),t=[].concat(t);let N=t.slice(t.indexOf(`--${f(this,ut,"f").completionKey}`)+1);return f(this,ut,"f").getCompletion(N,(re,ce)=>{if(re)throw new Pe(re.message);(ce||[]).forEach(_e=>{f(this,rn,"f").log(_e);}),this.exit(0);}),this[ln](v,!p,!!i,!1)}if(f(this,gt,"f")||(j?(f(this,St,"f")&&Or(!0),d=!0,this.showHelp(N=>{f(this,rn,"f").log(N),this.exit(0);})):H&&(f(this,St,"f")&&Or(!0),d=!0,f(this,Q,"f").showVersion("log"),this.exit(0))),!d&&f(this,G,"f").skipValidation.length>0&&(d=Object.keys(v).some(N=>f(this,G,"f").skipValidation.indexOf(N)>=0&&v[N]===!0)),!d){if(h.error)throw new Pe(h.error.message);if(!R){let N=this[Jm](b,{},h.error);i||(x=Xr(v,this,f(this,Et,"f").getMiddleware(),!0)),x=this[_D](N,x??v),be(x)&&!i&&(x=x.then(()=>Xr(v,this,f(this,Et,"f").getMiddleware(),!1)));}}}catch(B){if(B instanceof Pe)f(this,Q,"f").fail(B.message,B);else throw B}return this[ln](x??v,p,!!i,true)}[Jm](t,n,i,r){let o={...this.getDemandedOptions()};return a=>{if(i)throw new Pe(i.message);f(this,ke,"f").nonOptionCount(a),f(this,ke,"f").requiredArguments(a,o);let s=false;f(this,sn,"f")&&(s=f(this,ke,"f").unknownCommands(a)),f(this,an,"f")&&!s?f(this,ke,"f").unknownArguments(a,t,n,!!r):f(this,un,"f")&&f(this,ke,"f").unknownArguments(a,t,{},false,false),f(this,ke,"f").limitedChoices(a),f(this,ke,"f").implications(a),f(this,ke,"f").conflicting(a);}}[CD](){M(this,gt,true);}[dn](t){if(typeof t=="string")f(this,G,"f").key[t]=true;else for(let n of t)f(this,G,"f").key[n]=true;}};function rD(e){return !!e&&typeof e.getInternalMethods=="function"}var TA=AD(Tm),RD=TA;var NA=ts({version:Un()});function eu(){let e=readFileSync(new URL("../package.json",import.meta.url),"utf8");return NA.parse(JSON.parse(e)).version}var UA=ye(`
143
143
  query AuthViewer {
144
144
  currentUser {
145
145
  name
146
146
  email
147
147
  }
148
148
  }
149
- `);async function uo({serverUrl:e,token:t}){try{let i=(await ve({config:{ripploServerUrl:e,token:t},document:gR,variables:void 0})).currentUser;return i==null?{kind:"rejected"}:{kind:"ok",viewer:{email:i.email,name:i.name}}}catch(n){return Of(n)==="UNAUTHENTICATED"?{kind:"rejected"}:{kind:"unreachable",message:n instanceof Error?n.message:String(n)}}}var vR="https://ripplo.ai",yR=u.object({RIPPLO_SERVER_URL:u.string().min(1).default(vR)});u.object({RIPPLO_PROJECT_ID:u.string().min(1).optional()});function wr(){return yR.parse(process.env).RIPPLO_SERVER_URL}u.object({RIPPLO_APP_URL:u.url(),RIPPLO_AUTH_CONNECTION:u.string().check(u.minLength(1)).optional()});ge(`
149
+ `);async function lo({serverUrl:e,token:t}){try{let i=(await ve({config:{ripploServerUrl:e,token:t},document:UA,variables:void 0})).currentUser;return i==null?{kind:"rejected"}:{kind:"ok",viewer:{email:i.email,name:i.name}}}catch(n){return Pf(n)==="UNAUTHENTICATED"?{kind:"rejected"}:{kind:"unreachable",message:n instanceof Error?n.message:String(n)}}}var jA="https://ripplo.ai",LA=u.object({RIPPLO_SERVER_URL:u.string().min(1).default(jA)});u.object({RIPPLO_PROJECT_ID:u.string().min(1).optional()});function Rr(){return LA.parse(process.env).RIPPLO_SERVER_URL}u.object({RIPPLO_APP_URL:u.url(),RIPPLO_AUTH_CONNECTION:u.string().check(u.minLength(1)).optional()});ye(`
150
150
  query DaemonAuthConnection($projectId: String!, $name: String!) {
151
151
  authConnectionByName(projectId: $projectId, name: $name) {
152
152
  id
@@ -154,25 +154,25 @@ ${y.join(`
154
154
  webhookSecret
155
155
  }
156
156
  }
157
- `);function Lt(){let e=wr(),t=eo(e);return t==null?null:{serverUrl:e,token:t}}function Ge({serverUrl:e,token:t}){return {ripploServerUrl:e,token:t}}function hD(){return "Set RIPPLO_TOKEN to the environment's deploy token from environment settings."}function gD({name:e,sha:t,url:n}){return `Reported ${t.slice(0,7)} as live on ${e} (${n}).`}var bR=ge(`
157
+ `);function Mt(){let e=Rr(),t=ro(e);return t==null?null:{serverUrl:e,token:t}}function Ye({serverUrl:e,token:t}){return {ripploServerUrl:e,token:t}}function PD(){return "Set RIPPLO_TOKEN to the environment's deploy token from environment settings."}function FD({name:e,sha:t,url:n}){return `Reported ${t.slice(0,7)} as live on ${e} (${n}).`}var MA=ye(`
158
158
  mutation CliReportDeployment($environment: String!, $sha: String!) {
159
159
  reportDeployment(environment: $environment, sha: $sha) {
160
160
  name
161
161
  url
162
162
  }
163
163
  }
164
- `);async function vD({environment:e,sha:t}){let n=Lt();n==null&&(process.stderr.write(`${hD()}
165
- `),process.exit(1));let i=await ve({config:Ge(n),document:bR,variables:{environment:e,sha:t}});process.stdout.write(`${gD({...i.reportDeployment,sha:t})}
166
- `);}var DR="behavior.jsonl";function Vm(e){return Bm.join(xR(),"ripplo","runs",e)}function Ys(e){return Bm.join(Vm(e),DR)}function xR(){let e=process.env.XDG_CACHE_HOME;return e!=null&&e.length>0?e:Bm.join(homedir(),".cache")}var IR=31,OR=139;async function yD(e){let t=Lt();if(t==null)return ue({kind:"not-signed-in"});let n=await ve({config:Ge(t),document:kR,variables:{id:e}});if(n.run==null)return ue({kind:"not-found"});if(n.run.behaviorUrl==null)return ue({kind:"not-uploaded"});let i=await fetch(n.run.behaviorUrl);if(!i.ok)return ue({kind:"download-failed",status:i.status});let r=Ys(e);return await mkdir(Bm.dirname(r),{recursive:true}),await writeFile(r,CR(Buffer.from(await i.arrayBuffer()))),Ce({path:r,runId:e})}var kR=ge(`
164
+ `);async function TD({environment:e,sha:t}){let n=Mt();n==null&&(process.stderr.write(`${PD()}
165
+ `),process.exit(1));let i=await ve({config:Ye(n),document:MA,variables:{environment:e,sha:t}});process.stdout.write(`${FD({...i.reportDeployment,sha:t})}
166
+ `);}var VA="behavior.jsonl";function Qm(e){return Xm.join(ZA(),"ripplo","runs",e)}function tu(e){return Xm.join(Qm(e),VA)}function ZA(){let e=process.env.XDG_CACHE_HOME;return e!=null&&e.length>0?e:Xm.join(homedir(),".cache")}var YA=31,JA=139;async function zD(e){let t=Mt();if(t==null)return ue({kind:"not-signed-in"});let n=await ve({config:Ye(t),document:KA,variables:{id:e}});if(n.run==null)return ue({kind:"not-found"});if(n.run.behaviorUrl==null)return ue({kind:"not-uploaded"});let i=await fetch(n.run.behaviorUrl);if(!i.ok)return ue({kind:"download-failed",status:i.status});let r=tu(e);return await mkdir(Xm.dirname(r),{recursive:true}),await writeFile(r,XA(Buffer.from(await i.arrayBuffer()))),we({path:r,runId:e})}var KA=ye(`
167
167
  query RunBehaviorUrl($id: String!) {
168
168
  run(id: $id) {
169
169
  id
170
170
  behaviorUrl
171
171
  }
172
172
  }
173
- `);function CR(e){return e[0]===IR&&e[1]===OR?gunzipSync(e):e}async function Js(e){let t=Ys(e);return existsSync(t)?Ce(t):(await yD(e)).map(i=>i.path)}var TR=4e3,FR=5;function _D({behaviorFile:e,runId:t}){let n=PR(readFileSync(e,"utf8")),i=n.failures.map(r=>jR(r,n)).toSorted((r,o)=>r.snapshotOffsetMs-o.snapshotOffsetMs);return {durationMs:Math.max(0,n.lastTs-n.firstTs),failures:i,runId:t,steps:[...n.stepTitles].map(([r,o])=>({index:r,title:o}))}}function PR(e){let t=Zi(e),n=t.map(i=>Gn(i.timeNanos)).filter(i=>i>0);return {causes:t.flatMap(i=>ZR(i)),failures:t.flatMap(i=>NR(i)),firstTs:n.length===0?0:Math.min(...n),lastTs:n.length===0?0:Math.max(...n),stepTitles:new Map(t.flatMap(i=>i.kind==="model-step"||i.kind==="model-input-failed"?[[i.stepIndex,i.name]]:[]))}}function NR(e){let t=Gn(e.timeNanos);switch(e.kind){case "model-setup":return e.result.status==="failed"?[Zm({issue:e.result.error,site:zR(e.name),timestamp:t})]:[];case "model-step":case "model-input-failed":return e.result.status==="failed"?[Zm({issue:e.result.error,site:Ks(e.stepIndex),timestamp:t})]:[];case "exploration-stop":return e.result.kind==="failed"?[Zm({issue:e.result.error,site:Ks(e.stepIndex),timestamp:t})]:[];case "check":return UR(e);case "stepError":return [{detail:{error:e.error,kind:"driver"},site:Ks(e.stepIndex),timestamp:t}];case "network":case "console":case "span":case "action":case "rrweb":case "health":case "meta":case "notice":case "dialog":case "handover":case "handback":case "schema-trace":case "exploration-step":return []}}function Zm({issue:e,site:t,timestamp:n}){return {detail:{issue:e,kind:"model"},site:t,timestamp:n}}function zR(e){return {kind:"starting-state",name:e}}function Ks(e){return {kind:"step",stepIndex:e}}function UR(e){return e.outcome.kind==="passed"?[]:[{detail:{action:`${e.action.kind} ${jf(e.action)??""}`.trim()+Zf(e.action),kind:"check",message:e.outcome.reason.message,waitedMs:e.waitedMs},site:Ks(e.stepIndex),timestamp:Gn(e.timeNanos)}]}function jR(e,t){return {causes:LR(t.causes,e.timestamp),detail:e.detail,place:VR(e.site,t),snapshotOffsetMs:Math.max(0,e.timestamp-t.firstTs)}}function LR(e,t){let n=e.filter(i=>i.timestamp<=t&&i.timestamp>=t-TR).toSorted((i,r)=>r.timestamp-i.timestamp);return MR(n).toSorted((i,r)=>Number(bD(r.detail))-Number(bD(i.detail))).slice(0,FR).map(i=>({deltaMs:t-i.timestamp,detail:i.detail}))}function MR(e){let t=e.toReversed().map(n=>[BR(n.detail),n]);return [...new Map(t).values()].toReversed()}function BR(e){switch(e.kind){case "network":return `net ${e.method} ${String(e.status)} ${e.url.split("?")[0]??""}`;case "console":return `console ${e.text}`;case "span":return `span ${e.name} ${e.statusCode}`}}function bD(e){switch(e.kind){case "network":return e.status>=400;case "span":return e.statusCode==="error";case "console":return true}}function VR(e,t){switch(e.kind){case "starting-state":return e;case "step":{let n=t.stepTitles.get(e.stepIndex)??null;return {index:e.stepIndex,kind:"step",name:n}}}}function ZR(e){let t=WR(e);return t==null?[]:[{detail:t,timestamp:Gn(e.timeNanos)}]}function WR(e){return e.kind==="network"?{kind:"network",method:e.method,status:e.status,traceId:e.traceId,url:e.url}:e.kind==="console"?e.level==="error"||e.level==="warning"?{kind:"console",level:e.level,text:e.text}:null:e.kind==="span"?{durationMs:e.durationMs,kind:"span",name:e.name,statusCode:e.status.code,traceId:e.traceId}:null}function Xs(e){switch(e.kind){case "not-signed-in":return on();case "not-found":return "No run with that id.";case "not-uploaded":return "This run has no uploaded artifacts yet. It may still be running.";case "download-failed":return `Download failed (HTTP ${String(e.status)}). The link may have expired, try again.`}}function on(){return "Not signed in. Run `npx ripplo login` first."}async function DD({runId:e}){let t=await Js(e);t.isErr()&&(process.stderr.write(`${Xs(t.error)}
174
- `),process.exit(1));let n=_D({behaviorFile:t.value,runId:e});process.stdout.write(`${JSON.stringify(n,null,2)}
175
- `);}function Qs(e){return `No code review with id ${e}, or you do not have access to it.`}function xD(e){return `Code review ${e} has no published attempt yet. See where it is with \`npx ripplo review status ${e}\`.`}function SD(e){return `${e} is not a GitHub pull request URL. Pass one like https://github.com/<owner>/<repo>/pull/<number>.`}function ED(e){return `No Ripplo project you belong to is connected to ${e}. Connect it with \`npx ripplo setup\`.`}function wD(e){return `More than one of your Ripplo projects is connected to ${e}. Start the review from that project's Reviews page.`}function $D({name:e,names:t}){let n=t.length===0?"none":t.join(", ");return `No auth connection named ${e}. Saved connections: ${n}.`}function ID(e){return `${e} has no preview URL in a deploy comment. Pass the app address with --app-url.`}function OD(e){return `This pull request has more than one preview URL: ${e.join(", ")}. Pass the one to review with --app-url.`}var GR=ge(`
173
+ `);function XA(e){return e[0]===YA&&e[1]===JA?gunzipSync(e):e}async function ru(e){let t=tu(e);return existsSync(t)?we(t):(await zD(e)).map(i=>i.path)}var tR=4e3,rR=5;function UD({behaviorFile:e,runId:t}){let n=nR(readFileSync(e,"utf8")),i=n.failures.map(r=>sR(r,n)).toSorted((r,o)=>r.snapshotOffsetMs-o.snapshotOffsetMs);return {durationMs:Math.max(0,n.lastTs-n.firstTs),failures:i,runId:t,steps:[...n.stepTitles].map(([r,o])=>({index:r,title:o}))}}function nR(e){let t=Gi(e),n=t.map(i=>qn(i.timeNanos)).filter(i=>i>0);return {causes:t.flatMap(i=>pR(i)),failures:t.flatMap(i=>iR(i)),firstTs:n.length===0?0:Math.min(...n),lastTs:n.length===0?0:Math.max(...n),stepTitles:new Map(t.flatMap(i=>i.kind==="model-step"||i.kind==="model-input-failed"?[[i.stepIndex,i.name]]:[]))}}function iR(e){let t=qn(e.timeNanos);switch(e.kind){case "model-setup":return e.result.status==="failed"?[eh({issue:e.result.error,site:oR(e.name),timestamp:t})]:[];case "model-step":case "model-input-failed":return e.result.status==="failed"?[eh({issue:e.result.error,site:nu(e.stepIndex),timestamp:t})]:[];case "exploration-stop":return e.result.kind==="failed"?[eh({issue:e.result.error,site:nu(e.stepIndex),timestamp:t})]:[];case "check":return aR(e);case "stepError":return [{detail:{error:e.error,kind:"driver"},site:nu(e.stepIndex),timestamp:t}];case "network":case "console":case "span":case "action":case "rrweb":case "health":case "meta":case "notice":case "dialog":case "handover":case "handback":case "schema-trace":case "exploration-step":return []}}function eh({issue:e,site:t,timestamp:n}){return {detail:{issue:e,kind:"model"},site:t,timestamp:n}}function oR(e){return {kind:"starting-state",name:e}}function nu(e){return {kind:"step",stepIndex:e}}function aR(e){return e.outcome.kind==="passed"?[]:[{detail:{action:`${e.action.kind} ${Zf(e.action)??""}`.trim()+Jf(e.action),kind:"check",message:e.outcome.reason.message,waitedMs:e.waitedMs},site:nu(e.stepIndex),timestamp:qn(e.timeNanos)}]}function sR(e,t){return {causes:uR(t.causes,e.timestamp),detail:e.detail,place:dR(e.site,t),snapshotOffsetMs:Math.max(0,e.timestamp-t.firstTs)}}function uR(e,t){let n=e.filter(i=>i.timestamp<=t&&i.timestamp>=t-tR).toSorted((i,r)=>r.timestamp-i.timestamp);return cR(n).toSorted((i,r)=>Number(ND(r.detail))-Number(ND(i.detail))).slice(0,rR).map(i=>({deltaMs:t-i.timestamp,detail:i.detail}))}function cR(e){let t=e.toReversed().map(n=>[lR(n.detail),n]);return [...new Map(t).values()].toReversed()}function lR(e){switch(e.kind){case "network":return `net ${e.method} ${String(e.status)} ${e.url.split("?")[0]??""}`;case "console":return `console ${e.text}`;case "span":return `span ${e.name} ${e.statusCode}`}}function ND(e){switch(e.kind){case "network":return e.status>=400;case "span":return e.statusCode==="error";case "console":return true}}function dR(e,t){switch(e.kind){case "starting-state":return e;case "step":{let n=t.stepTitles.get(e.stepIndex)??null;return {index:e.stepIndex,kind:"step",name:n}}}}function pR(e){let t=fR(e);return t==null?[]:[{detail:t,timestamp:qn(e.timeNanos)}]}function fR(e){return e.kind==="network"?{kind:"network",method:e.method,status:e.status,traceId:e.traceId,url:e.url}:e.kind==="console"?e.level==="error"||e.level==="warning"?{kind:"console",level:e.level,text:e.text}:null:e.kind==="span"?{durationMs:e.durationMs,kind:"span",name:e.name,statusCode:e.status.code,traceId:e.traceId}:null}function iu(e){switch(e.kind){case "not-signed-in":return pn();case "not-found":return "No run with that id.";case "not-uploaded":return "This run has no uploaded artifacts yet. It may still be running.";case "download-failed":return `Download failed (HTTP ${String(e.status)}). The link may have expired, try again.`}}function pn(){return "Not signed in. Run `npx ripplo login` first."}async function jD({runId:e}){let t=await ru(e);t.isErr()&&(process.stderr.write(`${iu(t.error)}
174
+ `),process.exit(1));let n=UD({behaviorFile:t.value,runId:e});process.stdout.write(`${JSON.stringify(n,null,2)}
175
+ `);}function ou(e){return `No code review with id ${e}, or you do not have access to it.`}function LD(e){return `Code review ${e} has no published attempt yet. See where it is with \`npx ripplo review status ${e}\`.`}function MD(e){return `${e} is not a GitHub pull request URL. Pass one like https://github.com/<owner>/<repo>/pull/<number>.`}function BD(e){return `No Ripplo project you belong to is connected to ${e}. Connect it with \`npx ripplo setup\`.`}function VD(e){return `More than one of your Ripplo projects is connected to ${e}. Start the review from that project's Reviews page.`}function ZD({name:e,names:t}){let n=t.length===0?"none":t.join(", ");return `No auth connection named ${e}. Saved connections: ${n}.`}function WD(e){return `${e} has no preview URL in a deploy comment. Pass the app address with --app-url.`}function GD(e){return `This pull request has more than one preview URL: ${e.join(", ")}. Pass the one to review with --app-url.`}var mR=ye(`
176
176
  query CliCodeReviewIssues($id: String!) {
177
177
  codeReview(id: $id) {
178
178
  id
@@ -209,11 +209,11 @@ ${y.join(`
209
209
  }
210
210
  }
211
211
  }
212
- `);async function kD({codeReviewId:e}){let t=co(),i=(await ve({config:Ge(t),document:GR,variables:{id:e}})).codeReview;i==null&&(process.stderr.write(`${Qs(e)}
213
- `),process.exit(1));let r=i.publishedAttempt;r==null&&(process.stderr.write(`${xD(e)}
214
- `),process.exit(1));let o={attemptId:r.id,codeReviewId:i.id,gaps:i.declaredGaps,issues:i.issues.filter(a=>a.stands).map(a=>qR(a)),prUrl:i.prUrl,summary:i.summaryText,title:i.title,verdict:i.verdict};process.stdout.write(`${JSON.stringify(o,null,2)}
215
- `);}function co(){let e=Lt();return e==null&&(process.stderr.write(`${on()}
216
- `),process.exit(1)),e}function qR(e){let{observation:t}=e,[n,...i]=t.workflows.map(({slug:r})=>r);return {appearance:e.appearance,body:t.body,evidence:t.evidence,kind:e.kind,number:e.number,otherWorkflows:i,title:t.title,workflow:n??null}}var CD=ge(`
212
+ `);async function qD({codeReviewId:e}){let t=po(),i=(await ve({config:Ye(t),document:mR,variables:{id:e}})).codeReview;i==null&&(process.stderr.write(`${ou(e)}
213
+ `),process.exit(1));let r=i.publishedAttempt;r==null&&(process.stderr.write(`${LD(e)}
214
+ `),process.exit(1));let o={attemptId:r.id,codeReviewId:i.id,gaps:i.declaredGaps,issues:i.issues.filter(a=>a.stands).map(a=>hR(a)),prUrl:i.prUrl,summary:i.summaryText,title:i.title,verdict:i.verdict};process.stdout.write(`${JSON.stringify(o,null,2)}
215
+ `);}function po(){let e=Mt();return e==null&&(process.stderr.write(`${pn()}
216
+ `),process.exit(1)),e}function hR(e){let{observation:t}=e,[n,...i]=t.workflows.map(({slug:r})=>r);return {appearance:e.appearance,body:t.body,evidence:t.evidence,kind:e.kind,number:e.number,otherWorkflows:i,title:t.title,workflow:n??null}}var HD=ye(`
217
217
  query CliPullRequestProject($prUrl: String!) {
218
218
  pullRequestProject(prUrl: $prUrl) {
219
219
  __typename
@@ -237,7 +237,7 @@ ${y.join(`
237
237
  }
238
238
  }
239
239
  }
240
- `),RD=ge(`
240
+ `),YD=ye(`
241
241
  mutation CliRequestReview(
242
242
  $appUrl: String
243
243
  $authConnectionId: String
@@ -269,7 +269,7 @@ ${y.join(`
269
269
  }
270
270
  }
271
271
  }
272
- `),AD=ge(`
272
+ `),JD=ye(`
273
273
  query CliReviewStatus($id: String!) {
274
274
  codeReview(id: $id) {
275
275
  id
@@ -281,11 +281,11 @@ ${y.join(`
281
281
  stage
282
282
  }
283
283
  }
284
- `);async function FD({appUrl:e,authConnectionName:t,depth:n,prUrl:i}){let r=co(),{pullRequestProject:o}=await ve({config:Ge(r),document:CD,variables:{prUrl:i}}),a=HR(o),s=YR({connections:a.authConnections,name:t}),{requestReview:c}=await ve({config:Ge(r),document:RD,variables:{appUrl:e,authConnectionId:s,depth:n,projectId:a.id,prUrl:i}});switch(c.__typename){case "ReviewRequested":{TD({alreadyRunning:false,codeReviewId:c.reviewId,reviewUrl:c.reviewUrl});return}case "ReviewRequestAlreadyRunning":{TD({alreadyRunning:true,codeReviewId:c.reviewId,reviewUrl:c.reviewUrl});return}case "ReviewRequestNoPreview":{ri(ID(c.prUrl));return}case "ReviewRequestManyPreviews":ri(OD(c.urls));}}function HR(e){switch(e.__typename){case "PullRequestProjectFound":return e.project;case "PullRequestNotRecognized":return ri(SD(e.prUrl));case "PullRequestNoProject":return ri(ED(e.repository));case "PullRequestManyProjects":return ri(wD(e.repository))}}function YR({connections:e,name:t}){if(t==null)return;let n=e.find(i=>i.name===t);return n==null&&ri($D({name:t,names:e.map(i=>i.name)})),n.id}function TD({alreadyRunning:e,codeReviewId:t,reviewUrl:n}){process.stdout.write(`${JSON.stringify({alreadyRunning:e,codeReviewId:t,reviewUrl:n},null,2)}
284
+ `);async function XD({appUrl:e,authConnectionName:t,depth:n,prUrl:i}){let r=po(),{pullRequestProject:o}=await ve({config:Ye(r),document:HD,variables:{prUrl:i}}),a=gR(o),s=yR({connections:a.authConnections,name:t}),{requestReview:c}=await ve({config:Ye(r),document:YD,variables:{appUrl:e,authConnectionId:s,depth:n,projectId:a.id,prUrl:i}});switch(c.__typename){case "ReviewRequested":{KD({alreadyRunning:false,codeReviewId:c.reviewId,reviewUrl:c.reviewUrl});return}case "ReviewRequestAlreadyRunning":{KD({alreadyRunning:true,codeReviewId:c.reviewId,reviewUrl:c.reviewUrl});return}case "ReviewRequestNoPreview":{ri(WD(c.prUrl));return}case "ReviewRequestManyPreviews":ri(GD(c.urls));}}function gR(e){switch(e.__typename){case "PullRequestProjectFound":return e.project;case "PullRequestNotRecognized":return ri(MD(e.prUrl));case "PullRequestNoProject":return ri(BD(e.repository));case "PullRequestManyProjects":return ri(VD(e.repository))}}function yR({connections:e,name:t}){if(t==null)return;let n=e.find(i=>i.name===t);return n==null&&ri(ZD({name:t,names:e.map(i=>i.name)})),n.id}function KD({alreadyRunning:e,codeReviewId:t,reviewUrl:n}){process.stdout.write(`${JSON.stringify({alreadyRunning:e,codeReviewId:t,reviewUrl:n},null,2)}
285
285
  `);}function ri(e){process.stderr.write(`${e}
286
- `),process.exit(1);}async function PD({codeReviewId:e}){let t=co(),{codeReview:n}=await ve({config:Ge(t),document:AD,variables:{id:e}});n==null&&(process.stderr.write(`${Qs(e)}
286
+ `),process.exit(1);}async function QD({codeReviewId:e}){let t=po(),{codeReview:n}=await ve({config:Ye(t),document:JD,variables:{id:e}});n==null&&(process.stderr.write(`${ou(e)}
287
287
  `),process.exit(1));let i={codeReviewId:n.id,failure:n.requestFailure?.message??null,latestSha:n.currentHeadSha,reviewedSha:n.headSha,stage:n.stage};process.stdout.write(`${JSON.stringify(i,null,2)}
288
- `);}function ND(e){return e.command("$0 <codeReviewId>","Print the published issues and uncovered workflows of a code review (JSON)",t=>t.positional("codeReviewId",{demandOption:true,type:"string"}),t=>kD({codeReviewId:t.codeReviewId})).command("start <prUrl>","Review a pull request's latest commit and print the review id (JSON)",t=>t.positional("prUrl",{demandOption:true,type:"string"}).option("depth",{choices:["fast","deep"],describe:"fast takes up to 30 minutes, deep up to 45. Default: the last run's depth, else fast"}).option("app-url",{describe:"The app to review. Default: the last run's app, else the preview",type:"string"}).option("auth",{describe:"The auth connection name to sign in with. Default: the last run's connection, else the project default",type:"string"}),t=>FD({appUrl:t["app-url"],authConnectionName:t.auth,depth:t.depth,prUrl:t.prUrl})).command("status <codeReviewId>","Print where a review is and which commit it reviewed (JSON)",t=>t.positional("codeReviewId",{demandOption:true,type:"string"}),t=>PD({codeReviewId:t.codeReviewId}))}var JR=ge(`
288
+ `);}function ex(e){return e.command("$0 <codeReviewId>","Print the published issues and uncovered workflows of a code review (JSON)",t=>t.positional("codeReviewId",{demandOption:true,type:"string"}),t=>qD({codeReviewId:t.codeReviewId})).command("start <prUrl>","Review a pull request's latest commit and print the review id (JSON)",t=>t.positional("prUrl",{demandOption:true,type:"string"}).option("depth",{choices:["fast","deep"],describe:"fast takes up to 30 minutes, deep up to 45. Default: the last run's depth, else fast"}).option("app-url",{describe:"The app to review. Default: the last run's app, else the preview",type:"string"}).option("auth",{describe:"The auth connection name to sign in with. Default: the last run's connection, else the project default",type:"string"}),t=>XD({appUrl:t["app-url"],authConnectionName:t.auth,depth:t.depth,prUrl:t.prUrl})).command("status <codeReviewId>","Print where a review is and which commit it reviewed (JSON)",t=>t.positional("codeReviewId",{demandOption:true,type:"string"}),t=>QD({codeReviewId:t.codeReviewId}))}var fo=["better-auth","authjs","keycloak","clerk","other"];var mo=["staging","previews","both"];var vR=ye(`
289
289
  query SetupProjects {
290
290
  projects {
291
291
  id
@@ -293,9 +293,6 @@ ${y.join(`
293
293
  repoUrl
294
294
  cloudBaseUrl
295
295
  authConnections {
296
- name
297
- }
298
- defaultAuthConnection {
299
296
  id
300
297
  kind
301
298
  name
@@ -303,26 +300,31 @@ ${y.join(`
303
300
  oidc {
304
301
  clientId
305
302
  discoveryUrl
303
+ finished
306
304
  issuer
307
305
  redirectUris
308
306
  scimBaseUrl
309
307
  signInEntry
310
308
  }
311
309
  }
310
+ defaultAuthConnection {
311
+ id
312
+ }
312
313
  }
313
314
  }
314
- `),KR=ge(`
315
+ `),bR=ye(`
315
316
  query SetupOrganizations {
316
317
  organizations {
317
318
  id
318
319
  name
320
+ named
319
321
  memberCount
320
322
  planName
321
323
  projectCount
322
- integrationsUrl
324
+ githubConnectUrl
323
325
  }
324
326
  }
325
- `),XR=ge(`
327
+ `),_R=ye(`
326
328
  query SetupRepositories($organizationId: String!) {
327
329
  githubRepositories(organizationId: $organizationId) {
328
330
  installationId
@@ -330,7 +332,7 @@ ${y.join(`
330
332
  url
331
333
  }
332
334
  }
333
- `),QR=ge(`
335
+ `),DR=ye(`
334
336
  mutation SetupCreateProject(
335
337
  $installationId: Int!
336
338
  $name: String!
@@ -352,9 +354,6 @@ ${y.join(`
352
354
  repoUrl
353
355
  cloudBaseUrl
354
356
  authConnections {
355
- name
356
- }
357
- defaultAuthConnection {
358
357
  id
359
358
  kind
360
359
  name
@@ -362,27 +361,31 @@ ${y.join(`
362
361
  oidc {
363
362
  clientId
364
363
  discoveryUrl
364
+ finished
365
365
  issuer
366
366
  redirectUris
367
367
  scimBaseUrl
368
368
  signInEntry
369
369
  }
370
370
  }
371
+ defaultAuthConnection {
372
+ id
373
+ }
371
374
  }
372
375
  ... on InvalidRepoLinkError {
373
376
  message
374
377
  }
375
378
  }
376
379
  }
377
- `),eA=ge(`
380
+ `),xR=ye(`
378
381
  mutation SetupSaveAppUrl($id: String!, $appUrl: String!) {
379
382
  updateProject(id: $id, cloudBaseUrl: $appUrl) {
380
383
  id
381
384
  }
382
385
  }
383
- `),tA=ge(`
384
- mutation SetupCreateConnection($input: OidcAuthConnectionInput!) {
385
- createOidcAuthConnection(input: $input) {
386
+ `),SR=ye(`
387
+ mutation SetupCreateConnection($input: UnfinishedOidcAuthConnectionInput!) {
388
+ createUnfinishedOidcAuthConnection(input: $input) {
386
389
  clientSecret
387
390
  connection {
388
391
  id
@@ -391,13 +394,11 @@ ${y.join(`
391
394
  clientId
392
395
  discoveryUrl
393
396
  issuer
394
- redirectUris
395
- signInEntry
396
397
  }
397
398
  }
398
399
  }
399
400
  }
400
- `),rA=ge(`
401
+ `),ER=ye(`
401
402
  mutation SetupUpdateConnection($input: OidcAuthConnectionUpdate!) {
402
403
  updateOidcAuthConnection(input: $input) {
403
404
  id
@@ -412,59 +413,60 @@ ${y.join(`
412
413
  }
413
414
  }
414
415
  }
415
- `),nA=ge(`
416
+ `),wR=ye(`
416
417
  mutation SetupRotateSecret($id: String!) {
417
418
  rotateAuthConnectionSecret(id: $id) {
418
419
  secret
419
420
  }
420
421
  }
421
- `),iA=ge(`
422
+ `),$R=ye(`
422
423
  mutation SetupStartSignInTest($id: String!) {
423
424
  startAuthConnectionSignInTest(id: $id) {
424
425
  runId
425
426
  url
426
427
  }
427
428
  }
428
- `),oA=ge(`
429
+ `),IR=ye(`
429
430
  mutation SetupCheckSignInTest($runId: String!) {
430
431
  checkAuthConnectionSignInTest(runId: $runId) {
431
432
  detail
432
433
  kind
433
434
  }
434
435
  }
435
- `);async function ni(e){return (await ve({config:e,document:JR,variables:void 0})).projects??[]}async function zD(e){return (await ve({config:e,document:KR,variables:void 0})).organizations??[]}async function UD({connection:e,organizationId:t}){return (await ve({config:e,document:XR,variables:{organizationId:t}})).githubRepositories??[]}async function jD({connection:e,...t}){let i=(await ve({config:e,document:QR,variables:t})).createProject;return i?.__typename==="Project"?Ce(i):ue({kind:"rejected",message:i?.message??""})}async function LD({appUrl:e,connection:t,id:n}){await ve({config:t,document:eA,variables:{appUrl:e,id:n}});}var aA="oidc";async function MD({connection:e,project:t,values:n}){let i=qf({base:aA,taken:t.authConnections.map(o=>o.name)});return (await ve({config:e,document:tA,variables:{input:{makeDefault:true,name:i,projectId:t.id,redirectUris:[...n.redirectUris],signInEntry:n.signInEntry}}})).createOidcAuthConnection}async function BD({connection:e,id:t,name:n,scimBaseUrl:i,values:r}){return (await ve({config:e,document:rA,variables:{input:{id:t,makeDefault:true,name:n,redirectUris:[...r.redirectUris],scimBaseUrl:i,signInEntry:r.signInEntry}}})).updateOidcAuthConnection}async function VD({connection:e,connectionId:t}){return (await ve({config:e,document:nA,variables:{id:t}})).rotateAuthConnectionSecret.secret}async function ZD({connection:e,connectionId:t}){return (await ve({config:e,document:iA,variables:{id:t}})).startAuthConnectionSignInTest}async function WD({connection:e,runId:t}){return (await ve({config:e,document:oA,variables:{runId:t}})).checkAuthConnectionSignInTest}function Wm(e){return `${Gm(e)}/settings?section=environment`}function Gm({connection:e,projectId:t}){return `${e.ripploServerUrl}/projects/${t}`}function GD({connection:e,projectId:t}){let n=encodeURIComponent(`/projects/${t}`);return `${e.ripploServerUrl}/login?redirect=${n}`}var qD=2e3,lo=2e4;async function qm({connection:e,remainingMs:t,runId:n}){if(t<=0)return {kind:"timedOut"};await setTimeout$1(qD);let i=await WD({connection:e,runId:n});return uA(i)??qm({connection:e,remainingMs:t-qD,runId:n})}function uA(e){switch(e.kind){case "pending":return;case "signedIn":return {kind:"signedIn"};case "failed":return {detail:e.detail??"",kind:"failed"}}}var Ym=c(ru(),1);var JD=c(ru(),1),KD=String.fromCodePoint(27),pA=`${KD}[38;5;245m`,fA=`${KD}[0m`;function Ne(e){return JD.default.isColorSupported?`${pA}${e}${fA}`:e}var ex="https://ripplo.ai/docs#sign-in",XD={auth:{title:"Authentication",why:"Ripplo generates test users as an OpenID Connect identity provider, like sign in with Google. That takes two registrations: your app with Ripplo, then Ripplo with your app."},check:{title:"Test authentication",why:"Ripplo signs a test user in through your app the way a review run would."},claude:{title:"Set up Claude Code for Ripplo",why:"The Ripplo plugin lets Claude Code read a review's findings and fix them in your code."},github:{title:"GitHub access",why:"Ripplo reads your code base to write workflows, reads pull requests to review them, and posts results as comments. Your organization grants that access by connecting the GitHub account that owns this repository."},open:{title:"Open Ripplo",why:"Your project page shows workflows as Ripplo writes them, and every review after that."},project:{title:"Project",why:"A project is this repository inside Ripplo, where its workflows and reviews live."},signIn:{title:"Sign in",why:"Setup saves the project under your Ripplo account."},url:{title:"Test app",why:"Ripplo opens a deployed copy of your app in a browser and signs in as a test user."}},tx=["signIn","project","github","url","auth","check","claude","open"];function It(e){return {title:`${String(tx.indexOf(e)+1)}. ${XD[e].title}`,why:XD[e].why}}var QD={app:{title:"Register Ripplo with your app",why:"Add Ripplo as a sign-in provider to your app and give it three values. Ripplo cannot sign in until this is done."},ripplo:{title:"Register your app with Ripplo",why:"Ripplo needs your app's sign-in page and where it sends the browser back after sign-in."}};function nu(e){return {title:`${String(tx.indexOf("auth")+1)}${e==="ripplo"?"a":"b"}. ${QD[e].title}`,why:QD[e].why}}function iu(){return "Ripplo setup"}function ou(e){switch(e.kind){case "no-remote":return "No git remote named origin here. Run setup inside the repository to review.";case "not-github":return `The origin remote is ${e.remote}. Ripplo reviews GitHub repositories only.`}}function rx(e){return `Signed in as ${e}`}function Jm(e){return `${e} is connected`}function nx({organization:e,repo:t}){return `${e} cannot read ${t} yet.`}function ix(e){return `Connect the GitHub account ${e} in organization settings, with access to this repository`}function ox(){return "Open organization settings now?"}function ax(){return "Open settings, connect GitHub, then come back"}function sx(){return "Stop"}function qe(){return "Stopped. Run setup again to resume."}function ux(e){return [Ne("If the page did not open, use this link:"),oi(e)]}function cx(e){return `Waiting for ${e} to appear`}function lx({minutes:e,repo:t}){return `Ripplo still cannot read ${t} after ${String(e)} minutes. Connect the account that owns it, or refresh its access if it is already connected.`}function dx(){return "Your account is in no Ripplo organization. Create one in the dashboard first."}function px(){return "Which organization owns this app?"}function Km(e){return `Organization ${e}`}function fx(e){let t=Is(e.projectCount,"project"),n=Is(e.memberCount,"member"),i=e.planName==null?"no plan":`${e.planName} plan`,r=Ne(`${t} \xB7 ${n} \xB7 ${i}`);return `${e.name} ${r}`}function mx(e){return `Using the existing project ${e}`}function hx(e){return `A project stays in its organization. To use another, delete ${e} in its settings and run setup again.`}function gx({organization:e,repo:t}){return `${t} will be a project in ${e}, created once GitHub access is confirmed`}function vx(e,t){return `Created ${e} in ${t}`}function yx(e){return `Could not create the project. ${e}`}function bx(){return "Where will Ripplo test your app?"}function au(e){switch(e){case "staging":return "One pre-production server with a stable address";case "previews":return "Pull request preview environments, one address per pull request";case "both":return "Both"}}function _x(e){return `${au(e)} ${Ne("from --environments")}`}function Dx({appUrl:e,environments:t,previewUrl:n}){return [au(t),`Testing against ${e}`,...n==null?[]:[`Previews at ${n}`]]}function xx(){return "Every review creates a test user in this app, so use a staging server, not production."}function Sx(){return "Where does your pre-production server run?"}function Ex(){return "https://staging.example.com"}function wx(){return ["Each pull request preview has its own address. Ripplo learns it from the comment that starts","the review: @ripplo review <preview-url>. To register every preview at once, use one * in the","hostname for the part that changes."]}function $x(){return "What do your preview addresses look like?"}function Ix(){return "https://myapp-pr-*.example.com"}function Ox(){return "Ripplo also needs one preview that is up right now, to test sign-in against."}function kx(){return "Which preview is up right now?"}function Cx(){return "https://myapp-pr-123.example.com"}function Rx({flag:e,value:t}){let n=Ne(`from --${e}`);return `${t} ${n}`}function Ax({flag:e,reason:t}){return `--${e}: ${t}`}function Tx(e){return `No terminal to ask in. Run setup in a terminal, or pass --${e}.`}function Fx(){return "Continue"}function Px(){return "Change it"}function Nx(e){return `Sign-in connection ${e}`}function zx({redirectUris:e,scimBaseUrl:t,signInEntry:n}){return [`Sign-in page ${n}`,...e.map(i=>`Callback ${i}`),t==null?"SCIM off":`SCIM ${t}`]}function Ux(e){return `Updated ${e}, client id and secret unchanged`}function jx(e){return `Created ${e}, set as the default connection`}function Lx(){return "Ripplo signs in through your app's sign-in page. A path works for the pre-production server and every preview."}function Mx(){return "Which page starts sign-in with Ripplo?"}function Bx(){return "/api/auth/oidc/start"}function Vx(){return "The callback your auth library uses for Ripplo sign-in."}function Zx(){return "Where does your pre-production server receive the callback?"}function Wx(e){return `${e}/api/auth/oauth2/callback/ripplo`}function Gx(){return "The same callback on your previews, with the * where the address changes."}function qx(){return "Where do your previews receive the callback?"}function Hx(e){return `${e}/api/auth/oauth2/callback/ripplo`}function Xm({connection:e,secret:t,settingsUrl:n}){return [`Client id ${e.clientId}`,...mA({secret:t,settingsUrl:n}),`Discovery URL ${e.discoveryUrl}`]}function Yx(e){return [`Client id ${e.clientId}`,`Client secret ${Ne("\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022")}`,`Discovery URL ${e.discoveryUrl}`]}function Jx(){return "Your existing secret will immediately stop working. Ripplo cannot sign in to your app until you update the secret there."}function Kx(e){return `Client secret ${e}`}function Xx(){return "Have you already registered Ripplo with your app?"}function Qx(){return "Yes, continue"}function eS(){return "Give me a new secret"}function tS(){return "Rotate the secret"}function rS(){return "Keep the current secret"}function nS(){return ["Add Ripplo as a sign-in provider to your app","Set the three variables on your dev server and deploy"]}function iS(){return `Guides ${oi(ex)}`}function oS(){return "Register Ripplo with your app now?"}function aS(){return "Now"}function sS(){return "Come back later (setup remembers your choices)"}function Qm(){return "Not finished. Run setup again to continue from here:"}function uS(){return "Give your app these three values, then deploy"}function eh(){return ["Auth libraries read them from variables on your dev server, some also need a few lines of code. Keycloak takes them in its settings. An app that was already running needs a restart to read them.",`Guides for better-auth, next-auth and Keycloak: ${oi(ex)}`]}function th(){return "Is your app running with these three values? Deploy it, or restart it locally, then continue."}function cS(){return "Done"}function po(){return "Stop for now"}function lS(){return "Not finished. When the deploy is live, test authentication:"}function ii(e){return `${e} --check`}function dS(){return "Updating the Ripplo plugin for Claude Code"}function pS(){return "Could not install the Ripplo plugin for Claude Code. Run claude plugin install ripplo@ripplo."}function fS(){return "Yes"}function mS(){return "No"}function hS(){return "Open Ripplo in your browser?"}function gS(){return "Claude Code is not installed. Install it, then run: claude plugin install ripplo@ripplo"}function vS(){return "Ripplo plugin installed in Claude Code"}function yS(){return "A tab will open and sign in to your app as a test user, the way a review run does. Nothing to type."}function bS(){return "Start test"}function _S(){return "Watch the tab that opened"}function DS(e){return [Ne("If no tab opened, use this link. It works once:"),oi(e)]}function xS(){return "Waiting for your app to exchange the code"}function SS(e){return `Ripplo signed in through ${e}`}function ES(e){return {detail:e.length>0?[Ne(e)]:[],headline:"Ripplo could not sign in"}}function wS(e){return `No code exchange within ${String(e)} seconds. Is the deploy live, the sign-in page up, and the app restarted if needed?`}function $S(){return ""}function IS(){return "Test again"}function su(){return "Fix what the test named, deploy, then test again:"}function OS(){return "This project has no sign-in connection yet. Run setup first."}function kS(e){return `No Ripplo project is connected to ${e}. Run setup first.`}function CS(e){return `Ripplo's server rejected the request: ${e}`}function RS(){return "Done. Ripplo can sign in to your test app and review pull requests."}function AS({appUrl:e,projectUrl:t}){let n=Ym.default.bold(`@ripplo review ${e}`);return [`Project ${oi(t)}`,`Review comment ${n} on any pull request`]}function mA({secret:e,settingsUrl:t}){return [`Client secret ${e??Ne("copy it from the settings page")}`,...e==null?[oi(t)]:[]]}function oi(e){return Ym.default.underline(e)}var TS=(()=>{let e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return t=>{let n=0;for(e.lastIndex=0;e.test(t);)n+=1;return t.length-n}})(),FS=e=>e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510,PS=e=>e===8987||e===9001||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141;var hA=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,gA=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,NS=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,vA=/\t{1,1000}/y,zS=new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*","yu"),yA=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,bA=new RegExp("\\p{M}+","gu"),_A={limit:1/0,ellipsis:""},US=(e,t={},n={})=>{let i=t.limit??1/0,r=t.ellipsis??"",o=t?.ellipsisWidth??(r?US(r,_A,n).width:0),a=0,s=n.controlWidth??0,c=n.tabWidth??8,l=n.emojiWidth??2,d=2,p=n.regularWidth??1,m=n.wideWidth??d,h=[[yA,p],[hA,a],[gA,s],[vA,c],[zS,l],[NS,m]],y=0,x=0,b=e.length,j=0,H=false,B=b,A=Math.max(0,i-o),k=0,z=0,re=0,ce=0;e:for(;;){if(z>k||x>=b&&x>y){let be=e.slice(k,z)||e.slice(y,x);j=0;for(let ie of be.replaceAll(bA,"")){let P=ie.codePointAt(0)||0;if(FS(P)?ce=d:PS(P)?ce=m:ce=p,re+ce>A&&(B=Math.min(B,Math.max(k,y)+j)),re+ce>i){H=true;break e}j+=ie.length,re+=ce;}k=z=0;}if(x>=b)break e;for(let be=0,ie=h.length;be<ie;be++){let[P,N]=h[be];if(P.lastIndex=x,P.test(e)){if(j=P===NS?TS(e.slice(x,P.lastIndex)):P===zS?1:P.lastIndex-x,ce=j*N,re+ce>A&&(B=Math.min(B,x+Math.floor((A-re)/N))),re+ce>i){H=true;break e}re+=ce,k=y,z=x,x=y=P.lastIndex;continue e}}x+=1;}return {width:H?A:re,index:H?B:b,truncated:H,ellipsed:H&&i>=o}},jS=US;var DA={limit:1/0,ellipsis:"",ellipsisWidth:0},xA=(e,t={})=>jS(e,DA,t).width,or=xA;var uu="\x1B",ZS="\x9B",SA=39,nh="\x07",WS="[",EA="]",GS="m",ih=`${EA}8;;`,LS=new RegExp(`(?:\\${WS}(?<code>\\d+)m|\\${ih}(?<uri>.*)${nh})`,"y"),MS=e=>{if(e>=30&&e<=37||e>=90&&e<=97)return 39;if(e>=40&&e<=47||e>=100&&e<=107)return 49;if(e===1||e===2)return 22;if(e===3)return 23;if(e===4)return 24;if(e===7)return 27;if(e===8)return 28;if(e===9)return 29;if(e===0)return 0},BS=e=>`${uu}${WS}${e}${GS}`,VS=e=>`${uu}${ih}${e}${nh}`,rh=(e,t,n)=>{let i=t[Symbol.iterator](),r=false,o=false,a=e.at(-1),s=a===void 0?0:or(a),c=i.next(),l=i.next(),d=0;for(;!c.done;){let p=c.value,m=or(p);s+m<=n?e[e.length-1]+=p:(e.push(p),s=0),(p===uu||p===ZS)&&(r=true,o=t.startsWith(ih,d+1)),r?o?p===nh&&(r=false,o=false):p===GS&&(r=false):(s+=m,s===n&&!l.done&&(e.push(""),s=0)),c=l,l=i.next(),d+=p.length;}a=e.at(-1),!s&&a!==void 0&&a.length&&e.length>1&&(e[e.length-2]+=e.pop());},wA=e=>{let t=e.split(" "),n=t.length;for(;n&&!or(t[n-1]);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")},$A=(e,t,n={})=>{if(n.trim!==false&&e.trim()==="")return "";let i="",r,o,a=e.split(" "),s=[""],c=0;for(let p=0;p<a.length;p++){let m=a[p];if(n.trim!==false){let y=s.at(-1)??"",x=y.trimStart();y.length!==x.length&&(s[s.length-1]=x,c=or(x));}p!==0&&(c>=t&&(n.wordWrap===false||n.trim===false)&&(s.push(""),c=0),(c||n.trim===false)&&(s[s.length-1]+=" ",c++));let h=or(m);if(n.hard&&h>t){let y=t-c,x=1+Math.floor((h-y-1)/t);Math.floor((h-1)/t)<x&&s.push(""),rh(s,m,t),c=or(s.at(-1)??"");continue}if(c+h>t&&c&&h){if(n.wordWrap===false&&c<t){rh(s,m,t),c=or(s.at(-1)??"");continue}s.push(""),c=0;}if(c+h>t&&n.wordWrap===false){rh(s,m,t),c=or(s.at(-1)??"");continue}s[s.length-1]+=m,c+=h;}n.trim!==false&&(s=s.map(p=>wA(p)));let l=s.join(`
436
- `),d=false;for(let p=0;p<l.length;p++){let m=l[p];if(i+=m,d)d=false;else if(d=m>="\uD800"&&m<="\uDBFF",d)continue;if(m===uu||m===ZS){LS.lastIndex=p+1;let y=LS.exec(l)?.groups;if(y?.code!==void 0){let x=Number.parseFloat(y.code);r=x===SA?void 0:x;}else y?.uri!==void 0&&(o=y.uri.length===0?void 0:y.uri);}if(l[p+1]===`
437
- `){o&&(i+=VS(""));let h=r?MS(r):void 0;r&&h&&(i+=BS(h));}else m===`
438
- `&&(r&&MS(r)&&(i+=BS(r)),o&&(i+=VS(o)));}return i},IA=/\r?\n/;function oh(e,t,n){return String(e).normalize().split(IA).map(i=>$A(i,t,n)).join(`
439
- `)}var Ot=c(HS(),1);function lu(e,t,n){if(!n.some(a=>!a.disabled))return e;let i=e+t,r=Math.max(n.length-1,0),o=i<0?r:i>r?0:i;return n[o]?.disabled?lu(o,t<0?-1:1,n):o}var FA=["up","down","left","right","space","enter","cancel"],ai={actions:new Set(FA),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function NA(e){if(e!==void 0)return e;let t=process.env.ACCESSIBLE;return t!==void 0&&t!==""&&t!=="0"&&t!=="false"}function YS(e,t){if(typeof e=="string")return ai.aliases.get(e)===t;for(let n of e)if(n!==void 0&&YS(n,t))return true;return false}function zA(e,t){if(e===t)return;let n=e.split(`
436
+ `);async function ni(e){return (await ve({config:e,document:vR,variables:void 0})).projects??[]}async function tx(e){return (await ve({config:e,document:bR,variables:void 0})).organizations??[]}async function rx({connection:e,organizationId:t}){return (await ve({config:e,document:_R,variables:{organizationId:t}})).githubRepositories??[]}async function nx({connection:e,...t}){let i=(await ve({config:e,document:DR,variables:t})).createProject;return i?.__typename==="Project"?we(i):ue({kind:"rejected",message:i?.message??""})}async function ix({appUrl:e,connection:t,id:n}){await ve({config:t,document:xR,variables:{appUrl:e,id:n}});}var OR="oidc";async function ox({connection:e,project:t}){let n=Qf({base:OR,taken:t.authConnections.map(r=>r.name)});return (await ve({config:e,document:SR,variables:{input:{name:n,projectId:t.id}}})).createUnfinishedOidcAuthConnection}async function ax({connection:e,id:t,name:n,scimBaseUrl:i,values:r}){return (await ve({config:e,document:ER,variables:{input:{id:t,makeDefault:true,name:n,redirectUris:[...r.redirectUris],scimBaseUrl:i,signInEntry:r.signInEntry}}})).updateOidcAuthConnection}async function sx({connection:e,connectionId:t}){return (await ve({config:e,document:wR,variables:{id:t}})).rotateAuthConnectionSecret.secret}async function ux({connection:e,connectionId:t}){return (await ve({config:e,document:$R,variables:{id:t}})).startAuthConnectionSignInTest}async function cx({connection:e,runId:t}){return (await ve({config:e,document:IR,variables:{runId:t}})).checkAuthConnectionSignInTest}function th(e){return `${rh(e)}/settings?section=environment`}function rh({connection:e,projectId:t}){return `${e.ripploServerUrl}/projects/${t}`}function lx({connection:e,projectId:t}){let n=encodeURIComponent(`/projects/${t}`);return `${e.ripploServerUrl}/login?redirect=${n}`}var dx=2e3,ho=2e4;async function nh({connection:e,remainingMs:t,runId:n}){if(t<=0)return {kind:"timedOut"};await setTimeout$1(dx);let i=await cx({connection:e,runId:n});return CR(i)??nh({connection:e,remainingMs:t-dx,runId:n})}function CR(e){switch(e.kind){case "pending":return;case "signedIn":return {kind:"signedIn"};case "failed":return {detail:e.detail??"",kind:"failed"}}}function px(e){let t=ih(e);if(t?.oidc!=null)return {connection:t,kind:"finished",registration:AR(t.oidc)};let n=e.authConnections.find(i=>RR(i));return n!=null?{connection:n,kind:"unfinished"}:{kind:"none"}}function ih(e){let t=e.defaultAuthConnection;if(t==null)return null;let n=e.authConnections.find(i=>i.id===t.id);if(n==null)throw new Error(`default-connection-missing:${t.id}`);return n}function oh(e){if(e.oidc==null)throw new Error(`connection-without-oidc:${e.id}`);return {clientId:e.oidc.clientId,discoveryUrl:e.oidc.discoveryUrl,id:e.id,issuer:e.oidc.issuer,name:e.name,secret:e.webhookSecret}}function AR(e){if(!e.finished||e.signInEntry==null)throw new Error("finished-connection-without-sign-in-page");return {redirectUris:e.redirectUris,scimBaseUrl:e.scimBaseUrl,signInEntry:e.signInEntry}}function RR(e){return e.oidc==null?false:!e.oidc.finished}var sh=c(uu(),1);var hx=c(uu(),1),gx=String.fromCodePoint(27),zR=`${gx}[38;5;245m`,NR=`${gx}[0m`;function Te(e){return hx.default.isColorSupported?`${zR}${e}${NR}`:e}var yx={auth:{title:"Authentication",why:"Ripplo generates test users as an OpenID Connect identity provider, like sign in with Google. That takes two registrations: Ripplo with your auth provider, then your app with Ripplo."},check:{title:"Test authentication",why:"Ripplo signs a test user in through your app the way a review run would."},claude:{title:"Set up Claude Code for Ripplo",why:"The Ripplo plugin lets Claude Code read a review's findings and fix them in your code."},github:{title:"GitHub access",why:"Ripplo reads your code base to write workflows, reads pull requests to review them, and posts results as comments. Your organization grants that access by connecting the GitHub account that owns this repository."},open:{title:"Open Ripplo",why:"Your project page shows workflows as Ripplo writes them, and every review after that."},project:{title:"Project",why:"A project is this repository inside Ripplo, where its workflows and reviews live."},signIn:{title:"Sign in",why:"Setup saves the project under your Ripplo account."},url:{title:"Test app",why:"Ripplo opens a deployed copy of your app in a browser and signs in as a test user."}},bx=["signIn","project","github","url","auth","check","claude","open"];function $t(e){return {title:`${String(bx.indexOf(e)+1)}. ${yx[e].title}`,why:yx[e].why}}var vx={app:{title:"Tell Ripplo how your app signs in",why:"Ripplo needs the callback your auth provider shows for Ripplo and the page that starts sign-in with Ripplo."},provider:{title:"Add Ripplo to your auth provider",why:"Add Ripplo as a sign-in provider with three values. Ripplo cannot sign in until this is done."}};function uh(e){return {title:`${String(bx.indexOf("auth")+1)}${e==="provider"?"a":"b"}. ${vx[e].title}`,why:vx[e].why}}function cu(){return "Ripplo setup"}function lu(e){switch(e.kind){case "no-remote":return "No git remote named origin here. Run setup inside the repository to review.";case "not-github":return `The origin remote is ${e.remote}. Ripplo reviews GitHub repositories only.`}}function _x(e){return `Signed in as ${e}`}function ch(e){return `${e} is connected`}function Dx({organization:e,repo:t}){return `${e} cannot read ${t} yet.`}function xx(e){return `Connect the GitHub account ${e} and give Ripplo access to this repository`}function Sx(){return "Open GitHub now?"}function Ex(){return "Open GitHub, connect the account, then come back"}function wx(){return "Stop"}function Ge(){return "Stopped. Run setup again to resume."}function $x(e){return [Te("If the page did not open, use this link:"),Pr(e)]}function Ix(e){return [Te("Open this link in a browser to connect GitHub:"),Pr(e)]}function Ox(e){return `Waiting for ${e} to appear`}function kx({minutes:e,repo:t}){return `Ripplo still cannot read ${t} after ${String(e)} minutes. Connect the account that owns it, or refresh its access if it is already connected.`}function Cx(){return "Your account is in no Ripplo organization. Create one in the dashboard first."}function Ax(){return "Which organization owns this app?"}function lh(e){return e.named?`Organization ${e.name}`:dh(e)}function Rx(){return "Name your organization after your company or team. Teammates you invite join it."}function Px(){return "What should the organization be called?"}function Fx(){return "Your company or team"}function Tx(e){return `Organization named ${e}`}function zx(e){return `Could not name the organization. ${e}`}function Nx(e){return ["No terminal to ask in. Run setup in a terminal, or pass --organization with one of these ids.",...e.map(n=>`${dh(n)} ${Te(n.id)}`)].join(`
437
+ `)}function dh(e){return e.named?e.name:"New organization"}function Ux(e){let t=Ps(e.projectCount,"project"),n=Ps(e.memberCount,"member"),i=e.planName==null?"no plan":`${e.planName} plan`,r=Te(`${t} \xB7 ${n} \xB7 ${i}`);return `${dh(e)} ${r}`}function jx(e){return `Using the existing project ${e}`}function Lx(e){return `A project stays in its organization. To use another, delete ${e} in its settings and run setup again.`}function Mx({organization:e,repo:t}){return `${t} will be a project in ${e}, created once GitHub access is confirmed`}function Bx(e,t){return `Created ${e} in ${t}`}function Vx(e){return `Could not create the project. ${e}`}function Zx(){return "Where will Ripplo test your app?"}function ph(e){switch(e){case "staging":return "One pre-production server with a stable address";case "previews":return "Pull request preview environments, one address per pull request";case "both":return "Both"}}function Wx(e){return `${ph(e)} ${Te("from --environments")}`}function fh(e){return `Testing against ${e}`}function Gx(){return "A pre-production server, or a preview that is up now. Every review creates a test user there, so not production."}function qx(){return "Where does your pre-production server run?"}function Hx(){return "https://staging.example.com"}function Yx(){return ["Each pull request preview has its own address. Ripplo learns it from the comment that starts","the review: @ripplo review <preview-url>. To register every preview at once, use one * in the","hostname for the part that changes."]}function Jx(){return "What do your preview addresses look like?"}function Kx(){return "https://myapp-pr-*.example.com"}function du({flag:e,value:t}){let n=Te(`from --${e}`);return `${t} ${n}`}function Xx({flag:e,reason:t}){return `--${e}: ${t}`}function Qx(e){return `No terminal to ask in. Run setup in a terminal, or pass --${e}.`}function eS(){return "Continue"}function tS(){return "Change it"}function mh(e){return `Sign-in connection ${e}`}function rS({redirectUris:e,scimBaseUrl:t,signInEntry:n}){return [`Sign-in page ${n}`,...e.map(i=>`Callback ${i}`),t==null?"SCIM off":`SCIM ${t}`]}function nS(e){return `Saved ${e} as the default connection`}function iS(e){return `Created ${e}`}function oS(){return "Which page signs in with Ripplo?"}function aS(){return "Where does your pre-production server receive the callback?"}function sS(){return "The same callback on your previews, with the * where the address changes."}function uS(){return "Where do your previews receive the callback?"}function hh({connection:e,secret:t,settingsUrl:n}){return [`Client id ${e.clientId}`,...UR({secret:t,settingsUrl:n}),`Discovery URL ${e.discoveryUrl}`]}function Pr(e){return sh.default.underline(e)}function cS(e){return [`Client id ${e.clientId}`,`Client secret ${Te("\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022")}`,`Discovery URL ${e.discoveryUrl}`]}function lS(){return "Your existing secret will immediately stop working. Ripplo cannot sign in to your app until you update the secret there."}function dS(e){return `Client secret ${e}`}function pS(){return "Have you already added Ripplo to your auth provider?"}function fS(){return "Yes, continue"}function mS(){return "Give me a new secret"}function hS(){return "Rotate the secret"}function gS(){return "Keep the current secret"}function yS(){return "Not finished. Run setup again to continue from here:"}function vS(){return "Done"}function go(){return "Stop for now"}function pu(){return "When the deploy is live, test authentication:"}function ii(e){return `${e} --check`}function bS(e){return `${e} --redirect-uri <callback> --sign-in-page <path>`}function _S(){return "Updating the Ripplo plugin for Claude Code"}function DS(){return "Could not install the Ripplo plugin for Claude Code. Run claude plugin install ripplo@ripplo."}function xS(){return "Yes"}function SS(){return "No"}function ES(){return "Open Ripplo in your browser?"}function wS(){return "Claude Code is not installed. Install it, then run: claude plugin install ripplo@ripplo"}function $S(){return "Ripplo plugin installed in Claude Code"}function IS(){return "A tab will open and sign in to your app as a test user, the way a review run does. Nothing to type."}function OS(){return "Start test"}function kS(){return "Watch the tab that opened. If it stops on your login page, click the Ripplo button."}function CS(e){return [Te("If no tab opened, use this link. It works once:"),Pr(e)]}function AS(){return "Waiting for your app to exchange the code"}function RS(e){return `Ripplo signed in through ${e}`}function PS(e){return {detail:e.length>0?[Te(e)]:[],headline:"Ripplo could not sign in"}}function FS(e){return `No code exchange within ${String(e)} seconds. Is the deploy live, the sign-in page up, and the app restarted if needed?`}function TS(){return "Test again"}function gh(){return "Fix what the test named, deploy, then test again:"}function zS(){return "This project has no sign-in connection yet. Run setup first."}function NS(e){return `No Ripplo project is connected to ${e}. Run setup first.`}function US(e){return `Ripplo's server rejected the request: ${e}`}function jS(){return "Done. Ripplo can sign in to your test app and review pull requests."}function LS({appUrl:e,projectUrl:t}){let n=sh.default.bold(`@ripplo review ${e}`);return [`Project ${Pr(t)}`,`Review comment ${n} on any pull request`]}function UR({secret:e,settingsUrl:t}){return [`Client secret ${e??Te("copy it from the settings page")}`,...e==null?[Pr(t)]:[]]}var MS=(()=>{let e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return t=>{let n=0;for(e.lastIndex=0;e.test(t);)n+=1;return t.length-n}})(),BS=e=>e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510,VS=e=>e===8987||e===9001||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141;var jR=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,LR=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,ZS=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,MR=/\t{1,1000}/y,WS=new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*","yu"),BR=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,VR=new RegExp("\\p{M}+","gu"),ZR={limit:1/0,ellipsis:""},GS=(e,t={},n={})=>{let i=t.limit??1/0,r=t.ellipsis??"",o=t?.ellipsisWidth??(r?GS(r,ZR,n).width:0),a=0,s=n.controlWidth??0,c=n.tabWidth??8,l=n.emojiWidth??2,d=2,p=n.regularWidth??1,m=n.wideWidth??d,h=[[BR,p],[jR,a],[LR,s],[MR,c],[WS,l],[ZS,m]],v=0,x=0,b=e.length,j=0,H=false,B=b,R=Math.max(0,i-o),k=0,N=0,re=0,ce=0;e:for(;;){if(N>k||x>=b&&x>v){let _e=e.slice(k,N)||e.slice(v,x);j=0;for(let ie of _e.replaceAll(VR,"")){let T=ie.codePointAt(0)||0;if(BS(T)?ce=d:VS(T)?ce=m:ce=p,re+ce>R&&(B=Math.min(B,Math.max(k,v)+j)),re+ce>i){H=true;break e}j+=ie.length,re+=ce;}k=N=0;}if(x>=b)break e;for(let _e=0,ie=h.length;_e<ie;_e++){let[T,z]=h[_e];if(T.lastIndex=x,T.test(e)){if(j=T===ZS?MS(e.slice(x,T.lastIndex)):T===WS?1:T.lastIndex-x,ce=j*z,re+ce>R&&(B=Math.min(B,x+Math.floor((R-re)/z))),re+ce>i){H=true;break e}re+=ce,k=v,N=x,x=v=T.lastIndex;continue e}}x+=1;}return {width:H?R:re,index:H?B:b,truncated:H,ellipsed:H&&i>=o}},qS=GS;var WR={limit:1/0,ellipsis:"",ellipsisWidth:0},GR=(e,t={})=>qS(e,WR,t).width,cr=GR;var fu="\x1B",XS="\x9B",qR=39,vh="\x07",QS="[",HR="]",eE="m",bh=`${HR}8;;`,HS=new RegExp(`(?:\\${QS}(?<code>\\d+)m|\\${bh}(?<uri>.*)${vh})`,"y"),YS=e=>{if(e>=30&&e<=37||e>=90&&e<=97)return 39;if(e>=40&&e<=47||e>=100&&e<=107)return 49;if(e===1||e===2)return 22;if(e===3)return 23;if(e===4)return 24;if(e===7)return 27;if(e===8)return 28;if(e===9)return 29;if(e===0)return 0},JS=e=>`${fu}${QS}${e}${eE}`,KS=e=>`${fu}${bh}${e}${vh}`,yh=(e,t,n)=>{let i=t[Symbol.iterator](),r=false,o=false,a=e.at(-1),s=a===void 0?0:cr(a),c=i.next(),l=i.next(),d=0;for(;!c.done;){let p=c.value,m=cr(p);s+m<=n?e[e.length-1]+=p:(e.push(p),s=0),(p===fu||p===XS)&&(r=true,o=t.startsWith(bh,d+1)),r?o?p===vh&&(r=false,o=false):p===eE&&(r=false):(s+=m,s===n&&!l.done&&(e.push(""),s=0)),c=l,l=i.next(),d+=p.length;}a=e.at(-1),!s&&a!==void 0&&a.length&&e.length>1&&(e[e.length-2]+=e.pop());},YR=e=>{let t=e.split(" "),n=t.length;for(;n&&!cr(t[n-1]);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")},JR=(e,t,n={})=>{if(n.trim!==false&&e.trim()==="")return "";let i="",r,o,a=e.split(" "),s=[""],c=0;for(let p=0;p<a.length;p++){let m=a[p];if(n.trim!==false){let v=s.at(-1)??"",x=v.trimStart();v.length!==x.length&&(s[s.length-1]=x,c=cr(x));}p!==0&&(c>=t&&(n.wordWrap===false||n.trim===false)&&(s.push(""),c=0),(c||n.trim===false)&&(s[s.length-1]+=" ",c++));let h=cr(m);if(n.hard&&h>t){let v=t-c,x=1+Math.floor((h-v-1)/t);Math.floor((h-1)/t)<x&&s.push(""),yh(s,m,t),c=cr(s.at(-1)??"");continue}if(c+h>t&&c&&h){if(n.wordWrap===false&&c<t){yh(s,m,t),c=cr(s.at(-1)??"");continue}s.push(""),c=0;}if(c+h>t&&n.wordWrap===false){yh(s,m,t),c=cr(s.at(-1)??"");continue}s[s.length-1]+=m,c+=h;}n.trim!==false&&(s=s.map(p=>YR(p)));let l=s.join(`
438
+ `),d=false;for(let p=0;p<l.length;p++){let m=l[p];if(i+=m,d)d=false;else if(d=m>="\uD800"&&m<="\uDBFF",d)continue;if(m===fu||m===XS){HS.lastIndex=p+1;let v=HS.exec(l)?.groups;if(v?.code!==void 0){let x=Number.parseFloat(v.code);r=x===qR?void 0:x;}else v?.uri!==void 0&&(o=v.uri.length===0?void 0:v.uri);}if(l[p+1]===`
439
+ `){o&&(i+=KS(""));let h=r?YS(r):void 0;r&&h&&(i+=JS(h));}else m===`
440
+ `&&(r&&YS(r)&&(i+=JS(r)),o&&(i+=KS(o)));}return i},KR=/\r?\n/;function _h(e,t,n){return String(e).normalize().split(KR).map(i=>JR(i,t,n)).join(`
441
+ `)}var It=c(rE(),1);function hu(e,t,n){if(!n.some(a=>!a.disabled))return e;let i=e+t,r=Math.max(n.length-1,0),o=i<0?r:i>r?0:i;return n[o]?.disabled?hu(o,t<0?-1:1,n):o}var iP=["up","down","left","right","space","enter","cancel"],oi={actions:new Set(iP),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function aP(e){if(e!==void 0)return e;let t=process.env.ACCESSIBLE;return t!==void 0&&t!==""&&t!=="0"&&t!=="false"}function nE(e,t){if(typeof e=="string")return oi.aliases.get(e)===t;for(let n of e)if(n!==void 0&&nE(n,t))return true;return false}function sP(e,t){if(e===t)return;let n=e.split(`
440
442
  `),i=t.split(`
441
- `),r=Math.max(n.length,i.length),o=[];for(let a=0;a<r;a++)n[a]!==i[a]&&o.push(a);return {lines:o,numLinesBefore:n.length,numLinesAfter:i.length,numLines:r}}globalThis.process.platform.startsWith("win");var sh=Symbol("clack:cancel");function uh(e){return e===sh}function cu(e,t){let n=e;n.isTTY&&n.setRawMode(t);}var UA=e=>"rows"in e&&typeof e.rows=="number"?e.rows:20;function jA(e,t){if("~standard"in e){let n=e["~standard"].validate(t);return n instanceof Promise?n.then(i=>i.issues?.at(0)?.message):n.issues?.at(0)?.message}return e(t)}var du=class{input;output;_abortSignal;rl;opts;_render;_track=false;_prevFrame="";_subscribers=new Map;_cursor=0;state="initial";error="";value;userInput="";get accessible(){return NA(this.opts.accessible)}constructor(t,n=true){let{input:i=stdin,output:r=stdout,render:o,signal:a,...s}=t;this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=o.bind(this),this._track=n,this._abortSignal=a,this.input=i,this.output=r;}unsubscribe(){this._subscribers.clear();}setSubscriber(t,n){let i=this._subscribers.get(t)??[];i.push(n),this._subscribers.set(t,i);}on(t,n){this.setSubscriber(t,{cb:n});}once(t,n){this.setSubscriber(t,{cb:n,once:true});}emit(t,...n){let i=this._subscribers.get(t)??[],r=[];for(let o of i)o.cb(...n),o.once&&r.push(()=>i.splice(i.indexOf(o),1));for(let o of r)o();}prompt(){return new Promise(t=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),t(sh);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close();},{once:true});}this.rl=TA.createInterface({input:this.input,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:true}),this.rl.prompt(),this.opts.initialUserInput!==void 0&&this._setUserInput(this.opts.initialUserInput,true),this.input.on("keypress",this.onKeypress),cu(this.input,true),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(Ot.cursor.show),this.output.off("resize",this.render),cu(this.input,false),t(this.value);}),this.once("cancel",()=>{this.output.write(Ot.cursor.show),this.output.off("resize",this.render),cu(this.input,false),t(sh);});})}_isActionKey(t,n){return t===" "}_shouldSubmit(t,n){return true}_setValue(t){this.value=t,this.emit("value",this.value);}_setUserInput(t,n){this.userInput=t??"",this.emit("userInput",this.userInput),n&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor);}_clearUserInput(){this.rl?.write(null,{ctrl:true,name:"u"}),this._setUserInput("");}async onKeypress(t,n){if(this.state!=="validating"){if(this._track&&n.name!=="return"&&(n.name&&this._isActionKey(t,n)&&this.rl?.write(null,{ctrl:true,name:"h"}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),this.state==="error"&&(this.state="active"),n?.name&&(!this._track&&ai.aliases.has(n.name)&&this.emit("cursor",ai.aliases.get(n.name)),ai.actions.has(n.name)&&this.emit("cursor",n.name)),t&&(t.toLowerCase()==="y"||t.toLowerCase()==="n")&&this.emit("confirm",t.toLowerCase()==="y"),this.emit("key",t,n),n?.name==="return"&&this._shouldSubmit(t,n)){if(this.opts.validate){let i=jA(this.opts.validate,this.value),r;i instanceof Promise?(this.state="validating",this.render(),r=await i):r=i,r&&(this.error=r instanceof Error?r.message:r,this.state="error",this.rl?.write(this.userInput));}this.state!=="error"&&(this.state="submit");}YS([t,n?.name,n?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close();}}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
442
- `),cu(this.input,false),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe();}restoreCursor(){let t=oh(this._prevFrame,process.stdout.columns,{hard:true,trim:false}).split(`
443
- `).length-1;this.output.write(Ot.cursor.move(-999,t*-1));}render(){let t=oh(this._render(this)??"",process.stdout.columns,{hard:true,trim:false});if(t!==this._prevFrame){if(this.state==="initial")this.output.write(Ot.cursor.hide);else {let n=zA(this._prevFrame,t),i=UA(this.output);if(this.restoreCursor(),n){let r=Math.max(0,n.numLinesAfter-i),o=Math.max(0,n.numLinesBefore-i),a=n.lines.find(s=>s>=r);if(a===void 0){this._prevFrame=t;return}if(n.lines.length===1){this.output.write(Ot.cursor.move(0,a-o)),this.output.write(Ot.erase.lines(1));let s=t.split(`
444
- `);this.output.write(s[a]),this._prevFrame=t,this.output.write(Ot.cursor.move(0,s.length-a-1));return}else if(n.lines.length>1){if(r<o)a=r;else {let c=a-o;c>0&&this.output.write(Ot.cursor.move(0,c));}this.output.write(Ot.erase.down());let s=t.split(`
443
+ `),r=Math.max(n.length,i.length),o=[];for(let a=0;a<r;a++)n[a]!==i[a]&&o.push(a);return {lines:o,numLinesBefore:n.length,numLinesAfter:i.length,numLines:r}}globalThis.process.platform.startsWith("win");var xh=Symbol("clack:cancel");function Sh(e){return e===xh}function mu(e,t){let n=e;n.isTTY&&n.setRawMode(t);}var uP=e=>"rows"in e&&typeof e.rows=="number"?e.rows:20;function cP(e,t){if("~standard"in e){let n=e["~standard"].validate(t);return n instanceof Promise?n.then(i=>i.issues?.at(0)?.message):n.issues?.at(0)?.message}return e(t)}var gu=class{input;output;_abortSignal;rl;opts;_render;_track=false;_prevFrame="";_subscribers=new Map;_cursor=0;state="initial";error="";value;userInput="";get accessible(){return aP(this.opts.accessible)}constructor(t,n=true){let{input:i=stdin,output:r=stdout,render:o,signal:a,...s}=t;this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=o.bind(this),this._track=n,this._abortSignal=a,this.input=i,this.output=r;}unsubscribe(){this._subscribers.clear();}setSubscriber(t,n){let i=this._subscribers.get(t)??[];i.push(n),this._subscribers.set(t,i);}on(t,n){this.setSubscriber(t,{cb:n});}once(t,n){this.setSubscriber(t,{cb:n,once:true});}emit(t,...n){let i=this._subscribers.get(t)??[],r=[];for(let o of i)o.cb(...n),o.once&&r.push(()=>i.splice(i.indexOf(o),1));for(let o of r)o();}prompt(){return new Promise(t=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),t(xh);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close();},{once:true});}this.rl=nP.createInterface({input:this.input,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:true}),this.rl.prompt(),this.opts.initialUserInput!==void 0&&this._setUserInput(this.opts.initialUserInput,true),this.input.on("keypress",this.onKeypress),mu(this.input,true),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(It.cursor.show),this.output.off("resize",this.render),mu(this.input,false),t(this.value);}),this.once("cancel",()=>{this.output.write(It.cursor.show),this.output.off("resize",this.render),mu(this.input,false),t(xh);});})}_isActionKey(t,n){return t===" "}_shouldSubmit(t,n){return true}_setValue(t){this.value=t,this.emit("value",this.value);}_setUserInput(t,n){this.userInput=t??"",this.emit("userInput",this.userInput),n&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor);}_clearUserInput(){this.rl?.write(null,{ctrl:true,name:"u"}),this._setUserInput("");}async onKeypress(t,n){if(this.state!=="validating"){if(this._track&&n.name!=="return"&&(n.name&&this._isActionKey(t,n)&&this.rl?.write(null,{ctrl:true,name:"h"}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),this.state==="error"&&(this.state="active"),n?.name&&(!this._track&&oi.aliases.has(n.name)&&this.emit("cursor",oi.aliases.get(n.name)),oi.actions.has(n.name)&&this.emit("cursor",n.name)),t&&(t.toLowerCase()==="y"||t.toLowerCase()==="n")&&this.emit("confirm",t.toLowerCase()==="y"),this.emit("key",t,n),n?.name==="return"&&this._shouldSubmit(t,n)){if(this.opts.validate){let i=cP(this.opts.validate,this.value),r;i instanceof Promise?(this.state="validating",this.render(),r=await i):r=i,r&&(this.error=r instanceof Error?r.message:r,this.state="error",this.rl?.write(this.userInput));}this.state!=="error"&&(this.state="submit");}nE([t,n?.name,n?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close();}}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
444
+ `),mu(this.input,false),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe();}restoreCursor(){let t=_h(this._prevFrame,process.stdout.columns,{hard:true,trim:false}).split(`
445
+ `).length-1;this.output.write(It.cursor.move(-999,t*-1));}render(){let t=_h(this._render(this)??"",process.stdout.columns,{hard:true,trim:false});if(t!==this._prevFrame){if(this.state==="initial")this.output.write(It.cursor.hide);else {let n=sP(this._prevFrame,t),i=uP(this.output);if(this.restoreCursor(),n){let r=Math.max(0,n.numLinesAfter-i),o=Math.max(0,n.numLinesBefore-i),a=n.lines.find(s=>s>=r);if(a===void 0){this._prevFrame=t;return}if(n.lines.length===1){this.output.write(It.cursor.move(0,a-o)),this.output.write(It.erase.lines(1));let s=t.split(`
446
+ `);this.output.write(s[a]),this._prevFrame=t,this.output.write(It.cursor.move(0,s.length-a-1));return}else if(n.lines.length>1){if(r<o)a=r;else {let c=a-o;c>0&&this.output.write(It.cursor.move(0,c));}this.output.write(It.erase.down());let s=t.split(`
445
447
  `).slice(a);this.output.write(s.join(`
446
- `)),this._prevFrame=t;return}}this.output.write(Ot.erase.down());}this.output.write(t),this.state==="initial"&&(this.state="active"),this._prevFrame=t;}}};var JS=class extends du{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){let t=this._selectedValue;this.value=t===void 0?void 0:t.value;}constructor(t){super(t,false),this.options=t.options;let n=this.options.findIndex(({value:r})=>r===t.initialValue),i=n===-1?0:n;this.cursor=this.options[i]?.disabled?lu(i,1,this.options):i,this.changeValue(),this.on("cursor",r=>{switch(r){case "left":case "up":this.cursor=lu(this.cursor,-1,this.options);break;case "down":case "right":this.cursor=lu(this.cursor,1,this.options);break}this.changeValue();});}};var pu=class extends du{get userInputWithCursor(){if(this.state==="submit")return this.userInput;let t=this.userInput;if(this.cursor>=t.length)return `${this.userInput}\u2588`;let n=t.slice(0,this.cursor),i=t.slice(this.cursor,this.cursor+1),r=t.slice(this.cursor+1);return `${n}${styleText("inverse",i)}${r}`}get cursor(){return this._cursor}constructor(t){super({...t,initialUserInput:t.initialUserInput??t.initialValue}),this.on("userInput",n=>{this._setValue(n);}),this.on("finalize",()=>{this.value||(this.value=t.defaultValue),this.value===void 0&&(this.value="");});}};var kt=c(ru(),1);var Ct=process.stdin.isTTY,lh=Symbol("cancel"),ch=" ",LA=80,XS=String.fromCodePoint(27),KS=`\r${XS}[2K`,QS=new RegExp(`${XS}\\[[\\d;]*m`,"gu"),MA=new Set(["\u2713","\u2717","\u2192","\u25CF","\u25CB","\u2026"]);function mu(e){vt(`
447
- ${kt.default.bold(e)}`);}function rt({title:e,why:t}){vt(`
448
- ${kt.default.bold(kt.default.cyan(e))}`),vt(ze(Ne(t)));}function Te(e){vt(ze(`${kt.default.green("\u2713")} ${e}`));}function hu(e){vt(ze(`${kt.default.red("\u2717")} ${e}`));}function an(e){vt(ze(`${kt.default.yellow("\u2192")} ${e}`));}function Ue(e){vt(ze(e));}function $r(e){vt(ze((typeof e=="string"?[e]:e).map(n=>Ne(n))));}function eE(){vt("");}function sn(e,t=[]){vt(`
449
- ${e}`),t.forEach(n=>{vt(`${ch}${n}`);}),vt("");}function He(e){vt(`
450
- ${Ne(e)}
451
- `),process.exit(0);}function je(e,t=[]){hu(e),sn(Ne("Stopped."),t),process.exit(1);}function gu(e){return process.stdout.write(ze(`${Ne("\u2026")} ${e}`)),{done:t=>{process.stdout.write(KS),Te(t);},failed:t=>{process.stdout.write(KS),hu(t);}}}function vu(e){return rE({...e,layout:"column"})}function yt(e){return rE({...e,layout:"row"})}async function tE({message:e,placeholder:t,suggested:n,validate:i}){let o=await new pu({initialValue:n,placeholder:t,render(){let a=t==null?"":Ne(`ex: ${t}`),s=kt.default.inverse(" "),c=this.userInput.length===0?`${s} ${a}`:this.userInputWithCursor;switch(this.state){case "submit":return ze(`${kt.default.green("\u2713")} ${this.value??""}`);case "cancel":return ze(Ne(e));case "error":{let l=ze(`${kt.default.red("\u2717")} ${this.error}`);return [ze(e),ze(c),l].join(`
452
- `)}case "initial":case "active":case "validating":return [ze(e),ze(c)].join(`
453
- `)}},validate:a=>i(a??"")}).prompt();return uh(o)||typeof o!="string"?lh:o.trim()}function Ve(e){return e===lh}async function yu(e){try{await e();}catch(t){throw t instanceof Ur&&je(CS(t.message)),t}}function Ir(){return "npx ripplo setup"}async function rE({choices:e,layout:t,message:n}){let i=[...e],r=n==null?[]:[ze(n)],a=await new JS({options:i,render(){let s=i.find(c=>c.value===this.value);switch(this.state){case "submit":return ze(`${kt.default.green("\u2713")} ${s?.label??""}`);case "cancel":return ze(Ne(n??"Stopped"));case "initial":case "active":case "error":case "validating":{let c=i.map((d,p)=>`${p===this.cursor?kt.default.green("\u25CF"):Ne("\u25CB")} ${d.label}`),l=t==="row"?[ze(c.join(" "))]:c.map(d=>ze(d));return [...r,...l].join(`
454
- `)}}}}).prompt();return uh(a)||typeof a!="string"?lh:a}function ze(e){let t=typeof e=="string"?[e]:e,n=process.stdout.columns,i=(n>0?n:LA)-ch.length;return t.flatMap(r=>r.length===0?[""]:BA(r,i).map(o=>ch+o)).join(`
455
- `)}function BA(e,t){let[n="",...i]=e.split(" "),r=VA(n)?" ":"";return i.reduce((o,a)=>{let c=`${o.at(-1)??""} ${a}`;return ZA(c)<=t?[...o.slice(0,-1),c]:[...o,`${r}${a}`]},[n])}function VA(e){let t=e.replaceAll(QS,"");return MA.has(t)}function ZA(e){return e.replaceAll(QS,"").length}function vt(e){process.stdout.write(`${e}
456
- `);}var qA=promisify(execFile),HA=u.object({stderr:u.string().optional(),stdout:u.string().optional()});async function bu({args:e,command:t,cwd:n}){try{let{stderr:i,stdout:r}=await qA(t,[...e],{cwd:n});return {ok:!0,stderr:i,stdout:r}}catch(i){return YA(i)}}function YA(e){let t=HA.safeParse(e),n=t.success?t.data.stderr??"":"",i=t.success?t.data.stdout??"":"",r=e instanceof Error?e.message:String(e);return {ok:false,stderr:n.length>0?n:r,stdout:i}}var JA=u.string().transform((e,t)=>{try{return JSON.parse(e)}catch{return t.addIssue({code:"custom",message:"not json"}),u.NEVER}});async function nE(){return (await si(["--version"])).ok}function si(e){return bu({args:e,command:"claude",cwd:void 0})}var KA=["user","project","local"],XA=u.array(u.object({id:u.string(),version:u.string()}));async function iE(){if(await QA()===Hs())return "ready";await si(["plugin","marketplace","add","ripplo/claude-plugin"]),await si(["plugin","marketplace","update","ripplo"]);let e=await si(["plugin","install","ripplo@ripplo"]),t=/already installed/i.test(`${e.stdout}${e.stderr}`);return !e.ok&&!t?"install-failed":(t&&await Promise.all(KA.map(n=>si(["plugin","update","ripplo","--scope",n]))),"ready")}async function QA(){let e=await si(["plugin","list","--json"]);if(!e.ok)return;let t=JA.pipe(XA).safeParse(e.stdout);return t.success?t.data.find(n=>n.id==="ripplo@ripplo")?.version:void 0}async function oE(){if(rt(It("claude")),!await nE()){Ue(gS());return}if(Ue(dS()),await iE()==="install-failed"){hu(pS());return}Te(vS());}var eT=/^(?:https:\/\/github\.com\/|git@github\.com:)([^/]+)\/([^/]+?)(?:\.git)?\/?$/;async function _u(e){let t=await bu({args:["remote","get-url","origin"],command:"git",cwd:e}),n=t.stdout.trim();if(!t.ok||n.length===0)return ue({kind:"no-remote"});let i=aE(n);return i==null?ue({kind:"not-github",remote:n}):Ce(i)}function fo(e,t){let n=e==null?void 0:aE(e);return n!=null&&n.owner.toLowerCase()===t.owner.toLowerCase()&&n.repo.toLowerCase()===t.repo.toLowerCase()}function aE(e){let t=eT.exec(e),n=t?.[1],i=t?.[2];if(!(n==null||i==null))return {owner:n,repo:i,url:`https://github.com/${n}/${i}`}}async function sE(e){let t=Lt();t==null&&je(on());let n=Ge(t),[i,r]=await Promise.all([_u(e),ni(n)]),o=i.match(c=>c,c=>je(ou(c))),a=`${o.owner}/${o.repo}`,s=r.find(c=>fo(c.repoUrl,o));return s==null&&je(kS(a)),{connection:n,project:s}}function uE(){return yu(()=>tT(process.cwd()))}async function tT(e){let{connection:t,project:n}=await sE(e);mu(iu()),await mo({connection:t,project:n});}async function rT(e){if(rt(It("open")),!Ct)return;let t=await yt({choices:[{label:fS(),value:"yes"},{label:mS(),value:"no"}],message:hS()});Ve(t)&&He(qe()),t==="yes"&&Br(e);}async function nT(){if(!Ct)return;$r(yS());let e=await yt({choices:[{label:bS(),value:"start"},{label:po(),value:"stop"}],message:void 0});(Ve(e)||e==="stop")&&je(su(),[ii(Ir())]);}async function cE(e){if(await iT(e))return;Ct||je(su(),[ii(Ir())]);let n=await yt({choices:[{label:IS(),value:"again"},{label:po(),value:"stop"}],message:$S()});return (Ve(n)||n==="stop")&&je(su(),[ii(Ir())]),cE(e)}async function iT({connection:e,connectionId:t,name:n}){let i=await ZD({connection:e,connectionId:t});an(_S()),Br(i.url),Ue(DS(i.url));let r=gu(xS()),o=await qm({connection:e,remainingMs:lo,runId:i.runId});if(o.kind==="signedIn")return r.done(SS(n)),true;if(o.kind==="timedOut")return r.failed(wS(lo/1e3)),false;let a=ES(o.detail);return r.failed(a.headline),Ue(a.detail),false}async function mo({connection:e,project:t}){let n=t.defaultAuthConnection;if(n?.oidc==null&&je(OS()),rt(It("check")),await nT(),await cE({connection:e,connectionId:n.id,name:n.name}),await oE(),await rT(GD({connection:e,projectId:t.id})),t.cloudBaseUrl==null||t.cloudBaseUrl.length===0)throw new Error("checked-project-without-app-url");sn(RS(),AS({appUrl:t.cloudBaseUrl,projectUrl:Gm({connection:e,projectId:t.id})}));}var ho=["staging","previews","both"];async function un({flag:e,given:t,hint:n,message:i,placeholder:r,schema:o,suggested:a}){if(t!=null)return dh({flag:e,given:t,schema:o});cn(e),$r(n);let s=await tE({message:i,placeholder:r,suggested:a,validate:c=>oT(o.safeParse(c))});return Ve(s)&&He(qe()),s}function dh({flag:e,given:t,schema:n}){let i=n.safeParse(t);return i.success||je(Ax({flag:e,reason:lE(i.error)})),Te(Rx({flag:e,value:i.data})),i.data}function cn(e){Ct||je(Tx(e));}async function ln(){if(!Ct)return "continue";let e=await yt({choices:[{label:Fx(),value:"continue"},{label:Px(),value:"change"}],message:void 0});return Ve(e)&&He(qe()),e==="change"?"change":"continue"}function lE(e){let[t]=e.issues;if(t==null)throw new Error("zod-failure-without-issue");return t.message}function oT(e){return e.success?void 0:lE(e.error)}async function dE({answers:e,connection:t,existing:n,repo:i}){if(n!=null)return Te(mx(n.name)),await ln()==="change"&&(Ue(hx(n.name)),He(qe())),{kind:"existing",project:n};let r=await aT({answers:e,connection:t});return Te(gx({organization:r.name,repo:i})),{kind:"new",organization:r,repo:i}}async function pE({connection:e,plan:t,repository:n}){return (await jD({connection:e,installationId:n.installationId,name:n.name,organizationId:t.organization.id,repoUrl:n.url})).match(r=>(Te(vx(r.name,t.organization.name)),r),r=>je(yx(r.message)))}async function aT({answers:e,connection:t}){let n=await zD(t),[i]=n;if(i==null&&je(dx()),n.length===1)return Te(Km(i.name)),i;let r=n.find(s=>s.name===e.organization);if(r!=null)return Te(Km(r.name)),r;cn("organization");let o=await vu({choices:n.map(s=>({label:fx(s),value:s.id})),message:px()}),a=n.find(s=>s.id===o);return (Ve(o)||a==null)&&He(qe()),a}function fE(e){let t=mE(e.cloudBaseUrl);if(t==null)return;let n=e.defaultAuthConnection?.oidc?.redirectUris??[],i=n.find(a=>Hn(a)?.kind==="host-pattern"),r=n.filter(a=>Hn(a)?.kind==="exact"),o=i;return o==null?{appUrl:t,environments:"staging",previewUrl:void 0}:{appUrl:t,environments:r.length===0?"previews":"both",previewUrl:sT(o)}}function sT(e){let t=e.indexOf("/",e.indexOf("//")+2);return t===-1?e:e.slice(0,t)}async function ph({answers:e,connection:t,project:n}){let i=await uT(e),r=i==="staging"?void 0:await cT(e),o=await lT({answers:e,environments:i,project:n});return await LD({appUrl:o,connection:t,id:n.id}),{appUrl:o,environments:i,previewUrl:r}}async function uT(e){if(e.environments!=null)return Te(_x(e.environments)),e.environments;cn("environments");let t=await vu({choices:ho.map(i=>({label:au(i),value:i})),message:bx()}),n=ho.find(i=>i===t);return (Ve(t)||n==null)&&He(qe()),n}async function cT(e){return un({flag:"preview-url",given:e.previewUrl,hint:wx(),message:$x(),placeholder:Ix(),schema:Vf,suggested:void 0})}async function lT({answers:e,environments:t,project:n}){let i=t==="previews",r=await un({flag:"app-url",given:e.appUrl,hint:i?Ox():xx(),message:i?kx():Sx(),placeholder:i?Cx():Ex(),schema:ms,suggested:mE(n.cloudBaseUrl)});return new URL(r).origin}function mE(e){return e==null||e.length===0?void 0:e}async function hE({connection:e,created:t,project:n}){let i=Wm({connection:e,projectId:n.id});if(!Ct){vE({created:t,settingsUrl:i});return}let r=await yt({choices:[{label:aS(),value:"now"},{label:sS(),value:"later"}],message:oS()});if(Ve(r)&&He(qe()),r==="later"){sn(Qm(),[Ir()]);return}an(uS()),Ue(Xm({connection:t,secret:t.secret,settingsUrl:i})),$r(eh()),await yE(th());let o=await dT({connection:e,id:n.id});await mo({connection:e,project:o});}async function gE({connection:e,created:t,project:n}){if(!Ct){vE({created:t,settingsUrl:Wm({connection:e,projectId:n.id})});return}Ue(Yx(t));let i=await yt({choices:[{label:Qx(),value:"continue"},{label:eS(),value:"rotate"}],message:Xx()});if(Ve(i)&&He(qe()),i==="rotate"){$r(Jx());let r=await yt({choices:[{label:tS(),value:"rotate"},{label:rS(),value:"keep"}],message:void 0});if(Ve(r)||r==="keep"){await mo({connection:e,project:n});return}let o=await VD({connection:e,connectionId:t.id});Ue(Kx(o)),$r(eh()),await yE(th());}await mo({connection:e,project:n});}function vE({created:e,settingsUrl:t}){nS().forEach(n=>{an(n);}),Ue(iS()),eE(),Ue(Xm({connection:e,secret:null,settingsUrl:t})),sn(lS(),[ii(Ir())]);}async function yE(e){let t=await yt({choices:[{label:cS(),value:"done"},{label:po(),value:"stop"}],message:e});(Ve(t)||t==="stop")&&(sn(Qm(),[Ir()]),process.exit(0));}async function dT({connection:e,id:t}){let i=(await ni(e)).find(r=>r.id===t);if(i==null)throw new Error("project-vanished-during-setup");return i}async function bE(e){let{answers:t,connection:n,project:i}=e,r=i.defaultAuthConnection;rt(It("url"));let o=await pT({answers:t,connection:n,project:i});if(rt(It("auth")),rt(nu("ripplo")),r?.oidc==null){let s=await fT({answers:t,connection:n,project:i,targets:o});rt(nu("app")),await hE({connection:n,created:s,project:i});return}let a=await vT({answers:t,connection:n,existing:r,targets:o});rt(nu("app")),await gE({connection:n,created:a,project:i});}async function pT({answers:e,connection:t,project:n}){let i=fE(n);return i==null?ph({answers:e,connection:t,project:n}):(Dx(i).forEach(o=>{Te(o);}),await ln()==="change"?ph({answers:e,connection:t,project:n}):i)}async function fT({answers:e,connection:t,project:n,targets:i}){let r=await _E({answers:e,existingUris:[],targets:i}),o=await MD({connection:t,project:n,values:r});return Te(jx(o.connection.name)),DE({connection:o.connection,secret:o.clientSecret})}async function _E({answers:e,existingUris:t,targets:n}){let i=await un({flag:"sign-in-page",given:e.signInPage,hint:Lx(),message:Mx(),placeholder:Bx(),schema:hs,suggested:void 0});return {redirectUris:await mT({answers:e,existingUris:t,targets:n}),signInEntry:i}}async function mT({answers:e,existingUris:t,targets:n}){if(e.redirectUris.length>0)return e.redirectUris.map(o=>dh({flag:"redirect-uri",given:o,schema:jr}));cn("redirect-uri");let i=n.environments==="previews"?[]:[await hT({appUrl:n.appUrl,suggested:t[0]})],r=n.previewUrl==null?[]:[await gT(n.previewUrl)];return [...i,...r]}function hT({appUrl:e,suggested:t}){return un({flag:"redirect-uri",given:void 0,hint:Vx(),message:Zx(),placeholder:Wx(e),schema:jr,suggested:t})}function gT(e){return un({flag:"redirect-uri",given:void 0,hint:Gx(),message:qx(),placeholder:Hx(e),schema:jr,suggested:void 0})}function DE({connection:e,secret:t}){let n=e.oidc;if(n==null)throw new Error("connection-without-oidc");return {...n,id:e.id,name:e.name,secret:t}}async function vT({answers:e,connection:t,existing:n,targets:i}){let r=n.oidc;if(r==null)throw new Error("existing-connection-without-oidc");let o=n.webhookSecret??null;if(Te(Nx(n.name)),Ue(zx(r)),await ln()==="continue")return {...r,id:n.id,name:n.name,secret:o};let s=await _E({answers:e,existingUris:r.redirectUris,targets:i}),c=await BD({connection:t,id:n.id,name:n.name,scimBaseUrl:r.scimBaseUrl,values:s});return Te(Ux(c.name)),DE({connection:c,secret:o})}var xE=3e3,SE=200,bT=xE*SE/6e4;function EE(e){return yu(()=>_T({answers:e,cwd:process.cwd()}))}async function _T({answers:e,cwd:t}){let n=await DT(t),i=`${n.owner}/${n.repo}`;mu(iu()),rt(It("signIn"));let r=await xT();rt(It("project"));let a=(await ni(r)).find(l=>fo(l.repoUrl,n)),s=await dE({answers:e,connection:r,existing:a,repo:i}),c=s.kind==="existing"?s.project:await ST({connection:r,plan:s,remote:n});await bE({answers:e,connection:r,project:c});}async function DT(e){return (await _u(e)).match(n=>n,n=>je(ou(n)))}async function xT(){let e=Lt(),t=e==null?void 0:await uo(e);if(e!=null&&t?.kind==="ok"){if(Te(rx(t.viewer.email)),await ln()==="continue")return Ge(e);ro(wr());}await to({lookupViewer:uo,serverUrl:wr()});let n=Lt();return n==null&&je(on()),Ge(n)}async function ST({connection:e,plan:t,remote:n}){rt(It("github"));let i={connection:e,organization:t.organization,remote:n},r=await wE(i);r!=null&&Te(Jm(t.repo));let o=r??await ET(i);return pE({connection:e,plan:t,repository:o})}async function wE({connection:e,organization:t,remote:n}){return (await UD({connection:e,organizationId:t.id})).find(r=>fo(r.url,n))}async function ET(e){let t=`${e.remote.owner}/${e.remote.repo}`;Ue(nx({organization:e.organization.name,repo:t})),an(ix(e.remote.owner)),await wT({choice:ax(),question:ox()}),Br(e.organization.integrationsUrl),Ue(ux(e.organization.integrationsUrl));let n=gu(cx(t)),i=await $E({remaining:SE,target:e});return i==null&&(n.failed(lx({minutes:bT,repo:t})),He(qe())),n.done(Jm(t)),i}async function wT({choice:e,question:t}){if(!Ct)return;let n=await yt({choices:[{label:e,value:"open"},{label:sx(),value:"stop"}],message:t});(Ve(n)||n==="stop")&&He(qe());}async function $E({remaining:e,target:t}){return e===0?void 0:(await setTimeout$1(xE),await wE(t)??$E({remaining:e-1,target:t}))}async function fh({data:e,destination:t}){let n=`${t}.${randomUUID()}.tmp`;try{await writeFile(n,e),await rename(n,t);}finally{await rm$1(n,{force:true});}}var TT=createRequire$1(import.meta.url);function IE(e,t){try{return TT.resolve(e)}catch{return fileURLToPath(new URL(`assets/${t}`,import.meta.url))}}function OE(e){let t;return ()=>(t??=readFile(e,"utf8"),t)}var PT={height:800,width:1280};async function kE(e){let t=await readFile(e,"utf8");return Zi(t).flatMap(n=>n.kind==="rrweb"?[n.event]:[])}var NT=u.object({data:u.looseObject({height:u.number(),width:u.number()}),type:u.literal(4)});function Du(e){let t=e.flatMap(n=>{let i=NT.safeParse(n);return i.success?[i.data]:[]})[0];return t==null?PT:{height:t.data.height,width:t.data.width}}function CE(){return import('playwright').then(({chromium:e})=>e.launch({args:["--no-sandbox"],headless:true})).catch(()=>null)}var RE=OE(IE("@ripplo/rrweb-bundle/replay","rrweb-replay.js"));function AE(e){return `globalThis.__ripploReplayEvents = ${JSON.stringify(e)};`}function TE({styleRules:e,useVirtualDom:t}){globalThis.__ripploSnapshotReplayer=new globalThis.__RipploReplayer(globalThis.__ripploReplayEvents,{insertStyleRules:e,mouseTail:false,root:document.body,showWarning:false,useVirtualDom:t});}function FE(e){globalThis.__ripploSnapshotReplayer?.pause(e+.5);}function PE({frameSelector:e}){let t=document.querySelector(e)?.contentDocument;return t==null?false:(t.documentElement.getBoundingClientRect(),[...t.querySelectorAll('link[rel~="stylesheet"]')].every(i=>i.disabled||i.sheet!=null)&&t.fonts.status==="loaded")}async function NE(){await new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>{e();}));});}function zE({documentPrefix:e,frameSelector:t}){let n=globalThis.__ripploSnapshotReplayer,i=document.querySelector(t)?.contentDocument;if(n==null||i==null)return "";let r=n.getMirror();return [...i.querySelectorAll("*")].forEach(o=>{let a=r.getId(o);a!=null&&a>0&&(o.dataset.rrwebId=String(a));}),`${e}${i.documentElement.outerHTML}`}function UE({frameSelector:e}){let t=document.querySelector(e)?.contentDocument;if(t==null)return [];let n=s=>[...s.childNodes].filter(c=>c.nodeType===3).map(c=>c.textContent??"").join(" ").replaceAll(/\s+/gu," ").trim(),i=s=>{if(s==null)return null;let c=s.dataset.rrwebId;if(c==null)return null;let l=Number.parseInt(c,10);return Number.isSafeInteger(l)&&l>0?l:null},r=s=>s.checkVisibility({opacityProperty:true,visibilityProperty:true}),o=s=>s==null||r(s)?s:o(s.parentElement);return [...t.querySelectorAll("*")].filter(s=>r(s)).map(s=>({attributes:Object.fromEntries([...s.attributes].map(c=>[c.name,c.value])),directText:n(s),parentRrwebId:i(o(s.parentElement)),rrwebId:i(s),tagName:s.tagName.toLowerCase()}))}function jE({frameSelector:e,rrwebId:t}){let n=document.querySelector(e)?.contentDocument,i=n?.defaultView;if(n==null||i==null)throw new Error("snapshot-document-missing");let r=[...n.querySelectorAll(`[data-rrweb-id="${String(t)}"]`)][0];return r==null?Promise.resolve(null):new Promise((o,a)=>{let s=new i.IntersectionObserver(c=>{s.disconnect();let l=c[0];if(l==null){a(new Error("snapshot-intersection-missing"));return}let d=l.intersectionRect;o(l.intersectionRatio>0?{height:d.height,width:d.width,x:d.x,y:d.y}:null);});s.observe(r);})}var Kt=".replayer-wrapper iframe",LE=`<!doctype html>
457
- `;function ME(e){return e.screenshot({animations:"disabled",timeout:1e4,type:"png"})}var UT="outline: 2px solid #ff4040 !important; outline-offset: 2px !important;";async function BE({page:e,pngPath:t,rrwebId:n}){let i=e.locator(Kt).first(),r=e.frameLocator(Kt).locator(`[data-rrweb-id="${String(n)}"]`),o=await i.boundingBox(),a=await r.count()===1;if(o==null||!a||!await r.isVisible())return {kind:"unavailable",rrwebId:n};let s=jT.nullable().parse(await e.evaluate(jE,{frameSelector:Kt,rrwebId:n}));if(s==null)return {kind:"unavailable",rrwebId:n};let c={...s,x:s.x+o.x,y:s.y+o.y};if(c.width<=0||c.height<=0)return {kind:"unavailable",rrwebId:n};let l=`[data-rrweb-id="${String(n)}"] { ${UT} }`,d=`${t}.element-${String(n)}.png`,p=`${t}.element-${String(n)}.context.png`;await writeFile(d,await i.screenshot({animations:"disabled",style:l,timeout:1e4}));let m=LT({inner:{height:c.height+200,width:c.width+240,x:c.x-120,y:c.y-100},outer:o});return await e.screenshot({animations:"disabled",clip:m,path:p,style:l,timeout:1e4}),{cropPath:p,fullPath:d,kind:"visible",rrwebId:n}}var jT=u.object({height:u.number().nonnegative(),width:u.number().nonnegative(),x:u.number(),y:u.number()});function LT({inner:e,outer:t}){let n=Math.max(t.x,e.x),i=Math.max(t.y,e.y);return {height:Math.min(t.y+t.height,e.y+e.height)-i,width:Math.min(t.x+t.width,e.x+e.width)-n,x:n,y:i}}async function VE(e){await e.addInitScript(MT);}function MT(){Reflect.set(globalThis,"__name",e=>e);}var ZT=".replayer-mouse, .replayer-mouse-tail { display: none; }";function ZE(e){return `<!doctype html><html><head><style>
448
+ `)),this._prevFrame=t;return}}this.output.write(It.erase.down());}this.output.write(t),this.state==="initial"&&(this.state="active"),this._prevFrame=t;}}};var iE=class extends gu{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){let t=this._selectedValue;this.value=t===void 0?void 0:t.value;}constructor(t){super(t,false),this.options=t.options;let n=this.options.findIndex(({value:r})=>r===t.initialValue),i=n===-1?0:n;this.cursor=this.options[i]?.disabled?hu(i,1,this.options):i,this.changeValue(),this.on("cursor",r=>{switch(r){case "left":case "up":this.cursor=hu(this.cursor,-1,this.options);break;case "down":case "right":this.cursor=hu(this.cursor,1,this.options);break}this.changeValue();});}};var yu=class extends gu{get userInputWithCursor(){if(this.state==="submit")return this.userInput;let t=this.userInput;if(this.cursor>=t.length)return `${this.userInput}\u2588`;let n=t.slice(0,this.cursor),i=t.slice(this.cursor,this.cursor+1),r=t.slice(this.cursor+1);return `${n}${styleText("inverse",i)}${r}`}get cursor(){return this._cursor}constructor(t){super({...t,initialUserInput:t.initialUserInput??t.initialValue}),this.on("userInput",n=>{this._setValue(n);}),this.on("finalize",()=>{this.value||(this.value=t.defaultValue),this.value===void 0&&(this.value="");});}};var Ot=c(uu(),1);var Se=process.stdin.isTTY,wh=Symbol("cancel"),Eh=" ",lP=80,aE=String.fromCodePoint(27),oE=`\r${aE}[2K`,sE=new RegExp(`${aE}\\[[\\d;]*m`,"gu"),dP=new Set(["\u2713","\u2717","\u2192","\u25CF","\u25CB","\u2026"]);function bu(e){kt(`
449
+ ${Ot.default.bold(e)}`);}function ct({title:e,why:t}){kt(`
450
+ ${Ot.default.bold(Ot.default.cyan(e))}`),kt(je(Te(t)));}function fe(e){kt(je(`${Ot.default.green("\u2713")} ${e}`));}function _u(e){kt(je(`${Ot.default.red("\u2717")} ${e}`));}function ai(e){kt(je(`${Ot.default.yellow("\u2192")} ${e}`));}function Le(e){kt(je(e));}function er(e){kt(je((typeof e=="string"?[e]:e).map(n=>Te(n))));}function Fr(e,t=[]){kt(`
451
+ ${e}`),t.forEach(n=>{kt(`${Eh}${n}`);}),kt("");}function qe(e){kt(`
452
+ ${Te(e)}
453
+ `),process.exit(0);}function ze(e,t=[]){_u(e),Fr(Te("Stopped."),t),process.exit(1);}function Du(e){return process.stdout.write(je(`${Te("\u2026")} ${e}`)),{done:t=>{process.stdout.write(oE),fe(t);},failed:t=>{process.stdout.write(oE),_u(t);}}}function si(e){return cE({...e,layout:"column"})}function Ct(e){return cE({...e,layout:"row"})}async function uE({message:e,placeholder:t,suggested:n,validate:i}){let o=await new yu({initialValue:n,placeholder:t,render(){let a=t==null?"":Te(`ex: ${t}`),s=Ot.default.inverse(" "),c=this.userInput.length===0?`${s} ${a}`:this.userInputWithCursor;switch(this.state){case "submit":return je(`${Ot.default.green("\u2713")} ${this.value??""}`);case "cancel":return je(Te(e));case "error":{let l=je(`${Ot.default.red("\u2717")} ${this.error}`);return [je(e),je(c),l].join(`
454
+ `)}case "initial":case "active":case "validating":return [je(e),je(c)].join(`
455
+ `)}},validate:a=>i(a??"")}).prompt();return Sh(o)||typeof o!="string"?wh:o.trim()}function Me(e){return e===wh}async function xu(e){try{await e();}catch(t){throw t instanceof Gr&&ze(US(t.message)),t}}function At(){return "npx ripplo setup"}async function cE({choices:e,layout:t,message:n}){let i=[...e],r=n==null?[]:[je(n)],a=await new iE({options:i,render(){let s=i.find(c=>c.value===this.value);switch(this.state){case "submit":return je(`${Ot.default.green("\u2713")} ${s?.label??""}`);case "cancel":return je(Te(n??"Stopped"));case "initial":case "active":case "error":case "validating":{let c=i.map((d,p)=>`${p===this.cursor?Ot.default.green("\u25CF"):Te("\u25CB")} ${d.label}`),l=t==="row"?[je(c.join(" "))]:c.map(d=>je(d));return [...r,...l].join(`
456
+ `)}}}}).prompt();return Sh(a)||typeof a!="string"?wh:a}function je(e){let t=typeof e=="string"?[e]:e,n=process.stdout.columns,i=(n>0?n:lP)-Eh.length;return t.flatMap(r=>r.length===0?[""]:pP(r,i).map(o=>Eh+o)).join(`
457
+ `)}function pP(e,t){let[n="",...i]=e.split(" "),r=fP(n)?" ":"";return i.reduce((o,a)=>{let c=`${o.at(-1)??""} ${a}`;return mP(c)<=t?[...o.slice(0,-1),c]:[...o,`${r}${a}`]},[n])}function fP(e){let t=e.replaceAll(sE,"");return dP.has(t)}function mP(e){return e.replaceAll(sE,"").length}function kt(e){process.stdout.write(`${e}
458
+ `);}var yP=promisify(execFile),vP=u.object({stderr:u.string().optional(),stdout:u.string().optional()});async function Su({args:e,command:t,cwd:n}){try{let{stderr:i,stdout:r}=await yP(t,[...e],{cwd:n});return {ok:!0,stderr:i,stdout:r}}catch(i){return bP(i)}}function bP(e){let t=vP.safeParse(e),n=t.success?t.data.stderr??"":"",i=t.success?t.data.stdout??"":"",r=e instanceof Error?e.message:String(e);return {ok:false,stderr:n.length>0?n:r,stdout:i}}var _P=u.string().transform((e,t)=>{try{return JSON.parse(e)}catch{return t.addIssue({code:"custom",message:"not json"}),u.NEVER}});async function lE(){return (await ui(["--version"])).ok}function ui(e){return Su({args:e,command:"claude",cwd:void 0})}var DP=["user","project","local"],xP=u.array(u.object({id:u.string(),version:u.string()}));async function dE(){if(await SP()===eu())return "ready";await ui(["plugin","marketplace","add","ripplo/claude-plugin"]),await ui(["plugin","marketplace","update","ripplo"]);let e=await ui(["plugin","install","ripplo@ripplo"]),t=/already installed/i.test(`${e.stdout}${e.stderr}`);return !e.ok&&!t?"install-failed":(t&&await Promise.all(DP.map(n=>ui(["plugin","update","ripplo","--scope",n]))),"ready")}async function SP(){let e=await ui(["plugin","list","--json"]);if(!e.ok)return;let t=_P.pipe(xP).safeParse(e.stdout);return t.success?t.data.find(n=>n.id==="ripplo@ripplo")?.version:void 0}async function pE(){if(ct($t("claude")),!await lE()){Le(wS());return}if(Le(_S()),await dE()==="install-failed"){_u(DS());return}fe($S());}var EP=/^(?:https:\/\/github\.com\/|git@github\.com:)([^/]+)\/([^/]+?)(?:\.git)?\/?$/;async function Eu(e){let t=await Su({args:["remote","get-url","origin"],command:"git",cwd:e}),n=t.stdout.trim();if(!t.ok||n.length===0)return ue({kind:"no-remote"});let i=fE(n);return i==null?ue({kind:"not-github",remote:n}):we(i)}function yo(e,t){let n=e==null?void 0:fE(e);return n!=null&&n.owner.toLowerCase()===t.owner.toLowerCase()&&n.repo.toLowerCase()===t.repo.toLowerCase()}function fE(e){let t=EP.exec(e),n=t?.[1],i=t?.[2];if(!(n==null||i==null))return {owner:n,repo:i,url:`https://github.com/${n}/${i}`}}async function mE(e){let t=Mt();t==null&&ze(pn());let n=Ye(t),[i,r]=await Promise.all([Eu(e),ni(n)]),o=i.match(c=>c,c=>ze(lu(c))),a=`${o.owner}/${o.repo}`,s=r.find(c=>yo(c.repoUrl,o));return s==null&&ze(NS(a)),{connection:n,project:s}}function hE(){return xu(()=>wP(process.cwd()))}async function wP(e){let{connection:t,project:n}=await mE(e);bu(cu()),await $h({connection:t,project:n});}async function $P(e){if(ct($t("open")),!Se)return;let t=await Ct({choices:[{label:xS(),value:"yes"},{label:SS(),value:"no"}],message:ES()});Me(t)&&qe(Ge()),t==="yes"&&Yr(e);}async function IP(){if(!Se)return;er(IS());let e=await Ct({choices:[{label:OS(),value:"start"},{label:go(),value:"stop"}],message:void 0});(Me(e)||e==="stop")&&(Fr(pu(),[ii(At())]),process.exit(0));}async function gE(e){if(await OP(e))return;Se||ze(gh(),[ii(At())]);let n=await Ct({choices:[{label:TS(),value:"again"},{label:go(),value:"stop"}],message:void 0});return (Me(n)||n==="stop")&&ze(gh(),[ii(At())]),gE(e)}async function OP({connection:e,connectionId:t,name:n}){let i=await ux({connection:e,connectionId:t});ai(kS()),Yr(i.url),Le(CS(i.url));let r=Du(AS()),o=await nh({connection:e,remainingMs:ho,runId:i.runId});if(o.kind==="signedIn")return r.done(RS(n)),true;if(o.kind==="timedOut")return r.failed(FS(ho/1e3)),false;let a=PS(o.detail);return r.failed(a.headline),Le(a.detail),false}async function $h({connection:e,project:t}){let n=ih(t);if(n?.oidc==null&&ze(zS()),ct($t("check")),await IP(),await gE({connection:e,connectionId:n.id,name:n.name}),await pE(),await $P(lx({connection:e,projectId:t.id})),t.cloudBaseUrl==null||t.cloudBaseUrl.length===0)throw new Error("checked-project-without-app-url");Fr(jS(),LS({appUrl:t.cloudBaseUrl,projectUrl:rh({connection:e,projectId:t.id})}));}async function Bt({flag:e,given:t,hint:n,message:i,placeholder:r,schema:o,suggested:a}){if(t!=null)return Ih({flag:e,given:t,schema:o});vo(e),er(n);let s=await uE({message:i,placeholder:r,suggested:a,validate:c=>kP(o.safeParse(c))});return Me(s)&&qe(Ge()),s}function Ih({flag:e,given:t,schema:n}){let i=n.safeParse(t);return i.success||ze(Xx({flag:e,reason:bs(i.error)})),fe(du({flag:e,value:i.data})),i.data}function vo(e){Se||ze(Qx(e));}function ci(e){Fr(yS(),[e]),process.exit(0);}async function Tr(e){if(!Se)return e.some(n=>n!=null)?"change":"continue";let t=await Ct({choices:[{label:eS(),value:"continue"},{label:tS(),value:"change"}],message:void 0});return Me(t)&&qe(Ge()),t==="change"?"change":"continue"}function kP(e){return e.success?void 0:bs(e.error)}async function yE({answers:e,connection:t,organization:n}){if(n.named)return n;let i=await Bt({flag:"organization-name",given:e.organizationName,hint:Rx(),message:Px(),placeholder:Fx(),schema:Yf,suggested:void 0}),r=bm({serverUrl:t.ripploServerUrl,token:t.token});return (await vm({name:i,organization:r.organization,organizationId:n.id})).match(()=>(fe(Tx(i)),{...n,name:i,named:true}),a=>ze(zx(a.message)))}async function vE({answers:e,connection:t,existing:n,repo:i}){if(n!=null)return fe(jx(n.name)),await Tr([])==="change"&&(Le(Lx(n.name)),qe(Ge())),{kind:"existing",project:n};let r=await CP({answers:e,connection:t}),o=await yE({answers:e,connection:t,organization:r});return fe(Mx({organization:o.name,repo:i})),{kind:"new",organization:o,repo:i}}async function bE({connection:e,plan:t,repository:n}){return (await nx({connection:e,installationId:n.installationId,name:n.name,organizationId:t.organization.id,repoUrl:n.url})).match(r=>(fe(Bx(r.name,t.organization.name)),r),r=>ze(Vx(r.message)))}async function CP({answers:e,connection:t}){let n=await tx(t),[i]=n;if(i==null&&ze(Cx()),n.length===1)return fe(lh(i)),i;let r=n.find(s=>AP({flag:e.organization,organization:s}));if(r!=null)return fe(lh(r)),r;Se||ze(Nx(n));let o=await si({choices:n.map(s=>({label:Ux(s),value:s.id})),message:Ax()}),a=n.find(s=>s.id===o);return (Me(o)||a==null)&&qe(Ge()),a}function AP({flag:e,organization:t}){if(e==null)return false;let n=t.named&&t.name===e;return t.id===e||n}async function DE(e){let t=xE(e.project.cloudBaseUrl);return t==null?_E(e):(fe(fh(t)),await Tr([e.answers.appUrl])==="change"?_E(e):t)}function xE(e){return e==null||e.length===0?void 0:e}async function _E({answers:e,connection:t,project:n}){let i=await Bt({flag:"app-url",given:e.appUrl,hint:Gx(),message:qx(),placeholder:Hx(),schema:ys,suggested:xE(n.cloudBaseUrl)}),r=new URL(i).origin;return r!==i&&fe(fh(r)),await ix({appUrl:r,connection:t,id:n.id}),r}var SE="https://ripplo.ai/docs#sign-in";function EE(){return "What does your app sign in with?"}function wE(){return "Setup explains each step for it."}function Oh(e){switch(e){case "better-auth":return "better-auth";case "authjs":return "Auth.js (next-auth)";case "keycloak":return "Keycloak";case "clerk":return "Clerk";case "other":return "Something else"}}function $E(e){switch(e){case "better-auth":case "authjs":case "other":return "Give your app these three values, then deploy";case "keycloak":return "Add Ripplo as an identity provider in Keycloak with these three values";case "clerk":return "Add Ripplo as an SSO connection in Clerk with these three values"}}function kh(e){switch(e){case "better-auth":return ["Add the genericOAuth plugin with provider id ripplo, reading the three values from variables on your dev server. An app that was already running needs a restart to read them.",wu("better-auth")];case "authjs":return ["Add an OpenID Connect provider with id ripplo, reading the three values from variables on your dev server. An app that was already running needs a restart to read them.",wu("next-auth")];case "keycloak":return ["In the realm your app uses, add an OpenID Connect v1.0 identity provider with alias ripplo. Send the client secret as basic auth, set the default scopes to openid email profile ripplo, and turn on trust email and hide on login page.",wu("keycloak")];case "clerk":return ["In the Clerk dashboard, open SSO connections, choose Add connection, then For all users, then Custom provider. Set the key to ripplo, enter the three values, then turn on Enable connection.",wu("clerk")];case "other":return ["Auth libraries read them from variables on your dev server, some also need a few lines of code. An app that was already running needs a restart to read them.",`Guides for better-auth, next-auth, Clerk and Keycloak: ${Pr(SE)}`]}}function Ch(e){switch(e){case "better-auth":case "authjs":case "other":return "Is your app running with these three values? Deploy it, or restart it locally, then continue.";case "keycloak":return "Have you saved the ripplo identity provider in Keycloak?";case "clerk":return "Have you saved and enabled the ripplo connection in Clerk?"}}function IE(e){switch(e){case "authjs":return "/api/auth/callback/ripplo";case "better-auth":case "other":return "/api/auth/oauth2/callback/ripplo"}}function OE(e){switch(e){case "better-auth":return "better-auth receives it at /api/auth/oauth2/callback/ripplo on your app.";case "authjs":return "Auth.js receives it at /api/auth/callback/ripplo on your app.";case "other":return "The callback your auth library uses for Ripplo sign-in."}}function kE(e){switch(e){case "keycloak":return "What redirect URI does Keycloak show for the ripplo identity provider?";case "clerk":return "What authorized redirect URL does Clerk show for the ripplo connection?"}}function CE(e){switch(e){case "keycloak":return "It is on the identity provider page, /realms/<realm>/broker/ripplo/endpoint on your Keycloak server. Previews that sign in through the same realm use the same address.";case "clerk":return "It is on the connection page, https://<Frontend API host>/v1/oauth_callback. Previews that sign in through the same Clerk instance use the same address."}}function AE(e){switch(e){case "keycloak":return "https://auth.example.com/realms/app/broker/ripplo/endpoint";case "clerk":return "https://clerk.example.com/v1/oauth_callback"}}function RE(e){switch(e){case "better-auth":return "A GET route that calls auth.api.signInWithOAuth2 with providerId ripplo and redirects to the address it returns. The guide has one. A path works for the pre-production server and every preview.";case "authjs":return 'A route handler that returns signIn("ripplo"). The guide has one. A path works for the pre-production server and every preview.';case "keycloak":return "Your app's login address with kc_idp_hint=ripplo, so Keycloak signs in with Ripplo without showing its login form. A path works for the pre-production server and every preview.";case "clerk":return "Your login page. Clerk shows a Ripplo button there once the connection is enabled, and Ripplo clicks it. A path works for the pre-production server and every preview.";case "other":return "Enter a page that starts sign-in with Ripplo when it opens, or a login page with one Ripplo button, which Ripplo clicks. A path works for the pre-production server and every preview."}}function PE(e){switch(e){case "better-auth":case "authjs":return "/api/test-sso";case "keycloak":return "/login?kc_idp_hint=ripplo";case "clerk":case "other":return "/login"}}function wu(e){let t=`${SE}-${e}`;return `Guide: ${Pr(t)}`}async function FE(e){let t=await RP(e),n=t==="staging"?void 0:await PP(e);return {environments:t,previewUrl:n}}async function RP(e){if(e.environments!=null)return fe(Wx(e.environments)),e.environments;vo("environments");let t=await si({choices:mo.map(i=>({label:ph(i),value:i})),message:Zx()}),n=mo.find(i=>i===t);return (Me(t)||n==null)&&qe(Ge()),n}function PP(e){return Bt({flag:"preview-url",given:e.previewUrl,hint:Yx(),message:Jx(),placeholder:Kx(),schema:Hf,suggested:void 0})}async function zE(e){let{answers:t,registered:n}=e;switch(n.kind){case "unfinished":{!Se&&t.redirectUris.length===0&&ci(bS(At())),await TE({...e,existing:null});return}case "finished":{if(Le(rS(n.registration)),await Tr([t.redirectUris[0],t.signInPage,t.environments,t.previewUrl])==="continue")return;await TE({...e,existing:n.registration});}}}async function TE({answers:e,appUrl:t,connection:n,existing:i,registered:r}){let{provider:o}=r,a=i?.redirectUris??[],s=await TP({answers:e,appUrl:t,existingUris:a,provider:o}),c=await FP({answers:e,existing:i,provider:o}),l={redirectUris:s,signInEntry:c},d=await ax({connection:n,id:r.details.id,name:r.details.name,scimBaseUrl:i?.scimBaseUrl??null,values:l});fe(nS(d.name));}function FP({answers:e,existing:t,provider:n}){return e.signInPage==null&&!Se&&t!=null?Promise.resolve(t.signInEntry):Bt({flag:"sign-in-page",given:e.signInPage,hint:RE(n),message:oS(),placeholder:PE(n),schema:vs,suggested:t?.signInEntry})}async function TP({answers:e,appUrl:t,existingUris:n,provider:i}){if(e.redirectUris.length>0)return e.redirectUris.map(r=>Ih({flag:"redirect-uri",given:r,schema:xr}));if(!Se&&n.length>0)return n;switch(vo("redirect-uri"),i){case "keycloak":case "clerk":return [await zP({provider:i,suggested:n[0]})];case "better-auth":case "authjs":case "other":{let r=await FE(e);return NP({appUrl:t,existingUris:n,provider:i,targets:r})}}}function zP({provider:e,suggested:t}){return Bt({flag:"redirect-uri",given:void 0,hint:CE(e),message:kE(e),placeholder:AE(e),schema:xr,suggested:t})}async function NP({appUrl:e,existingUris:t,provider:n,targets:i}){let r=IE(n),o=i.environments==="previews"?[]:[await Bt({flag:"redirect-uri",given:void 0,hint:OE(n),message:aS(),placeholder:`${e}${r}`,schema:xr,suggested:t[0]})],a=i.previewUrl==null?[]:[await Bt({flag:"redirect-uri",given:void 0,hint:sS(),message:uS(),placeholder:`${i.previewUrl}${r}`,schema:xr,suggested:t[1]})];return [...o,...a]}async function NE(e){if(e!=null)return fe(du({flag:"auth-provider",value:Oh(e)})),e;if(!Se)return "other";er(wE());let t=await si({choices:fo.map(i=>({label:Oh(i),value:i})),message:EE()});Me(t)&&qe(Ge());let n=fo.find(i=>i===t);if(n==null)throw new Error(`unknown-auth-provider:${t}`);return n}async function jE(e){let t=await NE(e.answers.authProvider),n=px(e.project);switch(n.kind){case "none":return UP({...e,provider:t});case "unfinished":{let i=oh(n.connection);return fe(mh(i.name)),await UE({...e,details:i,provider:t}),{details:i,kind:"unfinished",provider:t}}case "finished":{let i=oh(n.connection);return fe(mh(i.name)),await UE({...e,details:i,provider:t}),{details:i,kind:"finished",provider:t,registration:n.registration}}}}async function UP({connection:e,project:t,provider:n}){let i=await ox({connection:e,project:t}),r=i.connection.oidc;if(r==null)throw new Error("created-connection-without-oidc");let o={...r,id:i.connection.id,name:i.connection.name,secret:i.clientSecret};fe(iS(o.name));let a=th({connection:e,projectId:t.id});return ai($E(n)),Le(hh({connection:o,secret:Se?o.secret:null,settingsUrl:a})),er(kh(n)),Se&&await LE(Ch(n)),{details:o,kind:"unfinished",provider:n}}async function UE({connection:e,details:t,project:n,provider:i}){if(!Se){let o=th({connection:e,projectId:n.id});Le(hh({connection:t,secret:null,settingsUrl:o}));return}Le(cS(t));let r=await Ct({choices:[{label:fS(),value:"continue"},{label:mS(),value:"rotate"}],message:pS()});Me(r)&&qe(Ge()),r==="rotate"&&await jP({connection:e,details:t,provider:i});}async function jP({connection:e,details:t,provider:n}){er(lS());let i=await Ct({choices:[{label:hS(),value:"rotate"},{label:gS(),value:"keep"}],message:void 0});if(Me(i)||i==="keep")return;let r=await sx({connection:e,connectionId:t.id});Le(dS(r)),er(kh(n)),await LE(Ch(n));}async function LE(e){let t=await Ct({choices:[{label:vS(),value:"done"},{label:go(),value:"stop"}],message:e});(Me(t)||t==="stop")&&ci(At());}async function ME(e){let{answers:t,connection:n,project:i}=e;ct($t("url"));let r=await DE(e);ct($t("auth")),ct(uh("provider"));let o=await jE({answers:t,connection:n,project:i});if(ct(uh("app")),await zE({answers:t,appUrl:r,connection:n,registered:o}),!Se){Fr(pu(),[ii(At())]);return}let a=await LP({connection:n,id:i.id});await $h({connection:n,project:a});}async function LP({connection:e,id:t}){let i=(await ni(e)).find(r=>r.id===t);if(i==null)throw new Error("project-vanished-during-setup");return i}var BE=3e3,VE=200,BP=BE*VE/6e4;function ZE(e){return xu(()=>VP({answers:e,cwd:process.cwd()}))}async function VP({answers:e,cwd:t}){let n=await ZP(t),i=`${n.owner}/${n.repo}`;bu(cu()),ct($t("signIn"));let r=await WP();ct($t("project"));let a=(await ni(r)).find(l=>yo(l.repoUrl,n)),s=await vE({answers:e,connection:r,existing:a,repo:i}),c=s.kind==="existing"?s.project:await GP({connection:r,plan:s,remote:n});await ME({answers:e,connection:r,project:c});}async function ZP(e){return (await Eu(e)).match(n=>n,n=>ze(lu(n)))}async function WP(){let e=Mt(),t=e==null?void 0:await lo(e);if(e!=null&&t?.kind==="ok"){if(fe(_x(t.viewer.email)),await Tr([])==="continue")return Ye(e);io(Rr());}await no({lookupViewer:lo,serverUrl:Rr()});let n=Mt();return n==null&&ze(pn()),Ye(n)}async function GP({connection:e,plan:t,remote:n}){ct($t("github"));let i={connection:e,organization:t.organization,remote:n},r=await WE(i);r!=null&&fe(ch(t.repo));let o=r??await qP(i);return bE({connection:e,plan:t,repository:o})}async function WE({connection:e,organization:t,remote:n}){return (await rx({connection:e,organizationId:t.id})).find(r=>yo(r.url,n))}async function qP(e){let t=`${e.remote.owner}/${e.remote.repo}`;Le(Dx({organization:e.organization.name,repo:t})),ai(xx(e.remote.owner)),Se||(Le(Ix(e.organization.githubConnectUrl)),ci(At())),await HP({choice:Ex(),question:Sx()}),Yr(e.organization.githubConnectUrl),Le($x(e.organization.githubConnectUrl));let n=Du(Ox(t)),i=await GE({remaining:VE,target:e});return i==null&&(n.failed(kx({minutes:BP,repo:t})),qe(Ge())),n.done(ch(t)),i}async function HP({choice:e,question:t}){if(!Se)return;let n=await Ct({choices:[{label:e,value:"open"},{label:wx(),value:"stop"}],message:t});(Me(n)||n==="stop")&&qe(Ge());}async function GE({remaining:e,target:t}){return e===0?void 0:(await setTimeout$1(BE),await WE(t)??GE({remaining:e-1,target:t}))}function qE(e){return e.command("$0","Connect this repository to Ripplo",t=>t.option("check",{default:false,describe:`Test authentication: sign in through the connection in your browser. Waits up to ${String(ho/1e3)} seconds.`,type:"boolean"}).option("environments",{choices:mo,describe:"Answer for the environments prompt",type:"string"}).option("app-url",{describe:"Answer for the app URL prompt: the pre-production server, or a preview that is up now",type:"string"}).option("preview-url",{describe:"Answer for the preview address prompt, with one * in the hostname",type:"string"}).option("auth-provider",{choices:fo,describe:"Answer for the auth provider prompt, which picks the instructions setup shows",type:"string"}).option("sign-in-page",{describe:"Answer for the sign-in page prompt, a path like /login",type:"string"}).option("redirect-uri",{array:true,default:[],describe:"Answer for the callback prompts, the callback your auth provider uses for Ripplo. Repeat for previews.",type:"string"}).option("organization",{describe:"Answer for the organization prompt, by id or name, when you belong to several",type:"string"}).option("organization-name",{describe:"Answer for the organization name prompt, asked when the organization has no name yet",type:"string"}),t=>t.check?hE():ZE({appUrl:t["app-url"],authProvider:t["auth-provider"],environments:t.environments,organization:t.organization,organizationName:t["organization-name"],previewUrl:t["preview-url"],redirectUris:t["redirect-uri"],signInPage:t["sign-in-page"]}))}async function Ah({data:e,destination:t}){let n=`${t}.${randomUUID()}.tmp`;try{await writeFile(n,e),await rename(n,t);}finally{await rm$1(n,{force:true});}}var rF=createRequire$1(import.meta.url);function HE(e,t){try{return rF.resolve(e)}catch{return fileURLToPath(new URL(`assets/${t}`,import.meta.url))}}function YE(e){let t;return ()=>(t??=readFile(e,"utf8"),t)}var iF={height:800,width:1280};async function JE(e){let t=await readFile(e,"utf8");return Gi(t).flatMap(n=>n.kind==="rrweb"?[n.event]:[])}var oF=u.object({data:u.looseObject({height:u.number(),width:u.number()}),type:u.literal(4)});function $u(e){let t=e.flatMap(n=>{let i=oF.safeParse(n);return i.success?[i.data]:[]})[0];return t==null?iF:{height:t.data.height,width:t.data.width}}function KE(){return import('playwright').then(({chromium:e})=>e.launch({args:["--no-sandbox"],headless:true})).catch(()=>null)}var XE=YE(HE("@ripplo/rrweb-bundle/replay","rrweb-replay.js"));function QE(e){return `globalThis.__ripploReplayEvents = ${JSON.stringify(e)};`}function ew({styleRules:e,useVirtualDom:t}){globalThis.__ripploSnapshotReplayer=new globalThis.__RipploReplayer(globalThis.__ripploReplayEvents,{insertStyleRules:e,mouseTail:false,root:document.body,showWarning:false,useVirtualDom:t});}function tw(e){globalThis.__ripploSnapshotReplayer?.pause(e+.5);}function rw({frameSelector:e}){let t=document.querySelector(e)?.contentDocument;return t==null?false:(t.documentElement.getBoundingClientRect(),[...t.querySelectorAll('link[rel~="stylesheet"]')].every(i=>i.disabled||i.sheet!=null)&&t.fonts.status==="loaded")}async function nw(){await new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>{e();}));});}function iw({documentPrefix:e,frameSelector:t}){let n=globalThis.__ripploSnapshotReplayer,i=document.querySelector(t)?.contentDocument;if(n==null||i==null)return "";let r=n.getMirror();return [...i.querySelectorAll("*")].forEach(o=>{let a=r.getId(o);a!=null&&a>0&&(o.dataset.rrwebId=String(a));}),`${e}${i.documentElement.outerHTML}`}function ow({frameSelector:e}){let t=document.querySelector(e)?.contentDocument;if(t==null)return [];let n=s=>[...s.childNodes].filter(c=>c.nodeType===3).map(c=>c.textContent??"").join(" ").replaceAll(/\s+/gu," ").trim(),i=s=>{if(s==null)return null;let c=s.dataset.rrwebId;if(c==null)return null;let l=Number.parseInt(c,10);return Number.isSafeInteger(l)&&l>0?l:null},r=s=>s.checkVisibility({opacityProperty:true,visibilityProperty:true}),o=s=>s==null||r(s)?s:o(s.parentElement);return [...t.querySelectorAll("*")].filter(s=>r(s)).map(s=>({attributes:Object.fromEntries([...s.attributes].map(c=>[c.name,c.value])),directText:n(s),parentRrwebId:i(o(s.parentElement)),rrwebId:i(s),tagName:s.tagName.toLowerCase()}))}function aw({frameSelector:e,rrwebId:t}){let n=document.querySelector(e)?.contentDocument,i=n?.defaultView;if(n==null||i==null)throw new Error("snapshot-document-missing");let r=[...n.querySelectorAll(`[data-rrweb-id="${String(t)}"]`)][0];return r==null?Promise.resolve(null):new Promise((o,a)=>{let s=new i.IntersectionObserver(c=>{s.disconnect();let l=c[0];if(l==null){a(new Error("snapshot-intersection-missing"));return}let d=l.intersectionRect;o(l.intersectionRatio>0?{height:d.height,width:d.width,x:d.x,y:d.y}:null);});s.observe(r);})}var tr=".replayer-wrapper iframe",sw=`<!doctype html>
459
+ `;function uw(e){return e.screenshot({animations:"disabled",timeout:1e4,type:"png"})}var sF="outline: 2px solid #ff4040 !important; outline-offset: 2px !important;";async function cw({page:e,pngPath:t,rrwebId:n}){let i=e.locator(tr).first(),r=e.frameLocator(tr).locator(`[data-rrweb-id="${String(n)}"]`),o=await i.boundingBox(),a=await r.count()===1;if(o==null||!a||!await r.isVisible())return {kind:"unavailable",rrwebId:n};let s=uF.nullable().parse(await e.evaluate(aw,{frameSelector:tr,rrwebId:n}));if(s==null)return {kind:"unavailable",rrwebId:n};let c={...s,x:s.x+o.x,y:s.y+o.y};if(c.width<=0||c.height<=0)return {kind:"unavailable",rrwebId:n};let l=`[data-rrweb-id="${String(n)}"] { ${sF} }`,d=`${t}.element-${String(n)}.png`,p=`${t}.element-${String(n)}.context.png`;await writeFile(d,await i.screenshot({animations:"disabled",style:l,timeout:1e4}));let m=cF({inner:{height:c.height+200,width:c.width+240,x:c.x-120,y:c.y-100},outer:o});return await e.screenshot({animations:"disabled",clip:m,path:p,style:l,timeout:1e4}),{cropPath:p,fullPath:d,kind:"visible",rrwebId:n}}var uF=u.object({height:u.number().nonnegative(),width:u.number().nonnegative(),x:u.number(),y:u.number()});function cF({inner:e,outer:t}){let n=Math.max(t.x,e.x),i=Math.max(t.y,e.y);return {height:Math.min(t.y+t.height,e.y+e.height)-i,width:Math.min(t.x+t.width,e.x+e.width)-n,x:n,y:i}}async function lw(e){await e.addInitScript(lF);}function lF(){Reflect.set(globalThis,"__name",e=>e);}var fF=".replayer-mouse, .replayer-mouse-tail { display: none; }";function dw(e){return `<!doctype html><html><head><style>
458
460
  html, body { margin: 0; padding: 0; }
459
461
  .replayer-wrapper { position: relative; }
460
- ${ZT}
462
+ ${fF}
461
463
  iframe { border: none; }
462
- </style></head><body></body></html>`}async function WE({browser:e,events:t}){let n=await e.newContext({viewport:Du(t)});await VE(n);let i=await n.newPage();return await i.setContent(ZE()),await i.addScriptTag({content:await RE()}),await i.addScriptTag({content:AE(t)}),await i.evaluate(TE,{styleRules:[...Wf],useVirtualDom:false}),i}async function GE({offsetMs:e,page:t}){await t.evaluate(FE,e),await t.waitForFunction(PE,{frameSelector:Kt},{timeout:1e4}),await t.evaluate(NE);}function HE({offsetMs:e,outDir:t}){let n=`snapshot-${String(Math.round(e))}ms-${randomUUID()}`;return {htmlPath:Bm.join(t,`${n}.html`),pngPath:Bm.join(t,`${n}.png`)}}var qT=u.object({attributes:u.record(u.string(),u.string()),directText:u.string(),parentRrwebId:u.number().int().positive().nullable(),rrwebId:u.number().int().positive().nullable(),tagName:u.string().min(1)}),HT=u.array(qT);function YE(e){return YT({...e,focusRrwebId:void 0})}async function YT({behaviorFile:e,focusRrwebId:t,moment:n,outDir:i,runId:r}){if(!existsSync(e))return ue({kind:"run-not-found",runId:r});let o=await kE(e),a=o[0],s=o.at(-1);if(a==null||s==null)return ue({kind:"no-rrweb-events",runId:r});let c=s.timestamp-a.timestamp,l=n.kind==="offset"?n.offsetMs:n.at-a.timestamp;if(l<0||l>c)return ue({durationMs:c,firstTimestamp:a.timestamp,kind:"moment-out-of-range",lastTimestamp:s.timestamp,moment:n});let d=l,{htmlPath:p,pngPath:m}=HE({offsetMs:d,outDir:i});return (await JT({events:o,focusRrwebId:t,htmlPath:p,offsetMs:d,pngPath:m})).map(({elementIndex:y,preview:x})=>({durationMs:c,elementIndex:y,htmlPath:p,offsetMs:d,pngPath:m,preview:x,viewport:Du(o)}))}async function JT({events:e,focusRrwebId:t,htmlPath:n,offsetMs:i,pngPath:r}){let o=await CE();if(o==null)return ue({detail:"chromium-launch",kind:"browser-failed"});try{let{elementIndex:a,html:s,png:c,preview:l}=await QT({browser:o,events:e,focusRrwebId:t,offsetMs:i,pngPath:r});return c.length===0?ue({detail:KT,kind:"replay-failed"}):(await fh({data:c,destination:r}),await fh({data:XT(s),destination:n}),Ce({elementIndex:a,preview:l}))}catch(a){return ue({detail:a instanceof Error?a.message:String(a),kind:"replay-failed"})}finally{await o.close();}}var KT="screenshot-empty";function XT(e){return e.replaceAll("><",`>
463
- <`)}async function QT({browser:e,events:t,focusRrwebId:n,offsetMs:i,pngPath:r}){let o=await WE({browser:e,events:t});await GE({offsetMs:i,page:o});let a=o.locator(Kt).first(),s=await a.count()>0?a:o,c=await ME(s),l=u.string().parse(await o.evaluate(zE,{documentPrefix:LE,frameSelector:Kt})),d=HT.parse(await o.evaluate(UE,{frameSelector:Kt})),p=n==null?void 0:await BE({page:o,pngPath:r,rrwebId:n});return {elementIndex:d,html:l,png:c,preview:p}}function JE(){return "Pass exactly one of --at <epoch ms from behavior.jsonl> or --offset <ms from the start of the recording>."}function KE(e){switch(e.kind){case "run-not-found":return `No behavior.jsonl for run ${e.runId}.`;case "no-rrweb-events":return `Run ${e.runId} has no rrweb events, nothing to replay.`;case "moment-out-of-range":return `${e.moment.kind==="offset"?"--offset":"--at"} is outside the recording, which spans ${String(e.firstTimestamp)} to ${String(e.lastTimestamp)} (duration ${String(e.durationMs)}ms).`;case "browser-failed":return `Replay browser failed (${e.detail}). Try \`npx playwright install chromium\`.`;case "replay-failed":return `Replaying the recording failed (${e.detail}).`}}async function XE({at:e,offset:t,runId:n}){let i=eF({at:e,offset:t});i==null&&(process.stderr.write(`${JE()}
464
- `),process.exit(1));let r=await Js(n);r.isErr()&&(process.stderr.write(`${Xs(r.error)}
465
- `),process.exit(1)),(await YE({behaviorFile:r.value,moment:i,outDir:Vm(n),runId:n})).match(a=>{let s={durationMs:a.durationMs,htmlPath:a.htmlPath,offsetMs:a.offsetMs,pngPath:a.pngPath,viewport:a.viewport};process.stdout.write(`${JSON.stringify(s,null,2)}
466
- `);},a=>{process.stderr.write(`${KE(a)}
467
- `),process.exit(1);});}function eF({at:e,offset:t}){if(e!=null&&t==null)return {at:e,kind:"absolute"};if(t!=null&&e==null)return {kind:"offset",offsetMs:t}}function QE(e){return e instanceof Error?e.message:String(e)}cm();async function tF(){await mD(xm(process.argv)).scriptName("ripplo").version(Hs()).command("login","Sign in through your browser",()=>{},()=>to({lookupViewer:uo,serverUrl:wr()})).command("logout","Remove the saved token",()=>{},()=>{ro(wr());}).command("setup","Connect this repository to Ripplo",e=>e.option("check",{default:false,describe:`Test authentication: sign in through the connection in your browser. Waits up to ${String(lo/1e3)} seconds.`,type:"boolean"}).option("environments",{choices:ho,describe:"Answer for the environments prompt",type:"string"}).option("app-url",{describe:"Answer for the app URL prompt: the pre-production server, or a preview that is up now",type:"string"}).option("preview-url",{describe:"Answer for the preview address prompt, with one * in the hostname",type:"string"}).option("sign-in-page",{describe:"Answer for the sign-in page prompt, a path like /api/auth/oidc/start",type:"string"}).option("redirect-uri",{array:true,default:[],describe:"Answer for the redirect URI prompts, your auth library's callback for Ripplo. Repeat for previews.",type:"string"}).option("organization",{describe:"Answer for the organization prompt, by name, when you belong to several",type:"string"}),e=>e.check?uE():EE({appUrl:e["app-url"],environments:e.environments,organization:e.organization,previewUrl:e["preview-url"],redirectUris:e["redirect-uri"],signInPage:e["sign-in-page"]})).command("review","Start Ripplo code reviews, check their status, and read their results",ND).command("deploy","Tell Ripplo which commit is live on an environment (run from your deploy pipeline)",e=>e.option("environment",{demandOption:true,describe:"The environment's name in Ripplo",type:"string"}).option("sha",{demandOption:true,describe:"The deployed commit",type:"string"}),e=>vD({environment:e.environment,sha:e.sha})).command("explain <runId>","Print what failed in a run, step by step, with nearby evidence (JSON)",e=>e.positional("runId",{demandOption:true,type:"string"}),e=>DD({runId:e.runId})).command("snapshot <runId>","Render the page at a moment of a run to PNG and rrweb-tagged HTML",e=>e.positional("runId",{demandOption:true,type:"string"}).option("at",{describe:"Epoch ms from behavior.jsonl",type:"number"}).option("offset",{describe:"Ms from the start of the recording",type:"number"}),e=>XE({at:e.at,offset:e.offset,runId:e.runId})).strict().help().parse();}tF().catch(e=>{process.stderr.write(`${QE(e)}
464
+ </style></head><body></body></html>`}async function pw({browser:e,events:t}){let n=await e.newContext({viewport:$u(t)});await lw(n);let i=await n.newPage();return await i.setContent(dw()),await i.addScriptTag({content:await XE()}),await i.addScriptTag({content:QE(t)}),await i.evaluate(ew,{styleRules:[...Kf],useVirtualDom:false}),i}async function fw({offsetMs:e,page:t}){await t.evaluate(tw,e),await t.waitForFunction(rw,{frameSelector:tr},{timeout:1e4}),await t.evaluate(nw);}function hw({offsetMs:e,outDir:t}){let n=`snapshot-${String(Math.round(e))}ms-${randomUUID()}`;return {htmlPath:Xm.join(t,`${n}.html`),pngPath:Xm.join(t,`${n}.png`)}}var gF=u.object({attributes:u.record(u.string(),u.string()),directText:u.string(),parentRrwebId:u.number().int().positive().nullable(),rrwebId:u.number().int().positive().nullable(),tagName:u.string().min(1)}),yF=u.array(gF);function gw(e){return vF({...e,focusRrwebId:void 0})}async function vF({behaviorFile:e,focusRrwebId:t,moment:n,outDir:i,runId:r}){if(!existsSync(e))return ue({kind:"run-not-found",runId:r});let o=await JE(e),a=o[0],s=o.at(-1);if(a==null||s==null)return ue({kind:"no-rrweb-events",runId:r});let c=s.timestamp-a.timestamp,l=n.kind==="offset"?n.offsetMs:n.at-a.timestamp;if(l<0||l>c)return ue({durationMs:c,firstTimestamp:a.timestamp,kind:"moment-out-of-range",lastTimestamp:s.timestamp,moment:n});let d=l,{htmlPath:p,pngPath:m}=hw({offsetMs:d,outDir:i});return (await bF({events:o,focusRrwebId:t,htmlPath:p,offsetMs:d,pngPath:m})).map(({elementIndex:v,preview:x})=>({durationMs:c,elementIndex:v,htmlPath:p,offsetMs:d,pngPath:m,preview:x,viewport:$u(o)}))}async function bF({events:e,focusRrwebId:t,htmlPath:n,offsetMs:i,pngPath:r}){let o=await KE();if(o==null)return ue({detail:"chromium-launch",kind:"browser-failed"});try{let{elementIndex:a,html:s,png:c,preview:l}=await xF({browser:o,events:e,focusRrwebId:t,offsetMs:i,pngPath:r});return c.length===0?ue({detail:_F,kind:"replay-failed"}):(await Ah({data:c,destination:r}),await Ah({data:DF(s),destination:n}),we({elementIndex:a,preview:l}))}catch(a){return ue({detail:a instanceof Error?a.message:String(a),kind:"replay-failed"})}finally{await o.close();}}var _F="screenshot-empty";function DF(e){return e.replaceAll("><",`>
465
+ <`)}async function xF({browser:e,events:t,focusRrwebId:n,offsetMs:i,pngPath:r}){let o=await pw({browser:e,events:t});await fw({offsetMs:i,page:o});let a=o.locator(tr).first(),s=await a.count()>0?a:o,c=await uw(s),l=u.string().parse(await o.evaluate(iw,{documentPrefix:sw,frameSelector:tr})),d=yF.parse(await o.evaluate(ow,{frameSelector:tr})),p=n==null?void 0:await cw({page:o,pngPath:r,rrwebId:n});return {elementIndex:d,html:l,png:c,preview:p}}function yw(){return "Pass exactly one of --at <epoch ms from behavior.jsonl> or --offset <ms from the start of the recording>."}function vw(e){switch(e.kind){case "run-not-found":return `No behavior.jsonl for run ${e.runId}.`;case "no-rrweb-events":return `Run ${e.runId} has no rrweb events, nothing to replay.`;case "moment-out-of-range":return `${e.moment.kind==="offset"?"--offset":"--at"} is outside the recording, which spans ${String(e.firstTimestamp)} to ${String(e.lastTimestamp)} (duration ${String(e.durationMs)}ms).`;case "browser-failed":return `Replay browser failed (${e.detail}). Try \`npx playwright install chromium\`.`;case "replay-failed":return `Replaying the recording failed (${e.detail}).`}}async function bw({at:e,offset:t,runId:n}){let i=SF({at:e,offset:t});i==null&&(process.stderr.write(`${yw()}
466
+ `),process.exit(1));let r=await ru(n);r.isErr()&&(process.stderr.write(`${iu(r.error)}
467
+ `),process.exit(1)),(await gw({behaviorFile:r.value,moment:i,outDir:Qm(n),runId:n})).match(a=>{let s={durationMs:a.durationMs,htmlPath:a.htmlPath,offsetMs:a.offsetMs,pngPath:a.pngPath,viewport:a.viewport};process.stdout.write(`${JSON.stringify(s,null,2)}
468
+ `);},a=>{process.stderr.write(`${vw(a)}
469
+ `),process.exit(1);});}function SF({at:e,offset:t}){if(e!=null&&t==null)return {at:e,kind:"absolute"};if(t!=null&&e==null)return {kind:"offset",offsetMs:t}}function _w(e){return e instanceof Error?e.message:String(e)}ym();async function EF(){await RD(Rm(process.argv)).scriptName("ripplo").version(eu()).command("login","Sign in through your browser",()=>{},()=>no({lookupViewer:lo,serverUrl:Rr()})).command("logout","Remove the saved token",()=>{},()=>{io(Rr());}).command("setup","Connect this repository to Ripplo",qE).command("review","Start Ripplo code reviews, check their status, and read their results",ex).command("deploy","Tell Ripplo which commit is live on an environment (run from your deploy pipeline)",e=>e.option("environment",{demandOption:true,describe:"The environment's name in Ripplo",type:"string"}).option("sha",{demandOption:true,describe:"The deployed commit",type:"string"}),e=>TD({environment:e.environment,sha:e.sha})).command("explain <runId>","Print what failed in a run, step by step, with nearby evidence (JSON)",e=>e.positional("runId",{demandOption:true,type:"string"}),e=>jD({runId:e.runId})).command("snapshot <runId>","Render the page at a moment of a run to PNG and rrweb-tagged HTML",e=>e.positional("runId",{demandOption:true,type:"string"}).option("at",{describe:"Epoch ms from behavior.jsonl",type:"number"}).option("offset",{describe:"Ms from the start of the recording",type:"number"}),e=>bw({at:e.at,offset:e.offset,runId:e.runId})).strict().help().parse();}EF().catch(e=>{process.stderr.write(`${_w(e)}
468
470
  `),process.exit(1);});/*! Bundled license information:
469
471
 
470
472
  yargs-parser/build/lib/string-utils.js:
@@ -485,4 +487,4 @@ yargs-parser/build/lib/index.js:
485
487
  * Copyright (c) 2016, Contributors
486
488
  * SPDX-License-Identifier: ISC
487
489
  *)
488
- */export{tF as main};
490
+ */export{EF as main};