@pagelines/widget 1.0.880 → 1.0.882
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/widget.js +3 -3
- package/package.json +2 -2
package/dist/widget.js
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
|
|
66
66
|
`)}f.write("payload.value = newResult;"),f.write("return payload;");let V=f.compile();return(D,L)=>V(m,D,L)},o,a=hi,s=!mi.jitless,u=s&&fp.value,d=t.catchall,p;e._zod.parse=(m,f)=>{p??(p=i.value);let $=m.value;return a($)?s&&u&&f?.async===!1&&f.jitless!==!0?(o||(o=r(t.shape)),m=o(m,f),d?Qy([],$,m,f,p,e):m):n(m,f):(m.issues.push({expected:"object",code:"invalid_type",input:$,inst:e}),m)}});Ra=S("$ZodUnion",(e,t)=>{Se.init(e,t),Ne(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Ne(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Ne(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Ne(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${i.map(r=>Sa(r.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,r)=>{if(n)return n(i,r);let o=!1,a=[];for(let s of t.options){let c=s._zod.run({value:i.value,issues:[]},r);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(s=>My(s,i,e,r)):My(a,i,e,r)}});cf=S("$ZodXor",(e,t)=>{Ra.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,r)=>{if(n)return n(i,r);let o=!1,a=[];for(let s of t.options){let c=s._zod.run({value:i.value,issues:[]},r);c instanceof Promise?(a.push(c),o=!0):a.push(c)}return o?Promise.all(a).then(s=>Uy(s,i,e,r)):Uy(a,i,e,r)}}),uf=S("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ra.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 u of c)r[s].add(u)}}return r});let i=io(()=>{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(!hi(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||o.direction==="backward"?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),df=S("$ZodIntersection",(e,t)=>{Se.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,u])=>jy(n,c,u)):jy(n,o,a)}});Ql=S("$ZodTuple",(e,t)=>{Se.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=Ly(n,"optin"),c=Ly(n,"optout");if(!t.rest){if(o.length<s)return i.issues.push({code:"too_small",minimum:s,inclusive:!0,input:o,inst:e,origin:"array"}),i;o.length>n.length&&i.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:o,inst:e,origin:"array"})}let u=new Array(n.length);for(let d=0;d<n.length;d++){let p=n[d]._zod.run({value:o[d],issues:[]},r);p instanceof Promise?a.push(p.then(m=>{u[d]=m})):u[d]=p}if(t.rest){let d=n.length-1,p=o.slice(n.length);for(let m of p){d++;let f=t.rest._zod.run({value:m,issues:[]},r);f instanceof Promise?a.push(f.then($=>Vy($,i,d))):Vy(f,i,d)}}return a.length?Promise.all(a).then(()=>Fy(u,i,n,o,c)):Fy(u,i,n,o,c)}});pf=S("$ZodRecord",(e,t)=>{Se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!jn(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 u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let d=t.keyType._zod.run({value:u,issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(f=>Jt(f,i,wt())),input:u,path:[u],inst:e});continue}let p=d.value,m=t.valueType._zod.run({value:r[u],issues:[]},i);m instanceof Promise?o.push(m.then(f=>{f.issues.length&&n.issues.push(...ar(u,f.issues)),n.value[p]=f.value})):(m.issues.length&&n.issues.push(...ar(u,m.issues)),n.value[p]=m.value)}let c;for(let u in r)s.has(u)||(c=c??[],c.push(u));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__"||!Object.prototype.propertyIsEnumerable.call(r,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Fl.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=>Jt(p,i,wt())),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(...ar(s,p.issues)),n.value[c.value]=p.value})):(d.issues.length&&n.issues.push(...ar(s,d.issues)),n.value[c.value]=d.value)}}return o.length?Promise.all(o).then(()=>n):n}}),mf=S("$ZodMap",(e,t)=>{Se.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),u=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([d,p])=>{By(d,p,n,a,r,e,i)})):By(c,u,n,a,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});ff=S("$ZodSet",(e,t)=>{Se.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=>Zy(c,n))):Zy(s,n)}return o.length?Promise.all(o).then(()=>n):n}});hf=S("$ZodEnum",(e,t)=>{Se.init(e,t);let n=$a(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>Ea.has(typeof r)).map(r=>typeof r=="string"?wr(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}}),gf=S("$ZodLiteral",(e,t)=>{if(Se.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"?wr(i):i?wr(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}}),vf=S("$ZodFile",(e,t)=>{Se.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}}),bf=S("$ZodTransform",(e,t)=>{Se.init(e,t),e._zod.optin="optional",e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Rn(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.fallback=!0,n));if(r instanceof Promise)throw new Ar;return n.value=r,n.fallback=!0,n}});ec=S("$ZodOptional",(e,t)=>{Se.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(`^(${Sa(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let r=n.value,o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(a=>Hy(a,r)):Hy(o,r)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),yf=S("$ZodExactOptional",(e,t)=>{ec.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)}),xf=S("$ZodNullable",(e,t)=>{Se.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(`^(${Sa(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)}),wf=S("$ZodDefault",(e,t)=>{Se.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=>Ky(o,t)):Ky(r,t)}});kf=S("$ZodPrefault",(e,t)=>{Se.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))}),_f=S("$ZodNonOptional",(e,t)=>{Se.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=>Wy(o,e)):Wy(r,e)}});$f=S("$ZodSuccess",(e,t)=>{Se.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Rn("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)}}),Sf=S("$ZodCatch",(e,t)=>{Se.init(e,t),e._zod.optin="optional",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=>Jt(a,i,wt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>Jt(o,i,wt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Ef=S("$ZodNaN",(e,t)=>{Se.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)}),tc=S("$ZodPipe",(e,t)=>{Se.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=>Wl(a,t.in,i)):Wl(o,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>Wl(o,t.out,i)):Wl(r,t.out,i)}});Ma=S("$ZodCodec",(e,t)=>{Se.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=>Gl(a,t,i)):Gl(o,t,i)}else{let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Gl(a,t,i)):Gl(o,t,i)}}});If=S("$ZodPreprocess",(e,t)=>{tc.init(e,t)}),Tf=S("$ZodReadonly",(e,t)=>{Se.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(Gy):Gy(r)}});zf=S("$ZodTemplateLiteral",(e,t)=>{Se.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||gp.has(typeof i))n.push(wr(`${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)}),Cf=S("$ZodFunction",(e,t)=>(Se.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?Nl(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?Nl(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 Ol(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await Ol(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 Ql({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)),Nf=S("$ZodPromise",(e,t)=>{Se.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),Of=S("$ZodLazy",(e,t)=>{Se.init(e,t),Ne(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),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)}),Af=S("$ZodCustom",(e,t)=>{ct.init(e,t),Se.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=>qy(o,n,i,e));qy(r,n,i,e)}})});function tx(){return{localeError:KT()}}var KT,rx=O(()=>{ge();KT=()=>{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=X(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 ${q(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: ${P(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":""}: ${P(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 nx(){return{localeError:WT()}}var WT,ix=O(()=>{ge();WT=()=>{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=X(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 ${q(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${P(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":""}: ${P(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 ox(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}function ax(){return{localeError:GT()}}var GT,sx=O(()=>{ge();GT=()=>{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=X(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 ${q(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 ${P(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=ox(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=ox(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"}: ${P(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 lx(){return{localeError:qT()}}var qT,cx=O(()=>{ge();qT=()=>{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=X(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 ${q(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 ${P(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":""}: ${P(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 ux(){return{localeError:JT()}}var JT,dx=O(()=>{ge();JT=()=>{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=X(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 ${q(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${P(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":""}: ${P(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 px(){return{localeError:YT()}}var YT,mx=O(()=>{ge();YT=()=>{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=X(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 ${q(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${P(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: ${P(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 fx(){return{localeError:XT()}}var XT,hx=O(()=>{ge();XT=()=>{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=X(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 ${q(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${P(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"}: ${P(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 gx(){return{localeError:QT()}}var QT,vx=O(()=>{ge();QT=()=>{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=X(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 ${q(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${P(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"}: ${P(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 bx(){return{localeError:ez()}}var ez,yx=O(()=>{ge();ez=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(r){return e[r]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=X(r.input),s=i[a]??a;return typeof r.expected=="string"&&/^[A-Z]/.test(r.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${r.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return r.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${q(r.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${P(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${r.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${r.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${o.suffix}"`:o.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${o.includes}"`:o.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[o.format]??r.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${r.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${r.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${r.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${P(r.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${r.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${r.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}}});function rc(){return{localeError:tz()}}var tz,Pf=O(()=>{ge();tz=()=>{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=X(r.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${q(r.values[0])}`:`Invalid option: expected one of ${P(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":""}: ${P(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`Invalid discriminator value. Expected ${r.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}}});function xx(){return{localeError:rz()}}var rz,wx=O(()=>{ge();rz=()=>{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=X(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 ${q(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${P(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":""}: ${P(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 kx(){return{localeError:nz()}}var nz,_x=O(()=>{ge();nz=()=>{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=X(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 ${q(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${P(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":""}: ${P(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 $x(){return{localeError:iz()}}var iz,Sx=O(()=>{ge();iz=()=>{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=X(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 ${q(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 ${P(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: ${P(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 Ex(){return{localeError:oz()}}var oz,Ix=O(()=>{ge();oz=()=>{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=X(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 ${q(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${P(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"}: ${P(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 Tx(){return{localeError:az()}}var az,zx=O(()=>{ge();az=()=>{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={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=X(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 : ${q(r.values[0])} attendu`:`Option invalide : une valeur parmi ${P(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${i[r.origin]??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[r.origin]??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${i[r.origin]??"valeur"} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${i[r.origin]??"valeur"} 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":""} : ${P(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 Cx(){return{localeError:sz()}}var sz,Nx=O(()=>{ge();sz=()=>{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=X(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 ${q(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${P(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":""} : ${P(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 Ox(){return{localeError:lz()}}var lz,Ax=O(()=>{ge();lz=()=>{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=u=>u?e[u]:void 0,i=u=>{let d=n(u);return d?d.label:u??e.unknown.label},r=u=>`\u05D4${i(u)}`,o=u=>(n(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?t[u]??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 u=>{switch(u.code){case"invalid_type":{let d=u.expected,p=c[d??""]??i(d),m=X(u.input),f=c[m]??e[m]?.label??m;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`}case"invalid_value":{if(u.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 ${q(u.values[0])}`;let d=u.values.map(f=>q(f));if(u.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(u.origin),p=r(u.origin??"value");if(u.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${d?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let $=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${$}`}if(u.origin==="array"||u.origin==="set"){let $=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",I=u.inclusive?`${u.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${$} \u05DC\u05D4\u05DB\u05D9\u05DC ${I}`.trim()}let m=u.inclusive?"<=":"<",f=o(u.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${f} ${m}${u.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${f} ${m}${u.maximum.toString()}`}case"too_small":{let d=a(u.origin),p=r(u.origin??"value");if(u.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${d?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let $=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${$}`}if(u.origin==="array"||u.origin==="set"){let $=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let T=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${$} \u05DC\u05D4\u05DB\u05D9\u05DC ${T}`}let I=u.inclusive?`${u.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${$} \u05DC\u05D4\u05DB\u05D9\u05DC ${I}`.trim()}let m=u.inclusive?">=":">",f=o(u.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${f} ${m}${u.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${f} ${m}${u.minimum.toString()}`}case"invalid_format":{let d=u;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,$=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${$}`}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 ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${P(u.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(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}}});function Dx(){return{localeError:cz()}}var cz,Px=O(()=>{ge();cz=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(r){return e[r]??null}let n={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=X(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${r.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${s}`}case"invalid_value":return r.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${q(r.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${P(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${o}${r.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${o}${r.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${n[o.format]??r.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${r.divisor}`;case"unrecognized_keys":return`Neprepoznat${r.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${P(r.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[r.origin]??r.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[r.origin]??r.origin}`;default:return"Neispravan unos"}}}});function Rx(){return{localeError:uz()}}var uz,Mx=O(()=>{ge();uz=()=>{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=X(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 ${q(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${P(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":""}: ${P(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 Ux(e,t,n){return Math.abs(e)===1?t:n}function po(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")}function jx(){return{localeError:dz()}}var dz,Lx=O(()=>{ge();dz=()=>{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=X(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 ${q(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 ${P(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Ux(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 ${po(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 ${po(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=Ux(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 ${po(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 ${po(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":""}. ${P(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${po(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 ${po(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}}});function Vx(){return{localeError:pz()}}var pz,Fx=O(()=>{ge();pz=()=>{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=X(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 ${q(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${P(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":""}: ${P(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 Bx(){return{localeError:mz()}}var mz,Zx=O(()=>{ge();mz=()=>{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=X(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 ${q(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${P(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"}: ${P(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 Hx(){return{localeError:fz()}}var fz,Kx=O(()=>{ge();fz=()=>{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=X(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 ${q(r.values[0])}`:`Opzione non valida: atteso uno tra ${P(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}`:`Input non valido: ${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"}: ${P(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 Wx(){return{localeError:hz()}}var hz,Gx=O(()=>{ge();hz=()=>{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=X(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: ${q(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${P(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":""}: ${P(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 qx(){return{localeError:gz()}}var gz,Jx=O(()=>{ge();gz=()=>{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 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\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:"\u10D5\u10D4\u10DA\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=X(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 ${q(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 ${P(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 \u10D5\u10D4\u10DA\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 \u10D5\u10D4\u10DA\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 \u10D5\u10D4\u10DA\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 \u10D5\u10D4\u10DA\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"}: ${P(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 nc(){return{localeError:vz()}}var vz,Rf=O(()=>{ge();vz=()=>{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=X(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 ${q(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 ${P(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 ${P(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 Yx(){return nc()}var Xx=O(()=>{Rf()});function Qx(){return{localeError:bz()}}var bz,ew=O(()=>{ge();bz=()=>{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=X(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 ${q(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${P(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: ${P(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 tw(e){let t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}function rw(){return{localeError:yz()}}var Ua,yz,nw=O(()=>{ge();Ua=e=>e.charAt(0).toUpperCase()+e.slice(1);yz=()=>{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=X(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 ${q(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${P(r.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[r.origin]??r.origin,a=t(r.origin,tw(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${Ua(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`${Ua(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,tw(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${Ua(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`${Ua(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"}: ${P(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`${Ua(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}}});function iw(){return{localeError:xz()}}var xz,ow=O(()=>{ge();xz=()=>{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=X(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 ${q(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 ${P(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"}: ${P(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 aw(){return{localeError:wz()}}var wz,sw=O(()=>{ge();wz=()=>{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=X(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 ${q(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${P(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: ${P(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 lw(){return{localeError:kz()}}var kz,cw=O(()=>{ge();kz=()=>{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=X(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 ${q(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${P(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":""}: ${P(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 uw(){return{localeError:_z()}}var _z,dw=O(()=>{ge();_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=X(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 ${q(r.values[0])}`:`Ugyldig valg: forventet en av ${P(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"}: ${P(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 pw(){return{localeError:$z()}}var $z,mw=O(()=>{ge();$z=()=>{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=X(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 ${q(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${P(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":""}: ${P(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 fw(){return{localeError:Sz()}}var Sz,hw=O(()=>{ge();Sz=()=>{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=X(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 ${q(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${P(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"}: ${P(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 gw(){return{localeError:Ez()}}var Ez,vw=O(()=>{ge();Ez=()=>{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=X(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 ${q(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${P(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":""}: ${P(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 bw(){return{localeError:Iz()}}var Iz,yw=O(()=>{ge();Iz=()=>{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=X(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 ${q(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${P(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":""}: ${P(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 xw(){return{localeError:Tz()}}var Tz,ww=O(()=>{ge();Tz=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(r){return e[r]??null}let n={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=X(r.input),s=i[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${s}`}case"invalid_value":return r.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${q(r.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${P(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Prea mare: a\u0219teptat ca ${r.origin??"valoarea"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${r.origin??"valoarea"} s\u0103 fie ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Prea mic: a\u0219teptat ca ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${r.origin} s\u0103 fie ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${n[o.format]??r.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${r.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${P(r.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${r.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${r.origin}`;default:return"Intrare invalid\u0103"}}}});function kw(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}function _w(){return{localeError:zz()}}var zz,$w=O(()=>{ge();zz=()=>{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=X(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 ${q(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 ${P(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=kw(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=kw(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":""}: ${P(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 Sw(){return{localeError:Cz()}}var Cz,Ew=O(()=>{ge();Cz=()=>{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=X(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 ${q(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${P(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"}: ${P(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 Iw(){return{localeError:Nz()}}var Nz,Tw=O(()=>{ge();Nz=()=>{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=X(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 ${q(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${P(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"}: ${P(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 zw(){return{localeError:Oz()}}var Oz,Cw=O(()=>{ge();Oz=()=>{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=X(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 ${q(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 ${P(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":""}: ${P(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 Nw(){return{localeError:Az()}}var Az,Ow=O(()=>{ge();Az=()=>{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=X(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 ${q(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 ${P(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: ${P(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 Aw(){return{localeError:Dz()}}var Dz,Dw=O(()=>{ge();Dz=()=>{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=X(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 ${q(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${P(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":""}: ${P(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 ic(){return{localeError:Pz()}}var Pz,Mf=O(()=>{ge();Pz=()=>{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=X(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 ${q(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 ${P(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":""}: ${P(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 Pw(){return ic()}var Rw=O(()=>{Mf()});function Mw(){return{localeError:Rz()}}var Rz,Uw=O(()=>{ge();Rz=()=>{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=X(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: ${q(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${P(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":""}: ${P(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 jw(){return{localeError:Mz()}}var Mz,Lw=O(()=>{ge();Mz=()=>{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"},map:{unit:"yozuv",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=X(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 ${q(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${P(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":""}: ${P(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 Vw(){return{localeError:Uz()}}var Uz,Fw=O(()=>{ge();Uz=()=>{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=X(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 ${q(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 ${P(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: ${P(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 Bw(){return{localeError:jz()}}var jz,Zw=O(()=>{ge();jz=()=>{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=X(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 ${q(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${P(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): ${P(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 Hw(){return{localeError:Lz()}}var Lz,Kw=O(()=>{ge();Lz=()=>{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=X(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 ${q(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${P(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${P(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 Ww(){return{localeError:Vz()}}var Vz,Gw=O(()=>{ge();Vz=()=>{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=X(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 ${q(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${P(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: ${P(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"}}}});var ja={};Nr(ja,{ar:()=>tx,az:()=>nx,be:()=>ax,bg:()=>lx,ca:()=>ux,cs:()=>px,da:()=>fx,de:()=>gx,el:()=>bx,en:()=>rc,eo:()=>xx,es:()=>kx,fa:()=>$x,fi:()=>Ex,fr:()=>Tx,frCA:()=>Cx,he:()=>Ox,hr:()=>Dx,hu:()=>Rx,hy:()=>jx,id:()=>Vx,is:()=>Bx,it:()=>Hx,ja:()=>Wx,ka:()=>qx,kh:()=>Yx,km:()=>nc,ko:()=>Qx,lt:()=>rw,mk:()=>iw,ms:()=>aw,nl:()=>lw,no:()=>uw,ota:()=>pw,pl:()=>gw,ps:()=>fw,pt:()=>bw,ro:()=>xw,ru:()=>_w,sl:()=>Sw,sv:()=>Iw,ta:()=>zw,th:()=>Nw,tr:()=>Aw,ua:()=>Pw,uk:()=>ic,ur:()=>Mw,uz:()=>jw,vi:()=>Vw,yo:()=>Ww,zhCN:()=>Bw,zhTW:()=>Hw});var Uf=O(()=>{rx();ix();sx();cx();dx();mx();hx();vx();yx();Pf();wx();_x();Sx();Ix();zx();Nx();Ax();Px();Mx();Lx();Fx();Zx();Kx();Gx();Jx();Xx();Rf();ew();nw();ow();sw();cw();dw();mw();hw();vw();yw();ww();$w();Ew();Tw();Cw();Ow();Dw();Rw();Mf();Uw();Lw();Fw();Zw();Kw();Gw()});function ac(){return new oc}var qw,jf,Lf,oc,Dt,La=O(()=>{jf=Symbol("ZodOutput"),Lf=Symbol("ZodInput"),oc=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)}};(qw=globalThis).__zod_globalRegistry??(qw.__zod_globalRegistry=ac());Dt=globalThis.__zod_globalRegistry});function Vf(e,t){return new e({type:"string",...oe(t)})}function Ff(e,t){return new e({type:"string",coerce:!0,...oe(t)})}function sc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...oe(t)})}function Va(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...oe(t)})}function lc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...oe(t)})}function cc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...oe(t)})}function uc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...oe(t)})}function dc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...oe(t)})}function Fa(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...oe(t)})}function pc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...oe(t)})}function mc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...oe(t)})}function fc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...oe(t)})}function hc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...oe(t)})}function gc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...oe(t)})}function vc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...oe(t)})}function bc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...oe(t)})}function yc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...oe(t)})}function xc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...oe(t)})}function Bf(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...oe(t)})}function wc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...oe(t)})}function kc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...oe(t)})}function _c(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...oe(t)})}function $c(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...oe(t)})}function Sc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...oe(t)})}function Ec(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...oe(t)})}function Hf(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...oe(t)})}function Kf(e,t){return new e({type:"string",format:"date",check:"string_format",...oe(t)})}function Wf(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...oe(t)})}function Gf(e,t){return new e({type:"string",format:"duration",check:"string_format",...oe(t)})}function qf(e,t){return new e({type:"number",checks:[],...oe(t)})}function Jf(e,t){return new e({type:"number",coerce:!0,checks:[],...oe(t)})}function Yf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...oe(t)})}function Xf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...oe(t)})}function Qf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...oe(t)})}function eh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...oe(t)})}function th(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...oe(t)})}function rh(e,t){return new e({type:"boolean",...oe(t)})}function nh(e,t){return new e({type:"boolean",coerce:!0,...oe(t)})}function ih(e,t){return new e({type:"bigint",...oe(t)})}function oh(e,t){return new e({type:"bigint",coerce:!0,...oe(t)})}function ah(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...oe(t)})}function sh(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...oe(t)})}function lh(e,t){return new e({type:"symbol",...oe(t)})}function ch(e,t){return new e({type:"undefined",...oe(t)})}function uh(e,t){return new e({type:"null",...oe(t)})}function dh(e){return new e({type:"any"})}function ph(e){return new e({type:"unknown"})}function mh(e,t){return new e({type:"never",...oe(t)})}function fh(e,t){return new e({type:"void",...oe(t)})}function hh(e,t){return new e({type:"date",...oe(t)})}function gh(e,t){return new e({type:"date",coerce:!0,...oe(t)})}function vh(e,t){return new e({type:"nan",...oe(t)})}function Br(e,t){return new Zl({check:"less_than",...oe(t),value:e,inclusive:!1})}function pr(e,t){return new Zl({check:"less_than",...oe(t),value:e,inclusive:!0})}function Zr(e,t){return new Hl({check:"greater_than",...oe(t),value:e,inclusive:!1})}function Yt(e,t){return new Hl({check:"greater_than",...oe(t),value:e,inclusive:!0})}function Ic(e){return Zr(0,e)}function Tc(e){return Br(0,e)}function zc(e){return pr(0,e)}function Cc(e){return Yt(0,e)}function Vn(e,t){return new rm({check:"multiple_of",...oe(t),value:e})}function Fn(e,t){return new om({check:"max_size",...oe(t),maximum:e})}function Hr(e,t){return new am({check:"min_size",...oe(t),minimum:e})}function bi(e,t){return new sm({check:"size_equals",...oe(t),size:e})}function yi(e,t){return new lm({check:"max_length",...oe(t),maximum:e})}function bn(e,t){return new cm({check:"min_length",...oe(t),minimum:e})}function xi(e,t){return new um({check:"length_equals",...oe(t),length:e})}function mo(e,t){return new dm({check:"string_format",format:"regex",...oe(t),pattern:e})}function fo(e){return new pm({check:"string_format",format:"lowercase",...oe(e)})}function ho(e){return new mm({check:"string_format",format:"uppercase",...oe(e)})}function go(e,t){return new fm({check:"string_format",format:"includes",...oe(t),includes:e})}function vo(e,t){return new hm({check:"string_format",format:"starts_with",...oe(t),prefix:e})}function bo(e,t){return new gm({check:"string_format",format:"ends_with",...oe(t),suffix:e})}function Nc(e,t,n){return new vm({check:"property",property:e,schema:t,...oe(n)})}function yo(e,t){return new bm({check:"mime_type",mime:e,...oe(t)})}function Dr(e){return new ym({check:"overwrite",tx:e})}function xo(e){return Dr(t=>t.normalize(e))}function wo(){return Dr(e=>e.trim())}function ko(){return Dr(e=>e.toLowerCase())}function _o(){return Dr(e=>e.toUpperCase())}function $o(){return Dr(e=>mp(e))}function bh(e,t,n){return new e({type:"array",element:t,...oe(n)})}function Bz(e,t,n){return new e({type:"union",options:t,...oe(n)})}function Zz(e,t,n){return new e({type:"union",options:t,inclusive:!1,...oe(n)})}function Hz(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...oe(i)})}function Kz(e,t,n){return new e({type:"intersection",left:t,right:n})}function Wz(e,t,n,i){let r=n instanceof Se,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...oe(o)})}function Gz(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...oe(i)})}function qz(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...oe(i)})}function Jz(e,t,n){return new e({type:"set",valueType:t,...oe(n)})}function Yz(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...oe(n)})}function Xz(e,t,n){return new e({type:"enum",entries:t,...oe(n)})}function Qz(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...oe(n)})}function yh(e,t){return new e({type:"file",...oe(t)})}function e4(e,t){return new e({type:"transform",transform:t})}function t4(e,t){return new e({type:"optional",innerType:t})}function r4(e,t){return new e({type:"nullable",innerType:t})}function n4(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():hp(n)}})}function i4(e,t,n){return new e({type:"nonoptional",innerType:t,...oe(n)})}function o4(e,t){return new e({type:"success",innerType:t})}function a4(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function s4(e,t,n){return new e({type:"pipe",in:t,out:n})}function l4(e,t){return new e({type:"readonly",innerType:t})}function c4(e,t,n){return new e({type:"template_literal",parts:t,...oe(n)})}function u4(e,t){return new e({type:"lazy",getter:t})}function d4(e,t){return new e({type:"promise",innerType:t})}function xh(e,t,n){let i=oe(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function wh(e,t,n){return new e({type:"custom",check:"custom",fn:t,...oe(n)})}function kh(e,t){let n=Jw(i=>(i.addIssue=r=>{if(typeof r=="string")i.issues.push(oo(r,i.value,n._zod.def));else{let o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),i.issues.push(oo(o))}},e(i.value,i)),t);return n}function Jw(e,t){let n=new ct({check:"custom",...oe(t)});return n._zod.check=e,n}function _h(e){let t=new ct({check:"describe"});return t._zod.onattach=[n=>{let i=Dt.get(n)??{};Dt.add(n,{...i,description:e})}],t._zod.check=()=>{},t}function $h(e){let t=new ct({check:"meta"});return t._zod.onattach=[n=>{let i=Dt.get(n)??{};Dt.add(n,{...i,...e})}],t._zod.check=()=>{},t}function Sh(e,t){let n=oe(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(f=>typeof f=="string"?f.toLowerCase():f),r=r.map(f=>typeof f=="string"?f.toLowerCase():f));let o=new Set(i),a=new Set(r),s=e.Codec??Ma,c=e.Boolean??Pa,u=e.String??vi,d=new u({type:"string",error:n.error}),p=new c({type:"boolean",error:n.error}),m=new s({type:"pipe",in:d,out:p,transform:((f,$)=>{let I=f;return n.case!=="sensitive"&&(I=I.toLowerCase()),o.has(I)?!0:a.has(I)?!1:($.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:$.value,inst:m,continue:!1}),{})}),reverseTransform:((f,$)=>f===!0?i[0]||"true":r[0]||"false"),error:n.error});return m}function So(e,t,n,i={}){let r=oe(i),o={...oe(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)}var Zf,Yw=O(()=>{Kl();La();Df();ge();Zf={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function Bn(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??Dt,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 Ye(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,f=t.processors[r.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);f(e,t,m,d)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),Ye(p,t,d),t.seen.get(p).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Xt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Zn(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??($=>$);if(p)return{ref:m(p)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${m("__shared")}#/${s}/${f}`}}if(a[1]===n)return{ref:"#"};let u=`#/${s}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:u+d}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:u}=r(a);s.def={...s.schema},u&&(s.defId=u);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>
|
|
67
67
|
|
|
68
|
-
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 u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function Hn(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let c=e.seen.get(s);if(c.ref===null)return;let u=c.def??c.schema,d={...u},p=c.ref;if(c.ref=null,p){i(p);let f=e.seen.get(p),$=f.schema;if($.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push($)):Object.assign(u,$),Object.assign(u,d),s._zod.parent===p)for(let T in u)T==="$ref"||T==="allOf"||T in d||delete u[T];if($.$ref&&f.def)for(let T in u)T==="$ref"||T==="allOf"||T in f.def&&JSON.stringify(u[T])===JSON.stringify(f.def[T])&&delete u[T]}let m=s._zod.parent;if(m&&m!==p){i(m);let f=e.seen.get(m);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let $ in u)$==="$ref"||$==="allOf"||$ in f.def&&JSON.stringify(u[$])===JSON.stringify(f.def[$])&&delete u[$]}e.override({zodSchema:s,jsonSchema:u,path:c.path??[]})};for(let s of[...e.seen.entries()].reverse())i(s[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 s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Object.assign(r,n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&r.id===o&&delete r.id;let a=e.external?.defs??{};for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Eo(t,"input",e.processors),output:Eo(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Xt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Xt(i.element,n);if(i.type==="set")return Xt(i.valueType,n);if(i.type==="lazy")return Xt(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 Xt(i.innerType,n);if(i.type==="intersection")return Xt(i.left,n)||Xt(i.right,n);if(i.type==="record"||i.type==="map")return Xt(i.keyType,n)||Xt(i.valueType,n);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Xt(i.in,n)||Xt(i.out,n);if(i.type==="object"){for(let r in i.shape)if(Xt(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(Xt(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(Xt(r,n))return!0;return!!(i.rest&&Xt(i.rest,n))}return!1}var Eh,Eo,Ba=O(()=>{La();Eh=(e,t={})=>n=>{let i=Bn({...n,processors:t});return Ye(e,i),Zn(i,e),Hn(i,e)},Eo=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=Bn({...r??{},target:o,io:t,processors:n});return Ye(e,a),Zn(a,e),Hn(a,e)}});function Pc(e,t){if("_idmap"in e){let i=e,r=Bn({...t,processors:Oc}),o={};for(let c of i._idmap.entries()){let[u,d]=c;Ye(d,r)}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let c of i._idmap.entries()){let[u,d]=c;Zn(r,d),a[u]=Hn(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=Bn({...t,processors:Oc});return Ye(e,n),Zn(n,e),Hn(n,e)}var p4,Ih,Th,zh,Ch,Nh,Oh,Ah,Dh,Ph,Rh,Mh,Uh,jh,Lh,Vh,Fh,Bh,Zh,Hh,Kh,Wh,Gh,qh,Jh,Yh,Ac,Xh,Qh,eg,tg,rg,ng,ig,og,ag,sg,lg,Dc,cg,Oc,Za=O(()=>{Ba();ge();p4={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ih=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=p4[s]??s,r.format===""&&delete r.format,s==="time"&&delete r.format),u&&(r.contentEncoding=u),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}))])}},Th=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number";let p=typeof d=="number"&&d>=(o??Number.NEGATIVE_INFINITY),m=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";p?f?(r.minimum=d,r.exclusiveMinimum=!0):r.exclusiveMinimum=d:typeof o=="number"&&(r.minimum=o),m?f?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u:typeof a=="number"&&(r.maximum=a),typeof c=="number"&&(r.multipleOf=c)},zh=(e,t,n,i)=>{n.type="boolean"},Ch=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Nh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Oh=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Ah=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Dh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Ph=(e,t,n,i)=>{n.not={}},Rh=(e,t,n,i)=>{},Mh=(e,t,n,i)=>{},Uh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},jh=(e,t,n,i)=>{let r=e._zod.def,o=$a(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},Lh=(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},Vh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Fh=(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},Bh=(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(u=>({contentMediaType:u}))):Object.assign(r,o)},Zh=(e,t,n,i)=>{n.type="boolean"},Hh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Kh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Wh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Gh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},qh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Jh=(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=Ye(o.element,t,{...i,path:[...i.path,"items"]})},Yh=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object",r.properties={};let a=o.shape;for(let u in a)r.properties[u]=Ye(a[u],t,{...i,path:[...i.path,"properties",u]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(u=>{let d=o.shape[u]._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=!1:o.catchall?o.catchall&&(r.additionalProperties=Ye(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Ac=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===!1,a=r.options.map((s,c)=>Ye(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=a:n.anyOf=a},Xh=(e,t,n,i)=>{let r=e._zod.def,o=Ye(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=Ye(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=c},Qh=(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,f)=>Ye(m,t,{...i,path:[...i.path,a,f]})),u=o.rest?Ye(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,u&&(r.items=u)):t.target==="openapi-3.0"?(r.items={anyOf:c},u&&r.items.anyOf.push(u),r.minItems=c.length,u||(r.maxItems=c.length)):(r.items=c,u&&(r.additionalItems=u));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof p=="number"&&(r.maxItems=p)},eg=(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=Ye(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=Ye(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=Ye(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let u=a._zod.values;if(u){let d=[...u].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(r.required=d)}},tg=(e,t,n,i)=>{let r=e._zod.def,o=Ye(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},rg=(e,t,n,i)=>{let r=e._zod.def;Ye(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},ng=(e,t,n,i)=>{let r=e._zod.def;Ye(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},ig=(e,t,n,i)=>{let r=e._zod.def;Ye(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)))},og=(e,t,n,i)=>{let r=e._zod.def;Ye(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},ag=(e,t,n,i)=>{let r=e._zod.def,o=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?r.out:r.in:r.out;Ye(a,t,i);let s=t.seen.get(e);s.ref=a},sg=(e,t,n,i)=>{let r=e._zod.def;Ye(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},lg=(e,t,n,i)=>{let r=e._zod.def;Ye(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Dc=(e,t,n,i)=>{let r=e._zod.def;Ye(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},cg=(e,t,n,i)=>{let r=e._zod.innerType;Ye(r,t,i);let o=t.seen.get(e);o.ref=r},Oc={string:Ih,number:Th,boolean:zh,bigint:Ch,symbol:Nh,null:Oh,undefined:Ah,void:Dh,never:Ph,any:Rh,unknown:Mh,date:Uh,enum:jh,literal:Lh,nan:Vh,template_literal:Fh,file:Bh,success:Zh,custom:Hh,function:Kh,transform:Wh,map:Gh,set:qh,array:Jh,object:Yh,union:Ac,intersection:Xh,tuple:Qh,record:eg,nullable:tg,nonoptional:rg,default:ng,prefault:ig,catch:og,pipe:ag,readonly:sg,promise:lg,optional:Dc,lazy:cg}});var Rc,Xw=O(()=>{Za();Ba();Rc=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=Bn({processors:Oc,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 Ye(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)),Zn(this.ctx,t);let i=Hn(this.ctx,t),{"~standard":r,...o}=i;return o}}});var Qw={};var ek=O(()=>{});var yn={};Nr(yn,{$ZodAny:()=>tf,$ZodArray:()=>sf,$ZodAsyncError:()=>Ar,$ZodBase64:()=>Hm,$ZodBase64URL:()=>Km,$ZodBigInt:()=>Xl,$ZodBigIntFormat:()=>Ym,$ZodBoolean:()=>Pa,$ZodCIDRv4:()=>Fm,$ZodCIDRv6:()=>Bm,$ZodCUID:()=>Cm,$ZodCUID2:()=>Nm,$ZodCatch:()=>Sf,$ZodCheck:()=>ct,$ZodCheckBigIntFormat:()=>im,$ZodCheckEndsWith:()=>gm,$ZodCheckGreaterThan:()=>Hl,$ZodCheckIncludes:()=>fm,$ZodCheckLengthEquals:()=>um,$ZodCheckLessThan:()=>Zl,$ZodCheckLowerCase:()=>pm,$ZodCheckMaxLength:()=>lm,$ZodCheckMaxSize:()=>om,$ZodCheckMimeType:()=>bm,$ZodCheckMinLength:()=>cm,$ZodCheckMinSize:()=>am,$ZodCheckMultipleOf:()=>rm,$ZodCheckNumberFormat:()=>nm,$ZodCheckOverwrite:()=>ym,$ZodCheckProperty:()=>vm,$ZodCheckRegex:()=>dm,$ZodCheckSizeEquals:()=>sm,$ZodCheckStartsWith:()=>hm,$ZodCheckStringFormat:()=>uo,$ZodCheckUpperCase:()=>mm,$ZodCodec:()=>Ma,$ZodCustom:()=>Af,$ZodCustomStringFormat:()=>qm,$ZodDate:()=>af,$ZodDefault:()=>wf,$ZodDiscriminatedUnion:()=>uf,$ZodE164:()=>Wm,$ZodEmail:()=>Em,$ZodEmoji:()=>Tm,$ZodEncodeError:()=>Rn,$ZodEnum:()=>hf,$ZodError:()=>za,$ZodExactOptional:()=>yf,$ZodFile:()=>vf,$ZodFunction:()=>Cf,$ZodGUID:()=>$m,$ZodIPv4:()=>jm,$ZodIPv6:()=>Lm,$ZodISODate:()=>Rm,$ZodISODateTime:()=>Pm,$ZodISODuration:()=>Um,$ZodISOTime:()=>Mm,$ZodIntersection:()=>df,$ZodJWT:()=>Gm,$ZodKSUID:()=>Dm,$ZodLazy:()=>Of,$ZodLiteral:()=>gf,$ZodMAC:()=>Vm,$ZodMap:()=>mf,$ZodNaN:()=>Ef,$ZodNanoID:()=>zm,$ZodNever:()=>nf,$ZodNonOptional:()=>_f,$ZodNull:()=>ef,$ZodNullable:()=>xf,$ZodNumber:()=>Yl,$ZodNumberFormat:()=>Jm,$ZodObject:()=>ex,$ZodObjectJIT:()=>lf,$ZodOptional:()=>ec,$ZodPipe:()=>tc,$ZodPrefault:()=>kf,$ZodPreprocess:()=>If,$ZodPromise:()=>Nf,$ZodReadonly:()=>Tf,$ZodRealError:()=>sr,$ZodRecord:()=>pf,$ZodRegistry:()=>oc,$ZodSet:()=>ff,$ZodString:()=>vi,$ZodStringFormat:()=>it,$ZodSuccess:()=>$f,$ZodSymbol:()=>Xm,$ZodTemplateLiteral:()=>zf,$ZodTransform:()=>bf,$ZodTuple:()=>Ql,$ZodType:()=>Se,$ZodULID:()=>Om,$ZodURL:()=>Im,$ZodUUID:()=>Sm,$ZodUndefined:()=>Qm,$ZodUnion:()=>Ra,$ZodUnknown:()=>rf,$ZodVoid:()=>of,$ZodXID:()=>Am,$ZodXor:()=>cf,$brand:()=>cp,$constructor:()=>S,$input:()=>Lf,$output:()=>jf,Doc:()=>Da,JSONSchema:()=>Qw,JSONSchemaGenerator:()=>Rc,NEVER:()=>lp,TimePrecision:()=>Zf,_any:()=>dh,_array:()=>bh,_base64:()=>_c,_base64url:()=>$c,_bigint:()=>ih,_boolean:()=>rh,_catch:()=>a4,_check:()=>Jw,_cidrv4:()=>wc,_cidrv6:()=>kc,_coercedBigint:()=>oh,_coercedBoolean:()=>nh,_coercedDate:()=>gh,_coercedNumber:()=>Jf,_coercedString:()=>Ff,_cuid:()=>fc,_cuid2:()=>hc,_custom:()=>xh,_date:()=>hh,_decode:()=>Dl,_decodeAsync:()=>Rl,_default:()=>n4,_discriminatedUnion:()=>Hz,_e164:()=>Sc,_email:()=>sc,_emoji:()=>pc,_encode:()=>Al,_encodeAsync:()=>Pl,_endsWith:()=>bo,_enum:()=>Yz,_file:()=>yh,_float32:()=>Xf,_float64:()=>Qf,_gt:()=>Zr,_gte:()=>Yt,_guid:()=>Va,_includes:()=>go,_int:()=>Yf,_int32:()=>eh,_int64:()=>ah,_intersection:()=>Kz,_ipv4:()=>yc,_ipv6:()=>xc,_isoDate:()=>Kf,_isoDateTime:()=>Hf,_isoDuration:()=>Gf,_isoTime:()=>Wf,_jwt:()=>Ec,_ksuid:()=>bc,_lazy:()=>u4,_length:()=>xi,_literal:()=>Qz,_lowercase:()=>fo,_lt:()=>Br,_lte:()=>pr,_mac:()=>Bf,_map:()=>qz,_max:()=>pr,_maxLength:()=>yi,_maxSize:()=>Fn,_mime:()=>yo,_min:()=>Yt,_minLength:()=>bn,_minSize:()=>Hr,_multipleOf:()=>Vn,_nan:()=>vh,_nanoid:()=>mc,_nativeEnum:()=>Xz,_negative:()=>Tc,_never:()=>mh,_nonnegative:()=>Cc,_nonoptional:()=>i4,_nonpositive:()=>zc,_normalize:()=>xo,_null:()=>uh,_nullable:()=>r4,_number:()=>qf,_optional:()=>t4,_overwrite:()=>Dr,_parse:()=>ao,_parseAsync:()=>so,_pipe:()=>s4,_positive:()=>Ic,_promise:()=>d4,_property:()=>Nc,_readonly:()=>l4,_record:()=>Gz,_refine:()=>wh,_regex:()=>mo,_safeDecode:()=>Ul,_safeDecodeAsync:()=>Ll,_safeEncode:()=>Ml,_safeEncodeAsync:()=>jl,_safeParse:()=>lo,_safeParseAsync:()=>co,_set:()=>Jz,_size:()=>bi,_slugify:()=>$o,_startsWith:()=>vo,_string:()=>Vf,_stringFormat:()=>So,_stringbool:()=>Sh,_success:()=>o4,_superRefine:()=>kh,_symbol:()=>lh,_templateLiteral:()=>c4,_toLowerCase:()=>ko,_toUpperCase:()=>_o,_transform:()=>e4,_trim:()=>wo,_tuple:()=>Wz,_uint32:()=>th,_uint64:()=>sh,_ulid:()=>gc,_undefined:()=>ch,_union:()=>Bz,_unknown:()=>ph,_uppercase:()=>ho,_url:()=>Fa,_uuid:()=>lc,_uuidv4:()=>cc,_uuidv6:()=>uc,_uuidv7:()=>dc,_void:()=>fh,_xid:()=>vc,_xor:()=>Zz,clone:()=>qt,config:()=>wt,createStandardJSONSchemaMethod:()=>Eo,createToJSONSchemaMethod:()=>Eh,decode:()=>dT,decodeAsync:()=>mT,describe:()=>_h,encode:()=>uT,encodeAsync:()=>pT,extractDefs:()=>Zn,finalize:()=>Hn,flattenError:()=>Ca,formatError:()=>Na,globalConfig:()=>mi,globalRegistry:()=>Dt,initializeContext:()=>Bn,isValidBase64:()=>Zm,isValidBase64URL:()=>Jy,isValidJWT:()=>Yy,locales:()=>ja,meta:()=>$h,parse:()=>Nl,parseAsync:()=>Ol,prettifyError:()=>kp,process:()=>Ye,regexes:()=>dr,registry:()=>ac,safeDecode:()=>hT,safeDecodeAsync:()=>vT,safeEncode:()=>fT,safeEncodeAsync:()=>gT,safeParse:()=>$p,safeParseAsync:()=>Sp,toDotPath:()=>zy,toJSONSchema:()=>Pc,treeifyError:()=>wp,util:()=>ee,version:()=>wm});var mr=O(()=>{fi();Ep();_p();Df();Kl();km();ge();Bl();Uf();La();xm();Yw();Ba();Za();Xw();ek()});var Mc={};Nr(Mc,{endsWith:()=>bo,gt:()=>Zr,gte:()=>Yt,includes:()=>go,length:()=>xi,lowercase:()=>fo,lt:()=>Br,lte:()=>pr,maxLength:()=>yi,maxSize:()=>Fn,mime:()=>yo,minLength:()=>bn,minSize:()=>Hr,multipleOf:()=>Vn,negative:()=>Tc,nonnegative:()=>Cc,nonpositive:()=>zc,normalize:()=>xo,overwrite:()=>Dr,positive:()=>Ic,property:()=>Nc,regex:()=>mo,size:()=>bi,slugify:()=>$o,startsWith:()=>vo,toLowerCase:()=>ko,toUpperCase:()=>_o,trim:()=>wo,uppercase:()=>ho});var Uc=O(()=>{mr()});var Io={};Nr(Io,{ZodISODate:()=>Lc,ZodISODateTime:()=>jc,ZodISODuration:()=>Fc,ZodISOTime:()=>Vc,date:()=>dg,datetime:()=>ug,duration:()=>mg,time:()=>pg});function ug(e){return Hf(jc,e)}function dg(e){return Kf(Lc,e)}function pg(e){return Wf(Vc,e)}function mg(e){return Gf(Fc,e)}var jc,Lc,Vc,Fc,Ha=O(()=>{mr();Wa();jc=S("ZodISODateTime",(e,t)=>{Pm.init(e,t),ot.init(e,t)});Lc=S("ZodISODate",(e,t)=>{Rm.init(e,t),ot.init(e,t)});Vc=S("ZodISOTime",(e,t)=>{Mm.init(e,t),ot.init(e,t)});Fc=S("ZodISODuration",(e,t)=>{Um.init(e,t),ot.init(e,t)})});var tk,f4,lr,fg=O(()=>{mr();mr();ge();tk=(e,t)=>{za.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Na(e,n)},flatten:{value:n=>Ca(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,no,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,no,2)}},isEmpty:{get(){return e.issues.length===0}}})},f4=S("ZodError",tk),lr=S("ZodError",tk,{Parent:Error})});var hg,gg,vg,bg,yg,xg,wg,kg,_g,$g,Sg,Eg,Ig=O(()=>{mr();fg();hg=ao(lr),gg=so(lr),vg=lo(lr),bg=co(lr),yg=Al(lr),xg=Dl(lr),wg=Pl(lr),kg=Rl(lr),_g=Ml(lr),$g=Ul(lr),Sg=jl(lr),Eg=Ll(lr)});var Ka={};Nr(Ka,{ZodAny:()=>Pg,ZodArray:()=>jg,ZodBase64:()=>iu,ZodBase64URL:()=>ou,ZodBigInt:()=>Do,ZodBigIntFormat:()=>lu,ZodBoolean:()=>Ao,ZodCIDRv4:()=>ru,ZodCIDRv6:()=>nu,ZodCUID:()=>qc,ZodCUID2:()=>Jc,ZodCatch:()=>sv,ZodCodec:()=>os,ZodCustom:()=>as,ZodCustomStringFormat:()=>No,ZodDate:()=>es,ZodDefault:()=>tv,ZodDiscriminatedUnion:()=>Vg,ZodE164:()=>au,ZodEmail:()=>Kc,ZodEmoji:()=>Wc,ZodEnum:()=>zo,ZodExactOptional:()=>Xg,ZodFile:()=>Jg,ZodFunction:()=>vv,ZodGUID:()=>qa,ZodIPv4:()=>eu,ZodIPv6:()=>tu,ZodIntersection:()=>Fg,ZodJWT:()=>su,ZodKSUID:()=>Qc,ZodLazy:()=>fv,ZodLiteral:()=>qg,ZodMAC:()=>Tg,ZodMap:()=>Wg,ZodNaN:()=>cv,ZodNanoID:()=>Gc,ZodNever:()=>Mg,ZodNonOptional:()=>fu,ZodNull:()=>Ag,ZodNullable:()=>ev,ZodNumber:()=>Oo,ZodNumberFormat:()=>ki,ZodObject:()=>rs,ZodOptional:()=>mu,ZodPipe:()=>is,ZodPrefault:()=>nv,ZodPreprocess:()=>uv,ZodPromise:()=>gv,ZodReadonly:()=>dv,ZodRecord:()=>To,ZodSet:()=>Gg,ZodString:()=>Co,ZodStringFormat:()=>ot,ZodSuccess:()=>av,ZodSymbol:()=>Ng,ZodTemplateLiteral:()=>mv,ZodTransform:()=>Yg,ZodTuple:()=>Zg,ZodType:()=>ze,ZodULID:()=>Yc,ZodURL:()=>Qa,ZodUUID:()=>Kr,ZodUndefined:()=>Og,ZodUnion:()=>ns,ZodUnknown:()=>Rg,ZodVoid:()=>Ug,ZodXID:()=>Xc,ZodXor:()=>Lg,_ZodString:()=>Hc,_default:()=>rv,_function:()=>c_,any:()=>Lk,array:()=>ts,base64:()=>_k,base64url:()=>$k,bigint:()=>Pk,boolean:()=>Cg,catch:()=>lv,check:()=>u_,cidrv4:()=>wk,cidrv6:()=>kk,codec:()=>o_,cuid:()=>mk,cuid2:()=>fk,custom:()=>d_,date:()=>Fk,describe:()=>p_,discriminatedUnion:()=>Gk,e164:()=>Sk,email:()=>nk,emoji:()=>dk,enum:()=>du,exactOptional:()=>Qg,file:()=>t_,float32:()=>Nk,float64:()=>Ok,function:()=>c_,guid:()=>ik,hash:()=>Ck,hex:()=>zk,hostname:()=>Tk,httpUrl:()=>uk,instanceof:()=>f_,int:()=>Bc,int32:()=>Ak,int64:()=>Rk,intersection:()=>Bg,invertCodec:()=>a_,ipv4:()=>bk,ipv6:()=>xk,json:()=>g_,jwt:()=>Ek,keyof:()=>Bk,ksuid:()=>vk,lazy:()=>hv,literal:()=>e_,looseObject:()=>Kk,looseRecord:()=>Jk,mac:()=>yk,map:()=>Yk,meta:()=>m_,nan:()=>i_,nanoid:()=>pk,nativeEnum:()=>Qk,never:()=>cu,nonoptional:()=>ov,null:()=>Dg,nullable:()=>Ya,nullish:()=>r_,number:()=>zg,object:()=>Zk,optional:()=>Ja,partialRecord:()=>qk,pipe:()=>Zc,prefault:()=>iv,preprocess:()=>v_,promise:()=>l_,readonly:()=>pv,record:()=>Kg,refine:()=>bv,set:()=>Xk,strictObject:()=>Hk,string:()=>Ga,stringFormat:()=>Ik,stringbool:()=>h_,success:()=>n_,superRefine:()=>yv,symbol:()=>Uk,templateLiteral:()=>s_,transform:()=>pu,tuple:()=>Hg,uint32:()=>Dk,uint64:()=>Mk,ulid:()=>hk,undefined:()=>jk,union:()=>uu,unknown:()=>wi,url:()=>ck,uuid:()=>ok,uuidv4:()=>ak,uuidv6:()=>sk,uuidv7:()=>lk,void:()=>Vk,xid:()=>gk,xor:()=>Wk});function Xa(e,t,n){let i=Object.getPrototypeOf(e),r=rk.get(i);if(r||(r=new Set,rk.set(i,r)),!r.has(t)){r.add(t);for(let o in n){let a=n[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}function Ga(e){return Vf(Co,e)}function nk(e){return sc(Kc,e)}function ik(e){return Va(qa,e)}function ok(e){return lc(Kr,e)}function ak(e){return cc(Kr,e)}function sk(e){return uc(Kr,e)}function lk(e){return dc(Kr,e)}function ck(e){return Fa(Qa,e)}function uk(e){return Fa(Qa,{protocol:dr.httpProtocol,hostname:dr.domain,...ee.normalizeParams(e)})}function dk(e){return pc(Wc,e)}function pk(e){return mc(Gc,e)}function mk(e){return fc(qc,e)}function fk(e){return hc(Jc,e)}function hk(e){return gc(Yc,e)}function gk(e){return vc(Xc,e)}function vk(e){return bc(Qc,e)}function bk(e){return yc(eu,e)}function yk(e){return Bf(Tg,e)}function xk(e){return xc(tu,e)}function wk(e){return wc(ru,e)}function kk(e){return kc(nu,e)}function _k(e){return _c(iu,e)}function $k(e){return $c(ou,e)}function Sk(e){return Sc(au,e)}function Ek(e){return Ec(su,e)}function Ik(e,t,n={}){return So(No,e,t,n)}function Tk(e){return So(No,"hostname",dr.hostname,e)}function zk(e){return So(No,"hex",dr.hex,e)}function Ck(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=dr[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return So(No,i,r,t)}function zg(e){return qf(Oo,e)}function Bc(e){return Yf(ki,e)}function Nk(e){return Xf(ki,e)}function Ok(e){return Qf(ki,e)}function Ak(e){return eh(ki,e)}function Dk(e){return th(ki,e)}function Cg(e){return rh(Ao,e)}function Pk(e){return ih(Do,e)}function Rk(e){return ah(lu,e)}function Mk(e){return sh(lu,e)}function Uk(e){return lh(Ng,e)}function jk(e){return ch(Og,e)}function Dg(e){return uh(Ag,e)}function Lk(){return dh(Pg)}function wi(){return ph(Rg)}function cu(e){return mh(Mg,e)}function Vk(e){return fh(Ug,e)}function Fk(e){return hh(es,e)}function ts(e,t){return bh(jg,e,t)}function Bk(e){let t=e._zod.def.shape;return du(Object.keys(t))}function Zk(e,t){let n={type:"object",shape:e??{},...ee.normalizeParams(t)};return new rs(n)}function Hk(e,t){return new rs({type:"object",shape:e,catchall:cu(),...ee.normalizeParams(t)})}function Kk(e,t){return new rs({type:"object",shape:e,catchall:wi(),...ee.normalizeParams(t)})}function uu(e,t){return new ns({type:"union",options:e,...ee.normalizeParams(t)})}function Wk(e,t){return new Lg({type:"union",options:e,inclusive:!1,...ee.normalizeParams(t)})}function Gk(e,t,n){return new Vg({type:"union",options:t,discriminator:e,...ee.normalizeParams(n)})}function Bg(e,t){return new Fg({type:"intersection",left:e,right:t})}function Hg(e,t,n){let i=t instanceof Se,r=i?n:t,o=i?t:null;return new Zg({type:"tuple",items:e,rest:o,...ee.normalizeParams(r)})}function Kg(e,t,n){return!t||!t._zod?new To({type:"record",keyType:Ga(),valueType:e,...ee.normalizeParams(t)}):new To({type:"record",keyType:e,valueType:t,...ee.normalizeParams(n)})}function qk(e,t,n){let i=qt(e);return i._zod.values=void 0,new To({type:"record",keyType:i,valueType:t,...ee.normalizeParams(n)})}function Jk(e,t,n){return new To({type:"record",keyType:e,valueType:t,mode:"loose",...ee.normalizeParams(n)})}function Yk(e,t,n){return new Wg({type:"map",keyType:e,valueType:t,...ee.normalizeParams(n)})}function Xk(e,t){return new Gg({type:"set",valueType:e,...ee.normalizeParams(t)})}function du(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new zo({type:"enum",entries:n,...ee.normalizeParams(t)})}function Qk(e,t){return new zo({type:"enum",entries:e,...ee.normalizeParams(t)})}function e_(e,t){return new qg({type:"literal",values:Array.isArray(e)?e:[e],...ee.normalizeParams(t)})}function t_(e){return yh(Jg,e)}function pu(e){return new Yg({type:"transform",transform:e})}function Ja(e){return new mu({type:"optional",innerType:e})}function Qg(e){return new Xg({type:"optional",innerType:e})}function Ya(e){return new ev({type:"nullable",innerType:e})}function r_(e){return Ja(Ya(e))}function rv(e,t){return new tv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ee.shallowClone(t)}})}function iv(e,t){return new nv({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ee.shallowClone(t)}})}function ov(e,t){return new fu({type:"nonoptional",innerType:e,...ee.normalizeParams(t)})}function n_(e){return new av({type:"success",innerType:e})}function lv(e,t){return new sv({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}function i_(e){return vh(cv,e)}function Zc(e,t){return new is({type:"pipe",in:e,out:t})}function o_(e,t,n){return new os({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function a_(e){let t=e._zod.def;return new os({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function pv(e){return new dv({type:"readonly",innerType:e})}function s_(e,t){return new mv({type:"template_literal",parts:e,...ee.normalizeParams(t)})}function hv(e){return new fv({type:"lazy",getter:e})}function l_(e){return new gv({type:"promise",innerType:e})}function c_(e){return new vv({type:"function",input:Array.isArray(e?.input)?Hg(e?.input):e?.input??ts(wi()),output:e?.output??wi()})}function u_(e){let t=new ct({check:"custom"});return t._zod.check=e,t}function d_(e,t){return xh(as,e??(()=>!0),t)}function bv(e,t={}){return wh(as,e,t)}function yv(e,t){return kh(e,t)}function f_(e,t={}){let n=new as({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...ee.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}function g_(e){let t=hv(()=>uu([Ga(e),zg(),Cg(),Dg(),ts(t),Kg(Ga(),t)]));return t}function v_(e,t){return new uv({type:"pipe",in:pu(e),out:t})}var rk,ze,Hc,Co,ot,Kc,qa,Kr,Qa,Wc,Gc,qc,Jc,Yc,Xc,Qc,eu,Tg,tu,ru,nu,iu,ou,au,su,No,Oo,ki,Ao,Do,lu,Ng,Og,Ag,Pg,Rg,Mg,Ug,es,jg,rs,ns,Lg,Vg,Fg,Zg,To,Wg,Gg,zo,qg,Jg,Yg,mu,Xg,ev,tv,nv,fu,av,sv,cv,is,os,uv,dv,mv,fv,gv,vv,as,p_,m_,h_,Wa=O(()=>{mr();mr();Za();Ba();Uc();Ha();Ig();rk=new WeakMap;ze=S("ZodType",(e,t)=>(Se.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Eo(e,"input"),output:Eo(e,"output")}}),e.toJSONSchema=Eh(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,i)=>hg(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>vg(e,n,i),e.parseAsync=async(n,i)=>gg(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>bg(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>yg(e,n,i),e.decode=(n,i)=>xg(e,n,i),e.encodeAsync=async(n,i)=>wg(e,n,i),e.decodeAsync=async(n,i)=>kg(e,n,i),e.safeEncode=(n,i)=>_g(e,n,i),e.safeDecode=(n,i)=>$g(e,n,i),e.safeEncodeAsync=async(n,i)=>Sg(e,n,i),e.safeDecodeAsync=async(n,i)=>Eg(e,n,i),Xa(e,"ZodType",{check(...n){let i=this.def;return this.clone(ee.mergeDefs(i,{checks:[...i.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,i){return qt(this,n,i)},brand(){return this},register(n,i){return n.add(this,i),this},refine(n,i){return this.check(bv(n,i))},superRefine(n,i){return this.check(yv(n,i))},overwrite(n){return this.check(Dr(n))},optional(){return Ja(this)},exactOptional(){return Qg(this)},nullable(){return Ya(this)},nullish(){return Ja(Ya(this))},nonoptional(n){return ov(this,n)},array(){return ts(this)},or(n){return uu([this,n])},and(n){return Bg(this,n)},transform(n){return Zc(this,pu(n))},default(n){return rv(this,n)},prefault(n){return iv(this,n)},catch(n){return lv(this,n)},pipe(n){return Zc(this,n)},readonly(){return pv(this)},describe(n){let i=this.clone();return Dt.add(i,{description:n}),i},meta(...n){if(n.length===0)return Dt.get(this);let i=this.clone();return Dt.add(i,n[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Dt.get(e)?.description},configurable:!0}),e)),Hc=S("_ZodString",(e,t)=>{vi.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Ih(e,i,r,o);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Xa(e,"_ZodString",{regex(...i){return this.check(mo(...i))},includes(...i){return this.check(go(...i))},startsWith(...i){return this.check(vo(...i))},endsWith(...i){return this.check(bo(...i))},min(...i){return this.check(bn(...i))},max(...i){return this.check(yi(...i))},length(...i){return this.check(xi(...i))},nonempty(...i){return this.check(bn(1,...i))},lowercase(i){return this.check(fo(i))},uppercase(i){return this.check(ho(i))},trim(){return this.check(wo())},normalize(...i){return this.check(xo(...i))},toLowerCase(){return this.check(ko())},toUpperCase(){return this.check(_o())},slugify(){return this.check($o())}})}),Co=S("ZodString",(e,t)=>{vi.init(e,t),Hc.init(e,t),e.email=n=>e.check(sc(Kc,n)),e.url=n=>e.check(Fa(Qa,n)),e.jwt=n=>e.check(Ec(su,n)),e.emoji=n=>e.check(pc(Wc,n)),e.guid=n=>e.check(Va(qa,n)),e.uuid=n=>e.check(lc(Kr,n)),e.uuidv4=n=>e.check(cc(Kr,n)),e.uuidv6=n=>e.check(uc(Kr,n)),e.uuidv7=n=>e.check(dc(Kr,n)),e.nanoid=n=>e.check(mc(Gc,n)),e.guid=n=>e.check(Va(qa,n)),e.cuid=n=>e.check(fc(qc,n)),e.cuid2=n=>e.check(hc(Jc,n)),e.ulid=n=>e.check(gc(Yc,n)),e.base64=n=>e.check(_c(iu,n)),e.base64url=n=>e.check($c(ou,n)),e.xid=n=>e.check(vc(Xc,n)),e.ksuid=n=>e.check(bc(Qc,n)),e.ipv4=n=>e.check(yc(eu,n)),e.ipv6=n=>e.check(xc(tu,n)),e.cidrv4=n=>e.check(wc(ru,n)),e.cidrv6=n=>e.check(kc(nu,n)),e.e164=n=>e.check(Sc(au,n)),e.datetime=n=>e.check(ug(n)),e.date=n=>e.check(dg(n)),e.time=n=>e.check(pg(n)),e.duration=n=>e.check(mg(n))});ot=S("ZodStringFormat",(e,t)=>{it.init(e,t),Hc.init(e,t)}),Kc=S("ZodEmail",(e,t)=>{Em.init(e,t),ot.init(e,t)});qa=S("ZodGUID",(e,t)=>{$m.init(e,t),ot.init(e,t)});Kr=S("ZodUUID",(e,t)=>{Sm.init(e,t),ot.init(e,t)});Qa=S("ZodURL",(e,t)=>{Im.init(e,t),ot.init(e,t)});Wc=S("ZodEmoji",(e,t)=>{Tm.init(e,t),ot.init(e,t)});Gc=S("ZodNanoID",(e,t)=>{zm.init(e,t),ot.init(e,t)});qc=S("ZodCUID",(e,t)=>{Cm.init(e,t),ot.init(e,t)});Jc=S("ZodCUID2",(e,t)=>{Nm.init(e,t),ot.init(e,t)});Yc=S("ZodULID",(e,t)=>{Om.init(e,t),ot.init(e,t)});Xc=S("ZodXID",(e,t)=>{Am.init(e,t),ot.init(e,t)});Qc=S("ZodKSUID",(e,t)=>{Dm.init(e,t),ot.init(e,t)});eu=S("ZodIPv4",(e,t)=>{jm.init(e,t),ot.init(e,t)});Tg=S("ZodMAC",(e,t)=>{Vm.init(e,t),ot.init(e,t)});tu=S("ZodIPv6",(e,t)=>{Lm.init(e,t),ot.init(e,t)});ru=S("ZodCIDRv4",(e,t)=>{Fm.init(e,t),ot.init(e,t)});nu=S("ZodCIDRv6",(e,t)=>{Bm.init(e,t),ot.init(e,t)});iu=S("ZodBase64",(e,t)=>{Hm.init(e,t),ot.init(e,t)});ou=S("ZodBase64URL",(e,t)=>{Km.init(e,t),ot.init(e,t)});au=S("ZodE164",(e,t)=>{Wm.init(e,t),ot.init(e,t)});su=S("ZodJWT",(e,t)=>{Gm.init(e,t),ot.init(e,t)});No=S("ZodCustomStringFormat",(e,t)=>{qm.init(e,t),ot.init(e,t)});Oo=S("ZodNumber",(e,t)=>{Yl.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Th(e,i,r,o),Xa(e,"ZodNumber",{gt(i,r){return this.check(Zr(i,r))},gte(i,r){return this.check(Yt(i,r))},min(i,r){return this.check(Yt(i,r))},lt(i,r){return this.check(Br(i,r))},lte(i,r){return this.check(pr(i,r))},max(i,r){return this.check(pr(i,r))},int(i){return this.check(Bc(i))},safe(i){return this.check(Bc(i))},positive(i){return this.check(Zr(0,i))},nonnegative(i){return this.check(Yt(0,i))},negative(i){return this.check(Br(0,i))},nonpositive(i){return this.check(pr(0,i))},multipleOf(i,r){return this.check(Vn(i,r))},step(i,r){return this.check(Vn(i,r))},finite(){return this}});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=!0,e.format=n.format??null});ki=S("ZodNumberFormat",(e,t)=>{Jm.init(e,t),Oo.init(e,t)});Ao=S("ZodBoolean",(e,t)=>{Pa.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zh(e,n,i,r)});Do=S("ZodBigInt",(e,t)=>{Xl.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Ch(e,i,r,o),e.gte=(i,r)=>e.check(Yt(i,r)),e.min=(i,r)=>e.check(Yt(i,r)),e.gt=(i,r)=>e.check(Zr(i,r)),e.gte=(i,r)=>e.check(Yt(i,r)),e.min=(i,r)=>e.check(Yt(i,r)),e.lt=(i,r)=>e.check(Br(i,r)),e.lte=(i,r)=>e.check(pr(i,r)),e.max=(i,r)=>e.check(pr(i,r)),e.positive=i=>e.check(Zr(BigInt(0),i)),e.negative=i=>e.check(Br(BigInt(0),i)),e.nonpositive=i=>e.check(pr(BigInt(0),i)),e.nonnegative=i=>e.check(Yt(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(Vn(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});lu=S("ZodBigIntFormat",(e,t)=>{Ym.init(e,t),Do.init(e,t)});Ng=S("ZodSymbol",(e,t)=>{Xm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Nh(e,n,i,r)});Og=S("ZodUndefined",(e,t)=>{Qm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ah(e,n,i,r)});Ag=S("ZodNull",(e,t)=>{ef.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Oh(e,n,i,r)});Pg=S("ZodAny",(e,t)=>{tf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Rh(e,n,i,r)});Rg=S("ZodUnknown",(e,t)=>{rf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Mh(e,n,i,r)});Mg=S("ZodNever",(e,t)=>{nf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ph(e,n,i,r)});Ug=S("ZodVoid",(e,t)=>{of.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dh(e,n,i,r)});es=S("ZodDate",(e,t)=>{af.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Uh(e,i,r,o),e.min=(i,r)=>e.check(Yt(i,r)),e.max=(i,r)=>e.check(pr(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});jg=S("ZodArray",(e,t)=>{sf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Jh(e,n,i,r),e.element=t.element,Xa(e,"ZodArray",{min(n,i){return this.check(bn(n,i))},nonempty(n){return this.check(bn(1,n))},max(n,i){return this.check(yi(n,i))},length(n,i){return this.check(xi(n,i))},unwrap(){return this.element}})});rs=S("ZodObject",(e,t)=>{lf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Yh(e,n,i,r),ee.defineLazy(e,"shape",()=>t.shape),Xa(e,"ZodObject",{keyof(){return du(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:wi()})},loose(){return this.clone({...this._zod.def,catchall:wi()})},strict(){return this.clone({...this._zod.def,catchall:cu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return ee.extend(this,n)},safeExtend(n){return ee.safeExtend(this,n)},merge(n){return ee.merge(this,n)},pick(n){return ee.pick(this,n)},omit(n){return ee.omit(this,n)},partial(...n){return ee.partial(mu,this,n[0])},required(...n){return ee.required(fu,this,n[0])}})});ns=S("ZodUnion",(e,t)=>{Ra.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ac(e,n,i,r),e.options=t.options});Lg=S("ZodXor",(e,t)=>{ns.init(e,t),cf.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ac(e,n,i,r),e.options=t.options});Vg=S("ZodDiscriminatedUnion",(e,t)=>{ns.init(e,t),uf.init(e,t)});Fg=S("ZodIntersection",(e,t)=>{df.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Xh(e,n,i,r)});Zg=S("ZodTuple",(e,t)=>{Ql.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Qh(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});To=S("ZodRecord",(e,t)=>{pf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>eg(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});Wg=S("ZodMap",(e,t)=>{mf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Gh(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Hr(...n)),e.nonempty=n=>e.check(Hr(1,n)),e.max=(...n)=>e.check(Fn(...n)),e.size=(...n)=>e.check(bi(...n))});Gg=S("ZodSet",(e,t)=>{ff.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qh(e,n,i,r),e.min=(...n)=>e.check(Hr(...n)),e.nonempty=n=>e.check(Hr(1,n)),e.max=(...n)=>e.check(Fn(...n)),e.size=(...n)=>e.check(bi(...n))});zo=S("ZodEnum",(e,t)=>{hf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>jh(e,i,r,o),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 zo({...t,checks:[],...ee.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 zo({...t,checks:[],...ee.normalizeParams(r),entries:o})}});qg=S("ZodLiteral",(e,t)=>{gf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Lh(e,n,i,r),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]}})});Jg=S("ZodFile",(e,t)=>{vf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Bh(e,n,i,r),e.min=(n,i)=>e.check(Hr(n,i)),e.max=(n,i)=>e.check(Fn(n,i)),e.mime=(n,i)=>e.check(yo(Array.isArray(n)?n:[n],i))});Yg=S("ZodTransform",(e,t)=>{bf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Wh(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Rn(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(ee.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(ee.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});mu=S("ZodOptional",(e,t)=>{ec.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dc(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Xg=S("ZodExactOptional",(e,t)=>{yf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dc(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});ev=S("ZodNullable",(e,t)=>{xf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});tv=S("ZodDefault",(e,t)=>{wf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ng(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});nv=S("ZodPrefault",(e,t)=>{kf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ig(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});fu=S("ZodNonOptional",(e,t)=>{_f.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>rg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});av=S("ZodSuccess",(e,t)=>{$f.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Zh(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});sv=S("ZodCatch",(e,t)=>{Sf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>og(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});cv=S("ZodNaN",(e,t)=>{Ef.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Vh(e,n,i,r)});is=S("ZodPipe",(e,t)=>{tc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ag(e,n,i,r),e.in=t.in,e.out=t.out});os=S("ZodCodec",(e,t)=>{is.init(e,t),Ma.init(e,t)});uv=S("ZodPreprocess",(e,t)=>{is.init(e,t),If.init(e,t)}),dv=S("ZodReadonly",(e,t)=>{Tf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});mv=S("ZodTemplateLiteral",(e,t)=>{zf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Fh(e,n,i,r)});fv=S("ZodLazy",(e,t)=>{Of.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cg(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});gv=S("ZodPromise",(e,t)=>{Nf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});vv=S("ZodFunction",(e,t)=>{Cf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Kh(e,n,i,r)});as=S("ZodCustom",(e,t)=>{Af.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Hh(e,n,i,r)});p_=_h,m_=$h;h_=(...e)=>Sh({Codec:os,Boolean:Ao,String:Co},...e)});function v4(e){wt({customError:e})}function b4(){return wt().customError}var g4,xv,b_=O(()=>{mr();g4={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"};xv||(xv={})});function x4(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 w4(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 y_(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return pe.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 pe.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=w4(r,t),a=Vt(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===!0&&r.length===1&&r[0]===null)return pe.null();if(r.length===0)return pe.never();if(r.length===1)return pe.literal(r[0]);if(r.every(a=>typeof a=="string"))return pe.enum(r);let o=r.map(a=>pe.literal(a));return o.length<2?o[0]:pe.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return pe.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return y_(a,t)});return r.length===0?pe.never():r.length===1?r[0]:pe.union(r)}if(!n)return pe.any();let i;switch(n){case"string":{let r=pe.string();if(e.format){let o=e.format;o==="email"?r=r.check(pe.email()):o==="uri"||o==="uri-reference"?r=r.check(pe.url()):o==="uuid"||o==="guid"?r=r.check(pe.uuid()):o==="date-time"?r=r.check(pe.iso.datetime()):o==="date"?r=r.check(pe.iso.date()):o==="time"?r=r.check(pe.iso.time()):o==="duration"?r=r.check(pe.iso.duration()):o==="ipv4"?r=r.check(pe.ipv4()):o==="ipv6"?r=r.check(pe.ipv6()):o==="mac"?r=r.check(pe.mac()):o==="cidr"?r=r.check(pe.cidrv4()):o==="cidr-v6"?r=r.check(pe.cidrv6()):o==="base64"?r=r.check(pe.base64()):o==="base64url"?r=r.check(pe.base64url()):o==="e164"?r=r.check(pe.e164()):o==="jwt"?r=r.check(pe.jwt()):o==="emoji"?r=r.check(pe.emoji()):o==="nanoid"?r=r.check(pe.nanoid()):o==="cuid"?r=r.check(pe.cuid()):o==="cuid2"?r=r.check(pe.cuid2()):o==="ulid"?r=r.check(pe.ulid()):o==="xid"?r=r.check(pe.xid()):o==="ksuid"&&(r=r.check(pe.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"?pe.number().int():pe.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===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=pe.boolean();break}case"null":{i=pe.null();break}case"object":{let r={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(o)){let d=Vt(u,t);r[c]=a.has(c)?d:d.optional()}if(e.propertyNames){let c=Vt(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?Vt(e.additionalProperties,t):pe.any();if(Object.keys(r).length===0){i=pe.record(c,u);break}let d=pe.object(r).passthrough(),p=pe.looseRecord(c,u);i=pe.intersection(d,p);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),d=[];for(let m of u){let f=Vt(c[m],t),$=pe.string().regex(new RegExp(m));d.push(pe.looseRecord($,f))}let p=[];if(Object.keys(r).length>0&&p.push(pe.object(r).passthrough()),p.push(...d),p.length===0)i=pe.object({}).passthrough();else if(p.length===1)i=p[0];else{let m=pe.intersection(p[0],p[1]);for(let f=2;f<p.length;f++)m=pe.intersection(m,p[f]);i=m}break}let s=pe.object(r);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(Vt(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=>Vt(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?Vt(o,t):void 0;s?i=pe.tuple(a).rest(s):i=pe.tuple(a),typeof e.minItems=="number"&&(i=i.check(pe.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(pe.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(c=>Vt(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?Vt(e.additionalItems,t):void 0;s?i=pe.tuple(a).rest(s):i=pe.tuple(a),typeof e.minItems=="number"&&(i=i.check(pe.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(pe.maxLength(e.maxItems)))}else if(o!==void 0){let a=Vt(o,t),s=pe.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=pe.array(pe.any());break}default:throw new Error(`Unsupported type: ${n}`)}return i}function Vt(e,t){if(typeof e=="boolean")return e?pe.any():pe.never();let n=y_(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(u=>Vt(u,t)),c=pe.union(s);n=i?pe.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>Vt(u,t)),c=pe.xor(s);n=i?pe.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:pe.any();else{let s=i?n:Vt(e.allOf[0],t),c=i?0:1;for(let u=c;u<e.allOf.length;u++)s=pe.intersection(s,Vt(e.allOf[u],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=pe.nullable(n)),e.readOnly===!0&&(n=pe.readonly(n)),e.default!==void 0&&(n=n.default(e.default));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))y4.has(s)||(r[s]=e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),e.description&&(n=n.describe(e.description)),n}function x_(e,t){if(typeof e=="boolean")return e?pe.any():pe.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=x4(n,t?.defaultTarget),r=n.$defs||n.definitions||{},o={version:i,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Dt};return Vt(n,o)}var pe,y4,w_=O(()=>{La();Uc();Ha();Wa();pe={...Ka,...Mc,iso:Io},y4=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"])});var wv={};Nr(wv,{bigint:()=>S4,boolean:()=>$4,date:()=>E4,number:()=>_4,string:()=>k4});function k4(e){return Ff(Co,e)}function _4(e){return Jf(Oo,e)}function $4(e){return nh(Ao,e)}function S4(e){return oh(Do,e)}function E4(e){return gh(es,e)}var k_=O(()=>{mr();Wa()});var l={};Nr(l,{$brand:()=>cp,$input:()=>Lf,$output:()=>jf,NEVER:()=>lp,TimePrecision:()=>Zf,ZodAny:()=>Pg,ZodArray:()=>jg,ZodBase64:()=>iu,ZodBase64URL:()=>ou,ZodBigInt:()=>Do,ZodBigIntFormat:()=>lu,ZodBoolean:()=>Ao,ZodCIDRv4:()=>ru,ZodCIDRv6:()=>nu,ZodCUID:()=>qc,ZodCUID2:()=>Jc,ZodCatch:()=>sv,ZodCodec:()=>os,ZodCustom:()=>as,ZodCustomStringFormat:()=>No,ZodDate:()=>es,ZodDefault:()=>tv,ZodDiscriminatedUnion:()=>Vg,ZodE164:()=>au,ZodEmail:()=>Kc,ZodEmoji:()=>Wc,ZodEnum:()=>zo,ZodError:()=>f4,ZodExactOptional:()=>Xg,ZodFile:()=>Jg,ZodFirstPartyTypeKind:()=>xv,ZodFunction:()=>vv,ZodGUID:()=>qa,ZodIPv4:()=>eu,ZodIPv6:()=>tu,ZodISODate:()=>Lc,ZodISODateTime:()=>jc,ZodISODuration:()=>Fc,ZodISOTime:()=>Vc,ZodIntersection:()=>Fg,ZodIssueCode:()=>g4,ZodJWT:()=>su,ZodKSUID:()=>Qc,ZodLazy:()=>fv,ZodLiteral:()=>qg,ZodMAC:()=>Tg,ZodMap:()=>Wg,ZodNaN:()=>cv,ZodNanoID:()=>Gc,ZodNever:()=>Mg,ZodNonOptional:()=>fu,ZodNull:()=>Ag,ZodNullable:()=>ev,ZodNumber:()=>Oo,ZodNumberFormat:()=>ki,ZodObject:()=>rs,ZodOptional:()=>mu,ZodPipe:()=>is,ZodPrefault:()=>nv,ZodPreprocess:()=>uv,ZodPromise:()=>gv,ZodReadonly:()=>dv,ZodRealError:()=>lr,ZodRecord:()=>To,ZodSet:()=>Gg,ZodString:()=>Co,ZodStringFormat:()=>ot,ZodSuccess:()=>av,ZodSymbol:()=>Ng,ZodTemplateLiteral:()=>mv,ZodTransform:()=>Yg,ZodTuple:()=>Zg,ZodType:()=>ze,ZodULID:()=>Yc,ZodURL:()=>Qa,ZodUUID:()=>Kr,ZodUndefined:()=>Og,ZodUnion:()=>ns,ZodUnknown:()=>Rg,ZodVoid:()=>Ug,ZodXID:()=>Xc,ZodXor:()=>Lg,_ZodString:()=>Hc,_default:()=>rv,_function:()=>c_,any:()=>Lk,array:()=>ts,base64:()=>_k,base64url:()=>$k,bigint:()=>Pk,boolean:()=>Cg,catch:()=>lv,check:()=>u_,cidrv4:()=>wk,cidrv6:()=>kk,clone:()=>qt,codec:()=>o_,coerce:()=>wv,config:()=>wt,core:()=>yn,cuid:()=>mk,cuid2:()=>fk,custom:()=>d_,date:()=>Fk,decode:()=>xg,decodeAsync:()=>kg,describe:()=>p_,discriminatedUnion:()=>Gk,e164:()=>Sk,email:()=>nk,emoji:()=>dk,encode:()=>yg,encodeAsync:()=>wg,endsWith:()=>bo,enum:()=>du,exactOptional:()=>Qg,file:()=>t_,flattenError:()=>Ca,float32:()=>Nk,float64:()=>Ok,formatError:()=>Na,fromJSONSchema:()=>x_,function:()=>c_,getErrorMap:()=>b4,globalRegistry:()=>Dt,gt:()=>Zr,gte:()=>Yt,guid:()=>ik,hash:()=>Ck,hex:()=>zk,hostname:()=>Tk,httpUrl:()=>uk,includes:()=>go,instanceof:()=>f_,int:()=>Bc,int32:()=>Ak,int64:()=>Rk,intersection:()=>Bg,invertCodec:()=>a_,ipv4:()=>bk,ipv6:()=>xk,iso:()=>Io,json:()=>g_,jwt:()=>Ek,keyof:()=>Bk,ksuid:()=>vk,lazy:()=>hv,length:()=>xi,literal:()=>e_,locales:()=>ja,looseObject:()=>Kk,looseRecord:()=>Jk,lowercase:()=>fo,lt:()=>Br,lte:()=>pr,mac:()=>yk,map:()=>Yk,maxLength:()=>yi,maxSize:()=>Fn,meta:()=>m_,mime:()=>yo,minLength:()=>bn,minSize:()=>Hr,multipleOf:()=>Vn,nan:()=>i_,nanoid:()=>pk,nativeEnum:()=>Qk,negative:()=>Tc,never:()=>cu,nonnegative:()=>Cc,nonoptional:()=>ov,nonpositive:()=>zc,normalize:()=>xo,null:()=>Dg,nullable:()=>Ya,nullish:()=>r_,number:()=>zg,object:()=>Zk,optional:()=>Ja,overwrite:()=>Dr,parse:()=>hg,parseAsync:()=>gg,partialRecord:()=>qk,pipe:()=>Zc,positive:()=>Ic,prefault:()=>iv,preprocess:()=>v_,prettifyError:()=>kp,promise:()=>l_,property:()=>Nc,readonly:()=>pv,record:()=>Kg,refine:()=>bv,regex:()=>mo,regexes:()=>dr,registry:()=>ac,safeDecode:()=>$g,safeDecodeAsync:()=>Eg,safeEncode:()=>_g,safeEncodeAsync:()=>Sg,safeParse:()=>vg,safeParseAsync:()=>bg,set:()=>Xk,setErrorMap:()=>v4,size:()=>bi,slugify:()=>$o,startsWith:()=>vo,strictObject:()=>Hk,string:()=>Ga,stringFormat:()=>Ik,stringbool:()=>h_,success:()=>n_,superRefine:()=>yv,symbol:()=>Uk,templateLiteral:()=>s_,toJSONSchema:()=>Pc,toLowerCase:()=>ko,toUpperCase:()=>_o,transform:()=>pu,treeifyError:()=>wp,trim:()=>wo,tuple:()=>Hg,uint32:()=>Dk,uint64:()=>Mk,ulid:()=>hk,undefined:()=>jk,union:()=>uu,unknown:()=>wi,uppercase:()=>ho,url:()=>ck,util:()=>ee,uuid:()=>ok,uuidv4:()=>ak,uuidv6:()=>sk,uuidv7:()=>lk,void:()=>Vk,xid:()=>gk,xor:()=>Wk});var kv=O(()=>{mr();Wa();Uc();fg();Ig();b_();mr();Pf();mr();Za();w_();Uf();Ha();Ha();k_();wt(rc())});var Oe=O(()=>{kv();kv()});var I4,__,_v,$v=O(()=>{"use strict";Oe();I4=l.enum(["linkedin","x","facebook","tiktok","youtube","github","instagram","threads","email","phone","website","calendar"]),__=l.object({platform:I4,handle:l.string(),url:l.string().optional()}),_v=l.preprocess(e=>Array.isArray(e)?e.filter(t=>t&&typeof t=="object"&&t.platform&&t.handle):e,l.array(__))});var $_,_i,S_,hu,E_,T4,I_,T_,z_,z4,bt,C_,N_,O_,A_,D_,P_,C4,Kn=O(()=>{"use strict";Oe();$_=["image","audio","video","document"],_i=l.enum($_),S_=["avatar","cover","general"],hu=l.enum(S_),E_=l.enum(["processing","active","failed","deleted"]),T4=l.enum(["low","standard","high"]),I_=l.enum(["jpg","jpeg","png","gif","webp","svg"]),T_=l.enum(["mp4","webm","ogg","mov","avi"]),z_=l.enum(["mp3","wav","ogg","opus","aac","flac","webm","m4a","mp4"]),z4=l.object({mediaId:l.string(),userId:l.string(),orgId:l.string(),botId:l.string().nullable().optional(),filename:l.string(),mimeType:l.string(),size:l.number(),src:l.string(),alt:l.string().optional(),context:hu.default("general"),status:E_.default("processing"),quality:T4.default("standard"),createdAt:l.string().optional(),updatedAt:l.string().optional()}),bt=z4.extend({type:_i.optional(),mediaType:_i.optional(),className:l.string().optional(),width:l.number().optional(),height:l.number().optional(),duration:l.number().optional(),blurhash:l.string().optional()}).partial(),C_=l.object({duration:l.number().optional(),thumbnail:l.string().optional(),autoplay:l.boolean().optional(),loop:l.boolean().optional(),muted:l.boolean().optional(),controls:l.boolean().optional()}),N_=l.object({duration:l.number().optional(),autoplay:l.boolean().optional(),loop:l.boolean().optional(),muted:l.boolean().optional(),controls:l.boolean().optional()}),O_=bt.extend({mediaType:l.literal("image"),imageFormat:I_.optional()}),A_=bt.extend({mediaType:l.literal("video"),videoFormat:T_.optional(),video:C_.optional()}),D_=bt.extend({mediaType:l.literal("audio"),audioFormat:z_.optional(),audio:N_.optional()}),P_=bt.extend({mediaType:l.literal("document")}),C4=l.discriminatedUnion("mediaType",[O_,A_,D_,P_])});var gu,Sv=O(()=>{"use strict";Oe();gu=l.enum(["xxs","xs","sm","md","lg","xl"])});var Ev,Iv,ss,N4,Tv=O(()=>{"use strict";Oe();Kn();Sv();Ev=l.enum(["primary","default","overlay","red","green","indigo","orange"]),Iv=l.enum(["ghost","link","outline","solid"]),ss=l.object({key:l.string().optional(),label:l.string().optional(),href:l.string().optional(),size:gu.optional(),theme:Ev.optional(),design:Iv.optional(),icon:l.union([l.string(),bt]).optional(),iconAfter:l.union([l.string(),bt]).optional(),rounding:l.enum(["full","md","lg"]).optional(),loading:l.boolean().optional(),disabled:l.boolean().optional(),tooltip:l.string().optional(),onClick:l.any().optional(),testId:l.string().optional(),target:l.enum(["_blank","_self"]).optional(),type:l.enum(["button","submit","reset"]).optional()}),N4=l.object({buttons:l.array(ss).optional(),size:gu.optional(),theme:Ev.optional(),design:Iv.optional()})});var vu,zv=O(()=>{"use strict";vu="$49/month"});var O4,R_,A4,ls,Cv,bu=O(()=>{"use strict";Oe();zv();O4=l.enum(["account","error"]),R_=["billing_no_plan","billing_seat_limit","billing_past_due","billing_runaway_cap","billing_budget_reached","billing_demo_spent","bot_deleted","computer_not_deployed","computer_boot_failed","computer_unreachable","computer_wake_timeout","stream_timeout","stream_disconnect","empty_stream","tool_protocol","rate_limit"],A4=l.enum(R_),ls=l.object({bucket:O4,code:A4,title:l.string(),help:l.string().optional(),actionLabel:l.string(),actionUrl:l.string()}),Cv={billing_no_plan:{bucket:"account",title:"Billing needed",help:`Add a payment method to turn live replies back on. Plans start at ${vu} per active assistant, cancel anytime.`,actionLabel:"Open billing",oneLine:`The workspace needs a payment method before this assistant can reply; plans start at ${vu} per active assistant.`},billing_seat_limit:{bucket:"account",title:"Active assistant limit reached",help:"Your active assistants are all in use. Put one assistant to sleep or ask us to raise the ceiling.",actionLabel:"Open billing",oneLine:"The workspace has no unused active-assistant slots; one assistant must sleep or the limit must be raised."},billing_past_due:{bucket:"account",title:"Assistants paused",help:"Payment is overdue. Fix it and we\u2019ll bring your assistants back online.",actionLabel:"Fix payment",oneLine:"The workspace payment is overdue; its owner must fix it before assistants come back online."},billing_runaway_cap:{bucket:"account",title:"Usage limit reached",help:"Your workspace reached its usage limit. Review billing or contact support to keep your assistant running.",actionLabel:"Contact support",oneLine:"The workspace reached its usage limit; its owner can review billing or contact support."},billing_budget_reached:{bucket:"account",title:"Not enough credits",help:"Your workspace needs more included credits for another reply. Upgrade an assistant or wait for the next billing period.",actionLabel:"Review billing",oneLine:"The workspace needs more included credits; its owner can upgrade an assistant or wait for the next billing period."},billing_demo_spent:{bucket:"account",title:"Demo used up",help:"Your assistant has used the free demo. Starting a trial keeps it running around the clock, and is free for ten days.",actionLabel:"Start free trial",oneLine:"This workspace has used its free demo; starting a trial keeps the assistant running and is free for ten days."},bot_deleted:{bucket:"error",title:"Assistant deleted",help:"This chat is still here, but the assistant can no longer reply.",actionLabel:"",oneLine:"This assistant was deleted. The chat history remains, but it can no longer reply."},computer_not_deployed:{bucket:"error",title:"Assistant asleep",help:"Open the assistant profile to wake it up before chatting.",actionLabel:"Open assistant",oneLine:"This assistant needs to wake up before it can reply."},computer_boot_failed:{bucket:"error",title:"Couldn't wake up",help:"Open the assistant profile to restart it or check what failed.",actionLabel:"Open assistant",oneLine:"This assistant tried to wake up but hit an error."},computer_unreachable:{bucket:"error",title:"Not responding",help:"Open the assistant profile to check status or restart it.",actionLabel:"Open assistant",oneLine:"This assistant is not responding right now; its owner can check its status."},computer_wake_timeout:{bucket:"error",title:"Still waking",help:"Open the assistant profile to check status, or wait a minute and try again.",actionLabel:"Open assistant",oneLine:"This assistant is taking too long to wake up."},stream_timeout:{bucket:"error",title:"Reply too slow",help:"Your assistant took too long to start replying. Try your message again.",actionLabel:"Try again",oneLine:"This assistant took too long to start replying; try the message again."},stream_disconnect:{bucket:"error",title:"Connection lost",help:"The connection dropped while your assistant was replying. Send your message again to retry.",actionLabel:"Try again",oneLine:"The connection dropped while this assistant was replying; try the message again."},empty_stream:{bucket:"error",title:"Empty reply",help:"Your assistant could not generate a reply. Try your message again.",actionLabel:"Try again",oneLine:"This assistant did not return a reply; try the message again."},tool_protocol:{bucket:"error",title:"Tool call failed",help:"Your assistant tried to use a tool in a format PageLines could not run. Try the message again.",actionLabel:"Try again",oneLine:"This assistant tried to use a tool in a format PageLines could not run; try the message again."},rate_limit:{bucket:"error",title:"Slow down",help:"Too many messages at once. Wait a moment, then send your message again.",actionLabel:"Try again",oneLine:"Too many messages arrived at once; wait a moment and try again."}}});function xu(e){if(Pv(e.operation))return"changing";if(e.blocker?.bucket==="account"&&e.lifecycle!=="running")return"asleep";if(e.operation?.status==="failed")return"stuck";switch(e.lifecycle){case"running":return"awake";case"stopped":return"asleep";case"starting":case"stopping":return"changing";case"degraded":case"unreachable":case"error":return"stuck";case"unknown":return}}function wu(e,t){let n=e.operation,i=D4[e.lifecycle]??"Unknown",r=Dv[e.lifecycle]??"grey",o=n?P4[n.kind]??"Working":void 0,a=o?n?.status==="failed"?`${o} failed`:o:i,s=n?n.status==="failed"?"red":"amber":r,c=`${t} \xB7 ${a}`;return{...e,color:s,label:a,tooltip:c}}function Pv(e){return e?.status==="running"||e?.status==="coalesced"}var cs,Nv,Ov,Av,Po,$i,Dv,M_,yu,D4,P4,U_,Wn=O(()=>{"use strict";Oe();bu();cs=l.enum(["unknown","stopped","starting","running","degraded","unreachable","stopping","error"]),Nv=l.enum(["wake","sleep","restart","rebuild","config_apply","setup"]),Ov=l.enum(["running","coalesced","failed"]),Av=l.object({kind:Nv,status:Ov,startedAt:l.string().datetime(),detail:l.string().optional()}).strict(),Po=l.object({lifecycle:cs,changedAt:l.string().datetime().optional(),detail:l.string().optional(),blocker:ls.optional(),operation:Av.optional()}).strict(),$i=Object.freeze({lifecycle:"unknown"}),Dv={running:"green",starting:"amber",stopping:"amber",degraded:"amber",unreachable:"red",error:"red",stopped:"grey",unknown:"grey"},M_=l.enum(["awake","asleep","changing","stuck"]),yu={awake:"Awake",asleep:"Asleep",changing:"Changing",stuck:"Needs attention"};D4={running:"Online",starting:"Waking up",stopping:"Stopping",degraded:"Slow",unreachable:"Unreachable",error:"Error",stopped:"Asleep",unknown:"Checking"},P4={wake:"Waking up",sleep:"Stopping",restart:"Restarting",rebuild:"Rebuilding",config_apply:"Applying config",setup:"Setting up"};U_=l.enum(["wake","sleep","restart","rebuild"])});var j_,R4,L_=O(()=>{"use strict";Oe();Wn();Tv();Kn();j_=l.object({key:l.string().optional(),id:l.string().optional(),label:l.string().optional(),srLabel:l.string().optional(),subLabel:l.string().optional(),value:l.union([l.string(),l.number()]).optional(),description:l.string().optional(),state:M_.optional(),count:l.number().optional(),className:l.string().optional(),media:bt.optional(),subMedia:bt.optional(),cover:bt.optional(),icon:bt.optional(),iconAfter:bt.optional(),subIcon:l.string().optional(),href:l.string().optional(),target:l.enum(["_self","_blank"]).optional(),onClick:l.any().optional(),theme:l.enum(["primary","default"]).optional(),isActive:l.boolean().optional(),isDisabled:l.boolean().optional(),isHidden:l.boolean().optional(),priority:l.number().optional(),testId:l.string().optional(),items:l.array(l.any()).optional(),badges:l.array(ss).optional(),meta:l.array(ss).optional(),menuItems:l.array(l.any()).optional()}),R4=l.object({title:l.string().optional(),description:l.string().optional(),items:l.array(j_).optional()})});var V_=O(()=>{"use strict"});var us,ku,Rv,F_,M4,U4,j4,L4,V4,F4,_u,B4,B_,Mv,ds=O(()=>{"use strict";Oe();$v();Kn();us=l.string().trim().transform(e=>{if(!e.includes("/"))return e;try{let t=new URL(/^https?:\/\//i.test(e)?e:`https://${e}`),[n,i]=t.pathname.split("/").filter(Boolean),r=t.hostname.toLowerCase();if((r==="linkedin.com"||r.endsWith(".linkedin.com"))&&n?.toLowerCase()==="in"&&i)return i}catch{}return e}).pipe(l.string().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/,"Use a LinkedIn username or profile URL")),ku=l.string().trim().transform((e,t)=>{try{let n=new URL(/^https?:\/\//i.test(e)?e:`https://${e}`),i=n.hostname.toLowerCase().replace(/^www\./,""),r=n.pathname.split("/").filter(Boolean)[0];if(!r||!["x.com","twitter.com","facebook.com"].includes(i))throw new Error("unsupported profile");return i==="twitter.com"?`https://x.com/${r}`:`https://${i}/${r}`}catch{return t.addIssue({code:"custom",message:"Use a LinkedIn username or an X or Facebook profile URL"}),l.NEVER}}),Rv=l.string().trim().toLowerCase().pipe(l.email()),F_=l.object({lastBotId:l.string().nullable().optional(),userId:l.string(),email:l.string().optional(),handle:l.string().optional(),fullName:l.string().optional(),bio:l.string().optional(),linkedinUsername:us.optional(),avatarId:l.string().optional(),avatar:bt.optional(),isEmailVerified:l.boolean().optional(),primaryOrgId:l.string().optional(),lastActiveOrgId:l.string().optional(),onboarding:l.any().optional(),location:l.string().optional(),geo:l.any().optional(),systemRole:l.string().optional(),status:l.string().optional(),lastSeenAt:l.string().optional(),createdAt:l.string().optional(),updatedAt:l.string().optional(),onboarded:l.boolean().optional()}),M4=l.object({lastBotId:l.string().nullable().optional(),name:l.string().min(1).max(100).optional(),bio:l.string().max(500).nullable().optional(),linkedinUsername:us.nullable().optional(),profileUrl:ku.nullable().optional(),avatar:l.object({src:l.string(),mediaId:l.string()}).optional(),primaryOrgId:l.string().optional(),lastActiveOrgId:l.string().optional(),onboarding:l.any().optional()}).partial(),U4=l.object({email:Rv}),j4=l.object({email:Rv,code:l.string().min(6,"Verification code is required"),timezone:l.string().max(64).optional()}),L4=l.object({newEmail:Rv}),V4=l.object({credential:l.string().optional(),code:l.string().optional(),timezone:l.string().max(64).optional(),source:l.enum(["web","ios"]).optional()}).refine(e=>e.credential||e.code,{message:"Either credential or code must be provided"}),F4=l.object({identityToken:l.string().min(1),fullName:l.string().optional(),timezone:l.string().max(64).optional()}),_u=l.object({orgId:l.string().optional(),handle:l.string().optional(),name:l.string().optional(),email:l.string().nullable().optional(),website:l.string().url().nullable().optional(),summary:l.string().nullable().optional(),avatarId:l.string().nullable().optional(),avatar:bt.optional(),coverId:l.string().nullable().optional(),cover:bt.optional(),accounts:_v.nullable().optional(),ownerId:l.string().optional(),isPersonal:l.boolean().optional(),stripeCustomerIdTest:l.string().nullable().optional(),stripeCustomerIdLive:l.string().nullable().optional(),maxUsers:l.number().optional(),timezone:l.string().nullable().optional(),apiKey:l.string().nullable().optional(),syncedPlan:l.string().nullable().optional(),syncedBillingStatus:l.string().nullable().optional(),firstPaidAt:l.string().nullable().optional(),entitlementDeleteAt:l.string().nullable().optional(),billingLastSyncedAt:l.string().nullable().optional(),syncedPeriodStart:l.string().nullable().optional(),syncedPeriodEnd:l.string().nullable().optional(),onboarding:l.any().optional(),status:l.string().optional(),createdAt:l.string().optional(),updatedAt:l.string().optional()}),B4=l.object({completedAt:l.string().datetime().optional(),setupBy:l.string().optional(),billingSetup:l.boolean().optional(),teamInvitesSetup:l.boolean().optional(),brandingSetup:l.boolean().optional(),domainsSetup:l.boolean().optional()}),B_=l.object({membershipId:l.string(),orgId:l.string(),name:l.string(),handle:l.string(),avatarId:l.string().optional(),avatar:bt.optional(),coverId:l.string().optional(),cover:bt.optional(),role:l.enum(["owner","admin","member","observer"]),inviterName:l.string().optional(),memberCount:l.number().optional(),hasComputer:l.boolean().optional(),computerCount:l.number().optional(),joinedAt:l.string().datetime(),onboarding:B4.optional()}),Mv=F_.extend({orgs:l.array(B_).optional()})});var Z_=O(()=>{"use strict";$v();Tv();L_();Sv();V_();Kn();ds()});function Z4(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return Math.abs(t)}function H4(e){let t=e?Z4(e):0;return H_[t%H_.length]}function Gn(e){let t=e?e[0].toUpperCase():"?",[n,i]=H4(e),r=['<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80">','<defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1">',`<stop offset="0%" stop-color="${n}"/>`,`<stop offset="100%" stop-color="${i}"/>`,"</linearGradient></defs>",'<rect width="80" height="80" fill="url(#g)"/>',`<text x="40" y="40" text-anchor="middle" dominant-baseline="central" fill="white" font-family="system-ui,-apple-system,sans-serif" font-size="36" font-weight="600">${t}</text>`,"</svg>"].join("");return`data:image/svg+xml;base64,${btoa(r)}`}var H_,$u=O(()=>{"use strict";H_=[["#6366f1","#8b5cf6"],["#3b82f6","#06b6d4"],["#10b981","#34d399"],["#f59e0b","#f97316"],["#ef4444","#f97316"],["#ec4899","#8b5cf6"],["#14b8a6","#3b82f6"],["#8b5cf6","#ec4899"]]});var K_=O(()=>{"use strict"});var W_=O(()=>{"use strict"});var G_=O(()=>{"use strict"});function W4(e){return e.trim().toUpperCase().replace(/\s+/g," ")}function ps(e){let t=W4(e);return t.length<=64&&K4.has(t)}var q_,K4,J_=O(()=>{"use strict";q_=["[SILENT]","SILENT","NO_REPLY","NO REPLY","NO-OP","NOOP","NO_OP","NO OP","[NO-OP]","[NOOP]","[NO_OP]","[NO OP]","HEARTBEAT_OK"],K4=new Set(q_)});var Uv,Y_=O(()=>{"use strict";Uv={wake:3e5,bootGrace:42e4,stop:3e4}});var X_=O(()=>{"use strict"});var Q_=O(()=>{"use strict"});var e1=O(()=>{"use strict"});var Ro,Su=O(()=>{"use strict";Oe();Ro=l.enum(["active","stopped"])});var jv,Mo,Eu=O(()=>{"use strict";Oe();jv=["COMPUTER_BOOT_FAILED","COMPUTER_CREATE_FAILED","BOT_DELETED","COMPUTER_DELETE_FAILED","COMPUTER_INACTIVE","COMPUTER_LIMIT","COMPUTER_NOT_FOUND","BOT_NOT_FOUND","COMPUTER_NOT_DEPLOYED","BOT_TOKENS_MISSING","COMPUTER_UNREACHABLE","COMPUTER_UPDATE_FAILED","COMPUTER_WAKE_TIMEOUT","ALREADY_MEMBER","ATTACHMENT_TYPE_UNSUPPORTED","AUTH_ACCOUNT_NOT_FOUND","AUTH_BOT_BLOCKED","AUTH_DISPOSABLE_EMAIL","AUTH_EMAIL_IN_USE","AUTH_INVALID","AUTH_INVALID_CODE","AUTH_INVALID_HANDOFF","AUTH_LOCKED_OUT","AUTH_MISSING","AUTH_PROVIDER_FAILED","AUTH_PROVIDER_NOT_CONFIGURED","AUTH_RATE_LIMITED","AUTH_REVOKED","AUTH_TURNSTILE_MISSING","AUTH_UNKNOWN","AUTH_WRONG_TYPE","ROUTINE_CHANNEL_UNAVAILABLE","ROUTINE_PURPOSE_REQUIRED","BOT_REPLY_FAILED","BILLING_BUDGET_REACHED","BILLING_DEMO_SPENT","BILLING_NO_PLAN","BILLING_PAST_DUE","BILLING_RUNAWAY_CAP","BILLING_SEAT_LIMIT","CHECKOUT_FAILED","CONFIRMATION_REQUIRED","CREATE_FAILED","CREDIT_LIMIT","DELETE_FAILED","DUPLICATE_INVITE","EMAIL_DELIVERY_FAILED","EMAIL_FAILED","EMAIL_MISMATCH","EMAIL_RATE_LIMITED","EMAIL_REASON_NOT_ELIGIBLE","EMPTY_STREAM","EMPTY_PATCH","ENV_VAR_CONFLICT","ENV_VAR_RESERVED","EXTENSION_INACTIVE","FORBIDDEN","HANDLE_TAKEN","IMAGE_GENERATION_FAILED","IMAGE_GENERATION_UNCONFIGURED","INTERNAL_ERROR","INVALID_FILE","INVALID_PRIMARY_CHANNEL","UNKNOWN_ROUTINE_CHANNEL","INVITE_CONFLICT","INVITE_EXPIRED","INVITE_INVALID","MCP_NOT_AVAILABLE","MCP_NOT_CONFIGURED","MEDIA_NOT_FOUND","MEDIA_SERVER_UNAVAILABLE","MEDIA_UPLOAD_FAILED","MEMORY_NOT_FOUND","MISSING_IDEMPOTENCY_KEY","NETWORK_ERROR","NO_WORKSPACE","NOT_A_MEMBER","NOT_AUTHORIZED","NOT_FOUND","ORG_NOT_FOUND","OVERAGE_CAP","OWNER_LOCK","PAIRING_VERIFY_FAILED","PAYMENT_FAILED","PLAN_LIMIT","PROVISIONER_UNAVAILABLE","RATE_LIMIT","RATE_LIMITED","REBUILD_FAILED","RESTART_FAILED","SEND_FAILED","STOP_FAILED","STREAM_DISCONNECT","STREAM_TIMEOUT","STRIPE_LOAD","TIMEOUT","TOKEN_ERROR","TOOL_PROTOCOL","TRIAL_ENDED","TURN_ACTIVE","UPLOAD_FAILED","VALIDATION_ERROR","VOICE_UNAVAILABLE","WAKE_FAILED"],Mo=l.enum(jv)});var Lv,t1,r1=O(()=>{"use strict";Oe();bu();Eu();Lv=l.enum(["notFound","busy","rateLimited","timeout","invalidConfig","transient","fatal"]),t1=l.object({ok:l.literal(!1),error:l.string(),code:Mo.optional(),issue:ls.optional(),providerErrorKind:Lv.optional()})});var Vv,ms,Fv,Iu=O(()=>{"use strict";Oe();Vv=l.object({kind:l.enum(["icon","favicon","service"]),icon:l.string().min(1).optional(),domain:l.string().min(1).optional(),serviceKey:l.string().min(1).optional()}).strict(),ms=l.object({activityId:l.string().min(1),turnId:l.string().min(1),status:l.enum(["started","completed","failed"]),label:l.string().trim().min(1),kind:l.enum(["search","file","image","service","routine","handoff","other"]),toolName:l.string().min(1).optional(),serviceKey:l.string().min(1).optional(),startedAt:l.string().datetime().optional(),endedAt:l.string().datetime().optional(),durationMs:l.number().int().nonnegative().optional(),note:l.string().trim().min(1).optional(),visual:Vv.optional()}).strict(),Fv=ms.extend({status:l.enum(["completed","failed"])})});function Tu(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||void 0}catch{return}}var Ft,Si=O(()=>{"use strict";Oe();Ft=l.string().min(1).max(64).refine(e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(new Date(0)),!0}catch{return!1}},"Invalid IANA timezone")});function a1(e,t){e.revisitAt&&e.disposition!=="deferred"&&t.addIssue({code:"custom",path:["revisitAt"],message:"revisitAt requires deferred disposition"})}function c1(e,t){let n=new Set;for(let i of e.participants){let r=`${i.type}:${i.id}`;n.has(r)&&t.addIssue({code:"custom",path:["participants"],message:"Duplicate conversation participant."}),n.add(r)}}var n1,Bv,fs,zu,i1,o1,Zv,s1,Hv,Cu,Kv,l1,Nu,u1,d1,p1,Ou=O(()=>{"use strict";Oe();Kn();Iu();Si();n1=_i,Bv=l.object({kind:l.literal("inline"),offset:l.number().int().nonnegative()}),fs=l.object({type:n1,src:l.url(),filename:l.string().min(1),mimeType:l.string().min(1),mediaId:l.string().min(1).optional(),size:l.number().int().nonnegative().optional(),width:l.number().int().positive().optional(),height:l.number().int().positive().optional(),duration:l.number().nonnegative().optional(),text:l.string().optional(),placement:Bv.optional()}),zu=l.object({ref:l.string().min(1).max(256)}).strict(),i1=l.enum(["handled","dismissed","deferred"]),o1=l.iso.datetime();Zv=zu.extend({disposition:i1.optional(),revisitAt:o1.optional()}).superRefine(a1),s1=zu.extend({disposition:i1,revisitAt:o1.optional()}).superRefine(a1),Hv=l.object({turnId:l.string().min(1).optional(),turnOutcome:l.enum(["failed","stopped"]).optional(),attachments:l.array(fs).optional(),toolActivities:l.array(Fv).optional(),issue:l.object({code:l.string(),bucket:l.enum(["account","error"]),actionLabel:l.string(),actionUrl:l.string(),help:l.string().optional()}).optional(),notification:l.object({push:l.boolean().optional(),excludeUserId:l.string().min(1).optional()}).optional(),routine:l.object({run:l.object({routineRunId:l.string(),sourceKind:l.enum(["webhook","schedule","manual","heartbeat"]),sourceLabel:l.string().optional(),deliveryId:l.string().optional(),status:l.enum(["received","forwarded","owner_notified","needs_approval","completed","failed","dropped"])}).catchall(l.unknown())}).catchall(l.unknown()).optional(),voiceDelegated:l.literal(!0).optional(),ownerHandoff:l.literal(!0).optional(),attention:l.array(Zv).max(20).optional()}).catchall(l.unknown()),Cu=l.object({messageId:l.string().min(1),conversationId:l.string().min(1),role:l.enum(["user","assistant","system"]),authorParticipantId:l.string().nullable(),systemKind:l.string().nullable(),content:l.string(),sequence:l.string().min(1),clientNonce:l.string().nullable().optional(),metadata:Hv.nullable().optional(),status:l.string().nullable().optional(),createdAt:l.string(),updatedAt:l.string()}),Kv=l.object({type:n1,mediaId:l.string().min(1).optional(),url:l.url().optional(),name:l.string().min(1).optional(),mimeType:l.string().min(1).optional(),duration:l.number().nonnegative().optional()}).superRefine((e,t)=>{if(!e.mediaId)for(let n of["url","name","mimeType"])e[n]||t.addIssue({code:"custom",path:[n],message:`${n} is required when mediaId is absent`})}),l1=l.object({conversationId:l.string().min(1),content:l.string().max(1e4).default(""),clientNonce:l.string().max(64).optional(),attachments:l.array(Kv).max(10).optional(),channel:l.enum(["ios","dashboard"]).optional(),actionUrls:l.object({billing:l.string().max(500),bot:l.string().max(500)}).optional(),viewerTimezone:Ft.optional()}).refine(e=>e.content.trim().length>0||(e.attachments?.length??0)>0,{path:["content"],message:"Message or attachment required"}),Nu=l.object({type:l.enum(["user","bot"]),id:l.string().min(1)}).strict();u1=l.object({orgId:l.string().min(1),participants:l.array(Nu).min(1).max(20)}).strict().superRefine(c1),d1=l.object({orgId:l.string().min(1),participants:l.array(Nu).min(1).max(20)}).strict().superRefine((e,t)=>{c1(e,t),e.participants.some(n=>n.type==="bot")||t.addIssue({code:"custom",path:["participants"],message:"New sessions require at least one agent participant."})}),p1=l.object({category:l.string().min(1).max(30).optional(),reason:l.string().max(2e3).optional()}).strict()});var Wv,Gv,m1,f1,h1=O(()=>{"use strict";Oe();Ou();Wv=l.enum(["1:1","4:3","3:4","16:9","9:16"]),Gv=l.enum(["1K","2K","4K"]),m1=l.object({prompt:l.string().trim().min(1).max(4e3),aspectRatio:Wv.default("1:1"),outputFormat:l.enum(["png","jpeg","webp"]).default("webp"),resolution:Gv.default("2K"),style:l.string().trim().max(200).optional(),altText:l.string().trim().max(500).optional(),referenceMediaIds:l.array(l.string().min(1)).max(4).optional()}).strict(),f1=l.object({mediaId:l.string().min(1),src:l.url(),filename:l.string().min(1),mimeType:l.string().min(1),width:l.number().int().positive().optional(),height:l.number().int().positive().optional(),provider:l.string().min(1).optional(),providerRequestId:l.string().min(1).optional(),media:l.string().startsWith("MEDIA:"),attachment:fs.extend({type:l.literal("image")})})});var g1,qv,v1,b1,Jv,y1,x1,Yv,w1,k1=O(()=>{"use strict";Oe();sp();g1=l.object({identityToken:l.string().min(1),fullName:l.string().optional()}),qv=l.object({redirect:l.string(),redirectReason:l.string(),isNew:l.boolean(),deviceId:l.string()}),v1=l.object({ok:l.literal(!0),data:qv,token:l.string()}),b1=l.object({path:l.string().startsWith("/","path must be a relative dashboard path").refine(ap,"path must be a relative dashboard path")}),Jv=l.object({url:l.string()}),y1=l.object({ok:l.literal(!0),data:Jv}),x1=l.object({token:l.string().min(1)}),Yv=l.object({redirect:l.string(),redirectReason:l.string(),deviceId:l.string()}),w1=l.object({ok:l.literal(!0),data:Yv,token:l.string()})});var Du,Au,Ei,_1,Pu=O(()=>{"use strict";Oe();Kn();Du=hu,Au=_i,Ei=l.object({mediaId:l.string(),src:l.string(),alt:l.string().nullable().optional(),filename:l.string().optional(),displayName:l.string().nullable().optional(),mimeType:l.string().optional(),mediaType:Au.optional(),type:Au.optional(),size:l.number().optional(),width:l.number().nullable().optional(),height:l.number().nullable().optional(),duration:l.number().nullable().optional(),context:Du.nullable().optional(),blurhash:l.string().nullable().optional(),quality:l.string().optional(),status:l.string().optional(),userId:l.string().optional(),orgId:l.string().optional(),botId:l.string().nullable().optional(),createdAt:l.string().optional(),updatedAt:l.string().optional()}),_1=l.object({file:l.string().describe("Binary file. multipart/form-data field \u2014 the actual upload. The server validates type + size and normalizes image uploads before storage. Audio/video/document uploads use the same uploader and are classified by MIME type."),context:Du.optional().default("general"),botId:l.string().optional(),orgId:l.string().optional(),duration:l.number().optional()})});var hs,Xv,$1,Ru=O(()=>{"use strict";Oe();Si();hs=l.object({viewerTimezone:Ft.optional(),location:l.object({label:l.string().max(500),city:l.string().optional(),region:l.string().optional(),countryCode:l.string().optional(),timezone:l.string().optional(),source:l.literal("geoip"),precision:l.enum(["city","region","country"]),confidence:l.enum(["medium","low"]),vpnOrDatacenter:l.enum(["likely","unknown"])}).optional()}),Xv=l.object({status:l.enum(["available","unavailable"]),user:l.string().max(16e3).optional(),memory:l.string().max(16e3).optional(),agents:l.string().max(4e3).optional()}).strict(),$1=l.object({bot:l.object({id:l.string(),name:l.string(),title:l.string().nullable().optional(),timezone:Ft}),scope:l.enum(["private","org","public"]),channel:l.string().max(120),currentTime:l.iso.datetime(),scopePrompt:l.string().optional(),observations:hs.optional(),lastObservedTimezone:Ft.optional(),lean:Xv.optional()})});var gs,Qv,vs,S1,E1,eb,I1,T1,tb=O(()=>{"use strict";Oe();Si();Ru();gs=l.enum(["woman","man"]),Qv=[{key:"lauren",gender:"woman",accent:"American",character:"Friendly, comforting and soft",isDefault:!0},{key:"amy",gender:"woman",accent:"American",character:"Natural and sweet"},{key:"eve",gender:"woman",accent:"American",character:"Authentic, energetic and happy"},{key:"jessica",gender:"woman",accent:"British",character:"Smooth, articulate and warm"},{key:"adam",gender:"man",accent:"American",character:"Engaging, friendly and bright",isDefault:!0},{key:"jon",gender:"man",accent:"American",character:"Relaxed, deep and approachable"},{key:"joe",gender:"man",accent:"British",character:"Reflective and thoughtful"},{key:"julius",gender:"man",accent:"German",character:"Deep, articulate and professional"}],vs=l.enum(Qv.map(e=>e.key)),S1=l.object({conversationId:l.string().min(1),viewerTimezone:Ft.optional()}).strict(),E1=l.object({conversationId:l.string().min(1),botId:l.string().min(1),personaName:l.string().min(1),personaTitle:l.string().max(255).nullable().optional(),gender:gs,voiceKey:vs.nullable(),sessionScope:l.enum(["private","org","public"]),observations:hs.optional(),threadSummary:l.string(),capabilities:l.array(l.object({name:l.string().min(1),description:l.string().min(1)})).optional(),surfaceGuidance:l.string().optional(),maxDurationSeconds:l.number().int().positive().max(3600).optional(),expiresAt:l.iso.datetime()}),eb=l.literal("livekit"),I1=l.object({name:l.enum(["voice.ready","voice.first_playback","voice.failed"]),client:l.enum(["web","ios"]),botId:l.string().min(1).max(64).optional(),conversationId:l.string().min(1).max(64).optional(),provider:eb.optional(),durationMs:l.number().int().min(0).max(36e5),phase:l.enum(["idle","minting","connecting","live","ended"]).optional(),code:l.string().min(1).max(64).optional(),detail:l.string().min(1).max(300).optional(),appVersion:l.string().min(1).max(32).optional(),appBuild:l.string().min(1).max(32).optional()}).strict(),T1=l.object({provider:l.literal("livekit"),url:l.string().min(1),token:l.string().min(1),room:l.string().min(1)}).strict()});var z1,rb,xn,Ii,C1,N1,wn=O(()=>{"use strict";Oe();Kn();tb();z1=l.enum(["identity","working-style","complete"]),rb=l.string().min(1).max(50).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),xn=l.object({botId:l.string().min(1),computerId:l.string().min(1),handle:l.string().min(2).max(50),name:l.string().min(1).max(100),emoji:l.string().max(8).nullable().optional(),title:l.string().max(120).nullable().optional(),summary:l.string().max(500).nullable().optional(),avatarId:l.string().nullable().optional(),coverId:l.string().nullable().optional(),avatar:bt.optional(),cover:bt.optional(),email:l.email().nullable().optional(),website:l.url().nullable().optional(),accounts:l.array(l.object({platform:l.enum(["linkedin","x","facebook","tiktok","youtube","github","instagram","threads","email","phone","website"]),handle:l.string()})).nullable().optional(),gender:gs.optional(),voiceKey:vs.nullable().optional(),isPrimary:l.boolean(),collaborationEnabled:l.boolean(),publicChatEnabled:l.boolean(),status:l.enum(["active","deleted"]),onboardingStage:z1.nullable().optional(),onboardedAt:l.string().nullable().optional(),routinePrimaryChannel:rb.optional(),firstMessageAt:l.string().nullable().optional(),firstValueAt:l.string().nullable().optional(),lastMessageAt:l.string().nullable().optional(),createdAt:l.string(),updatedAt:l.string()}).strict(),Ii=xn.pick({name:!0,emoji:!0,title:!0,summary:!0,gender:!0,voiceKey:!0}).extend({handle:xn.shape.handle.optional(),avatarPreset:l.string().min(1).max(64).optional(),avatarMediaId:l.string().optional()}).strict(),C1=Ii.extend({computerId:l.string().min(1)}).strict(),N1=xn.pick({name:!0,handle:!0,emoji:!0,title:!0,summary:!0,email:!0,website:!0,gender:!0,voiceKey:!0,routinePrimaryChannel:!0,collaborationEnabled:!0,publicChatEnabled:!0}).partial().extend({avatarMediaId:l.string().nullable().optional(),coverMediaId:l.string().nullable().optional()}).strict()});var Mu,qn,O1,A1,Ti=O(()=>{"use strict";Oe();Pu();Su();wn();Wn();Si();Mu=l.enum(["essential","professional","business"]),qn=Po.partial().extend({computerId:l.string().min(1),ownerId:l.string().min(1),owner:l.object({userId:l.string(),fullName:l.string().optional(),avatar:Ei.optional()}).optional(),orgId:l.string().min(1),name:l.string().min(1).max(100),model:l.string().nullable(),timezone:Ft,billingTier:Mu,desiredStatus:Ro.nullable(),status:l.enum(["active","deleted"]),lastActiveAt:l.string().nullable().optional(),createdAt:l.string(),updatedAt:l.string()}).strict(),O1=l.object({orgId:l.string().min(1),name:qn.shape.name.optional(),timezone:Ft.optional(),primaryBot:Ii}).strict(),A1=qn.pick({name:!0,model:!0,timezone:!0}).partial().strict()});var nb,ib,ob,ab,G4,D1,sb,P1,R1,M1,U1,j1=O(()=>{"use strict";Oe();Ti();nb=l.enum(["none","active_assistant"]),ib=l.enum(["none","active","trial","canceling","past_due","paused"]),ob=l.object({brand:l.string(),last4:l.string(),expMonth:l.number(),expYear:l.number()}),ab=l.object({date:l.string(),amount:l.number(),status:l.string(),invoicePdf:l.string().optional()}),G4=l.object({graceEndsAt:l.string().optional(),suspended:l.boolean(),url:l.string().optional()}),D1=l.object({plan:nb,status:ib,price:l.number(),tierRates:l.record(l.string(),l.number()).optional(),maxComputers:l.number(),activeComputers:l.number(),workspaceTier:Mu.optional(),upcomingAmountDue:l.number().optional(),upcomingDueDate:l.string().optional(),nextBillDate:l.string().optional(),cancelAtPeriodEnd:l.boolean().optional(),cancelAt:l.string().optional(),trialEnd:l.string().optional(),trialDaysRemaining:l.number().optional(),paymentMethod:ob.optional(),paymentRecovery:G4.optional(),invoices:l.array(ab),stripeError:l.string().optional()}),sb=l.enum(["demo_computer_exists","demo_usage_exhausted","subscription_required","plan_limit"]),P1=l.object({canCreate:l.boolean(),activeComputers:l.number().int().nonnegative(),computerLimit:l.number().int().nonnegative(),isDemo:l.boolean(),reason:sb.optional()}),R1=l.object({orgId:l.string(),computerName:l.string().optional(),runtime:l.string().optional()}),M1=l.object({created:l.number(),skipped:l.number(),errors:l.array(l.string())}),U1=l.object({updated:l.number(),errors:l.array(l.string())})});function bs(e){return{code:e.code,error:e.message,...e.bucket?{bucket:e.bucket}:{},...e.actionLabel?{actionLabel:e.actionLabel}:{},...e.actionUrl?{actionUrl:e.actionUrl}:{},...e.help?{help:e.help}:{}}}function ys(e){if(e.event==="message"&&e.data.message.role==="user")return e.data.message.messageId}function ub(e){if(e.event==="message_delta"||e.event==="working_state"||e.event==="tool_activity"||e.event==="working_end"||e.event==="stream_end")return e.data.turnId;if(e.event==="message"){let t=e.data.message.metadata?.turnId;return typeof t=="string"?t:void 0}}function ju(e,t){if(e.event==="status"||e.event==="error"||ys(e))return!0;let n=ub(e);return t?n?n===t:e.event==="message":!1}var lb,cb,Uu,db=O(()=>{"use strict";Oe();Ou();Iu();Eu();Wn();lb=Po,cb=l.object({code:Mo,message:l.string(),bucket:l.enum(["account","error"]).optional(),actionLabel:l.string().optional(),actionUrl:l.string().optional(),help:l.string().optional()});Uu=l.discriminatedUnion("event",[l.object({event:l.literal("status"),data:lb}),l.object({event:l.literal("message"),data:l.object({message:Cu})}),l.object({event:l.literal("message_delta"),data:l.object({delta:l.string(),turnId:l.string(),messageId:l.string().optional(),role:l.enum(["assistant","system"]).optional()})}),l.object({event:l.literal("working_state"),data:l.object({description:l.string(),turnId:l.string().optional()})}),l.object({event:l.literal("tool_activity"),data:ms}),l.object({event:l.literal("working_end"),data:l.object({turnId:l.string().optional()}).strict()}),l.object({event:l.literal("stream_end"),data:l.object({turnId:l.string().optional()}).strict()}),l.object({event:l.literal("error"),data:cb})])});async function Lu(e){let t=e.fetchFn??fetch,n=e.headers??{},i=!1,r=!1,o=!1,a=!1,s,c=!1,u=!1,d,p=new AbortController,m=!1,f,$=()=>{},I=new Promise(z=>{$=z}),T=z=>{m||(m=!0,f&&clearTimeout(f),$(z))},Z=(z,U)=>{o=!0,e.onTransportError({stage:z,message:U})},V=()=>{d?.cancel().catch(()=>{})};f=setTimeout(()=>{u=!0,Z("stream-open","Timed out opening stream"),p.abort(),T("failed")},e.streamOpenTimeoutMs??1e4);let D=(async()=>{try{let z=await t(e.streamUrl,{headers:n,signal:p.signal});if(!z.ok){o=!0,T("failed"),e.onTransportError({stage:"stream-open",message:await q4(z)});return}if(d=z.body?.getReader(),!d){Z("stream-open","No response stream"),T("failed");return}T("ready");for await(let U of xs(d))if(s||(s=ys(U)),!(i&&!ju(U,s))){if(U.event==="status")e.onLiveStatus?.(U.data);else if(U.event==="working_state")i&&e.onStatus?.(U.data.description);else if(U.event==="tool_activity")i&&e.onToolActivity?.(U.data);else if(U.event==="working_end")i&&e.onWorkingEnd?.();else if(U.event==="message_delta")i&&e.onDelta(U.data.delta,U.data.role);else if(U.event==="error"){o=!0,e.onChatError(U.data);break}else if(U.event==="message"&&(U.data.message.role==="assistant"||U.data.message.role==="system")){if(!i)continue;a||(a=!0,e.onMessage?.(U.data.message))}else if(U.event==="stream_end")break}!o&&a?e.onDone():!o&&i&&!r&&Z("no-reply","Stream ended before reply arrived")}catch(z){!r&&!u&&(T("failed"),Z("stream-read",z instanceof Error?z.message:"Stream failed"))}finally{c=!0;try{await d?.cancel()}catch{}}})();if(await I==="failed"){await D;return}if(c){Z("stream-open","Stream closed before send"),await D;return}try{i=!0;let z=await t(e.sendUrl,{method:"POST",headers:{"Content-Type":"application/json",...n},body:JSON.stringify(e.sendBody)}),U=await z.json();if(!U.ok){r=!0,p.abort(),V(),o=!0,e.onTransportError({stage:"api",message:U.error||`Send failed: HTTP ${z.status}`,...U.code?{code:U.code}:{}}),await D;return}s=U.data.messageId,e.onUserMessage?.(U.data)}catch(z){r=!0,p.abort(),V(),Z("api",z instanceof Error?z.message:"Send failed"),await D;return}await D}async function q4(e){let t="";try{let n=await e.text();n&&(t=` - ${n.slice(0,200)}`)}catch{}return`HTTP ${e.status}${t}`}async function*xs(e){let t=new TextDecoder,n="";for(;;){let{done:i,value:r}=await e.read();if(i)break;n+=t.decode(r,{stream:!0});let o=n.indexOf(`
|
|
68
|
+
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 u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function Hn(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let c=e.seen.get(s);if(c.ref===null)return;let u=c.def??c.schema,d={...u},p=c.ref;if(c.ref=null,p){i(p);let f=e.seen.get(p),$=f.schema;if($.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push($)):Object.assign(u,$),Object.assign(u,d),s._zod.parent===p)for(let T in u)T==="$ref"||T==="allOf"||T in d||delete u[T];if($.$ref&&f.def)for(let T in u)T==="$ref"||T==="allOf"||T in f.def&&JSON.stringify(u[T])===JSON.stringify(f.def[T])&&delete u[T]}let m=s._zod.parent;if(m&&m!==p){i(m);let f=e.seen.get(m);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let $ in u)$==="$ref"||$==="allOf"||$ in f.def&&JSON.stringify(u[$])===JSON.stringify(f.def[$])&&delete u[$]}e.override({zodSchema:s,jsonSchema:u,path:c.path??[]})};for(let s of[...e.seen.entries()].reverse())i(s[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 s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Object.assign(r,n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&r.id===o&&delete r.id;let a=e.external?.defs??{};for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Eo(t,"input",e.processors),output:Eo(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Xt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Xt(i.element,n);if(i.type==="set")return Xt(i.valueType,n);if(i.type==="lazy")return Xt(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 Xt(i.innerType,n);if(i.type==="intersection")return Xt(i.left,n)||Xt(i.right,n);if(i.type==="record"||i.type==="map")return Xt(i.keyType,n)||Xt(i.valueType,n);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Xt(i.in,n)||Xt(i.out,n);if(i.type==="object"){for(let r in i.shape)if(Xt(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(Xt(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(Xt(r,n))return!0;return!!(i.rest&&Xt(i.rest,n))}return!1}var Eh,Eo,Ba=O(()=>{La();Eh=(e,t={})=>n=>{let i=Bn({...n,processors:t});return Ye(e,i),Zn(i,e),Hn(i,e)},Eo=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=Bn({...r??{},target:o,io:t,processors:n});return Ye(e,a),Zn(a,e),Hn(a,e)}});function Pc(e,t){if("_idmap"in e){let i=e,r=Bn({...t,processors:Oc}),o={};for(let c of i._idmap.entries()){let[u,d]=c;Ye(d,r)}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let c of i._idmap.entries()){let[u,d]=c;Zn(r,d),a[u]=Hn(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=Bn({...t,processors:Oc});return Ye(e,n),Zn(n,e),Hn(n,e)}var p4,Ih,Th,zh,Ch,Nh,Oh,Ah,Dh,Ph,Rh,Mh,Uh,jh,Lh,Vh,Fh,Bh,Zh,Hh,Kh,Wh,Gh,qh,Jh,Yh,Ac,Xh,Qh,eg,tg,rg,ng,ig,og,ag,sg,lg,Dc,cg,Oc,Za=O(()=>{Ba();ge();p4={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ih=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=p4[s]??s,r.format===""&&delete r.format,s==="time"&&delete r.format),u&&(r.contentEncoding=u),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}))])}},Th=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number";let p=typeof d=="number"&&d>=(o??Number.NEGATIVE_INFINITY),m=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";p?f?(r.minimum=d,r.exclusiveMinimum=!0):r.exclusiveMinimum=d:typeof o=="number"&&(r.minimum=o),m?f?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u:typeof a=="number"&&(r.maximum=a),typeof c=="number"&&(r.multipleOf=c)},zh=(e,t,n,i)=>{n.type="boolean"},Ch=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Nh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Oh=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Ah=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Dh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Ph=(e,t,n,i)=>{n.not={}},Rh=(e,t,n,i)=>{},Mh=(e,t,n,i)=>{},Uh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},jh=(e,t,n,i)=>{let r=e._zod.def,o=$a(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},Lh=(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},Vh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Fh=(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},Bh=(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(u=>({contentMediaType:u}))):Object.assign(r,o)},Zh=(e,t,n,i)=>{n.type="boolean"},Hh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Kh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Wh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Gh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},qh=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Jh=(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=Ye(o.element,t,{...i,path:[...i.path,"items"]})},Yh=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object",r.properties={};let a=o.shape;for(let u in a)r.properties[u]=Ye(a[u],t,{...i,path:[...i.path,"properties",u]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(u=>{let d=o.shape[u]._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=!1:o.catchall?o.catchall&&(r.additionalProperties=Ye(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Ac=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===!1,a=r.options.map((s,c)=>Ye(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=a:n.anyOf=a},Xh=(e,t,n,i)=>{let r=e._zod.def,o=Ye(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=Ye(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=c},Qh=(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,f)=>Ye(m,t,{...i,path:[...i.path,a,f]})),u=o.rest?Ye(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,u&&(r.items=u)):t.target==="openapi-3.0"?(r.items={anyOf:c},u&&r.items.anyOf.push(u),r.minItems=c.length,u||(r.maxItems=c.length)):(r.items=c,u&&(r.additionalItems=u));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof p=="number"&&(r.maxItems=p)},eg=(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=Ye(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=Ye(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=Ye(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let u=a._zod.values;if(u){let d=[...u].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(r.required=d)}},tg=(e,t,n,i)=>{let r=e._zod.def,o=Ye(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},rg=(e,t,n,i)=>{let r=e._zod.def;Ye(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},ng=(e,t,n,i)=>{let r=e._zod.def;Ye(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},ig=(e,t,n,i)=>{let r=e._zod.def;Ye(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)))},og=(e,t,n,i)=>{let r=e._zod.def;Ye(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},ag=(e,t,n,i)=>{let r=e._zod.def,o=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?r.out:r.in:r.out;Ye(a,t,i);let s=t.seen.get(e);s.ref=a},sg=(e,t,n,i)=>{let r=e._zod.def;Ye(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},lg=(e,t,n,i)=>{let r=e._zod.def;Ye(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Dc=(e,t,n,i)=>{let r=e._zod.def;Ye(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},cg=(e,t,n,i)=>{let r=e._zod.innerType;Ye(r,t,i);let o=t.seen.get(e);o.ref=r},Oc={string:Ih,number:Th,boolean:zh,bigint:Ch,symbol:Nh,null:Oh,undefined:Ah,void:Dh,never:Ph,any:Rh,unknown:Mh,date:Uh,enum:jh,literal:Lh,nan:Vh,template_literal:Fh,file:Bh,success:Zh,custom:Hh,function:Kh,transform:Wh,map:Gh,set:qh,array:Jh,object:Yh,union:Ac,intersection:Xh,tuple:Qh,record:eg,nullable:tg,nonoptional:rg,default:ng,prefault:ig,catch:og,pipe:ag,readonly:sg,promise:lg,optional:Dc,lazy:cg}});var Rc,Xw=O(()=>{Za();Ba();Rc=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=Bn({processors:Oc,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 Ye(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)),Zn(this.ctx,t);let i=Hn(this.ctx,t),{"~standard":r,...o}=i;return o}}});var Qw={};var ek=O(()=>{});var yn={};Nr(yn,{$ZodAny:()=>tf,$ZodArray:()=>sf,$ZodAsyncError:()=>Ar,$ZodBase64:()=>Hm,$ZodBase64URL:()=>Km,$ZodBigInt:()=>Xl,$ZodBigIntFormat:()=>Ym,$ZodBoolean:()=>Pa,$ZodCIDRv4:()=>Fm,$ZodCIDRv6:()=>Bm,$ZodCUID:()=>Cm,$ZodCUID2:()=>Nm,$ZodCatch:()=>Sf,$ZodCheck:()=>ct,$ZodCheckBigIntFormat:()=>im,$ZodCheckEndsWith:()=>gm,$ZodCheckGreaterThan:()=>Hl,$ZodCheckIncludes:()=>fm,$ZodCheckLengthEquals:()=>um,$ZodCheckLessThan:()=>Zl,$ZodCheckLowerCase:()=>pm,$ZodCheckMaxLength:()=>lm,$ZodCheckMaxSize:()=>om,$ZodCheckMimeType:()=>bm,$ZodCheckMinLength:()=>cm,$ZodCheckMinSize:()=>am,$ZodCheckMultipleOf:()=>rm,$ZodCheckNumberFormat:()=>nm,$ZodCheckOverwrite:()=>ym,$ZodCheckProperty:()=>vm,$ZodCheckRegex:()=>dm,$ZodCheckSizeEquals:()=>sm,$ZodCheckStartsWith:()=>hm,$ZodCheckStringFormat:()=>uo,$ZodCheckUpperCase:()=>mm,$ZodCodec:()=>Ma,$ZodCustom:()=>Af,$ZodCustomStringFormat:()=>qm,$ZodDate:()=>af,$ZodDefault:()=>wf,$ZodDiscriminatedUnion:()=>uf,$ZodE164:()=>Wm,$ZodEmail:()=>Em,$ZodEmoji:()=>Tm,$ZodEncodeError:()=>Rn,$ZodEnum:()=>hf,$ZodError:()=>za,$ZodExactOptional:()=>yf,$ZodFile:()=>vf,$ZodFunction:()=>Cf,$ZodGUID:()=>$m,$ZodIPv4:()=>jm,$ZodIPv6:()=>Lm,$ZodISODate:()=>Rm,$ZodISODateTime:()=>Pm,$ZodISODuration:()=>Um,$ZodISOTime:()=>Mm,$ZodIntersection:()=>df,$ZodJWT:()=>Gm,$ZodKSUID:()=>Dm,$ZodLazy:()=>Of,$ZodLiteral:()=>gf,$ZodMAC:()=>Vm,$ZodMap:()=>mf,$ZodNaN:()=>Ef,$ZodNanoID:()=>zm,$ZodNever:()=>nf,$ZodNonOptional:()=>_f,$ZodNull:()=>ef,$ZodNullable:()=>xf,$ZodNumber:()=>Yl,$ZodNumberFormat:()=>Jm,$ZodObject:()=>ex,$ZodObjectJIT:()=>lf,$ZodOptional:()=>ec,$ZodPipe:()=>tc,$ZodPrefault:()=>kf,$ZodPreprocess:()=>If,$ZodPromise:()=>Nf,$ZodReadonly:()=>Tf,$ZodRealError:()=>sr,$ZodRecord:()=>pf,$ZodRegistry:()=>oc,$ZodSet:()=>ff,$ZodString:()=>vi,$ZodStringFormat:()=>it,$ZodSuccess:()=>$f,$ZodSymbol:()=>Xm,$ZodTemplateLiteral:()=>zf,$ZodTransform:()=>bf,$ZodTuple:()=>Ql,$ZodType:()=>Se,$ZodULID:()=>Om,$ZodURL:()=>Im,$ZodUUID:()=>Sm,$ZodUndefined:()=>Qm,$ZodUnion:()=>Ra,$ZodUnknown:()=>rf,$ZodVoid:()=>of,$ZodXID:()=>Am,$ZodXor:()=>cf,$brand:()=>cp,$constructor:()=>S,$input:()=>Lf,$output:()=>jf,Doc:()=>Da,JSONSchema:()=>Qw,JSONSchemaGenerator:()=>Rc,NEVER:()=>lp,TimePrecision:()=>Zf,_any:()=>dh,_array:()=>bh,_base64:()=>_c,_base64url:()=>$c,_bigint:()=>ih,_boolean:()=>rh,_catch:()=>a4,_check:()=>Jw,_cidrv4:()=>wc,_cidrv6:()=>kc,_coercedBigint:()=>oh,_coercedBoolean:()=>nh,_coercedDate:()=>gh,_coercedNumber:()=>Jf,_coercedString:()=>Ff,_cuid:()=>fc,_cuid2:()=>hc,_custom:()=>xh,_date:()=>hh,_decode:()=>Dl,_decodeAsync:()=>Rl,_default:()=>n4,_discriminatedUnion:()=>Hz,_e164:()=>Sc,_email:()=>sc,_emoji:()=>pc,_encode:()=>Al,_encodeAsync:()=>Pl,_endsWith:()=>bo,_enum:()=>Yz,_file:()=>yh,_float32:()=>Xf,_float64:()=>Qf,_gt:()=>Zr,_gte:()=>Yt,_guid:()=>Va,_includes:()=>go,_int:()=>Yf,_int32:()=>eh,_int64:()=>ah,_intersection:()=>Kz,_ipv4:()=>yc,_ipv6:()=>xc,_isoDate:()=>Kf,_isoDateTime:()=>Hf,_isoDuration:()=>Gf,_isoTime:()=>Wf,_jwt:()=>Ec,_ksuid:()=>bc,_lazy:()=>u4,_length:()=>xi,_literal:()=>Qz,_lowercase:()=>fo,_lt:()=>Br,_lte:()=>pr,_mac:()=>Bf,_map:()=>qz,_max:()=>pr,_maxLength:()=>yi,_maxSize:()=>Fn,_mime:()=>yo,_min:()=>Yt,_minLength:()=>bn,_minSize:()=>Hr,_multipleOf:()=>Vn,_nan:()=>vh,_nanoid:()=>mc,_nativeEnum:()=>Xz,_negative:()=>Tc,_never:()=>mh,_nonnegative:()=>Cc,_nonoptional:()=>i4,_nonpositive:()=>zc,_normalize:()=>xo,_null:()=>uh,_nullable:()=>r4,_number:()=>qf,_optional:()=>t4,_overwrite:()=>Dr,_parse:()=>ao,_parseAsync:()=>so,_pipe:()=>s4,_positive:()=>Ic,_promise:()=>d4,_property:()=>Nc,_readonly:()=>l4,_record:()=>Gz,_refine:()=>wh,_regex:()=>mo,_safeDecode:()=>Ul,_safeDecodeAsync:()=>Ll,_safeEncode:()=>Ml,_safeEncodeAsync:()=>jl,_safeParse:()=>lo,_safeParseAsync:()=>co,_set:()=>Jz,_size:()=>bi,_slugify:()=>$o,_startsWith:()=>vo,_string:()=>Vf,_stringFormat:()=>So,_stringbool:()=>Sh,_success:()=>o4,_superRefine:()=>kh,_symbol:()=>lh,_templateLiteral:()=>c4,_toLowerCase:()=>ko,_toUpperCase:()=>_o,_transform:()=>e4,_trim:()=>wo,_tuple:()=>Wz,_uint32:()=>th,_uint64:()=>sh,_ulid:()=>gc,_undefined:()=>ch,_union:()=>Bz,_unknown:()=>ph,_uppercase:()=>ho,_url:()=>Fa,_uuid:()=>lc,_uuidv4:()=>cc,_uuidv6:()=>uc,_uuidv7:()=>dc,_void:()=>fh,_xid:()=>vc,_xor:()=>Zz,clone:()=>qt,config:()=>wt,createStandardJSONSchemaMethod:()=>Eo,createToJSONSchemaMethod:()=>Eh,decode:()=>dT,decodeAsync:()=>mT,describe:()=>_h,encode:()=>uT,encodeAsync:()=>pT,extractDefs:()=>Zn,finalize:()=>Hn,flattenError:()=>Ca,formatError:()=>Na,globalConfig:()=>mi,globalRegistry:()=>Dt,initializeContext:()=>Bn,isValidBase64:()=>Zm,isValidBase64URL:()=>Jy,isValidJWT:()=>Yy,locales:()=>ja,meta:()=>$h,parse:()=>Nl,parseAsync:()=>Ol,prettifyError:()=>kp,process:()=>Ye,regexes:()=>dr,registry:()=>ac,safeDecode:()=>hT,safeDecodeAsync:()=>vT,safeEncode:()=>fT,safeEncodeAsync:()=>gT,safeParse:()=>$p,safeParseAsync:()=>Sp,toDotPath:()=>zy,toJSONSchema:()=>Pc,treeifyError:()=>wp,util:()=>ee,version:()=>wm});var mr=O(()=>{fi();Ep();_p();Df();Kl();km();ge();Bl();Uf();La();xm();Yw();Ba();Za();Xw();ek()});var Mc={};Nr(Mc,{endsWith:()=>bo,gt:()=>Zr,gte:()=>Yt,includes:()=>go,length:()=>xi,lowercase:()=>fo,lt:()=>Br,lte:()=>pr,maxLength:()=>yi,maxSize:()=>Fn,mime:()=>yo,minLength:()=>bn,minSize:()=>Hr,multipleOf:()=>Vn,negative:()=>Tc,nonnegative:()=>Cc,nonpositive:()=>zc,normalize:()=>xo,overwrite:()=>Dr,positive:()=>Ic,property:()=>Nc,regex:()=>mo,size:()=>bi,slugify:()=>$o,startsWith:()=>vo,toLowerCase:()=>ko,toUpperCase:()=>_o,trim:()=>wo,uppercase:()=>ho});var Uc=O(()=>{mr()});var Io={};Nr(Io,{ZodISODate:()=>Lc,ZodISODateTime:()=>jc,ZodISODuration:()=>Fc,ZodISOTime:()=>Vc,date:()=>dg,datetime:()=>ug,duration:()=>mg,time:()=>pg});function ug(e){return Hf(jc,e)}function dg(e){return Kf(Lc,e)}function pg(e){return Wf(Vc,e)}function mg(e){return Gf(Fc,e)}var jc,Lc,Vc,Fc,Ha=O(()=>{mr();Wa();jc=S("ZodISODateTime",(e,t)=>{Pm.init(e,t),ot.init(e,t)});Lc=S("ZodISODate",(e,t)=>{Rm.init(e,t),ot.init(e,t)});Vc=S("ZodISOTime",(e,t)=>{Mm.init(e,t),ot.init(e,t)});Fc=S("ZodISODuration",(e,t)=>{Um.init(e,t),ot.init(e,t)})});var tk,f4,lr,fg=O(()=>{mr();mr();ge();tk=(e,t)=>{za.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Na(e,n)},flatten:{value:n=>Ca(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,no,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,no,2)}},isEmpty:{get(){return e.issues.length===0}}})},f4=S("ZodError",tk),lr=S("ZodError",tk,{Parent:Error})});var hg,gg,vg,bg,yg,xg,wg,kg,_g,$g,Sg,Eg,Ig=O(()=>{mr();fg();hg=ao(lr),gg=so(lr),vg=lo(lr),bg=co(lr),yg=Al(lr),xg=Dl(lr),wg=Pl(lr),kg=Rl(lr),_g=Ml(lr),$g=Ul(lr),Sg=jl(lr),Eg=Ll(lr)});var Ka={};Nr(Ka,{ZodAny:()=>Pg,ZodArray:()=>jg,ZodBase64:()=>iu,ZodBase64URL:()=>ou,ZodBigInt:()=>Do,ZodBigIntFormat:()=>lu,ZodBoolean:()=>Ao,ZodCIDRv4:()=>ru,ZodCIDRv6:()=>nu,ZodCUID:()=>qc,ZodCUID2:()=>Jc,ZodCatch:()=>sv,ZodCodec:()=>os,ZodCustom:()=>as,ZodCustomStringFormat:()=>No,ZodDate:()=>es,ZodDefault:()=>tv,ZodDiscriminatedUnion:()=>Vg,ZodE164:()=>au,ZodEmail:()=>Kc,ZodEmoji:()=>Wc,ZodEnum:()=>zo,ZodExactOptional:()=>Xg,ZodFile:()=>Jg,ZodFunction:()=>vv,ZodGUID:()=>qa,ZodIPv4:()=>eu,ZodIPv6:()=>tu,ZodIntersection:()=>Fg,ZodJWT:()=>su,ZodKSUID:()=>Qc,ZodLazy:()=>fv,ZodLiteral:()=>qg,ZodMAC:()=>Tg,ZodMap:()=>Wg,ZodNaN:()=>cv,ZodNanoID:()=>Gc,ZodNever:()=>Mg,ZodNonOptional:()=>fu,ZodNull:()=>Ag,ZodNullable:()=>ev,ZodNumber:()=>Oo,ZodNumberFormat:()=>ki,ZodObject:()=>rs,ZodOptional:()=>mu,ZodPipe:()=>is,ZodPrefault:()=>nv,ZodPreprocess:()=>uv,ZodPromise:()=>gv,ZodReadonly:()=>dv,ZodRecord:()=>To,ZodSet:()=>Gg,ZodString:()=>Co,ZodStringFormat:()=>ot,ZodSuccess:()=>av,ZodSymbol:()=>Ng,ZodTemplateLiteral:()=>mv,ZodTransform:()=>Yg,ZodTuple:()=>Zg,ZodType:()=>ze,ZodULID:()=>Yc,ZodURL:()=>Qa,ZodUUID:()=>Kr,ZodUndefined:()=>Og,ZodUnion:()=>ns,ZodUnknown:()=>Rg,ZodVoid:()=>Ug,ZodXID:()=>Xc,ZodXor:()=>Lg,_ZodString:()=>Hc,_default:()=>rv,_function:()=>c_,any:()=>Lk,array:()=>ts,base64:()=>_k,base64url:()=>$k,bigint:()=>Pk,boolean:()=>Cg,catch:()=>lv,check:()=>u_,cidrv4:()=>wk,cidrv6:()=>kk,codec:()=>o_,cuid:()=>mk,cuid2:()=>fk,custom:()=>d_,date:()=>Fk,describe:()=>p_,discriminatedUnion:()=>Gk,e164:()=>Sk,email:()=>nk,emoji:()=>dk,enum:()=>du,exactOptional:()=>Qg,file:()=>t_,float32:()=>Nk,float64:()=>Ok,function:()=>c_,guid:()=>ik,hash:()=>Ck,hex:()=>zk,hostname:()=>Tk,httpUrl:()=>uk,instanceof:()=>f_,int:()=>Bc,int32:()=>Ak,int64:()=>Rk,intersection:()=>Bg,invertCodec:()=>a_,ipv4:()=>bk,ipv6:()=>xk,json:()=>g_,jwt:()=>Ek,keyof:()=>Bk,ksuid:()=>vk,lazy:()=>hv,literal:()=>e_,looseObject:()=>Kk,looseRecord:()=>Jk,mac:()=>yk,map:()=>Yk,meta:()=>m_,nan:()=>i_,nanoid:()=>pk,nativeEnum:()=>Qk,never:()=>cu,nonoptional:()=>ov,null:()=>Dg,nullable:()=>Ya,nullish:()=>r_,number:()=>zg,object:()=>Zk,optional:()=>Ja,partialRecord:()=>qk,pipe:()=>Zc,prefault:()=>iv,preprocess:()=>v_,promise:()=>l_,readonly:()=>pv,record:()=>Kg,refine:()=>bv,set:()=>Xk,strictObject:()=>Hk,string:()=>Ga,stringFormat:()=>Ik,stringbool:()=>h_,success:()=>n_,superRefine:()=>yv,symbol:()=>Uk,templateLiteral:()=>s_,transform:()=>pu,tuple:()=>Hg,uint32:()=>Dk,uint64:()=>Mk,ulid:()=>hk,undefined:()=>jk,union:()=>uu,unknown:()=>wi,url:()=>ck,uuid:()=>ok,uuidv4:()=>ak,uuidv6:()=>sk,uuidv7:()=>lk,void:()=>Vk,xid:()=>gk,xor:()=>Wk});function Xa(e,t,n){let i=Object.getPrototypeOf(e),r=rk.get(i);if(r||(r=new Set,rk.set(i,r)),!r.has(t)){r.add(t);for(let o in n){let a=n[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}function Ga(e){return Vf(Co,e)}function nk(e){return sc(Kc,e)}function ik(e){return Va(qa,e)}function ok(e){return lc(Kr,e)}function ak(e){return cc(Kr,e)}function sk(e){return uc(Kr,e)}function lk(e){return dc(Kr,e)}function ck(e){return Fa(Qa,e)}function uk(e){return Fa(Qa,{protocol:dr.httpProtocol,hostname:dr.domain,...ee.normalizeParams(e)})}function dk(e){return pc(Wc,e)}function pk(e){return mc(Gc,e)}function mk(e){return fc(qc,e)}function fk(e){return hc(Jc,e)}function hk(e){return gc(Yc,e)}function gk(e){return vc(Xc,e)}function vk(e){return bc(Qc,e)}function bk(e){return yc(eu,e)}function yk(e){return Bf(Tg,e)}function xk(e){return xc(tu,e)}function wk(e){return wc(ru,e)}function kk(e){return kc(nu,e)}function _k(e){return _c(iu,e)}function $k(e){return $c(ou,e)}function Sk(e){return Sc(au,e)}function Ek(e){return Ec(su,e)}function Ik(e,t,n={}){return So(No,e,t,n)}function Tk(e){return So(No,"hostname",dr.hostname,e)}function zk(e){return So(No,"hex",dr.hex,e)}function Ck(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=dr[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return So(No,i,r,t)}function zg(e){return qf(Oo,e)}function Bc(e){return Yf(ki,e)}function Nk(e){return Xf(ki,e)}function Ok(e){return Qf(ki,e)}function Ak(e){return eh(ki,e)}function Dk(e){return th(ki,e)}function Cg(e){return rh(Ao,e)}function Pk(e){return ih(Do,e)}function Rk(e){return ah(lu,e)}function Mk(e){return sh(lu,e)}function Uk(e){return lh(Ng,e)}function jk(e){return ch(Og,e)}function Dg(e){return uh(Ag,e)}function Lk(){return dh(Pg)}function wi(){return ph(Rg)}function cu(e){return mh(Mg,e)}function Vk(e){return fh(Ug,e)}function Fk(e){return hh(es,e)}function ts(e,t){return bh(jg,e,t)}function Bk(e){let t=e._zod.def.shape;return du(Object.keys(t))}function Zk(e,t){let n={type:"object",shape:e??{},...ee.normalizeParams(t)};return new rs(n)}function Hk(e,t){return new rs({type:"object",shape:e,catchall:cu(),...ee.normalizeParams(t)})}function Kk(e,t){return new rs({type:"object",shape:e,catchall:wi(),...ee.normalizeParams(t)})}function uu(e,t){return new ns({type:"union",options:e,...ee.normalizeParams(t)})}function Wk(e,t){return new Lg({type:"union",options:e,inclusive:!1,...ee.normalizeParams(t)})}function Gk(e,t,n){return new Vg({type:"union",options:t,discriminator:e,...ee.normalizeParams(n)})}function Bg(e,t){return new Fg({type:"intersection",left:e,right:t})}function Hg(e,t,n){let i=t instanceof Se,r=i?n:t,o=i?t:null;return new Zg({type:"tuple",items:e,rest:o,...ee.normalizeParams(r)})}function Kg(e,t,n){return!t||!t._zod?new To({type:"record",keyType:Ga(),valueType:e,...ee.normalizeParams(t)}):new To({type:"record",keyType:e,valueType:t,...ee.normalizeParams(n)})}function qk(e,t,n){let i=qt(e);return i._zod.values=void 0,new To({type:"record",keyType:i,valueType:t,...ee.normalizeParams(n)})}function Jk(e,t,n){return new To({type:"record",keyType:e,valueType:t,mode:"loose",...ee.normalizeParams(n)})}function Yk(e,t,n){return new Wg({type:"map",keyType:e,valueType:t,...ee.normalizeParams(n)})}function Xk(e,t){return new Gg({type:"set",valueType:e,...ee.normalizeParams(t)})}function du(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new zo({type:"enum",entries:n,...ee.normalizeParams(t)})}function Qk(e,t){return new zo({type:"enum",entries:e,...ee.normalizeParams(t)})}function e_(e,t){return new qg({type:"literal",values:Array.isArray(e)?e:[e],...ee.normalizeParams(t)})}function t_(e){return yh(Jg,e)}function pu(e){return new Yg({type:"transform",transform:e})}function Ja(e){return new mu({type:"optional",innerType:e})}function Qg(e){return new Xg({type:"optional",innerType:e})}function Ya(e){return new ev({type:"nullable",innerType:e})}function r_(e){return Ja(Ya(e))}function rv(e,t){return new tv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ee.shallowClone(t)}})}function iv(e,t){return new nv({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ee.shallowClone(t)}})}function ov(e,t){return new fu({type:"nonoptional",innerType:e,...ee.normalizeParams(t)})}function n_(e){return new av({type:"success",innerType:e})}function lv(e,t){return new sv({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}function i_(e){return vh(cv,e)}function Zc(e,t){return new is({type:"pipe",in:e,out:t})}function o_(e,t,n){return new os({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function a_(e){let t=e._zod.def;return new os({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function pv(e){return new dv({type:"readonly",innerType:e})}function s_(e,t){return new mv({type:"template_literal",parts:e,...ee.normalizeParams(t)})}function hv(e){return new fv({type:"lazy",getter:e})}function l_(e){return new gv({type:"promise",innerType:e})}function c_(e){return new vv({type:"function",input:Array.isArray(e?.input)?Hg(e?.input):e?.input??ts(wi()),output:e?.output??wi()})}function u_(e){let t=new ct({check:"custom"});return t._zod.check=e,t}function d_(e,t){return xh(as,e??(()=>!0),t)}function bv(e,t={}){return wh(as,e,t)}function yv(e,t){return kh(e,t)}function f_(e,t={}){let n=new as({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...ee.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}function g_(e){let t=hv(()=>uu([Ga(e),zg(),Cg(),Dg(),ts(t),Kg(Ga(),t)]));return t}function v_(e,t){return new uv({type:"pipe",in:pu(e),out:t})}var rk,ze,Hc,Co,ot,Kc,qa,Kr,Qa,Wc,Gc,qc,Jc,Yc,Xc,Qc,eu,Tg,tu,ru,nu,iu,ou,au,su,No,Oo,ki,Ao,Do,lu,Ng,Og,Ag,Pg,Rg,Mg,Ug,es,jg,rs,ns,Lg,Vg,Fg,Zg,To,Wg,Gg,zo,qg,Jg,Yg,mu,Xg,ev,tv,nv,fu,av,sv,cv,is,os,uv,dv,mv,fv,gv,vv,as,p_,m_,h_,Wa=O(()=>{mr();mr();Za();Ba();Uc();Ha();Ig();rk=new WeakMap;ze=S("ZodType",(e,t)=>(Se.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Eo(e,"input"),output:Eo(e,"output")}}),e.toJSONSchema=Eh(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,i)=>hg(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>vg(e,n,i),e.parseAsync=async(n,i)=>gg(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>bg(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>yg(e,n,i),e.decode=(n,i)=>xg(e,n,i),e.encodeAsync=async(n,i)=>wg(e,n,i),e.decodeAsync=async(n,i)=>kg(e,n,i),e.safeEncode=(n,i)=>_g(e,n,i),e.safeDecode=(n,i)=>$g(e,n,i),e.safeEncodeAsync=async(n,i)=>Sg(e,n,i),e.safeDecodeAsync=async(n,i)=>Eg(e,n,i),Xa(e,"ZodType",{check(...n){let i=this.def;return this.clone(ee.mergeDefs(i,{checks:[...i.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,i){return qt(this,n,i)},brand(){return this},register(n,i){return n.add(this,i),this},refine(n,i){return this.check(bv(n,i))},superRefine(n,i){return this.check(yv(n,i))},overwrite(n){return this.check(Dr(n))},optional(){return Ja(this)},exactOptional(){return Qg(this)},nullable(){return Ya(this)},nullish(){return Ja(Ya(this))},nonoptional(n){return ov(this,n)},array(){return ts(this)},or(n){return uu([this,n])},and(n){return Bg(this,n)},transform(n){return Zc(this,pu(n))},default(n){return rv(this,n)},prefault(n){return iv(this,n)},catch(n){return lv(this,n)},pipe(n){return Zc(this,n)},readonly(){return pv(this)},describe(n){let i=this.clone();return Dt.add(i,{description:n}),i},meta(...n){if(n.length===0)return Dt.get(this);let i=this.clone();return Dt.add(i,n[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Dt.get(e)?.description},configurable:!0}),e)),Hc=S("_ZodString",(e,t)=>{vi.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Ih(e,i,r,o);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Xa(e,"_ZodString",{regex(...i){return this.check(mo(...i))},includes(...i){return this.check(go(...i))},startsWith(...i){return this.check(vo(...i))},endsWith(...i){return this.check(bo(...i))},min(...i){return this.check(bn(...i))},max(...i){return this.check(yi(...i))},length(...i){return this.check(xi(...i))},nonempty(...i){return this.check(bn(1,...i))},lowercase(i){return this.check(fo(i))},uppercase(i){return this.check(ho(i))},trim(){return this.check(wo())},normalize(...i){return this.check(xo(...i))},toLowerCase(){return this.check(ko())},toUpperCase(){return this.check(_o())},slugify(){return this.check($o())}})}),Co=S("ZodString",(e,t)=>{vi.init(e,t),Hc.init(e,t),e.email=n=>e.check(sc(Kc,n)),e.url=n=>e.check(Fa(Qa,n)),e.jwt=n=>e.check(Ec(su,n)),e.emoji=n=>e.check(pc(Wc,n)),e.guid=n=>e.check(Va(qa,n)),e.uuid=n=>e.check(lc(Kr,n)),e.uuidv4=n=>e.check(cc(Kr,n)),e.uuidv6=n=>e.check(uc(Kr,n)),e.uuidv7=n=>e.check(dc(Kr,n)),e.nanoid=n=>e.check(mc(Gc,n)),e.guid=n=>e.check(Va(qa,n)),e.cuid=n=>e.check(fc(qc,n)),e.cuid2=n=>e.check(hc(Jc,n)),e.ulid=n=>e.check(gc(Yc,n)),e.base64=n=>e.check(_c(iu,n)),e.base64url=n=>e.check($c(ou,n)),e.xid=n=>e.check(vc(Xc,n)),e.ksuid=n=>e.check(bc(Qc,n)),e.ipv4=n=>e.check(yc(eu,n)),e.ipv6=n=>e.check(xc(tu,n)),e.cidrv4=n=>e.check(wc(ru,n)),e.cidrv6=n=>e.check(kc(nu,n)),e.e164=n=>e.check(Sc(au,n)),e.datetime=n=>e.check(ug(n)),e.date=n=>e.check(dg(n)),e.time=n=>e.check(pg(n)),e.duration=n=>e.check(mg(n))});ot=S("ZodStringFormat",(e,t)=>{it.init(e,t),Hc.init(e,t)}),Kc=S("ZodEmail",(e,t)=>{Em.init(e,t),ot.init(e,t)});qa=S("ZodGUID",(e,t)=>{$m.init(e,t),ot.init(e,t)});Kr=S("ZodUUID",(e,t)=>{Sm.init(e,t),ot.init(e,t)});Qa=S("ZodURL",(e,t)=>{Im.init(e,t),ot.init(e,t)});Wc=S("ZodEmoji",(e,t)=>{Tm.init(e,t),ot.init(e,t)});Gc=S("ZodNanoID",(e,t)=>{zm.init(e,t),ot.init(e,t)});qc=S("ZodCUID",(e,t)=>{Cm.init(e,t),ot.init(e,t)});Jc=S("ZodCUID2",(e,t)=>{Nm.init(e,t),ot.init(e,t)});Yc=S("ZodULID",(e,t)=>{Om.init(e,t),ot.init(e,t)});Xc=S("ZodXID",(e,t)=>{Am.init(e,t),ot.init(e,t)});Qc=S("ZodKSUID",(e,t)=>{Dm.init(e,t),ot.init(e,t)});eu=S("ZodIPv4",(e,t)=>{jm.init(e,t),ot.init(e,t)});Tg=S("ZodMAC",(e,t)=>{Vm.init(e,t),ot.init(e,t)});tu=S("ZodIPv6",(e,t)=>{Lm.init(e,t),ot.init(e,t)});ru=S("ZodCIDRv4",(e,t)=>{Fm.init(e,t),ot.init(e,t)});nu=S("ZodCIDRv6",(e,t)=>{Bm.init(e,t),ot.init(e,t)});iu=S("ZodBase64",(e,t)=>{Hm.init(e,t),ot.init(e,t)});ou=S("ZodBase64URL",(e,t)=>{Km.init(e,t),ot.init(e,t)});au=S("ZodE164",(e,t)=>{Wm.init(e,t),ot.init(e,t)});su=S("ZodJWT",(e,t)=>{Gm.init(e,t),ot.init(e,t)});No=S("ZodCustomStringFormat",(e,t)=>{qm.init(e,t),ot.init(e,t)});Oo=S("ZodNumber",(e,t)=>{Yl.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Th(e,i,r,o),Xa(e,"ZodNumber",{gt(i,r){return this.check(Zr(i,r))},gte(i,r){return this.check(Yt(i,r))},min(i,r){return this.check(Yt(i,r))},lt(i,r){return this.check(Br(i,r))},lte(i,r){return this.check(pr(i,r))},max(i,r){return this.check(pr(i,r))},int(i){return this.check(Bc(i))},safe(i){return this.check(Bc(i))},positive(i){return this.check(Zr(0,i))},nonnegative(i){return this.check(Yt(0,i))},negative(i){return this.check(Br(0,i))},nonpositive(i){return this.check(pr(0,i))},multipleOf(i,r){return this.check(Vn(i,r))},step(i,r){return this.check(Vn(i,r))},finite(){return this}});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=!0,e.format=n.format??null});ki=S("ZodNumberFormat",(e,t)=>{Jm.init(e,t),Oo.init(e,t)});Ao=S("ZodBoolean",(e,t)=>{Pa.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zh(e,n,i,r)});Do=S("ZodBigInt",(e,t)=>{Xl.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Ch(e,i,r,o),e.gte=(i,r)=>e.check(Yt(i,r)),e.min=(i,r)=>e.check(Yt(i,r)),e.gt=(i,r)=>e.check(Zr(i,r)),e.gte=(i,r)=>e.check(Yt(i,r)),e.min=(i,r)=>e.check(Yt(i,r)),e.lt=(i,r)=>e.check(Br(i,r)),e.lte=(i,r)=>e.check(pr(i,r)),e.max=(i,r)=>e.check(pr(i,r)),e.positive=i=>e.check(Zr(BigInt(0),i)),e.negative=i=>e.check(Br(BigInt(0),i)),e.nonpositive=i=>e.check(pr(BigInt(0),i)),e.nonnegative=i=>e.check(Yt(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(Vn(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});lu=S("ZodBigIntFormat",(e,t)=>{Ym.init(e,t),Do.init(e,t)});Ng=S("ZodSymbol",(e,t)=>{Xm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Nh(e,n,i,r)});Og=S("ZodUndefined",(e,t)=>{Qm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ah(e,n,i,r)});Ag=S("ZodNull",(e,t)=>{ef.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Oh(e,n,i,r)});Pg=S("ZodAny",(e,t)=>{tf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Rh(e,n,i,r)});Rg=S("ZodUnknown",(e,t)=>{rf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Mh(e,n,i,r)});Mg=S("ZodNever",(e,t)=>{nf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ph(e,n,i,r)});Ug=S("ZodVoid",(e,t)=>{of.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dh(e,n,i,r)});es=S("ZodDate",(e,t)=>{af.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Uh(e,i,r,o),e.min=(i,r)=>e.check(Yt(i,r)),e.max=(i,r)=>e.check(pr(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});jg=S("ZodArray",(e,t)=>{sf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Jh(e,n,i,r),e.element=t.element,Xa(e,"ZodArray",{min(n,i){return this.check(bn(n,i))},nonempty(n){return this.check(bn(1,n))},max(n,i){return this.check(yi(n,i))},length(n,i){return this.check(xi(n,i))},unwrap(){return this.element}})});rs=S("ZodObject",(e,t)=>{lf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Yh(e,n,i,r),ee.defineLazy(e,"shape",()=>t.shape),Xa(e,"ZodObject",{keyof(){return du(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:wi()})},loose(){return this.clone({...this._zod.def,catchall:wi()})},strict(){return this.clone({...this._zod.def,catchall:cu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return ee.extend(this,n)},safeExtend(n){return ee.safeExtend(this,n)},merge(n){return ee.merge(this,n)},pick(n){return ee.pick(this,n)},omit(n){return ee.omit(this,n)},partial(...n){return ee.partial(mu,this,n[0])},required(...n){return ee.required(fu,this,n[0])}})});ns=S("ZodUnion",(e,t)=>{Ra.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ac(e,n,i,r),e.options=t.options});Lg=S("ZodXor",(e,t)=>{ns.init(e,t),cf.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ac(e,n,i,r),e.options=t.options});Vg=S("ZodDiscriminatedUnion",(e,t)=>{ns.init(e,t),uf.init(e,t)});Fg=S("ZodIntersection",(e,t)=>{df.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Xh(e,n,i,r)});Zg=S("ZodTuple",(e,t)=>{Ql.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Qh(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});To=S("ZodRecord",(e,t)=>{pf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>eg(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});Wg=S("ZodMap",(e,t)=>{mf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Gh(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Hr(...n)),e.nonempty=n=>e.check(Hr(1,n)),e.max=(...n)=>e.check(Fn(...n)),e.size=(...n)=>e.check(bi(...n))});Gg=S("ZodSet",(e,t)=>{ff.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qh(e,n,i,r),e.min=(...n)=>e.check(Hr(...n)),e.nonempty=n=>e.check(Hr(1,n)),e.max=(...n)=>e.check(Fn(...n)),e.size=(...n)=>e.check(bi(...n))});zo=S("ZodEnum",(e,t)=>{hf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>jh(e,i,r,o),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 zo({...t,checks:[],...ee.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 zo({...t,checks:[],...ee.normalizeParams(r),entries:o})}});qg=S("ZodLiteral",(e,t)=>{gf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Lh(e,n,i,r),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]}})});Jg=S("ZodFile",(e,t)=>{vf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Bh(e,n,i,r),e.min=(n,i)=>e.check(Hr(n,i)),e.max=(n,i)=>e.check(Fn(n,i)),e.mime=(n,i)=>e.check(yo(Array.isArray(n)?n:[n],i))});Yg=S("ZodTransform",(e,t)=>{bf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Wh(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Rn(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(ee.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(ee.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});mu=S("ZodOptional",(e,t)=>{ec.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dc(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Xg=S("ZodExactOptional",(e,t)=>{yf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dc(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});ev=S("ZodNullable",(e,t)=>{xf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});tv=S("ZodDefault",(e,t)=>{wf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ng(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});nv=S("ZodPrefault",(e,t)=>{kf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ig(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});fu=S("ZodNonOptional",(e,t)=>{_f.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>rg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});av=S("ZodSuccess",(e,t)=>{$f.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Zh(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});sv=S("ZodCatch",(e,t)=>{Sf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>og(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});cv=S("ZodNaN",(e,t)=>{Ef.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Vh(e,n,i,r)});is=S("ZodPipe",(e,t)=>{tc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ag(e,n,i,r),e.in=t.in,e.out=t.out});os=S("ZodCodec",(e,t)=>{is.init(e,t),Ma.init(e,t)});uv=S("ZodPreprocess",(e,t)=>{is.init(e,t),If.init(e,t)}),dv=S("ZodReadonly",(e,t)=>{Tf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});mv=S("ZodTemplateLiteral",(e,t)=>{zf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Fh(e,n,i,r)});fv=S("ZodLazy",(e,t)=>{Of.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cg(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});gv=S("ZodPromise",(e,t)=>{Nf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});vv=S("ZodFunction",(e,t)=>{Cf.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Kh(e,n,i,r)});as=S("ZodCustom",(e,t)=>{Af.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Hh(e,n,i,r)});p_=_h,m_=$h;h_=(...e)=>Sh({Codec:os,Boolean:Ao,String:Co},...e)});function v4(e){wt({customError:e})}function b4(){return wt().customError}var g4,xv,b_=O(()=>{mr();g4={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"};xv||(xv={})});function x4(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 w4(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 y_(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return pe.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 pe.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=w4(r,t),a=Vt(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===!0&&r.length===1&&r[0]===null)return pe.null();if(r.length===0)return pe.never();if(r.length===1)return pe.literal(r[0]);if(r.every(a=>typeof a=="string"))return pe.enum(r);let o=r.map(a=>pe.literal(a));return o.length<2?o[0]:pe.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return pe.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return y_(a,t)});return r.length===0?pe.never():r.length===1?r[0]:pe.union(r)}if(!n)return pe.any();let i;switch(n){case"string":{let r=pe.string();if(e.format){let o=e.format;o==="email"?r=r.check(pe.email()):o==="uri"||o==="uri-reference"?r=r.check(pe.url()):o==="uuid"||o==="guid"?r=r.check(pe.uuid()):o==="date-time"?r=r.check(pe.iso.datetime()):o==="date"?r=r.check(pe.iso.date()):o==="time"?r=r.check(pe.iso.time()):o==="duration"?r=r.check(pe.iso.duration()):o==="ipv4"?r=r.check(pe.ipv4()):o==="ipv6"?r=r.check(pe.ipv6()):o==="mac"?r=r.check(pe.mac()):o==="cidr"?r=r.check(pe.cidrv4()):o==="cidr-v6"?r=r.check(pe.cidrv6()):o==="base64"?r=r.check(pe.base64()):o==="base64url"?r=r.check(pe.base64url()):o==="e164"?r=r.check(pe.e164()):o==="jwt"?r=r.check(pe.jwt()):o==="emoji"?r=r.check(pe.emoji()):o==="nanoid"?r=r.check(pe.nanoid()):o==="cuid"?r=r.check(pe.cuid()):o==="cuid2"?r=r.check(pe.cuid2()):o==="ulid"?r=r.check(pe.ulid()):o==="xid"?r=r.check(pe.xid()):o==="ksuid"&&(r=r.check(pe.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"?pe.number().int():pe.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===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=pe.boolean();break}case"null":{i=pe.null();break}case"object":{let r={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(o)){let d=Vt(u,t);r[c]=a.has(c)?d:d.optional()}if(e.propertyNames){let c=Vt(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?Vt(e.additionalProperties,t):pe.any();if(Object.keys(r).length===0){i=pe.record(c,u);break}let d=pe.object(r).passthrough(),p=pe.looseRecord(c,u);i=pe.intersection(d,p);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),d=[];for(let m of u){let f=Vt(c[m],t),$=pe.string().regex(new RegExp(m));d.push(pe.looseRecord($,f))}let p=[];if(Object.keys(r).length>0&&p.push(pe.object(r).passthrough()),p.push(...d),p.length===0)i=pe.object({}).passthrough();else if(p.length===1)i=p[0];else{let m=pe.intersection(p[0],p[1]);for(let f=2;f<p.length;f++)m=pe.intersection(m,p[f]);i=m}break}let s=pe.object(r);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(Vt(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=>Vt(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?Vt(o,t):void 0;s?i=pe.tuple(a).rest(s):i=pe.tuple(a),typeof e.minItems=="number"&&(i=i.check(pe.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(pe.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(c=>Vt(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?Vt(e.additionalItems,t):void 0;s?i=pe.tuple(a).rest(s):i=pe.tuple(a),typeof e.minItems=="number"&&(i=i.check(pe.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(pe.maxLength(e.maxItems)))}else if(o!==void 0){let a=Vt(o,t),s=pe.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=pe.array(pe.any());break}default:throw new Error(`Unsupported type: ${n}`)}return i}function Vt(e,t){if(typeof e=="boolean")return e?pe.any():pe.never();let n=y_(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(u=>Vt(u,t)),c=pe.union(s);n=i?pe.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>Vt(u,t)),c=pe.xor(s);n=i?pe.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:pe.any();else{let s=i?n:Vt(e.allOf[0],t),c=i?0:1;for(let u=c;u<e.allOf.length;u++)s=pe.intersection(s,Vt(e.allOf[u],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=pe.nullable(n)),e.readOnly===!0&&(n=pe.readonly(n)),e.default!==void 0&&(n=n.default(e.default));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))y4.has(s)||(r[s]=e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),e.description&&(n=n.describe(e.description)),n}function x_(e,t){if(typeof e=="boolean")return e?pe.any():pe.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=x4(n,t?.defaultTarget),r=n.$defs||n.definitions||{},o={version:i,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Dt};return Vt(n,o)}var pe,y4,w_=O(()=>{La();Uc();Ha();Wa();pe={...Ka,...Mc,iso:Io},y4=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"])});var wv={};Nr(wv,{bigint:()=>S4,boolean:()=>$4,date:()=>E4,number:()=>_4,string:()=>k4});function k4(e){return Ff(Co,e)}function _4(e){return Jf(Oo,e)}function $4(e){return nh(Ao,e)}function S4(e){return oh(Do,e)}function E4(e){return gh(es,e)}var k_=O(()=>{mr();Wa()});var l={};Nr(l,{$brand:()=>cp,$input:()=>Lf,$output:()=>jf,NEVER:()=>lp,TimePrecision:()=>Zf,ZodAny:()=>Pg,ZodArray:()=>jg,ZodBase64:()=>iu,ZodBase64URL:()=>ou,ZodBigInt:()=>Do,ZodBigIntFormat:()=>lu,ZodBoolean:()=>Ao,ZodCIDRv4:()=>ru,ZodCIDRv6:()=>nu,ZodCUID:()=>qc,ZodCUID2:()=>Jc,ZodCatch:()=>sv,ZodCodec:()=>os,ZodCustom:()=>as,ZodCustomStringFormat:()=>No,ZodDate:()=>es,ZodDefault:()=>tv,ZodDiscriminatedUnion:()=>Vg,ZodE164:()=>au,ZodEmail:()=>Kc,ZodEmoji:()=>Wc,ZodEnum:()=>zo,ZodError:()=>f4,ZodExactOptional:()=>Xg,ZodFile:()=>Jg,ZodFirstPartyTypeKind:()=>xv,ZodFunction:()=>vv,ZodGUID:()=>qa,ZodIPv4:()=>eu,ZodIPv6:()=>tu,ZodISODate:()=>Lc,ZodISODateTime:()=>jc,ZodISODuration:()=>Fc,ZodISOTime:()=>Vc,ZodIntersection:()=>Fg,ZodIssueCode:()=>g4,ZodJWT:()=>su,ZodKSUID:()=>Qc,ZodLazy:()=>fv,ZodLiteral:()=>qg,ZodMAC:()=>Tg,ZodMap:()=>Wg,ZodNaN:()=>cv,ZodNanoID:()=>Gc,ZodNever:()=>Mg,ZodNonOptional:()=>fu,ZodNull:()=>Ag,ZodNullable:()=>ev,ZodNumber:()=>Oo,ZodNumberFormat:()=>ki,ZodObject:()=>rs,ZodOptional:()=>mu,ZodPipe:()=>is,ZodPrefault:()=>nv,ZodPreprocess:()=>uv,ZodPromise:()=>gv,ZodReadonly:()=>dv,ZodRealError:()=>lr,ZodRecord:()=>To,ZodSet:()=>Gg,ZodString:()=>Co,ZodStringFormat:()=>ot,ZodSuccess:()=>av,ZodSymbol:()=>Ng,ZodTemplateLiteral:()=>mv,ZodTransform:()=>Yg,ZodTuple:()=>Zg,ZodType:()=>ze,ZodULID:()=>Yc,ZodURL:()=>Qa,ZodUUID:()=>Kr,ZodUndefined:()=>Og,ZodUnion:()=>ns,ZodUnknown:()=>Rg,ZodVoid:()=>Ug,ZodXID:()=>Xc,ZodXor:()=>Lg,_ZodString:()=>Hc,_default:()=>rv,_function:()=>c_,any:()=>Lk,array:()=>ts,base64:()=>_k,base64url:()=>$k,bigint:()=>Pk,boolean:()=>Cg,catch:()=>lv,check:()=>u_,cidrv4:()=>wk,cidrv6:()=>kk,clone:()=>qt,codec:()=>o_,coerce:()=>wv,config:()=>wt,core:()=>yn,cuid:()=>mk,cuid2:()=>fk,custom:()=>d_,date:()=>Fk,decode:()=>xg,decodeAsync:()=>kg,describe:()=>p_,discriminatedUnion:()=>Gk,e164:()=>Sk,email:()=>nk,emoji:()=>dk,encode:()=>yg,encodeAsync:()=>wg,endsWith:()=>bo,enum:()=>du,exactOptional:()=>Qg,file:()=>t_,flattenError:()=>Ca,float32:()=>Nk,float64:()=>Ok,formatError:()=>Na,fromJSONSchema:()=>x_,function:()=>c_,getErrorMap:()=>b4,globalRegistry:()=>Dt,gt:()=>Zr,gte:()=>Yt,guid:()=>ik,hash:()=>Ck,hex:()=>zk,hostname:()=>Tk,httpUrl:()=>uk,includes:()=>go,instanceof:()=>f_,int:()=>Bc,int32:()=>Ak,int64:()=>Rk,intersection:()=>Bg,invertCodec:()=>a_,ipv4:()=>bk,ipv6:()=>xk,iso:()=>Io,json:()=>g_,jwt:()=>Ek,keyof:()=>Bk,ksuid:()=>vk,lazy:()=>hv,length:()=>xi,literal:()=>e_,locales:()=>ja,looseObject:()=>Kk,looseRecord:()=>Jk,lowercase:()=>fo,lt:()=>Br,lte:()=>pr,mac:()=>yk,map:()=>Yk,maxLength:()=>yi,maxSize:()=>Fn,meta:()=>m_,mime:()=>yo,minLength:()=>bn,minSize:()=>Hr,multipleOf:()=>Vn,nan:()=>i_,nanoid:()=>pk,nativeEnum:()=>Qk,negative:()=>Tc,never:()=>cu,nonnegative:()=>Cc,nonoptional:()=>ov,nonpositive:()=>zc,normalize:()=>xo,null:()=>Dg,nullable:()=>Ya,nullish:()=>r_,number:()=>zg,object:()=>Zk,optional:()=>Ja,overwrite:()=>Dr,parse:()=>hg,parseAsync:()=>gg,partialRecord:()=>qk,pipe:()=>Zc,positive:()=>Ic,prefault:()=>iv,preprocess:()=>v_,prettifyError:()=>kp,promise:()=>l_,property:()=>Nc,readonly:()=>pv,record:()=>Kg,refine:()=>bv,regex:()=>mo,regexes:()=>dr,registry:()=>ac,safeDecode:()=>$g,safeDecodeAsync:()=>Eg,safeEncode:()=>_g,safeEncodeAsync:()=>Sg,safeParse:()=>vg,safeParseAsync:()=>bg,set:()=>Xk,setErrorMap:()=>v4,size:()=>bi,slugify:()=>$o,startsWith:()=>vo,strictObject:()=>Hk,string:()=>Ga,stringFormat:()=>Ik,stringbool:()=>h_,success:()=>n_,superRefine:()=>yv,symbol:()=>Uk,templateLiteral:()=>s_,toJSONSchema:()=>Pc,toLowerCase:()=>ko,toUpperCase:()=>_o,transform:()=>pu,treeifyError:()=>wp,trim:()=>wo,tuple:()=>Hg,uint32:()=>Dk,uint64:()=>Mk,ulid:()=>hk,undefined:()=>jk,union:()=>uu,unknown:()=>wi,uppercase:()=>ho,url:()=>ck,util:()=>ee,uuid:()=>ok,uuidv4:()=>ak,uuidv6:()=>sk,uuidv7:()=>lk,void:()=>Vk,xid:()=>gk,xor:()=>Wk});var kv=O(()=>{mr();Wa();Uc();fg();Ig();b_();mr();Pf();mr();Za();w_();Uf();Ha();Ha();k_();wt(rc())});var Oe=O(()=>{kv();kv()});var I4,__,_v,$v=O(()=>{"use strict";Oe();I4=l.enum(["linkedin","x","facebook","tiktok","youtube","github","instagram","threads","email","phone","website","calendar"]),__=l.object({platform:I4,handle:l.string(),url:l.string().optional()}),_v=l.preprocess(e=>Array.isArray(e)?e.filter(t=>t&&typeof t=="object"&&t.platform&&t.handle):e,l.array(__))});var $_,_i,S_,hu,E_,T4,I_,T_,z_,z4,bt,C_,N_,O_,A_,D_,P_,C4,Kn=O(()=>{"use strict";Oe();$_=["image","audio","video","document"],_i=l.enum($_),S_=["avatar","cover","general"],hu=l.enum(S_),E_=l.enum(["processing","active","failed","deleted"]),T4=l.enum(["low","standard","high"]),I_=l.enum(["jpg","jpeg","png","gif","webp","svg"]),T_=l.enum(["mp4","webm","ogg","mov","avi"]),z_=l.enum(["mp3","wav","ogg","opus","aac","flac","webm","m4a","mp4"]),z4=l.object({mediaId:l.string(),userId:l.string(),orgId:l.string(),botId:l.string().nullable().optional(),filename:l.string(),mimeType:l.string(),size:l.number(),src:l.string(),alt:l.string().optional(),context:hu.default("general"),status:E_.default("processing"),quality:T4.default("standard"),createdAt:l.string().optional(),updatedAt:l.string().optional()}),bt=z4.extend({type:_i.optional(),mediaType:_i.optional(),className:l.string().optional(),width:l.number().optional(),height:l.number().optional(),duration:l.number().optional(),blurhash:l.string().optional()}).partial(),C_=l.object({duration:l.number().optional(),thumbnail:l.string().optional(),autoplay:l.boolean().optional(),loop:l.boolean().optional(),muted:l.boolean().optional(),controls:l.boolean().optional()}),N_=l.object({duration:l.number().optional(),autoplay:l.boolean().optional(),loop:l.boolean().optional(),muted:l.boolean().optional(),controls:l.boolean().optional()}),O_=bt.extend({mediaType:l.literal("image"),imageFormat:I_.optional()}),A_=bt.extend({mediaType:l.literal("video"),videoFormat:T_.optional(),video:C_.optional()}),D_=bt.extend({mediaType:l.literal("audio"),audioFormat:z_.optional(),audio:N_.optional()}),P_=bt.extend({mediaType:l.literal("document")}),C4=l.discriminatedUnion("mediaType",[O_,A_,D_,P_])});var gu,Sv=O(()=>{"use strict";Oe();gu=l.enum(["xxs","xs","sm","md","lg","xl"])});var Ev,Iv,ss,N4,Tv=O(()=>{"use strict";Oe();Kn();Sv();Ev=l.enum(["primary","default","overlay","red","green","indigo","orange"]),Iv=l.enum(["ghost","link","outline","solid"]),ss=l.object({key:l.string().optional(),label:l.string().optional(),href:l.string().optional(),size:gu.optional(),theme:Ev.optional(),design:Iv.optional(),icon:l.union([l.string(),bt]).optional(),iconAfter:l.union([l.string(),bt]).optional(),rounding:l.enum(["full","md","lg"]).optional(),loading:l.boolean().optional(),disabled:l.boolean().optional(),tooltip:l.string().optional(),onClick:l.any().optional(),testId:l.string().optional(),target:l.enum(["_blank","_self"]).optional(),type:l.enum(["button","submit","reset"]).optional()}),N4=l.object({buttons:l.array(ss).optional(),size:gu.optional(),theme:Ev.optional(),design:Iv.optional()})});var vu,zv=O(()=>{"use strict";vu="$49/month"});var O4,R_,A4,ls,Cv,bu=O(()=>{"use strict";Oe();zv();O4=l.enum(["account","error"]),R_=["billing_no_plan","billing_seat_limit","billing_past_due","billing_runaway_cap","billing_budget_reached","billing_demo_spent","bot_deleted","computer_not_deployed","computer_boot_failed","computer_unreachable","computer_wake_timeout","stream_timeout","stream_disconnect","empty_stream","tool_protocol","rate_limit"],A4=l.enum(R_),ls=l.object({bucket:O4,code:A4,title:l.string(),help:l.string().optional(),actionLabel:l.string(),actionUrl:l.string()}),Cv={billing_no_plan:{bucket:"account",title:"Billing needed",help:`Add a payment method to turn live replies back on. Plans start at ${vu} per active assistant, cancel anytime.`,actionLabel:"Open billing",oneLine:`The workspace needs a payment method before this assistant can reply; plans start at ${vu} per active assistant.`},billing_seat_limit:{bucket:"account",title:"Active assistant limit reached",help:"Your active assistants are all in use. Put one assistant to sleep or ask us to raise the ceiling.",actionLabel:"Open billing",oneLine:"The workspace has no unused active-assistant slots; one assistant must sleep or the limit must be raised."},billing_past_due:{bucket:"account",title:"Assistants paused",help:"Payment is overdue. Fix it and we\u2019ll bring your assistants back online.",actionLabel:"Fix payment",oneLine:"The workspace payment is overdue; its owner must fix it before assistants come back online."},billing_runaway_cap:{bucket:"account",title:"Usage limit reached",help:"Your workspace reached its usage limit. Review billing or contact support to keep your assistant running.",actionLabel:"Contact support",oneLine:"The workspace reached its usage limit; its owner can review billing or contact support."},billing_budget_reached:{bucket:"account",title:"Not enough credits",help:"Your workspace needs more included credits for another reply. Upgrade an assistant or wait for the next billing period.",actionLabel:"Review billing",oneLine:"The workspace needs more included credits; its owner can upgrade an assistant or wait for the next billing period."},billing_demo_spent:{bucket:"account",title:"Demo used up",help:"Your assistant has used the free demo. Starting a trial keeps it running around the clock, and is free for ten days.",actionLabel:"Start free trial",oneLine:"This workspace has used its free demo; starting a trial keeps the assistant running and is free for ten days."},bot_deleted:{bucket:"error",title:"Assistant deleted",help:"This chat is still here, but the assistant can no longer reply.",actionLabel:"",oneLine:"This assistant was deleted. The chat history remains, but it can no longer reply."},computer_not_deployed:{bucket:"error",title:"Assistant asleep",help:"Open the assistant profile to wake it up before chatting.",actionLabel:"Open assistant",oneLine:"This assistant needs to wake up before it can reply."},computer_boot_failed:{bucket:"error",title:"Couldn't wake up",help:"Open the assistant profile to restart it or check what failed.",actionLabel:"Open assistant",oneLine:"This assistant tried to wake up but hit an error."},computer_unreachable:{bucket:"error",title:"Not responding",help:"Open the assistant profile to check status or restart it.",actionLabel:"Open assistant",oneLine:"This assistant is not responding right now; its owner can check its status."},computer_wake_timeout:{bucket:"error",title:"Still waking",help:"Open the assistant profile to check status, or wait a minute and try again.",actionLabel:"Open assistant",oneLine:"This assistant is taking too long to wake up."},stream_timeout:{bucket:"error",title:"Reply too slow",help:"Your assistant took too long to start replying. Try your message again.",actionLabel:"Try again",oneLine:"This assistant took too long to start replying; try the message again."},stream_disconnect:{bucket:"error",title:"Connection lost",help:"The connection dropped while your assistant was replying. Send your message again to retry.",actionLabel:"Try again",oneLine:"The connection dropped while this assistant was replying; try the message again."},empty_stream:{bucket:"error",title:"Empty reply",help:"Your assistant could not generate a reply. Try your message again.",actionLabel:"Try again",oneLine:"This assistant did not return a reply; try the message again."},tool_protocol:{bucket:"error",title:"Tool call failed",help:"Your assistant tried to use a tool in a format PageLines could not run. Try the message again.",actionLabel:"Try again",oneLine:"This assistant tried to use a tool in a format PageLines could not run; try the message again."},rate_limit:{bucket:"error",title:"Slow down",help:"Too many messages at once. Wait a moment, then send your message again.",actionLabel:"Try again",oneLine:"Too many messages arrived at once; wait a moment and try again."}}});function xu(e){if(Pv(e.operation))return"changing";if(e.blocker?.bucket==="account"&&e.lifecycle!=="running")return"asleep";if(e.operation?.status==="failed")return"stuck";switch(e.lifecycle){case"running":return"awake";case"stopped":return"asleep";case"starting":return"changing";case"unreachable":case"error":return"stuck";case"unknown":return}}function wu(e,t){let n=e.operation,i=D4[e.lifecycle]??"Unknown",r=Dv[e.lifecycle]??"grey",o=n?P4[n.kind]??"Working":void 0,a=o?n?.status==="failed"?`${o} failed`:o:i,s=n?n.status==="failed"?"red":"amber":r,c=`${t} \xB7 ${a}`;return{...e,color:s,label:a,tooltip:c}}function Pv(e){return e?.status==="running"||e?.status==="coalesced"}var cs,Nv,Ov,Av,Po,$i,Dv,M_,yu,D4,P4,U_,Wn=O(()=>{"use strict";Oe();bu();cs=l.enum(["unknown","stopped","starting","running","unreachable","error"]),Nv=l.enum(["wake","restart","rebuild","config_apply","setup"]),Ov=l.enum(["running","coalesced","failed"]),Av=l.object({kind:Nv,status:Ov,startedAt:l.string().datetime(),detail:l.string().optional()}).strict(),Po=l.object({lifecycle:cs,changedAt:l.string().datetime().optional(),detail:l.string().optional(),blocker:ls.optional(),operation:Av.optional()}).strict(),$i=Object.freeze({lifecycle:"unknown"}),Dv={running:"green",starting:"amber",unreachable:"red",error:"red",stopped:"grey",unknown:"grey"},M_=l.enum(["awake","asleep","changing","stuck"]),yu={awake:"Awake",asleep:"Asleep",changing:"Changing",stuck:"Needs attention"};D4={running:"Online",starting:"Waking up",unreachable:"Unreachable",error:"Error",stopped:"Asleep",unknown:"Checking"},P4={wake:"Waking up",restart:"Restarting",rebuild:"Rebuilding",config_apply:"Applying config",setup:"Setting up"};U_=l.enum(["wake","sleep","restart","rebuild"])});var j_,R4,L_=O(()=>{"use strict";Oe();Wn();Tv();Kn();j_=l.object({key:l.string().optional(),id:l.string().optional(),label:l.string().optional(),srLabel:l.string().optional(),subLabel:l.string().optional(),value:l.union([l.string(),l.number()]).optional(),description:l.string().optional(),state:M_.optional(),count:l.number().optional(),className:l.string().optional(),media:bt.optional(),subMedia:bt.optional(),cover:bt.optional(),icon:bt.optional(),iconAfter:bt.optional(),subIcon:l.string().optional(),href:l.string().optional(),target:l.enum(["_self","_blank"]).optional(),onClick:l.any().optional(),theme:l.enum(["primary","default"]).optional(),isActive:l.boolean().optional(),isDisabled:l.boolean().optional(),isHidden:l.boolean().optional(),priority:l.number().optional(),testId:l.string().optional(),items:l.array(l.any()).optional(),badges:l.array(ss).optional(),meta:l.array(ss).optional(),menuItems:l.array(l.any()).optional()}),R4=l.object({title:l.string().optional(),description:l.string().optional(),items:l.array(j_).optional()})});var V_=O(()=>{"use strict"});var us,ku,Rv,F_,M4,U4,j4,L4,V4,F4,_u,B4,B_,Mv,ds=O(()=>{"use strict";Oe();$v();Kn();us=l.string().trim().transform(e=>{if(!e.includes("/"))return e;try{let t=new URL(/^https?:\/\//i.test(e)?e:`https://${e}`),[n,i]=t.pathname.split("/").filter(Boolean),r=t.hostname.toLowerCase();if((r==="linkedin.com"||r.endsWith(".linkedin.com"))&&n?.toLowerCase()==="in"&&i)return i}catch{}return e}).pipe(l.string().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/,"Use a LinkedIn username or profile URL")),ku=l.string().trim().transform((e,t)=>{try{let n=new URL(/^https?:\/\//i.test(e)?e:`https://${e}`),i=n.hostname.toLowerCase().replace(/^www\./,""),r=n.pathname.split("/").filter(Boolean)[0];if(!r||!["x.com","twitter.com","facebook.com"].includes(i))throw new Error("unsupported profile");return i==="twitter.com"?`https://x.com/${r}`:`https://${i}/${r}`}catch{return t.addIssue({code:"custom",message:"Use a LinkedIn username or an X or Facebook profile URL"}),l.NEVER}}),Rv=l.string().trim().toLowerCase().pipe(l.email()),F_=l.object({lastBotId:l.string().nullable().optional(),userId:l.string(),email:l.string().optional(),handle:l.string().optional(),fullName:l.string().optional(),bio:l.string().optional(),linkedinUsername:us.optional(),avatarId:l.string().optional(),avatar:bt.optional(),isEmailVerified:l.boolean().optional(),primaryOrgId:l.string().optional(),lastActiveOrgId:l.string().optional(),onboarding:l.any().optional(),location:l.string().optional(),geo:l.any().optional(),systemRole:l.string().optional(),status:l.string().optional(),lastSeenAt:l.string().optional(),createdAt:l.string().optional(),updatedAt:l.string().optional(),onboarded:l.boolean().optional()}),M4=l.object({lastBotId:l.string().nullable().optional(),name:l.string().min(1).max(100).optional(),bio:l.string().max(500).nullable().optional(),linkedinUsername:us.nullable().optional(),profileUrl:ku.nullable().optional(),avatar:l.object({src:l.string(),mediaId:l.string()}).optional(),primaryOrgId:l.string().optional(),lastActiveOrgId:l.string().optional(),onboarding:l.any().optional()}).partial(),U4=l.object({email:Rv}),j4=l.object({email:Rv,code:l.string().min(6,"Verification code is required"),timezone:l.string().max(64).optional()}),L4=l.object({newEmail:Rv}),V4=l.object({credential:l.string().optional(),code:l.string().optional(),timezone:l.string().max(64).optional(),source:l.enum(["web","ios"]).optional()}).refine(e=>e.credential||e.code,{message:"Either credential or code must be provided"}),F4=l.object({identityToken:l.string().min(1),fullName:l.string().optional(),timezone:l.string().max(64).optional()}),_u=l.object({orgId:l.string().optional(),handle:l.string().optional(),name:l.string().optional(),email:l.string().nullable().optional(),website:l.string().url().nullable().optional(),summary:l.string().nullable().optional(),avatarId:l.string().nullable().optional(),avatar:bt.optional(),coverId:l.string().nullable().optional(),cover:bt.optional(),accounts:_v.nullable().optional(),ownerId:l.string().optional(),isPersonal:l.boolean().optional(),stripeCustomerIdTest:l.string().nullable().optional(),stripeCustomerIdLive:l.string().nullable().optional(),maxUsers:l.number().optional(),timezone:l.string().nullable().optional(),apiKey:l.string().nullable().optional(),syncedPlan:l.string().nullable().optional(),syncedBillingStatus:l.string().nullable().optional(),firstPaidAt:l.string().nullable().optional(),entitlementDeleteAt:l.string().nullable().optional(),billingLastSyncedAt:l.string().nullable().optional(),syncedPeriodStart:l.string().nullable().optional(),syncedPeriodEnd:l.string().nullable().optional(),onboarding:l.any().optional(),status:l.string().optional(),createdAt:l.string().optional(),updatedAt:l.string().optional()}),B4=l.object({completedAt:l.string().datetime().optional(),setupBy:l.string().optional(),billingSetup:l.boolean().optional(),teamInvitesSetup:l.boolean().optional(),brandingSetup:l.boolean().optional(),domainsSetup:l.boolean().optional()}),B_=l.object({membershipId:l.string(),orgId:l.string(),name:l.string(),handle:l.string(),avatarId:l.string().optional(),avatar:bt.optional(),coverId:l.string().optional(),cover:bt.optional(),role:l.enum(["owner","admin","member","observer"]),inviterName:l.string().optional(),memberCount:l.number().optional(),hasComputer:l.boolean().optional(),computerCount:l.number().optional(),joinedAt:l.string().datetime(),onboarding:B4.optional()}),Mv=F_.extend({orgs:l.array(B_).optional()})});var Z_=O(()=>{"use strict";$v();Tv();L_();Sv();V_();Kn();ds()});function Z4(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return Math.abs(t)}function H4(e){let t=e?Z4(e):0;return H_[t%H_.length]}function Gn(e){let t=e?e[0].toUpperCase():"?",[n,i]=H4(e),r=['<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80">','<defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1">',`<stop offset="0%" stop-color="${n}"/>`,`<stop offset="100%" stop-color="${i}"/>`,"</linearGradient></defs>",'<rect width="80" height="80" fill="url(#g)"/>',`<text x="40" y="40" text-anchor="middle" dominant-baseline="central" fill="white" font-family="system-ui,-apple-system,sans-serif" font-size="36" font-weight="600">${t}</text>`,"</svg>"].join("");return`data:image/svg+xml;base64,${btoa(r)}`}var H_,$u=O(()=>{"use strict";H_=[["#6366f1","#8b5cf6"],["#3b82f6","#06b6d4"],["#10b981","#34d399"],["#f59e0b","#f97316"],["#ef4444","#f97316"],["#ec4899","#8b5cf6"],["#14b8a6","#3b82f6"],["#8b5cf6","#ec4899"]]});var K_=O(()=>{"use strict"});var W_=O(()=>{"use strict"});var G_=O(()=>{"use strict"});function W4(e){return e.trim().toUpperCase().replace(/\s+/g," ")}function ps(e){let t=W4(e);return t.length<=64&&K4.has(t)}var q_,K4,J_=O(()=>{"use strict";q_=["[SILENT]","SILENT","NO_REPLY","NO REPLY","NO-OP","NOOP","NO_OP","NO OP","[NO-OP]","[NOOP]","[NO_OP]","[NO OP]","HEARTBEAT_OK"],K4=new Set(q_)});var Uv,Y_=O(()=>{"use strict";Uv={wake:3e5,bootGrace:42e4,stop:3e4}});var X_=O(()=>{"use strict"});var Q_=O(()=>{"use strict"});var e1=O(()=>{"use strict"});var Ro,Su=O(()=>{"use strict";Oe();Ro=l.enum(["active","stopped"])});var jv,Mo,Eu=O(()=>{"use strict";Oe();jv=["COMPUTER_BOOT_FAILED","COMPUTER_CREATE_FAILED","BOT_DELETED","COMPUTER_DELETE_FAILED","COMPUTER_INACTIVE","COMPUTER_LIMIT","COMPUTER_NOT_FOUND","BOT_NOT_FOUND","COMPUTER_NOT_DEPLOYED","BOT_TOKENS_MISSING","COMPUTER_UNREACHABLE","COMPUTER_UPDATE_FAILED","COMPUTER_WAKE_TIMEOUT","ALREADY_MEMBER","ATTACHMENT_TYPE_UNSUPPORTED","AUTH_ACCOUNT_NOT_FOUND","AUTH_BOT_BLOCKED","AUTH_DISPOSABLE_EMAIL","AUTH_EMAIL_IN_USE","AUTH_INVALID","AUTH_INVALID_CODE","AUTH_INVALID_HANDOFF","AUTH_LOCKED_OUT","AUTH_MISSING","AUTH_PROVIDER_FAILED","AUTH_PROVIDER_NOT_CONFIGURED","AUTH_RATE_LIMITED","AUTH_REVOKED","AUTH_TURNSTILE_MISSING","AUTH_UNKNOWN","AUTH_WRONG_TYPE","ROUTINE_CHANNEL_UNAVAILABLE","ROUTINE_PURPOSE_REQUIRED","BOT_REPLY_FAILED","BILLING_BUDGET_REACHED","BILLING_DEMO_SPENT","BILLING_NO_PLAN","BILLING_PAST_DUE","BILLING_RUNAWAY_CAP","BILLING_SEAT_LIMIT","CHECKOUT_FAILED","CONFIRMATION_REQUIRED","CREATE_FAILED","CREDIT_LIMIT","DELETE_FAILED","DUPLICATE_INVITE","EMAIL_DELIVERY_FAILED","EMAIL_FAILED","EMAIL_MISMATCH","EMAIL_RATE_LIMITED","EMAIL_REASON_NOT_ELIGIBLE","EMPTY_STREAM","EMPTY_PATCH","ENV_VAR_CONFLICT","ENV_VAR_RESERVED","EXTENSION_INACTIVE","FORBIDDEN","HANDLE_TAKEN","IMAGE_GENERATION_FAILED","IMAGE_GENERATION_UNCONFIGURED","INTERNAL_ERROR","INVALID_FILE","INVALID_PRIMARY_CHANNEL","UNKNOWN_ROUTINE_CHANNEL","INVITE_CONFLICT","INVITE_EXPIRED","INVITE_INVALID","MCP_NOT_AVAILABLE","MCP_NOT_CONFIGURED","MEDIA_NOT_FOUND","MEDIA_SERVER_UNAVAILABLE","MEDIA_UPLOAD_FAILED","MEMORY_NOT_FOUND","MISSING_IDEMPOTENCY_KEY","NETWORK_ERROR","NO_WORKSPACE","NOT_A_MEMBER","NOT_AUTHORIZED","NOT_FOUND","ORG_NOT_FOUND","OVERAGE_CAP","OWNER_LOCK","PAIRING_VERIFY_FAILED","PAYMENT_FAILED","PLAN_LIMIT","PROVISIONER_UNAVAILABLE","RATE_LIMIT","RATE_LIMITED","REBUILD_FAILED","RESTART_FAILED","SEND_FAILED","STOP_FAILED","STREAM_DISCONNECT","STREAM_TIMEOUT","STRIPE_LOAD","TIMEOUT","TOKEN_ERROR","TOOL_PROTOCOL","TRIAL_ENDED","TURN_ACTIVE","UPLOAD_FAILED","VALIDATION_ERROR","VOICE_UNAVAILABLE","WAKE_FAILED"],Mo=l.enum(jv)});var Lv,t1,r1=O(()=>{"use strict";Oe();bu();Eu();Lv=l.enum(["notFound","busy","rateLimited","timeout","invalidConfig","transient","fatal"]),t1=l.object({ok:l.literal(!1),error:l.string(),code:Mo.optional(),issue:ls.optional(),providerErrorKind:Lv.optional()})});var Vv,ms,Fv,Iu=O(()=>{"use strict";Oe();Vv=l.object({kind:l.enum(["icon","favicon","service"]),icon:l.string().min(1).optional(),domain:l.string().min(1).optional(),serviceKey:l.string().min(1).optional()}).strict(),ms=l.object({activityId:l.string().min(1),turnId:l.string().min(1),status:l.enum(["started","completed","failed"]),label:l.string().trim().min(1),kind:l.enum(["search","file","image","service","routine","handoff","other"]),toolName:l.string().min(1).optional(),serviceKey:l.string().min(1).optional(),startedAt:l.string().datetime().optional(),endedAt:l.string().datetime().optional(),durationMs:l.number().int().nonnegative().optional(),note:l.string().trim().min(1).optional(),visual:Vv.optional()}).strict(),Fv=ms.extend({status:l.enum(["completed","failed"])})});function Tu(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||void 0}catch{return}}var Ft,Si=O(()=>{"use strict";Oe();Ft=l.string().min(1).max(64).refine(e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(new Date(0)),!0}catch{return!1}},"Invalid IANA timezone")});function a1(e,t){e.revisitAt&&e.disposition!=="deferred"&&t.addIssue({code:"custom",path:["revisitAt"],message:"revisitAt requires deferred disposition"})}function c1(e,t){let n=new Set;for(let i of e.participants){let r=`${i.type}:${i.id}`;n.has(r)&&t.addIssue({code:"custom",path:["participants"],message:"Duplicate conversation participant."}),n.add(r)}}var n1,Bv,fs,zu,i1,o1,Zv,s1,Hv,Cu,Kv,l1,Nu,u1,d1,p1,Ou=O(()=>{"use strict";Oe();Kn();Iu();Si();n1=_i,Bv=l.object({kind:l.literal("inline"),offset:l.number().int().nonnegative()}),fs=l.object({type:n1,src:l.url(),filename:l.string().min(1),mimeType:l.string().min(1),mediaId:l.string().min(1).optional(),size:l.number().int().nonnegative().optional(),width:l.number().int().positive().optional(),height:l.number().int().positive().optional(),duration:l.number().nonnegative().optional(),text:l.string().optional(),placement:Bv.optional()}),zu=l.object({ref:l.string().min(1).max(256)}).strict(),i1=l.enum(["handled","dismissed","deferred"]),o1=l.iso.datetime();Zv=zu.extend({disposition:i1.optional(),revisitAt:o1.optional()}).superRefine(a1),s1=zu.extend({disposition:i1,revisitAt:o1.optional()}).superRefine(a1),Hv=l.object({turnId:l.string().min(1).optional(),turnOutcome:l.enum(["failed","stopped"]).optional(),attachments:l.array(fs).optional(),toolActivities:l.array(Fv).optional(),issue:l.object({code:l.string(),bucket:l.enum(["account","error"]),actionLabel:l.string(),actionUrl:l.string(),help:l.string().optional()}).optional(),notification:l.object({push:l.boolean().optional(),excludeUserId:l.string().min(1).optional()}).optional(),routine:l.object({run:l.object({routineRunId:l.string(),sourceKind:l.enum(["webhook","schedule","manual","heartbeat"]),sourceLabel:l.string().optional(),deliveryId:l.string().optional(),status:l.enum(["received","forwarded","owner_notified","needs_approval","completed","failed","dropped"])}).catchall(l.unknown())}).catchall(l.unknown()).optional(),voiceDelegated:l.literal(!0).optional(),ownerHandoff:l.literal(!0).optional(),attention:l.array(Zv).max(20).optional()}).catchall(l.unknown()),Cu=l.object({messageId:l.string().min(1),conversationId:l.string().min(1),role:l.enum(["user","assistant","system"]),authorParticipantId:l.string().nullable(),systemKind:l.string().nullable(),content:l.string(),sequence:l.string().min(1),clientNonce:l.string().nullable().optional(),metadata:Hv.nullable().optional(),status:l.string().nullable().optional(),createdAt:l.string(),updatedAt:l.string()}),Kv=l.object({type:n1,mediaId:l.string().min(1).optional(),url:l.url().optional(),name:l.string().min(1).optional(),mimeType:l.string().min(1).optional(),duration:l.number().nonnegative().optional()}).superRefine((e,t)=>{if(!e.mediaId)for(let n of["url","name","mimeType"])e[n]||t.addIssue({code:"custom",path:[n],message:`${n} is required when mediaId is absent`})}),l1=l.object({conversationId:l.string().min(1),content:l.string().max(1e4).default(""),clientNonce:l.string().max(64).optional(),attachments:l.array(Kv).max(10).optional(),channel:l.enum(["ios","dashboard"]).optional(),actionUrls:l.object({billing:l.string().max(500),bot:l.string().max(500)}).optional(),viewerTimezone:Ft.optional()}).refine(e=>e.content.trim().length>0||(e.attachments?.length??0)>0,{path:["content"],message:"Message or attachment required"}),Nu=l.object({type:l.enum(["user","bot"]),id:l.string().min(1)}).strict();u1=l.object({orgId:l.string().min(1),participants:l.array(Nu).min(1).max(20)}).strict().superRefine(c1),d1=l.object({orgId:l.string().min(1),participants:l.array(Nu).min(1).max(20)}).strict().superRefine((e,t)=>{c1(e,t),e.participants.some(n=>n.type==="bot")||t.addIssue({code:"custom",path:["participants"],message:"New sessions require at least one agent participant."})}),p1=l.object({category:l.string().min(1).max(30).optional(),reason:l.string().max(2e3).optional()}).strict()});var Wv,Gv,m1,f1,h1=O(()=>{"use strict";Oe();Ou();Wv=l.enum(["1:1","4:3","3:4","16:9","9:16"]),Gv=l.enum(["1K","2K","4K"]),m1=l.object({prompt:l.string().trim().min(1).max(4e3),aspectRatio:Wv.default("1:1"),outputFormat:l.enum(["png","jpeg","webp"]).default("webp"),resolution:Gv.default("2K"),style:l.string().trim().max(200).optional(),altText:l.string().trim().max(500).optional(),referenceMediaIds:l.array(l.string().min(1)).max(4).optional()}).strict(),f1=l.object({mediaId:l.string().min(1),src:l.url(),filename:l.string().min(1),mimeType:l.string().min(1),width:l.number().int().positive().optional(),height:l.number().int().positive().optional(),provider:l.string().min(1).optional(),providerRequestId:l.string().min(1).optional(),media:l.string().startsWith("MEDIA:"),attachment:fs.extend({type:l.literal("image")})})});var g1,qv,v1,b1,Jv,y1,x1,Yv,w1,k1=O(()=>{"use strict";Oe();sp();g1=l.object({identityToken:l.string().min(1),fullName:l.string().optional()}),qv=l.object({redirect:l.string(),redirectReason:l.string(),isNew:l.boolean(),deviceId:l.string()}),v1=l.object({ok:l.literal(!0),data:qv,token:l.string()}),b1=l.object({path:l.string().startsWith("/","path must be a relative dashboard path").refine(ap,"path must be a relative dashboard path")}),Jv=l.object({url:l.string()}),y1=l.object({ok:l.literal(!0),data:Jv}),x1=l.object({token:l.string().min(1)}),Yv=l.object({redirect:l.string(),redirectReason:l.string(),deviceId:l.string()}),w1=l.object({ok:l.literal(!0),data:Yv,token:l.string()})});var Du,Au,Ei,_1,Pu=O(()=>{"use strict";Oe();Kn();Du=hu,Au=_i,Ei=l.object({mediaId:l.string(),src:l.string(),alt:l.string().nullable().optional(),filename:l.string().optional(),displayName:l.string().nullable().optional(),mimeType:l.string().optional(),mediaType:Au.optional(),type:Au.optional(),size:l.number().optional(),width:l.number().nullable().optional(),height:l.number().nullable().optional(),duration:l.number().nullable().optional(),context:Du.nullable().optional(),blurhash:l.string().nullable().optional(),quality:l.string().optional(),status:l.string().optional(),userId:l.string().optional(),orgId:l.string().optional(),botId:l.string().nullable().optional(),createdAt:l.string().optional(),updatedAt:l.string().optional()}),_1=l.object({file:l.string().describe("Binary file. multipart/form-data field \u2014 the actual upload. The server validates type + size and normalizes image uploads before storage. Audio/video/document uploads use the same uploader and are classified by MIME type."),context:Du.optional().default("general"),botId:l.string().optional(),orgId:l.string().optional(),duration:l.number().optional()})});var hs,Xv,$1,Ru=O(()=>{"use strict";Oe();Si();hs=l.object({viewerTimezone:Ft.optional(),location:l.object({label:l.string().max(500),city:l.string().optional(),region:l.string().optional(),countryCode:l.string().optional(),timezone:l.string().optional(),source:l.literal("geoip"),precision:l.enum(["city","region","country"]),confidence:l.enum(["medium","low"]),vpnOrDatacenter:l.enum(["likely","unknown"])}).optional()}),Xv=l.object({status:l.enum(["available","unavailable"]),user:l.string().max(16e3).optional(),memory:l.string().max(16e3).optional(),agents:l.string().max(4e3).optional()}).strict(),$1=l.object({bot:l.object({id:l.string(),name:l.string(),title:l.string().nullable().optional(),timezone:Ft}),scope:l.enum(["private","org","public"]),channel:l.string().max(120),currentTime:l.iso.datetime(),scopePrompt:l.string().optional(),observations:hs.optional(),lastObservedTimezone:Ft.optional(),lean:Xv.optional()})});var gs,Qv,vs,S1,E1,eb,I1,T1,tb=O(()=>{"use strict";Oe();Si();Ru();gs=l.enum(["woman","man"]),Qv=[{key:"lauren",gender:"woman",accent:"American",character:"Friendly, comforting and soft",isDefault:!0},{key:"amy",gender:"woman",accent:"American",character:"Natural and sweet"},{key:"eve",gender:"woman",accent:"American",character:"Authentic, energetic and happy"},{key:"jessica",gender:"woman",accent:"British",character:"Smooth, articulate and warm"},{key:"adam",gender:"man",accent:"American",character:"Engaging, friendly and bright",isDefault:!0},{key:"jon",gender:"man",accent:"American",character:"Relaxed, deep and approachable"},{key:"joe",gender:"man",accent:"British",character:"Reflective and thoughtful"},{key:"julius",gender:"man",accent:"German",character:"Deep, articulate and professional"}],vs=l.enum(Qv.map(e=>e.key)),S1=l.object({conversationId:l.string().min(1),viewerTimezone:Ft.optional()}).strict(),E1=l.object({conversationId:l.string().min(1),botId:l.string().min(1),personaName:l.string().min(1),personaTitle:l.string().max(255).nullable().optional(),gender:gs,voiceKey:vs.nullable(),sessionScope:l.enum(["private","org","public"]),observations:hs.optional(),threadSummary:l.string(),capabilities:l.array(l.object({name:l.string().min(1),description:l.string().min(1)})).optional(),surfaceGuidance:l.string().optional(),maxDurationSeconds:l.number().int().positive().max(3600).optional(),expiresAt:l.iso.datetime()}),eb=l.literal("livekit"),I1=l.object({name:l.enum(["voice.ready","voice.first_playback","voice.failed"]),client:l.enum(["web","ios"]),botId:l.string().min(1).max(64).optional(),conversationId:l.string().min(1).max(64).optional(),provider:eb.optional(),durationMs:l.number().int().min(0).max(36e5),phase:l.enum(["idle","minting","connecting","live","ended"]).optional(),code:l.string().min(1).max(64).optional(),detail:l.string().min(1).max(300).optional(),appVersion:l.string().min(1).max(32).optional(),appBuild:l.string().min(1).max(32).optional()}).strict(),T1=l.object({provider:l.literal("livekit"),url:l.string().min(1),token:l.string().min(1),room:l.string().min(1)}).strict()});var z1,rb,xn,Ii,C1,N1,wn=O(()=>{"use strict";Oe();Kn();tb();z1=l.enum(["identity","working-style","complete"]),rb=l.string().min(1).max(50).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),xn=l.object({botId:l.string().min(1),computerId:l.string().min(1),handle:l.string().min(2).max(50),name:l.string().min(1).max(100),emoji:l.string().max(8).nullable().optional(),title:l.string().max(120).nullable().optional(),summary:l.string().max(500).nullable().optional(),avatarId:l.string().nullable().optional(),coverId:l.string().nullable().optional(),avatar:bt.optional(),cover:bt.optional(),email:l.email().nullable().optional(),website:l.url().nullable().optional(),accounts:l.array(l.object({platform:l.enum(["linkedin","x","facebook","tiktok","youtube","github","instagram","threads","email","phone","website"]),handle:l.string()})).nullable().optional(),gender:gs.optional(),voiceKey:vs.nullable().optional(),isPrimary:l.boolean(),collaborationEnabled:l.boolean(),publicChatEnabled:l.boolean(),status:l.enum(["active","deleted"]),onboardingStage:z1.nullable().optional(),onboardedAt:l.string().nullable().optional(),routinePrimaryChannel:rb.optional(),firstMessageAt:l.string().nullable().optional(),firstValueAt:l.string().nullable().optional(),lastMessageAt:l.string().nullable().optional(),createdAt:l.string(),updatedAt:l.string()}).strict(),Ii=xn.pick({name:!0,emoji:!0,title:!0,summary:!0,gender:!0,voiceKey:!0}).extend({handle:xn.shape.handle.optional(),avatarPreset:l.string().min(1).max(64).optional(),avatarMediaId:l.string().optional()}).strict(),C1=Ii.extend({computerId:l.string().min(1)}).strict(),N1=xn.pick({name:!0,handle:!0,emoji:!0,title:!0,summary:!0,email:!0,website:!0,gender:!0,voiceKey:!0,routinePrimaryChannel:!0,collaborationEnabled:!0,publicChatEnabled:!0}).partial().extend({avatarMediaId:l.string().nullable().optional(),coverMediaId:l.string().nullable().optional()}).strict()});var Mu,qn,O1,A1,Ti=O(()=>{"use strict";Oe();Pu();Su();wn();Wn();Si();Mu=l.enum(["essential","professional","business"]),qn=Po.partial().extend({computerId:l.string().min(1),ownerId:l.string().min(1),owner:l.object({userId:l.string(),fullName:l.string().optional(),avatar:Ei.optional()}).optional(),orgId:l.string().min(1),name:l.string().min(1).max(100),model:l.string().nullable(),timezone:Ft,billingTier:Mu,desiredStatus:Ro.nullable(),status:l.enum(["active","deleted"]),lastActiveAt:l.string().nullable().optional(),createdAt:l.string(),updatedAt:l.string()}).strict(),O1=l.object({orgId:l.string().min(1),name:qn.shape.name.optional(),timezone:Ft.optional(),primaryBot:Ii}).strict(),A1=qn.pick({name:!0,model:!0,timezone:!0}).partial().strict()});var nb,ib,ob,ab,G4,D1,sb,P1,R1,M1,U1,j1=O(()=>{"use strict";Oe();Ti();nb=l.enum(["none","active_assistant"]),ib=l.enum(["none","active","trial","canceling","past_due","paused"]),ob=l.object({brand:l.string(),last4:l.string(),expMonth:l.number(),expYear:l.number()}),ab=l.object({date:l.string(),amount:l.number(),status:l.string(),invoicePdf:l.string().optional()}),G4=l.object({graceEndsAt:l.string().optional(),suspended:l.boolean(),url:l.string().optional()}),D1=l.object({plan:nb,status:ib,price:l.number(),tierRates:l.record(l.string(),l.number()).optional(),maxComputers:l.number(),activeComputers:l.number(),workspaceTier:Mu.optional(),upcomingAmountDue:l.number().optional(),upcomingDueDate:l.string().optional(),nextBillDate:l.string().optional(),cancelAtPeriodEnd:l.boolean().optional(),cancelAt:l.string().optional(),trialEnd:l.string().optional(),trialDaysRemaining:l.number().optional(),paymentMethod:ob.optional(),paymentRecovery:G4.optional(),invoices:l.array(ab),stripeError:l.string().optional()}),sb=l.enum(["demo_computer_exists","demo_usage_exhausted","subscription_required","plan_limit"]),P1=l.object({canCreate:l.boolean(),activeComputers:l.number().int().nonnegative(),computerLimit:l.number().int().nonnegative(),isDemo:l.boolean(),reason:sb.optional()}),R1=l.object({orgId:l.string(),computerName:l.string().optional(),runtime:l.string().optional()}),M1=l.object({created:l.number(),skipped:l.number(),errors:l.array(l.string())}),U1=l.object({updated:l.number(),errors:l.array(l.string())})});function bs(e){return{code:e.code,error:e.message,...e.bucket?{bucket:e.bucket}:{},...e.actionLabel?{actionLabel:e.actionLabel}:{},...e.actionUrl?{actionUrl:e.actionUrl}:{},...e.help?{help:e.help}:{}}}function ys(e){if(e.event==="message"&&e.data.message.role==="user")return e.data.message.messageId}function ub(e){if(e.event==="message_delta"||e.event==="working_state"||e.event==="tool_activity"||e.event==="working_end"||e.event==="stream_end")return e.data.turnId;if(e.event==="message"){let t=e.data.message.metadata?.turnId;return typeof t=="string"?t:void 0}}function ju(e,t){if(e.event==="status"||e.event==="error"||ys(e))return!0;let n=ub(e);return t?n?n===t:e.event==="message":!1}var lb,cb,Uu,db=O(()=>{"use strict";Oe();Ou();Iu();Eu();Wn();lb=Po,cb=l.object({code:Mo,message:l.string(),bucket:l.enum(["account","error"]).optional(),actionLabel:l.string().optional(),actionUrl:l.string().optional(),help:l.string().optional()});Uu=l.discriminatedUnion("event",[l.object({event:l.literal("status"),data:lb}),l.object({event:l.literal("message"),data:l.object({message:Cu})}),l.object({event:l.literal("message_delta"),data:l.object({delta:l.string(),turnId:l.string(),messageId:l.string().optional(),role:l.enum(["assistant","system"]).optional()})}),l.object({event:l.literal("working_state"),data:l.object({description:l.string(),turnId:l.string().optional()})}),l.object({event:l.literal("tool_activity"),data:ms}),l.object({event:l.literal("working_end"),data:l.object({turnId:l.string().optional()}).strict()}),l.object({event:l.literal("stream_end"),data:l.object({turnId:l.string().optional()}).strict()}),l.object({event:l.literal("error"),data:cb})])});async function Lu(e){let t=e.fetchFn??fetch,n=e.headers??{},i=!1,r=!1,o=!1,a=!1,s,c=!1,u=!1,d,p=new AbortController,m=!1,f,$=()=>{},I=new Promise(z=>{$=z}),T=z=>{m||(m=!0,f&&clearTimeout(f),$(z))},Z=(z,U)=>{o=!0,e.onTransportError({stage:z,message:U})},V=()=>{d?.cancel().catch(()=>{})};f=setTimeout(()=>{u=!0,Z("stream-open","Timed out opening stream"),p.abort(),T("failed")},e.streamOpenTimeoutMs??1e4);let D=(async()=>{try{let z=await t(e.streamUrl,{headers:n,signal:p.signal});if(!z.ok){o=!0,T("failed"),e.onTransportError({stage:"stream-open",message:await q4(z)});return}if(d=z.body?.getReader(),!d){Z("stream-open","No response stream"),T("failed");return}T("ready");for await(let U of xs(d))if(s||(s=ys(U)),!(i&&!ju(U,s))){if(U.event==="status")e.onLiveStatus?.(U.data);else if(U.event==="working_state")i&&e.onStatus?.(U.data.description);else if(U.event==="tool_activity")i&&e.onToolActivity?.(U.data);else if(U.event==="working_end")i&&e.onWorkingEnd?.();else if(U.event==="message_delta")i&&e.onDelta(U.data.delta,U.data.role);else if(U.event==="error"){o=!0,e.onChatError(U.data);break}else if(U.event==="message"&&(U.data.message.role==="assistant"||U.data.message.role==="system")){if(!i)continue;a||(a=!0,e.onMessage?.(U.data.message))}else if(U.event==="stream_end")break}!o&&a?e.onDone():!o&&i&&!r&&Z("no-reply","Stream ended before reply arrived")}catch(z){!r&&!u&&(T("failed"),Z("stream-read",z instanceof Error?z.message:"Stream failed"))}finally{c=!0;try{await d?.cancel()}catch{}}})();if(await I==="failed"){await D;return}if(c){Z("stream-open","Stream closed before send"),await D;return}try{i=!0;let z=await t(e.sendUrl,{method:"POST",headers:{"Content-Type":"application/json",...n},body:JSON.stringify(e.sendBody)}),U=await z.json();if(!U.ok){r=!0,p.abort(),V(),o=!0,e.onTransportError({stage:"api",message:U.error||`Send failed: HTTP ${z.status}`,...U.code?{code:U.code}:{}}),await D;return}s=U.data.messageId,e.onUserMessage?.(U.data)}catch(z){r=!0,p.abort(),V(),Z("api",z instanceof Error?z.message:"Send failed"),await D;return}await D}async function q4(e){let t="";try{let n=await e.text();n&&(t=` - ${n.slice(0,200)}`)}catch{}return`HTTP ${e.status}${t}`}async function*xs(e){let t=new TextDecoder,n="";for(;;){let{done:i,value:r}=await e.read();if(i)break;n+=t.decode(r,{stream:!0});let o=n.indexOf(`
|
|
69
69
|
|
|
70
70
|
`);for(;o!==-1;){let a=n.slice(0,o);n=n.slice(o+2);let s=pb(a);s&&(yield s),o=n.indexOf(`
|
|
71
71
|
|
|
@@ -73,7 +73,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
73
73
|
`).filter(r=>r.length>0),n,i;for(let r of t)r.startsWith("event:")?n=r.slice(6).trim():r.startsWith("data:")&&(i=r.slice(5).trim());if(!n||i===void 0)return null;try{let r=Uu.safeParse({event:n,data:JSON.parse(i)});return r.success?r.data:null}catch{return null}}var L1=O(()=>{"use strict";db()});function Vu(e){let t;try{t=JSON.parse(e)}catch(i){return{ok:!1,reason:"invalid_json",message:i instanceof Error?i.message:"Invalid JSON"}}let n=mb.safeParse(t);return n.success?{ok:!0,spec:n.data}:{ok:!1,reason:"invalid_spec",message:n.error.issues.map(i=>i.message).join("; ")}}var J4,mb,V1=O(()=>{"use strict";Oe();J4=l.object({label:l.string().trim().min(1).max(40),reply:l.string().trim().min(1).max(500),style:l.enum(["primary","default","destructive"]).optional()}).strip(),mb=l.object({version:l.literal(1),title:l.string().trim().min(1).max(200),body:l.string().trim().min(1).max(8e3).optional(),actions:l.array(J4).min(1).max(3).optional()}).strip()});function tC(e){let t=new Set;for(let n of e)for(let i of Object.keys(n))t.add(i);return t}function H1(e,t,n){let i=tC(e);for(let r of t)i.has(r.value)||n.addIssue({code:"custom",path:r.path,message:`Unknown data key "${r.value}"`})}function K1(e,t,n){for(let[i,r]of e.entries())for(let o of t){let a=r[o.value];if(typeof a!="number"||!Number.isFinite(a)){n.addIssue({code:"custom",path:["data",i,o.value],message:`Data key "${o.value}" must be numeric`});continue}o.nonnegative&&a<0&&n.addIssue({code:"custom",path:["data",i,o.value],message:`Data key "${o.value}" must be nonnegative`})}}function lC(e){if(e&&typeof e=="object"&&"fallbackMarkdown"in e){let t=e.fallbackMarkdown;if(typeof t=="string"&&t.trim())return t.trim()}}function zi(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function Qe(e){return typeof e!="string"?void 0:e.trim()||void 0}function Wr(e){return String(e??"").replace(/\r?\n/g," ").replace(/\|/g,"\\|").trim()}function cC(e,t){if(!Array.isArray(e)||e.length===0||e.length>t)return null;let n=[];for(let i of e){if(!zi(i))return null;let r=Qe(i.label),o=i.value;if(!r||typeof o!="number"||!Number.isFinite(o))return null;n.push({label:r,value:o})}return n}function uC(e){let t=Qe(e.type);if(t==="bar"||t==="line"||t==="pie")return t;let n=Qe(e.chartType);return t==="chart"&&(n==="bar"||n==="line"||n==="pie")?n:null}function dC(e){if(!zi(e)||"version"in e||"visualType"in e)return null;let t=uC(e);if(!t)return null;let n=Qe(e.title);if(!n)return null;let i=cC(e.data,t==="pie"?16:120);if(!i)return null;let r=Qe(e.subtitle),o=Qe(e.source),a={title:n,...r?{description:r}:{},...o?{footer:o}:{}},s=Qe(e.fallbackMarkdown);if(t==="pie")return{version:1,visualType:"chart",chartType:"pie",meta:a,nameKey:"label",valueKey:"value",data:i,fallbackMarkdown:s??i.map(p=>`- ${Wr(p.label)}: ${Wr(p.value)}`).join(`
|
|
74
74
|
`)};let c=Qe(e.xAxis)??Qe(e.xLabel),u=Qe(e.yAxis)??Qe(e.yLabel),d=u??"Value";return{version:1,visualType:"chart",chartType:t,meta:a,xKey:"label",...c?{xAxisLabel:c}:{},series:[{dataKey:"value",label:d,...u?{axisLabel:u}:{}}],data:i,fallbackMarkdown:s??[`| ${Wr(c??"Label")} | ${Wr(d)} |`,"|---|---:|",...i.map(p=>`| ${Wr(p.label)} | ${Wr(p.value)} |`)].join(`
|
|
75
75
|
`)}}function pC(e){if(!zi(e)||(Qe(e.visualType)??Qe(e.kind))!=="chart")return null;let n=Qe(e.chartType);if(n!=="bar"&&n!=="line"&&n!=="scatter")return null;let i=zi(e.xAxis)?e.xAxis:void 0,r=Qe(e.xKey)??(i?Qe(i.key)??Qe(i.dataKey):void 0);if(!r)return null;let o=Qe(e.xAxisLabel)??(i?Qe(i.label):void 0);if(!Array.isArray(e.series))return null;let a=[];for(let f of e.series){if(!zi(f))return null;let $=Qe(f.dataKey)??Qe(f.key);if(!$)return null;let I=Qe(f.label)??Qe(f.name);a.push({dataKey:$,...I?{label:I}:{}})}if(a.length===0||!Array.isArray(e.data))return null;let s=e.data.filter(zi),c=zi(e.meta)?e.meta:e,u=Qe(c.title);if(!u)return null;let d=Qe(c.description)??Qe(c.subtitle),p=Qe(c.footer)??Qe(c.source),m=Qe(e.fallbackMarkdown)??[`| ${Wr(o??r)} | ${a.map(f=>Wr(f.label??f.dataKey)).join(" | ")} |`,`|---|${a.map(()=>"---:").join("|")}|`,...s.map(f=>`| ${Wr(f[r])} | ${a.map($=>Wr(f[$.dataKey])).join(" | ")} |`)].join(`
|
|
76
|
-
`);return{version:1,visualType:"chart",chartType:n,meta:{title:u,...d?{description:d}:{},...p?{footer:p}:{}},xKey:r,...o?{xAxisLabel:o}:{},series:a,data:s,fallbackMarkdown:m}}function Bu(e){let t;try{t=JSON.parse(e)}catch(i){let r=e.match(/"fallbackMarkdown"\s*:\s*"((?:[^"\\]|\\.)*)"/),o;if(r)try{o=JSON.parse(`"${r[1]}"`)}catch{}return{ok:!1,reason:"invalid_json",message:i instanceof Error?i.message:"Invalid JSON",fallbackMarkdown:o}}let n=Fu.safeParse(t);if(!n.success){let i=dC(t)??pC(t);if(i){let r=Fu.safeParse(i);if(r.success)return{ok:!0,spec:r.data}}return{ok:!1,reason:"invalid_spec",message:n.error.issues.map(r=>r.message).join("; "),fallbackMarkdown:lC(t)}}return{ok:!0,spec:n.data}}var Y4,fb,kn,Uo,X4,F1,Q4,eC,B1,Z1,hb,rC,nC,iC,oC,aC,sC,Fu,W1=O(()=>{"use strict";Oe();Y4=l.string().trim().min(1).max(240),fb=l.string().trim().min(1).max(800),kn=l.string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/),Uo=l.string().trim().min(1).max(120),X4=l.union([l.string().max(500),l.number().finite(),l.boolean(),l.null()]),F1=l.record(kn,X4),Q4=l.enum(["compact","currency","duration","integer","percent","raw"]),eC=l.object({title:Y4,description:fb.optional(),footer:fb.optional()}).strip(),B1=l.object({dataKey:kn,label:Uo.optional(),axisLabel:Uo.optional(),valueFormat:Q4.optional(),valuePrefix:l.string().trim().max(12).optional(),valueSuffix:l.string().trim().max(12).optional()}).strip(),Z1=l.object({kind:l.literal("linear"),dataKey:kn,label:Uo.optional()}).strip(),hb=l.object({version:l.literal(1),meta:eC,fallbackMarkdown:l.string().trim().min(1).max(4e3)}).strip();rC=hb.extend({visualType:l.literal("chart"),chartType:l.enum(["bar","line","scatter"]),xKey:kn,xAxisLabel:Uo.optional(),series:l.array(B1).min(1).max(6),data:l.array(F1).min(1).max(120),layout:l.enum(["horizontal","vertical"]).optional(),stacking:l.enum(["grouped","stacked"]).optional(),trendLine:Z1.optional()}).strip().superRefine((e,t)=>{e.stacking&&e.chartType!=="bar"&&t.addIssue({code:"custom",path:["stacking"],message:"Stacking is only supported for bar charts"}),e.trendLine&&e.chartType!=="line"&&e.chartType!=="scatter"&&t.addIssue({code:"custom",path:["trendLine"],message:"Trend lines are only supported for line and scatter charts"}),H1(e.data,[{path:["xKey"],value:e.xKey},...e.series.map((n,i)=>({path:["series",i,"dataKey"],value:n.dataKey})),...e.trendLine?[{path:["trendLine","dataKey"],value:e.trendLine.dataKey}]:[]],t),K1(e.data,[...e.series.map((n,i)=>({path:["series",i,"dataKey"],value:n.dataKey})),...e.trendLine?[{path:["trendLine","dataKey"],value:e.trendLine.dataKey}]:[]],t)}),nC=hb.extend({visualType:l.literal("chart"),chartType:l.literal("pie"),nameKey:kn,valueKey:kn,series:l.array(B1).max(1).optional(),data:l.array(F1).min(1).max(16)}).strip().superRefine((e,t)=>{H1(e.data,[{path:["nameKey"],value:e.nameKey},{path:["valueKey"],value:e.valueKey},...(e.series??[]).map((n,i)=>({path:["series",i,"dataKey"],value:n.dataKey}))],t),K1(e.data,[{path:["valueKey"],value:e.valueKey,nonnegative:!0}],t)}),iC=l.discriminatedUnion("chartType",[rC,nC]),oC=l.object({id:kn,label:Uo,detail:fb.optional(),kind:l.enum(["actor","agent","decision","event","input","output","system","task"]).optional()}).strip(),aC=l.object({from:kn,to:kn,label:Uo.optional()}).strip(),sC=hb.extend({visualType:l.literal("diagram"),diagramType:l.enum(["flow","org","sequence","state"]),layout:l.enum(["auto","left-to-right","radial","top-to-bottom"]).default("auto"),nodes:l.array(oC).min(1).max(24),edges:l.array(aC).max(48)}).strip().superRefine((e,t)=>{let n=new Set(e.nodes.map(i=>i.id));for(let[i,r]of e.edges.entries())n.has(r.from)||t.addIssue({code:"custom",path:["edges",i,"from"],message:`Unknown node id "${r.from}"`}),n.has(r.to)||t.addIssue({code:"custom",path:["edges",i,"to"],message:`Unknown node id "${r.to}"`})}),Fu=l.union([iC,sC])});var Zu,Hu,G1,q1,J1,Y1,X1,Q1,e$=O(()=>{"use strict";Oe();Zu=l.object({conversationParticipantId:l.string().min(1),type:l.enum(["user","bot","anonymous"]),id:l.string(),role:l.enum(["owner","requester","member"]),status:l.enum(["active","left","deleted"]),displayName:l.string().optional(),handle:l.string().optional(),avatarUrl:l.string().optional()}).strict(),Hu=l.object({messageId:l.string(),role:l.enum(["user","assistant","system"]),content:l.string(),sequence:l.string(),createdAt:l.string()}),G1=l.object({conversationId:l.string(),orgId:l.string(),kind:l.enum(["direct","group"]),updatedAt:l.string(),viewerRole:l.enum(["owner","requester","member"]),participants:l.array(Zu),lastMessage:Hu.nullable(),openingMessage:l.string().nullable(),unreadCount:l.number().int().nonnegative(),latestSequence:l.string().nullable()}),q1=l.object({sequence:l.string().min(1)}),J1=l.object({turnId:l.string().min(1).optional()}).strict(),Y1=l.object({cancelled:l.boolean(),cancelledTurnIds:l.array(l.string())}).strict(),X1=l.object({conversationId:l.string(),messageId:l.string(),sequence:l.string(),snippet:l.string(),createdAt:l.string(),participants:l.array(Zu)}),Q1=l.object({conversationId:l.string(),lastMessage:Hu.nullable(),unreadCount:l.number().int().nonnegative(),latestSequence:l.string().nullable()})});var kr,mC,fC,hC,t$,gb,vb,r$,n$=O(()=>{"use strict";Oe();Su();Wn();kr=l.preprocess(e=>e===void 0?null:e,l.string().nullable()),mC=l.preprocess(e=>e===void 0?null:e,cs.nullable()),fC=l.preprocess(e=>e===void 0?null:e,Ro.nullable()),hC=l.preprocess(e=>e===void 0?null:e,l.enum(["user","assistant","system"]).nullable()),t$=l.preprocess(e=>e===void 0?0:e,l.number()),gb=l.object({computerId:l.string(),handle:l.string(),name:l.string(),orgId:l.string(),orgName:kr,orgHandle:kr,ownerEmail:kr,ownerName:kr,state:mC,desiredStatus:fC,runtime:l.string(),imageVersion:kr,lastHealthyAt:kr,lastActiveAt:kr,lastUserMessageAt:kr,lastMessageAt:kr,lastMessageRole:hC,lastMessageChannel:kr,primaryChannel:kr,totalMessages:t$,totalSessions:t$,error:kr,appHandle:l.string(),flyAppExists:l.boolean(),plan:l.string(),billingStatus:l.string(),billingActive:l.boolean(),createdAt:l.string(),updatedAt:l.string()}),vb=l.object({running:l.number(),stopped:l.number(),error:l.number(),starting:l.number(),stopping:l.number(),unknown:l.number(),total:l.number()}),r$=l.object({computers:l.array(gb),summary:vb,orphanedApps:l.array(l.string()),dailyMessages30d:l.array(l.number().int()).optional(),flyAppCount:l.number().optional(),latestVersion:l.string().optional(),latestVersions:l.record(l.string(),l.string()).optional()})});var o$=O(()=>{"use strict";Wn()});var gC,a$,s$,bb,l$,c$,u$,d$,p$,m$,f$,h$=O(()=>{"use strict";Oe();gC=l.object({mediaId:l.string().optional(),src:l.string().optional(),alt:l.string().optional(),width:l.number().optional(),height:l.number().optional(),mimeType:l.string().optional(),mediaType:l.string().optional(),blurhash:l.string().optional()}),a$=l.object({membershipId:l.string(),userId:l.string(),orgId:l.string(),email:l.string(),fullName:l.string().optional(),role:l.enum(["owner","admin","member","observer"]),status:l.enum(["active","suspended"]),joinedAt:l.string(),lastSeenAt:l.string().optional(),avatar:gC.optional()}),s$=l.object({invitationId:l.string(),email:l.string(),role:l.enum(["admin","member"]),status:l.string(),expiresAt:l.string(),createdAt:l.string()}),bb=l.object({token:l.string(),email:l.string(),orgId:l.string(),orgName:l.string(),orgInitial:l.string(),inviterName:l.string().optional(),inviterEmail:l.string(),role:l.enum(["owner","admin","member","observer"]),status:l.enum(["pending","accepted","expired","revoked"]),expiresAt:l.string(),memberCount:l.number().optional()}),l$=l.object({email:l.string().email(),role:l.enum(["admin","member"]).optional(),message:l.string().max(500).optional()}).strict(),c$=l.object({role:l.enum(["admin","member"])}).strict(),u$=l.object({token:l.string().min(1)}).strict(),d$=l.object({message:l.string()}),p$=l.object({invitationId:l.string(),message:l.string()}),m$=l.object({message:l.string(),membershipId:l.string(),orgId:l.string(),role:l.enum(["owner","admin","member","observer"])}),f$=l.object({invite:bb.nullable()})});var R8,M8,U8,j8,v$=O(()=>{"use strict";Oe();R8=l.object({deviceId:l.string().min(1).max(64),pushToken:l.string().min(1).max(200),appVersion:l.string().max(40).optional(),osVersion:l.string().max(40).optional(),model:l.string().max(80).optional()}),M8=l.object({deviceId:l.string().min(1).max(64)}),U8=l.object({deviceId:l.string().min(1).max(64),kind:l.string().min(1).max(30),action:l.enum(["displayed","tapped","dismissed"]),messageId:l.string().max(32).optional()}),j8=l.object({updated:l.boolean()})});var b$,y$,x$,w$=O(()=>{"use strict";Oe();ds();Pu();Si();b$=_u.pick({orgId:!0,handle:!0,name:!0,email:!0,website:!0,avatarId:!0,coverId:!0,summary:!0,timezone:!0,isPersonal:!0,status:!0,updatedAt:!0}).extend({avatar:Ei.nullable().optional(),cover:Ei.nullable().optional()}),y$=l.object({name:l.string().min(1).max(255),handle:l.string().min(2).max(50).optional(),timezone:Ft.optional()}).strict(),x$=_u.pick({name:!0,email:!0,website:!0,summary:!0,timezone:!0}).extend({name:l.string().min(1).max(255).optional(),email:l.preprocess(e=>e===""?null:e,l.string().email().nullable()).optional(),timezone:Ft.optional(),avatarMediaId:l.string().nullable().optional(),coverMediaId:l.string().nullable().optional()}).strict()});var k$,_$=O(()=>{"use strict";Oe();k$=l.object({used:l.number().int().nonnegative(),limit:l.number().int().nonnegative(),remaining:l.number().int().nonnegative(),periodEnd:l.string(),isDemo:l.boolean(),state:l.enum(["ok","warning","exhausted"])})});var $$,S$=O(()=>{"use strict";Oe();$$=l.object({messagesHandled:l.number().int().nonnegative(),proactiveRuns:l.number().int().nonnegative(),approvalsWaiting:l.number().int().nonnegative(),approvalConversationId:l.string().optional(),approvalBotId:l.string().optional(),dailyHandled:l.array(l.number().int().nonnegative()).length(30),messagesByAssistant:l.array(l.object({botId:l.string(),count:l.number().int().nonnegative()})),briefingsDelivered:l.number().int().nonnegative(),scheduledRuns:l.number().int().nonnegative(),prev30MessagesHandled:l.number().int().nonnegative(),prev30BriefingsDelivered:l.number().int().nonnegative(),prev30ScheduledRuns:l.number().int().nonnegative(),since:l.string()})});var yb,vC,bC,yC,E$,I$=O(()=>{"use strict";Oe();yb=l.enum(["success","info","warning"]),vC=l.object({orgId:l.string(),name:l.string(),avatarUrl:l.string().nullable()}),bC=l.object({key:l.string(),label:l.string(),tone:yb,status:l.string(),trialDaysRemaining:l.number().optional()}),yC=l.object({activeComputerLimit:l.number().int().nonnegative(),activeComputerCount:l.number().int().nonnegative(),computerCount:l.number().int().nonnegative()}),E$=l.object({org:vC,plan:bC,quota:yC,memberCount:l.number().int().nonnegative()})});var T$=O(()=>{"use strict"});var xC,wC,kC,_C,$C,z$,C$=O(()=>{"use strict";Oe();xC=l.object({sender:l.enum(["user","agent"]),text:l.string()}),wC=l.enum(["works-now","guided-setup","coming-soon","custom-workflow"]),kC=l.object({docsUrl:l.string(),verifiedAt:l.string(),version:l.string().optional(),versionPolicy:l.enum(["date-versioned","header-versioned","path-versioned","endpoint-versioned","unversioned"]),note:l.string().optional()}),_C=l.object({key:l.string(),label:l.string(),rank:l.number()}),$C=l.object({text:l.string(),tone:l.enum(["info","warning","success","danger"])}),z$=l.object({serviceKey:l.string(),name:l.string(),description:l.string(),shortDescription:l.string(),subtitle:l.string().optional(),icon:l.string().optional(),category:l.string(),categoryLabel:l.string(),categoryRank:l.number(),featuredRank:l.number().optional(),secondaryCategories:l.array(_C),badges:l.array($C),tags:l.array(l.string()),searchAliases:l.array(l.string()),jtbd:l.string(),useCase:l.string(),demoScenario:l.string(),sampleConversation:l.array(xC),publicStatus:wC,apiVerification:kC.optional(),setupDifficulty:l.string(),risk:l.string(),price:l.string(),kind:l.string(),tier:l.string(),installLevel:l.enum(["computer","org","both"]),setupSummary:l.string().optional(),pagePath:l.string()})});var xb,N$,O$=O(()=>{"use strict";Oe();xb=l.object({title:l.string().optional(),text:l.string()}),N$=l.object({content:l.string(),mediaType:l.enum(["application/json","text/plain"]),copyLabel:l.string(),action:l.object({label:l.string(),url:l.url()}),steps:l.array(xb)})});var A$,D$=O(()=>{"use strict";Oe();ds();A$=l.object({fullName:l.string().min(1).max(100).optional(),bio:l.string().max(500).nullable().optional(),linkedinUsername:us.nullable().optional(),profileUrl:ku.nullable().optional(),avatarMediaId:l.string().nullable().optional(),lastBotId:l.string().nullable().optional(),lastActiveOrgId:l.string().nullable().optional()}).strict()});var ws,wb,kb,Ku,_b,SC,Wu,P$,R$,M$,U$,$b=O(()=>{"use strict";Oe();wn();ws=8e3,wb=l.string().regex(/^[A-Z][A-Z0-9_]*$/),kb=l.object({name:l.string().trim().min(1).max(100),instructions:l.string().trim().min(1).max(ws),credentialNames:l.array(wb).max(10)}),Ku=l.object({mediaId:l.string().min(1),sha256:l.string().regex(/^[a-f0-9]{64}$/).optional(),name:l.string().min(1).max(100)}).strict(),_b=kb.extend({toolId:l.string().min(1),assets:l.array(Ku)}).strict(),SC={schemaVersion:l.literal(1),name:l.string().min(1).max(100),summary:l.string().max(500)},Wu=l.object({...SC,identity:Ii.pick({name:!0,emoji:!0,title:!0,summary:!0,gender:!0}).strict(),guidance:l.string().max(ws),examples:l.array(l.string().max(ws)),tools:l.array(_b),assets:l.array(Ku)}).strict(),P$=l.object({templateId:l.string(),publisherId:l.string(),publisher:l.object({userId:l.string(),fullName:l.string(),avatar:l.object({src:l.string()}).strict().optional()}).strict(),name:l.string(),description:l.string(),snapshot:Wu,createdAt:l.string()}).strict(),R$=l.object({reviewed:l.literal(!0),orgId:l.string().min(1),sourceBotId:l.string().min(1),snapshot:Wu}).strict(),M$=l.object({templateId:l.string().min(1),destination:l.discriminatedUnion("kind",[l.object({kind:l.literal("computer"),computerId:l.string().min(1)}).strict(),l.object({kind:l.literal("first-computer"),orgId:l.string().min(1)}).strict()]),includedToolIds:l.array(l.string().min(1))}).strict(),U$=l.object({"idempotency-key":l.uuid().describe("One UUID per Add intent; reuse it for retries.")})});var j$,Sb=O(()=>{"use strict";Oe();ds();wn();Ti();j$=l.object({user:Mv,computers:l.array(qn),bots:l.array(xn)})});var L$=O(()=>{"use strict";Su();r1();h1();k1();j1();db();Iu();L1();Ou();V1();W1();e$();Wn();Eu();n$();o$();Pu();h$();v$();w$();_$();S$();I$();T$();C$();O$();Si();D$();tb();Ru();Ti();wn();$b();Sb();wn()});function jo(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return n=>n in t}function ke(e){if(we(e)){let t={};for(let n=0;n<e.length;n++){let i=e[n],r=at(i)?JC(i):ke(i);if(r)for(let o in r)t[o]=r[o]}return t}else if(at(e)||Fe(e))return e}function JC(e){let t={};return e.replace(qC,"").split(WC).forEach(n=>{if(n){let i=n.split(GC);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function B(e){let t="";if(at(e))t=e;else if(we(e))for(let n=0;n<e.length;n++){let i=B(e[n]);i&&(t+=i+" ")}else if(Fe(e))for(let n in e)e[n]&&(t+=n+" ");return t.trim()}function Ho(e){if(!e)return null;let{class:t,style:n}=e;return t&&!at(t)&&(e.class=B(t)),n&&(e.style=ke(n)),e}function Xu(e){return!!e||e===""}function XC(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Es(e[i],t[i]);return n}function Es(e,t){if(e===t)return!0;let n=V$(e),i=V$(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=cr(e),i=cr(t),n||i)return e===t;if(n=we(e),i=we(t),n||i)return n&&i?XC(e,t):!1;if(n=Fe(e),i=Fe(t),n||i){if(!n||!i)return!1;let r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(let a in e){let s=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(s&&!c||!s&&c||!Es(e[a],t[a]))return!1}}return String(e)===String(t)}var Je,Ci,Qt,Ib,Lo,Vo,dt,ks,ZC,Be,we,Ni,Gu,V$,$e,at,cr,Fe,Tb,B$,_s,zb,qu,Ju,Fo,Yu,HC,Et,KC,Gr,Oi,$s,_r,Bo,Zo,Ss,Cb,F$,Jn,WC,GC,qC,Z$,H$,YC,K$,ce,W$,Eb,Is=O(()=>{/**
|
|
76
|
+
`);return{version:1,visualType:"chart",chartType:n,meta:{title:u,...d?{description:d}:{},...p?{footer:p}:{}},xKey:r,...o?{xAxisLabel:o}:{},series:a,data:s,fallbackMarkdown:m}}function Bu(e){let t;try{t=JSON.parse(e)}catch(i){let r=e.match(/"fallbackMarkdown"\s*:\s*"((?:[^"\\]|\\.)*)"/),o;if(r)try{o=JSON.parse(`"${r[1]}"`)}catch{}return{ok:!1,reason:"invalid_json",message:i instanceof Error?i.message:"Invalid JSON",fallbackMarkdown:o}}let n=Fu.safeParse(t);if(!n.success){let i=dC(t)??pC(t);if(i){let r=Fu.safeParse(i);if(r.success)return{ok:!0,spec:r.data}}return{ok:!1,reason:"invalid_spec",message:n.error.issues.map(r=>r.message).join("; "),fallbackMarkdown:lC(t)}}return{ok:!0,spec:n.data}}var Y4,fb,kn,Uo,X4,F1,Q4,eC,B1,Z1,hb,rC,nC,iC,oC,aC,sC,Fu,W1=O(()=>{"use strict";Oe();Y4=l.string().trim().min(1).max(240),fb=l.string().trim().min(1).max(800),kn=l.string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/),Uo=l.string().trim().min(1).max(120),X4=l.union([l.string().max(500),l.number().finite(),l.boolean(),l.null()]),F1=l.record(kn,X4),Q4=l.enum(["compact","currency","duration","integer","percent","raw"]),eC=l.object({title:Y4,description:fb.optional(),footer:fb.optional()}).strip(),B1=l.object({dataKey:kn,label:Uo.optional(),axisLabel:Uo.optional(),valueFormat:Q4.optional(),valuePrefix:l.string().trim().max(12).optional(),valueSuffix:l.string().trim().max(12).optional()}).strip(),Z1=l.object({kind:l.literal("linear"),dataKey:kn,label:Uo.optional()}).strip(),hb=l.object({version:l.literal(1),meta:eC,fallbackMarkdown:l.string().trim().min(1).max(4e3)}).strip();rC=hb.extend({visualType:l.literal("chart"),chartType:l.enum(["bar","line","scatter"]),xKey:kn,xAxisLabel:Uo.optional(),series:l.array(B1).min(1).max(6),data:l.array(F1).min(1).max(120),layout:l.enum(["horizontal","vertical"]).optional(),stacking:l.enum(["grouped","stacked"]).optional(),trendLine:Z1.optional()}).strip().superRefine((e,t)=>{e.stacking&&e.chartType!=="bar"&&t.addIssue({code:"custom",path:["stacking"],message:"Stacking is only supported for bar charts"}),e.trendLine&&e.chartType!=="line"&&e.chartType!=="scatter"&&t.addIssue({code:"custom",path:["trendLine"],message:"Trend lines are only supported for line and scatter charts"}),H1(e.data,[{path:["xKey"],value:e.xKey},...e.series.map((n,i)=>({path:["series",i,"dataKey"],value:n.dataKey})),...e.trendLine?[{path:["trendLine","dataKey"],value:e.trendLine.dataKey}]:[]],t),K1(e.data,[...e.series.map((n,i)=>({path:["series",i,"dataKey"],value:n.dataKey})),...e.trendLine?[{path:["trendLine","dataKey"],value:e.trendLine.dataKey}]:[]],t)}),nC=hb.extend({visualType:l.literal("chart"),chartType:l.literal("pie"),nameKey:kn,valueKey:kn,series:l.array(B1).max(1).optional(),data:l.array(F1).min(1).max(16)}).strip().superRefine((e,t)=>{H1(e.data,[{path:["nameKey"],value:e.nameKey},{path:["valueKey"],value:e.valueKey},...(e.series??[]).map((n,i)=>({path:["series",i,"dataKey"],value:n.dataKey}))],t),K1(e.data,[{path:["valueKey"],value:e.valueKey,nonnegative:!0}],t)}),iC=l.discriminatedUnion("chartType",[rC,nC]),oC=l.object({id:kn,label:Uo,detail:fb.optional(),kind:l.enum(["actor","agent","decision","event","input","output","system","task"]).optional()}).strip(),aC=l.object({from:kn,to:kn,label:Uo.optional()}).strip(),sC=hb.extend({visualType:l.literal("diagram"),diagramType:l.enum(["flow","org","sequence","state"]),layout:l.enum(["auto","left-to-right","radial","top-to-bottom"]).default("auto"),nodes:l.array(oC).min(1).max(24),edges:l.array(aC).max(48)}).strip().superRefine((e,t)=>{let n=new Set(e.nodes.map(i=>i.id));for(let[i,r]of e.edges.entries())n.has(r.from)||t.addIssue({code:"custom",path:["edges",i,"from"],message:`Unknown node id "${r.from}"`}),n.has(r.to)||t.addIssue({code:"custom",path:["edges",i,"to"],message:`Unknown node id "${r.to}"`})}),Fu=l.union([iC,sC])});var Zu,Hu,G1,q1,J1,Y1,X1,Q1,e$=O(()=>{"use strict";Oe();Zu=l.object({conversationParticipantId:l.string().min(1),type:l.enum(["user","bot","anonymous"]),id:l.string(),role:l.enum(["owner","requester","member"]),status:l.enum(["active","left","deleted"]),displayName:l.string().optional(),handle:l.string().optional(),avatarUrl:l.string().optional()}).strict(),Hu=l.object({messageId:l.string(),role:l.enum(["user","assistant","system"]),content:l.string(),sequence:l.string(),createdAt:l.string()}),G1=l.object({conversationId:l.string(),orgId:l.string(),kind:l.enum(["direct","group"]),updatedAt:l.string(),viewerRole:l.enum(["owner","requester","member"]),participants:l.array(Zu),lastMessage:Hu.nullable(),openingMessage:l.string().nullable(),unreadCount:l.number().int().nonnegative(),latestSequence:l.string().nullable()}),q1=l.object({sequence:l.string().min(1)}),J1=l.object({turnId:l.string().min(1).optional()}).strict(),Y1=l.object({cancelled:l.boolean(),cancelledTurnIds:l.array(l.string())}).strict(),X1=l.object({conversationId:l.string(),messageId:l.string(),sequence:l.string(),snippet:l.string(),createdAt:l.string(),participants:l.array(Zu)}),Q1=l.object({conversationId:l.string(),lastMessage:Hu.nullable(),unreadCount:l.number().int().nonnegative(),latestSequence:l.string().nullable()})});var kr,mC,fC,hC,t$,gb,vb,r$,n$=O(()=>{"use strict";Oe();Su();Wn();kr=l.preprocess(e=>e===void 0?null:e,l.string().nullable()),mC=l.preprocess(e=>e===void 0?null:e,cs.nullable()),fC=l.preprocess(e=>e===void 0?null:e,Ro.nullable()),hC=l.preprocess(e=>e===void 0?null:e,l.enum(["user","assistant","system"]).nullable()),t$=l.preprocess(e=>e===void 0?0:e,l.number()),gb=l.object({computerId:l.string(),handle:l.string(),name:l.string(),orgId:l.string(),orgName:kr,orgHandle:kr,ownerEmail:kr,ownerName:kr,state:mC,desiredStatus:fC,runtime:l.string(),imageVersion:kr,lastHealthyAt:kr,lastActiveAt:kr,lastUserMessageAt:kr,lastMessageAt:kr,lastMessageRole:hC,lastMessageChannel:kr,primaryChannel:kr,totalMessages:t$,totalSessions:t$,error:kr,appHandle:l.string(),hostAppExists:l.boolean(),plan:l.string(),billingStatus:l.string(),billingActive:l.boolean(),createdAt:l.string(),updatedAt:l.string()}),vb=l.object({running:l.number(),stopped:l.number(),error:l.number(),starting:l.number(),unknown:l.number(),total:l.number()}),r$=l.object({computers:l.array(gb),summary:vb,orphanedApps:l.array(l.string()),dailyMessages30d:l.array(l.number().int()).optional(),hostAppCount:l.number().optional(),latestVersion:l.string().optional(),latestVersions:l.record(l.string(),l.string()).optional()})});var o$=O(()=>{"use strict";Wn()});var gC,a$,s$,bb,l$,c$,u$,d$,p$,m$,f$,h$=O(()=>{"use strict";Oe();gC=l.object({mediaId:l.string().optional(),src:l.string().optional(),alt:l.string().optional(),width:l.number().optional(),height:l.number().optional(),mimeType:l.string().optional(),mediaType:l.string().optional(),blurhash:l.string().optional()}),a$=l.object({membershipId:l.string(),userId:l.string(),orgId:l.string(),email:l.string(),fullName:l.string().optional(),role:l.enum(["owner","admin","member","observer"]),status:l.enum(["active","suspended"]),joinedAt:l.string(),lastSeenAt:l.string().optional(),avatar:gC.optional()}),s$=l.object({invitationId:l.string(),email:l.string(),role:l.enum(["admin","member"]),status:l.string(),expiresAt:l.string(),createdAt:l.string()}),bb=l.object({token:l.string(),email:l.string(),orgId:l.string(),orgName:l.string(),orgInitial:l.string(),inviterName:l.string().optional(),inviterEmail:l.string(),role:l.enum(["owner","admin","member","observer"]),status:l.enum(["pending","accepted","expired","revoked"]),expiresAt:l.string(),memberCount:l.number().optional()}),l$=l.object({email:l.string().email(),role:l.enum(["admin","member"]).optional(),message:l.string().max(500).optional()}).strict(),c$=l.object({role:l.enum(["admin","member"])}).strict(),u$=l.object({token:l.string().min(1)}).strict(),d$=l.object({message:l.string()}),p$=l.object({invitationId:l.string(),message:l.string()}),m$=l.object({message:l.string(),membershipId:l.string(),orgId:l.string(),role:l.enum(["owner","admin","member","observer"])}),f$=l.object({invite:bb.nullable()})});var R8,M8,U8,j8,v$=O(()=>{"use strict";Oe();R8=l.object({deviceId:l.string().min(1).max(64),pushToken:l.string().min(1).max(200),appVersion:l.string().max(40).optional(),osVersion:l.string().max(40).optional(),model:l.string().max(80).optional()}),M8=l.object({deviceId:l.string().min(1).max(64)}),U8=l.object({deviceId:l.string().min(1).max(64),kind:l.string().min(1).max(30),action:l.enum(["displayed","tapped","dismissed"]),messageId:l.string().max(32).optional()}),j8=l.object({updated:l.boolean()})});var b$,y$,x$,w$=O(()=>{"use strict";Oe();ds();Pu();Si();b$=_u.pick({orgId:!0,handle:!0,name:!0,email:!0,website:!0,avatarId:!0,coverId:!0,summary:!0,timezone:!0,isPersonal:!0,status:!0,updatedAt:!0}).extend({avatar:Ei.nullable().optional(),cover:Ei.nullable().optional()}),y$=l.object({name:l.string().min(1).max(255),handle:l.string().min(2).max(50).optional(),timezone:Ft.optional()}).strict(),x$=_u.pick({name:!0,email:!0,website:!0,summary:!0,timezone:!0}).extend({name:l.string().min(1).max(255).optional(),email:l.preprocess(e=>e===""?null:e,l.string().email().nullable()).optional(),timezone:Ft.optional(),avatarMediaId:l.string().nullable().optional(),coverMediaId:l.string().nullable().optional()}).strict()});var k$,_$=O(()=>{"use strict";Oe();k$=l.object({used:l.number().int().nonnegative(),limit:l.number().int().nonnegative(),remaining:l.number().int().nonnegative(),periodEnd:l.string(),isDemo:l.boolean(),state:l.enum(["ok","warning","exhausted"])})});var $$,S$=O(()=>{"use strict";Oe();$$=l.object({messagesHandled:l.number().int().nonnegative(),proactiveRuns:l.number().int().nonnegative(),approvalsWaiting:l.number().int().nonnegative(),approvalConversationId:l.string().optional(),approvalBotId:l.string().optional(),dailyHandled:l.array(l.number().int().nonnegative()).length(30),messagesByAssistant:l.array(l.object({botId:l.string(),count:l.number().int().nonnegative()})),briefingsDelivered:l.number().int().nonnegative(),scheduledRuns:l.number().int().nonnegative(),prev30MessagesHandled:l.number().int().nonnegative(),prev30BriefingsDelivered:l.number().int().nonnegative(),prev30ScheduledRuns:l.number().int().nonnegative(),since:l.string()})});var yb,vC,bC,yC,E$,I$=O(()=>{"use strict";Oe();yb=l.enum(["success","info","warning"]),vC=l.object({orgId:l.string(),name:l.string(),avatarUrl:l.string().nullable()}),bC=l.object({key:l.string(),label:l.string(),tone:yb,status:l.string(),trialDaysRemaining:l.number().optional()}),yC=l.object({activeComputerLimit:l.number().int().nonnegative(),activeComputerCount:l.number().int().nonnegative(),computerCount:l.number().int().nonnegative()}),E$=l.object({org:vC,plan:bC,quota:yC,memberCount:l.number().int().nonnegative()})});var T$=O(()=>{"use strict"});var xC,wC,kC,_C,$C,z$,C$=O(()=>{"use strict";Oe();xC=l.object({sender:l.enum(["user","agent"]),text:l.string()}),wC=l.enum(["works-now","guided-setup","coming-soon","custom-workflow"]),kC=l.object({docsUrl:l.string(),verifiedAt:l.string(),version:l.string().optional(),versionPolicy:l.enum(["date-versioned","header-versioned","path-versioned","endpoint-versioned","unversioned"]),note:l.string().optional()}),_C=l.object({key:l.string(),label:l.string(),rank:l.number()}),$C=l.object({text:l.string(),tone:l.enum(["info","warning","success","danger"])}),z$=l.object({serviceKey:l.string(),name:l.string(),description:l.string(),shortDescription:l.string(),subtitle:l.string().optional(),icon:l.string().optional(),category:l.string(),categoryLabel:l.string(),categoryRank:l.number(),featuredRank:l.number().optional(),secondaryCategories:l.array(_C),badges:l.array($C),tags:l.array(l.string()),searchAliases:l.array(l.string()),jtbd:l.string(),useCase:l.string(),demoScenario:l.string(),sampleConversation:l.array(xC),publicStatus:wC,apiVerification:kC.optional(),setupDifficulty:l.string(),risk:l.string(),price:l.string(),kind:l.string(),tier:l.string(),installLevel:l.enum(["computer","org","both"]),setupSummary:l.string().optional(),pagePath:l.string()})});var xb,N$,O$=O(()=>{"use strict";Oe();xb=l.object({title:l.string().optional(),text:l.string()}),N$=l.object({content:l.string(),mediaType:l.enum(["application/json","text/plain"]),copyLabel:l.string(),action:l.object({label:l.string(),url:l.url()}),steps:l.array(xb)})});var A$,D$=O(()=>{"use strict";Oe();ds();A$=l.object({fullName:l.string().min(1).max(100).optional(),bio:l.string().max(500).nullable().optional(),linkedinUsername:us.nullable().optional(),profileUrl:ku.nullable().optional(),avatarMediaId:l.string().nullable().optional(),lastBotId:l.string().nullable().optional(),lastActiveOrgId:l.string().nullable().optional()}).strict()});var ws,wb,kb,Ku,_b,SC,Wu,P$,R$,M$,U$,$b=O(()=>{"use strict";Oe();wn();ws=8e3,wb=l.string().regex(/^[A-Z][A-Z0-9_]*$/),kb=l.object({name:l.string().trim().min(1).max(100),instructions:l.string().trim().min(1).max(ws),credentialNames:l.array(wb).max(10)}),Ku=l.object({mediaId:l.string().min(1),sha256:l.string().regex(/^[a-f0-9]{64}$/).optional(),name:l.string().min(1).max(100)}).strict(),_b=kb.extend({toolId:l.string().min(1),assets:l.array(Ku)}).strict(),SC={schemaVersion:l.literal(1),name:l.string().min(1).max(100),summary:l.string().max(500)},Wu=l.object({...SC,identity:Ii.pick({name:!0,emoji:!0,title:!0,summary:!0,gender:!0}).strict(),guidance:l.string().max(ws),examples:l.array(l.string().max(ws)),tools:l.array(_b),assets:l.array(Ku)}).strict(),P$=l.object({templateId:l.string(),publisherId:l.string(),publisher:l.object({userId:l.string(),fullName:l.string(),avatar:l.object({src:l.string()}).strict().optional()}).strict(),name:l.string(),description:l.string(),snapshot:Wu,createdAt:l.string()}).strict(),R$=l.object({reviewed:l.literal(!0),orgId:l.string().min(1),sourceBotId:l.string().min(1),snapshot:Wu}).strict(),M$=l.object({templateId:l.string().min(1),destination:l.discriminatedUnion("kind",[l.object({kind:l.literal("computer"),computerId:l.string().min(1)}).strict(),l.object({kind:l.literal("first-computer"),orgId:l.string().min(1)}).strict()]),includedToolIds:l.array(l.string().min(1))}).strict(),U$=l.object({"idempotency-key":l.uuid().describe("One UUID per Add intent; reuse it for retries.")})});var j$,Sb=O(()=>{"use strict";Oe();ds();wn();Ti();j$=l.object({user:Mv,computers:l.array(qn),bots:l.array(xn)})});var L$=O(()=>{"use strict";Su();r1();h1();k1();j1();db();Iu();L1();Ou();V1();W1();e$();Wn();Eu();n$();o$();Pu();h$();v$();w$();_$();S$();I$();T$();C$();O$();Si();D$();tb();Ru();Ti();wn();$b();Sb();wn()});function jo(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return n=>n in t}function ke(e){if(we(e)){let t={};for(let n=0;n<e.length;n++){let i=e[n],r=at(i)?JC(i):ke(i);if(r)for(let o in r)t[o]=r[o]}return t}else if(at(e)||Fe(e))return e}function JC(e){let t={};return e.replace(qC,"").split(WC).forEach(n=>{if(n){let i=n.split(GC);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function B(e){let t="";if(at(e))t=e;else if(we(e))for(let n=0;n<e.length;n++){let i=B(e[n]);i&&(t+=i+" ")}else if(Fe(e))for(let n in e)e[n]&&(t+=n+" ");return t.trim()}function Ho(e){if(!e)return null;let{class:t,style:n}=e;return t&&!at(t)&&(e.class=B(t)),n&&(e.style=ke(n)),e}function Xu(e){return!!e||e===""}function XC(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Es(e[i],t[i]);return n}function Es(e,t){if(e===t)return!0;let n=V$(e),i=V$(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=cr(e),i=cr(t),n||i)return e===t;if(n=we(e),i=we(t),n||i)return n&&i?XC(e,t):!1;if(n=Fe(e),i=Fe(t),n||i){if(!n||!i)return!1;let r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(let a in e){let s=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(s&&!c||!s&&c||!Es(e[a],t[a]))return!1}}return String(e)===String(t)}var Je,Ci,Qt,Ib,Lo,Vo,dt,ks,ZC,Be,we,Ni,Gu,V$,$e,at,cr,Fe,Tb,B$,_s,zb,qu,Ju,Fo,Yu,HC,Et,KC,Gr,Oi,$s,_r,Bo,Zo,Ss,Cb,F$,Jn,WC,GC,qC,Z$,H$,YC,K$,ce,W$,Eb,Is=O(()=>{/**
|
|
77
77
|
* @vue/shared v3.5.40
|
|
78
78
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
79
79
|
* @license MIT
|
|
@@ -99,7 +99,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
99
99
|
`),n=t.length-1;for(;n>=0&&Zt.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
100
100
|
`)}function w6(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return n>0?-2:-1}function k6(e,t=0){let n=t,i="";for(let r of e)if(r===" "){let o=4-n%4;i+=" ".repeat(o),n+=o}else i+=r,n++;return i}function CE(e,t,n,i,r){let o=t.href,a=t.title||null,s=e[1].replace(r.other.outputLinkReplace,"$1");i.state.inLink=!0;let c={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:a,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,c}function _6(e,t,n){let i=e.match(n.other.indentCodeCompensation);if(i===null)return t;let r=i[1];return t.split(`
|
|
101
101
|
`).map(o=>{let a=o.match(n.other.beginningSpace);if(a===null)return o;let[s]=a;return s.length>=r.length?o.slice(r.length):o}).join(`
|
|
102
|
-
`)}function Ge(e,t){return Bi.parse(e,t)}function N6(e){let{orientation:t,maxRows:n,maxWidth:i}=e;if(t==="horizontal"||!i)return NE;let r=i-Nn*2-(n-1)*pa;return Math.min(C6,Math.max(NE,Math.floor(r/n)))}function O6(e){return e.layout==="left-to-right"||e.layout==="radial"?"horizontal":e.layout==="top-to-bottom"?"vertical":e.diagramType==="sequence"?"horizontal":"vertical"}function A6(e){let t=new Set(e.nodes.map(a=>a.id)),n=new Set(e.edges.map(a=>a.to)),i=e.nodes.map(a=>a.id).filter(a=>!n.has(a)),r=new Map;for(let a of i.length?i:e.nodes.slice(0,1).map(s=>s.id))r.set(a,0);for(let a=0;a<e.nodes.length;a++){let s=!1;for(let c of e.edges){if(!t.has(c.from)||!t.has(c.to))continue;let u=r.get(c.from);if(u===void 0)continue;let d=u+1;(r.get(c.to)??-1)<d&&(r.set(c.to,d),s=!0)}if(!s)break}let o=Math.max(0,...r.values());for(let a of e.nodes)r.has(a.id)||r.set(a.id,++o);return r}function D6(e,t){let n=AE(e,O6(e),t?.maxWidth);return t?.maxWidth&&n.orientation==="horizontal"&&n.width>t.maxWidth?AE(e,"vertical",t.maxWidth):n}function AE(e,t,n){let i=A6(e),r=new Map;for(let f of e.nodes){let $=i.get(f.id)??0;r.set($,[...r.get($)??[],f])}let o=[...r.entries()].sort(([f],[$])=>f-$),a=Math.max(1,...o.map(([,f])=>f.length)),s=Math.max(1,o.length),c=N6({orientation:t,maxRows:a,...n===void 0?{}:{maxWidth:n}}),u=t==="horizontal"?Nn*2+s*c+(s-1)*pa:Nn*2+a*c+(a-1)*pa,d=t==="horizontal"?Nn*2+a*U0+(a-1)*OE:Nn*2+s*U0+(s-1)*OE,p=[];for(let[f,[,$]]of o.entries()){let I=(a-$.length)*(t==="horizontal"?86:c+pa)/2;for(let[T,Z]of $.entries()){let V=t==="horizontal"?Nn+f*(c+pa):Nn+I+T*(c+pa),D=t==="horizontal"?Nn+I+T*86:Nn+f*86;p.push({id:Z.id,label:Z.label,...Z.detail?{detail:Z.detail}:{},...Z.kind?{kind:Z.kind}:{},x:V,y:D,width:c,height:U0})}}let m=new Map(p.map(f=>[f.id,f]));return{width:u,height:d,orientation:t,nodes:p,edges:e.edges.flatMap((f,$)=>{let I=m.get(f.from),T=m.get(f.to);if(!I||!T)return[];let Z=t==="horizontal"?I.x+I.width:I.x+I.width/2,V=t==="horizontal"?I.y+I.height/2:I.y+I.height,D=t==="horizontal"?T.x:T.x+T.width/2,L=t==="horizontal"?T.y+T.height/2:T.y;return[{key:`${f.from}-${f.to}-${$}`,from:f.from,to:f.to,...f.label?{label:f.label}:{},x1:Z,y1:V,x2:D,y2:L,labelX:(Z+D)/2,labelY:(V+L)/2}]})}}function eI(e){let{value:t}=e,n=Math.abs(t);return n>=1e6?`${(t/1e6).toFixed(1).replace(/\.0$/,"")}M`:n>=1e3?`${(t/1e3).toFixed(1).replace(/\.0$/,"")}k`:Number.isInteger(t)?`${t}`:t.toFixed(1)}function tI(e){let{seconds:t}=e,n=Math.round(Math.abs(t)),i=t<0?"-":"";if(n<60)return`${i}${n}s`;if(n<3600){let a=Math.floor(n/60),s=n%60;return s?`${i}${a}m ${s}s`:`${i}${a}m`}let r=Math.floor(n/3600),o=Math.floor(n%3600/60);return o?`${i}${r}h ${o}m`:`${i}${r}h`}function rI(e){return{prefix:e?.valuePrefix??(e?.valueFormat==="currency"?"$":""),suffix:e?.valueSuffix??(e?.valueFormat==="percent"?"%":"")}}function j0(e){let{value:t,series:n}=e,{prefix:i,suffix:r}=rI(n),o;switch(n?.valueFormat){case"integer":o=`${Math.round(t)}`;break;case"duration":o=tI({seconds:t});break;case"raw":o=Number.isInteger(t)?`${t}`:t.toFixed(1);break;default:o=eI({value:t})}return`${i}${o}${r}`}function P6(e){let[t,...n]=e.series;if(t)return n.every(i=>i.valueFormat===t.valueFormat&&i.valuePrefix===t.valuePrefix&&i.valueSuffix===t.valueSuffix)?t:void 0}function R6(e){let{value:t,shared:n}=e;if(n?.valueFormat==="duration")return tI({seconds:t});let{prefix:i,suffix:r}=rI(n);return`${i}${eI({value:t})}${r}`}function L6(e){let{labels:t,plotWidth:n}=e;if(!t.length||n<=0)return{mode:"horizontal",entries:[]};let i=t.map(c=>c.length>DE?`${c.slice(0,DE-1).trimEnd()}\u2026`:c),r=t.length-1;if(r===0)return{mode:"horizontal",entries:[{index:0,text:i[0]}]};if((Math.max(...i.map(c=>c.length*M6))+U6)*t.length<=n)return{mode:"horizontal",entries:i.map((c,u)=>({index:u,text:c}))};let o=Math.max(2,Math.floor(n/j6));if(t.length<=o)return{mode:"angled",entries:i.map((c,u)=>({index:u,text:c}))};let a=new Set([0,r]),s=r/(o-1);for(let c=1;c<o-1;c++)a.add(Math.round(c*s));return{mode:"angled",entries:[...a].sort((c,u)=>c-u).map(c=>({index:c,text:i[c]}))}}function k5(e){return e&&x5[e]||w5}function D5(e){return e.hadError?"error":e.sessionState==="live"?e.speaking.bot?"speaking":e.speaking.user?"listening":e.work.active?"working":e.providerThinking?"thinking":"listening":"connecting"}function P5(e){let t=D5(e),n=A5[t],i=t==="working"?e.work.description||"Working on it":n.label,r=t==="working"?i:n.visibleText??"",o=e.takingLonger&&(t==="thinking"||t==="working"),a=o?`${r} ${si.slowHint}`:r;return{activity:t,label:o?a:i,tone:e.isMuted&&t==="listening"?"bg-theme-400":n.tone,visibleStatus:a,usesIdleWave:n.waits||e.isMuted&&t==="listening",takingLonger:o}}var Bd,_A,$A,Md,zA,CA,si,RE,OA,AA,N0,ME,PA,UE,RA,ml,LA,fa,VA,Zd,FA,Hd,BA,ZA,HA,KA,WA,Kd,GA,qA,JA,YA,B0,XA,QA,e3,t3,r3,n3,i3,o3,O0,VE,cE,d3,p3,m3,jt,Lt,da,FE,Z0,H0,la,f3,uE,ca,h3,li,ul,A0,dE,ol,pE,g3,v3,b3,mE,fE,Ot,al,Nt,Fi,hE,D0,P0,_3,R0,$3,gE,vE,M0,bE,Ad,S3,E3,I3,T3,z3,yE,C3,N3,O3,A3,xE,wE,D3,P3,gr,R3,M3,kE,oi,ZE,Dd,Hi,Zi,U3,Zt,j3,L3,V3,fl,F3,J0,HE,KE,B3,Y0,Z3,X0,H3,K3,Wd,Q0,W3,WE,G3,q3,ey,$E,J3,Y3,X3,Q3,GE,e6,ha,Gd,ty,t6,qE,r6,n6,i6,JE,o6,a6,YE,s6,l6,c6,u6,d6,p6,m6,f6,h6,jd,g6,XE,QE,v6,SE,ry,b6,K0,y6,Pd,sl,x6,EE,Ld,jr,Vd,ny,Lr,dl,$6,Bi,S6,E6,I6,T6,z6,NE,U0,Nn,pa,OE,C6,M6,U6,j6,DE,V6,F6,B6,Z6,H6,K6,W6,G6,q6,J6,Y6,X6,Q6,e5,t5,r5,n5,i5,o5,a5,s5,l5,c5,u5,d5,p5,m5,f5,h5,g5,ll,v5,b5,y5,x5,w5,Fd,nI,_5,$5,PE,S5,E5,I5,T5,z5,C5,L0,N5,O5,A5,R5,M5,U5,j5,L5,V5,F5,B5,Z5,H5,K5,W5,G5,q5,J5,Y5,X5,Q5,eD,tD,rD,nD,iD,oD,aD,sD,lD,cD,uD,dD,pD,mD,fD,hD,gD,vD,bD,yD,xD,wD,kD,_D,$D,SD,ED,ID,TD,zD,CD,ND,OD,AD,DD,PD,RD,MD,UD,jD,LD,VD,FD,BD,ZD,HD,KD,WD,GD,qD,JD,YD,XD,Ki,QD,eP,tP,qd,iy=O(()=>{"use strict";fn();C0();rl();an();Bd=py((e,t)=>{let n=e.__vccOpts||e;for(let[i,r]of t)n[i]=r;return n},"default"),_A={},$A={class:"spinner max-w-sm"};Md=Bd(_A,[["render",SA]]);zA=400,CA=class extends xr{constructor(e){super("VoiceRecorderController",e),H(this,"state",W({phase:"idle",elapsedMs:0})),H(this,"isActive",C(()=>this.state.value.phase!=="idle")),H(this,"isBusy",C(()=>this.state.value.phase!=="idle")),H(this,"elapsedLabel",C(()=>EA({ms:this.state.value.elapsedMs}))),H(this,"statusText",C(()=>this.state.value.phase==="preparing"?"Starting microphone":this.state.value.phase==="sending"?"Sending voice message":"Release to send")),H(this,"recorder",void 0),H(this,"stream",void 0),H(this,"chunks",[]),H(this,"timer",void 0),H(this,"startedAt",0),H(this,"cancelOnStop",!1),H(this,"stopAfterStart",!1),H(this,"startToken",0)}get canUseBrowserRecording(){return!!this.settings.getUserMedia||typeof navigator<"u"&&!!navigator.mediaDevices?.getUserMedia&&typeof MediaRecorder<"u"}async start(){if(!this.settings.getCanRecord()||this.state.value.phase!=="idle")return;if(!this.canUseBrowserRecording){this.settings.getChatController()?.notify("Voice recording is not available in this browser.");return}this.state.value={phase:"preparing",elapsedMs:0},this.cancelOnStop=!1;let e=++this.startToken;try{let t=await this.getUserMedia({constraints:{audio:!0}});if(e!==this.startToken){t.getTracks().forEach(r=>r.stop());return}let n=TA(),i=this.createRecorder({stream:t,mimeType:n});this.stream=t,this.recorder=i,this.chunks=[],i.addEventListener("dataavailable",r=>{r.data.size>0&&this.chunks.push(r.data)}),i.addEventListener("stop",async()=>{let r=new Blob(this.chunks,{type:i.mimeType||n||"audio/webm"}),o=this.now()-this.startedAt,a=!this.cancelOnStop&&r.size>0&&o>=zA;if(this.stopCapture(),!a){this.reset();return}this.state.value={phase:"sending",elapsedMs:this.state.value.elapsedMs},await this.sendBlob({blob:r}),this.reset()}),i.start(),this.startedAt=this.now(),this.state.value={phase:"recording",elapsedMs:0},this.timer=this.setInterval(()=>{this.state.value={phase:"recording",elapsedMs:this.now()-this.startedAt}},250),this.stopAfterStart&&this.finish({cancelled:this.cancelOnStop})}catch(t){if(e!==this.startToken)return;this.teardown();let n=t instanceof Error?t.message:"Microphone access failed.";this.settings.getChatController()?.notify(`Voice recording failed \u2014 ${n}`)}}finish(e){if(!(this.state.value.phase==="idle"||this.state.value.phase==="sending")){if(this.state.value.phase==="preparing"){this.stopAfterStart=!0,this.cancelOnStop=e.cancelled;return}if(!this.recorder||this.recorder.state!=="recording"){this.teardown();return}this.cancelOnStop=e.cancelled,this.recorder.stop()}}teardown(){this.cancelOnStop=!0,this.startToken+=1,this.recorder?.state==="recording"&&this.recorder.stop(),this.stopCapture(),this.reset()}async getUserMedia(e){return(this.settings.getUserMedia||navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices))(e.constraints)}createRecorder(e){return this.settings.createRecorder?this.settings.createRecorder(e):e.mimeType?new MediaRecorder(e.stream,{mimeType:e.mimeType}):new MediaRecorder(e.stream)}async sendBlob(e){let t=this.settings.getUploadFn(),n=this.settings.getChatController();if(!t||!n)return;let i=e.blob.type||"audio/webm",r=new File([e.blob],`voice-${new Date().toISOString().replace(/[:.]/g,"-")}.${IA({mimeType:i})}`,{type:i});try{let o=await t(r);this.settings.onBeforeSend?.(),await n.sendChatMessage("",[o])}catch(o){let a=o instanceof Error?o.message:"Couldn't send that recording.";n.notify(`Voice message failed \u2014 ${a}`)}}stopCapture(){this.timer&&(this.clearInterval(this.timer),this.timer=void 0),this.stream?.getTracks().forEach(e=>e.stop()),this.stream=void 0,this.recorder=void 0,this.chunks=[],this.stopAfterStart=!1}reset(){this.state.value={phase:"idle",elapsedMs:0}}now(){return this.settings.now?.()??Date.now()}setInterval(e,t){return this.settings.setInterval?.(e,t)??setInterval(e,t)}clearInterval(e){(this.settings.clearInterval??clearInterval)(e)}};si={finishing:"Finishing up",slowHint:"Taking longer than usual.",completed:"Work complete",failed:"Couldn\u2019t finish",stopped:"Stopped",notifyHint:"Taking longer than usual. You can leave and I\u2019ll notify you when it\u2019s ready.",leaveHint:"Taking longer than usual. You can leave this chat while I work."},RE=1e4,OA=15e3,AA=6e4,N0=3;ME=new Set(["CREDIT_LIMIT","OVERAGE_CAP"]),PA=new Set([...ME,"EMPTY_STREAM","RATE_LIMIT"]),UE=new Set(["bot_deleted","BOT_DELETED"]),RA={CREDIT_LIMIT:"billing_budget_reached",OVERAGE_CAP:"billing_runaway_cap"};ml=class extends xr{isQueuedMessage(e){return this.queuedMessageIdSet.value.has(e)}consumeQueuedThrough(e){if(!e||this.queuedMessageIdSet.value.size===0)return;let t=new Set(this.queuedMessageIdSet.value),n=this.sharedMessages.value.findIndex(i=>i.id===e);n<0?t.delete(e):this.sharedMessages.value.slice(0,n+1).forEach(i=>t.delete(i.id)),this.queuedMessageIdSet.value=t}get activeConversationId(){return this.conversationId}createVoiceClient(e){let{sdk:t,createVoiceClientFn:n}=this.settings,i=this._bot.botId.value,r=this._bot.orgId.value;if(!(!t?.activeUser.value||!i||!r))return n?.({botId:i,orgId:r,conversationId:this.conversationId,handlers:e})}async refreshMessages(){await this.settings.refreshMessagesFn?.()}constructor(e){super("BotChatController",e),H(this,"isTextMode",!1),H(this,"lastMessage",{hash:"",time:0}),H(this,"isConnecting",!1),H(this,"turnEpoch",0),H(this,"nextStreamToken",0),H(this,"runningStreamToken",void 0),H(this,"suppressedStreamTokens",new Set),H(this,"queuedMessageIdSet",W(new Set)),H(this,"queuedMessageIds",C(()=>this.queuedMessageIdSet.value)),H(this,"boundaryTimer",void 0),H(this,"nowMs",Ze(Date.now())),H(this,"toolActivityTiming",Ze({})),H(this,"lastVisibleProgressAtMs",Ze()),H(this,"liveSegments",Ze([])),H(this,"liveStreamMessageId",Ze(void 0)),H(this,"conversationId",void 0),H(this,"textState",W({isActive:!1,isConnected:!1,isThinking:!1,connectionStatus:"disconnected"})),H(this,"botMode",W("self")),H(this,"sharedMessages",W([])),H(this,"composerState",W({text:"",pendingAttachments:[],isUploading:!1})),H(this,"workJournal",C(()=>{let t=this.textState.value.isThinking?"running":this.textState.value.turnOutcome;if(!t)return;let n=this.textState.value.toolActivities;if(n?.length)return F0({activities:n,outcome:t,nowMs:this.nowMs.value,canNotifyOnCompletion:!1,lastVisibleProgressAtMs:this.lastVisibleProgressAtMs.value})})),H(this,"liveTurnBlocks",C(()=>{if(!this.textState.value.isThinking)return[];let t=this.textState.value.toolActivities??[],n=this.liveSegments.value;return!n.length&&!t.length?[]:DA({segments:n,activities:t,nowMs:this.nowMs.value,canNotifyOnCompletion:!1,lastVisibleProgressAtMs:this.lastVisibleProgressAtMs.value})})),H(this,"canUseComposer",C(()=>this.textState.value.sendBlockedReason!=="bot_deleted"&&!this.composerState.value.isUploading)),H(this,"canAttachFile",C(()=>!!this.settings.uploadFileFn)),H(this,"canRecordAudio",C(()=>this.canAttachFile.value&&this.canUseComposer.value&&!this.composerState.value.text.trim()&&this.composerState.value.pendingAttachments.length===0)),H(this,"voiceRecorder",new CA({getCanRecord:()=>this.canRecordAudio.value,getUploadFn:()=>{let t=this.settings.uploadFileFn;return t?n=>t({file:n}):void 0},getChatController:()=>this})),H(this,"canSend",C(()=>(this.composerState.value.text.trim().length>0||this.composerState.value.pendingAttachments.length>0)&&this.canUseComposer.value&&!this.voiceRecorder.isBusy.value)),H(this,"canStop",C(()=>this.textState.value.isThinking&&!this.composerState.value.isUploading&&!this.voiceRecorder.isBusy.value)),H(this,"composerAction",C(()=>this.canSend.value?"send":this.canStop.value?"stop":"idle")),H(this,"composerShowsSecondaryStop",C(()=>this.canStop.value&&this.composerAction.value==="send")),H(this,"canStartVoice",C(()=>{let t=this.settings.sdk;return this.textState.value.sendBlockedReason!=="bot_deleted"&&!!t?.activeUser.value&&!!this._bot.botId.value&&!!this._bot.orgId.value&&!!this.settings.createVoiceClientFn&&jA()})),H(this,"_bot",void 0),H(this,"localMessageSeq",0),this._bot=e.bot,this.setupModeWatcher(),this.setupAvailabilityWatcher(),this.setupBoundaryWatcher()}get chatEnabled(){let e=this._bot.state.value.lifecycle;return this._bot.lifecycle.value===void 0?this._bot.desiredStatus.value==="active":e==="running"}get chatUnavailableReason(){if(this.chatEnabled)return;let e=this._bot.displayName.value,t=this._bot.state.value.lifecycle;return t==="starting"?`${e} is waking up`:t==="stopping"?`${e} is going to sleep`:t==="stopped"?`${e} is asleep`:this._bot.desiredStatus.value==="active"?`${e} is unavailable`:`${e} is offline`}mapChatError(e){return e.includes("429")||e.includes("Too many")?"Too many messages. Please wait a moment.":e.includes("503")||e.includes("not available")?"Bot is currently offline.":e.includes("timed out")?"This request timed out. Try again in a few minutes.":e.includes("starting up")?"Bot is starting up. Please try again.":e.includes("404")?"Bot not found.":e.includes("[no-reply]")?"The reply didn't make it back. Refresh to see if it landed.":e.includes("[stream-open]")||e.includes("[stream-read]")?"Lost connection mid-reply. Try again.":e.includes("[api]")?"Couldn't send. Try again.":"Something went wrong. Try again."}isTransientError(e){return e.includes("timed out")||e.includes("starting up")||e.includes("503")||e.includes("429")||e.includes("[no-reply]")||e.includes("[stream-open]")||e.includes("[stream-read]")||e.includes("[api]")}isDuplicateMessage(e,t){let n=`${t}:${e.toLowerCase().trim()}`,i=Date.now(),r=n===this.lastMessage.hash&&i-this.lastMessage.time<500;return r||(this.lastMessage={hash:n,time:i}),r}addMessage(e,t,n,i){this.isDuplicateMessage(e,t)||(this.sharedMessages.value=[...this.sharedMessages.value,{id:this.nextLocalMessageId(),text:e,sender:t,timestamp:new Date().toISOString(),attachments:n,...i?{issue:i}:{}}])}nextLocalMessageId(){return`${Date.now()}-${++this.localMessageSeq}`}notify(e){e&&this.addMessage(e,"system")}get canReportMessages(){return!!this.settings.reportMessageFn}async reportMessage(e){let t=this.settings.reportMessageFn;if(t)try{await t({messageId:e}),this.notify("Reported. Our team will review this message.")}catch(n){this.logger.warn("reportMessage failed",{messageId:e,error:n instanceof Error?n.message:String(n)}),this.notify("Could not report that message.")}}setComposerText(e){this.composerState.value={...this.composerState.value,text:e.text}}async attachFile(e){let t=this.settings.uploadFileFn;if(!(!t||this.voiceRecorder.isBusy.value)){this.composerState.value={...this.composerState.value,isUploading:!0};try{let n=await t({file:e.file});this.composerState.value={...this.composerState.value,pendingAttachments:[...this.composerState.value.pendingAttachments,n]}}catch(n){let i=n instanceof Error?n.message:"Couldn't attach that file.";this.notify(`Upload failed \u2014 ${i}`)}finally{this.composerState.value={...this.composerState.value,isUploading:!1}}}}removeAttachment(e){this.composerState.value={...this.composerState.value,pendingAttachments:this.composerState.value.pendingAttachments.filter((t,n)=>n!==e.index)}}addOfflineSystemReply(){let e=this._bot.displayName.value||"Your assistant",t=this._bot.state.value.blocker;if(t){let s=t.actionUrl.startsWith("pagelines://")?this.settings.billingUrl:t.actionUrl,c=[`${t.title}.${t.help?` ${t.help}`:""}`,t.actionLabel&&s?`[${t.actionLabel}](${s})`:t.actionLabel||""].filter(Boolean).join(" "),u=this.sharedMessages.value[this.sharedMessages.value.length-1];if(u?.sender==="system"&&u.text===c)return;this.addMessage(c,"system");return}let n=this.chatUnavailableReason??`${e} is unavailable`,i=this._bot.state.value.lifecycle==="stopped"||this._bot.desiredStatus.value!=="active",r=this.settings.manageUrl,o=i?r?`${n}, so your message can't be answered yet. [Wake ${e}](${r}), then send again.`:`${n}, so your message can't be answered yet. Wake it from the dashboard, then send again.`:`${n}. Give it a moment and send again.`,a=this.sharedMessages.value[this.sharedMessages.value.length-1];a?.sender==="system"&&a.text===o||this.addMessage(o,"system")}async sendComposerMessage(){if(!this.canSend.value)return;let e=this.composerState.value.text,t=this.composerState.value.pendingAttachments.length>0?[...this.composerState.value.pendingAttachments]:void 0;if(!this.chatEnabled){this.addOfflineSystemReply();return}this.composerState.value={...this.composerState.value,text:"",pendingAttachments:[]},await this.sendChatMessage(e,t)}async handleComposerAction(){if(this.composerAction.value==="stop"){await this.stopChatTurn();return}this.composerAction.value==="send"&&await this.sendComposerMessage()}getDynamicSettings(){return{context:this.settings.context||"",firstMessage:this.settings.firstMessage||""}}updateState(e,t){e.value={...e.value,...t}}resetWorkJournalTiming(){this.toolActivityTiming.value={},this.lastVisibleProgressAtMs.value=void 0,this.liveSegments.value=[],this.liveStreamMessageId.value=void 0,this.clearBoundaryTimer()}resetState(){this.resetWorkJournalTiming(),this.updateState(this.textState,{isActive:!1,isConnected:!1,isThinking:!1,connectionStatus:"disconnected",error:void 0,sendBlockedReason:void 0,workingDescription:void 0,toolActivities:void 0,turnOutcome:void 0})}setupBoundaryWatcher(){st(()=>this.workJournal.value?.nextBoundaryAtMs,e=>{this.scheduleBoundary(e)})}scheduleBoundary(e){if(this.clearBoundaryTimer(),e===void 0)return;let t=Math.max(0,e-Date.now());this.boundaryTimer=setTimeout(()=>{this.boundaryTimer=void 0,this.nowMs.value=Date.now()},t),this.boundaryTimer.unref?.()}clearBoundaryTimer(){this.boundaryTimer&&(clearTimeout(this.boundaryTimer),this.boundaryTimer=void 0)}rememberToolActivity(e){let t=Od(e.startedAt)??this.toolActivityTiming.value[e.activityId]?.startedAt??(e.status==="started"?Date.now():void 0),n=Od(e.endedAt)??this.toolActivityTiming.value[e.activityId]?.endedAt??(e.status==="started"?void 0:Date.now());t&&(this.toolActivityTiming.value={...this.toolActivityTiming.value,[e.activityId]:{startedAt:t,...n?{endedAt:n}:{}}})}withToolActivityTiming(e){let t=this.toolActivityTiming.value[e.activityId],n=Date.now(),i=Od(e.startedAt)??t?.startedAt??(e.status==="started"?n:void 0),r=Od(e.endedAt)??t?.endedAt??(e.status==="started"?void 0:n);return{...e,...i!==void 0&&!e.startedAt?{startedAt:new Date(i).toISOString()}:{},...r!==void 0&&!e.endedAt?{endedAt:new Date(r).toISOString()}:{}}}updateToolActivity(e){let t=this.textState.value.toolActivities??[],n=t.findIndex(o=>o.activityId===e.activityId),i=this.withToolActivityTiming({...n>=0?t[n]:{},...e}),r=n>=0?[...t.slice(0,n),i,...t.slice(n+1)]:[...t,i];this.rememberToolActivity(i),this.updateState(this.textState,{toolActivities:r})}finishToolActivities(e){let t=this.textState.value.toolActivities;if(!t?.length)return;let n=t.map(i=>i.status==="started"?this.withToolActivityTiming({...i,status:e}):i);n.forEach(i=>this.rememberToolActivity(i)),this.updateState(this.textState,{toolActivities:n})}workJournalFor(e){if(e.activities?.length)return F0({activities:e.activities,outcome:e.outcome,nowMs:this.nowMs.value,canNotifyOnCompletion:!1,includeFailureNote:e.includeFailureNote})}setupModeWatcher(){st(this.botMode,async(e,t)=>{this.logger.info(`Mode changed from ${t} to ${e}`),this.isTextMode&&(t==="talk"||t==="chat")&&await this.endConversation()})}setupAvailabilityWatcher(){st(()=>[this.chatEnabled,this._bot.state.value.lifecycle],([e])=>{if(!(!this.isTextMode||this.isConnecting)){if(e){this.textState.value.isConnected||this.updateState(this.textState,{isConnected:!0,connectionStatus:"connected",error:void 0});return}this.textState.value.isConnected&&this.updateState(this.textState,{isConnected:!1,connectionStatus:"disconnected",error:this.chatUnavailableReason})}})}handleError(e,t){let n=e.message;this.logger.error("Conversation error:",{message:n,raw:t,error:e}),this.addMessage(n,"system"),this.resetState(),this.updateState(this.textState,{error:n,connectionStatus:"error"})}async setMode(e){this.botMode.value!==e&&(this.botMode.value=e)}async startTextConversation(e={}){if(this.isConnecting){this.logger.info("Text conversation already connecting, ignoring duplicate request");return}this.isConnecting=!0,this.isTextMode=!0,this.updateState(this.textState,{isActive:!0,connectionStatus:"connecting"});try{if(!this.chatEnabled){this.isConnecting=!1,this.updateState(this.textState,{isConnected:!1,connectionStatus:"disconnected",error:this.chatUnavailableReason});return}this.isConnecting=!1,this.updateState(this.textState,{isConnected:!0,connectionStatus:"connected"}),e.onConnect?.(),this.logger.info("Text conversation ready")}catch(t){throw this.isConnecting=!1,this.handleError(t),t}}async endConversation(){if(this.turnEpoch+=1,this.runningStreamToken=void 0,this.suppressedStreamTokens.clear(),this.queuedMessageIdSet.value=new Set,!this.isTextMode){this.resetState();return}try{this.conversationId=void 0,this.resetState(),this.isTextMode=!1}catch{this.isTextMode=!1}}async sendChatMessage(e,t){if(!this.isTextMode)return;let{chatStreamFn:n}=this.settings;if(!this.chatEnabled){this.addOfflineSystemReply();return}if(this.textState.value.sendBlockedReason==="bot_deleted")return;let{sdk:i}=this.settings;if(!n&&!this._bot.handle.value){this.handleError(Error("Bot handle required for chat"));return}let r=this.textState.value.isThinking,o=this.sharedMessages.value.length;this.addMessage(e,"user",t);let a=this.sharedMessages.value.length>o?this.sharedMessages.value[this.sharedMessages.value.length-1]?.id:void 0,s=this.turnEpoch,c=++this.nextStreamToken;r&&a?this.queuedMessageIdSet.value=new Set(this.queuedMessageIdSet.value).add(a):(this.runningStreamToken=c,this.resetWorkJournalTiming(),this.updateState(this.textState,{isThinking:!0,workingDescription:void 0,toolActivities:[],transientIssue:void 0,turnOutcome:void 0}));let u=`stream-${Date.now()}-${c}`,d=!1,p=!1,m=()=>s===this.turnEpoch&&!this.suppressedStreamTokens.has(c),f=U=>{if(s!==this.turnEpoch||!a)return;let ae=this.sharedMessages.value;if(this.sharedMessages.value=ae.some(ue=>ue.id===U.id)?ae.filter(ue=>ue.id!==a||ue.id===U.id):ae.map(ue=>ue.id===a?U:ue),this.queuedMessageIdSet.value.has(a)){let ue=new Set(this.queuedMessageIdSet.value);ue.delete(a),ue.add(U.id),this.queuedMessageIdSet.value=ue}a=U.id},$=()=>{this.runningStreamToken!==c&&(this.runningStreamToken=c,this.consumeQueuedThrough(a),this.resetWorkJournalTiming(),this.updateState(this.textState,{isThinking:!0,workingDescription:void 0,toolActivities:[],transientIssue:void 0,turnOutcome:void 0}))},I=(U,ae="assistant")=>{if(!m())return;$(),this.updateState(this.textState,{workingDescription:void 0}),ae==="assistant"&&(this.lastVisibleProgressAtMs.value=Date.now()),d||(d=!0,this.liveStreamMessageId.value=u,this.sharedMessages.value=[...this.sharedMessages.value,{id:u,text:"",sender:ae==="system"?"system":"bot",timestamp:new Date().toISOString()}]);let ue=this.liveSegments.value,re=ue[ue.length-1];this.liveSegments.value=re?.kind==="text"?[...ue.slice(0,-1),{kind:"text",content:re.content+U}]:[...ue,{kind:"text",content:U}];let J=this.sharedMessages.value,se=J[J.length-1];se?.id===u&&(se.text+=U,this.sharedMessages.value=[...J])},T=U=>{if(!m())return;if($(),p=!0,U.sender==="bot"&&ps(U.text)){this.liveSegments.value=[],this.liveStreamMessageId.value=void 0,this.sharedMessages.value=this.sharedMessages.value.filter(ne=>ne.id!==u);return}d=!0;let ae=U.sender==="system"||U.turnOutcome==="failed"?"failed":"completed";this.finishToolActivities(ae);let ue=this.textState.value.toolActivities,re=U.toolActivities?.length||!ue?.length?U:{...U,toolActivities:ue};this.liveSegments.value=[],this.liveStreamMessageId.value=void 0,this.updateState(this.textState,{workingDescription:void 0,toolActivities:[],turnOutcome:void 0});let J=this.sharedMessages.value.filter(ne=>ne.id!==u),se=J.findIndex(ne=>ne.id===re.id);se>=0?this.sharedMessages.value=[...J.slice(0,se),re,...J.slice(se+1)]:this.sharedMessages.value=[...J,re],re.sender==="system"&&re.issue?.bucket==="account"?this.updateState(this.textState,{sendBlockedReason:"account"}):re.sender==="system"&&re.issue?.code&&UE.has(re.issue.code)&&this.updateState(this.textState,{sendBlockedReason:"bot_deleted"})},Z=U=>{if(!m())return;if(!d&&!p){V("empty_stream \u2014 assistant returned no content");return}this.finishToolActivities("completed");let ae=this.sharedMessages.value,ue=ae[ae.length-1];ue?.id===u&&ue.sender==="bot"&&ps(ue.text)&&(this.sharedMessages.value=ae.slice(0,-1)),U&&(this.conversationId=U),this.updateState(this.textState,{isThinking:!1,workingDescription:void 0,transientIssue:void 0}),this.settings.onTurnCompleted?.(U)},V=U=>{if(!m())return;if(this.runningStreamToken!==c){this.consumeQueuedThrough(a),this.sharedMessages.value=this.sharedMessages.value.filter(se=>se.id!==a),this.composerState.value.text||(this.composerState.value={...this.composerState.value,text:e,pendingAttachments:t??[]});return}this.updateState(this.textState,{workingDescription:void 0,turnOutcome:"failed"}),this.finishToolActivities("failed");let ae=this.sharedMessages.value,ue=ae[ae.length-1];if(ue?.id===u&&!ue.text&&(this.sharedMessages.value=ae.slice(0,-1)),typeof U=="object"&&U.code&&U.error){let se=MA(U);se.surface==="transient"?this.updateState(this.textState,{isThinking:!1,transientIssue:se.issue}):se.surface==="transcript"?(this.addMessage(UA(U),"system",void 0,se.issue),this.updateState(this.textState,{isThinking:!1,...se.sendBlockedReason?{sendBlockedReason:se.sendBlockedReason}:{}})):this.handleError(Error(U.error));return}let re=typeof U=="string"?U:U.error,J=this.mapChatError(re);this.isTransientError(re)?(this.logger.warn("Chat turn failed (transient):",{raw:re,friendly:J}),this.addMessage(J,"system"),this.updateState(this.textState,{isThinking:!1})):this.handleError(Error(J),re)},D=U=>{if(!m())return;$();let ae=U.trim();this.updateState(this.textState,{workingDescription:ae||void 0})},L=U=>{if(m()){if($(),this.lastVisibleProgressAtMs.value=Date.now(),U.status==="started"){let ae=this.liveSegments.value,ue=ae[ae.length-1];ue?.kind==="work"?ue.activityIds.includes(U.activityId)||(this.liveSegments.value=[...ae.slice(0,-1),{kind:"work",activityIds:[...ue.activityIds,U.activityId]}]):this.liveSegments.value=[...ae,{kind:"work",activityIds:[U.activityId]}]}this.updateToolActivity(U)}},z=()=>{m()&&this.updateState(this.textState,{workingDescription:void 0})};try{this.settings.onTurnStarted?.(),await(n?n({message:e,attachments:t,conversationId:this.conversationId,history:this.buildHistory(),onDelta:I,onMessage:T,onUserMessage:f,onDone:Z,onError:V,onStatus:D,onToolActivity:L,onWorkingEnd:z}):i.chat.chatStreamPublic({handle:this._bot.handle.value,message:e,attachments:t,anonymousId:i.user.generateAnonId(),context:this.getDynamicSettings().context||void 0,onDelta:I,onMessage:T,onDone:Z,onError:V,onStatus:D,onToolActivity:L,onWorkingEnd:z}))}catch(U){V(U.message||"Something went wrong")}finally{this.runningStreamToken===c&&(this.runningStreamToken=void 0)}}async stopChatTurn(){if(this.textState.value.isThinking){this.runningStreamToken!==void 0&&this.suppressedStreamTokens.add(this.runningStreamToken),this.runningStreamToken=void 0,this.updateState(this.textState,{isThinking:!1,turnOutcome:"stopped",workingDescription:void 0,transientIssue:void 0});try{await this.settings.cancelChatTurnFn?.({conversationId:this.conversationId})}catch(e){this.logger.warn("stopChatTurn: cancel failed",{conversationId:this.conversationId,error:e instanceof Error?e.message:String(e)})}}}buildHistory(){return this.sharedMessages.value.filter(e=>e.sender==="user"||e.sender==="bot").slice(-20).map(e=>({role:e.sender==="user"?"user":"assistant",content:e.text,...e.attachments?.length?{attachments:e.attachments}:{}})).filter(e=>e.content.length>0||e.attachments&&e.attachments.length>0)}loadMessages(e){this.conversationId=e.conversationId;let t=this.sharedMessages.value,n=e.messages.filter(d=>d.sender!=="bot"||!ps(d.text)),i=new Set(n.map(d=>d.id)),r=t.filter(d=>!i.has(d.id)),o=n[0]?.sequence,a=d=>!!o&&!!d.sequence&&d.sequence<o;if(this.sharedMessages.value=[...r.filter(a),...n,...r.filter(d=>!a(d))],this.runningStreamToken!==void 0)return;let s=new Set(this.sharedMessages.value.flatMap(d=>d.toolActivities?.map(p=>p.turnId)??[])),c=new Set(this.textState.value.turnOutcome==="stopped"?this.textState.value.toolActivities?.map(d=>d.turnId):[]),u=(e.activeToolActivities??[]).filter(d=>!s.has(d.turnId)&&!c.has(d.turnId));u.length?(u.forEach(d=>this.rememberToolActivity(d)),this.updateState(this.textState,{isThinking:!0,workingDescription:void 0,toolActivities:u,transientIssue:void 0,turnOutcome:void 0})):this.textState.value.toolActivities?.some(d=>s.has(d.turnId))&&this.updateState(this.textState,{isThinking:!1,workingDescription:void 0,toolActivities:[],turnOutcome:void 0})}async destroy(){this.clearBoundaryTimer(),this.voiceRecorder.teardown(),await this.endConversation()}};LA={key:0,class:"absolute inset-0 flex items-center justify-center"},fa=Ae({__name:"ElBotButton",props:{theme:{default:"primary"},size:{default:"lg"},loading:{type:Boolean,default:!1},icon:{},iconAfter:{}},setup(e){let t=C(()=>({primary:"bg-primary-600 border-primary-400 hover:border-primary-300 hover:bg-primary-500",green:"bg-green-600 border-green-400 hover:border-green-300 hover:bg-green-500",red:"bg-red-600 border-red-400 hover:border-red-300 hover:bg-red-500",default:"bg-white/10 border-white/20 hover:border-white/40 hover:bg-white/20",dark:"bg-theme-900 border-transparent hover:bg-theme-800"})[e.theme]),n=C(()=>({sm:"px-4 py-2 text-sm",md:"px-6 py-3 text-base",lg:"px-8 py-4 text-base"})[e.size]),i=C(()=>({sm:"size-4",md:"size-4",lg:"size-5"})[e.size]);return(r,o)=>(v(),x("button",{class:B(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",[t.value,n.value]])},[e.loading?(v(),x("div",LA,[...o[0]||(o[0]=[y("i",{class:"i-svg-spinners-90-ring-with-bg size-5"},null,-1)])])):Y("",!0),y("span",{class:B(["flex items-center gap-2 transition-opacity duration-200",e.loading?"opacity-0":"opacity-100"])},[e.icon?(v(),x("i",{key:0,class:B([e.icon,i.value])},null,2)):Y("",!0),nr(r.$slots,"default"),e.iconAfter?(v(),x("i",{key:1,class:B([e.iconAfter,i.value])},null,2)):Y("",!0)],2)],2))}}),VA=["value"],Zd=Ae({__name:"BotInputEmail",props:{modelValue:{default:""}},emits:["update:modelValue"],setup(e,{emit:t}){let n=t;return(i,r)=>(v(),x("input",{name:"username",type:"email",inputmode:"email",autocomplete:"username",autocapitalize:"off",autocorrect:"off",spellcheck:"false",placeholder:"Enter your email",value:e.modelValue,class:"w-full px-6 py-3 text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",style:{"font-size":"16px"},onInput:r[0]||(r[0]=o=>n("update:modelValue",o.target.value))},null,40,VA))}}),FA=["placeholder","value"],Hd=Ae({__name:"BotInputOneTimeCode",props:{modelValue:{},length:{},focusFirst:{type:Boolean}},emits:["update:modelValue","autoSubmit"],setup(e,{emit:t}){let n=e,i=t,r=W(null),o=C(()=>"0".repeat(n.length));It(()=>{n.focusFirst&&!("ontouchstart"in window)&&r.value?.focus()});function a(s){let c=s.target.value.replace(/\D/g,"").slice(0,n.length);i("update:modelValue",c),c.length===n.length&&i("autoSubmit",c)}return(s,c)=>(v(),x("input",{ref_key:"input",ref:r,name:"one-time-code",type:"text",inputmode:"numeric",autocomplete:"one-time-code",autocapitalize:"off",autocorrect:"off",spellcheck:"false",enterkeyhint:"done",placeholder:o.value,value:e.modelValue,class:"w-full px-6 py-3 text-center font-mono tracking-[0.35em] text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",style:{"font-size":"16px"},onInput:a},null,40,FA))}}),BA={class:"relative flex-shrink-0"},ZA=["src","alt"],HA={class:"absolute top-1 right-1"},KA={key:1,class:"size-3 bg-theme-400 rounded-full ring-2 ring-white"},WA={class:"min-w-0"},Kd=Ae({__name:"ElModeHeader",props:{bot:{},size:{default:"md"},isOnline:{type:Boolean,default:!1},layout:{default:"centered"}},setup(e){return(t,n)=>(v(),x("div",{class:B(["flex gap-4",[e.layout==="centered"?"flex-col items-center text-center":"flex-row items-center justify-center"]])},[y("div",BA,[y("div",{class:B(["rounded-full overflow-hidden border-white",e.size==="lg"?"w-20 h-20 sm:w-24 sm:h-24 border-4":"w-16 sm:size-16 border-2"])},[y("img",{src:e.bot.avatarUrl.value,alt:e.bot.displayName.value,class:"w-full h-full object-cover",onError:n[0]||(n[0]=(...i)=>Te(pl)&&Te(pl)(...i))},null,40,ZA)],2),y("div",HA,[e.isOnline?(v(),x(he,{key:0},[n[1]||(n[1]=y("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"3s"}},null,-1)),n[2]||(n[2]=y("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white"},null,-1))],64)):(v(),x("div",KA))])]),y("div",WA,[y("h1",{class:B(["font-light text-white mb-1 truncate",[e.size==="lg"?"text-3xl mb-2":"text-xl sm:text-2xl tracking-wide leading-tight",e.layout==="horizontal"?"text-white/95":""]])},ce(e.bot.displayName.value),3),y("p",{class:B(["font-light line-clamp-1",[e.size==="lg"?"text-base text-white/60":"text-sm sm:text-base",e.layout==="horizontal"?"text-white/70 truncate":"text-white/60"]])},ce(e.layout==="horizontal"?e.bot.title.value||"Assistant":e.bot.title.value),3)])],2))}}),GA={class:"relative shrink-0 rounded-full"},qA=["src","alt"],JA=["src","alt"],YA=["aria-label"],B0=Ae({__name:"BotAvatar",props:{bot:{},showStatus:{type:Boolean,default:!0},showOwnerMark:{type:Boolean,default:!0},isLight:{type:Boolean,default:!0}},setup(e){let t={green:"bg-green-500",amber:"bg-amber-500",red:"bg-red-500",grey:"bg-theme-300"},n=C(()=>{let o=e.bot.state.value;return e.showStatus&&o.lifecycle!=="unknown"?t[o.color]:null}),i={width:"clamp(7px, 14%, 14px)",height:"clamp(7px, 14%, 14px)",top:"calc(14.6% - clamp(3.5px, 7%, 7px))",right:"calc(14.6% - clamp(3.5px, 7%, 7px))"},r=C(()=>e.isLight?"ring-white":"ring-theme-900");return(o,a)=>(v(),x("div",GA,[y("img",{src:e.bot.avatarUrl.value,alt:e.bot.displayName.value,class:B(["size-full rounded-full object-cover ring-1",e.isLight?"ring-black/5":"ring-white/10"])},null,10,qA),e.showOwnerMark&&e.bot.ownerMarkUrl.value?(v(),x("img",{key:0,src:e.bot.ownerMarkUrl.value,alt:e.bot.owner.value?.fullName?`Owned by ${e.bot.owner.value.fullName}`:"Owner",class:B(["absolute z-10 size-[36%] -bottom-[3%] -left-[3%] rounded-full object-cover ring-2",r.value])},null,10,JA)):Y("",!0),n.value?(v(),x("span",{key:1,role:"status","aria-label":e.bot.state.value.tooltip,class:B(["absolute z-10 rounded-full ring-2",[n.value,r.value]]),style:i},null,10,YA)):Y("",!0),n.value&&e.bot.state.value.lifecycle==="running"?(v(),x("span",{key:2,"aria-hidden":"true",class:B(["pointer-events-none absolute rounded-full animate-ping opacity-50 [animation-duration:3s]",n.value]),style:i},null,2)):Y("",!0)]))}}),XA={key:0,class:"sr-only",role:"status","aria-live":"polite"},QA=["aria-expanded","disabled"],e3=["aria-expanded"],t3={class:"flex w-5 shrink-0 justify-center self-stretch","aria-hidden":"true"},r3=["data-journal-row"],n3={class:"flex w-5 shrink-0 flex-col items-center self-stretch","aria-hidden":"true"},i3={class:"flex h-[17px] shrink-0 items-center"},o3={key:0,class:"sr-only"},O0=Ae({__name:"BotToolActivityGroup",props:{model:{},isLight:{type:Boolean}},setup(e){let t=e,n=Ze(!1);function i(){n.value=!n.value}let r=C(()=>t.model.outcome==="completed"),o=C(()=>t.model.hiddenRows.length),a=C(()=>t.model.hint??(t.model.terminal?.tone==="active"?t.model.terminal.label:void 0)),s=C(()=>{let d=t.model;return r.value?n.value?d.hiddenRows:[]:[...n.value?d.hiddenRows:[],...d.visibleRows,...d.terminal?[d.terminal]:[]]}),c=C(()=>t.isLight?{spine:"bg-theme-200",dashed:"border-theme-300",doneMark:"text-theme-400",failedMark:"text-theme-500",activeLine:"text-theme-900",stoppedSquare:"bg-theme-500",muted:"text-theme-500",ring:"focus-visible:ring-theme-900"}:{spine:"bg-white/15",dashed:"border-white/25",doneMark:"text-white/45",failedMark:"text-white/60",activeLine:"text-white",stoppedSquare:"bg-white/55",muted:"text-white/55",ring:"focus-visible:ring-white"}),u=C(()=>{let d=t.isLight;return{done:{statusWord:"completed",label:d?"text-[12.5px] text-theme-500":"text-[12.5px] text-white/55",station:{tag:"i",class:`i-tabler-check size-3 ${c.value.doneMark}`}},active:{statusWord:"in progress",label:d?"text-[13px] font-medium text-theme-900":"text-[13px] font-medium text-white",station:{tag:"span",class:`chat-pulse-dot size-1.5 rounded-full bg-current ${c.value.activeLine}`}},failed:{statusWord:"failed",label:d?"text-[12.5px] font-medium text-theme-700":"text-[12.5px] font-medium text-white/80",station:{tag:"i",class:`i-tabler-alert-circle size-3.5 ${c.value.failedMark}`}},stopped:{label:d?"text-[13px] font-medium text-theme-600":"text-[13px] font-medium text-white/70",station:{tag:"span",class:`size-[9px] rounded-[2px] ${c.value.stoppedSquare}`}},completed:{label:d?"text-[12.5px] text-theme-500":"text-[12.5px] text-white/55",station:{tag:"i",class:"i-tabler-circle-check size-3.5 text-green-600"}}}});return(d,p)=>(v(),x("div",{class:B(["w-full py-0.5",c.value.muted])},[a.value?(v(),x("span",XA,ce(a.value),1)):Y("",!0),r.value?(v(),x("button",{key:1,type:"button","data-test":"messaging-tool-activity-summary","data-journal-disclosure":"","aria-expanded":n.value,disabled:o.value===0,class:B(["flex min-h-11 items-center gap-x-2 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-default",c.value.ring]),onClick:i},[p[0]||(p[0]=y("i",{"data-journal-station":"completed",class:"i-tabler-circle-check size-3.5 shrink-0 text-green-600","aria-hidden":"true"},null,-1)),y("span",{class:B(["text-[12.5px] font-medium leading-none",c.value.muted])},ce(e.model.terminal?.label),3),o.value?(v(),x("i",{key:0,class:B(["size-[13px] shrink-0",[n.value?"i-tabler-chevron-down":"i-tabler-chevron-right",c.value.muted]]),"aria-hidden":"true"},null,2)):Y("",!0)],10,QA)):o.value?(v(),x("button",{key:2,type:"button","data-test":"messaging-tool-activity-summary","data-journal-disclosure":"","aria-expanded":n.value,class:B(["flex min-h-11 w-full gap-x-2.5 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",c.value.ring]),onClick:i},[y("span",t3,[y("span",{"data-journal-spine":"dashed",class:B(["w-0 border-l border-dashed",c.value.dashed])},null,2)]),y("span",{class:B(["flex min-h-[20px] items-center gap-0.5 pb-2 text-[12px] leading-none",c.value.muted])},[xt(ce(o.value)+" earlier updates ",1),y("i",{class:B(["size-3 shrink-0",n.value?"i-tabler-chevron-down":"i-tabler-chevron-right"]),"aria-hidden":"true"},null,2)],2)],10,e3)):Y("",!0),(v(!0),x(he,null,et(s.value,(m,f)=>(v(),x("div",{key:m.id,"data-test":"messaging-tool-activity-row","data-journal-row":m.tone,class:B([r.value?"pl-[22px]":"","flex gap-x-2.5"])},[y("div",n3,[y("span",i3,[(v(),He(QS(u.value[m.tone].station.tag),{"data-journal-station":m.tone,class:B(u.value[m.tone].station.class)},null,8,["data-journal-station","class"]))]),f===s.value.length-1?Y("",!0):(v(),x("span",{key:0,class:B(["w-px flex-1",c.value.spine])},null,2))]),y("div",{class:B(["min-w-0 flex-1",f===s.value.length-1?"":"pb-2"])},[y("span",{class:B(["relative block leading-snug",u.value[m.tone].label])},[xt(ce(m.label),1),u.value[m.tone].statusWord?(v(),x("span",o3,", "+ce(u.value[m.tone].statusWord),1)):Y("",!0)],2),m.note?(v(),x("p",{key:0,class:B(["pt-0.5 text-[11.5px] leading-snug",c.value.muted])},ce(m.note),3)):Y("",!0)],2)],10,r3))),128)),!r.value&&e.model.hint?(v(),x("p",{key:3,"data-test":"messaging-tool-activity-hint",class:B(["pl-[30px] pt-2.5 text-[12px] leading-snug",c.value.muted])},ce(e.model.hint),3)):Y("",!0)],2))}});VE=Object.entries,cE=Object.setPrototypeOf,d3=Object.isFrozen,p3=Object.getPrototypeOf,m3=Object.getOwnPropertyDescriptor,jt=Object.freeze,Lt=Object.seal,da=Object.create,FE=typeof Reflect<"u"&&Reflect,Z0=FE.apply,H0=FE.construct;jt||(jt=function(t){return t}),Lt||(Lt=function(t){return t}),Z0||(Z0=function(t,n){var i=[...arguments].slice(2);return t.apply(n,i)}),H0||(H0=function(t){return new t(...[...arguments].slice(1))});la=St(Array.prototype.forEach),f3=St(Array.prototype.lastIndexOf),uE=St(Array.prototype.pop),ca=St(Array.prototype.push),h3=St(Array.prototype.splice),li=Array.isArray,ul=St(String.prototype.toLowerCase),A0=St(String.prototype.toString),dE=St(String.prototype.match),ol=St(String.prototype.replace),pE=St(String.prototype.indexOf),g3=St(String.prototype.trim),v3=St(Number.prototype.toString),b3=St(Boolean.prototype.toString),mE=typeof BigInt>"u"?null:St(BigInt.prototype.toString),fE=typeof Symbol>"u"?null:St(Symbol.prototype.toString),Ot=St(Object.prototype.hasOwnProperty),al=St(Object.prototype.toString),Nt=St(RegExp.prototype.test),Fi=y3(TypeError);hE=jt("a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")),D0=jt("svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")),P0=jt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_3=jt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R0=jt("math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")),$3=jt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gE=jt(["#text"]),vE=jt("accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")),M0=jt("accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")),bE=jt("accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")),Ad=jt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),S3=Lt(/{{[\w\W]*|^[\w\W]*}}/g),E3=Lt(/<%[\w\W]*|^[\w\W]*%>/g),I3=Lt(/\${[\w\W]*/g),T3=Lt(/^data-[\-\w.\u00B7-\uFFFF]+$/),z3=Lt(/^aria-[\-\w]+$/),yE=Lt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),C3=Lt(/^(?:\w+script|data):/i),N3=Lt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),O3=Lt(/^html$/i),A3=Lt(/^[a-z][.\w]*(-[.\w]+)+$/i),xE=Lt(/<[/\w!]/g),wE=Lt(/<[/\w]/g),D3=Lt(/<\/no(script|embed|frames)/i),P3=Lt(/\/>/i),gr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},R3=function(){return typeof window>"u"?null:window},M3=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null,r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(i=n.getAttribute(r));let o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},kE=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},oi=function(t,n,i,r){return Ot(t,n)&&li(t[n])?Le(r.base?ir(r.base):{},t[n],r.transform):i};ZE=BE();Hi=q0();Zi={exec:()=>null};U3=((e="")=>{try{return!!RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Zt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:ua(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:ua(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:ua(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:ua(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:ua(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:ua(e=>RegExp(`^ {0,${e}}>`))},j3=/^(?:[ \t]*(?:\n|$))+/,L3=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,V3=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,fl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,F3=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,J0=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,HE=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,KE=Ve(HE).replace(/bull/g,J0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),B3=Ve(HE).replace(/bull/g,J0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Y0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Z3=/^[^\n]+/,X0=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,H3=Ve(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",X0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),K3=Ve(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,J0).getRegex(),Wd="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Q0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,W3=Ve("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Q0).replace("tag",Wd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),WE=e=>Ve(Y0).replace("hr",fl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Wd).getRegex(),G3=WE(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),q3=WE(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),ey={blockquote:Ve(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",q3).getRegex(),code:L3,def:H3,fences:V3,heading:F3,hr:fl,html:W3,lheading:KE,list:K3,newline:j3,paragraph:G3,table:Zi,text:Z3},$E=Ve("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",fl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Wd).getRegex(),J3={...ey,lheading:B3,table:$E,paragraph:Ve(Y0).replace("hr",fl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",$E).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Wd).getRegex()},Y3={...ey,html:Ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Q0).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Zi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ve(Y0).replace("hr",fl).replace("heading",` *#{1,6} *[^
|
|
102
|
+
`)}function Ge(e,t){return Bi.parse(e,t)}function N6(e){let{orientation:t,maxRows:n,maxWidth:i}=e;if(t==="horizontal"||!i)return NE;let r=i-Nn*2-(n-1)*pa;return Math.min(C6,Math.max(NE,Math.floor(r/n)))}function O6(e){return e.layout==="left-to-right"||e.layout==="radial"?"horizontal":e.layout==="top-to-bottom"?"vertical":e.diagramType==="sequence"?"horizontal":"vertical"}function A6(e){let t=new Set(e.nodes.map(a=>a.id)),n=new Set(e.edges.map(a=>a.to)),i=e.nodes.map(a=>a.id).filter(a=>!n.has(a)),r=new Map;for(let a of i.length?i:e.nodes.slice(0,1).map(s=>s.id))r.set(a,0);for(let a=0;a<e.nodes.length;a++){let s=!1;for(let c of e.edges){if(!t.has(c.from)||!t.has(c.to))continue;let u=r.get(c.from);if(u===void 0)continue;let d=u+1;(r.get(c.to)??-1)<d&&(r.set(c.to,d),s=!0)}if(!s)break}let o=Math.max(0,...r.values());for(let a of e.nodes)r.has(a.id)||r.set(a.id,++o);return r}function D6(e,t){let n=AE(e,O6(e),t?.maxWidth);return t?.maxWidth&&n.orientation==="horizontal"&&n.width>t.maxWidth?AE(e,"vertical",t.maxWidth):n}function AE(e,t,n){let i=A6(e),r=new Map;for(let f of e.nodes){let $=i.get(f.id)??0;r.set($,[...r.get($)??[],f])}let o=[...r.entries()].sort(([f],[$])=>f-$),a=Math.max(1,...o.map(([,f])=>f.length)),s=Math.max(1,o.length),c=N6({orientation:t,maxRows:a,...n===void 0?{}:{maxWidth:n}}),u=t==="horizontal"?Nn*2+s*c+(s-1)*pa:Nn*2+a*c+(a-1)*pa,d=t==="horizontal"?Nn*2+a*U0+(a-1)*OE:Nn*2+s*U0+(s-1)*OE,p=[];for(let[f,[,$]]of o.entries()){let I=(a-$.length)*(t==="horizontal"?86:c+pa)/2;for(let[T,Z]of $.entries()){let V=t==="horizontal"?Nn+f*(c+pa):Nn+I+T*(c+pa),D=t==="horizontal"?Nn+I+T*86:Nn+f*86;p.push({id:Z.id,label:Z.label,...Z.detail?{detail:Z.detail}:{},...Z.kind?{kind:Z.kind}:{},x:V,y:D,width:c,height:U0})}}let m=new Map(p.map(f=>[f.id,f]));return{width:u,height:d,orientation:t,nodes:p,edges:e.edges.flatMap((f,$)=>{let I=m.get(f.from),T=m.get(f.to);if(!I||!T)return[];let Z=t==="horizontal"?I.x+I.width:I.x+I.width/2,V=t==="horizontal"?I.y+I.height/2:I.y+I.height,D=t==="horizontal"?T.x:T.x+T.width/2,L=t==="horizontal"?T.y+T.height/2:T.y;return[{key:`${f.from}-${f.to}-${$}`,from:f.from,to:f.to,...f.label?{label:f.label}:{},x1:Z,y1:V,x2:D,y2:L,labelX:(Z+D)/2,labelY:(V+L)/2}]})}}function eI(e){let{value:t}=e,n=Math.abs(t);return n>=1e6?`${(t/1e6).toFixed(1).replace(/\.0$/,"")}M`:n>=1e3?`${(t/1e3).toFixed(1).replace(/\.0$/,"")}k`:Number.isInteger(t)?`${t}`:t.toFixed(1)}function tI(e){let{seconds:t}=e,n=Math.round(Math.abs(t)),i=t<0?"-":"";if(n<60)return`${i}${n}s`;if(n<3600){let a=Math.floor(n/60),s=n%60;return s?`${i}${a}m ${s}s`:`${i}${a}m`}let r=Math.floor(n/3600),o=Math.floor(n%3600/60);return o?`${i}${r}h ${o}m`:`${i}${r}h`}function rI(e){return{prefix:e?.valuePrefix??(e?.valueFormat==="currency"?"$":""),suffix:e?.valueSuffix??(e?.valueFormat==="percent"?"%":"")}}function j0(e){let{value:t,series:n}=e,{prefix:i,suffix:r}=rI(n),o;switch(n?.valueFormat){case"integer":o=`${Math.round(t)}`;break;case"duration":o=tI({seconds:t});break;case"raw":o=Number.isInteger(t)?`${t}`:t.toFixed(1);break;default:o=eI({value:t})}return`${i}${o}${r}`}function P6(e){let[t,...n]=e.series;if(t)return n.every(i=>i.valueFormat===t.valueFormat&&i.valuePrefix===t.valuePrefix&&i.valueSuffix===t.valueSuffix)?t:void 0}function R6(e){let{value:t,shared:n}=e;if(n?.valueFormat==="duration")return tI({seconds:t});let{prefix:i,suffix:r}=rI(n);return`${i}${eI({value:t})}${r}`}function L6(e){let{labels:t,plotWidth:n}=e;if(!t.length||n<=0)return{mode:"horizontal",entries:[]};let i=t.map(c=>c.length>DE?`${c.slice(0,DE-1).trimEnd()}\u2026`:c),r=t.length-1;if(r===0)return{mode:"horizontal",entries:[{index:0,text:i[0]}]};if((Math.max(...i.map(c=>c.length*M6))+U6)*t.length<=n)return{mode:"horizontal",entries:i.map((c,u)=>({index:u,text:c}))};let o=Math.max(2,Math.floor(n/j6));if(t.length<=o)return{mode:"angled",entries:i.map((c,u)=>({index:u,text:c}))};let a=new Set([0,r]),s=r/(o-1);for(let c=1;c<o-1;c++)a.add(Math.round(c*s));return{mode:"angled",entries:[...a].sort((c,u)=>c-u).map(c=>({index:c,text:i[c]}))}}function k5(e){return e&&x5[e]||w5}function D5(e){return e.hadError?"error":e.sessionState==="live"?e.speaking.bot?"speaking":e.speaking.user?"listening":e.work.active?"working":e.providerThinking?"thinking":"listening":"connecting"}function P5(e){let t=D5(e),n=A5[t],i=t==="working"?e.work.description||"Working on it":n.label,r=t==="working"?i:n.visibleText??"",o=e.takingLonger&&(t==="thinking"||t==="working"),a=o?`${r} ${si.slowHint}`:r;return{activity:t,label:o?a:i,tone:e.isMuted&&t==="listening"?"bg-theme-400":n.tone,visibleStatus:a,usesIdleWave:n.waits||e.isMuted&&t==="listening",takingLonger:o}}var Bd,_A,$A,Md,zA,CA,si,RE,OA,AA,N0,ME,PA,UE,RA,ml,LA,fa,VA,Zd,FA,Hd,BA,ZA,HA,KA,WA,Kd,GA,qA,JA,YA,B0,XA,QA,e3,t3,r3,n3,i3,o3,O0,VE,cE,d3,p3,m3,jt,Lt,da,FE,Z0,H0,la,f3,uE,ca,h3,li,ul,A0,dE,ol,pE,g3,v3,b3,mE,fE,Ot,al,Nt,Fi,hE,D0,P0,_3,R0,$3,gE,vE,M0,bE,Ad,S3,E3,I3,T3,z3,yE,C3,N3,O3,A3,xE,wE,D3,P3,gr,R3,M3,kE,oi,ZE,Dd,Hi,Zi,U3,Zt,j3,L3,V3,fl,F3,J0,HE,KE,B3,Y0,Z3,X0,H3,K3,Wd,Q0,W3,WE,G3,q3,ey,$E,J3,Y3,X3,Q3,GE,e6,ha,Gd,ty,t6,qE,r6,n6,i6,JE,o6,a6,YE,s6,l6,c6,u6,d6,p6,m6,f6,h6,jd,g6,XE,QE,v6,SE,ry,b6,K0,y6,Pd,sl,x6,EE,Ld,jr,Vd,ny,Lr,dl,$6,Bi,S6,E6,I6,T6,z6,NE,U0,Nn,pa,OE,C6,M6,U6,j6,DE,V6,F6,B6,Z6,H6,K6,W6,G6,q6,J6,Y6,X6,Q6,e5,t5,r5,n5,i5,o5,a5,s5,l5,c5,u5,d5,p5,m5,f5,h5,g5,ll,v5,b5,y5,x5,w5,Fd,nI,_5,$5,PE,S5,E5,I5,T5,z5,C5,L0,N5,O5,A5,R5,M5,U5,j5,L5,V5,F5,B5,Z5,H5,K5,W5,G5,q5,J5,Y5,X5,Q5,eD,tD,rD,nD,iD,oD,aD,sD,lD,cD,uD,dD,pD,mD,fD,hD,gD,vD,bD,yD,xD,wD,kD,_D,$D,SD,ED,ID,TD,zD,CD,ND,OD,AD,DD,PD,RD,MD,UD,jD,LD,VD,FD,BD,ZD,HD,KD,WD,GD,qD,JD,YD,XD,Ki,QD,eP,tP,qd,iy=O(()=>{"use strict";fn();C0();rl();an();Bd=py((e,t)=>{let n=e.__vccOpts||e;for(let[i,r]of t)n[i]=r;return n},"default"),_A={},$A={class:"spinner max-w-sm"};Md=Bd(_A,[["render",SA]]);zA=400,CA=class extends xr{constructor(e){super("VoiceRecorderController",e),H(this,"state",W({phase:"idle",elapsedMs:0})),H(this,"isActive",C(()=>this.state.value.phase!=="idle")),H(this,"isBusy",C(()=>this.state.value.phase!=="idle")),H(this,"elapsedLabel",C(()=>EA({ms:this.state.value.elapsedMs}))),H(this,"statusText",C(()=>this.state.value.phase==="preparing"?"Starting microphone":this.state.value.phase==="sending"?"Sending voice message":"Release to send")),H(this,"recorder",void 0),H(this,"stream",void 0),H(this,"chunks",[]),H(this,"timer",void 0),H(this,"startedAt",0),H(this,"cancelOnStop",!1),H(this,"stopAfterStart",!1),H(this,"startToken",0)}get canUseBrowserRecording(){return!!this.settings.getUserMedia||typeof navigator<"u"&&!!navigator.mediaDevices?.getUserMedia&&typeof MediaRecorder<"u"}async start(){if(!this.settings.getCanRecord()||this.state.value.phase!=="idle")return;if(!this.canUseBrowserRecording){this.settings.getChatController()?.notify("Voice recording is not available in this browser.");return}this.state.value={phase:"preparing",elapsedMs:0},this.cancelOnStop=!1;let e=++this.startToken;try{let t=await this.getUserMedia({constraints:{audio:!0}});if(e!==this.startToken){t.getTracks().forEach(r=>r.stop());return}let n=TA(),i=this.createRecorder({stream:t,mimeType:n});this.stream=t,this.recorder=i,this.chunks=[],i.addEventListener("dataavailable",r=>{r.data.size>0&&this.chunks.push(r.data)}),i.addEventListener("stop",async()=>{let r=new Blob(this.chunks,{type:i.mimeType||n||"audio/webm"}),o=this.now()-this.startedAt,a=!this.cancelOnStop&&r.size>0&&o>=zA;if(this.stopCapture(),!a){this.reset();return}this.state.value={phase:"sending",elapsedMs:this.state.value.elapsedMs},await this.sendBlob({blob:r}),this.reset()}),i.start(),this.startedAt=this.now(),this.state.value={phase:"recording",elapsedMs:0},this.timer=this.setInterval(()=>{this.state.value={phase:"recording",elapsedMs:this.now()-this.startedAt}},250),this.stopAfterStart&&this.finish({cancelled:this.cancelOnStop})}catch(t){if(e!==this.startToken)return;this.teardown();let n=t instanceof Error?t.message:"Microphone access failed.";this.settings.getChatController()?.notify(`Voice recording failed \u2014 ${n}`)}}finish(e){if(!(this.state.value.phase==="idle"||this.state.value.phase==="sending")){if(this.state.value.phase==="preparing"){this.stopAfterStart=!0,this.cancelOnStop=e.cancelled;return}if(!this.recorder||this.recorder.state!=="recording"){this.teardown();return}this.cancelOnStop=e.cancelled,this.recorder.stop()}}teardown(){this.cancelOnStop=!0,this.startToken+=1,this.recorder?.state==="recording"&&this.recorder.stop(),this.stopCapture(),this.reset()}async getUserMedia(e){return(this.settings.getUserMedia||navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices))(e.constraints)}createRecorder(e){return this.settings.createRecorder?this.settings.createRecorder(e):e.mimeType?new MediaRecorder(e.stream,{mimeType:e.mimeType}):new MediaRecorder(e.stream)}async sendBlob(e){let t=this.settings.getUploadFn(),n=this.settings.getChatController();if(!t||!n)return;let i=e.blob.type||"audio/webm",r=new File([e.blob],`voice-${new Date().toISOString().replace(/[:.]/g,"-")}.${IA({mimeType:i})}`,{type:i});try{let o=await t(r);this.settings.onBeforeSend?.(),await n.sendChatMessage("",[o])}catch(o){let a=o instanceof Error?o.message:"Couldn't send that recording.";n.notify(`Voice message failed \u2014 ${a}`)}}stopCapture(){this.timer&&(this.clearInterval(this.timer),this.timer=void 0),this.stream?.getTracks().forEach(e=>e.stop()),this.stream=void 0,this.recorder=void 0,this.chunks=[],this.stopAfterStart=!1}reset(){this.state.value={phase:"idle",elapsedMs:0}}now(){return this.settings.now?.()??Date.now()}setInterval(e,t){return this.settings.setInterval?.(e,t)??setInterval(e,t)}clearInterval(e){(this.settings.clearInterval??clearInterval)(e)}};si={finishing:"Finishing up",slowHint:"Taking longer than usual.",completed:"Work complete",failed:"Couldn\u2019t finish",stopped:"Stopped",notifyHint:"Taking longer than usual. You can leave and I\u2019ll notify you when it\u2019s ready.",leaveHint:"Taking longer than usual. You can leave this chat while I work."},RE=1e4,OA=15e3,AA=6e4,N0=3;ME=new Set(["CREDIT_LIMIT","OVERAGE_CAP"]),PA=new Set([...ME,"EMPTY_STREAM","RATE_LIMIT"]),UE=new Set(["bot_deleted","BOT_DELETED"]),RA={CREDIT_LIMIT:"billing_budget_reached",OVERAGE_CAP:"billing_runaway_cap"};ml=class extends xr{isQueuedMessage(e){return this.queuedMessageIdSet.value.has(e)}consumeQueuedThrough(e){if(!e||this.queuedMessageIdSet.value.size===0)return;let t=new Set(this.queuedMessageIdSet.value),n=this.sharedMessages.value.findIndex(i=>i.id===e);n<0?t.delete(e):this.sharedMessages.value.slice(0,n+1).forEach(i=>t.delete(i.id)),this.queuedMessageIdSet.value=t}get activeConversationId(){return this.conversationId}createVoiceClient(e){let{sdk:t,createVoiceClientFn:n}=this.settings,i=this._bot.botId.value,r=this._bot.orgId.value;if(!(!t?.activeUser.value||!i||!r))return n?.({botId:i,orgId:r,conversationId:this.conversationId,handlers:e})}async refreshMessages(){await this.settings.refreshMessagesFn?.()}constructor(e){super("BotChatController",e),H(this,"isTextMode",!1),H(this,"lastMessage",{hash:"",time:0}),H(this,"isConnecting",!1),H(this,"turnEpoch",0),H(this,"nextStreamToken",0),H(this,"runningStreamToken",void 0),H(this,"suppressedStreamTokens",new Set),H(this,"queuedMessageIdSet",W(new Set)),H(this,"queuedMessageIds",C(()=>this.queuedMessageIdSet.value)),H(this,"boundaryTimer",void 0),H(this,"nowMs",Ze(Date.now())),H(this,"toolActivityTiming",Ze({})),H(this,"lastVisibleProgressAtMs",Ze()),H(this,"liveSegments",Ze([])),H(this,"liveStreamMessageId",Ze(void 0)),H(this,"conversationId",void 0),H(this,"textState",W({isActive:!1,isConnected:!1,isThinking:!1,connectionStatus:"disconnected"})),H(this,"botMode",W("self")),H(this,"sharedMessages",W([])),H(this,"composerState",W({text:"",pendingAttachments:[],isUploading:!1})),H(this,"workJournal",C(()=>{let t=this.textState.value.isThinking?"running":this.textState.value.turnOutcome;if(!t)return;let n=this.textState.value.toolActivities;if(n?.length)return F0({activities:n,outcome:t,nowMs:this.nowMs.value,canNotifyOnCompletion:!1,lastVisibleProgressAtMs:this.lastVisibleProgressAtMs.value})})),H(this,"liveTurnBlocks",C(()=>{if(!this.textState.value.isThinking)return[];let t=this.textState.value.toolActivities??[],n=this.liveSegments.value;return!n.length&&!t.length?[]:DA({segments:n,activities:t,nowMs:this.nowMs.value,canNotifyOnCompletion:!1,lastVisibleProgressAtMs:this.lastVisibleProgressAtMs.value})})),H(this,"canUseComposer",C(()=>this.textState.value.sendBlockedReason!=="bot_deleted"&&!this.composerState.value.isUploading)),H(this,"canAttachFile",C(()=>!!this.settings.uploadFileFn)),H(this,"canRecordAudio",C(()=>this.canAttachFile.value&&this.canUseComposer.value&&!this.composerState.value.text.trim()&&this.composerState.value.pendingAttachments.length===0)),H(this,"voiceRecorder",new CA({getCanRecord:()=>this.canRecordAudio.value,getUploadFn:()=>{let t=this.settings.uploadFileFn;return t?n=>t({file:n}):void 0},getChatController:()=>this})),H(this,"canSend",C(()=>(this.composerState.value.text.trim().length>0||this.composerState.value.pendingAttachments.length>0)&&this.canUseComposer.value&&!this.voiceRecorder.isBusy.value)),H(this,"canStop",C(()=>this.textState.value.isThinking&&!this.composerState.value.isUploading&&!this.voiceRecorder.isBusy.value)),H(this,"composerAction",C(()=>this.canSend.value?"send":this.canStop.value?"stop":"idle")),H(this,"composerShowsSecondaryStop",C(()=>this.canStop.value&&this.composerAction.value==="send")),H(this,"canStartVoice",C(()=>{let t=this.settings.sdk;return this.textState.value.sendBlockedReason!=="bot_deleted"&&!!t?.activeUser.value&&!!this._bot.botId.value&&!!this._bot.orgId.value&&!!this.settings.createVoiceClientFn&&jA()})),H(this,"_bot",void 0),H(this,"localMessageSeq",0),this._bot=e.bot,this.setupModeWatcher(),this.setupAvailabilityWatcher(),this.setupBoundaryWatcher()}get chatEnabled(){let e=this._bot.state.value.lifecycle;return this._bot.lifecycle.value===void 0?this._bot.desiredStatus.value==="active":e==="running"}get chatUnavailableReason(){if(this.chatEnabled)return;let e=this._bot.displayName.value,t=this._bot.state.value.lifecycle;return t==="starting"?`${e} is waking up`:t==="stopped"?`${e} is asleep`:this._bot.desiredStatus.value==="active"?`${e} is unavailable`:`${e} is offline`}mapChatError(e){return e.includes("429")||e.includes("Too many")?"Too many messages. Please wait a moment.":e.includes("503")||e.includes("not available")?"Bot is currently offline.":e.includes("timed out")?"This request timed out. Try again in a few minutes.":e.includes("starting up")?"Bot is starting up. Please try again.":e.includes("404")?"Bot not found.":e.includes("[no-reply]")?"The reply didn't make it back. Refresh to see if it landed.":e.includes("[stream-open]")||e.includes("[stream-read]")?"Lost connection mid-reply. Try again.":e.includes("[api]")?"Couldn't send. Try again.":"Something went wrong. Try again."}isTransientError(e){return e.includes("timed out")||e.includes("starting up")||e.includes("503")||e.includes("429")||e.includes("[no-reply]")||e.includes("[stream-open]")||e.includes("[stream-read]")||e.includes("[api]")}isDuplicateMessage(e,t){let n=`${t}:${e.toLowerCase().trim()}`,i=Date.now(),r=n===this.lastMessage.hash&&i-this.lastMessage.time<500;return r||(this.lastMessage={hash:n,time:i}),r}addMessage(e,t,n,i){this.isDuplicateMessage(e,t)||(this.sharedMessages.value=[...this.sharedMessages.value,{id:this.nextLocalMessageId(),text:e,sender:t,timestamp:new Date().toISOString(),attachments:n,...i?{issue:i}:{}}])}nextLocalMessageId(){return`${Date.now()}-${++this.localMessageSeq}`}notify(e){e&&this.addMessage(e,"system")}get canReportMessages(){return!!this.settings.reportMessageFn}async reportMessage(e){let t=this.settings.reportMessageFn;if(t)try{await t({messageId:e}),this.notify("Reported. Our team will review this message.")}catch(n){this.logger.warn("reportMessage failed",{messageId:e,error:n instanceof Error?n.message:String(n)}),this.notify("Could not report that message.")}}setComposerText(e){this.composerState.value={...this.composerState.value,text:e.text}}async attachFile(e){let t=this.settings.uploadFileFn;if(!(!t||this.voiceRecorder.isBusy.value)){this.composerState.value={...this.composerState.value,isUploading:!0};try{let n=await t({file:e.file});this.composerState.value={...this.composerState.value,pendingAttachments:[...this.composerState.value.pendingAttachments,n]}}catch(n){let i=n instanceof Error?n.message:"Couldn't attach that file.";this.notify(`Upload failed \u2014 ${i}`)}finally{this.composerState.value={...this.composerState.value,isUploading:!1}}}}removeAttachment(e){this.composerState.value={...this.composerState.value,pendingAttachments:this.composerState.value.pendingAttachments.filter((t,n)=>n!==e.index)}}addOfflineSystemReply(){let e=this._bot.displayName.value||"Your assistant",t=this._bot.state.value.blocker;if(t){let s=t.actionUrl.startsWith("pagelines://")?this.settings.billingUrl:t.actionUrl,c=[`${t.title}.${t.help?` ${t.help}`:""}`,t.actionLabel&&s?`[${t.actionLabel}](${s})`:t.actionLabel||""].filter(Boolean).join(" "),u=this.sharedMessages.value[this.sharedMessages.value.length-1];if(u?.sender==="system"&&u.text===c)return;this.addMessage(c,"system");return}let n=this.chatUnavailableReason??`${e} is unavailable`,i=this._bot.state.value.lifecycle==="stopped"||this._bot.desiredStatus.value!=="active",r=this.settings.manageUrl,o=i?r?`${n}, so your message can't be answered yet. [Wake ${e}](${r}), then send again.`:`${n}, so your message can't be answered yet. Wake it from the dashboard, then send again.`:`${n}. Give it a moment and send again.`,a=this.sharedMessages.value[this.sharedMessages.value.length-1];a?.sender==="system"&&a.text===o||this.addMessage(o,"system")}async sendComposerMessage(){if(!this.canSend.value)return;let e=this.composerState.value.text,t=this.composerState.value.pendingAttachments.length>0?[...this.composerState.value.pendingAttachments]:void 0;if(!this.chatEnabled){this.addOfflineSystemReply();return}this.composerState.value={...this.composerState.value,text:"",pendingAttachments:[]},await this.sendChatMessage(e,t)}async handleComposerAction(){if(this.composerAction.value==="stop"){await this.stopChatTurn();return}this.composerAction.value==="send"&&await this.sendComposerMessage()}getDynamicSettings(){return{context:this.settings.context||"",firstMessage:this.settings.firstMessage||""}}updateState(e,t){e.value={...e.value,...t}}resetWorkJournalTiming(){this.toolActivityTiming.value={},this.lastVisibleProgressAtMs.value=void 0,this.liveSegments.value=[],this.liveStreamMessageId.value=void 0,this.clearBoundaryTimer()}resetState(){this.resetWorkJournalTiming(),this.updateState(this.textState,{isActive:!1,isConnected:!1,isThinking:!1,connectionStatus:"disconnected",error:void 0,sendBlockedReason:void 0,workingDescription:void 0,toolActivities:void 0,turnOutcome:void 0})}setupBoundaryWatcher(){st(()=>this.workJournal.value?.nextBoundaryAtMs,e=>{this.scheduleBoundary(e)})}scheduleBoundary(e){if(this.clearBoundaryTimer(),e===void 0)return;let t=Math.max(0,e-Date.now());this.boundaryTimer=setTimeout(()=>{this.boundaryTimer=void 0,this.nowMs.value=Date.now()},t),this.boundaryTimer.unref?.()}clearBoundaryTimer(){this.boundaryTimer&&(clearTimeout(this.boundaryTimer),this.boundaryTimer=void 0)}rememberToolActivity(e){let t=Od(e.startedAt)??this.toolActivityTiming.value[e.activityId]?.startedAt??(e.status==="started"?Date.now():void 0),n=Od(e.endedAt)??this.toolActivityTiming.value[e.activityId]?.endedAt??(e.status==="started"?void 0:Date.now());t&&(this.toolActivityTiming.value={...this.toolActivityTiming.value,[e.activityId]:{startedAt:t,...n?{endedAt:n}:{}}})}withToolActivityTiming(e){let t=this.toolActivityTiming.value[e.activityId],n=Date.now(),i=Od(e.startedAt)??t?.startedAt??(e.status==="started"?n:void 0),r=Od(e.endedAt)??t?.endedAt??(e.status==="started"?void 0:n);return{...e,...i!==void 0&&!e.startedAt?{startedAt:new Date(i).toISOString()}:{},...r!==void 0&&!e.endedAt?{endedAt:new Date(r).toISOString()}:{}}}updateToolActivity(e){let t=this.textState.value.toolActivities??[],n=t.findIndex(o=>o.activityId===e.activityId),i=this.withToolActivityTiming({...n>=0?t[n]:{},...e}),r=n>=0?[...t.slice(0,n),i,...t.slice(n+1)]:[...t,i];this.rememberToolActivity(i),this.updateState(this.textState,{toolActivities:r})}finishToolActivities(e){let t=this.textState.value.toolActivities;if(!t?.length)return;let n=t.map(i=>i.status==="started"?this.withToolActivityTiming({...i,status:e}):i);n.forEach(i=>this.rememberToolActivity(i)),this.updateState(this.textState,{toolActivities:n})}workJournalFor(e){if(e.activities?.length)return F0({activities:e.activities,outcome:e.outcome,nowMs:this.nowMs.value,canNotifyOnCompletion:!1,includeFailureNote:e.includeFailureNote})}setupModeWatcher(){st(this.botMode,async(e,t)=>{this.logger.info(`Mode changed from ${t} to ${e}`),this.isTextMode&&(t==="talk"||t==="chat")&&await this.endConversation()})}setupAvailabilityWatcher(){st(()=>[this.chatEnabled,this._bot.state.value.lifecycle],([e])=>{if(!(!this.isTextMode||this.isConnecting)){if(e){this.textState.value.isConnected||this.updateState(this.textState,{isConnected:!0,connectionStatus:"connected",error:void 0});return}this.textState.value.isConnected&&this.updateState(this.textState,{isConnected:!1,connectionStatus:"disconnected",error:this.chatUnavailableReason})}})}handleError(e,t){let n=e.message;this.logger.error("Conversation error:",{message:n,raw:t,error:e}),this.addMessage(n,"system"),this.resetState(),this.updateState(this.textState,{error:n,connectionStatus:"error"})}async setMode(e){this.botMode.value!==e&&(this.botMode.value=e)}async startTextConversation(e={}){if(this.isConnecting){this.logger.info("Text conversation already connecting, ignoring duplicate request");return}this.isConnecting=!0,this.isTextMode=!0,this.updateState(this.textState,{isActive:!0,connectionStatus:"connecting"});try{if(!this.chatEnabled){this.isConnecting=!1,this.updateState(this.textState,{isConnected:!1,connectionStatus:"disconnected",error:this.chatUnavailableReason});return}this.isConnecting=!1,this.updateState(this.textState,{isConnected:!0,connectionStatus:"connected"}),e.onConnect?.(),this.logger.info("Text conversation ready")}catch(t){throw this.isConnecting=!1,this.handleError(t),t}}async endConversation(){if(this.turnEpoch+=1,this.runningStreamToken=void 0,this.suppressedStreamTokens.clear(),this.queuedMessageIdSet.value=new Set,!this.isTextMode){this.resetState();return}try{this.conversationId=void 0,this.resetState(),this.isTextMode=!1}catch{this.isTextMode=!1}}async sendChatMessage(e,t){if(!this.isTextMode)return;let{chatStreamFn:n}=this.settings;if(!this.chatEnabled){this.addOfflineSystemReply();return}if(this.textState.value.sendBlockedReason==="bot_deleted")return;let{sdk:i}=this.settings;if(!n&&!this._bot.handle.value){this.handleError(Error("Bot handle required for chat"));return}let r=this.textState.value.isThinking,o=this.sharedMessages.value.length;this.addMessage(e,"user",t);let a=this.sharedMessages.value.length>o?this.sharedMessages.value[this.sharedMessages.value.length-1]?.id:void 0,s=this.turnEpoch,c=++this.nextStreamToken;r&&a?this.queuedMessageIdSet.value=new Set(this.queuedMessageIdSet.value).add(a):(this.runningStreamToken=c,this.resetWorkJournalTiming(),this.updateState(this.textState,{isThinking:!0,workingDescription:void 0,toolActivities:[],transientIssue:void 0,turnOutcome:void 0}));let u=`stream-${Date.now()}-${c}`,d=!1,p=!1,m=()=>s===this.turnEpoch&&!this.suppressedStreamTokens.has(c),f=U=>{if(s!==this.turnEpoch||!a)return;let ae=this.sharedMessages.value;if(this.sharedMessages.value=ae.some(ue=>ue.id===U.id)?ae.filter(ue=>ue.id!==a||ue.id===U.id):ae.map(ue=>ue.id===a?U:ue),this.queuedMessageIdSet.value.has(a)){let ue=new Set(this.queuedMessageIdSet.value);ue.delete(a),ue.add(U.id),this.queuedMessageIdSet.value=ue}a=U.id},$=()=>{this.runningStreamToken!==c&&(this.runningStreamToken=c,this.consumeQueuedThrough(a),this.resetWorkJournalTiming(),this.updateState(this.textState,{isThinking:!0,workingDescription:void 0,toolActivities:[],transientIssue:void 0,turnOutcome:void 0}))},I=(U,ae="assistant")=>{if(!m())return;$(),this.updateState(this.textState,{workingDescription:void 0}),ae==="assistant"&&(this.lastVisibleProgressAtMs.value=Date.now()),d||(d=!0,this.liveStreamMessageId.value=u,this.sharedMessages.value=[...this.sharedMessages.value,{id:u,text:"",sender:ae==="system"?"system":"bot",timestamp:new Date().toISOString()}]);let ue=this.liveSegments.value,re=ue[ue.length-1];this.liveSegments.value=re?.kind==="text"?[...ue.slice(0,-1),{kind:"text",content:re.content+U}]:[...ue,{kind:"text",content:U}];let J=this.sharedMessages.value,se=J[J.length-1];se?.id===u&&(se.text+=U,this.sharedMessages.value=[...J])},T=U=>{if(!m())return;if($(),p=!0,U.sender==="bot"&&ps(U.text)){this.liveSegments.value=[],this.liveStreamMessageId.value=void 0,this.sharedMessages.value=this.sharedMessages.value.filter(ne=>ne.id!==u);return}d=!0;let ae=U.sender==="system"||U.turnOutcome==="failed"?"failed":"completed";this.finishToolActivities(ae);let ue=this.textState.value.toolActivities,re=U.toolActivities?.length||!ue?.length?U:{...U,toolActivities:ue};this.liveSegments.value=[],this.liveStreamMessageId.value=void 0,this.updateState(this.textState,{workingDescription:void 0,toolActivities:[],turnOutcome:void 0});let J=this.sharedMessages.value.filter(ne=>ne.id!==u),se=J.findIndex(ne=>ne.id===re.id);se>=0?this.sharedMessages.value=[...J.slice(0,se),re,...J.slice(se+1)]:this.sharedMessages.value=[...J,re],re.sender==="system"&&re.issue?.bucket==="account"?this.updateState(this.textState,{sendBlockedReason:"account"}):re.sender==="system"&&re.issue?.code&&UE.has(re.issue.code)&&this.updateState(this.textState,{sendBlockedReason:"bot_deleted"})},Z=U=>{if(!m())return;if(!d&&!p){V("empty_stream \u2014 assistant returned no content");return}this.finishToolActivities("completed");let ae=this.sharedMessages.value,ue=ae[ae.length-1];ue?.id===u&&ue.sender==="bot"&&ps(ue.text)&&(this.sharedMessages.value=ae.slice(0,-1)),U&&(this.conversationId=U),this.updateState(this.textState,{isThinking:!1,workingDescription:void 0,transientIssue:void 0}),this.settings.onTurnCompleted?.(U)},V=U=>{if(!m())return;if(this.runningStreamToken!==c){this.consumeQueuedThrough(a),this.sharedMessages.value=this.sharedMessages.value.filter(se=>se.id!==a),this.composerState.value.text||(this.composerState.value={...this.composerState.value,text:e,pendingAttachments:t??[]});return}this.updateState(this.textState,{workingDescription:void 0,turnOutcome:"failed"}),this.finishToolActivities("failed");let ae=this.sharedMessages.value,ue=ae[ae.length-1];if(ue?.id===u&&!ue.text&&(this.sharedMessages.value=ae.slice(0,-1)),typeof U=="object"&&U.code&&U.error){let se=MA(U);se.surface==="transient"?this.updateState(this.textState,{isThinking:!1,transientIssue:se.issue}):se.surface==="transcript"?(this.addMessage(UA(U),"system",void 0,se.issue),this.updateState(this.textState,{isThinking:!1,...se.sendBlockedReason?{sendBlockedReason:se.sendBlockedReason}:{}})):this.handleError(Error(U.error));return}let re=typeof U=="string"?U:U.error,J=this.mapChatError(re);this.isTransientError(re)?(this.logger.warn("Chat turn failed (transient):",{raw:re,friendly:J}),this.addMessage(J,"system"),this.updateState(this.textState,{isThinking:!1})):this.handleError(Error(J),re)},D=U=>{if(!m())return;$();let ae=U.trim();this.updateState(this.textState,{workingDescription:ae||void 0})},L=U=>{if(m()){if($(),this.lastVisibleProgressAtMs.value=Date.now(),U.status==="started"){let ae=this.liveSegments.value,ue=ae[ae.length-1];ue?.kind==="work"?ue.activityIds.includes(U.activityId)||(this.liveSegments.value=[...ae.slice(0,-1),{kind:"work",activityIds:[...ue.activityIds,U.activityId]}]):this.liveSegments.value=[...ae,{kind:"work",activityIds:[U.activityId]}]}this.updateToolActivity(U)}},z=()=>{m()&&this.updateState(this.textState,{workingDescription:void 0})};try{this.settings.onTurnStarted?.(),await(n?n({message:e,attachments:t,conversationId:this.conversationId,history:this.buildHistory(),onDelta:I,onMessage:T,onUserMessage:f,onDone:Z,onError:V,onStatus:D,onToolActivity:L,onWorkingEnd:z}):i.chat.chatStreamPublic({handle:this._bot.handle.value,message:e,attachments:t,anonymousId:i.user.generateAnonId(),context:this.getDynamicSettings().context||void 0,onDelta:I,onMessage:T,onDone:Z,onError:V,onStatus:D,onToolActivity:L,onWorkingEnd:z}))}catch(U){V(U.message||"Something went wrong")}finally{this.runningStreamToken===c&&(this.runningStreamToken=void 0)}}async stopChatTurn(){if(this.textState.value.isThinking){this.runningStreamToken!==void 0&&this.suppressedStreamTokens.add(this.runningStreamToken),this.runningStreamToken=void 0,this.updateState(this.textState,{isThinking:!1,turnOutcome:"stopped",workingDescription:void 0,transientIssue:void 0});try{await this.settings.cancelChatTurnFn?.({conversationId:this.conversationId})}catch(e){this.logger.warn("stopChatTurn: cancel failed",{conversationId:this.conversationId,error:e instanceof Error?e.message:String(e)})}}}buildHistory(){return this.sharedMessages.value.filter(e=>e.sender==="user"||e.sender==="bot").slice(-20).map(e=>({role:e.sender==="user"?"user":"assistant",content:e.text,...e.attachments?.length?{attachments:e.attachments}:{}})).filter(e=>e.content.length>0||e.attachments&&e.attachments.length>0)}loadMessages(e){this.conversationId=e.conversationId;let t=this.sharedMessages.value,n=e.messages.filter(d=>d.sender!=="bot"||!ps(d.text)),i=new Set(n.map(d=>d.id)),r=t.filter(d=>!i.has(d.id)),o=n[0]?.sequence,a=d=>!!o&&!!d.sequence&&d.sequence<o;if(this.sharedMessages.value=[...r.filter(a),...n,...r.filter(d=>!a(d))],this.runningStreamToken!==void 0)return;let s=new Set(this.sharedMessages.value.flatMap(d=>d.toolActivities?.map(p=>p.turnId)??[])),c=new Set(this.textState.value.turnOutcome==="stopped"?this.textState.value.toolActivities?.map(d=>d.turnId):[]),u=(e.activeToolActivities??[]).filter(d=>!s.has(d.turnId)&&!c.has(d.turnId));u.length?(u.forEach(d=>this.rememberToolActivity(d)),this.updateState(this.textState,{isThinking:!0,workingDescription:void 0,toolActivities:u,transientIssue:void 0,turnOutcome:void 0})):this.textState.value.toolActivities?.some(d=>s.has(d.turnId))&&this.updateState(this.textState,{isThinking:!1,workingDescription:void 0,toolActivities:[],turnOutcome:void 0})}async destroy(){this.clearBoundaryTimer(),this.voiceRecorder.teardown(),await this.endConversation()}};LA={key:0,class:"absolute inset-0 flex items-center justify-center"},fa=Ae({__name:"ElBotButton",props:{theme:{default:"primary"},size:{default:"lg"},loading:{type:Boolean,default:!1},icon:{},iconAfter:{}},setup(e){let t=C(()=>({primary:"bg-primary-600 border-primary-400 hover:border-primary-300 hover:bg-primary-500",green:"bg-green-600 border-green-400 hover:border-green-300 hover:bg-green-500",red:"bg-red-600 border-red-400 hover:border-red-300 hover:bg-red-500",default:"bg-white/10 border-white/20 hover:border-white/40 hover:bg-white/20",dark:"bg-theme-900 border-transparent hover:bg-theme-800"})[e.theme]),n=C(()=>({sm:"px-4 py-2 text-sm",md:"px-6 py-3 text-base",lg:"px-8 py-4 text-base"})[e.size]),i=C(()=>({sm:"size-4",md:"size-4",lg:"size-5"})[e.size]);return(r,o)=>(v(),x("button",{class:B(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",[t.value,n.value]])},[e.loading?(v(),x("div",LA,[...o[0]||(o[0]=[y("i",{class:"i-svg-spinners-90-ring-with-bg size-5"},null,-1)])])):Y("",!0),y("span",{class:B(["flex items-center gap-2 transition-opacity duration-200",e.loading?"opacity-0":"opacity-100"])},[e.icon?(v(),x("i",{key:0,class:B([e.icon,i.value])},null,2)):Y("",!0),nr(r.$slots,"default"),e.iconAfter?(v(),x("i",{key:1,class:B([e.iconAfter,i.value])},null,2)):Y("",!0)],2)],2))}}),VA=["value"],Zd=Ae({__name:"BotInputEmail",props:{modelValue:{default:""}},emits:["update:modelValue"],setup(e,{emit:t}){let n=t;return(i,r)=>(v(),x("input",{name:"username",type:"email",inputmode:"email",autocomplete:"username",autocapitalize:"off",autocorrect:"off",spellcheck:"false",placeholder:"Enter your email",value:e.modelValue,class:"w-full px-6 py-3 text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",style:{"font-size":"16px"},onInput:r[0]||(r[0]=o=>n("update:modelValue",o.target.value))},null,40,VA))}}),FA=["placeholder","value"],Hd=Ae({__name:"BotInputOneTimeCode",props:{modelValue:{},length:{},focusFirst:{type:Boolean}},emits:["update:modelValue","autoSubmit"],setup(e,{emit:t}){let n=e,i=t,r=W(null),o=C(()=>"0".repeat(n.length));It(()=>{n.focusFirst&&!("ontouchstart"in window)&&r.value?.focus()});function a(s){let c=s.target.value.replace(/\D/g,"").slice(0,n.length);i("update:modelValue",c),c.length===n.length&&i("autoSubmit",c)}return(s,c)=>(v(),x("input",{ref_key:"input",ref:r,name:"one-time-code",type:"text",inputmode:"numeric",autocomplete:"one-time-code",autocapitalize:"off",autocorrect:"off",spellcheck:"false",enterkeyhint:"done",placeholder:o.value,value:e.modelValue,class:"w-full px-6 py-3 text-center font-mono tracking-[0.35em] text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",style:{"font-size":"16px"},onInput:a},null,40,FA))}}),BA={class:"relative flex-shrink-0"},ZA=["src","alt"],HA={class:"absolute top-1 right-1"},KA={key:1,class:"size-3 bg-theme-400 rounded-full ring-2 ring-white"},WA={class:"min-w-0"},Kd=Ae({__name:"ElModeHeader",props:{bot:{},size:{default:"md"},isOnline:{type:Boolean,default:!1},layout:{default:"centered"}},setup(e){return(t,n)=>(v(),x("div",{class:B(["flex gap-4",[e.layout==="centered"?"flex-col items-center text-center":"flex-row items-center justify-center"]])},[y("div",BA,[y("div",{class:B(["rounded-full overflow-hidden border-white",e.size==="lg"?"w-20 h-20 sm:w-24 sm:h-24 border-4":"w-16 sm:size-16 border-2"])},[y("img",{src:e.bot.avatarUrl.value,alt:e.bot.displayName.value,class:"w-full h-full object-cover",onError:n[0]||(n[0]=(...i)=>Te(pl)&&Te(pl)(...i))},null,40,ZA)],2),y("div",HA,[e.isOnline?(v(),x(he,{key:0},[n[1]||(n[1]=y("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"3s"}},null,-1)),n[2]||(n[2]=y("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white"},null,-1))],64)):(v(),x("div",KA))])]),y("div",WA,[y("h1",{class:B(["font-light text-white mb-1 truncate",[e.size==="lg"?"text-3xl mb-2":"text-xl sm:text-2xl tracking-wide leading-tight",e.layout==="horizontal"?"text-white/95":""]])},ce(e.bot.displayName.value),3),y("p",{class:B(["font-light line-clamp-1",[e.size==="lg"?"text-base text-white/60":"text-sm sm:text-base",e.layout==="horizontal"?"text-white/70 truncate":"text-white/60"]])},ce(e.layout==="horizontal"?e.bot.title.value||"Assistant":e.bot.title.value),3)])],2))}}),GA={class:"relative shrink-0 rounded-full"},qA=["src","alt"],JA=["src","alt"],YA=["aria-label"],B0=Ae({__name:"BotAvatar",props:{bot:{},showStatus:{type:Boolean,default:!0},showOwnerMark:{type:Boolean,default:!0},isLight:{type:Boolean,default:!0}},setup(e){let t={green:"bg-green-500",amber:"bg-amber-500",red:"bg-red-500",grey:"bg-theme-300"},n=C(()=>{let o=e.bot.state.value;return e.showStatus&&o.lifecycle!=="unknown"?t[o.color]:null}),i={width:"clamp(7px, 14%, 14px)",height:"clamp(7px, 14%, 14px)",top:"calc(14.6% - clamp(3.5px, 7%, 7px))",right:"calc(14.6% - clamp(3.5px, 7%, 7px))"},r=C(()=>e.isLight?"ring-white":"ring-theme-900");return(o,a)=>(v(),x("div",GA,[y("img",{src:e.bot.avatarUrl.value,alt:e.bot.displayName.value,class:B(["size-full rounded-full object-cover ring-1",e.isLight?"ring-black/5":"ring-white/10"])},null,10,qA),e.showOwnerMark&&e.bot.ownerMarkUrl.value?(v(),x("img",{key:0,src:e.bot.ownerMarkUrl.value,alt:e.bot.owner.value?.fullName?`Owned by ${e.bot.owner.value.fullName}`:"Owner",class:B(["absolute z-10 size-[36%] -bottom-[3%] -left-[3%] rounded-full object-cover ring-2",r.value])},null,10,JA)):Y("",!0),n.value?(v(),x("span",{key:1,role:"status","aria-label":e.bot.state.value.tooltip,class:B(["absolute z-10 rounded-full ring-2",[n.value,r.value]]),style:i},null,10,YA)):Y("",!0),n.value&&e.bot.state.value.lifecycle==="running"?(v(),x("span",{key:2,"aria-hidden":"true",class:B(["pointer-events-none absolute rounded-full animate-ping opacity-50 [animation-duration:3s]",n.value]),style:i},null,2)):Y("",!0)]))}}),XA={key:0,class:"sr-only",role:"status","aria-live":"polite"},QA=["aria-expanded","disabled"],e3=["aria-expanded"],t3={class:"flex w-5 shrink-0 justify-center self-stretch","aria-hidden":"true"},r3=["data-journal-row"],n3={class:"flex w-5 shrink-0 flex-col items-center self-stretch","aria-hidden":"true"},i3={class:"flex h-[17px] shrink-0 items-center"},o3={key:0,class:"sr-only"},O0=Ae({__name:"BotToolActivityGroup",props:{model:{},isLight:{type:Boolean}},setup(e){let t=e,n=Ze(!1);function i(){n.value=!n.value}let r=C(()=>t.model.outcome==="completed"),o=C(()=>t.model.hiddenRows.length),a=C(()=>t.model.hint??(t.model.terminal?.tone==="active"?t.model.terminal.label:void 0)),s=C(()=>{let d=t.model;return r.value?n.value?d.hiddenRows:[]:[...n.value?d.hiddenRows:[],...d.visibleRows,...d.terminal?[d.terminal]:[]]}),c=C(()=>t.isLight?{spine:"bg-theme-200",dashed:"border-theme-300",doneMark:"text-theme-400",failedMark:"text-theme-500",activeLine:"text-theme-900",stoppedSquare:"bg-theme-500",muted:"text-theme-500",ring:"focus-visible:ring-theme-900"}:{spine:"bg-white/15",dashed:"border-white/25",doneMark:"text-white/45",failedMark:"text-white/60",activeLine:"text-white",stoppedSquare:"bg-white/55",muted:"text-white/55",ring:"focus-visible:ring-white"}),u=C(()=>{let d=t.isLight;return{done:{statusWord:"completed",label:d?"text-[12.5px] text-theme-500":"text-[12.5px] text-white/55",station:{tag:"i",class:`i-tabler-check size-3 ${c.value.doneMark}`}},active:{statusWord:"in progress",label:d?"text-[13px] font-medium text-theme-900":"text-[13px] font-medium text-white",station:{tag:"span",class:`chat-pulse-dot size-1.5 rounded-full bg-current ${c.value.activeLine}`}},failed:{statusWord:"failed",label:d?"text-[12.5px] font-medium text-theme-700":"text-[12.5px] font-medium text-white/80",station:{tag:"i",class:`i-tabler-alert-circle size-3.5 ${c.value.failedMark}`}},stopped:{label:d?"text-[13px] font-medium text-theme-600":"text-[13px] font-medium text-white/70",station:{tag:"span",class:`size-[9px] rounded-[2px] ${c.value.stoppedSquare}`}},completed:{label:d?"text-[12.5px] text-theme-500":"text-[12.5px] text-white/55",station:{tag:"i",class:"i-tabler-circle-check size-3.5 text-green-600"}}}});return(d,p)=>(v(),x("div",{class:B(["w-full py-0.5",c.value.muted])},[a.value?(v(),x("span",XA,ce(a.value),1)):Y("",!0),r.value?(v(),x("button",{key:1,type:"button","data-test":"messaging-tool-activity-summary","data-journal-disclosure":"","aria-expanded":n.value,disabled:o.value===0,class:B(["flex min-h-11 items-center gap-x-2 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-default",c.value.ring]),onClick:i},[p[0]||(p[0]=y("i",{"data-journal-station":"completed",class:"i-tabler-circle-check size-3.5 shrink-0 text-green-600","aria-hidden":"true"},null,-1)),y("span",{class:B(["text-[12.5px] font-medium leading-none",c.value.muted])},ce(e.model.terminal?.label),3),o.value?(v(),x("i",{key:0,class:B(["size-[13px] shrink-0",[n.value?"i-tabler-chevron-down":"i-tabler-chevron-right",c.value.muted]]),"aria-hidden":"true"},null,2)):Y("",!0)],10,QA)):o.value?(v(),x("button",{key:2,type:"button","data-test":"messaging-tool-activity-summary","data-journal-disclosure":"","aria-expanded":n.value,class:B(["flex min-h-11 w-full gap-x-2.5 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",c.value.ring]),onClick:i},[y("span",t3,[y("span",{"data-journal-spine":"dashed",class:B(["w-0 border-l border-dashed",c.value.dashed])},null,2)]),y("span",{class:B(["flex min-h-[20px] items-center gap-0.5 pb-2 text-[12px] leading-none",c.value.muted])},[xt(ce(o.value)+" earlier updates ",1),y("i",{class:B(["size-3 shrink-0",n.value?"i-tabler-chevron-down":"i-tabler-chevron-right"]),"aria-hidden":"true"},null,2)],2)],10,e3)):Y("",!0),(v(!0),x(he,null,et(s.value,(m,f)=>(v(),x("div",{key:m.id,"data-test":"messaging-tool-activity-row","data-journal-row":m.tone,class:B([r.value?"pl-[22px]":"","flex gap-x-2.5"])},[y("div",n3,[y("span",i3,[(v(),He(QS(u.value[m.tone].station.tag),{"data-journal-station":m.tone,class:B(u.value[m.tone].station.class)},null,8,["data-journal-station","class"]))]),f===s.value.length-1?Y("",!0):(v(),x("span",{key:0,class:B(["w-px flex-1",c.value.spine])},null,2))]),y("div",{class:B(["min-w-0 flex-1",f===s.value.length-1?"":"pb-2"])},[y("span",{class:B(["relative block leading-snug",u.value[m.tone].label])},[xt(ce(m.label),1),u.value[m.tone].statusWord?(v(),x("span",o3,", "+ce(u.value[m.tone].statusWord),1)):Y("",!0)],2),m.note?(v(),x("p",{key:0,class:B(["pt-0.5 text-[11.5px] leading-snug",c.value.muted])},ce(m.note),3)):Y("",!0)],2)],10,r3))),128)),!r.value&&e.model.hint?(v(),x("p",{key:3,"data-test":"messaging-tool-activity-hint",class:B(["pl-[30px] pt-2.5 text-[12px] leading-snug",c.value.muted])},ce(e.model.hint),3)):Y("",!0)],2))}});VE=Object.entries,cE=Object.setPrototypeOf,d3=Object.isFrozen,p3=Object.getPrototypeOf,m3=Object.getOwnPropertyDescriptor,jt=Object.freeze,Lt=Object.seal,da=Object.create,FE=typeof Reflect<"u"&&Reflect,Z0=FE.apply,H0=FE.construct;jt||(jt=function(t){return t}),Lt||(Lt=function(t){return t}),Z0||(Z0=function(t,n){var i=[...arguments].slice(2);return t.apply(n,i)}),H0||(H0=function(t){return new t(...[...arguments].slice(1))});la=St(Array.prototype.forEach),f3=St(Array.prototype.lastIndexOf),uE=St(Array.prototype.pop),ca=St(Array.prototype.push),h3=St(Array.prototype.splice),li=Array.isArray,ul=St(String.prototype.toLowerCase),A0=St(String.prototype.toString),dE=St(String.prototype.match),ol=St(String.prototype.replace),pE=St(String.prototype.indexOf),g3=St(String.prototype.trim),v3=St(Number.prototype.toString),b3=St(Boolean.prototype.toString),mE=typeof BigInt>"u"?null:St(BigInt.prototype.toString),fE=typeof Symbol>"u"?null:St(Symbol.prototype.toString),Ot=St(Object.prototype.hasOwnProperty),al=St(Object.prototype.toString),Nt=St(RegExp.prototype.test),Fi=y3(TypeError);hE=jt("a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")),D0=jt("svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")),P0=jt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_3=jt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R0=jt("math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")),$3=jt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gE=jt(["#text"]),vE=jt("accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")),M0=jt("accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")),bE=jt("accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")),Ad=jt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),S3=Lt(/{{[\w\W]*|^[\w\W]*}}/g),E3=Lt(/<%[\w\W]*|^[\w\W]*%>/g),I3=Lt(/\${[\w\W]*/g),T3=Lt(/^data-[\-\w.\u00B7-\uFFFF]+$/),z3=Lt(/^aria-[\-\w]+$/),yE=Lt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),C3=Lt(/^(?:\w+script|data):/i),N3=Lt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),O3=Lt(/^html$/i),A3=Lt(/^[a-z][.\w]*(-[.\w]+)+$/i),xE=Lt(/<[/\w!]/g),wE=Lt(/<[/\w]/g),D3=Lt(/<\/no(script|embed|frames)/i),P3=Lt(/\/>/i),gr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},R3=function(){return typeof window>"u"?null:window},M3=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null,r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(i=n.getAttribute(r));let o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},kE=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},oi=function(t,n,i,r){return Ot(t,n)&&li(t[n])?Le(r.base?ir(r.base):{},t[n],r.transform):i};ZE=BE();Hi=q0();Zi={exec:()=>null};U3=((e="")=>{try{return!!RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Zt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:ua(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:ua(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:ua(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:ua(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:ua(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:ua(e=>RegExp(`^ {0,${e}}>`))},j3=/^(?:[ \t]*(?:\n|$))+/,L3=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,V3=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,fl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,F3=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,J0=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,HE=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,KE=Ve(HE).replace(/bull/g,J0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),B3=Ve(HE).replace(/bull/g,J0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Y0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Z3=/^[^\n]+/,X0=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,H3=Ve(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",X0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),K3=Ve(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,J0).getRegex(),Wd="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Q0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,W3=Ve("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Q0).replace("tag",Wd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),WE=e=>Ve(Y0).replace("hr",fl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Wd).getRegex(),G3=WE(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),q3=WE(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),ey={blockquote:Ve(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",q3).getRegex(),code:L3,def:H3,fences:V3,heading:F3,hr:fl,html:W3,lheading:KE,list:K3,newline:j3,paragraph:G3,table:Zi,text:Z3},$E=Ve("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",fl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Wd).getRegex(),J3={...ey,lheading:B3,table:$E,paragraph:Ve(Y0).replace("hr",fl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",$E).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Wd).getRegex()},Y3={...ey,html:Ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Q0).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Zi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ve(Y0).replace("hr",fl).replace("heading",` *#{1,6} *[^
|
|
103
103
|
]`).replace("lheading",KE).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},X3=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Q3=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,GE=/^( {2,}|\\)\n(?!\s*$)/,e6=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ha=/[\p{P}\p{S}]/u,Gd=/[\s\p{P}\p{S}]/u,ty=/[^\s\p{P}\p{S}]/u,t6=Ve(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Gd).getRegex(),qE=/(?!~)[\p{P}\p{S}]/u,r6=/(?!~)[\s\p{P}\p{S}]/u,n6=/(?:[^\s\p{P}\p{S}]|~)/u,i6=Ve(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",U3?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),JE=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,o6=Ve(JE,"u").replace(/punct/g,ha).getRegex(),a6=Ve(JE,"u").replace(/punct/g,qE).getRegex(),YE="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",s6=Ve(YE,"gu").replace(/notPunctSpace/g,ty).replace(/punctSpace/g,Gd).replace(/punct/g,ha).getRegex(),l6=Ve(YE,"gu").replace(/notPunctSpace/g,n6).replace(/punctSpace/g,r6).replace(/punct/g,qE).getRegex(),c6=Ve("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ty).replace(/punctSpace/g,Gd).replace(/punct/g,ha).getRegex(),u6=Ve(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ha).getRegex(),d6=Ve("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,ty).replace(/punctSpace/g,Gd).replace(/punct/g,ha).getRegex(),p6=Ve(/\\(punct)/,"gu").replace(/punct/g,ha).getRegex(),m6=Ve(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),f6=Ve(Q0).replace("(?:-->|$)","-->").getRegex(),h6=Ve("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",f6).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),jd=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,g6=Ve(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",jd).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),XE=Ve(/^!?\[(label)\]\[(ref)\]/).replace("label",jd).replace("ref",X0).getRegex(),QE=Ve(/^!?\[(ref)\](?:\[\])?/).replace("ref",X0).getRegex(),v6=Ve("reflink|nolink(?!\\()","g").replace("reflink",XE).replace("nolink",QE).getRegex(),SE=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ry={_backpedal:Zi,anyPunctuation:p6,autolink:m6,blockSkip:i6,br:GE,code:Q3,del:Zi,delLDelim:Zi,delRDelim:Zi,emStrongLDelim:o6,emStrongRDelimAst:s6,emStrongRDelimUnd:c6,escape:X3,link:g6,nolink:QE,punctuation:t6,reflink:XE,reflinkSearch:v6,tag:h6,text:e6,url:Zi},b6={...ry,link:Ve(/^!?\[(label)\]\((.*?)\)/).replace("label",jd).getRegex(),reflink:Ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",jd).getRegex()},K0={...ry,emStrongRDelimAst:l6,emStrongLDelim:a6,delLDelim:u6,delRDelim:d6,url:Ve(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",SE).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ve(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",SE).getRegex()},y6={...K0,br:Ve(GE).replace("{2,}","*").getRegex(),text:Ve(K0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Pd={normal:ey,gfm:J3,pedantic:Y3},sl={normal:ry,gfm:K0,breaks:y6,pedantic:b6},x6={"&":"&","<":"<",">":">",'"':""","'":"'"},EE=e=>x6[e];Ld=class{constructor(e){H(this,"options",void 0),H(this,"rules",void 0),H(this,"lexer",void 0),this.options=e||Hi}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:zE(t[0]);return{type:"code",raw:n,codeBlockStyle:"indented",text:n.replace(this.rules.other.codeRemoveIndent,"")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],i=_6(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let i=ai(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:ai(t[0],`
|
|
104
104
|
`),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ai(t[0],`
|
|
105
105
|
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=ai(t[0],`
|